/* ===========================
   CULINEXA – MAIN STYLESHEET
   =========================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* ---- RESET & VARIABLES ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white:      #FFFFFF;
  --copper:     #B87333;
  --copper-dark:#9A5F25;
  --copper-light:#D4956A;
  --olive:      #6B8E23;
  --olive-dark: #526D1A;
  --slate:      #334155;
  --slate-light:#64748B;
  --cream:      #FFF8EE;
  --gray-light: #F8FAFC;
  --gray-mid:   #E2E8F0;
  --gray-text:  #94A3B8;
  --font-sans:  'Inter', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --radius-sm:  4px;
  --radius:     8px;
  --radius-lg:  16px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.06);
  --shadow:     0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.12);
  --transition: .22s ease;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--slate); background: var(--white); line-height: 1.6; font-size: 16px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ---- TYPOGRAPHY ---- */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-serif); line-height: 1.25; color: var(--slate); }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.2rem; }
p { color: var(--slate-light); line-height: 1.75; }

/* ---- UTILITIES ---- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container--sm { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--sm { padding: 48px 0; }
.section--cream { background: var(--cream); }
.section--gray { background: var(--gray-light); }
.text-copper { color: var(--copper); }
.text-slate { color: var(--slate); }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

/* ---- BUTTONS ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: var(--radius); font-size: .95rem; font-weight: 600; font-family: var(--font-sans); transition: all var(--transition); cursor: pointer; }
.btn--primary { background: var(--copper); color: var(--white); }
.btn--primary:hover { background: var(--copper-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(184,115,51,.35); }
.btn--outline { background: transparent; color: var(--copper); border: 2px solid var(--copper); }
.btn--outline:hover { background: var(--copper); color: var(--white); }
.btn--slate { background: var(--slate); color: var(--white); }
.btn--slate:hover { background: #1e2f45; }
.btn--sm { padding: 8px 18px; font-size: .85rem; }
.btn--lg { padding: 16px 40px; font-size: 1.05rem; }
.btn--full { width: 100%; justify-content: center; }
.btn--olive { background: var(--olive); color: var(--white); }
.btn--olive:hover { background: var(--olive-dark); }

/* ---- SECTION HEADERS ---- */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-header .eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--copper); margin-bottom: 12px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 1.05rem; }

/* ---- TOP BAR ---- */
.topbar { background: var(--slate); color: var(--white); padding: 8px 0; font-size: .82rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.topbar a { color: var(--gray-text); transition: color var(--transition); }
.topbar a:hover { color: var(--copper-light); }
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 20px; }

/* ---- HEADER / NAV ---- */
.site-header { background: var(--white); border-bottom: 1px solid var(--gray-mid); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm); }
.header-main { padding: 18px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo__icon { width: 40px; height: 40px; background: var(--copper); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1.4rem; }
.logo__text { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; color: var(--slate); }
.logo__text span { color: var(--copper); }
.header-search { flex: 1; max-width: 520px; }
.search-box { display: flex; align-items: center; border: 2px solid var(--gray-mid); border-radius: 50px; overflow: hidden; transition: border-color var(--transition); }
.search-box:focus-within { border-color: var(--copper); }
.search-box input { flex: 1; padding: 10px 18px; border: none; outline: none; font-size: .95rem; background: var(--gray-light); }
.search-box button { padding: 10px 20px; background: var(--copper); color: var(--white); border: none; cursor: pointer; transition: background var(--transition); }
.search-box button:hover { background: var(--copper-dark); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-action-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .72rem; color: var(--slate-light); transition: color var(--transition); padding: 4px 8px; border-radius: var(--radius-sm); }
.header-action-btn:hover { color: var(--copper); }
.header-action-btn .icon { font-size: 1.3rem; }
.cart-count { background: var(--copper); color: var(--white); border-radius: 50%; width: 18px; height: 18px; font-size: .65rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-left: -6px; margin-top: -10px; }

/* ---- MAIN NAV ---- */
.main-nav { background: var(--cream); border-bottom: 1px solid var(--gray-mid); }
.nav-list { display: flex; align-items: center; gap: 0; }
.nav-item { position: relative; }
.nav-link { display: flex; align-items: center; gap: 5px; padding: 14px 18px; font-size: .9rem; font-weight: 500; color: var(--slate); transition: all var(--transition); white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--copper); }
.nav-link::after { content: ''; display: block; height: 2px; background: var(--copper); position: absolute; bottom: 0; left: 18px; right: 18px; transform: scaleX(0); transition: transform var(--transition); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-dropdown { position: absolute; top: 100%; left: 0; background: var(--white); border: 1px solid var(--gray-mid); border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 220px; padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all var(--transition); z-index: 200; }
.nav-item:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a { display: block; padding: 10px 20px; font-size: .88rem; color: var(--slate-light); transition: all var(--transition); }
.nav-dropdown a:hover { color: var(--copper); background: var(--cream); padding-left: 26px; }

/* ---- HERO ---- */
.hero { position: relative; height: 92vh; min-height: 580px; max-height: 860px; overflow: hidden; }
.hero__image { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(51,65,85,.82) 0%, rgba(51,65,85,.35) 60%, transparent 100%); }
.hero__content { position: absolute; inset: 0; display: flex; align-items: center; }
.hero__text { max-width: 600px; color: var(--white); }
.hero__text h1 { color: var(--white); margin-bottom: 22px; font-weight: 700; }
.hero__text p { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 36px; max-width: 480px; }
.hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__scroll { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: .8rem; display: flex; flex-direction: column; align-items: center; gap: 8px; animation: bounce 2s infinite; }
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* ---- CATEGORY STRIP ---- */
.cat-strip { padding: 40px 0; background: var(--white); }
.cat-strip__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 16px; }
.cat-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 12px; border-radius: var(--radius); border: 1px solid var(--gray-mid); background: var(--gray-light); transition: all var(--transition); text-align: center; }
.cat-card:hover { border-color: var(--copper); background: var(--cream); transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-card__icon { font-size: 2rem; }
.cat-card__name { font-size: .82rem; font-weight: 600; color: var(--slate); }

/* ---- PRODUCT GRID ---- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.product-card { background: var(--white); border: 1px solid var(--gray-mid); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition); position: relative; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--copper-light); }
.product-card__img-wrap { position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--gray-light); }
.product-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-card__img { transform: scale(1.05); }
.product-card__badge { position: absolute; top: 12px; left: 12px; background: var(--copper); color: var(--white); font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.product-card__badge--green { background: var(--olive); }
.product-card__actions { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 6px; opacity: 0; transform: translateX(8px); transition: all var(--transition); }
.product-card:hover .product-card__actions { opacity: 1; transform: translateX(0); }
.product-card__action-btn { width: 34px; height: 34px; background: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .95rem; box-shadow: var(--shadow); transition: all var(--transition); border: 1px solid var(--gray-mid); }
.product-card__action-btn:hover { background: var(--copper); color: var(--white); border-color: var(--copper); }
.product-card__body { padding: 18px; }
.product-card__brand { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--copper); margin-bottom: 6px; }
.product-card__name { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 600; color: var(--slate); margin-bottom: 8px; line-height: 1.35; }
.product-card__stars { display: flex; align-items: center; gap: 4px; margin-bottom: 10px; }
.star { color: #F59E0B; font-size: .88rem; }
.product-card__rating-count { font-size: .78rem; color: var(--gray-text); margin-left: 4px; }
.product-card__price-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.product-card__price { font-size: 1.2rem; font-weight: 700; color: var(--slate); }
.product-card__price-old { font-size: .88rem; color: var(--gray-text); text-decoration: line-through; }
.product-card__discount { font-size: .78rem; font-weight: 700; color: var(--olive); background: rgba(107,142,35,.12); padding: 2px 8px; border-radius: 20px; }
.product-card__footer { padding: 0 18px 18px; }

/* ---- BREADCRUMB ---- */
.breadcrumb { padding: 16px 0; border-bottom: 1px solid var(--gray-mid); margin-bottom: 36px; }
.breadcrumb__list { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .85rem; }
.breadcrumb__item { display: flex; align-items: center; gap: 8px; color: var(--gray-text); }
.breadcrumb__item a { color: var(--slate-light); transition: color var(--transition); }
.breadcrumb__item a:hover { color: var(--copper); }
.breadcrumb__item.active { color: var(--slate); font-weight: 500; }

/* ---- CATEGORY PAGE ---- */
.cat-layout { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: start; }
.sidebar { background: var(--white); border: 1px solid var(--gray-mid); border-radius: var(--radius-lg); padding: 24px; position: sticky; top: 90px; }
.sidebar__section { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--gray-mid); }
.sidebar__section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.sidebar__title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gray-text); margin-bottom: 14px; }
.filter-option { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; }
.filter-option input { width: 16px; height: 16px; accent-color: var(--copper); cursor: pointer; }
.filter-option label { font-size: .9rem; color: var(--slate-light); cursor: pointer; transition: color var(--transition); flex: 1; }
.filter-option:hover label { color: var(--copper); }
.filter-count { font-size: .75rem; color: var(--gray-text); background: var(--gray-light); padding: 1px 7px; border-radius: 20px; }
.price-range { padding: 8px 0; }
.price-inputs { display: flex; gap: 10px; align-items: center; }
.price-inputs input { flex: 1; padding: 8px 12px; border: 1px solid var(--gray-mid); border-radius: var(--radius-sm); font-size: .88rem; outline: none; }
.price-inputs input:focus { border-color: var(--copper); }
.range-slider { -webkit-appearance: none; width: 100%; height: 4px; border-radius: 2px; background: var(--gray-mid); outline: none; margin: 12px 0; }
.range-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--copper); cursor: pointer; }
.cat-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; padding: 16px 20px; background: var(--gray-light); border-radius: var(--radius); }
.cat-count { font-size: .9rem; color: var(--slate-light); }
.cat-count strong { color: var(--slate); }
.sort-select { padding: 8px 14px; border: 1px solid var(--gray-mid); border-radius: var(--radius-sm); font-size: .9rem; outline: none; background: var(--white); cursor: pointer; }
.sort-select:focus { border-color: var(--copper); }
.view-toggles { display: flex; gap: 4px; }
.view-btn { width: 34px; height: 34px; border: 1px solid var(--gray-mid); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: .9rem; transition: all var(--transition); background: var(--white); }
.view-btn.active, .view-btn:hover { background: var(--copper); color: var(--white); border-color: var(--copper); }

/* ---- PRODUCT DETAIL ---- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.product-gallery { position: sticky; top: 90px; }
.gallery-main { aspect-ratio: 1; background: var(--gray-light); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 12px; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gallery-thumb { aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; cursor: pointer; transition: border-color var(--transition); }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--copper); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info__brand { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--copper); margin-bottom: 10px; }
.product-info__name { font-size: clamp(1.4rem, 2.5vw, 2rem); margin-bottom: 16px; }
.product-info__rating { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.rating-number { font-size: 1.1rem; font-weight: 700; color: var(--slate); }
.review-link { font-size: .88rem; color: var(--copper); transition: color var(--transition); }
.review-link:hover { color: var(--copper-dark); text-decoration: underline; }
.product-info__price-box { background: var(--cream); border-radius: var(--radius); padding: 20px; margin-bottom: 24px; }
.price-main { font-size: 2rem; font-weight: 700; color: var(--slate); font-family: var(--font-serif); }
.price-old-inline { font-size: 1rem; color: var(--gray-text); text-decoration: line-through; margin-left: 12px; }
.price-saving { font-size: .88rem; color: var(--olive); font-weight: 600; margin-top: 4px; }
.installment { font-size: .9rem; color: var(--slate-light); margin-top: 8px; }
.product-info__options { margin-bottom: 24px; }
.option-label { font-size: .88rem; font-weight: 600; color: var(--slate); margin-bottom: 10px; }
.option-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { padding: 8px 16px; border: 2px solid var(--gray-mid); border-radius: var(--radius-sm); font-size: .85rem; cursor: pointer; transition: all var(--transition); }
.swatch.active, .swatch:hover { border-color: var(--copper); color: var(--copper); }
.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.qty-control { display: flex; align-items: center; border: 1px solid var(--gray-mid); border-radius: var(--radius-sm); overflow: hidden; }
.qty-btn { width: 38px; height: 42px; font-size: 1.2rem; background: var(--gray-light); border: none; cursor: pointer; transition: background var(--transition); }
.qty-btn:hover { background: var(--copper); color: var(--white); }
.qty-input { width: 52px; height: 42px; text-align: center; border: none; border-left: 1px solid var(--gray-mid); border-right: 1px solid var(--gray-mid); font-size: 1rem; outline: none; }
.add-to-cart-btn { flex: 1; padding: 14px 28px; background: var(--copper); color: var(--white); border: none; border-radius: var(--radius); font-size: 1rem; font-weight: 600; font-family: var(--font-sans); cursor: pointer; transition: all var(--transition); }
.add-to-cart-btn:hover { background: var(--copper-dark); transform: translateY(-1px); }
.product-info__features { margin: 28px 0; }
.feature-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--gray-mid); font-size: .9rem; color: var(--slate-light); }
.feature-item:last-child { border-bottom: none; }
.feature-item .fi { font-size: 1.1rem; color: var(--copper); min-width: 22px; }
.product-tabs { margin-top: 60px; }
.tabs-nav { display: flex; border-bottom: 2px solid var(--gray-mid); flex-wrap: wrap; }
.tab-btn { padding: 14px 28px; font-size: .92rem; font-weight: 600; color: var(--slate-light); border: none; background: none; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all var(--transition); }
.tab-btn.active, .tab-btn:hover { color: var(--copper); border-bottom-color: var(--copper); }
.tab-content { display: none; padding: 32px 0; }
.tab-content.active { display: block; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--gray-mid); }
.spec-table tr:nth-child(even) { background: var(--gray-light); }
.spec-table td { padding: 12px 16px; font-size: .92rem; }
.spec-table td:first-child { font-weight: 600; color: var(--slate); width: 40%; }
.spec-table td:last-child { color: var(--slate-light); }

/* ---- COMPARISON TABLE ---- */
.compare-table-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--gray-mid); font-size: .9rem; vertical-align: top; }
.compare-table th { background: var(--cream); font-weight: 600; color: var(--slate); white-space: nowrap; }
.compare-table tr:nth-child(even) td { background: var(--gray-light); }
.compare-table td:first-child { font-weight: 600; color: var(--slate); }
.compare-check { color: var(--olive); font-size: 1.1rem; }
.compare-x { color: #EF4444; font-size: 1.1rem; }

/* ---- BLOG ---- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.blog-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--gray-mid); transition: all var(--transition); }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card__img { aspect-ratio: 16/9; overflow: hidden; }
.blog-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.blog-card:hover .blog-card__img img { transform: scale(1.05); }
.blog-card__body { padding: 24px; }
.blog-card__cat { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--copper); margin-bottom: 8px; }
.blog-card__title { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; color: var(--slate); margin-bottom: 10px; line-height: 1.3; transition: color var(--transition); }
.blog-card:hover .blog-card__title { color: var(--copper); }
.blog-card__excerpt { font-size: .88rem; color: var(--slate-light); line-height: 1.6; margin-bottom: 16px; }
.blog-card__meta { display: flex; align-items: center; justify-content: space-between; font-size: .78rem; color: var(--gray-text); }
.blog-card__author { display: flex; align-items: center; gap: 6px; }
.blog-featured { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; margin-bottom: 48px; }
.blog-featured__img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/10; }
.blog-featured__img img { width: 100%; height: 100%; object-fit: cover; }
.blog-featured__body .blog-card__cat { font-size: .82rem; }
.blog-featured__body h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); margin-bottom: 14px; }
.blog-featured__body p { margin-bottom: 24px; }
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.article-body h2 { margin: 36px 0 16px; }
.article-body h3 { margin: 28px 0 12px; }
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 18px; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 8px; color: var(--slate-light); line-height: 1.7; }
.article-body img { border-radius: var(--radius); margin: 28px 0; }
.article-sidebar { position: sticky; top: 90px; }
.widget { background: var(--white); border: 1px solid var(--gray-mid); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 24px; }
.widget__title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gray-text); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--gray-mid); }

/* ---- CART ---- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 36px; align-items: start; }
.cart-item { display: grid; grid-template-columns: 100px 1fr auto; gap: 20px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--gray-mid); }
.cart-item__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; }
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__name { font-family: var(--font-serif); font-size: 1.05rem; margin-bottom: 8px; }
.cart-item__brand { font-size: .78rem; color: var(--copper); font-weight: 600; text-transform: uppercase; margin-bottom: 6px; }
.cart-item__sku { font-size: .78rem; color: var(--gray-text); }
.cart-summary { background: var(--cream); border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--gray-mid); position: sticky; top: 90px; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--gray-mid); font-size: .92rem; }
.summary-row:last-child { border-bottom: none; }
.summary-row.total { font-size: 1.1rem; font-weight: 700; color: var(--slate); }
.summary-row .label { color: var(--slate-light); }

/* ---- CHECKOUT ---- */
.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 36px; align-items: start; }
.checkout-step { background: var(--white); border: 1px solid var(--gray-mid); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 20px; }
.checkout-step__header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.step-number { width: 32px; height: 32px; background: var(--copper); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .88rem; font-weight: 700; flex-shrink: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: .85rem; font-weight: 600; color: var(--slate); margin-bottom: 6px; }
.form-input { width: 100%; padding: 11px 14px; border: 1px solid var(--gray-mid); border-radius: var(--radius-sm); font-size: .95rem; font-family: var(--font-sans); outline: none; transition: border-color var(--transition); background: var(--white); }
.form-input:focus { border-color: var(--copper); }
.form-select { width: 100%; padding: 11px 14px; border: 1px solid var(--gray-mid); border-radius: var(--radius-sm); font-size: .95rem; font-family: var(--font-sans); outline: none; background: var(--white); cursor: pointer; }
.form-select:focus { border-color: var(--copper); }

/* ---- CONTACT ---- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info__item { display: flex; gap: 16px; margin-bottom: 28px; }
.contact-info__icon { width: 48px; height: 48px; background: var(--cream); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.contact-form { background: var(--white); border: 1px solid var(--gray-mid); border-radius: var(--radius-lg); padding: 36px; }
.contact-form h3 { margin-bottom: 24px; }
.success-msg { display: none; background: rgba(107,142,35,.12); border: 1px solid var(--olive); color: var(--olive-dark); padding: 16px 20px; border-radius: var(--radius); margin-bottom: 20px; font-size: .95rem; }
.success-msg.visible { display: flex; align-items: center; gap: 10px; }

/* ---- NEWSLETTER ---- */
.newsletter-bar { background: var(--slate); padding: 60px 0; }
.newsletter-bar .container { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.newsletter-bar h2 { color: var(--white); font-size: clamp(1.4rem,2.5vw,2rem); margin-bottom: 10px; }
.newsletter-bar p { color: rgba(255,255,255,.7); }
.newsletter-form { display: flex; gap: 12px; }
.newsletter-form input { flex: 1; padding: 14px 18px; border-radius: var(--radius); border: none; font-size: .95rem; outline: none; }
.newsletter-form button { padding: 14px 28px; background: var(--copper); color: var(--white); border: none; border-radius: var(--radius); font-weight: 600; cursor: pointer; transition: background var(--transition); white-space: nowrap; }
.newsletter-form button:hover { background: var(--copper-dark); }

/* ---- TRUST BAR ---- */
.trust-bar { padding: 40px 0; border-top: 1px solid var(--gray-mid); border-bottom: 1px solid var(--gray-mid); }
.trust-bar__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.trust-item { display: flex; align-items: center; gap: 14px; }
.trust-item__icon { font-size: 2rem; color: var(--copper); }
.trust-item__title { font-size: .9rem; font-weight: 600; color: var(--slate); }
.trust-item__text { font-size: .8rem; color: var(--slate-light); }

/* ---- FOOTER ---- */
.site-footer { background: var(--slate); color: rgba(255,255,255,.8); }
.footer-main { padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-brand .logo__text { color: var(--white); }
.footer-brand .logo__text span { color: var(--copper-light); }
.footer-brand p { font-size: .88rem; margin: 16px 0 24px; color: rgba(255,255,255,.6); line-height: 1.7; }
.footer-col h4 { font-family: var(--font-sans); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--copper-light); margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: .88rem; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--copper-light); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: .85rem; color: rgba(255,255,255,.65); }
.footer-contact-item .ic { color: var(--copper-light); }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.social-btn { width: 36px; height: 36px; background: rgba(255,255,255,.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .9rem; transition: all var(--transition); color: rgba(255,255,255,.7); }
.social-btn:hover { background: var(--copper); color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; color: rgba(255,255,255,.5); }
.footer-bottom a { color: rgba(255,255,255,.5); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--copper-light); }
.footer-legal-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---- COOKIES BANNER ---- */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--slate); color: var(--white); padding: 20px 24px; z-index: 999; border-top: 3px solid var(--copper); transform: translateY(100%); transition: transform .4s ease; }
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.cookie-banner p { font-size: .88rem; color: rgba(255,255,255,.8); }
.cookie-banner a { color: var(--copper-light); text-decoration: underline; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }

/* ---- HERO PRICE TRACKER ---- */
.price-tracker-card { background: var(--white); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-lg); }
.price-tracker-card h4 { font-size: 1rem; margin-bottom: 16px; color: var(--slate); }
.price-chart-bar { display: flex; align-items: flex-end; gap: 6px; height: 80px; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.chart-bar { width: 100%; background: var(--copper); border-radius: 3px 3px 0 0; transition: opacity var(--transition); }
.chart-bar:hover { opacity: .8; }
.chart-label { font-size: .65rem; color: var(--gray-text); }
.chart-month { font-size: .65rem; color: var(--gray-text); margin-top: 4px; }

/* ---- PAGINATION ---- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 48px; }
.page-btn { width: 40px; height: 40px; border: 1px solid var(--gray-mid); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: .9rem; color: var(--slate-light); transition: all var(--transition); background: var(--white); }
.page-btn:hover, .page-btn.active { background: var(--copper); color: var(--white); border-color: var(--copper); }

/* ---- TAGS ---- */
.tag { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: .78rem; font-weight: 500; background: var(--gray-light); color: var(--slate-light); border: 1px solid var(--gray-mid); transition: all var(--transition); }
.tag:hover { background: var(--cream); border-color: var(--copper); color: var(--copper); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- TESTIMONIALS ---- */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.testimonial-card { background: var(--white); border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--gray-mid); position: relative; }
.testimonial-card::before { content: '"'; font-family: var(--font-serif); font-size: 5rem; color: var(--copper); opacity: .15; position: absolute; top: 10px; right: 20px; line-height: 1; }
.testimonial-card__text { font-size: .95rem; color: var(--slate-light); line-height: 1.75; margin-bottom: 20px; }
.testimonial-card__author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--cream); display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 700; color: var(--copper); border: 2px solid var(--copper-light); }
.author-name { font-size: .88rem; font-weight: 600; color: var(--slate); }
.author-city { font-size: .78rem; color: var(--gray-text); }

/* ---- STATS ---- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-card { text-align: center; padding: 32px 20px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--gray-mid); }
.stat-card__num { font-family: var(--font-serif); font-size: 2.4rem; font-weight: 700; color: var(--copper); margin-bottom: 6px; }
.stat-card__label { font-size: .88rem; color: var(--slate-light); }

/* ---- EMPTY STATE ---- */
.empty-state { text-align: center; padding: 80px 24px; }
.empty-state__icon { font-size: 4rem; margin-bottom: 20px; opacity: .4; }
.empty-state h3 { margin-bottom: 10px; }
.empty-state p { margin-bottom: 24px; }

/* ---- ALERT ---- */
.alert { padding: 14px 18px; border-radius: var(--radius); font-size: .9rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.alert--success { background: rgba(107,142,35,.1); border: 1px solid var(--olive); color: var(--olive-dark); }
.alert--info { background: rgba(184,115,51,.1); border: 1px solid var(--copper-light); color: var(--copper-dark); }
.alert--warning { background: rgba(245,158,11,.1); border: 1px solid #F59E0B; color: #92400E; }

/* ---- MISC ---- */
.divider { height: 1px; background: var(--gray-mid); margin: 32px 0; }
.aspect-video { aspect-ratio: 16/9; }
.rounded-lg { border-radius: var(--radius-lg); }
.overflow-hidden { overflow: hidden; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.object-cover { object-fit: cover; }
.sticky-top { position: sticky; top: 90px; }

/* ---- MOBILE MENU ---- */
.mobile-menu-btn { display: none; padding: 8px; font-size: 1.4rem; color: var(--slate); }

/* ---- BACK TO TOP ---- */
.back-top { position: fixed; bottom: 28px; right: 28px; width: 44px; height: 44px; background: var(--copper); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all var(--transition); z-index: 88; border: none; box-shadow: var(--shadow); }
.back-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--copper-dark); transform: translateY(-2px); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero { height: 70vh; }
  .product-detail { grid-template-columns: 1fr; gap: 36px; }
  .product-gallery { position: static; }
  .cat-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .blog-featured { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .contact-layout { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .newsletter-bar .container { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .header-search { display: none; }
  .mobile-menu-btn { display: block; }
  .topbar { display: none; }
  .header-action-btn span:not(.icon):not(.cart-count) { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal-links { justify-content: center; }
  .section { padding: 52px 0; }
  .hero { height: 60vh; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .compare-table th, .compare-table td { padding: 10px 12px; font-size: .82rem; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .newsletter-form { flex-direction: column; }
  .hero__ctas { flex-direction: column; }
  .cart-item { grid-template-columns: 80px 1fr; }
}

/* ---- POLICY PAGES ---- */
.policy-page { max-width: 860px; margin: 0 auto; padding: 60px 24px 80px; }
.policy-page h1 { margin-bottom: 8px; }
.policy-page .last-updated { font-size: .85rem; color: var(--gray-text); margin-bottom: 40px; }
.policy-page h2 { font-size: 1.3rem; margin: 36px 0 14px; padding-top: 8px; border-top: 1px solid var(--gray-mid); }
.policy-page h3 { font-size: 1.05rem; margin: 22px 0 10px; color: var(--copper); }
.policy-page p { margin-bottom: 16px; }
.policy-page ul, .policy-page ol { padding-left: 24px; margin-bottom: 16px; }
.policy-page ul { list-style: disc; }
.policy-page ol { list-style: decimal; }
.policy-page li { margin-bottom: 8px; color: var(--slate-light); line-height: 1.7; }
.policy-page table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .9rem; }
.policy-page table th { background: var(--cream); padding: 10px 14px; text-align: left; font-weight: 600; color: var(--slate); border: 1px solid var(--gray-mid); }
.policy-page table td { padding: 10px 14px; border: 1px solid var(--gray-mid); color: var(--slate-light); }
.policy-toc { background: var(--cream); border-radius: var(--radius); padding: 24px; margin-bottom: 36px; }
.policy-toc h3 { font-size: 1rem; margin-bottom: 12px; font-family: var(--font-sans); }
.policy-toc ol { padding-left: 20px; }
.policy-toc li a { color: var(--copper); font-size: .9rem; }
.policy-toc li a:hover { text-decoration: underline; }

/* ---- ABOUT ---- */
.about-hero { background: var(--cream); padding: 80px 0; }
.about-hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-hero__img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; }
.about-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px; }
.team-card { text-align: center; background: var(--white); border-radius: var(--radius-lg); padding: 32px 24px; border: 1px solid var(--gray-mid); transition: all var(--transition); }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.team-card__img { width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 16px; overflow: hidden; border: 3px solid var(--cream); }
.team-card__img img { width: 100%; height: 100%; object-fit: cover; }
.team-card__name { font-size: 1rem; font-weight: 600; color: var(--slate); margin-bottom: 4px; }
.team-card__role { font-size: .85rem; color: var(--copper); margin-bottom: 10px; }
.team-card__bio { font-size: .83rem; color: var(--slate-light); line-height: 1.6; }

/* ---- SITEMAP PAGE ---- */
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px; margin-top: 48px; }
.sitemap-section h3 { font-size: 1rem; font-weight: 600; color: var(--copper); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--copper-light); }
.sitemap-section ul li { margin-bottom: 8px; }
.sitemap-section ul li a { font-size: .9rem; color: var(--slate-light); transition: color var(--transition); display: flex; align-items: center; gap: 6px; }
.sitemap-section ul li a:hover { color: var(--copper); }

/* ---- SEARCH PAGE ---- */
.search-filters-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.search-chip { padding: 7px 16px; border-radius: 20px; border: 1px solid var(--gray-mid); font-size: .85rem; cursor: pointer; background: var(--white); transition: all var(--transition); }
.search-chip.active, .search-chip:hover { background: var(--copper); color: var(--white); border-color: var(--copper); }

/* R13 auto-aliases */
:root {
  --shadow-md: 0 4px 6px rgba(0,0,0,.1);
  --gray-bg: #f5f5f5;
}

/* auto-fix missing classes */
.footer-col h5,.footer-col .footer-heading{font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:1.5px;margin-bottom:14px;}

/* auto-fix: R13 footer structural classes */
.footer-col { }
.footer-col h5, .footer-col .footer-heading {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; margin-bottom: 14px; opacity: .6;
}
.footer-col ul { padding: 0; list-style: none; }
.footer-col li { margin-bottom: 7px; }
.footer-brand .logo-text,
.footer-brand .site-logo__name,
.footer-brand .footer-logo-name { color: #fff; }
.footer-brand .logo-icon,
.footer-brand .site-logo__icon { background: rgba(255,255,255,.12); }
