/* =============================================================
   Clivora — Smart Living Marketplace | Global Stylesheet
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700&display=swap');

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white:    #FFFFFF;
  --navy:     #1E293B;
  --navy-lt:  #334155;
  --teal:     #0891B2;
  --teal-dk:  #0E7490;
  --emerald:  #10B981;
  --beige:    #F5F5DC;
  --gray-50:  #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --radius:   10px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow:    0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.14);
  --transition: 0.22s ease;
  --font-sans: 'Inter', sans-serif;
  --font-head: 'Poppins', sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--navy);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-dk); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-sans); }
input, textarea, select { font-family: var(--font-sans); }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }
.section--sm { padding: 48px 0; }
.section--lg { padding: 100px 0; }
.section--gray { background: var(--gray-50); }
.section--navy { background: var(--navy); color: var(--white); }
.section--beige { background: var(--beige); }

/* ── Typography ───────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); line-height: 1.25; color: var(--navy); font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }

.text-teal   { color: var(--teal); }
.text-emerald{ color: var(--emerald); }
.text-muted  { color: var(--gray-500); }
.text-sm     { font-size: .875rem; }
.text-xs     { font-size: .75rem; }
.text-lg     { font-size: 1.125rem; }
.text-xl     { font-size: 1.25rem; }
.font-600    { font-weight: 600; }
.font-700    { font-weight: 700; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius);
  font-weight: 600; font-size: .95rem; border: 2px solid transparent;
  transition: all var(--transition); text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: var(--teal); color: var(--white); border-color: var(--teal);
}
.btn-primary:hover { background: var(--teal-dk); border-color: var(--teal-dk); color: var(--white); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(8,145,178,.3); }

.btn-secondary {
  background: transparent; color: var(--teal); border-color: var(--teal);
}
.btn-secondary:hover { background: var(--teal); color: var(--white); }

.btn-emerald {
  background: var(--emerald); color: var(--white); border-color: var(--emerald);
}
.btn-emerald:hover { background: #059669; border-color: #059669; color: var(--white); transform: translateY(-1px); }

.btn-navy {
  background: var(--navy); color: var(--white); border-color: var(--navy);
}
.btn-navy:hover { background: var(--navy-lt); border-color: var(--navy-lt); color: var(--white); }

.btn-sm { padding: 8px 18px; font-size: .85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

.btn-icon { padding: 10px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; }

/* ── Section Headings ─────────────────────────────────────── */
.section-label {
  display: inline-block; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; color: var(--teal);
  margin-bottom: 10px;
}
.section-title { margin-bottom: 12px; }
.section-desc { color: var(--gray-500); font-size: 1.05rem; max-width: 560px; }
.section-head { margin-bottom: 48px; }
.section-head--center { text-align: center; }
.section-head--center .section-desc { margin: 0 auto; }

/* ── Header / Nav ─────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: var(--white); border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.header-top {
  background: var(--navy); color: var(--gray-300);
  font-size: .78rem; padding: 6px 0;
}
.header-top .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.header-top a { color: var(--gray-300); }
.header-top a:hover { color: var(--white); }
.header-top-left, .header-top-right { display: flex; align-items: center; gap: 20px; }
.header-top-item { display: flex; align-items: center; gap: 6px; }

.header-main { padding: 14px 0; }
.header-main .container { display: flex; align-items: center; gap: 24px; }

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 40px; height: 40px; background: linear-gradient(135deg, var(--teal), var(--emerald));
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
}
.logo-mark svg { width: 22px; height: 22px; fill: white; }
.logo-text { font-family: var(--font-head); font-size: 1.45rem; font-weight: 700; color: var(--navy); }
.logo-text span { color: var(--teal); }

.header-search { flex: 1; max-width: 520px; position: relative; }
.header-search input {
  width: 100%; padding: 10px 50px 10px 18px;
  border: 2px solid var(--gray-200); border-radius: 50px;
  font-size: .9rem; background: var(--gray-50); transition: border-color var(--transition);
  color: var(--navy);
}
.header-search input:focus { outline: none; border-color: var(--teal); background: var(--white); }
.header-search button {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: var(--teal); color: white; border: none; border-radius: 50px;
  padding: 7px 14px; font-size: .85rem; font-weight: 600;
}
.header-search button:hover { background: var(--teal-dk); }

.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.header-action-btn {
  display: flex; align-items: center; gap: 6px; padding: 9px 14px;
  border-radius: 8px; border: 1px solid var(--gray-200); background: var(--white);
  color: var(--navy); font-size: .85rem; font-weight: 500; transition: all var(--transition);
  text-decoration: none;
}
.header-action-btn:hover { border-color: var(--teal); color: var(--teal); background: var(--gray-50); }
.header-action-btn .count {
  background: var(--teal); color: white; border-radius: 50%;
  width: 18px; height: 18px; font-size: .65rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.header-action-btn.active { background: var(--teal); color: white; border-color: var(--teal); }
.header-action-btn.active:hover { background: var(--teal-dk); color: white; }

/* ── Main Navigation ──────────────────────────────────────── */
.main-nav { background: var(--gray-50); border-bottom: 1px solid var(--gray-200); }
.main-nav .container { display: flex; align-items: center; gap: 0; }
.main-nav ul { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.main-nav ul li a {
  display: block; padding: 13px 18px; font-size: .88rem; font-weight: 500;
  color: var(--navy-lt); transition: all var(--transition); border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.main-nav ul li a:hover,
.main-nav ul li a.active { color: var(--teal); border-bottom-color: var(--teal); }

.main-nav .dropdown { position: relative; }
.main-nav .dropdown-menu {
  position: absolute; top: 100%; left: 0; z-index: 800;
  background: var(--white); border: 1px solid var(--gray-200);
  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);
}
.main-nav .dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .dropdown-menu a {
  display: block; padding: 9px 20px; font-size: .87rem; color: var(--navy-lt);
  border-bottom: none !important;
}
.main-nav .dropdown-menu a:hover { background: var(--gray-50); color: var(--teal); }

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb { padding: 14px 0; font-size: .82rem; color: var(--gray-400); }
.breadcrumb ol { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.breadcrumb li { display: flex; align-items: center; gap: 6px; }
.breadcrumb li a { color: var(--gray-500); }
.breadcrumb li a:hover { color: var(--teal); }
.breadcrumb li.active { color: var(--navy); font-weight: 500; }
.breadcrumb li + li::before { content: '/'; color: var(--gray-300); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy); color: var(--white);
  min-height: 560px; display: flex; align-items: center;
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .22;
}
.hero-body { position: relative; z-index: 2; max-width: 640px; }
.hero-eyebrow { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--teal); margin-bottom: 16px; }
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero p { color: rgba(255,255,255,.75); font-size: 1.1rem; margin-bottom: 36px; max-width: 500px; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 48px; flex-wrap: wrap; }
.hero-stat { border-left: 3px solid var(--teal); padding-left: 16px; }
.hero-stat strong { display: block; font-size: 1.8rem; font-weight: 800; color: var(--white); }
.hero-stat span { font-size: .82rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .08em; }

/* ── Cards ────────────────────────────────────────────────── */
.cards-grid { display: grid; gap: 24px; }
.cards-grid--2 { grid-template-columns: repeat(2, 1fr); }
.cards-grid--3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

/* Product Cards */
.product-card { display: flex; flex-direction: column; }
.product-card-img {
  position: relative; overflow: hidden; background: var(--gray-50);
  aspect-ratio: 4/3;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-img-actions {
  position: absolute; top: 12px; right: 12px;
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; transform: translateX(8px); transition: all var(--transition);
}
.product-card:hover .product-card-img-actions { opacity: 1; transform: translateX(0); }
.product-card-img-btn {
  width: 36px; height: 36px; border-radius: 50%; background: white;
  border: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: center;
  color: var(--navy); transition: all var(--transition); box-shadow: var(--shadow-sm);
}
.product-card-img-btn:hover { background: var(--teal); color: white; border-color: var(--teal); }

.product-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.product-card-brand { font-size: .73rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gray-400); }
.product-card-name { font-family: var(--font-head); font-size: 1rem; font-weight: 600; color: var(--navy); line-height: 1.35; }
.product-card-name a { color: inherit; }
.product-card-name a:hover { color: var(--teal); }
.product-card-rating { display: flex; align-items: center; gap: 6px; font-size: .82rem; }
.stars { color: #F59E0B; letter-spacing: 1px; font-size: .9rem; }
.product-card-rating span { color: var(--gray-400); }
.product-card-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.spec-tag {
  background: var(--gray-100); color: var(--gray-600);
  border-radius: 4px; padding: 3px 8px; font-size: .72rem; font-weight: 500;
}
.product-card-price-row { display: flex; align-items: baseline; gap: 10px; margin-top: auto; padding-top: 10px; }
.product-card-price { font-size: 1.3rem; font-weight: 800; color: var(--navy); font-family: var(--font-head); }
.product-card-price-old { font-size: .9rem; color: var(--gray-400); text-decoration: line-through; }
.product-card-price-save { font-size: .72rem; font-weight: 700; color: var(--emerald); background: #DCFCE7; padding: 2px 7px; border-radius: 4px; }
.product-card-footer { padding: 0 18px 18px; }

/* Category Cards */
.cat-card {
  display: block; position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/3; text-decoration: none;
}
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.cat-card:hover img { transform: scale(1.06); }
.cat-card-body {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,23,42,.75) 40%, transparent);
  padding: 20px; display: flex; flex-direction: column; justify-content: flex-end;
}
.cat-card-name { color: white; font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; }
.cat-card-count { color: rgba(255,255,255,.7); font-size: .8rem; margin-top: 4px; }

/* Blog Cards */
.blog-card { display: flex; flex-direction: column; }
.blog-card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--gray-100); }
.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.04); }
.blog-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta { display: flex; align-items: center; gap: 12px; font-size: .78rem; color: var(--gray-400); margin-bottom: 10px; }
.blog-card-cat { color: var(--teal); font-weight: 600; font-size: .78rem; }
.blog-card-title { font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; color: var(--navy); line-height: 1.4; margin-bottom: 8px; }
.blog-card-title a { color: inherit; }
.blog-card-title a:hover { color: var(--teal); }
.blog-card-excerpt { color: var(--gray-500); font-size: .88rem; line-height: 1.6; flex: 1; }
.blog-card-footer { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: space-between; }
.blog-card-read { font-size: .83rem; font-weight: 600; color: var(--teal); }

/* Feature / Info Cards */
.feature-card { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.feature-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8,145,178,.1);
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-icon--teal   { background: rgba(8,145,178,.1); color: var(--teal); }
.feature-icon--emerald{ background: rgba(16,185,129,.1); color: var(--emerald); }
.feature-icon--navy   { background: rgba(30,41,59,.08); color: var(--navy); }
.feature-card h4 { font-size: 1.05rem; font-weight: 700; }
.feature-card p { font-size: .88rem; color: var(--gray-500); line-height: 1.65; }

/* ── Sidebar layout ───────────────────────────────────────── */
.layout-sidebar { display: grid; grid-template-columns: 280px 1fr; gap: 36px; align-items: start; }
.layout-sidebar--right { grid-template-columns: 1fr 280px; }

.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; }
.sidebar-widget-head { padding: 16px 20px; background: var(--gray-50); border-bottom: 1px solid var(--gray-200); }
.sidebar-widget-head h4 { font-size: .93rem; font-weight: 700; }
.sidebar-widget-body { padding: 16px 20px; }

.filter-group { margin-bottom: 20px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-group-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-400); margin-bottom: 10px; display: block; }
.filter-item { display: flex; align-items: center; gap: 10px; padding: 5px 0; cursor: pointer; }
.filter-item input[type="checkbox"], .filter-item input[type="radio"] { accent-color: var(--teal); width: 16px; height: 16px; cursor: pointer; }
.filter-item label { font-size: .87rem; cursor: pointer; color: var(--navy-lt); flex: 1; }
.filter-item .count { font-size: .75rem; color: var(--gray-400); }

.price-range-row { display: flex; align-items: center; gap: 8px; font-size: .87rem; color: var(--gray-600); }
input[type="range"] { accent-color: var(--teal); width: 100%; }

/* ── Comparison Table ─────────────────────────────────────── */
.compare-table-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.compare-table th, .compare-table td { padding: 14px 18px; border: 1px solid var(--gray-200); text-align: left; vertical-align: top; }
.compare-table thead th { background: var(--navy); color: white; font-weight: 600; text-align: center; }
.compare-table thead th:first-child { background: var(--gray-50); color: var(--navy); text-align: left; }
.compare-table tbody tr:nth-child(even) td { background: var(--gray-50); }
.compare-table td:first-child { font-weight: 600; color: var(--navy-lt); background: var(--white) !important; }
.compare-table .check { color: var(--emerald); font-size: 1.1rem; }
.compare-table .cross { color: #EF4444; font-size: 1.1rem; }
.compare-table .best { background: rgba(16,185,129,.08) !important; }
.compare-table .highlight { font-weight: 700; color: var(--teal); }

/* ── Price History Chart placeholder ─────────────────────── */
.price-chart-wrap { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 24px; }
.price-chart-canvas { width: 100%; height: 200px; }

/* ── Product Detail ───────────────────────────────────────── */
.product-gallery { display: grid; grid-template-columns: 80px 1fr; gap: 12px; }
.gallery-thumbs { display: flex; flex-direction: column; gap: 8px; }
.gallery-thumb {
  width: 80px; height: 80px; border-radius: 8px; overflow: hidden;
  border: 2px solid var(--gray-200); cursor: pointer; transition: border-color var(--transition);
  background: var(--gray-50);
}
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--teal); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main { border-radius: var(--radius); overflow: hidden; background: var(--gray-50); aspect-ratio: 4/3; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.product-info { display: flex; flex-direction: column; gap: 18px; }
.product-brand { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--teal); }
.product-title { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 800; }
.product-sku { font-size: .78rem; color: var(--gray-400); }
.product-rating-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.product-price-big { font-size: 2.2rem; font-weight: 900; color: var(--navy); font-family: var(--font-head); }
.product-price-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.product-availability {
  display: inline-flex; align-items: center; gap: 8px; font-size: .87rem; font-weight: 600;
  padding: 6px 14px; border-radius: 50px;
}
.availability--in  { background: #DCFCE7; color: #059669; }
.availability--out { background: #FEE2E2; color: #DC2626; }

.product-short-specs { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; padding: 18px; background: var(--gray-50); border-radius: var(--radius); border: 1px solid var(--gray-200); }
.product-spec-item { display: flex; flex-direction: column; gap: 2px; }
.product-spec-item dt { font-size: .75rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.product-spec-item dd { font-size: .9rem; font-weight: 600; color: var(--navy); }

.qty-selector { display: flex; align-items: center; gap: 0; border: 2px solid var(--gray-200); border-radius: 8px; width: fit-content; overflow: hidden; }
.qty-btn { width: 40px; height: 44px; background: var(--gray-100); border: none; font-size: 1.2rem; color: var(--navy); display: flex; align-items: center; justify-content: center; transition: background var(--transition); }
.qty-btn:hover { background: var(--gray-200); }
.qty-input { width: 52px; height: 44px; border: none; text-align: center; font-size: 1rem; font-weight: 700; background: white; color: var(--navy); border-left: 2px solid var(--gray-200); border-right: 2px solid var(--gray-200); }
.qty-input:focus { outline: none; }

/* ── Tabs ─────────────────────────────────────────────────── */
.tabs { border-bottom: 2px solid var(--gray-200); display: flex; gap: 0; overflow-x: auto; }
.tab-btn {
  padding: 14px 24px; font-size: .9rem; font-weight: 600; color: var(--gray-500);
  background: none; border: none; border-bottom: 3px solid transparent; margin-bottom: -2px;
  white-space: nowrap; transition: all var(--transition); cursor: pointer;
}
.tab-btn:hover { color: var(--teal); }
.tab-btn.active { color: var(--teal); border-bottom-color: var(--teal); }
.tab-content { display: none; padding: 28px 0; }
.tab-content.active { display: block; }

/* ── Specs Table ──────────────────────────────────────────── */
.specs-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.specs-table tr { border-bottom: 1px solid var(--gray-200); }
.specs-table tr:last-child { border-bottom: none; }
.specs-table th { padding: 12px 16px; text-align: left; background: var(--gray-50); font-weight: 700; color: var(--navy); width: 38%; font-size: .85rem; }
.specs-table td { padding: 12px 16px; color: var(--navy-lt); }

/* ── Reviews ──────────────────────────────────────────────── */
.review-item { padding: 22px 0; border-bottom: 1px solid var(--gray-100); }
.review-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.reviewer-info { display: flex; align-items: center; gap: 12px; }
.reviewer-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--teal);
  color: white; font-weight: 700; font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
}
.reviewer-name { font-weight: 700; font-size: .92rem; color: var(--navy); }
.review-date { font-size: .78rem; color: var(--gray-400); }
.review-text { font-size: .9rem; color: var(--gray-600); line-height: 1.65; }
.review-verified { font-size: .73rem; font-weight: 700; color: var(--emerald); background: #DCFCE7; padding: 2px 8px; border-radius: 4px; display: inline-block; margin-top: 8px; }

/* ── Forms ────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: .87rem; font-weight: 600; color: var(--navy-lt); }
.form-control {
  width: 100%; padding: 11px 16px; border: 2px solid var(--gray-200);
  border-radius: var(--radius); font-size: .9rem; color: var(--navy);
  background: var(--white); transition: border-color var(--transition);
}
.form-control:focus { outline: none; border-color: var(--teal); }
.form-control--error { border-color: #EF4444 !important; }
.form-hint { font-size: .78rem; color: var(--gray-400); }
.form-error { font-size: .78rem; color: #EF4444; }
textarea.form-control { resize: vertical; min-height: 120px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-section { padding-top: 28px; border-top: 1px solid var(--gray-100); margin-top: 10px; }
.form-section-title { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; margin-bottom: 18px; }

/* Success message */
.form-success {
  background: #DCFCE7; border: 1px solid #BBF7D0; border-radius: var(--radius);
  padding: 18px 22px; display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px;
}
.form-success svg { color: var(--emerald); width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; }
.form-success-text strong { display: block; font-weight: 700; color: #065F46; margin-bottom: 4px; }
.form-success-text p { font-size: .87rem; color: #047857; }
.form-success { display: none; }
.form-success.visible { display: flex; }

/* ── Cart ─────────────────────────────────────────────────── */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; padding: 12px 16px; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-400); border-bottom: 2px solid var(--gray-200); }
.cart-table td { padding: 18px 16px; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.cart-item-info { display: flex; align-items: center; gap: 16px; }
.cart-item-img { width: 72px; height: 72px; border-radius: 8px; overflow: hidden; background: var(--gray-100); flex-shrink: 0; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-weight: 600; font-size: .92rem; color: var(--navy); }
.cart-item-sku { font-size: .75rem; color: var(--gray-400); }
.cart-remove { background: none; border: none; color: var(--gray-400); font-size: 1.1rem; padding: 4px; cursor: pointer; transition: color var(--transition); }
.cart-remove:hover { color: #EF4444; }

.order-summary { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 24px; }
.order-summary h3 { font-size: 1.1rem; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--gray-200); }
.order-line { display: flex; justify-content: space-between; padding: 8px 0; font-size: .92rem; }
.order-line.total { font-weight: 800; font-size: 1.1rem; padding-top: 14px; border-top: 2px solid var(--gray-300); margin-top: 8px; }
.order-line.total span:last-child { color: var(--teal); }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); margin-top: 80px; }
.footer-main { padding: 64px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand-desc { font-size: .88rem; line-height: 1.7; max-width: 300px; color: rgba(255,255,255,.6); }
.footer-logo .logo-text { color: white; }
.footer-col h5 { font-family: var(--font-head); font-weight: 700; color: white; font-size: .92rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,.6); font-size: .87rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--teal); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: .87rem; color: rgba(255,255,255,.6); }
.footer-contact-item svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--teal); }
.footer-contact-item a { color: rgba(255,255,255,.6); }
.footer-contact-item a:hover { color: var(--teal); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.footer-bottom p { font-size: .82rem; }
.footer-bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom-links a { font-size: .82rem; color: rgba(255,255,255,.5); transition: color var(--transition); }
.footer-bottom-links a:hover { color: var(--teal); }
.footer-badges { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.footer-badge {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: 6px; padding: 6px 12px; font-size: .72rem; color: rgba(255,255,255,.6);
  font-weight: 600; letter-spacing: .04em;
}

/* ── Newsletter ───────────────────────────────────────────── */
.newsletter-form { display: flex; gap: 0; max-width: 440px; }
.newsletter-form input {
  flex: 1; padding: 12px 18px; border: 2px solid rgba(255,255,255,.15);
  border-right: none; border-radius: var(--radius) 0 0 var(--radius);
  background: rgba(255,255,255,.08); color: white; font-size: .9rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.4); }
.newsletter-form input:focus { outline: none; border-color: var(--teal); }
.newsletter-form button {
  border-radius: 0 var(--radius) var(--radius) 0; padding: 12px 22px;
  background: var(--teal); color: white; border: 2px solid var(--teal);
  font-weight: 700; font-size: .88rem;
}
.newsletter-form button:hover { background: var(--teal-dk); border-color: var(--teal-dk); }

/* ── Pagination ───────────────────────────────────────────── */
.pagination { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.page-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px;
  border: 1px solid var(--gray-200); color: var(--navy-lt); font-size: .88rem; font-weight: 600;
  transition: all var(--transition); text-decoration: none;
}
.page-link:hover, .page-link.active { background: var(--teal); color: white; border-color: var(--teal); }
.page-link--wide { width: auto; padding: 0 14px; }

/* ── Info Boxes ───────────────────────────────────────────── */
.info-box { padding: 18px 20px; border-radius: var(--radius); border-left: 4px solid; font-size: .9rem; }
.info-box--info  { background: #EFF6FF; border-color: #3B82F6; color: #1E3A5F; }
.info-box--tip   { background: #FFFBEB; border-color: #F59E0B; color: #78350F; }
.info-box--success { background: #DCFCE7; border-color: var(--emerald); color: #065F46; }
.info-box--warn  { background: #FEF3C7; border-color: #D97706; color: #78350F; }

/* ── Misc Helpers ─────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--gray-200); margin: 32px 0; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 50px; font-size: .73rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.badge--teal    { background: rgba(8,145,178,.12);  color: var(--teal); }
.badge--emerald { background: rgba(16,185,129,.12); color: #059669; }
.badge--navy    { background: rgba(30,41,59,.08);   color: var(--navy); }
.badge--orange  { background: #FFF7ED; color: #EA580C; }
.badge--red     { background: #FEF2F2; color: #DC2626; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: var(--gray-100); color: var(--gray-600); border-radius: 6px; padding: 5px 12px; font-size: .8rem; font-weight: 500; text-decoration: none; transition: background var(--transition); }
.tag:hover { background: var(--teal); color: white; }

.sticky-top { position: sticky; top: 80px; }

.gap-4  { gap: 1rem; }
.gap-6  { gap: 1.5rem; }
.gap-8  { gap: 2rem; }
.flex   { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.wrap   { flex-wrap: wrap; }
.mb-4   { margin-bottom: 1rem; }
.mb-6   { margin-bottom: 1.5rem; }
.mb-8   { margin-bottom: 2rem; }
.mt-4   { margin-top: 1rem; }
.mt-6   { margin-top: 1.5rem; }
.mt-8   { margin-top: 2rem; }
.p-0    { padding: 0; }
.w-full { width: 100%; }

/* ── Policy Pages ─────────────────────────────────────────── */
.policy-content { max-width: 860px; margin: 0 auto; }
.policy-content h2 { font-size: 1.4rem; margin-top: 40px; margin-bottom: 14px; }
.policy-content h3 { font-size: 1.1rem; margin-top: 28px; margin-bottom: 10px; color: var(--navy-lt); }
.policy-content p { margin-bottom: 14px; color: var(--gray-600); line-height: 1.75; }
.policy-content ul, .policy-content ol { margin: 12px 0 16px 20px; }
.policy-content li { margin-bottom: 8px; color: var(--gray-600); line-height: 1.7; }
.policy-content ul li { list-style: disc; }
.policy-content ol li { list-style: decimal; }
.policy-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .88rem; }
.policy-content table th, .policy-content table td { padding: 12px 14px; border: 1px solid var(--gray-200); text-align: left; }
.policy-content table th { background: var(--gray-50); font-weight: 700; color: var(--navy); }
.policy-content table tr:nth-child(even) td { background: var(--gray-50); }
.policy-updated { font-size: .82rem; color: var(--gray-400); margin-bottom: 32px; padding: 14px 18px; background: var(--gray-50); border-radius: 8px; border-left: 4px solid var(--teal); }

/* ── Notification / Alert ─────────────────────────────────── */
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 16px; display: flex; align-items: flex-start; gap: 12px; font-size: .9rem; }
.alert--info    { background: #EFF6FF; color: #1E40AF; border-left: 4px solid #3B82F6; }
.alert--success { background: #DCFCE7; color: #065F46; border-left: 4px solid var(--emerald); }
.alert--warn    { background: #FFFBEB; color: #78350F; border-left: 4px solid #F59E0B; }

/* ── Cookie Banner ────────────────────────────────────────── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--navy); color: rgba(255,255,255,.85);
  padding: 18px 24px; box-shadow: 0 -4px 20px rgba(0,0,0,.2);
  display: none; align-items: center; gap: 20px; flex-wrap: wrap;
}
.cookie-banner.visible { display: flex; }
.cookie-banner p { font-size: .87rem; flex: 1; min-width: 200px; }
.cookie-banner a { color: var(--teal); }
.cookie-banner-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cards-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .layout-sidebar { grid-template-columns: 1fr; }
  .layout-sidebar--right { grid-template-columns: 1fr; }
  .product-gallery { grid-template-columns: 60px 1fr; }
  .gallery-thumbs { flex-direction: row; flex-wrap: wrap; }
  .gallery-thumb { width: 60px; height: 60px; }
}
@media (max-width: 768px) {
  .cards-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .cards-grid--2 { grid-template-columns: 1fr; }
  .header-top .container { flex-direction: column; align-items: flex-start; gap: 4px; }
  .header-main .container { flex-wrap: wrap; }
  .header-search { order: 3; max-width: 100%; width: 100%; }
  .main-nav ul li a { padding: 10px 12px; font-size: .82rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .product-short-specs { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
}
@media (max-width: 540px) {
  .cards-grid--3, .cards-grid--4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .compare-table { font-size: .8rem; }
  .compare-table th, .compare-table td { padding: 10px 12px; }
}
