/* =============================================
   GADGETIZE - Custom Stylesheet
   ============================================= */

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

:root {
  --primary:       #1b1b1b;
  --primary-dark: #000;
  --primary-light: #e8f5ee;
  --accent:        #f0c040;
  --danger:        #c0392b;
  --text-dark:     #1a1a2e;
  --text-muted:    #6c757d;
  --border:        #e5e7eb;
  --bg-light:      #f4f5f7;
  --white:         #ffffff;
  --shadow-sm:     0 2px 8px rgba(0,0,0,.08);
  --shadow-md:     0 4px 20px rgba(0,0,0,.12);
  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     18px;
  --font-main:    'Outfit', sans-serif;
  --font-display: 'Sora', sans-serif;
  --transition:    all .22s ease;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background: var(--white);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
}

a   { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; }
ul  { list-style: none; padding: 0; margin: 0; }

/* =============================================
   TOP BAR
   FIX: position:relative + z-index:1010 gives the
   top-bar its own stacking context that sits above
   the sticky header (z-index 1005). Without this,
   sticky header's stacking context swallows the
   dropdown menus and they render behind the header.
   ============================================= */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,.85);
  font-size: 12.5px;
  padding: 7px 0;
  position: relative;
  z-index: 1010;
}

.top-bar a       { color: rgba(255,255,255,.85); }
.top-bar a:hover { color: var(--white); }

.top-bar-dropdown-btn {
  color: rgba(255,255,255,.9);
  font-size: 12.5px;
  padding: 0 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-main);
  line-height: 1;
}

.top-bar-dropdown-btn::after { margin-left: 3px; }

/* Dark-themed dropdown menu for top-bar */
.top-bar .dropdown-menu {
  z-index: 1020;
  background: #1b3d25;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  margin-top: 8px !important;
  min-width: 170px;
  box-shadow: 0 8px 28px rgba(0,0,0,.38);
}

.top-bar .dropdown-menu .dropdown-item {
  color: rgba(255,255,255,.85);
  font-size: 13px;
  padding: 8px 16px;
  font-family: var(--font-main);
  transition: var(--transition);
}

.top-bar .dropdown-menu .dropdown-item:hover,
.top-bar .dropdown-menu .dropdown-item:focus {
  background: rgba(255,255,255,.1);
  color: var(--white);
}

.top-bar .divider {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,.3);
  display: inline-block;
  margin: 0 10px;
  vertical-align: middle;
}

.top-bar-right { display: flex; align-items: center; gap: 4px; }

/* =============================================
   HEADER
   FIX: z-index 1005 — below top-bar (1010) so
   top-bar dropdowns always render on top of it.
   ============================================= */
.site-header {
  background: var(--white);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1005;
  box-shadow: var(--shadow-sm);
}

.site-logo {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.logo{
  height: 45px;
}

.site-logo span { color: var(--primary); }

.search-wrapper {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex: 1;
  max-width: 600px;
}

.search-cat-select {
  border: none;
  border-right: 1.5px solid var(--border);
  padding: 0 12px;
  font-size: 13px;
  color: var(--text-dark);
  background: #f9fafb;
  min-width: 130px;
  cursor: pointer;
  outline: none;
  font-family: var(--font-main);
}

.search-input {
  border: none;
  flex: 1;
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--text-dark);
  background: var(--white);
  outline: none;
  font-family: var(--font-main);
}

.search-input::placeholder { color: #adb5bd; }

.search-btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 10px 22px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-main);
}

.search-btn:hover { background: var(--primary-dark); }

.header-actions { display: flex; align-items: center; gap: 18px; }

.header-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-main);
}

.header-action-btn .icon-wrap {
  position: relative;
  color: var(--text-dark);
  font-size: 22px;
  line-height: 1;
}

.header-action-btn .badge-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--primary);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-action-btn .action-label {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.header-action-btn .action-label small  { font-size: 11px; color: var(--text-muted); }
.header-action-btn .action-label strong { font-size: 13px; font-weight: 600; color: var(--text-dark); }



/* ── Header 3-column layout ── */
.header-inner {
  width: 100%;
  gap: 1rem;
}

/* Left (logo) and Right (actions) each take equal flex space */
.header-col-left,
.header-col-right {
  flex: 1;
  min-width: 0;
}

/* Search sits in the middle with a max-width */
.header-col-center {
  flex: 0 0 auto;
  width: min(520px, 42%);
}
/* =============================================
   NAVBAR
   FIX: overflow:visible is essential — without it
   nav dropdowns are clipped by the container.
   z-index 1003 keeps it below the sticky header.
   ============================================= */
.main-navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0;
  position: relative;
  z-index: 1003;
  overflow: visible;
}

.browse-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  background: none;
  border: none;
  border-right: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  font-family: var(--font-main);
  white-space: nowrap;
}

.browse-btn i { font-size: 16px; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  padding: 0 12px;
}

.nav-item-link {
  padding: 13px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  white-space: nowrap;
}

.nav-item-link.active { color: var(--primary); font-weight: 600; }
.nav-item-link:hover  { color: var(--primary); }
.nav-item-link i      { font-size: 11px; }

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  min-width: 180px;
  z-index: 999;
  display: none;
  animation: fadeDown .18s ease;
}

.nav-dropdown a {
  display: block;
  padding: 9px 18px;
  font-size: 13px;
  color: var(--text-dark);
  transition: var(--transition);
}

.nav-dropdown a:hover { background: var(--primary-light); color: var(--primary); padding-left: 22px; }

.nav-item:hover .nav-dropdown { display: block; }

.mega-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 24px 28px;
  z-index: 999;
  display: none;
  animation: fadeDown .18s ease;
  min-width: 700px;
}

.nav-item:hover .mega-dropdown { display: flex; gap: 30px; }

.mega-col h6 {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.mega-col a { display: block; padding: 5px 0; font-size: 13px; color: var(--text-dark); }
.mega-col a:hover { color: var(--primary); }

.mega-img-card {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  min-width: 140px;
}

.mega-img-card img { height: 80px; object-fit: contain; }
.mega-img-card p   { font-size: 12px; font-weight: 600; margin: 8px 0 0; }

.browse-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 999;
  display: none;
  animation: fadeDown .18s ease;
  width: 700px;
}

.browse-wrap:hover .browse-dropdown { display: flex; }

.browse-sidebar {
  width: 230px;
  background: #fafafa;
  border-right: 1px solid var(--border);
  padding: 8px 0;
  flex-shrink: 0;
}

.browse-sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}

.browse-sidebar-item:hover { background: var(--primary-light); color: var(--primary); }

.browse-main-content { flex: 1; padding: 20px 24px; }
.browse-main-content h6 { font-size: 13px; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; }
.browse-main-content a  { display: block; padding: 4px 0; font-size: 13px; color: #555; }
.browse-main-content a:hover { color: var(--primary); }

.browse-product-imgs { display: flex; gap: 12px; margin-top: 12px; }

.browse-prod-img {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  flex: 1;
}

.browse-prod-img img { height: 70px; object-fit: contain; }
.browse-prod-img p   { font-size: 11px; font-weight: 600; margin: 6px 0 0; }

.sale-ticker {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--danger);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

/* =============================================
   HERO
   ============================================= */
.hero-section { padding: 30px 0 30px 0; background: var(--bg-light); }

.hero-main {
  border-radius: var(--radius-lg);
  background: linear-gradient(125deg, #1a0a2e 0%, #2d1b5e 40%, #4a1942 70%, #6b1c3a 100%);
  padding: 48px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 360px;
  position: relative;
  overflow: hidden;
}

.hero-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,200,0,.08) 0%, transparent 60%);
}

.hero-content { position: relative; z-index: 1; max-width: 50%; }

.hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 12px;
}

.hero-title .highlight { color: var(--accent); }

.hero-subtitle { font-size: 14px; color: rgba(255,255,255,.65); margin-bottom: 28px; }

.hero-dots { display: flex; gap: 8px; margin-top: 20px; }

.hero-dot {
  width: 28px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255,255,255,.3);
  cursor: pointer;
  transition: var(--transition);
}

.hero-dot.active { background: var(--white); width: 36px; }

.btn-hero {
  display: inline-block;
  background: var(--white);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-hero:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.25); }

.hero-img { position: relative; z-index: 1; max-width: 50%; text-align: right; }

.hero-img img {
  max-height: 270px;
  object-fit: contain;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,.4));
  animation: floatY 3s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

.hero-side { display: flex; flex-direction: column; gap: 16px; height: 100%; }

.side-banner {
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #6b1c3a 0%, #8b0d2a 100%);
  padding: 20px 20px 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 1;
  overflow: hidden;
  position: relative;
  transition: var(--transition);
  cursor: pointer;
}

.side-banner:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.side-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(255,255,255,.06) 0%, transparent 60%);
}

.side-banner-text { position: relative; z-index: 1; }

.side-banner-category {
  font-size: 11px;
  color: rgba(255,255,255,.7);
  font-weight: 500;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.side-banner-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 6px;
}

.side-banner-note { font-size: 11.5px; color: rgba(255,255,255,.6); }

.side-banner img { height: 110px; object-fit: contain; position: relative; z-index: 1; flex-shrink: 0; }

/* =============================================
   CATEGORY SLIDER
   FIX: replaced static Bootstrap grid with a
   custom overflow-hidden viewport + flex track
   driven by prev/next buttons in JS.
   ============================================= */
.category-section {
  padding: 30px 0 30px;
  /*background: var(--bg-light);*/
  background: #fbfbfb;
  margin: 0 0 30px 0;
}

.cat-slider-outer {
  position: relative;
  padding: 0 56px;
}

.cat-slider-viewport {
  overflow: hidden;
  width: 100%;
}

.cat-slider-track {
  display: flex;
  transition: transform .42s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

.cat-slide {
  flex: 0 0 12.5%;     /* default 8 visible; overridden by JS on init & resize */
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 8px;
}

.cat-slider-btn {
  position: absolute;
  top: 44px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 3px 14px rgba(26,107,58,.35);
  transition: var(--transition);
  line-height: 1;
}

.cat-slider-btn:hover    { background: var(--primary-dark); transform: scale(1.08); }
.cat-slider-btn:disabled { background: #ccc; cursor: default; box-shadow: none; pointer-events: none; }

.cat-prev { left: 0; }
.cat-next { right: 0; }

.cat-icon-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.cat-icon-wrap:hover { transform: translateY(-4px); }

.cat-icon-circle {
  width: 100px;
  height: 100px;
  border-radius: 30%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.cat-icon-wrap:hover .cat-icon-circle { background: var(--primary-light); }

.cat-icon-circle img { width: 60px; height: 60px; object-fit: contain; }

.cat-icon-name  { font-size: 13px; font-weight: 600; color: var(--text-dark); text-align: center; }
.cat-icon-count { font-size: 11px; color: var(--text-muted); text-align: center; margin-top: -6px; }

/* =============================================
   SECTION HEADERS
   ============================================= */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.section-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--text-dark); margin: 0; }

.filter-tabs { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.filter-tab {
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
  font-weight: 500;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-main);
}

.filter-tab::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #ccc; transition: var(--transition); }
.filter-tab.active         { color: var(--primary); font-weight: 600; }
.filter-tab.active::before { background: var(--primary); }

.show-all-link { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; font-weight: 500; }
.show-all-link:hover { color: var(--primary); }

/* =============================================
   PRODUCT CARDS
   ============================================= */
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: rgba(26,107,58,.2); }

.product-img-wrap {
  position: relative;
  padding: 20px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.product-img-wrap img { height: 200px; width: 100%; object-fit: cover; border-radius: 8px;transition: var(--transition); }
.product-card:hover .product-img-wrap img { transform: scale(1.06); }

.discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--danger);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.product-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }

.product-name { font-size: 14.5px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.product-name:hover { color: var(--primary-dark); }

.product-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.star-rating { color: #f5b400; font-size: 12px; }
.star-rating .review-count { color: var(--text-muted); font-size: 11.5px; margin-left: 4px; }

.price-wrap { margin-top: 10px; display: flex; align-items: center; gap: 10px; }
.price-old  { font-size: 13px; color: var(--text-muted); text-decoration: line-through; }
.price-new  { font-size: 15px; font-weight: 700; color: var(--text-dark); }

.btn-add-cart {
  width: 100%;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-top: 12px;
  transition: var(--transition);
  font-family: var(--font-main);
}

.btn-add-cart:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* =============================================
   FEATURED / SPECIAL OFFER
   ============================================= */
.featured-section { padding: 40px 0; background: var(--white); }

.special-offer-card {
  background: linear-gradient(160deg, #1a0a2e 0%, #2d1b5e 100%);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 420px;
  position: relative;
  overflow: hidden;
}

.special-offer-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(255,255,255,.05) 0%, transparent 60%);
}

.special-offer-card .offer-label { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; position: relative; z-index: 1; }
.special-offer-card img           { object-fit: contain; position: relative; z-index: 1; filter: drop-shadow(0 8px 20px rgba(0,0,0,.4)); }
.special-offer-card .offer-name   { color: var(--white); font-family: var(--font-display); font-size: 17px; font-weight: 700; position: relative; z-index: 1; }
.special-offer-card .offer-price  { color: var(--accent); font-size: 20px; font-weight: 800; position: relative; z-index: 1; }

/* =============================================
   FLASH SALE BANNER
   ============================================= */
.flash-sale-banner {
  background: linear-gradient(135deg, #1b0b31 0%, #50183b 100%);
  padding: 32px 0;
  position: relative;
  overflow: hidden;
}

.flash-sale-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.flash-sale-text           { position: relative; z-index: 1; }
.flash-sale-text h2        { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--white); margin-bottom: 4px; }
.flash-sale-text .shop-link { color: #fff; font-size: 16px; font-weight: 600; }
.flash-sale-text .shop-link span { color: var(--accent); }

.flash-badge   { background: var(--danger); color: var(--white); padding: 6px 16px; border-radius: 4px; font-size: 13px; font-weight: 700; letter-spacing: 1px; transform: rotate(-2deg); display: inline-block; }
.flash-percent { font-family: var(--font-display); font-size: 56px; font-weight: 900; color: var(--accent); line-height: 1; }
.flash-off     { font-size: 15px; color: rgba(255,255,255,.7); font-weight: 600; }
.flash-sale-phones img { object-fit: contain; filter: drop-shadow(0 8px 20px rgba(0,0,0,.4)); }

/* =============================================
   BRAND LOGOS
   ============================================= */
.brands-section { padding: 28px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.brand-logo { display: flex; align-items: center; justify-content: center; padding: 12px 20px; border-right: 1px solid var(--border); filter: grayscale(100%); opacity: .55; transition: var(--transition); }
.brand-logo:last-child { border-right: none; }
.brand-logo:hover      { filter: grayscale(0%); opacity: 1; }
.brand-logo span       { font-size: 16px; font-weight: 800; letter-spacing: 1px; color: var(--text-dark); }

/* =============================================
   BLOG
   ============================================= */
.blog-section { padding: 36px 0; background: var(--bg-light); }

.blog-card { background: var(--white); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); transition: var(--transition); height: 100%; }
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.blog-img-wrap          { overflow: hidden; height: 170px; }
.blog-img-wrap img      { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.blog-card:hover .blog-img-wrap img { transform: scale(1.05); }

.blog-body { padding: 16px; }

.blog-date { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; display: flex; align-items: center; gap: 5px; }
.blog-date i { color: var(--primary); }

.blog-title { font-size: 14px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.45; }

.blog-desc { font-size: 12.5px; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px; }

.blog-read-more { font-size: 13px; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 4px; }
.blog-read-more:hover { gap: 8px; }

/* =============================================
   COUNTDOWN BANNER
   ============================================= */
.countdown-banner { background: linear-gradient(135deg, #1b0b31 0%, #52193d 100%); padding: 36px 0; position: relative; overflow: hidden; }

.countdown-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}

.countdown-content              { position: relative; z-index: 1; }
.countdown-eyebrow              { font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 4px; }
.countdown-eyebrow span         { color: var(--accent); font-weight: 700; }
.countdown-timer                { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.timer-box                      { background: rgba(0,0,0,.3); border-radius: var(--radius-sm); padding: 10px 14px; text-align: center; min-width: 60px; }
.timer-box .num                 { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--white); display: block; line-height: 1; }
.timer-box .lbl                 { font-size: 10px; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: 1px; }
.timer-sep                      { font-size: 24px; font-weight: 700; color: var(--accent); line-height: 1; }
.btn-shop-now-white             { display: inline-block; background: var(--white); color: var(--text-dark); font-weight: 700; font-size: 14px; padding: 12px 28px; border-radius: var(--radius-sm); transition: var(--transition); margin-top: 20px; }
.btn-shop-now-white:hover       { background: var(--accent); transform: translateY(-2px); }
.countdown-img img              { max-height: 250px; object-fit: contain; filter: drop-shadow(0 10px 30px rgba(0,0,0,.3)); }

/* =============================================
   FEATURES STRIP
   ============================================= */
.features-strip { padding: 28px 0; border-bottom: 1px solid var(--border); }

.feature-item   { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 8px; gap: 8px; }
.feature-icon   { width: 44px; height: 44px; border: 1.5px solid var(--primary); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 18px; }
.feature-label  { font-size: 13px; font-weight: 700; color: var(--text-dark); }
.feature-sub    { font-size: 11.5px; color: var(--text-muted); margin-top: -4px; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer    { background: var(--white); border-top: 1px solid var(--border); padding-top: 48px; }
.footer-logo    { font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--text-dark); margin-bottom: 12px; display: inline-block; }
.footer-logo span { color: var(--primary); }
.footer-desc    { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-bottom: 18px; }
.footer-follow  { font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.social-icons   { display: flex; gap: 10px; }

.social-icon    { width: 34px; height: 34px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--text-dark); transition: var(--transition); }
.social-icon:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }

.footer-heading { font-size: 14px; font-weight: 700; color: var(--text-dark); margin-bottom: 16px; }
.footer-links li { margin-bottom: 8px; }
.footer-links a  { font-size: 13px; color: var(--text-muted); transition: var(--transition); }
.footer-links a:hover { color: var(--primary); padding-left: 4px; }

.footer-contact-item   { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; font-size: 13px; color: var(--text-muted); }
.footer-contact-item i { color: var(--primary); font-size: 15px; margin-top: 1px; flex-shrink: 0; }

.newsletter-label { font-size: 13.5px; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; }
.newsletter-form  { display: flex; border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.newsletter-input { flex: 1; border: none; padding: 10px 14px; font-size: 13px; outline: none; font-family: var(--font-main); }
.newsletter-btn   { background: var(--primary); color: var(--white); border: none; padding: 10px 18px; font-size: 13px; font-weight: 700; cursor: pointer; transition: var(--transition); font-family: var(--font-main); }
.newsletter-btn:hover { background: var(--primary-dark); }

.footer-bottom { border-top: 1px solid var(--border); padding: 16px 0; margin-top: 32px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 12.5px; color: var(--text-muted); margin: 0; }
.footer-bottom a { color: var(--primary); font-weight: 600; }

.payment-icons { display: flex; gap: 8px; align-items: center; }
.payment-icon  { width: 40px; height: 26px; border: 1px solid var(--border); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; color: var(--text-dark); background: var(--white); }

/* =============================================
   SLIDE-IN PANELS (Cart / Wishlist)
   FIX: z-index 2000/2001 — these values are far
   above every sticky/fixed element on the page
   (header: 1005, navbar: 1003, dropdowns: 999).
   will-change:transform prevents the panel from
   being clipped by the header's stacking context.
   ============================================= */
.side-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

.side-panel-overlay.active { opacity: 1; visibility: visible; }

.side-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 100%;
  height: 100%;
  background: var(--white);
  z-index: 2001;
  box-shadow: -6px 0 40px rgba(0,0,0,.18);
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.side-panel.active { transform: translateX(0); }

.side-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.side-panel-header h5 { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin: 0; }

.panel-close-btn { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text-dark); padding: 4px; line-height: 1; transition: var(--transition); }
.panel-close-btn:hover { color: var(--danger); }

.side-panel-body { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }

.side-panel-empty i { font-size: 64px; color: #ddd; }
.side-panel-empty p { color: var(--text-muted); font-size: 14px; margin: 8px 0 0; }

.btn-return-shop { background: var(--primary); color: var(--white); padding: 12px 32px; border-radius: var(--radius-sm); font-weight: 700; font-size: 13px; border: none; cursor: pointer; text-transform: uppercase; letter-spacing: 1px; transition: var(--transition); font-family: var(--font-main); }
.btn-return-shop:hover { background: var(--primary-dark); }

/* =============================================
   AUTH MODAL
   FIX: override Bootstrap z-index so modal
   appears above side panels (2001).
   ============================================= */
.auth-modal     { z-index: 2100 !important; }
.modal-backdrop { z-index: 2050 !important; }

.auth-modal .modal-content { border-radius: var(--radius-lg); border: none; }

.auth-tabs { display: flex; border-bottom: 1.5px solid var(--border); margin-bottom: 24px; }

.auth-tab {
  flex: 1;
  padding: 14px 0;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  transition: var(--transition);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: var(--font-main);
}

.auth-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.auth-form-group { margin-bottom: 16px; }

.auth-form-group label { font-size: 13.5px; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; display: block; }
.auth-form-group label .required { color: var(--danger); margin-left: 2px; }

.auth-input { width: 100%; border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 11px 14px; font-size: 14px; color: var(--text-dark); font-family: var(--font-main); outline: none; transition: var(--transition); }
.auth-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,107,58,.12); }

.btn-auth-submit { width: 100%; background: var(--primary); color: var(--white); border: none; padding: 13px; font-size: 15px; font-weight: 700; border-radius: var(--radius-sm); cursor: pointer; font-family: var(--font-main); transition: var(--transition); }
.btn-auth-submit:hover { background: var(--primary-dark); }

.auth-footer-note { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 16px; line-height: 1.6; }
.auth-footer-note a { color: var(--primary); font-weight: 600; }

.forgot-pwd { font-size: 13px; color: var(--text-muted); margin: 4px 0 16px; display: block; }
.forgot-pwd:hover { color: var(--primary); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 991px) {
  .hero-title   { font-size: 32px; }
  .hero-main    { padding: 36px 28px; min-height: 280px; }
  .hero-img img { max-height: 200px; }
  .cat-icon-circle     { width: 72px; height: 72px; }
  .cat-icon-circle img { width: 42px; height: 42px; }
  .cat-slider-btn { top: 36px; }
  .side-panel   { width: 340px; }
  .flash-percent { font-size: 44px; }
}

@media (max-width: 767px) {
  .top-bar .top-bar-welcome { display: none; }
  .top-bar-right { font-size: 11.5px; gap: 2px; }

  .logo{height: 30px;}
  .header-actions{margin-right: 5px;}

  .site-header { padding: 10px 0; }
  .search-wrapper { max-width: 100%; }
  .search-cat-select { display: none; }
  .header-action-btn .action-label { display: none; }
  .browse-btn span { display: none; }

  .hero-main { flex-direction: column; min-height: auto; padding: 28px 22px; text-align: center; gap: 20px; }
  .hero-content { max-width: 100%; }
  .hero-title   { font-size: 26px; }
  .hero-img     { max-width: 100%; text-align: center; }
  .hero-img img { max-height: 160px; }
  .hero-dots    { justify-content: center; }

  .side-banner       { padding: 16px; }
  .side-banner-title { font-size: 14px; }
  .side-banner img   { height: 80px; }

  .cat-slider-outer    { padding: 0 44px; }
  .cat-slider-btn      { width: 34px; height: 34px; font-size: 13px; top: 31px; }
  .cat-icon-circle     { width: 62px; height: 62px; }
  .cat-icon-circle img { width: 36px; height: 36px; }
  .cat-icon-name       { font-size: 11px; }

  .special-offer-card { min-height: 280px; }
  .flash-sale-banner .row { text-align: center; }
  .flash-percent { font-size: 36px; }
  .countdown-banner .row { text-align: center; }
  .countdown-timer { justify-content: center; flex-wrap: wrap; }

  .product-img-wrap {
    padding: 28px 20px 18px;
    min-height: 230px;
  }

  .product-img-wrap img {
    height: 210px;
    object-fit: cover;
    object-position: center 12px;
  }

  .features-strip .row > div          { border-bottom: 1px solid var(--border); }
  .features-strip .row > div:last-child { border-bottom: none; }

  .footer-bottom { flex-direction: column; text-align: center; }
  .payment-icons { justify-content: center; }

  .price-wrap {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 4px 8px;
  }

  .price-old {
    font-size: 12px;
    line-height: 1.2;
  }

  .price-new {
    flex-basis: 100%;
    font-size: 14px;
    line-height: 1.2;
  }

  .side-panel { width: 100%; }
  .mega-dropdown, .browse-dropdown { width: 100%; min-width: unset; }
  .nav-menu { display: none; }
  .mobile-nav-toggle { display: block !important; }
}

@media (max-width: 479px) {
  .cat-slider-outer { padding: 0 40px; }
}

.mobile-nav-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text-dark); padding: 4px; }

.mobile-nav { display: none; background: var(--white); border-top: 1px solid var(--border); padding: 12px 0; box-shadow: var(--shadow-md); }
.mobile-nav.show { display: block; }
.mobile-nav a { display: block; padding: 10px 20px; font-size: 14px; font-weight: 500; color: var(--text-dark); border-bottom: 1px solid #f0f0f0; }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a.active, .mobile-nav a:hover { color: var(--primary); background: var(--primary-light); }

::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #c5c5c5; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }
