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

:root {
  --white: #FFFFFF;
  --indigo: #4F46E5;
  --indigo-dark: #3730A3;
  --indigo-light: #EEF2FF;
  --indigo-mid: #6366F1;
  --slate: #475569;
  --emerald: #10B981;
  --emerald-light: #ECFDF5;
  --dark: #1F2937;
  --light: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Sora', system-ui, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 32px rgba(0,0,0,0.10), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.08);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.2s ease;
  --transition-slow: 0.35s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--dark); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--dark); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }
p { color: var(--slate); line-height: 1.7; }

/* ─── LAYOUT ─── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 32px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 112px 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* ─── BUTTONS ─── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius-md); font-size: 0.95rem; font-weight: 600; transition: all var(--transition); cursor: pointer; border: 2px solid transparent; white-space: nowrap; }
.btn-primary { background: var(--indigo); color: var(--white); border-color: var(--indigo); }
.btn-primary:hover { background: var(--indigo-dark); border-color: var(--indigo-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(79,70,229,0.35); }
.btn-outline { background: transparent; color: var(--indigo); border-color: var(--indigo); }
.btn-outline:hover { background: var(--indigo); color: var(--white); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--slate); border-color: var(--gray-200); }
.btn-ghost:hover { background: var(--gray-100); border-color: var(--gray-300); }
.btn-emerald { background: var(--emerald); color: var(--white); border-color: var(--emerald); }
.btn-emerald:hover { background: #059669; border-color: #059669; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(16,185,129,0.35); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }

/* ─── NAVBAR ─── */
.navbar { position: sticky; top: 0; z-index: 1000; background: var(--white); border-bottom: 1px solid var(--gray-200); }
.navbar-inner { display: flex; align-items: center; height: 70px; gap: 32px; }
.navbar-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.navbar-logo .logo-mark { width: 36px; height: 36px; background: var(--indigo); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.navbar-logo .logo-mark span { color: var(--white); font-family: var(--font-heading); font-weight: 800; font-size: 1.1rem; }
.navbar-logo .logo-text { font-family: var(--font-heading); font-weight: 800; font-size: 1.25rem; color: var(--dark); }
.navbar-logo .logo-text span { color: var(--indigo); }
.navbar-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-item { position: relative; }
.nav-link { display: flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 500; color: var(--gray-700); transition: all var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--indigo); background: var(--indigo-light); }
.nav-link svg { width: 14px; height: 14px; transition: transform var(--transition); }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }
.nav-dropdown { position: absolute; top: calc(100% + 8px); left: 0; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); padding: 8px; min-width: 220px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all var(--transition-slow); z-index: 500; }
.nav-item:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm); font-size: 0.875rem; color: var(--gray-700); transition: all var(--transition); }
.nav-dropdown a:hover { background: var(--indigo-light); color: var(--indigo); }
.nav-dropdown a .dd-icon { width: 28px; height: 28px; background: var(--gray-100); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.mega-menu { position: absolute; top: calc(100% + 8px); left: -200px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); padding: 24px; width: 680px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all var(--transition-slow); z-index: 500; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.nav-item:hover .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-menu-item { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: var(--radius-md); transition: background var(--transition); }
.mega-menu-item:hover { background: var(--indigo-light); }
.mega-menu-item .mm-icon { font-size: 1.4rem; margin-bottom: 4px; }
.mega-menu-item .mm-title { font-weight: 600; font-size: 0.875rem; color: var(--dark); }
.mega-menu-item .mm-desc { font-size: 0.775rem; color: var(--gray-500); line-height: 1.4; }
.navbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-icon-btn { position: relative; width: 40px; height: 40px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--gray-600); transition: all var(--transition); }
.nav-icon-btn:hover { background: var(--gray-100); color: var(--indigo); }
.nav-icon-btn svg { width: 20px; height: 20px; }
.nav-badge { position: absolute; top: 4px; right: 4px; width: 16px; height: 16px; background: var(--indigo); color: var(--white); border-radius: 50%; font-size: 0.65rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.navbar-search { flex: 1; max-width: 340px; position: relative; }
.navbar-search input { width: 100%; height: 40px; border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 0 16px 0 40px; font-size: 0.875rem; background: var(--gray-100); color: var(--dark); transition: all var(--transition); }
.navbar-search input:focus { outline: none; border-color: var(--indigo); background: var(--white); box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }
.navbar-search .search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--gray-400); pointer-events: none; }
.topbar { background: var(--dark); padding: 8px 0; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; }
.topbar p, .topbar a { font-size: 0.8rem; color: var(--gray-300); }
.topbar a:hover { color: var(--white); }

/* ─── HAMBURGER ─── */
.hamburger { display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: var(--radius-sm); transition: background var(--transition); }
.hamburger:hover { background: var(--gray-100); }
.hamburger span { width: 20px; height: 2px; background: var(--dark); border-radius: 2px; transition: all var(--transition); }
.mobile-nav { display: none; }

/* ─── BREADCRUMB ─── */
.breadcrumb { padding: 14px 0; border-bottom: 1px solid var(--gray-200); background: var(--white); }
.breadcrumb-list { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.breadcrumb-list li { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--gray-500); }
.breadcrumb-list li a { color: var(--gray-500); transition: color var(--transition); }
.breadcrumb-list li a:hover { color: var(--indigo); }
.breadcrumb-list li:last-child { color: var(--dark); font-weight: 500; }
.breadcrumb-list li:not(:last-child)::after { content: '/'; color: var(--gray-300); }

/* ─── HERO ─── */
.hero { position: relative; overflow: hidden; background: var(--light); min-height: 580px; display: flex; align-items: center; }
.hero-image-wrap { position: absolute; inset: 0; }
.hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-image-wrap::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,20,35,0.72) 0%, rgba(15,20,35,0.35) 60%, transparent 100%); }
.hero-content { position: relative; z-index: 2; max-width: 600px; }
.hero-content h1 { color: var(--white); margin-bottom: 16px; }
.hero-content p { color: rgba(255,255,255,0.82); font-size: 1.1rem; margin-bottom: 32px; max-width: 480px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-sm { min-height: 320px; }
.hero-sm .hero-content h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* ─── SECTION HEADER ─── */
.section-header { margin-bottom: 48px; }
.section-header.center { text-align: center; }
.section-header .overline { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; color: var(--indigo); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.section-header .overline::before, .section-header .overline::after { content: ''; width: 24px; height: 2px; background: var(--indigo); border-radius: 2px; }
.section-header.center .overline::before { display: none; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--slate); max-width: 560px; font-size: 1.05rem; }
.section-header.center p { margin: 0 auto; }

/* ─── CATEGORY GRID ─── */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.category-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition-slow); text-decoration: none; display: flex; flex-direction: column; }
.category-card:hover { border-color: var(--indigo); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.category-card-image { height: 160px; overflow: hidden; background: var(--gray-100); }
.category-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.category-card:hover .category-card-image img { transform: scale(1.05); }
.category-card-body { padding: 16px; flex: 1; }
.category-card-body h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; color: var(--dark); }
.category-card-body p { font-size: 0.8rem; color: var(--gray-500); line-height: 1.4; }
.category-card-footer { padding: 12px 16px; border-top: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; }
.category-card-footer span { font-size: 0.8rem; color: var(--indigo); font-weight: 600; }

/* ─── PRODUCT CARDS ─── */
.products-layout { display: flex; gap: 32px; }
.filter-sidebar { width: 260px; flex-shrink: 0; }
.products-main { flex: 1; min-width: 0; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.product-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition-slow); display: flex; flex-direction: column; }
.product-card:hover { border-color: var(--indigo); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-card-image { position: relative; height: 220px; overflow: hidden; background: var(--gray-100); }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.product-card:hover .product-card-image img { transform: scale(1.06); }
.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-action-btn { width: 36px; height: 36px; background: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); color: var(--gray-600); transition: all var(--transition); font-size: 0.9rem; cursor: pointer; border: none; }
.product-action-btn:hover { background: var(--indigo); color: var(--white); }
.product-card-body { padding: 16px; flex: 1; }
.product-brand { font-size: 0.75rem; color: var(--gray-500); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.product-name { font-size: 1rem; font-weight: 600; color: var(--dark); margin-bottom: 6px; line-height: 1.35; }
.product-name a { color: inherit; }
.product-name a:hover { color: var(--indigo); }
.product-desc { font-size: 0.83rem; color: var(--gray-500); line-height: 1.5; margin-bottom: 10px; }
.product-rating { display: flex; align-items: center; gap: 4px; font-size: 0.8rem; }
.stars { color: #F59E0B; letter-spacing: -1px; }
.rating-count { color: var(--gray-400); font-size: 0.75rem; }
.product-card-footer { padding: 12px 16px; border-top: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; }
.price { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; color: var(--dark); }
.price-old { font-size: 0.85rem; color: var(--gray-400); text-decoration: line-through; margin-right: 6px; font-weight: 400; }
.price-tag { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.btn-cart { padding: 8px 14px; font-size: 0.82rem; }

/* ─── FILTER SIDEBAR ─── */
.filter-sidebar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.filter-sidebar-header h3 { font-size: 1rem; font-weight: 700; }
.filter-clear { font-size: 0.8rem; color: var(--indigo); font-weight: 500; cursor: pointer; }
.filter-group { margin-bottom: 24px; border-bottom: 1px solid var(--gray-200); padding-bottom: 24px; }
.filter-group:last-child { border-bottom: none; }
.filter-group-title { font-size: 0.875rem; font-weight: 700; color: var(--dark); margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.filter-option { display: flex; align-items: center; gap: 8px; padding: 5px 0; cursor: pointer; }
.filter-option input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--indigo); cursor: pointer; flex-shrink: 0; }
.filter-option label { font-size: 0.875rem; color: var(--gray-700); cursor: pointer; flex: 1; display: flex; align-items: center; justify-content: space-between; }
.filter-option label span { font-size: 0.75rem; color: var(--gray-400); }
.price-range { display: flex; flex-direction: column; gap: 12px; }
.price-range input[type="range"] { width: 100%; accent-color: var(--indigo); }
.price-inputs { display: flex; gap: 8px; }
.price-inputs input { flex: 1; padding: 7px 10px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); font-size: 0.8rem; text-align: center; }
.filter-btn { width: 100%; margin-top: 8px; }

/* ─── PRODUCTS TOOLBAR ─── */
.products-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--gray-200); }
.products-count { font-size: 0.875rem; color: var(--gray-500); }
.products-sort { display: flex; align-items: center; gap: 10px; }
.products-sort select { padding: 7px 32px 7px 12px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); font-size: 0.875rem; color: var(--dark); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; appearance: none; cursor: pointer; }
.products-sort select:focus { outline: none; border-color: var(--indigo); }
.view-toggle { display: flex; gap: 4px; }
.view-btn { width: 34px; height: 34px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--gray-400); border: 1px solid var(--gray-200); transition: all var(--transition); }
.view-btn.active, .view-btn:hover { background: var(--indigo); color: var(--white); border-color: var(--indigo); }

/* ─── SPEC TABLE ─── */
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.spec-table tr { border-bottom: 1px solid var(--gray-100); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table td { padding: 10px 16px; }
.spec-table td:first-child { width: 40%; font-weight: 600; color: var(--dark); background: var(--gray-100); border-radius: var(--radius-sm); }
.spec-table td:last-child { color: var(--slate); }

/* ─── COMPARISON TABLE ─── */
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--gray-200); font-size: 0.875rem; }
.compare-table th { background: var(--light); font-weight: 700; color: var(--dark); font-family: var(--font-heading); }
.compare-table td:first-child { font-weight: 600; color: var(--dark); background: var(--gray-100); white-space: nowrap; }
.compare-table td.highlight { background: var(--indigo-light); color: var(--indigo); font-weight: 600; }
.compare-check { color: var(--emerald); font-weight: 700; }
.compare-cross { color: #EF4444; }

/* ─── PRODUCT DETAIL ─── */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.product-gallery { position: sticky; top: 88px; }
.product-main-image { border-radius: var(--radius-xl); overflow: hidden; margin-bottom: 16px; background: var(--gray-100); aspect-ratio: 1; }
.product-main-image img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbnails { display: flex; gap: 8px; }
.product-thumb { width: 72px; height: 72px; border-radius: var(--radius-md); overflow: hidden; border: 2px solid var(--gray-200); cursor: pointer; transition: border-color var(--transition); }
.product-thumb.active, .product-thumb:hover { border-color: var(--indigo); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); margin-bottom: 8px; }
.product-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.stock-status { display: inline-flex; align-items: center; gap: 5px; font-size: 0.825rem; font-weight: 600; }
.stock-in { color: var(--emerald); }
.stock-out { color: #EF4444; }
.stock-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.product-price-block { background: var(--light); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 24px; }
.product-price-main { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; color: var(--dark); margin-bottom: 4px; }
.product-price-vat { font-size: 0.8rem; color: var(--gray-500); }
.product-actions { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.product-quantity { display: flex; align-items: center; border: 1px solid var(--gray-200); border-radius: var(--radius-md); overflow: hidden; }
.qty-btn { width: 40px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--gray-600); transition: all var(--transition); cursor: pointer; }
.qty-btn:hover { background: var(--gray-100); color: var(--indigo); }
.qty-input { width: 50px; height: 44px; text-align: center; border: none; border-left: 1px solid var(--gray-200); border-right: 1px solid var(--gray-200); font-size: 1rem; font-weight: 600; color: var(--dark); }
.product-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.badge-emerald { background: var(--emerald-light); color: var(--emerald); }
.badge-indigo { background: var(--indigo-light); color: var(--indigo); }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }
.product-tabs { margin-top: 48px; }
.tab-nav { display: flex; border-bottom: 2px solid var(--gray-200); gap: 0; margin-bottom: 32px; overflow-x: auto; }
.tab-btn { padding: 12px 24px; font-size: 0.9rem; font-weight: 600; color: var(--gray-500); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all var(--transition); white-space: nowrap; cursor: pointer; }
.tab-btn.active, .tab-btn:hover { color: var(--indigo); border-bottom-color: var(--indigo); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ─── BLOG ─── */
.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-200); border-radius: var(--radius-xl); overflow: hidden; transition: all var(--transition-slow); display: flex; flex-direction: column; }
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--gray-300); }
.blog-card-image { height: 220px; overflow: hidden; background: var(--gray-100); }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.blog-card:hover .blog-card-image img { transform: scale(1.04); }
.blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-category { font-size: 0.75rem; font-weight: 600; color: var(--indigo); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.blog-title { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; line-height: 1.35; }
.blog-title a:hover { color: var(--indigo); }
.blog-excerpt { font-size: 0.875rem; color: var(--gray-500); line-height: 1.6; flex: 1; margin-bottom: 16px; }
.blog-meta { display: flex; align-items: center; gap: 12px; font-size: 0.775rem; color: var(--gray-400); padding-top: 16px; border-top: 1px solid var(--gray-100); }
.blog-meta span { display: flex; align-items: center; gap: 4px; }
.blog-article { max-width: 800px; margin: 0 auto; }
.blog-article h2 { font-size: 1.6rem; margin: 40px 0 16px; color: var(--dark); }
.blog-article h3 { font-size: 1.2rem; margin: 28px 0 12px; }
.blog-article p { margin-bottom: 20px; font-size: 1.02rem; line-height: 1.75; }
.blog-article ul, .blog-article ol { margin: 16px 0 20px 24px; }
.blog-article li { margin-bottom: 8px; color: var(--slate); font-size: 1rem; }
.blog-article ul li { list-style: disc; }
.blog-article ol li { list-style: decimal; }
.blog-article blockquote { border-left: 4px solid var(--indigo); background: var(--indigo-light); padding: 16px 20px; margin: 24px 0; border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.blog-article blockquote p { color: var(--indigo-dark); font-style: italic; margin: 0; }
.blog-featured-image { width: 100%; height: 480px; object-fit: cover; border-radius: var(--radius-xl); margin-bottom: 40px; }
.blog-author { display: flex; align-items: center; gap: 16px; padding: 20px; background: var(--light); border-radius: var(--radius-lg); margin: 40px 0; }
.blog-author-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--indigo); display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
.blog-author-info h5 { font-size: 1rem; margin-bottom: 2px; }
.blog-author-info p { font-size: 0.825rem; color: var(--gray-500); margin: 0; }

/* ─── CART ─── */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.cart-items { }
.cart-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--gray-200); }
.cart-item-image { width: 90px; height: 90px; border-radius: var(--radius-md); overflow: hidden; background: var(--gray-100); flex-shrink: 0; }
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; color: var(--dark); margin-bottom: 4px; font-size: 0.95rem; }
.cart-item-sku { font-size: 0.775rem; color: var(--gray-400); margin-bottom: 8px; }
.cart-item-controls { display: flex; align-items: center; justify-content: space-between; }
.cart-item-price { font-weight: 700; font-size: 1.1rem; color: var(--dark); }
.cart-remove { font-size: 0.8rem; color: #EF4444; cursor: pointer; transition: opacity var(--transition); }
.cart-remove:hover { opacity: 0.7; }
.cart-summary { background: var(--light); border-radius: var(--radius-xl); padding: 28px; border: 1px solid var(--gray-200); position: sticky; top: 88px; }
.cart-summary h3 { font-size: 1.1rem; margin-bottom: 20px; }
.summary-row { display: flex; align-items: center; justify-content: space-between; font-size: 0.9rem; padding: 8px 0; }
.summary-row:not(:last-child) { border-bottom: 1px solid var(--gray-200); }
.summary-total { font-size: 1.1rem; font-weight: 700; }
.promo-input { display: flex; gap: 8px; margin: 16px 0; }
.promo-input input { flex: 1; padding: 10px 14px; border: 1px solid var(--gray-200); border-radius: var(--radius-md); font-size: 0.875rem; }
.promo-input input:focus { outline: none; border-color: var(--indigo); }

/* ─── CHECKOUT ─── */
.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 48px; align-items: start; }
.checkout-form-section { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-xl); padding: 28px; margin-bottom: 20px; }
.checkout-form-section h3 { font-size: 1rem; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.checkout-form-section h3 .step-num { width: 28px; height: 28px; background: var(--indigo); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; flex-shrink: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-size: 0.85rem; font-weight: 600; color: var(--dark); }
.form-label .required { color: #EF4444; margin-left: 2px; }
.form-input { padding: 10px 14px; border: 1px solid var(--gray-200); border-radius: var(--radius-md); font-size: 0.9rem; color: var(--dark); transition: all var(--transition); background: var(--white); }
.form-input:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }
.form-select { padding: 10px 36px 10px 14px; border: 1px solid var(--gray-200); border-radius: var(--radius-md); font-size: 0.9rem; color: var(--dark); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; width: 100%; transition: all var(--transition); }
.form-select:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }
.form-textarea { padding: 10px 14px; border: 1px solid var(--gray-200); border-radius: var(--radius-md); font-size: 0.9rem; color: var(--dark); resize: vertical; min-height: 100px; transition: all var(--transition); }
.form-textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }
.payment-method { display: flex; align-items: center; gap: 12px; padding: 14px; border: 2px solid var(--gray-200); border-radius: var(--radius-md); cursor: pointer; transition: all var(--transition); margin-bottom: 10px; }
.payment-method.selected { border-color: var(--indigo); background: var(--indigo-light); }
.payment-method input { accent-color: var(--indigo); width: 16px; height: 16px; }
.payment-method label { cursor: pointer; font-size: 0.9rem; font-weight: 500; flex: 1; }

/* ─── CONTACT ─── */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-info { }
.contact-detail { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.contact-icon { width: 44px; height: 44px; background: var(--indigo-light); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem; }
.contact-text h4 { font-size: 0.875rem; font-weight: 700; color: var(--dark); margin-bottom: 3px; }
.contact-text p { font-size: 0.875rem; color: var(--slate); margin: 0; }
.contact-text a { color: var(--indigo); }
.map-placeholder { height: 280px; background: var(--gray-100); border-radius: var(--radius-xl); overflow: hidden; margin-top: 24px; }
.map-placeholder iframe { width: 100%; height: 100%; border: none; }

/* ─── POLICY PAGES ─── */
.policy-content { max-width: 860px; margin: 0 auto; }
.policy-content h1 { margin-bottom: 8px; }
.policy-updated { font-size: 0.85rem; color: var(--gray-400); margin-bottom: 40px; display: flex; align-items: center; gap: 6px; }
.policy-content h2 { font-size: 1.4rem; margin: 40px 0 14px; padding-top: 40px; border-top: 1px solid var(--gray-200); }
.policy-content h2:first-of-type { border-top: none; padding-top: 0; }
.policy-content h3 { font-size: 1.1rem; margin: 24px 0 10px; }
.policy-content p { margin-bottom: 16px; font-size: 0.975rem; line-height: 1.75; }
.policy-content ul, .policy-content ol { margin: 12px 0 20px 24px; }
.policy-content li { margin-bottom: 8px; font-size: 0.975rem; color: var(--slate); line-height: 1.65; }
.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: 0.875rem; }
.policy-content table th { background: var(--light); padding: 10px 14px; text-align: left; font-weight: 700; border: 1px solid var(--gray-200); }
.policy-content table td { padding: 9px 14px; border: 1px solid var(--gray-200); color: var(--slate); }
.policy-content .info-box { background: var(--indigo-light); border-left: 4px solid var(--indigo); padding: 16px 20px; border-radius: 0 var(--radius-md) var(--radius-md) 0; margin: 24px 0; }
.policy-content .info-box p { color: var(--indigo-dark); font-size: 0.9rem; margin: 0; }

/* ─── VALUES / FEATURES ─── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.feature-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-xl); padding: 28px; transition: all var(--transition-slow); }
.feature-card:hover { border-color: var(--indigo); box-shadow: var(--shadow-md); }
.feature-icon { width: 52px; height: 52px; border-radius: var(--radius-md); background: var(--indigo-light); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 16px; }
.feature-card h4 { font-size: 1rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.85rem; color: var(--gray-500); line-height: 1.5; margin: 0; }

/* ─── STATS ─── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--gray-200); border-radius: var(--radius-xl); overflow: hidden; }
.stat-item { background: var(--white); padding: 32px 24px; text-align: center; }
.stat-number { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 800; color: var(--indigo); margin-bottom: 4px; }
.stat-label { font-size: 0.875rem; color: var(--gray-500); }

/* ─── ALERT / NOTIFICATION ─── */
.alert { padding: 14px 18px; border-radius: var(--radius-md); font-size: 0.9rem; display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.alert-success { background: var(--emerald-light); color: #065F46; border: 1px solid #A7F3D0; }
.alert-error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.alert-info { background: var(--indigo-light); color: var(--indigo-dark); border: 1px solid #C7D2FE; }
.alert-warning { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--dark); color: var(--white); padding: 14px 20px; border-radius: var(--radius-md); font-size: 0.875rem; box-shadow: var(--shadow-xl); display: flex; align-items: center; gap: 10px; min-width: 280px; animation: toastIn 0.3s ease; }
.toast.success { background: #065F46; }
.toast.error { background: #991B1B; }
@keyframes toastIn { from { opacity:0; transform:translateX(32px); } to { opacity:1; transform:translateX(0); } }

/* ─── FOOTER ─── */
footer { background: var(--gray-800); color: var(--gray-300); }
.footer-main { padding: 64px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .logo-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand .logo-mark { width: 36px; height: 36px; background: var(--indigo); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.footer-brand .logo-mark span { color: var(--white); font-family: var(--font-heading); font-weight: 800; font-size: 1.1rem; }
.footer-brand .logo-text { font-family: var(--font-heading); font-weight: 800; font-size: 1.2rem; color: var(--white); }
.footer-brand p { font-size: 0.875rem; color: var(--gray-400); line-height: 1.7; max-width: 260px; margin-bottom: 20px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 8px; font-size: 0.8rem; color: var(--gray-400); margin-bottom: 8px; }
.footer-contact-item a { color: var(--gray-300); transition: color var(--transition); }
.footer-contact-item a:hover { color: var(--white); }
.footer-col h4 { font-size: 0.875rem; font-weight: 700; color: var(--white); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: 0.825rem; color: var(--gray-400); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid var(--gray-700); padding: 20px 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.8rem; color: var(--gray-500); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.8rem; color: var(--gray-500); transition: color var(--transition); }
.footer-bottom-links a:hover { color: var(--white); }
.social-links { display: flex; gap: 8px; margin-top: 16px; }
.social-link { width: 34px; height: 34px; background: var(--gray-700); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--gray-400); font-size: 0.9rem; transition: all var(--transition); }
.social-link:hover { background: var(--indigo); color: var(--white); }
.footer-newsletter { margin-top: 20px; }
.footer-newsletter p { font-size: 0.8rem; color: var(--gray-400); margin-bottom: 10px; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input { flex: 1; padding: 9px 12px; background: var(--gray-700); border: 1px solid var(--gray-600); border-radius: var(--radius-sm); font-size: 0.8rem; color: var(--white); }
.newsletter-form input::placeholder { color: var(--gray-500); }
.newsletter-form input:focus { outline: none; border-color: var(--indigo); }
.newsletter-form button { padding: 9px 16px; background: var(--indigo); color: var(--white); border-radius: var(--radius-sm); font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: background var(--transition); }
.newsletter-form button:hover { background: var(--indigo-dark); }

/* ─── PAGINATION ─── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 48px; }
.page-btn { width: 38px; height: 38px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 0.875rem; font-weight: 500; border: 1px solid var(--gray-200); color: var(--gray-600); transition: all var(--transition); cursor: pointer; }
.page-btn:hover, .page-btn.active { background: var(--indigo); color: var(--white); border-color: var(--indigo); }
.page-btn.prev, .page-btn.next { width: auto; padding: 0 14px; font-size: 0.8rem; }

/* ─── SECTION BACKGROUNDS ─── */
.bg-light { background: var(--light); }
.bg-dark { background: var(--dark); }
.bg-indigo { background: var(--indigo); }
.bg-white { background: var(--white); }
.section-divider { height: 1px; background: var(--gray-200); }

/* ─── WISHLIST / COMPARE FLOAT ─── */
.sticky-tools { position: fixed; right: 24px; bottom: 80px; display: flex; flex-direction: column; gap: 10px; z-index: 900; }
.sticky-tool-btn { width: 48px; height: 48px; background: var(--white); border-radius: 50%; box-shadow: var(--shadow-lg); display: flex; align-items: center; justify-content: center; color: var(--gray-600); border: 1px solid var(--gray-200); transition: all var(--transition); cursor: pointer; font-size: 1.1rem; }
.sticky-tool-btn:hover { background: var(--indigo); color: var(--white); border-color: var(--indigo); }

/* ─── INFO CARDS ─── */
.info-card { background: var(--light); border-radius: var(--radius-xl); padding: 28px; }
.info-card h4 { margin-bottom: 10px; font-size: 1rem; }
.info-card p { font-size: 0.875rem; margin: 0; }

/* ─── TAGS ─── */
.tag { display: inline-flex; padding: 4px 10px; background: var(--gray-100); color: var(--gray-600); border-radius: 20px; font-size: 0.775rem; font-weight: 500; }
.tag:hover { background: var(--indigo-light); color: var(--indigo); }

/* ─── ORDER CONFIRMATION ─── */
.order-success { text-align: center; padding: 80px 24px; max-width: 560px; margin: 0 auto; }
.order-success .success-icon { width: 80px; height: 80px; background: var(--emerald-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; font-size: 2rem; }
.order-details-table { text-align: left; width: 100%; margin-top: 32px; }
.order-details-table td { padding: 10px 0; border-bottom: 1px solid var(--gray-200); font-size: 0.9rem; }
.order-details-table td:first-child { font-weight: 600; color: var(--dark); width: 40%; }
.order-details-table td:last-child { color: var(--slate); }

/* ─── ABOUT ─── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.team-card { text-align: center; }
.team-avatar { width: 100%; aspect-ratio: 1; border-radius: var(--radius-xl); overflow: hidden; margin-bottom: 12px; background: var(--gray-100); }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-name { font-weight: 700; font-size: 0.95rem; margin-bottom: 3px; }
.team-role { font-size: 0.8rem; color: var(--gray-500); }

/* ─── SITEMAP ─── */
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px; }
.sitemap-section h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--indigo); }
.sitemap-section ul { display: flex; flex-direction: column; gap: 6px; }
.sitemap-section ul li a { font-size: 0.875rem; color: var(--slate); transition: color var(--transition); }
.sitemap-section ul li a:hover { color: var(--indigo); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail { grid-template-columns: 1fr; gap: 32px; }
  .product-gallery { position: static; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .products-layout { flex-direction: column; }
  .filter-sidebar { width: 100%; }
  .mega-menu { display: none; }
  .navbar-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav.open { display: block; padding: 16px; border-top: 1px solid var(--gray-200); }
  .mobile-nav-link { display: block; padding: 10px 12px; font-size: 0.95rem; color: var(--gray-700); border-radius: var(--radius-sm); font-weight: 500; }
  .mobile-nav-link:hover { background: var(--gray-100); color: var(--indigo); }
  .mobile-nav-group { margin-bottom: 8px; }
  .mobile-nav-group-title { font-size: 0.75rem; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.08em; padding: 8px 12px 4px; }
  .hero { min-height: 420px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col:nth-child(5) { grid-column: 1 / -1; }
  .blog-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .topbar-inner { flex-direction: column; gap: 4px; text-align: center; }
  .container { padding: 0 16px; }
}

/* ─── UTILITY ─── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hidden { display: none !important; }
.mt-0 { margin-top: 0; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.text-indigo { color: var(--indigo); }
.text-emerald { color: var(--emerald); }
.text-slate { color: var(--slate); }
.text-dark { color: var(--dark); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.775rem; }
