/* =============================================================
   ANIMALITO BRAND — design tokens & reusable components
   Loaded AFTER main.css. Specific classes only — does not touch
   existing global selectors. Safe to remove for rollback.
   ============================================================= */

:root {
  --brand-blue: #3C7EA8;
  --brand-blue-dark: #2d6a91;
  --brand-bg: #F4F6FF;
  --brand-white: #FFFFFF;
  --brand-dark: #181826;
  --brand-muted: #6E7490;
  --brand-muted2: #A5AABF;
  --brand-border: rgba(24,24,38,0.08);
  --brand-border2: rgba(24,24,38,0.15);
}

/* Apply brand body styles ONLY when class is present, NOT globally —
   so admin pages, configure pages etc. don't get hit. */
body.brand {
  font-family: "Figtree", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  background: var(--brand-bg);
  color: var(--brand-dark);
  -webkit-font-smoothing: antialiased;
}

/* ==== NAV (only when body.brand) ==== */
body.brand .b-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244,246,255,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--brand-border);
}
.b-nav-in {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1120px; margin: 0 auto; padding: 0 36px; height: 68px;
}
.b-nav-logo { display: flex; align-items: center; text-decoration: none; }
.b-nav-logo img { display: block; height: 44px; }
.b-nav-links {
  display: flex; align-items: center; gap: 28px;
  list-style: none; margin: 0; padding: 0;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.b-nav-links a {
  font-size: 15px; font-weight: 500; color: var(--brand-muted);
  text-decoration: none; transition: color .2s;
}
.b-nav-links a:hover, .b-nav-links a.active { color: var(--brand-dark); }
.b-nav-links a.active { font-weight: 600; }
.b-nav-right { display: flex; align-items: center; gap: 14px; }
.b-nav-cta {
  background: var(--brand-dark); color: #fff;
  font-family: inherit; font-size: 14px; font-weight: 500;
  padding: 10px 22px; border-radius: 50px;
  text-decoration: none; border: none; cursor: pointer;
  transition: background .2s, transform .15s; white-space: nowrap;
}
.b-nav-cta:hover { background: var(--brand-blue); transform: translateY(-1px); }
.b-nav-link {
  font-size: 14px; font-weight: 500; color: var(--brand-muted);
  text-decoration: none; transition: color .2s;
}
.b-nav-link:hover { color: var(--brand-dark); }
.b-nav-cart {
  font-size: 20px; text-decoration: none; transition: transform .15s;
}
.b-nav-cart:hover { transform: scale(1.1); }
.b-user { font-size: 13px; color: var(--brand-muted); }
.b-logout-form { display: inline; }
.b-logout-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 500;
  color: var(--brand-muted); transition: color .2s;
}
.b-logout-btn:hover { color: var(--brand-dark); }
@media (max-width: 980px) { .b-nav-links { display: none; } }

/* ==== BUTTONS ==== */
.b-btn-primary {
  background: var(--brand-dark); color: #fff;
  font-family: inherit; font-size: 16px; font-weight: 500;
  padding: 15px 34px; border-radius: 50px;
  text-decoration: none; border: none; cursor: pointer;
  transition: background .22s, transform .15s, box-shadow .22s;
  box-shadow: 0 6px 26px rgba(24,24,38,.16); display: inline-block;
}
.b-btn-primary:hover { background: var(--brand-blue); transform: translateY(-3px); box-shadow: 0 12px 36px rgba(60,126,168,.28); }
.b-btn-secondary {
  background: transparent; color: var(--brand-dark);
  font-family: inherit; font-size: 16px; font-weight: 500;
  padding: 15px 30px; border-radius: 50px;
  text-decoration: none; border: 1.5px solid var(--brand-border2);
  cursor: pointer; transition: border-color .2s, transform .15s;
  display: inline-block;
}
.b-btn-secondary:hover { border-color: var(--brand-dark); transform: translateY(-3px); }
.b-btn-white {
  background: #fff; color: var(--brand-dark);
  font-family: inherit; font-size: 16px; font-weight: 500;
  padding: 15px 34px; border-radius: 50px;
  text-decoration: none; transition: all .2s; display: inline-block;
}
.b-btn-white:hover { background: var(--brand-blue); color: #fff; transform: translateY(-3px); }
.b-btn-outline-w {
  background: transparent; color: #fff;
  font-family: inherit; font-size: 16px; font-weight: 500;
  padding: 15px 30px; border-radius: 50px;
  text-decoration: none; border: 1.5px solid rgba(255,255,255,.22);
  transition: border-color .2s, transform .15s; display: inline-block;
}
.b-btn-outline-w:hover { border-color: #fff; transform: translateY(-3px); }

/* ==== TYPOGRAPHY ==== */
body.brand h1.b-h1 { font-size: clamp(46px,7vw,84px); font-weight: 600; line-height: 1.04; letter-spacing: -.025em; color: var(--brand-dark); margin: 0; }
body.brand h2.b-h2 { font-size: clamp(30px,4vw,52px); font-weight: 600; letter-spacing: -.025em; line-height: 1.08; margin: 0 0 14px; color: var(--brand-dark); }
body.brand h3.b-h3 { font-size: clamp(18px,2vw,22px); font-weight: 600; letter-spacing: -.01em; color: var(--brand-dark); margin: 0; }
.b-sub { font-size: 17px; font-weight: 400; color: var(--brand-muted); max-width: 500px; margin: 0 auto 60px; line-height: 1.65; }
.b-tag { display: inline-block; background: rgba(60,126,168,.09); color: var(--brand-blue); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 6px 14px; border-radius: 50px; margin-bottom: 18px; }
.b-pill { background: var(--brand-white); border: 1px solid var(--brand-border); border-radius: 50px; padding: 7px 16px; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--brand-muted); box-shadow: 0 2px 10px rgba(24,24,38,.04); }
.b-hdot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-blue); animation: b-pulse 2s infinite; display: inline-block; }
@keyframes b-pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.75); } }

/* ==== LAYOUT ==== */
body.brand .b-container { max-width: 1120px; margin: 0 auto; padding: 0 36px; }

/* ==== HERO ==== */
.b-hero { min-height: 80vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; padding: 64px 24px 80px; text-align: center; }
.b-hero-content { position: relative; z-index: 2; max-width: 820px; }
.b-hero-label { font-size: 12px; font-weight: 500; color: var(--brand-muted); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 28px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.b-hero .b-accent { color: var(--brand-blue); }
.b-hero-sub { font-size: 18px; font-weight: 400; color: var(--brand-muted); max-width: 500px; margin: 26px auto 42px; line-height: 1.65; }
.b-hero-btns { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.b-hero-pills { margin-top: 34px; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* ==== FLOAT PARALLAX SHAPES ==== */
.b-float { position: absolute; pointer-events: none; will-change: transform; opacity: .8; }

/* ==== SECTIONS ==== */
body.brand .b-section { padding: 100px 0; }
.b-steps-bg { background: var(--brand-bg); }
.b-products-bg { background: var(--brand-white); }
.b-steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.b-step-card { background: var(--brand-white); border-radius: 22px; border: 1px solid var(--brand-border); padding: 34px 28px; text-align: left; transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s; }
.b-step-card:hover { transform: translateY(-8px); box-shadow: 0 22px 52px rgba(24,24,38,.09); }
.b-step-num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; font-size: 18px; font-weight: 600; margin-bottom: 18px; background: rgba(60,126,168,.10); color: var(--brand-blue); }
.b-step-icon { font-size: 34px; margin-bottom: 10px; display: block; }
.b-step-card p { font-size: 14px; font-weight: 400; color: var(--brand-muted); line-height: 1.65; margin: 8px 0 0; }
@media (max-width: 980px) { .b-steps-grid { grid-template-columns: 1fr; } }

/* ==== PRODUCT GRID ==== */
.b-prod-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.b-prod-card { background: var(--brand-bg); border-radius: 20px; border: 1px solid var(--brand-border); overflow: hidden; transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s; cursor: pointer; text-decoration: none; display: block; }
.b-prod-card:hover { transform: translateY(-8px); box-shadow: 0 20px 48px rgba(24,24,38,.11); }
.b-prod-thumb { height: 195px; display: flex; align-items: center; justify-content: center; font-size: 58px; position: relative; background: linear-gradient(135deg,#dbedf8,#c4e2f2); }
.b-prod-body { padding: 16px 18px; }
.b-prod-name { font-size: 15px; font-weight: 600; color: var(--brand-dark); margin-bottom: 3px; }
.b-prod-desc { font-size: 13px; font-weight: 400; color: var(--brand-muted); margin-bottom: 12px; line-height: 1.5; }
.b-prod-row { display: flex; align-items: center; justify-content: space-between; }
.b-prod-price { font-size: 21px; font-weight: 600; color: var(--brand-dark); letter-spacing: -.02em; }
.b-prod-price sub { font-size: 12px; font-weight: 400; color: var(--brand-muted); vertical-align: baseline; }
@media (max-width: 980px) { .b-prod-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .b-prod-grid { grid-template-columns: 1fr; } }

/* ==== CTA SECTION ==== */
.b-cta-section { background: var(--brand-dark); padding: 100px 24px; position: relative; overflow: hidden; text-align: center; }
.b-cta-section::before { content: ""; position: absolute; width: 580px; height: 580px; border-radius: 50%; background: radial-gradient(circle, rgba(60,126,168,.16), transparent 70%); top: -210px; left: -110px; pointer-events: none; }
.b-cta-section::after { content: ""; position: absolute; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(91,158,201,.13), transparent 70%); bottom: -190px; right: -70px; pointer-events: none; }
.b-cta-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.b-cta-section h2 { color: #fff; }
.b-cta-section .b-sub { color: rgba(255,255,255,.52); margin-bottom: 42px; }
.b-cta-btns { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ==== FOOTER ==== */
body.brand footer.b-footer { background: var(--brand-white); border-top: 1px solid var(--brand-border); padding: 56px 0 32px; }
.b-foot-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr; gap: 48px; max-width: 1120px; margin: 0 auto; padding: 0 36px; }
.b-foot-logo { margin-bottom: 14px; }
.b-foot-logo img { display: block; height: 38px; }
.b-foot-tagline { font-size: 14px; color: var(--brand-muted); line-height: 1.65; max-width: 230px; margin-bottom: 20px; }
.b-foot-col h4 { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-dark); margin: 0 0 14px; }
.b-foot-col ul { list-style: none; padding: 0; margin: 0; }
.b-foot-col li { margin-bottom: 9px; }
.b-foot-col a { font-size: 14px; color: var(--brand-muted); text-decoration: none; transition: color .2s; }
.b-foot-col a:hover { color: var(--brand-blue); }
.b-foot-bottom { max-width: 1120px; margin: 40px auto 0; padding: 20px 36px 0; border-top: 1px solid var(--brand-border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.b-foot-copy { font-size: 13px; color: var(--brand-muted2); }
@media (max-width: 980px) { .b-foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .b-foot-grid { grid-template-columns: 1fr; } }

/* ==== ANIM ==== */
.b-anim { opacity: 0; transform: translateY(36px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.b-anim.visible { opacity: 1; transform: translateY(0); }
.b-d1 { transition-delay: .1s; } .b-d2 { transition-delay: .2s; } .b-d3 { transition-delay: .32s; } .b-d4 { transition-delay: .44s; }

/* ====================================================================
   BRAND OVERRIDES — neutralize beige/orange leftovers from main.css
   on body.brand pages only. Admin and status badges keep original.
   ==================================================================== */

body.brand {
  background: var(--brand-bg) !important;
}

body.brand .card,
body.brand .panel,
body.brand .legal-document,
body.brand .legal-content,
body.brand .container > article,
body.brand .container > section.legal,
body.brand .empty-state,
body.brand .info-block,
body.brand .product-card,
body.brand .breadcrumb {
  background: var(--brand-white);
}

body.brand .site-main {
  background: var(--brand-bg);
}

body.brand main h1,
body.brand main h2,
body.brand main h3,
body.brand main h4 {
  color: var(--brand-dark);
}

body.brand main p,
body.brand main li {
  color: var(--brand-dark);
}

/* Links inside main: blue instead of inherited beige/orange.
   Excludes nav/footer logos and brand buttons. */
body.brand main a:not(.b-btn-primary):not(.b-btn-secondary):not(.b-btn-white):not(.b-btn-outline-w):not(.b-nav-cta):not(.b-prod-card):not(.b-nav-logo):not(.b-foot-logo) {
  color: var(--brand-blue);
}
body.brand main a:not(.b-btn-primary):not(.b-btn-secondary):not(.b-btn-white):not(.b-btn-outline-w):not(.b-nav-cta):not(.b-prod-card):not(.b-nav-logo):not(.b-foot-logo):hover {
  color: var(--brand-blue-dark);
}

/* Legal pages: white card layout */
body.brand .legal-document,
body.brand article.legal {
  max-width: 760px;
  margin: 60px auto;
  padding: 40px 36px;
  background: var(--brand-white);
  border-radius: 20px;
  border: 1px solid var(--brand-border);
  line-height: 1.7;
}

/* Product detail mockup: white card, dark mockup color */
body.brand .product-detail-mockup-svg {
  --mockup-body: var(--brand-blue);
  background: var(--brand-white) !important;
  border-color: var(--brand-border) !important;
}

/* Mockup card on product list */
body.brand .b-prod-thumb svg {
  --mockup-body: var(--brand-blue);
  width: 70%;
  height: 70%;
  display: block;
}
body.brand .b-prod-thumb {
  background: var(--brand-white) !important;
  border-bottom: 1px solid var(--brand-border);
}

/* Empty state, muted text neutral grays not beige */
body.brand .empty-state,
body.brand .muted {
  color: var(--brand-muted) !important;
}

/* ====================================================================
   BRAND PATCH 2 — fix mockup color, dashboard cards, generic btn
   ==================================================================== */

/* Mockup silhouette: BLUE not dark (user preference: option 1) */
body.brand .product-detail-mockup-svg {
  --mockup-body: var(--brand-blue);
}
body.brand .b-prod-thumb-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-white) !important;
  --mockup-body: var(--brand-blue);
}
body.brand .b-prod-thumb-svg svg {
  width: 100%;
  height: 100%;
  max-height: 180px;
  display: block;
}

/* Dashboard cards / pet cards — kill beige bg */
body.brand .pet-card,
body.brand .dashboard-card,
body.brand .summary-card,
body.brand .info-card,
body.brand .add-pet-card,
body.brand .pet-tile,
body.brand .dashboard-tile,
body.brand .dashboard-section,
body.brand .feature-card {
  background: var(--brand-white) !important;
  border: 1px solid var(--brand-border) !important;
  border-radius: 18px !important;
}

/* Generic .btn / .btn-primary fallback styling on brand pages */
body.brand main .btn-primary:not(.b-btn-primary):not(.b-btn-secondary):not(.b-btn-white):not(.b-btn-outline-w):not(.b-nav-cta) {
  background: var(--brand-dark) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 12px 26px !important;
  font-family: "Figtree", sans-serif !important;
  font-weight: 500 !important;
  transition: background 0.2s !important;
  text-decoration: none !important;
}
body.brand main .btn-primary:not(.b-btn-primary):not(.b-btn-secondary):not(.b-btn-white):not(.b-btn-outline-w):not(.b-nav-cta):hover {
  background: var(--brand-blue) !important;
}
body.brand main .btn-secondary:not(.b-btn-primary):not(.b-btn-secondary):not(.b-btn-white):not(.b-btn-outline-w):not(.b-nav-cta) {
  background: transparent !important;
  color: var(--brand-dark) !important;
  border: 1.5px solid var(--brand-border2) !important;
  border-radius: 50px !important;
  padding: 12px 26px !important;
  font-family: "Figtree", sans-serif !important;
  font-weight: 500 !important;
  text-decoration: none !important;
}
body.brand main .btn-large {
  font-size: 16px !important;
  padding: 14px 32px !important;
}
body.brand main .btn-small {
  font-size: 13px !important;
  padding: 8px 18px !important;
}
body.brand main .btn-danger {
  background: #c14a4a !important;
  color: #fff !important;
  border-radius: 50px !important;
}
body.brand main .btn-link {
  background: none !important;
  border: none !important;
  color: var(--brand-blue) !important;
  text-decoration: underline !important;
  cursor: pointer !important;
  padding: 0 !important;
  font-family: "Figtree", sans-serif !important;
}

/* Hero / landing-style large bg blocks neutralized */
body.brand .landing,
body.brand .hero,
body.brand .features,
body.brand .trust-section {
  background: transparent !important;
}
body.brand .feature-card {
  padding: 24px;
}

/* Modal dialog inside brand pages — give it brand look */
body.brand .modal-dialog {
  border-radius: 20px !important;
  background: var(--brand-white) !important;
  border: 1px solid var(--brand-border) !important;
}

/* ====================================================================
   BRAND PATCH 3 — bigger nav logo + ANIMALITO wordmark in hero
   ==================================================================== */

/* Bigger nav logo */
body.brand .b-nav-logo img {
  height: 56px;  /* was 44px */
}
body.brand .b-foot-logo img {
  height: 46px;  /* was 38px */
}

/* ANIMALITO wordmark — used in hero on landing */
.b-wordmark {
  font-family: "Figtree", sans-serif;
  font-size: clamp(56px, 11vw, 120px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 22px;
  text-align: center;
  text-transform: lowercase;
}
.b-wordmark-blue { color: var(--brand-blue); }
.b-wordmark-dark { color: var(--brand-dark); }

@media (max-width: 600px) {
  body.brand .b-nav-logo img { height: 44px; }
}

/* ====================================================================
   BRAND PATCH 4 — product detail: size chart, variant selector,
                   single-variant info — kill beige artifacts
   ==================================================================== */

body.brand .product-detail-mockup-svg {
  background: var(--brand-white) !important;
  border: 1px solid var(--brand-border) !important;
  border-radius: 18px !important;
}

body.brand .size-chart-details {
  margin-top: 28px;
  background: var(--brand-white);
  border: 1px solid var(--brand-border);
  border-radius: 14px;
  overflow: hidden;
}
body.brand .size-chart-details summary {
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-dark);
  cursor: pointer;
  background: var(--brand-white);
  list-style: none;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
body.brand .size-chart-details summary::-webkit-details-marker { display: none; }
body.brand .size-chart-details[open] summary {
  border-bottom: 1px solid var(--brand-border);
}
body.brand .size-chart-wrapper {
  padding: 16px 20px;
  overflow-x: auto;
  background: var(--brand-white);
}
body.brand .size-chart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
body.brand .size-chart-table th {
  background: var(--brand-bg);
  color: var(--brand-dark);
  font-weight: 600;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--brand-border);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
body.brand .size-chart-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--brand-border);
  color: var(--brand-dark);
  background: var(--brand-white);
}
body.brand .size-chart-table tbody tr:last-child td {
  border-bottom: none;
}
body.brand .size-chart-table tbody tr:hover td {
  background: var(--brand-bg);
}

body.brand .single-variant-info {
  padding: 18px 20px;
  background: var(--brand-white);
  border: 1px solid var(--brand-border);
  border-radius: 14px;
  margin-bottom: 20px;
}
body.brand .single-variant-info .muted,
body.brand .single-variant-info p.muted {
  color: var(--brand-muted);
  margin: 0 0 4px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
body.brand .single-variant-label {
  font-size: 17px;
  font-weight: 600;
  color: var(--brand-dark);
  margin: 0 0 6px;
}
body.brand .single-variant-price {
  font-size: 24px;
  font-weight: 600;
  color: var(--brand-dark);
  margin: 0;
  letter-spacing: -0.02em;
}

body.brand .variants-fieldset {
  border: 1px solid var(--brand-border);
  border-radius: 14px;
  padding: 16px 20px;
  background: var(--brand-white);
}
body.brand .variants-fieldset legend {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-dark);
  padding: 0 8px;
}
body.brand .variant-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--brand-border);
  border-radius: 50px;
  background: var(--brand-white);
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
body.brand .variant-option:hover {
  border-color: var(--brand-dark);
}
body.brand .variant-option:has(input:checked) {
  border-color: var(--brand-blue);
  background: rgba(60,126,168,.06);
}
body.brand .variant-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-dark);
}
body.brand .variant-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-dark);
}

body.brand #variant-selector .color-swatch,
body.brand #variant-selector .size-button,
body.brand #variant-selector .variant-chip,
body.brand #variant-selector button {
  background: var(--brand-white);
  border: 1.5px solid var(--brand-border2);
  color: var(--brand-dark);
  padding: 8px 16px;
  border-radius: 50px;
  font-family: "Figtree", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin: 4px;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
body.brand #variant-selector .color-swatch:hover,
body.brand #variant-selector .size-button:hover,
body.brand #variant-selector .variant-chip:hover,
body.brand #variant-selector button:hover {
  border-color: var(--brand-dark);
}
body.brand #variant-selector .color-swatch.selected,
body.brand #variant-selector .color-swatch.active,
body.brand #variant-selector .size-button.selected,
body.brand #variant-selector .size-button.active,
body.brand #variant-selector .variant-chip.selected,
body.brand #variant-selector .variant-chip.active,
body.brand #variant-selector button.selected,
body.brand #variant-selector button.active {
  background: var(--brand-dark);
  color: #fff;
  border-color: var(--brand-dark);
}

body.brand .info-note {
  padding: 16px 20px;
  background: rgba(60,126,168,.06);
  border: 1px solid rgba(60,126,168,.18);
  border-radius: 14px;
  font-size: 14px;
  color: var(--brand-dark);
  line-height: 1.6;
  margin-top: 16px;
}
body.brand .info-note a {
  color: var(--brand-blue);
  font-weight: 500;
}

body.brand .breadcrumb {
  background: transparent !important;
  padding: 12px 0 24px;
  font-size: 14px;
}
body.brand .breadcrumb a {
  color: var(--brand-muted);
  text-decoration: none;
  transition: color 0.2s;
}
body.brand .breadcrumb a:hover {
  color: var(--brand-dark);
}

body.brand .product-detail h1 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--brand-dark);
}
body.brand .product-description {
  font-size: 15px;
  color: var(--brand-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

body.brand .muted,
body.brand p.muted,
body.brand .small.muted {
  color: var(--brand-muted) !important;
}

/* ====================================================================
   BRAND PATCH 4b — Nav: small wordmark (option A) + hero logo composition
   ==================================================================== */

body.brand .b-nav-logo img { display: none; }
body.brand .b-nav-wordmark {
  font-family: "Figtree", sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  text-decoration: none;
  text-transform: lowercase;
}
body.brand .b-nav-wordmark .blue { color: var(--brand-blue); }
body.brand .b-nav-wordmark .dark { color: var(--brand-dark); }

body.brand .b-hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  max-width: 280px;
}
body.brand .b-hero-logo img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 600px) {
  body.brand .b-hero-logo { max-width: 200px; }
  body.brand .b-nav-wordmark { font-size: 22px; }
}

/* ====================================================================
   BRAND PATCH 5 — hero h1 smaller, mockup extreme white, price legacy
   ==================================================================== */

/* Hero h1: SMALLER now that logo + wordmark are the hero element */
body.brand .b-hero .b-h1 {
  font-size: clamp(22px, 3.2vw, 38px) !important;
  font-weight: 500 !important;
  margin: 8px 0 24px !important;
  line-height: 1.25 !important;
  letter-spacing: -0.015em !important;
}

/* Mockup container — extreme specificity (defeat inline CSS in template) */
html body.brand .product-detail-mockup-svg,
html body.brand #detail-mockup-container,
html body.brand .product-detail-mockup {
  background: var(--brand-white) !important;
  border: 1px solid var(--brand-border) !important;
  border-radius: 18px !important;
}

/* If --mockup-body is unset (single-variant products), default to brand blue
   instead of #2a2a2a (which can look "off" on white background). The
   configurator JS still overrides via inline style on .preview-stage. */
html body.brand .product-detail-mockup-svg {
  --mockup-body: var(--brand-blue);
}

/* Legacy/catch-all price classes from main.css */
body.brand main .price,
body.brand main .product-price,
body.brand main .product-card-price,
body.brand main .price-tag,
body.brand main .total-price,
body.brand main .price-box,
body.brand main .cart-price,
body.brand main .order-total {
  background: transparent !important;
  color: var(--brand-dark) !important;
  border-color: var(--brand-border) !important;
}

/* Legacy product-card- prefix classes (in case other pages still use them) */
body.brand main .product-card,
body.brand main .product-card-body,
body.brand main .product-card-mockup,
body.brand main .product-card-placeholder,
body.brand main .product-card-description {
  background: var(--brand-white) !important;
  border-color: var(--brand-border) !important;
  color: var(--brand-dark) !important;
}

/* Product detail layout — grid the mockup+info side by side */
body.brand .product-detail {
  max-width: 1120px;
  margin: 40px auto 80px;
  padding: 0 36px;
}
body.brand .product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  margin-top: 16px;
}
@media (max-width: 800px) {
  body.brand .product-detail-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* Product CTA button area */
body.brand .product-cta {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ====================================================================
   BRAND PATCH 6 — root-cause fix
   Override main.css legacy --color-* variables for body.brand pages.
   This kills the orange #d97a3f and beige #faf8f5 everywhere at once.
   ==================================================================== */
body.brand {
  --color-bg: var(--brand-bg);
  --color-text: var(--brand-dark);
  --color-text-muted: var(--brand-muted);
  --color-accent: var(--brand-blue);
  --color-accent-hover: var(--brand-blue-dark);
  --color-card: var(--brand-white);
  --color-border: var(--brand-border);
  --color-border-strong: var(--brand-border2);
  /* Error/success colors preserved (semantic correctness) */
}

/* ====================================================================
   BRAND PATCH 7 — JS-rendered variant selector (vs-* classes)
                   This is the orange box behind "Cena: XXX Kč"
   ==================================================================== */

/* Price row container (the orange "field" user complained about) */
body.brand main .vs-price-row {
  background: var(--brand-white) !important;
  border: 1px solid var(--brand-border) !important;
  border-radius: 14px !important;
  padding: 14px 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin: 16px 0 !important;
}
body.brand main .vs-price-label {
  font-size: 12px !important;
  color: var(--brand-muted) !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
}
body.brand main .vs-price-value {
  font-size: 24px !important;
  color: var(--brand-dark) !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
}

/* Variant chips (color swatches, size buttons) */
body.brand main .vs-chip {
  background: var(--brand-white) !important;
  border: 1.5px solid var(--brand-border2) !important;
  color: var(--brand-dark) !important;
  padding: 8px 18px !important;
  border-radius: 50px !important;
  font-family: "Figtree", sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  margin: 4px !important;
  transition: border-color 0.2s, background 0.2s, color 0.2s !important;
}
body.brand main .vs-chip:hover {
  border-color: var(--brand-dark) !important;
}
body.brand main .vs-chip.selected,
body.brand main .vs-chip.active,
body.brand main .vs-chip[aria-pressed="true"] {
  background: var(--brand-dark) !important;
  color: #fff !important;
  border-color: var(--brand-dark) !important;
}

/* Catch-all: any other vs-* class that may have beige bg */
body.brand main .vs-row,
body.brand main .vs-section,
body.brand main .vs-group,
body.brand main .vs-label,
body.brand main .vs-header {
  background: transparent !important;
  color: var(--brand-dark) !important;
}

/* Also nuke beige in cart/configure styles */
body.brand main .config-section,
body.brand main .config-row,
body.brand main .text-options,
body.brand main .color-swatches {
  background: var(--brand-white) !important;
  border-color: var(--brand-border) !important;
}

/* ============================================
   FINAL ORANGE/BEIGE CLEANUP (2026-06-01)
   Remaining hardcoded #f6f4f0 (beige) and #fff7f0 (orange tint)
   that aren't using CSS variables — override them under body.brand
   ============================================ */

/* The "Zdrojová fotka pro AI" box on /portraits/new — inline style
   sets background:#f6f4f0 which we can't reach with variable override.
   Use very high-specificity rule + !important to neutralize it. */
html body.brand .portrait-new .form-row[style*="#f6f4f0"],
html body.brand .portrait-new .form-row {
    background: var(--brand-white) !important;
    border: 1px solid var(--brand-border) !important;
}

/* Style cards selected state (Akvarel/Olej/Pop art tiles) — use brand
   blue tint instead of orange. */
html body.brand .style-card input[type="radio"]:checked + .style-card-inner {
    border-color: var(--brand-blue) !important;
    background: rgba(60, 126, 168, 0.08) !important;
}

/* Hover state on style cards */
html body.brand .style-card:hover .style-card-inner {
    border-color: var(--brand-blue) !important;
}

/* Any other lingering #f6f4f0 / #fff7f0 backgrounds get hit via
   attribute selectors. These are rare but bulletproof. */
html body.brand [style*="#f6f4f0"] {
    background: var(--brand-white) !important;
}
html body.brand [style*="#fff7f0"] {
    background: rgba(60, 126, 168, 0.08) !important;
}

/* Inline ikony v pilulkach a krocich (nahrada emoji) */
.b-pill-ico { flex: 0 0 auto; vertical-align: middle; }
.b-step-icon { color: var(--brand-blue); display: block; }
.b-step-icon svg { display: block; }

/* Landing mockupy: modra vyplň (brand blue) */
body.brand .b-prod-thumb { --mockup-body: #3C7EA8; }

/* Logo watermark - jemna dlazdicova mrizka pres cele hero */
body.brand .b-hero::before,
body.brand .b-steps-bg::before,
body.brand .b-products-bg::before {
  content: "";
  position: absolute;
  inset: -260px;
  background-image: url("/static/brand/logo-tile.svg");
  background-repeat: repeat;
  background-size: 260px 260px;
  background-position: 0 calc(var(--wm-scroll, 0px) * 1);
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
  animation: bg-drift 55s linear infinite;
}
@keyframes bg-drift {
  from { background-position-x: 0; }
  to   { background-position-x: 520px; }
}
/* sekce musi byt relative + orezavat, obsah nad vodoznakem */
body.brand .b-steps-bg,
body.brand .b-products-bg {
  position: relative;
  overflow: hidden;
}
body.brand .b-container { position: relative; z-index: 1; }

/* ===== SHOWCASE PAS (bezici marquee) ===== */
body.brand .b-showcase-bg { background: var(--brand-bg); position: relative; overflow: hidden; }
body.brand .b-marquee { margin-top: 34px; overflow: hidden; width: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
body.brand .b-marquee-track { display: flex; gap: 18px; width: max-content; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y; will-change: transform; }
body.brand .b-marquee-track.dragging { cursor: grabbing; }

body.brand .b-marquee-item { flex: 0 0 auto; width: 220px; height: 220px; padding: 0; border: 1px solid rgba(0,0,0,0.06); border-radius: 16px; overflow: hidden; cursor: zoom-in; background: rgba(255,255,255,0.55); transition: transform .15s, box-shadow .15s; }
body.brand .b-marquee-item:hover { transform: scale(1.03); box-shadow: 0 8px 28px rgba(24,24,38,.12); }
body.brand .b-marquee-item img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; -webkit-user-drag: none; user-drag: none; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== SHOWCASE LIGHTBOX (decentni pop-up) ===== */
body.brand .gallery-lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(15, 20, 30, 0.82);
  align-items: center; justify-content: center;
  padding: 24px;
  cursor: zoom-out;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
body.brand .gallery-lightbox.open { display: flex; }
body.brand .gallery-lightbox img {
  max-width: min(720px, 90vw);
  max-height: 85vh;
  width: auto; height: auto;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0,0,0,.5);
  background: #fff;
}
body.brand .gallery-lightbox-close {
  position: absolute; top: 20px; right: 24px;
  width: 44px; height: 44px;
  border: none; border-radius: 50%;
  background: rgba(255,255,255,0.14); color: #fff;
  font-size: 26px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
body.brand .gallery-lightbox-close:hover { background: rgba(255,255,255,0.28); }
@media (max-width: 600px) {
  body.brand .gallery-lightbox { padding: 14px; }
  body.brand .gallery-lightbox img { max-width: 94vw; max-height: 80vh; }
  body.brand .gallery-lightbox-close { top: 12px; right: 14px; }
  body.brand .b-marquee-item { width: 150px; height: 150px; }
}

/* Pilulky v hero: vyraznejsi postupny pop (nezavisle na b-d1-d4) */
body.brand .b-pill-pop {
  transition: none;                 /* prebijeme b-anim transition, resime animaci */
  opacity: 0;
}
body.brand .b-pill-pop.visible {
  opacity: 0;                        /* start neviditelne, animace nastavi vysledek */
  animation: pill-pop .55s cubic-bezier(.34,1.56,.64,1) forwards;
}
body.brand .b-pop-1.visible { animation-delay: .35s; }
body.brand .b-pop-2.visible { animation-delay: .70s; }
body.brand .b-pop-3.visible { animation-delay: 1.05s; }
body.brand .b-pop-4.visible { animation-delay: 1.40s; }
@keyframes pill-pop {
  0%   { opacity: 0; transform: translateY(14px) scale(.85); }
  60%  { opacity: 1; transform: translateY(-3px) scale(1.05); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== Stranka JAK TO FUNGUJE ===== */
body.brand .htf-steps { display: flex; flex-direction: column; gap: 18px; }
body.brand .htf-step { display: grid; grid-template-columns: 44px 52px 1fr; align-items: start; gap: 16px; background: var(--brand-white); border: 1px solid var(--brand-border); border-radius: 18px; padding: 24px 26px; transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s; }
body.brand .htf-step:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(24,24,38,.08); }
body.brand .htf-num { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-bg); color: var(--brand-blue); font-weight: 700; font-size: 17px; display: flex; align-items: center; justify-content: center; }
body.brand .htf-ico { color: var(--brand-blue); display: flex; align-items: center; justify-content: center; padding-top: 4px; }
body.brand .htf-body h3 { margin: 0 0 6px; }
body.brand .htf-body p { font-size: 14px; color: var(--brand-muted); line-height: 1.65; margin: 0; }
@media (max-width: 560px) {
  body.brand .htf-step { grid-template-columns: 38px 1fr; grid-template-areas: "num body" "ico body"; gap: 10px 14px; padding: 20px; }
  body.brand .htf-ico { grid-area: ico; padding-top: 0; justify-content: flex-start; }
  body.brand .htf-num { grid-area: num; }
  body.brand .htf-body { grid-area: body; }
}

/* ===== BEFORE / AFTER PAS ===== */
body.brand .b-ba-bg { background: var(--brand-white); position: relative; overflow: hidden; }
body.brand .b-ba-item { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.55); border: 1px solid rgba(0,0,0,0.06); border-radius: 18px; padding: 12px; cursor: zoom-in; transition: transform .15s, box-shadow .15s; }
body.brand .b-ba-item:hover { transform: scale(1.02); box-shadow: 0 8px 28px rgba(24,24,38,.12); }
body.brand .b-ba-half { position: relative; width: 190px; height: 190px; border-radius: 12px; overflow: hidden; background: #fff; flex: 0 0 auto; }
body.brand .b-ba-half img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; -webkit-user-drag: none; }
body.brand .b-ba-label { position: absolute; left: 8px; bottom: 8px; background: rgba(24,24,38,.72); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px; letter-spacing: .02em; }
body.brand .b-ba-arrow { color: var(--brand-blue); flex: 0 0 auto; display: flex; align-items: center; }
@media (max-width: 560px) {
  body.brand .b-ba-half { width: 130px; height: 130px; }
  body.brand .b-ba-arrow svg { width: 18px; height: 18px; }
}

/* Lightbox dvojice (before/after) */
body.brand .gallery-lightbox-pair { display: none; gap: 14px; align-items: center; max-width: 94vw; }
body.brand .gallery-lightbox-pair img { max-width: min(440px, 45vw); max-height: 82vh; width: auto; height: auto; border-radius: 12px; box-shadow: 0 24px 70px rgba(0,0,0,.5); background: #fff; }
@media (max-width: 600px) {
  body.brand .gallery-lightbox-pair { flex-direction: row; gap: 8px; }
  body.brand .gallery-lightbox-pair img { max-width: 46vw; max-height: 70vh; }
}


/* ===== NAV FINAL: logo vlevo | 4 odkazy na stred | burger+kosik+jmeno vpravo ===== */
body.brand .b-nav-in { position: relative; display: flex; align-items: center; gap: 16px; }
body.brand .b-nav-logo { flex: 0 0 auto; }

/* 4 primarni odkazy - opticky stred listy */
body.brand .b-nav-primary {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 30px;
  list-style: none; margin: 0; padding: 0;
}
body.brand .b-nav-primary a {
  font-size: 15px; font-weight: 500; color: var(--brand-muted);
  text-decoration: none; white-space: nowrap; transition: color .2s;
}
body.brand .b-nav-primary a:hover,
body.brand .b-nav-primary a.active { color: var(--brand-dark); }
body.brand .b-nav-primary a.active { font-weight: 600; }

/* burger zacina pravou skupinu: margin-left:auto ho + pravou sekci odsune doprava */
body.brand .b-nav-burger { display: flex; margin-left: auto; flex: 0 0 auto; }
body.brand .b-nav-right { flex: 0 0 auto; }

/* plny seznam = dropdown pod burgerem */
body.brand .b-nav-links {
  display: none;
  position: absolute; top: 100%; right: 0; left: auto; transform: none;
  min-width: 240px; flex-direction: column; align-items: stretch;
  gap: 0; margin: 0; padding: 8px 0;
  background: #fff; border: 1px solid var(--brand-border);
  border-radius: 0 0 14px 14px; box-shadow: 0 12px 30px rgba(24,24,38,.12);
  z-index: 9000;
}
body.brand .b-nav-links.open { display: flex; }
body.brand .b-nav-links li { width: 100%; }
body.brand .b-nav-links li a {
  display: block; padding: 12px 22px; white-space: nowrap;
  font-size: 15px; color: var(--brand-muted);
}
body.brand .b-nav-links li a:hover,
body.brand .b-nav-links li a.active { color: var(--brand-dark); background: rgba(60,126,168,.08); }

/* uzsi okno: schovat centr odkazy -> jen logo + burger + prava skupina */
@media (max-width: 1000px) { body.brand .b-nav-primary { display: none; } }
/* ===== /NAV FINAL ===== */
