/* ============================================
   Brasy Home US — Fashion Accessories Storefront
   Design System: Warm, Elegant, Earth Tones
   ============================================ */

:root {
  --color-bg: #FAF7F2;
  --color-surface: #FFFFFF;
  --color-surface-alt: #F5F0EA;
  --color-border: #E8E0D5;
  --color-border-light: #F0EBE3;
  --color-text-primary: #2D2520;
  --color-text-secondary: #5C5248;
  --color-text-muted: #9A8E80;
  --color-accent: #A67B5B;
  --color-accent-hover: #8B6543;
  --color-accent-fg: #FFFFFF;
  --color-accent-light: #F5EDE6;
  --color-success: #4A7C59;
  --color-warning: #C77D3D;
  --color-error: #C44545;
  --color-warm: #D4A574;
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Jost', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 16px; --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(45,37,32,0.08);
  --shadow-md: 0 4px 12px rgba(45,37,32,0.1);
  --shadow-lg: 0 12px 32px rgba(45,37,32,0.12);
  --shadow-xl: 0 24px 48px rgba(45,37,32,0.16);
  --space-xs: 4px; --space-sm: 8px; --space-md: 16px; --space-lg: 24px;
  --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px;
  --transition-fast: 150ms ease; --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); color: var(--color-text-primary); background: var(--color-bg); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }
ul { list-style: none; }
table { border-collapse: collapse; width: 100%; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(28px, 5vw, 48px); }
h2 { font-size: clamp(24px, 4vw, 36px); }
h3 { font-size: clamp(20px, 3vw, 28px); }

.container { max-width: 1280px; margin: 0 auto; padding: 0 var(--space-lg); }
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.text-secondary { color: var(--color-text-secondary); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* === Buttons === */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm); padding: 12px 24px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase; transition: all var(--transition-base); cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--color-accent); color: var(--color-accent-fg); }
.btn-primary:hover { background: var(--color-accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--color-surface); color: var(--color-text-primary); border-color: var(--color-border); }
.btn-secondary:hover { border-color: var(--color-accent); color: var(--color-accent); }
.btn-ghost { background: transparent; color: var(--color-text-primary); }
.btn-ghost:hover { color: var(--color-accent); }
.btn-sm { padding: 8px 16px; font-size: 12px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* === Badges === */
.badge { display: inline-block; padding: 4px 10px; border-radius: var(--radius-sm); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-sale { background: var(--color-accent); color: var(--color-accent-fg); }
.badge-new { background: var(--color-success); color: #fff; }
.badge-out { background: var(--color-text-muted); color: #fff; }

/* === Announcement Bar === */
.announcement-bar { background: var(--color-text-primary); color: var(--color-bg); text-align: center; padding: 10px var(--space-lg); font-size: 13px; letter-spacing: 0.5px; }
.announcement-bar span { display: inline-block; }

/* === Navigation === */
.nav { position: sticky; top: 0; z-index: 100; background: var(--color-surface); border-bottom: 1px solid var(--color-border); transition: box-shadow var(--transition-base); }
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); padding: 16px var(--space-lg); max-width: 1280px; margin: 0 auto; }
.nav-logo { font-family: var(--font-heading); font-size: 28px; font-weight: 700; color: var(--color-text-primary); white-space: nowrap; }
.nav-logo span { color: var(--color-accent); }
.nav-links { display: flex; gap: var(--space-lg); align-items: center; }
.nav-link { font-size: 14px; font-weight: 400; color: var(--color-text-secondary); transition: color var(--transition-fast); position: relative; }
.nav-link:hover, .nav-link.active { color: var(--color-accent); }
.nav-link.active::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px; background: var(--color-accent); }
.nav-actions { display: flex; gap: var(--space-md); align-items: center; }
.nav-action-btn { position: relative; color: var(--color-text-secondary); transition: color var(--transition-fast); padding: 4px; }
.nav-action-btn:hover { color: var(--color-accent); }
.nav-action-btn svg { width: 22px; height: 22px; }
.cart-count { position: absolute; top: -4px; right: -4px; background: var(--color-accent); color: #fff; font-size: 10px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.hamburger { display: none; flex-direction: column; gap: 4px; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: var(--color-text-primary); transition: all var(--transition-base); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* === Mobile Menu === */
.mobile-menu { position: fixed; top: 0; left: -100%; width: 85%; max-width: 360px; height: 100vh; background: var(--color-surface); z-index: 300; transition: left var(--transition-slow); overflow-y: auto; box-shadow: var(--shadow-xl); padding: var(--space-xl) var(--space-lg); }
.mobile-menu.open { left: 0; }
.mobile-menu-close { font-size: 28px; color: var(--color-text-muted); margin-bottom: var(--space-lg); }
.mobile-menu nav { display: flex; flex-direction: column; gap: var(--space-md); }
.mobile-menu nav a { font-size: 16px; color: var(--color-text-primary); padding: 8px 0; border-bottom: 1px solid var(--color-border-light); }
.mobile-overlay { position: fixed; inset: 0; background: rgba(45,37,32,0.4); z-index: 250; opacity: 0; pointer-events: none; transition: opacity var(--transition-base); }
.mobile-overlay.show { opacity: 1; pointer-events: auto; }
.search-wrap { margin-bottom: var(--space-lg); }
.search-icon { width: 18px; height: 18px; color: var(--color-text-muted); }
.search-input { width: 100%; padding: 10px 12px 10px 36px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: 14px; background: var(--color-surface-alt); }
.search-results { margin-top: var(--space-sm); }
.search-results .search-item { display: flex; gap: var(--space-sm); padding: 8px; border-radius: var(--radius-sm); }
.search-results .search-item:hover { background: var(--color-surface-alt); }
.search-item img { width: 40px; height: 40px; border-radius: var(--radius-sm); object-fit: cover; }
.search-item-info { flex: 1; min-width: 0; }
.search-item-title { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-item-price { font-size: 12px; color: var(--color-accent); font-weight: 600; }

/* === Hero === */
.hero { position: relative; min-height: 520px; display: flex; align-items: center; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(45,37,32,0.55) 0%, rgba(45,37,32,0.3) 100%); }
.hero-content { position: relative; z-index: 1; max-width: 600px; padding: var(--space-2xl) var(--space-lg); color: #fff; }
.hero-eyebrow { font-size: 14px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: var(--space-md); opacity: 0.9; }
.hero-title { font-size: clamp(36px, 6vw, 56px); font-weight: 700; margin-bottom: var(--space-md); line-height: 1.1; }
.hero-subtitle { font-size: 18px; margin-bottom: var(--space-xl); opacity: 0.95; max-width: 480px; }
.hero-actions { display: flex; gap: var(--space-md); flex-wrap: wrap; }

/* === Sections === */
.section { padding: var(--space-2xl) 0; }
.section-alt { background: var(--color-surface-alt); }
.section-header { text-align: center; margin-bottom: var(--space-xl); }
.section-title { font-size: clamp(28px, 4vw, 40px); margin-bottom: var(--space-sm); }
.section-subtitle { color: var(--color-text-secondary); font-size: 16px; max-width: 600px; margin: 0 auto; }

/* === Grids === */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-lg); }

/* === Collection Card === */
.collection-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; display: block; transition: transform var(--transition-base); }
.collection-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.collection-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.collection-card:hover img { transform: scale(1.05); }
.collection-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(45,37,32,0.6) 0%, transparent 50%); display: flex; align-items: flex-end; padding: var(--space-lg); }
.collection-card-title { color: #fff; font-family: var(--font-heading); font-size: 22px; font-weight: 600; }

/* === Product Card === */
.product-card { background: var(--color-surface); border-radius: var(--radius-md); overflow: hidden; transition: all var(--transition-base); border: 1px solid var(--color-border-light); display: flex; flex-direction: column; }
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.product-card-img-wrap { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--color-surface-alt); }
.product-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.product-card:hover .product-card-img-wrap img { transform: scale(1.05); }
.product-card-badges { position: absolute; top: var(--space-sm); left: var(--space-sm); display: flex; flex-direction: column; gap: 4px; z-index: 1; }
.product-card-quick-add { position: absolute; bottom: 0; left: 0; right: 0; padding: var(--space-sm); background: linear-gradient(to top, rgba(255,255,255,0.95), transparent); transform: translateY(100%); transition: transform var(--transition-base); }
.product-card:hover .product-card-quick-add { transform: translateY(0); }
.product-card-info { padding: var(--space-md); flex: 1; display: flex; flex-direction: column; }
.product-card-vendor { font-size: 12px; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.product-card-title { font-size: 15px; font-weight: 500; color: var(--color-text-primary); margin-bottom: 8px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-title a:hover { color: var(--color-accent); }
.product-card-price-wrap { display: flex; align-items: center; gap: var(--space-sm); margin-top: auto; }
.product-card-price { font-family: var(--font-mono); font-size: 16px; font-weight: 700; color: var(--color-text-primary); }
.product-card-compare-price { font-size: 14px; color: var(--color-text-muted); text-decoration: line-through; }

/* === Product Page === */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); padding: var(--space-xl) 0; }
.gallery-main-wrap { border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface-alt); aspect-ratio: 1; margin-bottom: var(--space-md); position: relative; }
.gallery-main-wrap img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery-main-wrap img.zoomed { transform: scale(2); transition: transform var(--transition-slow); }
.gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumb { width: 80px; height: 80px; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; cursor: pointer; flex-shrink: 0; transition: border-color var(--transition-fast); background: var(--color-surface-alt); }
.gallery-thumb.active { border-color: var(--color-accent); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding-top: var(--space-sm); }
.product-vendor { font-size: 13px; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: var(--space-sm); }
.product-title { font-size: clamp(24px, 3vw, 32px); margin-bottom: var(--space-sm); }
.product-price-wrap { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-md); }
.product-price { font-family: var(--font-mono); font-size: 24px; font-weight: 700; color: var(--color-text-primary); }
.product-compare-price { font-size: 18px; color: var(--color-text-muted); text-decoration: line-through; }
.rating-stars { display: flex; gap: 2px; margin-bottom: var(--space-md); color: var(--color-warm); }
.rating-stars svg { width: 18px; height: 18px; }
.product-short-desc { color: var(--color-text-secondary); font-size: 15px; line-height: 1.7; margin-bottom: var(--space-lg); }
.option-group { margin-bottom: var(--space-md); }
.option-label { font-size: 14px; font-weight: 500; margin-bottom: var(--space-sm); color: var(--color-text-primary); }
.option-selected-value { color: var(--color-accent); font-weight: 600; }
.option-btns { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.option-btn { padding: 8px 16px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: 13px; background: var(--color-surface); transition: all var(--transition-fast); }
.option-btn.active { border-color: var(--color-accent); background: var(--color-accent-light); color: var(--color-accent); }
.option-btn.unavailable { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }
.qty-control { display: inline-flex; align-items: center; border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; }
.qty-btn { width: 40px; height: 40px; font-size: 18px; color: var(--color-text-secondary); transition: background var(--transition-fast); }
.qty-btn:hover { background: var(--color-surface-alt); }
.qty-input { width: 48px; height: 40px; text-align: center; border: none; border-left: 1px solid var(--color-border); border-right: 1px solid var(--color-border); font-size: 14px; font-weight: 600; }
.availability-msg { display: flex; align-items: center; gap: var(--space-sm); font-size: 14px; margin: var(--space-md) 0; }
.availability-msg.in-stock { color: var(--color-success); }
.availability-msg.out-stock { color: var(--color-error); }
.availability-msg svg { width: 18px; height: 18px; flex-shrink: 0; }
.product-accordions { margin: var(--space-xl) 0; }
.accordion { border-bottom: 1px solid var(--color-border); }
.accordion-header { width: 100%; padding: var(--space-md) 0; display: flex; justify-content: space-between; align-items: center; font-size: 16px; font-weight: 600; color: var(--color-text-primary); text-align: left; }
.accordion-header:hover { color: var(--color-accent); }
.accordion-icon { width: 20px; height: 20px; transition: transform var(--transition-base); flex-shrink: 0; }
.accordion.open .accordion-icon { transform: rotate(45deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height var(--transition-slow); }
.accordion.open .accordion-body { max-height: 800px; }
.accordion-body-inner { padding: 0 0 var(--space-md); font-size: 14px; color: var(--color-text-secondary); line-height: 1.7; }
.accordion-body-inner ul { padding-left: 20px; margin: var(--space-sm) 0; list-style: disc; }
.accordion-body-inner li { margin-bottom: 4px; }

/* === Sticky ATC === */
.sticky-atc { position: fixed; bottom: 0; left: 0; right: 0; background: var(--color-surface); border-top: 1px solid var(--color-border); box-shadow: 0 -4px 12px rgba(45,37,32,0.08); padding: var(--space-sm) var(--space-lg); z-index: 90; transform: translateY(100%); transition: transform var(--transition-base); display: flex; align-items: center; gap: var(--space-md); }
.sticky-atc.visible { transform: translateY(0); }
.sticky-atc-product { display: flex; align-items: center; gap: var(--space-sm); flex: 1; min-width: 0; }
.sticky-atc-product img { width: 48px; height: 48px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.sticky-atc-product .title { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-atc-product .price { font-family: var(--font-mono); font-weight: 700; color: var(--color-accent); }

/* === Reviews === */
.reviews-section { margin: var(--space-2xl) 0; }
.reviews-summary { display: flex; gap: var(--space-xl); align-items: center; margin-bottom: var(--space-xl); flex-wrap: wrap; }
.reviews-avg { text-align: center; }
.reviews-score { font-size: 48px; font-family: var(--font-heading); font-weight: 700; }
.reviews-count { font-size: 14px; color: var(--color-text-muted); }
.reviews-bars { flex: 1; min-width: 200px; }
.rating-bar { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: 4px; }
.rating-bar-label { font-size: 13px; color: var(--color-text-muted); width: 40px; }
.rating-bar-track { flex: 1; height: 8px; background: var(--color-surface-alt); border-radius: var(--radius-full); overflow: hidden; }
.rating-bar-fill { height: 100%; background: var(--color-warm); border-radius: var(--radius-full); }
.review-card { background: var(--color-surface); border: 1px solid var(--color-border-light); border-radius: var(--radius-md); padding: var(--space-lg); margin-bottom: var(--space-md); }
.review-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: var(--space-sm); }
.review-author { font-weight: 600; font-size: 15px; }
.review-verified { font-size: 12px; color: var(--color-success); display: flex; align-items: center; gap: 4px; }
.review-title { font-weight: 600; margin-bottom: var(--space-xs); }
.review-body { color: var(--color-text-secondary); font-size: 14px; line-height: 1.6; }

/* === Cart Drawer === */
.cart-overlay { position: fixed; inset: 0; background: rgba(45,37,32,0.4); z-index: 200; opacity: 0; pointer-events: none; transition: opacity var(--transition-base); }
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer { position: fixed; top: 0; right: -100%; width: 400px; max-width: 90vw; height: 100vh; background: var(--color-surface); z-index: 300; transition: right var(--transition-slow); display: flex; flex-direction: column; box-shadow: var(--shadow-xl); }
.cart-drawer.open { right: 0; }
.cart-drawer-header { display: flex; justify-content: space-between; align-items: center; padding: var(--space-lg); border-bottom: 1px solid var(--color-border); }
.cart-drawer-header h2 { font-size: 20px; }
.cart-close { font-size: 24px; color: var(--color-text-muted); }
.cart-lines { flex: 1; overflow-y: auto; padding: var(--space-md) var(--space-lg); }
.cart-item { display: flex; gap: var(--space-md); padding: var(--space-md) 0; border-bottom: 1px solid var(--color-border-light); }
.cart-item img { width: 80px; height: 80px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-title { font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.cart-item-title a:hover { color: var(--color-accent); }
.cart-item-variant { font-size: 12px; color: var(--color-text-muted); margin-bottom: 4px; }
.cart-item-price { font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--color-accent); margin-bottom: var(--space-sm); }
.cart-item-controls { display: flex; align-items: center; gap: var(--space-md); }
.cart-item-remove { font-size: 12px; color: var(--color-text-muted); text-decoration: underline; }
.cart-item-remove:hover { color: var(--color-error); }
.cart-footer { padding: var(--space-lg); border-top: 1px solid var(--color-border); }
.cart-subtotal { display: flex; justify-content: space-between; margin-bottom: var(--space-sm); font-size: 16px; }
.cart-subtotal strong { font-family: var(--font-mono); }
.cart-tax-note { font-size: 13px; color: var(--color-text-muted); margin-bottom: var(--space-md); }
.cart-empty { text-align: center; padding: var(--space-2xl) var(--space-lg); }

/* === Toast === */
.toast { position: fixed; bottom: 20px; right: 20px; padding: 14px 20px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; z-index: 9999; opacity: 0; transform: translateY(20px); transition: all var(--transition-base); box-shadow: var(--shadow-lg); }
.toast.show { opacity: 1; transform: translateY(0); }
.toast-success { background: var(--color-success); color: #fff; }
.toast-error { background: var(--color-error); color: #fff; }

/* === Trust Badges === */
.trust-badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); padding: var(--space-xl) 0; }
.trust-item { text-align: center; }
.trust-item svg { width: 32px; height: 32px; color: var(--color-accent); margin: 0 auto var(--space-sm); }
.trust-item h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.trust-item p { font-size: 12px; color: var(--color-text-muted); }

/* === Breadcrumb === */
.breadcrumb { display: flex; gap: var(--space-sm); align-items: center; padding: var(--space-md) 0; font-size: 13px; color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb-sep { color: var(--color-border); }
.breadcrumb-item.current { color: var(--color-text-primary); }

/* === Pagination === */
.pagination { display: flex; gap: var(--space-sm); justify-content: center; margin-top: var(--space-xl); }
.pagination-btn { padding: 8px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: 14px; background: var(--color-surface); transition: all var(--transition-fast); }
.pagination-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }
.pagination-btn.active { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }

/* === Sort Bar === */
.sort-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-lg); flex-wrap: wrap; gap: var(--space-md); }
.sort-bar select { padding: 8px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: 14px; background: var(--color-surface); }

/* === Collection Hero === */
.collection-hero { position: relative; min-height: 280px; display: flex; align-items: center; overflow: hidden; }
.collection-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.collection-hero-overlay { position: absolute; inset: 0; background: rgba(45,37,32,0.4); }
.collection-hero-content { position: relative; z-index: 1; color: #fff; padding: var(--space-xl); text-align: center; width: 100%; }

/* === Blog === */
.blog-card { background: var(--color-surface); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border-light); transition: all var(--transition-base); }
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blog-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.blog-card-content { padding: var(--space-lg); }
.blog-card-title { font-size: 18px; margin-bottom: var(--space-sm); }
.blog-card-excerpt { font-size: 14px; color: var(--color-text-secondary); margin-bottom: var(--space-sm); }

/* === Footer === */
.footer { background: var(--color-text-primary); color: var(--color-bg); padding: var(--space-2xl) 0 var(--space-lg); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-xl); margin-bottom: var(--space-xl); }
.footer-logo { font-family: var(--font-heading); font-size: 24px; font-weight: 700; margin-bottom: var(--space-sm); }
.footer-logo span { color: var(--color-warm); }
.footer-desc { font-size: 14px; color: rgba(250,247,242,0.7); margin-bottom: var(--space-md); line-height: 1.6; }
.footer-col h3 { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: var(--space-md); color: var(--color-warm); }
.footer-col ul li { margin-bottom: var(--space-sm); }
.footer-col ul li a { font-size: 14px; color: rgba(250,247,242,0.7); transition: color var(--transition-fast); }
.footer-col ul li a:hover { color: var(--color-warm); }
.footer-contact p { font-size: 14px; color: rgba(250,247,242,0.7); margin-bottom: 4px; }
.footer-contact a { color: rgba(250,247,242,0.7); }
.footer-contact a:hover { color: var(--color-warm); }
.social-links { display: flex; gap: var(--space-sm); }
.social-links a { width: 36px; height: 36px; border-radius: 50%; background: rgba(250,247,242,0.1); display: flex; align-items: center; justify-content: center; transition: background var(--transition-fast); }
.social-links a:hover { background: var(--color-accent); }
.social-links svg { width: 18px; height: 18px; color: var(--color-bg); }
.footer-bottom { border-top: 1px solid rgba(250,247,242,0.1); padding-top: var(--space-lg); display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(250,247,242,0.5); flex-wrap: wrap; gap: var(--space-sm); }
.footer-payments { display: flex; gap: var(--space-sm); }
.footer-payments span { padding: 4px 10px; background: rgba(250,247,242,0.1); border-radius: var(--radius-sm); font-size: 11px; font-weight: 600; }

/* === Forms === */
.form-group { margin-bottom: var(--space-md); }
.form-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: var(--space-xs); }
.form-input { width: 100%; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: 14px; background: var(--color-surface); transition: border-color var(--transition-fast); }
.form-input:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-light); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.form-error { color: var(--color-error); font-size: 12px; margin-top: 4px; }

/* === FAQ === */
.faq-section { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-question { width: 100%; padding: var(--space-md) 0; display: flex; justify-content: space-between; align-items: center; font-size: 16px; font-weight: 500; text-align: left; color: var(--color-text-primary); background: none; border: none; }
.faq-question:hover { color: var(--color-accent); }
.faq-icon { width: 20px; height: 20px; transition: transform var(--transition-base); flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height var(--transition-slow); }
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer-inner { padding: 0 0 var(--space-md); font-size: 14px; color: var(--color-text-secondary); line-height: 1.7; }

/* === Policy Pages === */
.policy-sidebar { display: flex; flex-direction: column; gap: var(--space-sm); }
.policy-sidebar a { padding: 8px 12px; border-radius: var(--radius-sm); font-size: 14px; color: var(--color-text-secondary); }
.policy-sidebar a.active { background: var(--color-accent-light); color: var(--color-accent); font-weight: 600; }
.policy-page h1 { margin-bottom: var(--space-sm); }
.policy-page h2 { font-size: 20px; margin: var(--space-lg) 0 var(--space-sm); }
.policy-page p, .policy-page ul, .policy-page ol { margin-bottom: var(--space-sm); color: var(--color-text-secondary); line-height: 1.7; }
.policy-page ul, .policy-page ol { padding-left: 20px; }
.policy-page li { margin-bottom: 4px; list-style: disc; }
.policy-page ol li { list-style: decimal; }

/* === Search === */
.search-bar { position: relative; max-width: 600px; margin: 0 auto; }
.search-bar input { width: 100%; padding: 12px 16px; border: 1px solid var(--color-border); border-radius: var(--radius-full); font-size: 15px; }

/* === 404 === */
.error-page { text-align: center; padding: var(--space-3xl) var(--space-lg); }
.error-page h1 { font-size: 72px; color: var(--color-accent); }

/* === Newsletter === */
.newsletter { background: var(--color-surface-alt); padding: var(--space-2xl) 0; text-align: center; }
.newsletter-form { display: flex; gap: var(--space-sm); max-width: 480px; margin: var(--space-lg) auto 0; }
.newsletter-form input { flex: 1; padding: 12px 16px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: 14px; }

/* === Animations === */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
.fade-in { animation: fadeIn 0.6s ease; }
.slide-up { animation: slideUp 0.6s ease; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; }

/* === Responsive === */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-layout { grid-template-columns: 1fr; }
  .trust-badges { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 400px; }
  .hero-content { padding: var(--space-xl) var(--space-lg); }
  .reviews-summary { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .sort-bar { flex-direction: column; align-items: stretch; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .trust-badges { grid-template-columns: 1fr; }
  .container { padding: 0 var(--space-md); }
}

/* === Focus & Accessibility === */
*:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Prevent horizontal overflow */
html, body { max-width: 100%; overflow-x: hidden; }


/* ============================================
   Brasy Blog — Editorial Layout
   ============================================ */

.br-blog-section{padding:32px 0 80px}

.br-blog-header{text-align:center;max-width:520px;margin:0 auto 56px}
.br-blog-eyebrow{display:inline-block;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:2.5px;color:var(--color-accent);margin-bottom:16px}
.br-blog-page-title{font-family:var(--font-heading);font-size:clamp(30px,5vw,44px);font-weight:600;color:var(--color-text-primary);line-height:1.15;margin-bottom:14px;letter-spacing:-0.5px}
.br-blog-page-sub{font-size:15px;color:var(--color-text-secondary);line-height:1.6;font-style:italic}

/* Featured article */
.br-blog-featured{margin-bottom:48px;border-radius:8px;overflow:hidden;background:var(--color-surface);box-shadow:0 2px 12px rgba(0,0,0,0.06);transition:all 300ms ease}
.br-blog-featured:hover{box-shadow:0 4px 20px rgba(0,0,0,0.1);transform:translateY(-4px)}
.br-blog-featured-link{display:block;color:inherit}
.br-blog-featured-img{aspect-ratio:16/9;overflow:hidden}
.br-blog-featured-img img{width:100%;height:100%;object-fit:cover;transition:transform 600ms ease}
.br-blog-featured:hover .br-blog-featured-img img{transform:scale(1.04)}
.br-blog-featured-content{padding:32px 36px}
.br-blog-cat{display:inline-block;padding:4px 14px;background:var(--color-accent);color:var(--color-accent-fg);font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:1px;border-radius:20px;margin-bottom:16px}
.br-blog-featured-title{font-family:var(--font-heading);font-size:clamp(22px,3vw,28px);font-weight:600;line-height:1.25;margin-bottom:14px;color:var(--color-text-primary);letter-spacing:-0.5px}
.br-blog-featured-excerpt{font-size:15px;color:var(--color-text-secondary);line-height:1.6;margin-bottom:20px}
.br-blog-featured-meta{display:flex;align-items:center;gap:10px;font-size:12.5px;color:var(--color-text-muted);margin-bottom:20px}
.br-blog-meta-sep{color:var(--color-border)}
.br-blog-featured-cta{font-size:14px;font-weight:600;color:var(--color-accent);border-bottom:1px solid var(--color-accent);padding-bottom:2px;transition:all 200ms ease}
.br-blog-featured:hover .br-blog-featured-cta{padding-left:4px}

/* 2x2 grid */
.br-blog-grid{display:grid;grid-template-columns:1fr;gap:28px}
@media(min-width:600px){.br-blog-grid{grid-template-columns:1fr 1fr;gap:32px}}

.br-blog-card{background:var(--color-surface);border:1px solid var(--color-border-light);border-radius:8px;overflow:hidden;transition:all 300ms ease}
.br-blog-card:hover{box-shadow:0 2px 16px rgba(0,0,0,0.08);transform:translateY(-3px);border-color:var(--color-border)}
.br-blog-card-link{display:block;color:inherit}
.br-blog-card-img{aspect-ratio:16/10;overflow:hidden}
.br-blog-card-img img{width:100%;height:100%;object-fit:cover;transition:transform 600ms ease}
.br-blog-card:hover .br-blog-card-img img{transform:scale(1.05)}
.br-blog-card-body{padding:24px 28px}
.br-blog-cat-small{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:1.5px;color:var(--color-accent);margin-bottom:10px;display:block}
.br-blog-card-title{font-family:var(--font-heading);font-size:18px;font-weight:600;line-height:1.3;margin-bottom:10px;color:var(--color-text-primary)}
.br-blog-card-excerpt{font-size:14px;color:var(--color-text-secondary);line-height:1.5;margin-bottom:14px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.br-blog-card-meta{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--color-text-muted)}

/* Blog article page */
.br-blog-article-section{padding:28px 0 64px}
.br-blog-article-hero{position:relative;height:360px;border-radius:8px;overflow:hidden;margin-bottom:32px}
.br-blog-article-hero img{width:100%;height:100%;object-fit:cover}
.br-blog-article-overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,0.7),rgba(0,0,0,0.2));display:flex;flex-direction:column;justify-content:flex-end;padding:36px}
.br-blog-article-title{font-family:var(--font-heading);font-size:clamp(24px,3vw,32px);font-weight:600;color:#fff;max-width:600px;line-height:1.25;margin-bottom:10px}
.br-blog-article-meta{display:flex;align-items:center;gap:10px;font-size:13px;color:rgba(255,255,255,0.75)}
.br-blog-article-content{font-size:15px;color:var(--color-text-secondary);line-height:1.8}
.br-blog-article-content h2{font-family:var(--font-heading);font-size:22px;font-weight:600;color:var(--color-text-primary);margin:28px 0 12px}
.br-blog-article-content p{margin-bottom:16px}

@media(max-width:640px){
  .br-blog-featured-content{padding:24px}
  .br-blog-card-body{padding:20px}
  .br-blog-header{margin-bottom:36px}
  .br-blog-article-hero{height:280px}
  .br-blog-article-overlay{padding:24px}
}
