/* ============================================================
   Yondersocket — Premium Education Technology Marketplace
   Main Stylesheet
   ============================================================ */

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

/* ---- CSS Variables ---- */
:root {
  --white:   #FFFFFF;
  --blue:    #2563EB;
  --blue-dark: #1D4ED8;
  --blue-light: #EFF6FF;
  --emerald: #10B981;
  --emerald-dark: #059669;
  --slate:   #334155;
  --slate-light: #64748B;
  --beige:   #F5E6D3;
  --gray:    #F8FAFC;
  --gray-mid: #E2E8F0;
  --gray-dark: #CBD5E1;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.05);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
  --transition: 0.22s ease;

  /* aliases */
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', sans-serif; color: var(--text-main); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); }
ul, ol { 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-weight: 700; line-height: 1.25; color: var(--text-main); }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.15rem; }
p { line-height: 1.75; color: var(--text-muted); }

/* ---- Utility ---- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.text-blue { color: var(--blue); }
.text-emerald { color: var(--emerald); }
.text-muted { color: var(--text-muted); }
.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-weight: 600; font-size: 0.95rem; transition: all var(--transition); white-space: nowrap; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,0.3); }
.btn-secondary { background: var(--white); color: var(--blue); border: 2px solid var(--blue); }
.btn-secondary:hover { background: var(--blue-light); color: var(--blue); }
.btn-emerald { background: var(--emerald); color: var(--white); }
.btn-emerald:hover { background: var(--emerald-dark); color: var(--white); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--slate); border: 1.5px solid var(--gray-dark); }
.btn-outline:hover { background: var(--gray); color: var(--slate); border-color: var(--slate); }
.btn-sm { padding: 8px 18px; font-size: 0.875rem; }
.btn-lg { padding: 16px 40px; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }

/* ---- TOP BAR ---- */
.top-bar { background: var(--slate); color: var(--white); font-size: 0.82rem; padding: 8px 0; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 20px; }
.top-bar a { color: rgba(255,255,255,0.8); font-size: 0.82rem; }
.top-bar a:hover { color: var(--white); }
.top-bar-divider { width: 1px; height: 14px; background: rgba(255,255,255,0.25); }

/* ---- HEADER ---- */
.site-header { background: var(--white); border-bottom: 1px solid var(--gray-mid); position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow-sm); }
.header-main { padding: 16px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-logo { display: flex; flex-direction: column; text-decoration: none; }
.logo-mark { font-size: 1.6rem; font-weight: 800; color: var(--blue); letter-spacing: -0.03em; line-height: 1; }
.logo-sub { font-size: 0.72rem; color: var(--text-muted); font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; margin-top: 2px; }
.header-search { flex: 1; max-width: 520px; }
.search-wrap { display: flex; border: 1.5px solid var(--gray-mid); border-radius: 50px; overflow: hidden; transition: border-color var(--transition); }
.search-wrap:focus-within { border-color: var(--blue); }
.search-select { border: none; border-right: 1.5px solid var(--gray-mid); padding: 10px 16px; font-size: 0.875rem; color: var(--slate); background: var(--gray); outline: none; min-width: 130px; }
.search-input { flex: 1; border: none; padding: 10px 16px; font-size: 0.9rem; outline: none; background: var(--white); }
.search-btn { background: var(--blue); color: var(--white); padding: 0 20px; border: none; font-size: 1rem; transition: background var(--transition); cursor: pointer; }
.search-btn:hover { background: var(--blue-dark); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.header-action-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 12px; border-radius: var(--radius); color: var(--slate); font-size: 0.72rem; font-weight: 500; transition: all var(--transition); position: relative; }
.header-action-btn:hover { background: var(--blue-light); color: var(--blue); }
.header-action-btn svg { width: 22px; height: 22px; }
.action-badge { position: absolute; top: 4px; right: 8px; background: var(--blue); color: var(--white); font-size: 0.65rem; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* ---- MAIN NAV ---- */
.main-nav { background: var(--gray); border-bottom: 1px solid var(--gray-mid); }
.nav-inner { display: flex; align-items: stretch; justify-content: space-between; }
.nav-list { display: flex; align-items: stretch; gap: 0; }
.nav-item { position: relative; }
.nav-link { display: flex; align-items: center; gap: 6px; padding: 14px 18px; font-size: 0.9rem; font-weight: 500; color: var(--slate); transition: all var(--transition); white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--blue); background: var(--blue-light); }
.nav-link svg { width: 14px; height: 14px; transition: transform var(--transition); }
.nav-item:hover > .nav-link svg { transform: rotate(180deg); }
.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: 240px; padding: 12px 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all var(--transition); z-index: 999; }
.nav-item:hover > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-link { display: flex; align-items: center; gap: 10px; padding: 10px 20px; font-size: 0.875rem; color: var(--slate); transition: all var(--transition); }
.dropdown-link:hover { background: var(--blue-light); color: var(--blue); padding-left: 26px; }
.dropdown-link svg { width: 16px; height: 16px; color: var(--text-muted); }
.dropdown-divider { height: 1px; background: var(--gray-mid); margin: 8px 0; }
.nav-cta { padding: 10px 18px; display: flex; align-items: center; gap: 8px; }

/* ---- BREADCRUMB ---- */
.breadcrumb { background: var(--gray); border-bottom: 1px solid var(--gray-mid); padding: 12px 0; }
.breadcrumb-list { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumb-item { font-size: 0.85rem; color: var(--text-muted); }
.breadcrumb-item a { color: var(--blue); }
.breadcrumb-item a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--gray-dark); font-size: 0.8rem; }
.breadcrumb-item.current { color: var(--text-main); font-weight: 500; }

/* ---- HERO ---- */
.hero { position: relative; min-height: 580px; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30,41,59,0.82) 0%, rgba(30,41,59,0.45) 60%, rgba(30,41,59,0.05) 100%); }
.hero-content { position: relative; z-index: 2; padding: 80px 0; max-width: 600px; }
.hero-eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--emerald); margin-bottom: 16px; }
.hero-title { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 800; color: var(--white); line-height: 1.15; margin-bottom: 20px; }
.hero-desc { font-size: 1.1rem; color: rgba(255,255,255,0.85); margin-bottom: 36px; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- SECTION HEADERS ---- */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { max-width: 560px; margin: 0 auto; }
.section-eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }

/* ---- SECTION SPACING ---- */
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.section-gray { background: var(--gray); }
.section-beige { background: var(--beige); }

/* ---- CATEGORY GRID ---- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.category-card { background: var(--white); border: 1px solid var(--gray-mid); border-radius: var(--radius-lg); padding: 24px 16px; text-align: center; transition: all var(--transition); display: block; color: var(--text-main); }
.category-card:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-3px); color: var(--text-main); }
.category-card-icon { width: 56px; height: 56px; background: var(--blue-light); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; transition: background var(--transition); }
.category-card-icon svg { width: 28px; height: 28px; color: var(--blue); }
.category-card:hover .category-card-icon { background: var(--blue); }
.category-card:hover .category-card-icon svg { color: var(--white); }
.category-card h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.category-card span { font-size: 0.8rem; color: var(--text-muted); }

/* ---- PRODUCT CARD ---- */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 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); display: flex; flex-direction: column; }
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.product-img-wrap { position: relative; aspect-ratio: 4/3; background: var(--gray); overflow: hidden; }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-img-wrap img { transform: scale(1.04); }
.product-label { position: absolute; top: 12px; left: 12px; background: var(--emerald); color: var(--white); font-size: 0.72rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; letter-spacing: 0.04em; }
.product-label.new { background: var(--blue); }
.product-label.sale { background: #EF4444; }
.product-wishlist-btn { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; background: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); transition: all var(--transition); border: none; cursor: pointer; }
.product-wishlist-btn:hover { background: var(--blue); }
.product-wishlist-btn:hover svg { color: var(--white); }
.product-wishlist-btn svg { width: 18px; height: 18px; color: var(--slate); }
.product-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.product-category { font-size: 0.78rem; font-weight: 600; color: var(--blue); text-transform: uppercase; letter-spacing: 0.06em; }
.product-title { font-size: 1rem; font-weight: 600; color: var(--text-main); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-title a { color: inherit; }
.product-title a:hover { color: var(--blue); }
.product-specs { display: flex; flex-wrap: wrap; gap: 6px; }
.product-spec-tag { background: var(--gray); border: 1px solid var(--gray-mid); color: var(--text-muted); font-size: 0.75rem; padding: 3px 10px; border-radius: 20px; }
.product-rating { display: flex; align-items: center; gap: 6px; }
.stars { color: #F59E0B; font-size: 0.85rem; }
.rating-count { font-size: 0.78rem; color: var(--text-muted); }
.product-footer { padding: 16px 20px; border-top: 1px solid var(--gray); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-price { display: flex; flex-direction: column; }
.price-current { font-size: 1.2rem; font-weight: 700; color: var(--text-main); }
.price-old { font-size: 0.82rem; color: var(--text-muted); text-decoration: line-through; }
.price-currency { font-size: 0.85rem; font-weight: 500; }

/* ---- SPECS TABLE ---- */
.specs-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.specs-table th { background: var(--slate); color: var(--white); padding: 12px 16px; text-align: left; font-weight: 600; font-size: 0.85rem; }
.specs-table td { padding: 11px 16px; border-bottom: 1px solid var(--gray-mid); vertical-align: top; }
.specs-table tr:nth-child(even) td { background: var(--gray); }
.specs-table tr:hover td { background: var(--blue-light); }
.specs-table .spec-name { font-weight: 500; color: var(--slate); width: 35%; }
.specs-table .check-yes { color: var(--emerald); font-weight: 600; }
.specs-table .check-no { color: #EF4444; }

/* ---- COMPARISON TABLE ---- */
.comparison-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 600px; }
.comparison-table thead th { background: var(--slate); color: var(--white); padding: 14px 18px; text-align: center; font-weight: 600; }
.comparison-table thead th:first-child { text-align: left; background: var(--gray); color: var(--text-main); }
.comparison-table td { padding: 12px 18px; border-bottom: 1px solid var(--gray-mid); text-align: center; }
.comparison-table td:first-child { text-align: left; font-weight: 500; color: var(--slate); background: var(--gray); }
.comparison-table tr:hover td { background: var(--blue-light); }
.comparison-table tr:hover td:first-child { background: var(--blue-light); }
.comparison-winner { color: var(--emerald); font-weight: 700; }

/* ---- FILTER SIDEBAR ---- */
.catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.filter-sidebar { background: var(--white); border: 1px solid var(--gray-mid); border-radius: var(--radius-lg); padding: 24px; position: sticky; top: 90px; }
.filter-section { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--gray-mid); }
.filter-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-title { font-size: 0.95rem; font-weight: 700; color: var(--text-main); margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; }
.filter-clear { font-size: 0.8rem; color: var(--blue); font-weight: 500; cursor: pointer; }
.filter-check-label { display: flex; align-items: center; gap: 10px; padding: 7px 0; cursor: pointer; font-size: 0.9rem; color: var(--slate); transition: color var(--transition); }
.filter-check-label:hover { color: var(--blue); }
.filter-check-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--blue); }
.filter-count { margin-left: auto; font-size: 0.78rem; color: var(--text-muted); background: var(--gray); padding: 2px 8px; border-radius: 10px; }
.range-wrap { padding: 6px 0; }
.range-inputs { display: flex; gap: 10px; margin-top: 14px; }
.range-input { flex: 1; padding: 8px 12px; border: 1.5px solid var(--gray-mid); border-radius: var(--radius); font-size: 0.875rem; outline: none; transition: border-color var(--transition); }
.range-input:focus { border-color: var(--blue); }
.range-slider { width: 100%; accent-color: var(--blue); }

/* ---- BLOG CARDS ---- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.blog-card { background: var(--white); border: 1px solid var(--gray-mid); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition); }
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: transparent; }
.blog-card-img { aspect-ratio: 16/9; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 24px; }
.blog-tag { display: inline-block; font-size: 0.75rem; font-weight: 600; color: var(--blue); background: var(--blue-light); padding: 4px 12px; border-radius: 20px; margin-bottom: 12px; }
.blog-card-title { font-size: 1.1rem; font-weight: 700; color: var(--text-main); line-height: 1.4; margin-bottom: 10px; }
.blog-card-title a { color: inherit; }
.blog-card-title a:hover { color: var(--blue); }
.blog-card-excerpt { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-meta { display: flex; align-items: center; gap: 14px; font-size: 0.8rem; color: var(--text-muted); flex-wrap: wrap; }
.blog-meta span { display: flex; align-items: center; gap: 5px; }
.blog-meta svg { width: 14px; height: 14px; }

/* ---- INFO BOXES ---- */
.info-box { background: var(--blue-light); border-left: 4px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; margin: 24px 0; }
.info-box p { color: var(--slate); margin: 0; font-size: 0.9rem; }
.info-box-emerald { background: #ECFDF5; border-left-color: var(--emerald); }
.info-box-warning { background: #FFFBEB; border-left-color: #F59E0B; }

/* ---- STATS STRIP ---- */
.stats-strip { background: var(--slate); padding: 56px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 40px; text-align: center; }
.stat-number { font-size: 2.4rem; font-weight: 800; color: var(--white); line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 0.875rem; color: rgba(255,255,255,0.7); }
.stat-accent { color: var(--emerald); }

/* ---- FEATURES GRID ---- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.feature-item { text-align: center; padding: 32px 24px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--gray-mid); transition: all var(--transition); }
.feature-item:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--blue-light); }
.feature-icon { width: 64px; height: 64px; background: var(--blue-light); border-radius: 18px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.feature-icon svg { width: 32px; height: 32px; color: var(--blue); }
.feature-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.feature-item p { font-size: 0.875rem; }

/* ---- NEWSLETTER / CTA STRIP ---- */
.cta-strip { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); padding: 72px 0; text-align: center; }
.cta-strip h2 { color: var(--white); margin-bottom: 12px; }
.cta-strip p { color: rgba(255,255,255,0.85); max-width: 520px; margin: 0 auto 36px; }
.newsletter-form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; }
.newsletter-input { flex: 1; padding: 14px 20px; border: none; border-radius: var(--radius); font-size: 0.95rem; outline: none; }
.newsletter-input:focus { box-shadow: 0 0 0 3px rgba(255,255,255,0.3); }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero { background: var(--slate); padding: 60px 0; color: var(--white); }
.page-hero h1 { color: var(--white); margin-bottom: 12px; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.page-hero p { color: rgba(255,255,255,0.8); max-width: 560px; font-size: 1.05rem; }
.page-hero-light { background: var(--gray); }
.page-hero-light h1 { color: var(--text-main); }
.page-hero-light p { color: var(--text-muted); }

/* ---- PRODUCT DETAIL ---- */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.product-gallery { position: sticky; top: 90px; }
.gallery-main { aspect-ratio: 4/3; background: var(--gray); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 16px; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; }
.gallery-thumb { width: 80px; height: 60px; border: 2px solid var(--gray-mid); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: border-color var(--transition); background: var(--gray); flex-shrink: 0; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--blue); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info-col { padding: 8px 0; }
.product-sku { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 10px; }
.product-detail-title { font-size: clamp(1.4rem, 2vw, 1.9rem); font-weight: 800; margin-bottom: 12px; }
.product-detail-price { font-size: 2rem; font-weight: 800; color: var(--blue); margin: 20px 0 8px; }
.product-detail-price-old { font-size: 1rem; color: var(--text-muted); text-decoration: line-through; }
.product-availability { display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 600; color: var(--emerald); margin-bottom: 24px; }
.product-availability svg { width: 16px; height: 16px; }
.product-actions-row { display: flex; gap: 12px; margin-top: 24px; }
.qty-selector { display: flex; align-items: center; border: 1.5px solid var(--gray-mid); border-radius: var(--radius); overflow: hidden; }
.qty-btn { width: 40px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--gray); font-size: 1.2rem; font-weight: 600; color: var(--slate); transition: all var(--transition); cursor: pointer; border: none; }
.qty-btn:hover { background: var(--blue); color: var(--white); }
.qty-input { width: 52px; height: 48px; text-align: center; border: none; border-left: 1.5px solid var(--gray-mid); border-right: 1.5px solid var(--gray-mid); font-size: 1rem; font-weight: 600; outline: none; }
.delivery-info-box { background: var(--gray); border-radius: var(--radius); padding: 18px; margin-top: 24px; }
.delivery-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 0.875rem; color: var(--slate); }
.delivery-row svg { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; }
.delivery-row:not(:last-child) { border-bottom: 1px solid var(--gray-mid); }

/* ---- TABS ---- */
.tab-nav { display: flex; border-bottom: 2px solid var(--gray-mid); margin-bottom: 32px; overflow-x: auto; }
.tab-btn { padding: 14px 24px; font-size: 0.95rem; font-weight: 600; color: var(--text-muted); border-bottom: 3px solid transparent; margin-bottom: -2px; cursor: pointer; white-space: nowrap; transition: all var(--transition); background: none; border-left: none; border-right: none; border-top: none; }
.tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); }
.tab-btn:hover { color: var(--blue); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---- GUIDE CONTENT ---- */
.article-content { font-size: 1rem; line-height: 1.85; color: var(--text-muted); max-width: 780px; }
.article-content h2 { color: var(--text-main); margin: 48px 0 18px; font-size: 1.6rem; }
.article-content h3 { color: var(--text-main); margin: 36px 0 14px; font-size: 1.25rem; }
.article-content p { margin-bottom: 20px; }
.article-content ul, .article-content ol { margin: 0 0 20px 24px; list-style: initial; }
.article-content li { margin-bottom: 8px; line-height: 1.7; }
.article-content strong { color: var(--text-main); font-weight: 600; }
.article-content a { color: var(--blue); }
.article-content table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 0.9rem; }
.article-content table th { background: var(--slate); color: var(--white); padding: 12px 16px; text-align: left; }
.article-content table td { padding: 10px 16px; border-bottom: 1px solid var(--gray-mid); }
.article-content table tr:nth-child(even) td { background: var(--gray); }

/* ---- CART ---- */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 36px; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { padding: 14px 16px; background: var(--gray); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); border-bottom: 1.5px solid var(--gray-mid); text-align: left; }
.cart-table td { padding: 20px 16px; border-bottom: 1px solid var(--gray-mid); vertical-align: middle; }
.cart-product-row { display: flex; align-items: center; gap: 16px; }
.cart-product-img { width: 72px; height: 56px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; background: var(--gray); }
.cart-product-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-product-name { font-weight: 600; font-size: 0.9rem; color: var(--text-main); }
.cart-product-sku { font-size: 0.78rem; color: var(--text-muted); }
.cart-summary { background: var(--white); border: 1px solid var(--gray-mid); border-radius: var(--radius-lg); padding: 28px; position: sticky; top: 90px; }
.cart-summary h3 { font-size: 1.1rem; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--gray-mid); }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 0.9rem; }
.summary-row.total { font-weight: 700; font-size: 1.1rem; padding-top: 16px; border-top: 2px solid var(--text-main); margin-top: 8px; }
.summary-row span:last-child { font-weight: 600; }
.coupon-form { display: flex; gap: 8px; margin: 20px 0; }
.coupon-input { flex: 1; padding: 10px 14px; border: 1.5px solid var(--gray-mid); border-radius: var(--radius); font-size: 0.875rem; outline: none; }
.coupon-input:focus { border-color: var(--blue); }

/* ---- ABOUT ---- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px; }
.team-card { text-align: center; padding: 32px 20px; background: var(--white); border: 1px solid var(--gray-mid); border-radius: var(--radius-lg); transition: all var(--transition); }
.team-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.team-avatar { width: 80px; height: 80px; border-radius: 50%; background: var(--blue-light); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.team-avatar svg { width: 40px; height: 40px; color: var(--blue); }
.team-name { font-weight: 700; margin-bottom: 4px; }
.team-role { font-size: 0.85rem; color: var(--blue); font-weight: 500; margin-bottom: 8px; }
.team-desc { font-size: 0.82rem; color: var(--text-muted); }

/* ---- CONTACT ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; }
.contact-info-item { display: flex; align-items: flex-start; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--gray-mid); }
.contact-info-item:last-child { border-bottom: none; }
.contact-icon { width: 44px; height: 44px; background: var(--blue-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-icon svg { width: 20px; height: 20px; color: var(--blue); }
.contact-form-wrap { background: var(--white); border: 1px solid var(--gray-mid); border-radius: var(--radius-lg); padding: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.form-label { font-size: 0.875rem; font-weight: 600; color: var(--slate); }
.form-control { padding: 12px 16px; border: 1.5px solid var(--gray-mid); border-radius: var(--radius); font-size: 0.9rem; outline: none; transition: border-color var(--transition); background: var(--white); }
.form-control:focus { border-color: var(--blue); }
.form-control::placeholder { color: var(--gray-dark); }
textarea.form-control { resize: vertical; min-height: 130px; }
.form-success { display: none; background: #ECFDF5; border: 1.5px solid var(--emerald); border-radius: var(--radius); padding: 20px 24px; text-align: center; margin-top: 20px; }
.form-success.visible { display: block; }
.form-success p { color: var(--emerald); font-weight: 600; margin: 0; }
.required { color: #EF4444; }

/* ---- POLICY PAGES ---- */
.policy-content { max-width: 860px; margin: 0 auto; }
.policy-content h2 { font-size: 1.4rem; color: var(--text-main); margin: 48px 0 16px; padding-bottom: 12px; border-bottom: 2px solid var(--blue-light); }
.policy-content h3 { font-size: 1.1rem; color: var(--slate); margin: 28px 0 12px; }
.policy-content p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; }
.policy-content ul { list-style: disc; padding-left: 24px; margin-bottom: 16px; }
.policy-content ul li { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 8px; }
.policy-content ol { list-style: decimal; padding-left: 24px; margin-bottom: 16px; }
.policy-content ol li { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 8px; }
.policy-content strong { color: var(--text-main); }
.policy-content a { color: var(--blue); }
.policy-last-updated { display: inline-flex; align-items: center; gap: 8px; background: var(--blue-light); color: var(--blue); font-size: 0.85rem; font-weight: 500; padding: 8px 16px; border-radius: 20px; margin-bottom: 32px; }
.policy-toc { background: var(--gray); border: 1px solid var(--gray-mid); border-radius: var(--radius-lg); padding: 24px 28px; margin-bottom: 40px; }
.policy-toc h4 { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate); margin-bottom: 14px; }
.policy-toc ol { list-style: decimal; padding-left: 18px; margin: 0; }
.policy-toc ol li { font-size: 0.88rem; margin-bottom: 6px; }
.policy-toc ol li a { color: var(--blue); }

/* ---- WISHLIST ---- */
.wishlist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.wishlist-empty { text-align: center; padding: 80px 24px; }
.wishlist-empty svg { width: 80px; height: 80px; color: var(--gray-dark); margin: 0 auto 24px; }
.wishlist-empty h3 { margin-bottom: 12px; }

/* ---- FOOTER ---- */
.site-footer { background: var(--slate); color: rgba(255,255,255,0.75); padding: 72px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-brand { max-width: 300px; }
.footer-logo { font-size: 1.5rem; font-weight: 800; color: var(--white); letter-spacing: -0.03em; margin-bottom: 14px; display: block; }
.footer-tagline { font-size: 0.875rem; line-height: 1.7; margin-bottom: 24px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; margin-bottom: 10px; }
.footer-contact-item svg { width: 16px; height: 16px; color: var(--emerald); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item a { color: rgba(255,255,255,0.75); }
.footer-contact-item a:hover { color: var(--white); }
.footer-col h4 { color: var(--white); font-size: 0.95rem; font-weight: 700; margin-bottom: 18px; letter-spacing: 0.04em; }
.footer-link { display: block; font-size: 0.875rem; color: rgba(255,255,255,0.65); margin-bottom: 10px; transition: color var(--transition); }
.footer-link:hover { color: var(--white); padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 24px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-bottom-text { font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.footer-bottom-links a:hover { color: var(--white); }
.footer-badges { display: flex; gap: 10px; margin-top: 20px; }
.footer-badge { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; padding: 6px 12px; font-size: 0.75rem; color: rgba(255,255,255,0.65); font-weight: 500; }

/* ---- COOKIE BANNER ---- */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--white); border-top: 2px solid var(--blue); padding: 20px 0; z-index: 9999; box-shadow: 0 -8px 32px rgba(0,0,0,0.12); display: none; }
.cookie-banner.visible { display: block; }
.cookie-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cookie-text { font-size: 0.875rem; color: var(--slate); flex: 1; max-width: 640px; }
.cookie-text a { color: var(--blue); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- BACK TO TOP ---- */
.back-to-top { position: fixed; bottom: 32px; right: 32px; width: 44px; height: 44px; background: var(--blue); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); transition: all var(--transition); opacity: 0; pointer-events: none; z-index: 500; border: none; cursor: pointer; }
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { background: var(--blue-dark); transform: translateY(-3px); }
.back-to-top svg { width: 20px; height: 20px; }

/* ---- PAGINATION ---- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 40px 0; }
.page-link { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--gray-mid); border-radius: var(--radius); font-size: 0.9rem; font-weight: 600; color: var(--slate); transition: all var(--transition); }
.page-link:hover, .page-link.active { background: var(--blue); border-color: var(--blue); color: var(--white); }
.page-dots { color: var(--text-muted); font-size: 0.9rem; padding: 0 4px; }

/* ---- MOBILE NAV ---- */
.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; }
.menu-bar { width: 24px; height: 2px; background: var(--slate); border-radius: 2px; transition: all var(--transition); }
.mobile-nav { display: none; background: var(--white); border-top: 1px solid var(--gray-mid); padding: 16px; position: absolute; left: 0; right: 0; top: 100%; z-index: 998; box-shadow: var(--shadow-lg); }
.mobile-nav.open { display: block; }
.mobile-nav-link { display: block; padding: 12px 16px; font-size: 0.95rem; font-weight: 500; color: var(--slate); border-radius: var(--radius); transition: all var(--transition); }
.mobile-nav-link:hover { background: var(--blue-light); color: var(--blue); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1200px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-brand { max-width: none; }
}
@media (max-width: 1024px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .product-detail-grid { grid-template-columns: 1fr; gap: 36px; }
  .product-gallery { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .top-bar-left, .top-bar .top-bar-divider:nth-of-type(2), .top-bar-left .top-bar-divider { display: none; }
  .header-search { display: none; }
  .mobile-menu-btn { display: flex; }
  .main-nav .nav-list { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero { min-height: 420px; }
  .hero-content { padding: 60px 0; }
  .form-row { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .category-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .newsletter-form { flex-direction: column; }
  .nav-cta { display: none; }
  .blog-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .header-actions .header-action-btn span { display: none; }
  .hero-actions .btn:last-child { display: none; }
}
