/* Critical above-fold CSS — header, hero, layout shell. Full theme loads deferred. */
:root{
  --color-primary:#7C4A85;--color-primary-dark:#4A2E4D;--color-primary-light:#F4E7F3;--color-secondary:#A69BC1;--color-white:#fff;
  --color-gray-50:#F8F4F8;--color-gray-400:#A69BC1;--color-gray-800:#2A2430;--color-gray-900:#1A141C;
  --space-1:.25rem;--space-2:.5rem;--space-4:1rem;--space-5:1.25rem;--space-6:1.5rem;
  --space-8:2rem;--space-16:4rem;--space-20:5rem;
  --font-size-base:1rem;--font-size-lg:1.125rem;--font-size-xl:1.25rem;--font-size-4xl:2.25rem;
  --transition-fast:.2s ease;--transition-base:.2s ease;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;overflow-x:hidden}
body{margin:0;padding:0;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  font-size:1rem;line-height:1.6;color:var(--color-gray-800);background:var(--color-gray-50);
  -webkit-font-smoothing:antialiased;overflow-x:hidden}
img{max-width:100%;height:auto;display:block}
a{color:var(--color-primary);text-decoration:none}
.container{width:100%;max-width:1680px;margin:0 auto;padding:0 1.5rem}
.site-header{position:sticky;top:0;z-index:1000;background:var(--color-white);border-bottom:1px solid #e2e8f0;
  box-shadow:0 1px 3px rgba(0,0,0,.05);min-height:72px}
@media(max-width:768px){.site-header{min-height:0}}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:70px;gap:1.5rem}
.header-logo{flex-shrink:0;display:flex;align-items:center}
.logo{display:inline-flex;align-items:center;gap:.5rem;font-weight:700;font-size:1.25rem;color:var(--color-gray-900)}
.logo img{height:45px;width:auto;max-width:200px;object-fit:contain}
.header-nav{display:flex;align-items:center;gap:.5rem}
.header-nav-link{display:inline-flex;align-items:center;gap:.5rem;padding:.5rem 1rem;border-radius:8px;
  color:var(--color-gray-800);font-weight:500;font-size:.875rem}
.mobile-menu-toggle{display:none;background:none;border:none;padding:.5rem;cursor:pointer}
.hero{background:linear-gradient(135deg,#A69BC1 0%,#4A2E4D 55%,#3A243D 100%);padding:5rem 0;text-align:center;
  position:relative;overflow:hidden;min-height:280px}
.hero::before{content:'';position:absolute;inset:0;opacity:.6;pointer-events:none}
.hero-bg-wrapper{position:absolute;inset:0;z-index:0;overflow:hidden}
.hero-bg,img.hero-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;background-size:cover;background-position:center;background-repeat:no-repeat}
img.hero-bg-1{opacity:1;z-index:0}
.hero-bg-2{opacity:0;z-index:0}
.hero-bg-wrapper:not(:has(.hero-bg-2)) img.hero-bg-1{animation:none}
.hero-bg-overlay{position:absolute;inset:0;z-index:1}
.hero-content,.hero-with-bg .hero-content{position:relative;z-index:2;max-width:1600px;margin:0 auto}
.hero h1{font-size:clamp(2rem,5vw,2.75rem);font-weight:800;color:#fff;margin:0 0 1rem;line-height:1.15}
.section{padding:4rem 0}
.section-sm{padding:2.5rem 0}
.search-box{background:#fff;border-radius:10px;padding:.25rem;display:flex;align-items:stretch;
  border:2px solid #7C4A85;box-shadow:0 8px 20px rgba(124,74,133,.18);width:min(100%,640px);margin:0 auto}
.search-box input{flex:1;border:none;padding:1rem 1.25rem;font-size:1rem;background:transparent;color:var(--color-gray-800);min-width:0}
.search-box input:focus{outline:none}
.search-box button{background:linear-gradient(135deg,#7C4A85 0%,#4A2E4D 100%);border:none;padding:1rem 1.5rem;
  border-radius:0 8px 8px 0;color:#fff;font-weight:600;cursor:pointer;display:flex;align-items:center;gap:.5rem;flex-shrink:0}
.popular-searches{margin-top:1.5rem;display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem}
.popular-searches a,.popular-tag{display:inline-block;padding:.375rem .875rem;background:rgba(255,255,255,.15);
  color:#fff;border-radius:9999px;font-size:.875rem}
.row{display:flex;flex-wrap:wrap;margin-left:-12px;margin-right:-12px}
.row>[class*="col-"]{padding-left:12px;padding-right:12px;min-width:0;width:auto}
.col-6{flex:0 0 50%;max-width:50%}
@media(min-width:576px){.col-sm-4{flex:0 0 33.333333%;max-width:33.333333%}}
@media(min-width:768px){.col-md-3{flex:0 0 25%;max-width:25%}.col-md-4{flex:0 0 33.333333%;max-width:33.333333%}}
@media(min-width:992px){.col-lg-2{flex:0 0 16.666667%;max-width:16.666667%}.col-lg-3{flex:0 0 25%;max-width:25%}.col-lg-6{flex:0 0 50%;max-width:50%}}
@media(min-width:1200px){.col-xl-2{flex:0 0 16.666667%;max-width:16.666667%}}
.brands-section .row{display:flex;flex-wrap:wrap;margin-left:-12px;margin-right:-12px}
.brands-section .col-6{flex:0 0 50%;max-width:50%;padding:0 12px}
.categories-home-grid>.col-6,.brands-home-grid>.col-6,.featured-home-grid>.col-6{flex:0 0 50%;max-width:50%}
.brands-section .col-lg-2,.brands-section .col-xl-2{flex:0 0 16.666667%;max-width:16.666667%;padding:0 12px}
.brands-section .brand-card{display:flex;flex-direction:row;align-items:center;gap:.75rem}
#brandsGrid{display:flex;flex-wrap:wrap}
#brandsGrid>.col-6{flex:0 0 50%;max-width:50%}
.how-it-works .row{display:grid;grid-template-columns:1fr;gap:1rem;margin:0}
.how-it-works .how-it-works-grid{display:grid;grid-template-columns:1fr;gap:1rem;margin:0}
@media(min-width:768px){.how-it-works .row,.how-it-works .how-it-works-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem}}
.how-it-works [class*="col-"]{padding:0;min-width:0;max-width:none;flex:none;width:auto}
@media(max-width:768px){
  .header-nav{display:none}.mobile-menu-toggle{display:flex}
  .header-inner{flex-wrap:wrap;height:auto;min-height:56px;padding:10px 0;gap:10px}
  .header-search{position:static;flex:0 0 100%;width:100%;max-width:none;padding:0}
  .header-search-box input{font-size:16px;min-height:44px}
}
@media(max-width:768px){.hero{padding:3rem 0}.search-box{width:100%}.search-box button .hide-mobile{display:none}}
