﻿/*
Theme Name: Barafynd Fix
Theme URI: https://example.local/barafynd
Author: Codex
Description: A playful WooCommerce theme for a Swedish dropshipping shop with vidaXL/dropXL product sync.
Version: 1.1.2
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: barafynd
WC requires at least: 8.0
WC tested up to: 9.0
*/

:root {
  --bf-ink: #071629;
  --bf-muted: #5d6879;
  --bf-pink: #ff1f6d;
  --bf-pink-dark: #da0a54;
  --bf-yellow: #ffd21a;
  --bf-yellow-soft: #fff2b4;
  --bf-teal: #12b8ad;
  --bf-mint: #ddfbf7;
  --bf-cream: #fff9e9;
  --bf-line: #e9edf3;
  --bf-surface: #ffffff;
  --bf-shadow: 0 18px 46px rgba(7, 22, 41, 0.13);
  --bf-radius: 24px;
  --bf-card-radius: 8px;
  --bf-container: 1200px;
  --bf-font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bf-display: "Baloo 2", var(--bf-font);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.barafynd-site {
  margin: 0;
  background: #fff;
  color: var(--bf-ink);
  font-family: var(--bf-font);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

svg {
  width: 1.2em;
  height: 1.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.barafynd-container {
  width: min(var(--bf-container), calc(100% - 32px));
  margin-inline: auto;
}

.screen-reader-text,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 9999;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  border-radius: 6px;
  background: var(--bf-ink);
  color: #fff;
}

.top-benefits {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 6vw, 110px);
  padding: 6px 16px;
  background: linear-gradient(90deg, #ffd000, #ffe14c);
  color: #111827;
  font-size: 14px;
  font-weight: 800;
}

.top-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.top-benefits svg {
  color: #111827;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(233, 237, 243, 0.7);
  backdrop-filter: blur(12px);
}

.header-main {
  display: grid;
  grid-template-columns: minmax(320px, 380px) minmax(260px, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 22px 0 18px;
}

.header-main > * {
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.brand-mascot {
  display: grid;
  position: relative;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.28) 0 13%, transparent 14%),
    linear-gradient(135deg, #a00078 0%, #d71382 58%, #ff1f6d 100%);
  box-shadow: 0 12px 24px rgba(160, 0, 120, 0.24);
  color: transparent;
}

.brand-mascot::before,
.brand-mascot::after {
  position: absolute;
  content: "";
}

.brand-mascot::before {
  width: 34px;
  height: 24px;
  border-radius: 7px 9px 9px 7px;
  background:
    radial-gradient(circle at 78% 50%, #ffd21a 0 3px, transparent 3.5px),
    #fff;
  clip-path: polygon(0 0, 76% 0, 100% 50%, 76% 100%, 0 100%);
  transform: rotate(-9deg);
  box-shadow: 0 8px 16px rgba(7, 22, 41, 0.14);
}

.brand-mascot::after {
  top: 9px;
  right: 8px;
  width: 15px;
  height: 15px;
  background: var(--bf-yellow);
  clip-path: polygon(50% 0, 62% 35%, 100% 50%, 62% 65%, 50% 100%, 38% 65%, 0 50%, 38% 35%);
  filter: drop-shadow(0 3px 7px rgba(255, 210, 26, 0.45));
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-copy strong {
  font-family: var(--bf-display);
  font-size: clamp(32px, 3.4vw, 42px);
  font-weight: 800;
  letter-spacing: 0;
}

.footer-brand {
  font-family: var(--bf-display);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-copy strong span,
.footer-brand span {
  color: var(--bf-pink);
}

.brand-copy small {
  margin-top: -2px;
  color: #121a2a;
  font-size: 13px;
  font-weight: 800;
}

.product-search {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 56px;
  min-width: 0;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  border: 2px solid #ebeff5;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(7, 22, 41, 0.04);
}

.product-search input[type="search"] {
  min-width: 0;
  height: 56px;
  padding: 0 24px;
  border: 0;
  outline: 0;
  color: var(--bf-ink);
}

.product-search button {
  display: grid;
  height: 56px;
  place-items: center;
  border: 0;
  background: linear-gradient(135deg, #ff1f6d, #fb2d80);
  color: #fff;
  cursor: pointer;
}

.product-search button:hover {
  background: linear-gradient(135deg, #e70f5b, #ff4b91);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
}

.header-actions a {
  position: relative;
  display: grid;
  place-items: center;
  gap: 5px;
  min-width: 58px;
  color: #101828;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  overflow: hidden;
}

.header-actions a span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-actions svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.9;
}

.cart-link .cart-count {
  position: absolute;
  top: -4px;
  right: 7px;
  display: grid;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  place-items: center;
  border-radius: 999px;
  background: var(--bf-pink);
  color: #fff;
  font-size: 11px;
  line-height: 19px;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding-bottom: 10px;
}

.primary-nav .menu,
.footer-main .menu {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  position: relative;
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  color: #121a2a;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.primary-nav .current-menu-item > a,
.primary-nav a:hover {
  color: var(--bf-pink);
}

.primary-nav .current-menu-item > a::after,
.primary-nav a:hover::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--bf-pink);
  content: "";
}

.menu-toggle {
  display: none;
}

.hero-wrap {
  padding-top: 18px;
}

.hero-panel {
  position: relative;
  min-height: clamp(420px, 43vw, 560px);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  border-radius: 26px;
  background: var(--bf-cream);
  box-shadow: 0 10px 26px rgba(255, 210, 26, 0.18);
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-panel::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 249, 233, 0.97) 0%, rgba(255, 249, 233, 0.92) 31%, rgba(255, 249, 233, 0.18) 57%, rgba(255, 249, 233, 0) 100%);
  content: "";
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 590px;
  padding: clamp(34px, 5vw, 64px);
}

.hero-copy h1 {
  margin: 0;
  color: var(--bf-ink);
  font-family: var(--bf-display);
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy h1 span {
  position: relative;
  color: var(--bf-pink);
}

.hero-copy h1 span::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  opacity: 0.2;
}

.hero-copy p {
  max-width: min(420px, calc(100vw - 86px));
  margin: 24px 0 0;
  color: #162033;
  font-size: 17px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button,
.button:visited,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: 9px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  color: #111827;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.button-primary,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: linear-gradient(135deg, var(--bf-pink), #ff4b91);
  color: #fff;
  box-shadow: 0 13px 28px rgba(255, 31, 109, 0.28);
}

.button-light {
  border: 2px solid #f1e5da;
  background: #fff;
  color: #111827;
}

.button-yellow {
  background: var(--bf-yellow);
  color: #111827;
  box-shadow: 0 12px 24px rgba(255, 210, 26, 0.35);
}

.button svg {
  width: 18px;
  height: 18px;
}

.hero-badge {
  position: absolute;
  z-index: 3;
  top: 42px;
  right: 44px;
  display: grid;
  width: clamp(136px, 16vw, 196px);
  aspect-ratio: 1;
  place-items: center;
  padding: 24px;
  border-radius: 50%;
  background: var(--bf-pink);
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(7deg);
  clip-path: polygon(50% 0%, 58% 7%, 69% 4%, 75% 13%, 86% 14%, 89% 25%, 98% 31%, 95% 42%, 100% 50%, 93% 58%, 96% 69%, 87% 75%, 86% 86%, 75% 89%, 69% 98%, 58% 95%, 50% 100%, 42% 93%, 31% 96%, 25% 87%, 14% 86%, 11% 75%, 2% 69%, 5% 58%, 0% 50%, 7% 42%, 4% 31%, 13% 25%, 14% 14%, 25% 11%, 31% 2%, 42% 5%);
}

.hero-badge strong {
  font-size: clamp(20px, 2.3vw, 28px);
  line-height: 1;
}

.hero-badge span {
  display: block;
  font-size: clamp(44px, 5.5vw, 68px);
  line-height: 0.9;
}

.hero-badge small {
  max-width: 130px;
  margin-top: -14px;
  font-size: clamp(13px, 1.4vw, 18px);
  font-weight: 900;
  line-height: 1.05;
}

.trust-strip {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(980px, calc(100% - 100px));
  min-height: 74px;
  margin: -28px auto 0;
  overflow: hidden;
  border: 1px solid rgba(7, 22, 41, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 30px rgba(7, 22, 41, 0.13);
  backdrop-filter: blur(8px);
}

.trust-strip div {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  column-gap: 10px;
  padding: 16px 22px;
  border-right: 1px solid var(--bf-line);
}

.trust-strip div:not(:has(svg)) {
  grid-template-columns: 1fr;
}

.trust-strip div:not(:has(svg)) strong,
.trust-strip div:not(:has(svg)) span {
  grid-column: 1;
}

.trust-strip div:last-child {
  border-right: 0;
}

.trust-strip svg {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  color: var(--bf-teal);
}

.trust-strip strong {
  align-self: end;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.trust-strip span {
  align-self: start;
  color: #303a4c;
  font-size: 12px;
  font-weight: 700;
}

.category-bubbles {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 24px;
  padding: 34px 0 26px;
}

.category-bubble {
  display: grid;
  justify-items: center;
  gap: 10px;
  color: #121a2a;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.bubble-art {
  position: relative;
  display: block;
  width: 104px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe3e8, #fff7db);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.65);
}

.category-bubble:nth-child(2n) .bubble-art {
  background: linear-gradient(135deg, #d8fbff, #fff0ca);
}

.category-bubble:nth-child(3n) .bubble-art {
  background: linear-gradient(135deg, #ffe0f0, #e8f8ce);
}

.bubble-art::before,
.bubble-art::after {
  position: absolute;
  content: "";
}

.bubble-sofa::before {
  right: 17px;
  bottom: 24px;
  left: 17px;
  height: 34px;
  border-radius: 18px 18px 10px 10px;
  background: #ff6f9b;
  box-shadow: 0 20px 0 -13px #c54873;
}

.bubble-sofa::after {
  right: 26px;
  bottom: 55px;
  left: 26px;
  height: 26px;
  border-radius: 20px 20px 8px 8px;
  background: #ff9ab8;
}

.bubble-parasol::before {
  top: 25px;
  left: 24px;
  width: 58px;
  height: 22px;
  border-radius: 70px 70px 0 0;
  background: conic-gradient(from 225deg, #15b7ad 0 25%, #fff 25% 50%, #15b7ad 50% 75%, #fff 75%);
}

.bubble-parasol::after {
  top: 47px;
  left: 51px;
  width: 5px;
  height: 42px;
  border-radius: 3px;
  background: #6b4b33;
  box-shadow: -27px 23px 0 -1px #6b4b33, 23px 23px 0 -1px #6b4b33;
}

.bubble-lamp::before {
  top: 24px;
  left: 37px;
  width: 31px;
  height: 39px;
  border-radius: 16px 16px 10px 10px;
  background: #ffae2f;
  box-shadow: 0 36px 0 -12px #b87016;
}

.bubble-lamp::after {
  bottom: 19px;
  left: 46px;
  width: 14px;
  height: 25px;
  background: #6b4b33;
}

.bubble-dumbbell::before {
  top: 48px;
  left: 25px;
  width: 55px;
  height: 8px;
  border-radius: 6px;
  background: #111827;
}

.bubble-dumbbell::after {
  top: 36px;
  left: 18px;
  width: 18px;
  height: 32px;
  border-radius: 7px;
  background: #2b303a;
  box-shadow: 50px 0 0 #2b303a, 8px -3px 0 #111827, 42px -3px 0 #111827;
}

.bubble-dog::before {
  top: 24px;
  left: 28px;
  width: 49px;
  height: 45px;
  border-radius: 47% 47% 44% 44%;
  background:
    radial-gradient(circle at 34% 45%, #111 0 5%, transparent 5.5%),
    radial-gradient(circle at 66% 45%, #111 0 5%, transparent 5.5%),
    radial-gradient(circle at 50% 63%, #111 0 5%, transparent 5.5%),
    #d99c55;
}

.bubble-dog::after {
  top: 22px;
  left: 20px;
  width: 18px;
  height: 34px;
  border-radius: 50% 20% 50% 40%;
  background: #b9783e;
  box-shadow: 47px 0 0 #b9783e;
}

.bubble-drill::before {
  top: 39px;
  left: 24px;
  width: 52px;
  height: 25px;
  border-radius: 7px;
  background: #165c75;
  box-shadow: 13px 24px 0 -5px #165c75;
}

.bubble-drill::after {
  top: 45px;
  right: 16px;
  width: 23px;
  height: 7px;
  border-radius: 0 5px 5px 0;
  background: #2b303a;
}

.bubble-shelf::before {
  top: 24px;
  left: 27px;
  width: 50px;
  height: 62px;
  border: 5px solid #222;
  border-radius: 3px;
}

.bubble-shelf::after {
  top: 45px;
  left: 31px;
  width: 42px;
  height: 5px;
  background: #222;
  box-shadow: 0 19px 0 #222;
}

.bubble-plant::before {
  bottom: 22px;
  left: 39px;
  width: 27px;
  height: 24px;
  border-radius: 4px 4px 12px 12px;
  background: #c18c5a;
}

.bubble-plant::after {
  top: 19px;
  left: 29px;
  width: 46px;
  height: 52px;
  background:
    radial-gradient(ellipse at 50% 100%, #1c9b58 0 35%, transparent 36%) 0 0 / 23px 34px,
    radial-gradient(ellipse at 50% 100%, #4cc56b 0 35%, transparent 36%) 14px 6px / 26px 36px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 16px 0 20px;
}

.section-heading h2,
.club-banner h2,
.shop-hero h1 {
  margin: 0;
  font-family: var(--bf-display);
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.section-heading h2::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 24px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--bf-pink);
  transform: rotate(-18deg);
}

.product-showcase,
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bf-product-card,
.woocommerce ul.products li.product.bf-product-card {
  position: relative;
  display: grid;
  align-content: start;
  min-width: 0;
  min-height: 260px;
  padding: 8px 8px 14px;
  border: 1px solid var(--bf-line);
  border-radius: var(--bf-card-radius);
  background: var(--bf-surface);
  box-shadow: 0 8px 20px rgba(7, 22, 41, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.bf-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(7, 22, 41, 0.12);
}

.bf-product-media {
  position: relative;
  display: block;
  aspect-ratio: 1.32;
  overflow: hidden;
  border-radius: 7px;
  background: linear-gradient(135deg, #fff3ce, #f4f7fb);
}

.bf-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.discount-badge {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 8px;
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--bf-pink);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.wish-heart {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--bf-line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #111827;
}

.wish-heart svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.bf-product-card h3,
.woocommerce-loop-product__title {
  min-height: 42px;
  margin: 12px 2px 6px;
  color: var(--bf-ink);
  font-family: var(--bf-font);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.bf-price,
.woocommerce ul.products li.product .price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 2px 10px;
  color: var(--bf-ink);
  font-size: 19px;
  font-weight: 900;
}

.bf-price del,
.woocommerce ul.products li.product .price del {
  color: #7b8494;
  font-size: 14px;
  font-weight: 700;
  opacity: 1;
}

.bf-price ins,
.woocommerce ul.products li.product .price ins {
  text-decoration: none;
}

.bf-product-card .button,
.woocommerce ul.products li.product .button {
  min-height: 38px;
  margin: auto 2px 0;
  padding: 0 14px;
  font-size: 12px;
}

.demo-product-art {
  position: absolute;
  inset: 0;
  display: block;
}

.demo-sofa {
  background:
    linear-gradient(#9a7555, #9a7555) 44% 82% / 70% 7% no-repeat,
    linear-gradient(90deg, #74553f, #8b674b) 54% 57% / 78% 33% no-repeat,
    linear-gradient(90deg, #a98566, #d8ba99) 54% 43% / 74% 30% no-repeat,
    radial-gradient(circle at 30% 34%, #e9dccf 0 10%, transparent 11%),
    linear-gradient(135deg, #f5e2c8, #fff5dc);
}

.demo-box {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.08) 0 3px, transparent 3px 10px),
    linear-gradient(160deg, #222a34, #05080e);
}

.demo-table {
  background:
    radial-gradient(circle at 20% 28%, #2e9f60 0 9%, transparent 10%),
    radial-gradient(circle at 35% 22%, #77bd6b 0 8%, transparent 9%),
    linear-gradient(#634b36, #634b36) 50% 58% / 76% 8% no-repeat,
    linear-gradient(#634b36, #634b36) 37% 76% / 5% 34% no-repeat,
    linear-gradient(#634b36, #634b36) 64% 76% / 5% 34% no-repeat,
    linear-gradient(135deg, #dfeff2, #fff2d9);
}

.demo-chair {
  background:
    radial-gradient(ellipse at 53% 43%, transparent 0 25%, #1f2937 26% 32%, transparent 33%),
    linear-gradient(#1f2937, #1f2937) 53% 62% / 5% 37% no-repeat,
    linear-gradient(135deg, #f7e4c3, #fff);
}

.demo-tools {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.12) 0 8px, transparent 8px 17px),
    linear-gradient(135deg, #1f2937, #030712);
}

.demo-dogbed {
  background:
    radial-gradient(ellipse at 52% 42%, #b46d3e 0 18%, transparent 19%),
    radial-gradient(ellipse at 50% 64%, #263545 0 42%, transparent 43%),
    linear-gradient(135deg, #f5f8fb, #dbe9f0);
}

.club-banner {
  display: grid;
  grid-template-columns: 190px minmax(220px, 1fr) minmax(320px, 460px);
  align-items: center;
  gap: 22px;
  min-height: 128px;
  margin-top: 22px;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 20%, rgba(255, 255, 255, 0.24) 0 8%, transparent 9%),
    linear-gradient(135deg, #12b8ad, #079e9c 58%, #11bfa8);
  color: #fff;
  box-shadow: 0 16px 32px rgba(18, 184, 173, 0.22);
}

.club-mascot {
  align-self: stretch;
  min-height: 128px;
  background: url("../images/hero-fynny.png") 61% 52% / 420px auto no-repeat;
}

.club-banner h2 {
  color: #fff;
  font-size: clamp(28px, 3.5vw, 36px);
}

.club-banner p {
  max-width: 430px;
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 800;
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr 150px;
  min-width: 0;
  margin-right: 24px;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.26);
  border-radius: 9px;
  background: #fff;
}

.newsletter-form input {
  min-width: 0;
  height: 52px;
  padding: 0 18px;
  border: 0;
  outline: 0;
}

.newsletter-form button {
  border: 0;
  background: var(--bf-pink);
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.newsletter-form.is-sent button {
  background: #0f9f6e;
}

.footer-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 28px;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  background: #fff8e6;
}

.footer-benefits div {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 14px;
  padding: 24px;
  border-right: 1px solid #f0e2c4;
}

.footer-benefits div:last-child {
  border-right: 0;
}

.footer-benefits svg {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  color: var(--bf-pink);
}

.footer-benefits strong {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.footer-benefits span {
  color: #3c4556;
  font-size: 14px;
  font-weight: 700;
}

.site-footer {
  margin-top: 36px;
  background: #071629;
  color: #fff;
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 30px 0 38px;
}

.footer-brand {
  font-size: 36px;
}

.footer-main p {
  margin: 0;
  color: #c8d1df;
}

.footer-main .menu {
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-main a {
  color: #fff;
  font-weight: 800;
}

.content-page {
  padding: 42px 0;
}

.entry-card {
  max-width: 920px;
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid var(--bf-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(7, 22, 41, 0.08);
}

.entry-card h1 {
  margin-top: 0;
  font-family: var(--bf-display);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
}

.barafynd-shop {
  padding: 34px 0 44px;
}

.shop-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
  padding: 34px;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff2b4, #fff 54%, #dcfbf6);
}

.shop-hero h1 {
  font-size: clamp(42px, 6vw, 66px);
}

.shop-hero-badge {
  display: inline-grid;
  min-height: 48px;
  place-items: center;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--bf-pink);
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  transform: rotate(4deg);
}

.shop-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
}

.shop-category-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 2px solid var(--bf-line);
  border-radius: 999px;
  background: #fff;
  color: var(--bf-ink);
  font-weight: 900;
  text-decoration: none;
}

.shop-category-link:hover,
.shop-category-link:focus,
.shop-category-link.is-active {
  border-color: var(--bf-teal);
  background: #dcfbf6;
  color: var(--bf-ink);
}

.shop-subcategory-tree {
  display: grid;
  gap: 14px;
  margin: 0 0 28px;
  padding: 18px;
  border: 2px solid #d8f4ef;
  border-radius: 8px;
  background: #f4fffd;
}

.shop-subcategory-tree__intro {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}

.shop-subcategory-tree__intro span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--bf-yellow);
  color: var(--bf-ink);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.shop-subcategory-tree__intro strong {
  font-size: 20px;
}

.shop-subcategory-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.shop-subcategory-link {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 2px solid var(--bf-line);
  border-radius: 8px;
  background: #fff;
  color: var(--bf-ink);
  font-weight: 900;
  text-decoration: none;
}

.shop-subcategory-link small {
  color: var(--bf-muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.shop-subcategory-link:hover,
.shop-subcategory-link:focus,
.shop-subcategory-link.is-active {
  border-color: var(--bf-pink);
  background: #fff4f8;
  color: var(--bf-ink);
}

.shop-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding: 14px 18px;
  border: 1px solid var(--bf-line);
  border-radius: 12px;
  background: #fff;
}

.woocommerce-result-count {
  margin: 0;
  color: var(--bf-muted);
  font-weight: 700;
}

.woocommerce-ordering select {
  min-height: 40px;
  padding: 0 36px 0 12px;
  border: 1px solid var(--bf-line);
  border-radius: 8px;
  background: #fff;
  color: var(--bf-ink);
  font-weight: 700;
}

.woocommerce nav.woocommerce-pagination {
  margin-top: 28px;
  text-align: center;
}

.woocommerce nav.woocommerce-pagination ul {
  display: inline-flex;
  gap: 8px;
  border: 0;
}

.woocommerce nav.woocommerce-pagination ul li {
  border: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--bf-line);
  border-radius: 50%;
  background: #fff;
  color: var(--bf-ink);
  font-weight: 900;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--bf-pink);
  color: #fff;
}

.woocommerce div.product {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  padding: 34px 0;
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary {
  width: auto;
  float: none;
}

.woocommerce div.product div.images img {
  border-radius: 14px;
  background: #f5f7fb;
}

.woocommerce div.product .product_title {
  margin: 0 0 14px;
  font-family: var(--bf-display);
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--bf-ink);
  font-size: 30px;
  font-weight: 900;
}

.woocommerce div.product form.cart {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.woocommerce .quantity .qty {
  width: 82px;
  min-height: 48px;
  border: 1px solid var(--bf-line);
  border-radius: 8px;
  font-weight: 900;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top-color: var(--bf-pink);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(7, 22, 41, 0.08);
}

.woocommerce-message::before,
.woocommerce-info::before {
  color: var(--bf-pink);
}

.barafynd-bonus-panel,
.barafynd-bonus-hint {
  border: 2px solid #ffd51f;
  border-radius: 8px;
  background: #fff9d8;
  color: var(--bf-ink);
}

.barafynd-bonus-panel {
  margin: 0 0 18px;
  padding: 16px 18px;
}

.barafynd-bonus-panel h2 {
  margin: 0 0 8px;
  font-family: "Baloo 2", cursive;
  font-size: 26px;
}

.barafynd-bonus-panel p,
.barafynd-bonus-hint {
  margin: 0;
  font-weight: 800;
}

.barafynd-bonus-hint {
  display: inline-flex;
  margin: 8px 0 12px;
  padding: 8px 12px;
}

@media (max-width: 1120px) {
  .header-main {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px 0;
  }

  .brand {
    justify-self: center;
  }

  .header-actions {
    justify-content: center;
  }

  .product-showcase,
  .woocommerce ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-bubbles {
    grid-template-columns: repeat(4, 1fr);
  }

  .trust-strip {
    width: calc(100% - 32px);
  }
}

@media (max-width: 860px) {
  .top-benefits {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .primary-nav {
    justify-content: flex-start;
    padding-bottom: 14px;
  }

  .menu-toggle {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: var(--bf-ink);
    color: #fff;
    font-weight: 900;
  }

  .primary-nav .menu {
    position: absolute;
    top: 100%;
    right: 16px;
    left: 16px;
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 12px;
    border: 1px solid var(--bf-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--bf-shadow);
  }

  .primary-nav .menu.is-open {
    display: grid;
  }

  .primary-nav a {
    padding: 10px;
  }

  .hero-panel {
    min-height: 620px;
  }

  .hero-art {
    object-position: 62% 50%;
  }

  .hero-panel::after {
    background: linear-gradient(180deg, rgba(255, 249, 233, 0.98) 0%, rgba(255, 249, 233, 0.9) 38%, rgba(255, 249, 233, 0.18) 100%);
  }

  .hero-badge {
    top: auto;
    right: 22px;
    bottom: 26px;
  }

  .hero-copy {
    max-width: 100%;
    padding: 30px;
  }

  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
    border-radius: 18px;
  }

  .trust-strip div:nth-child(2) {
    border-right: 0;
  }

  .trust-strip div {
    border-bottom: 1px solid var(--bf-line);
  }

  .trust-strip div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .club-banner {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .club-mascot {
    display: none;
  }

  .newsletter-form {
    margin-right: 0;
  }

  .footer-benefits {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-main .menu {
    justify-content: flex-start;
  }

  .woocommerce div.product {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .barafynd-container {
    width: calc(100vw - 22px);
    max-width: calc(100vw - 22px);
  }

  .brand {
    justify-self: start;
  }

  .brand-mascot {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .brand-copy strong {
    font-size: 34px;
  }

  .brand-copy small {
    font-size: 11px;
  }

  .product-search {
    grid-template-columns: 1fr 50px;
    width: calc(100vw - 22px);
    max-width: calc(100vw - 22px);
  }

  .product-search input[type="search"],
  .product-search button {
    height: 50px;
  }

  .header-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: calc(100vw - 22px);
    max-width: calc(100vw - 22px);
    gap: 8px;
  }

  .header-actions a {
    min-width: 0;
    padding: 10px 8px;
    border: 1px solid var(--bf-line);
    border-radius: 8px;
  }

  .hero-panel {
    min-height: 650px;
    border-radius: 18px;
  }

  .hero-copy h1 {
    font-size: 44px;
  }

  .hero-copy p {
    font-size: 15px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-badge {
    width: 140px;
    right: 10px;
    transform: rotate(7deg) scale(0.92);
  }

  .trust-strip {
    grid-template-columns: 1fr;
    width: calc(100% - 18px);
    margin-top: -18px;
  }

  .trust-strip div,
  .trust-strip div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--bf-line);
  }

  .trust-strip div:last-child {
    border-bottom: 0;
  }

  .category-bubbles {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 12px;
  }

  .product-showcase,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .bf-product-card,
  .woocommerce ul.products li.product.bf-product-card {
    min-height: 240px;
  }

  .bf-price {
    font-size: 17px;
  }

  .newsletter-form {
    grid-template-columns: 1fr;
  }

  .newsletter-form button {
    min-height: 48px;
  }

  .footer-benefits {
    grid-template-columns: 1fr;
  }

  .footer-benefits div {
    border-right: 0;
    border-bottom: 1px solid #f0e2c4;
  }

  .shop-hero,
  .shop-tools {
    align-items: flex-start;
    flex-direction: column;
  }

  .shop-category-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .shop-subcategory-tree {
    padding: 14px;
  }

  .shop-subcategory-list {
    grid-template-columns: 1fr 1fr;
  }

  .shop-category-link {
    padding: 0 12px;
    font-size: 14px;
  }
}

@media (max-width: 430px) {
  .hero-copy h1 {
    font-size: 42px;
  }

  .primary-nav .menu {
    grid-template-columns: 1fr;
  }

  .product-showcase,
  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }

  .shop-category-nav {
    grid-template-columns: 1fr;
  }

  .shop-subcategory-list {
    grid-template-columns: 1fr;
  }
}

/* Professional polish for the active Barafynd theme. */
.site-header {
  box-shadow: 0 10px 28px rgba(7, 22, 41, 0.06);
}

.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

.top-benefits {
  min-height: 34px;
  gap: 22px;
  background: #ffd21a;
  font-size: 13px;
}

.header-main {
  padding: 16px 0 14px;
}

.brand-copy strong,
.footer-brand {
  font-family: var(--bf-font);
  letter-spacing: -0.01em;
}

.brand-copy strong {
  font-size: clamp(30px, 3vw, 38px);
}

.brand-copy small {
  color: var(--bf-muted);
  font-size: 12px;
}

.brand-mascot {
  width: 52px;
  height: 52px;
  flex-basis: 52px;
  border-radius: 14px;
}

.product-search {
  border-width: 1px;
  box-shadow: 0 8px 22px rgba(7, 22, 41, 0.05);
}

.product-search input[type="search"],
.product-search button {
  height: 52px;
}

.header-actions {
  gap: 10px;
  justify-content: flex-end;
}

.header-actions a {
  min-width: 64px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 12px;
}

.header-actions a:hover {
  border-color: var(--bf-line);
  background: #f8fafc;
}

.header-actions svg {
  width: 24px;
  height: 24px;
}

.primary-nav {
  min-height: auto;
  padding: 0 0 12px;
}

.primary-nav .menu {
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
  max-width: 100%;
}

.primary-nav a {
  min-height: 34px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.15;
  text-align: center;
}

.primary-nav .current-menu-item > a,
.primary-nav a:hover {
  background: #fff4f8;
}

.primary-nav .current-menu-item > a::after,
.primary-nav a:hover::after {
  display: none;
}

.barafynd-shop {
  padding-top: 20px;
}

.shop-hero {
  align-items: center;
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid var(--bf-line);
  border-radius: 12px;
  background: linear-gradient(135deg, #fff 0%, #fff9e9 62%, #ddfbf7 100%);
}

.shop-hero h1 {
  font-family: var(--bf-font);
  font-size: clamp(34px, 4.6vw, 52px);
  letter-spacing: -0.02em;
}

.shop-hero-badge {
  transform: none;
  border-radius: 8px;
  background: var(--bf-ink);
  font-size: 13px;
}

.shop-category-nav {
  gap: 8px;
  margin-bottom: 16px;
}

.shop-category-link {
  min-height: 40px;
  padding: 0 14px;
  border-width: 1px;
  border-radius: 8px;
  font-size: 13px;
}

.shop-subcategory-tree {
  gap: 12px;
  padding: 16px;
  border-width: 1px;
  background: #f7fffd;
}

.shop-subcategory-list {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}

.shop-subcategory-link {
  min-height: 50px;
  padding: 10px 12px;
  border-width: 1px;
}

.shop-tools {
  margin-bottom: 18px;
  border-radius: 8px;
}

.product-showcase,
.woocommerce ul.products {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
  content: none;
}

.bf-product-card,
.woocommerce ul.products li.product,
.woocommerce ul.products li.product.bf-product-card {
  float: none !important;
  clear: none !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
}

.bf-product-card,
.woocommerce ul.products li.product.bf-product-card {
  min-height: 100%;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(7, 22, 41, 0.07);
}

.bf-product-media {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background: #f6f8fb;
}

.bf-product-media img {
  object-fit: contain;
  padding: 8px;
}

.bf-product-card h3,
.woocommerce-loop-product__title {
  min-height: 48px;
  margin: 12px 2px 8px;
  font-size: 15px;
  line-height: 1.25;
}

.bf-price,
.woocommerce ul.products li.product .price {
  margin-bottom: 12px;
  font-size: 20px;
}

.bf-product-card .button,
.woocommerce ul.products li.product .button {
  display: inline-flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

.discount-badge {
  border-radius: 8px;
}

.wish-heart {
  border-radius: 8px;
}

@media (max-width: 1120px) {
  .header-main {
    grid-template-columns: minmax(220px, auto) minmax(280px, 1fr) auto;
    gap: 14px;
    padding: 14px 0 12px;
  }

  .brand {
    justify-self: start;
  }

  .header-actions {
    justify-content: flex-end;
  }

  .product-showcase,
  .woocommerce ul.products {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (max-width: 860px) {
  .header-main {
    grid-template-columns: 1fr;
  }

  .brand,
  .header-actions {
    justify-self: center;
  }

  .primary-nav {
    justify-content: space-between;
    padding-bottom: 12px;
  }

  .primary-nav .menu {
    max-height: min(70vh, 520px);
    overflow-y: auto;
  }
}

@media (max-width: 640px) {
  .top-benefits {
    min-height: 32px;
  }

  .brand-copy strong {
    font-size: 30px;
  }

  .brand-mascot {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .header-actions a {
    background: #fff;
  }

  .shop-hero {
    padding: 18px;
  }

  .shop-subcategory-list,
  .shop-category-nav {
    grid-template-columns: 1fr 1fr;
  }

  .product-showcase,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .bf-product-card h3,
  .woocommerce-loop-product__title {
    font-size: 14px;
  }

  .bf-price,
  .woocommerce ul.products li.product .price {
    font-size: 17px;
  }
}

@media (max-width: 430px) {
  .shop-subcategory-list,
  .shop-category-nav,
  .product-showcase,
  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }
}


