/* ============================================
  CAMPUS STYLES — UPGRADED CSS
   Youthful · Bold · Modern
   Target: Karatina University Students
   ============================================ */

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

/* ============================================
   CSS VARIABLES — New Color System
   ============================================ */
:root {
  /* 🎯 BASE */
  --bg:            #F8FAFC;
  --surface:       #FFFFFF;
  --text:          #111827;
  --text-light:    #6B7280;
  --text-muted:    #9CA3AF;
  --border:        #E5E7EB;

  /* 🔥 PRIMARY */
  --primary:       #7C3AED;
  --primary-light: #A78BFA;
  --primary-dark:  #5B21B6;
  --secondary:     #FF4D8D;
  --secondary-dark:#E0356F;
  --accent:        #38BDF8;
  --accent-dark:   #0EA5E9;

  /* keep these for legacy references */
  --black:         #111827;
  --white:         #FFFFFF;
  --off-white:     #F8FAFC;
  --light-gray:    #F1F5F9;
  --mid-gray:      #E5E7EB;
  --gray:          #9CA3AF;
  --dark-gray:     #6B7280;
  --red:           #EF4444;
  --green:         #22C55E;

  /* 🌈 GRADIENTS */
  --gradient-main: linear-gradient(135deg, #7C3AED, #FF4D8D);
  --gradient-alt:  linear-gradient(135deg, #38BDF8, #7C3AED);
  --gradient-warm: linear-gradient(135deg, #FF4D8D, #F59E0B);
  --gradient-hero: linear-gradient(135deg, #7C3AED 0%, #FF4D8D 60%, #38BDF8 100%);

  /* ✅ STATES */
  --success:       #22C55E;
  --error:         #EF4444;
  --warning:       #F59E0B;
  --info:          #38BDF8;

  /* 🧩 UI */
  --shadow-sm:     0 2px 8px  rgba(0,0,0,0.05);
  --shadow-md:     0 6px 20px rgba(124,58,237,0.15);
  --shadow-lg:     0 10px 30px rgba(124,58,237,0.25);
  --shadow-xl:     0 20px 50px rgba(124,58,237,0.3);
  --shadow-glow:   0 0 20px rgba(255,77,141,0.4);
  --shadow-pink:   0 6px 20px rgba(255,77,141,0.3);
  --shadow-blue:   0 6px 20px rgba(56,189,248,0.3);

  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     16px;
  --radius-xl:     24px;
  --radius-full:   9999px;

  --transition:    all 0.3s ease;
  --transition-fast: all 0.15s ease;
  --font:          'Inter', sans-serif;
  --font-serif:    'Playfair Display', serif;
  --nav-height:    68px;
  --container:     1280px;
}

/* ============================================
   RESET
   ============================================ */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html   { scroll-behavior:smooth; font-size:16px; -webkit-text-size-adjust:100%; }
body   { font-family:var(--font); color:var(--text); background:var(--bg); line-height:1.6; overflow-x:hidden; }
img    { max-width:100%; height:auto; display:block; }
a      { text-decoration:none; color:inherit; transition:var(--transition); }
ul,ol  { list-style:none; }
button { cursor:pointer; font-family:var(--font); border:none; background:none; transition:var(--transition); }
input,textarea,select { font-family:var(--font); outline:none; }
h1,h2,h3,h4,h5,h6 { line-height:1.2; color:var(--text); font-weight:700; }

/* Global hover lift */
button:hover { transform:translateY(-1px); }




/* ---- WhatsApp float ---- */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: var(--color-white);
  display: grid; place-items: center;
  font-size: 1.6rem;
  box-shadow: 0 8px 24px rgba(37,211,102,0.45);
  z-index: var(--z-toast);
  animation: pulse-wa 2.4s infinite;
}

@keyframes pulse-wa {
  0%   { box-shadow: 0 8px 24px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0.55); }
  70%  { box-shadow: 0 8px 24px rgba(37,211,102,0.45), 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 8px 24px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0); }
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */
.container  { width:100%; max-width:var(--container); margin:0 auto; padding:0 20px; }
.section    { padding:60px 0; }
.section-sm { padding:40px 0; }

.section-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:32px; }
.section-title  { font-size:20px; font-weight:800; text-transform:uppercase; letter-spacing:1px; }
.view-all {
  font-size:13px; font-weight:700; color:var(--primary);
  text-decoration:underline; text-underline-offset:3px;
  transition:var(--transition);
}
.view-all:hover { color:var(--secondary); }

/* ============================================
   TYPOGRAPHY
   ============================================ */
.serif      { font-family:var(--font-serif); }
.text-sm    { font-size:13px; }
.text-xs    { font-size:11px; }
.text-lg    { font-size:18px; }
.text-muted { color:var(--text-muted); }
.text-light { color:var(--text-light); }
.uppercase  { text-transform:uppercase; letter-spacing:1px; }
.fw-600 { font-weight:600; }
.fw-700 { font-weight:700; }
.fw-800 { font-weight:800; }

/* ✨ Gradient Text */
.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ✨ Glow Effect */
.glow {
  box-shadow: var(--shadow-glow);
}

/* ============================================
   BUTTONS — Upgraded System
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: var(--transition);
  letter-spacing: 0.5px;
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

/* ---- Primary — Main gradient button ---- */
.btn-primary {
  background: var(--gradient-main);
  color: white;
  border: none;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* ---- Black (kept for backward compat, now uses primary gradient) ---- */
.btn-black {
  background: var(--gradient-main);
  color: white;
  border: none;
  box-shadow: var(--shadow-md);
}
.btn-black:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ---- White ---- */
.btn-white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-white:hover {
  background: var(--off-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ---- Outline ---- */
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ---- Outline White ---- */
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.8);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ---- Alt gradient ---- */
.btn-alt {
  background: var(--gradient-alt);
  color: white;
  border: none;
  box-shadow: var(--shadow-blue);
}
.btn-alt:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(56,189,248,0.4);
}

/* Sizes */
.btn-sm   { padding: 8px 18px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-lg   { padding: 15px 36px; font-size: 15px; }
.btn-full { width: 100%; }

/* Loading state */
.btn.loading { opacity: 0.75; pointer-events: none; }
.btn.loading::after {
  content: '';
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 8px;
}

@keyframes marquee-scroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 4px rgba(230, 30, 37, 0.3); }
  50% { box-shadow: 0 0 16px rgba(230, 30, 37, 0.6); }
}

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}


/* ==========================================================================
   3. TOP BAR MARQUEE EFFECT
   ========================================================================== */
.top-bar {
  background-color: #111111;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  white-space: nowrap;
  padding: 8px 0;
}

.top-bar-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 20s linear infinite;
}

.top-bar-item {
  padding: 0 40px;
}


/* ============================================
   NAVBAR — Glass Effect
   ============================================ */
.navbar {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229,231,235,0.6);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--border);
}
.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo */
.nav-logo {
  font-family: var(--font-serif);
   font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.4px;
  color: #e61e25;

}
.nav-logo span {
 color: #1a1a1a;
  font-weight: 400;
}



/* Nav links */
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-decoration: none;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-main);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: rgba(124,58,237,0.06);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 60%;
}

/* Nav icons */
.nav-icons { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.nav-icon-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-light);
  font-size: 18px;
  transition: var(--transition);
  background: none; border: none; cursor: pointer;
  position: relative;
  text-decoration: none;
}
.nav-icon-btn:hover {
  background: rgba(124,58,237,0.08);
  color: var(--primary);
  transform: translateY(-1px);
}

/* Cart badge */
.cart-badge {
  position: absolute;
  top: 3px; right: 3px;
  width: 18px; height: 18px;
  background: var(--secondary);
  color: white;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
  animation: badge-pop 0.3s ease;
}
@keyframes badge-pop {
  0%   { transform: scale(0); }
  70%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.cart-badge.hidden { display: none; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  width: 38px; height: 38px;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger span:nth-child(1) { width: 22px; }
.hamburger span:nth-child(2) { width: 16px; }
.hamburger span:nth-child(3) { width: 22px; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); width: 22px; }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 22px; }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0; bottom: 0;
  background: var(--surface);
  z-index: 999;
  overflow-y: auto;
  padding: 20px;
  flex-direction: column;
  gap: 4px;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
.mobile-nav.open {
  transform: translateX(0);
  display: flex;
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-md);
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.mobile-nav-link:hover, .mobile-nav-link.active {
  background: rgba(124,58,237,0.06);
  color: var(--primary);
  border-bottom-color: transparent;
}
.mobile-nav-divider { height: 1px; background: var(--border); margin: 8px 0; }

/* ============================================
   HERO SECTION
   ============================================ */
   

/* --- HERO MASTER CORE CONTAINER --- */
.hero-wrapper-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 15px;
  padding-top: 15px;
  padding-bottom: 15px;
}

/* Consistent hero section height */
.category-sidebar,
.main-slider-viewport {
  height: 380px;
  background-color: #ffffff;
  border-radius: 6px;
  border: 1px solid #e5e5e5;
  box-sizing: border-box;
  overflow: hidden;
}

/* Base heights setting for perfect alignment alignment */
.category-sidebar,
.main-slider-viewport,
.promo-aside-box {
  height: 380px; /* Lock structural height across all blocks */
  background-color: #ffffff;
  border-radius: 6px;
  border: 1px solid #e5e5e5;
  box-sizing: border-box;
  overflow: hidden;
}

/* --- 1. LEFT SIDEBAR STYLING --- */
.sidebar-title {
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  padding: 15px 20px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e5e5e5;
  color: #1a1a1a;
}
.sidebar-links {
  display: flex;
  flex-direction: column;
}
.sidebar-item {
  padding: 12px 20px;
  font-weight: 500;
  font-size: 0.95rem;
  color: #333333;
  transition: all 0.2s ease;
}
.sidebar-item:hover {
  background-color: #7b2cbf10; /* Subtle lavender highlight */
  color: #7b2cbf;
  padding-left: 25px;
}
.search-box{
    position:relative;
    display:flex;
    flex:1;
    max-width:550px;
    height:46px;
    border:2px solid #E91E63;
    border-radius:10px;
    overflow:hidden;
    background:#fff;
}

.search-box input{
    flex:1;
    border:none;
    outline:none;
    padding:0 18px;
    font-size:15px;
}

.search-box button{
    width:55px;
    border:none;
    background:#E91E63;
    color:white;
    cursor:pointer;
}

.search-results{

    position:absolute;

    top:100%;

    left:0;

    width:100%;

    background:white;

    border-radius:0 0 10px 10px;

    box-shadow:0 10px 30px rgba(0,0,0,.15);

    max-height:400px;

    overflow-y:auto;

    display:none;

    z-index:9999;

}

.search-item{

    display:flex;

    align-items:center;

    gap:15px;

    padding:12px;

    cursor:pointer;

}

.search-item:hover{

    background:#f8f8f8;

}

.search-item img{

    width:55px;

    height:55px;

    object-fit:cover;

    border-radius:6px;

}

/* --- 2. CENTER SLIDER STYLING --- */
/* HERO SLIDER */
.main-slider-viewport{
    position:relative;
    width:100%;
    height:380px;
    overflow:hidden;
    border-radius:6px;
}

.main-slider-track{
    display:flex;
    height:100%;
    transition:transform .5s ease-in-out;
}

.main-slide{
    flex:0 0 100%;
    height:100%;
}

.hero-img-asset{
    width:100%;
    height:100%;
    object-fit:fill;
    display:block;
}
.slider-indicators {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.ind-dot {
  width: 8px;
  height: 8px;
  background-color: rgba(0,0,0,0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}
.ind-dot.active {
  background-color: #7b2cbf; /* Colors matching active brand look */
  width: 20px;
  border-radius: 4px;
}

/* --- 3. RIGHT PROMO SIDEBAR STYLING --- */
.promo-aside-box {
  display: flex;
  flex-direction: column;
  padding: 12px;
}
.promo-box-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: #e61c24;
  margin-bottom: 10px;
  text-transform: uppercase;
  text-align: center;
}
.promo-products-vertical {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}
.mini-product-card {
  flex: 1;
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.badge-tag {
  position: absolute;
  top: 5px;
  left: 5px;
  background-color: #e61c24;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 2px;
}
.img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.img-wrap img {
  max-height: 110px;
  object-fit: contain;
}
.price-bar {
  display: flex;
  justify-content: space-between;
  width: 100%;
  background-color: #e61c24;
  color: white;
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 0.85rem;
}
.price-bar .old {
  text-decoration: line-through;
  opacity: 0.7;
  font-size: 0.75rem;
}
.price-bar .current {
  font-weight: 700;
}
/* ================================
   TABLET RESPONSIVENESS
================================ */

@media (max-width: 1024px) {

  .hero-wrapper-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .category-sidebar {
    order: 1;
    width: 100%;
    height: auto;
  }

  .main-slider-viewport {
    order: 2;
    width: 100%;
    height: 340px;
  }

  .sidebar-links {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
  }

}

/* ================================
   MOBILE RESPONSIVENESS
================================ */

@media (max-width: 768px) {

  .hero-wrapper-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  /* Categories */
  .category-sidebar {
    order: 1;
    display: block;
    width: 100%;
    height: auto;
    border: none;
    background: transparent;
  }

  .sidebar-title {
    display: none;
  }

  .sidebar-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    align-items: center;
  }

  .sidebar-links::-webkit-scrollbar {
    display: none;
  }

  .sidebar-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 8px 12px;
  }

  .sidebar-item:hover {
    background: #E91E63;
    color: #fff;
    border-color: #E91E63;
  }

  /* Promotional slider */
  .main-slider-viewport {
    order: 2;
    width: 100%;
    height: 230px;
  }

}
/* ============================================
   SHOP BY CATEGORY
   ============================================ *//* ==========================================================================
   DESKTOP MASTER DESIGNS (STANDARD 4-COLUMN DISPLAY GRID)
   ========================================================================== */
.category-section {
  background-color: #ffffff;
  padding: 30px 0;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 perfect columns side-by-side */
  gap: 20px;
  width: 100%;
}

.category-card {
  background-color: #f8f9fa;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
  border-color: #7b2cbf; /* Highlight with your purple theme */
}

.category-card-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background-color: #f0f0f0;
}

.category-placeholder img {
  width: 100%;
  height: 180px;
  object-fit: cover; /* Guarantees image aspect ratios never warp or compress */
}

.category-card-info {
  padding: 12px;
  text-align: center;
}

.category-card-info .name {
  font-weight: 700;
  font-size: 1rem;
  color: #1a1a1a;
  margin-bottom: 2px;
}

.category-card-info .sub {
  font-size: 0.8rem;
  color: #7b2cbf;
  font-weight: 600;
}

/* ==========================================================================
   MOBILE & SMARTPHONE OPTIMIZATION (THE ADAPTIVE SWIPE OVERRIDE)
   ========================================================================== */
@media (max-width: 600px) {
  
  /* Disable the grid structure and force a seamless horizontal row */
  .mobile-swipe-wrapper {
    display: flex;
    grid-template-columns: none; /* Safely break original layout structure grid rules */
    overflow-x: auto; /* Activates natural tactile phone thumb swiping mechanisms */
    scroll-behavior: smooth;
    white-space: nowrap;
    gap: 16px;
    padding: 10px 5px 15px 5px;
    
    /* Hide standard ugly default scrollbars across different web rendering browsers */
    scrollbar-width: none; /* Firefox browser */
  }
  
  .mobile-swipe-wrapper::-webkit-scrollbar {
    display: none; /* Safari and Chrome mobile browsers */
  }

  /* Transform squares into premium compact circles (Instagram Stories style layout) */
  .category-card {
    flex: 0 0 85px; /* Locked explicit width for every circle component */
    background: transparent;
    border: none;
    border-radius: 0;
    align-items: center;
    overflow: visible;
  }
  
  .category-card:hover {
    transform: none;
    box-shadow: none;
  }

  /* Construct the circular thumbnail frame borders */
  .category-card-img {
    width: 75px;
    height: 75px;
    border-radius: 50%; /* Force standard squares into clean absolute circles */
    border: 2px solid #7b2cbf; /* Premium active brand color ring wrapper */
    padding: 3px;
    background-color: #ffffff;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .category-placeholder, 
  .category-placeholder img {
    width: 100%;
    height: 100%;
    border-radius: 50%; /* Make internal image graphics wrap inside circle layout */
    object-fit: cover;
  }

  /* Restructure typography for compact labels */
  .category-card-info {
    padding: 6px 0 0 0;
    width: 100%;
  }

  .category-card-info .name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #333333;
    overflow: hidden;
    text-overflow: ellipsis; /* Keeps long labels from breaking lines on micro screens */
  }

  /* Hide the redundant extra 'Shop Now' helper texts on mobile displays to save space */
  .category-card-info .sub {
    display: none;
  }
}
/* ==========================================================================
   FILTER TABS (PRESERVED EXCELLENT ORIGINAL LOOK)
   ========================================================================== */
.filter-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 32px;
}
.filter-tab-btn {
  padding: 10px 20px;
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  background: none; border-radius: 0;
  cursor: pointer; transition: var(--transition);
}
.filter-tab-btn:hover { color: var(--primary); transform: none; }
.filter-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
/* ==========================================================
   PRODUCTS SLIDER
========================================================== */

.products-slider-wrapper{
    position:relative;
    width:100%;
    display:flex;
    align-items:center;
}

.products-slider{
    flex:1;
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
    gap:18px;
    transition:0.3s ease;
}

/* ==========================================================
   SLIDER BUTTONS
========================================================== */

.slider-btn{
    position:absolute;
    top:50%;
    transform:translateY(-50%);

    width:46px;
    height:46px;

    display:flex;
    align-items:center;
    justify-content:center;

    border:none;
    border-radius:50%;

    background:#fff;
    color:#444;

    font-size:22px;
    cursor:pointer;

    box-shadow:0 8px 20px rgba(0,0,0,.12);

    transition:.3s ease;
    z-index:10;
}

.slider-btn:hover{
    background:#E91E63;
    color:#fff;
    transform:translateY(-50%) scale(1.08);
}

.slider-btn.prev{
    left:-22px;
}

.slider-btn.next{
    right:-22px;
}

/* ==========================================================
   PRODUCT CARD
========================================================== */
.product-card{
    background:#fff;
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 10px 35px rgba(0,0,0,.08);
    transition:.35s ease;
    display:flex;
    flex-direction:column;
    border:none;
}

.product-card:hover{
    transform:translateY(-8px);
    box-shadow:0 22px 50px rgba(0,0,0,.15);
}

/* ==========================================================
   PRODUCT IMAGE
========================================================== */
.product-card-img{
    position:relative;
    aspect-ratio:4/5;
    overflow:hidden;
}

.product-card-img img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:.5s;
}

.product-card:hover img{
    transform:scale(1.06);
}

.product-card-placeholder{
    width:100%;
    height:100%;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:60px;

    background:linear-gradient(135deg,#f8f8f8,#f4f4f4);
}

/* ==========================================================
   BADGES
========================================================== */

.product-badge-wrap{
    position:absolute;
    top:12px;
    left:12px;

    display:flex;
    flex-direction:column;
    gap:6px;

    z-index:3;
}

.product-badge{
    padding:5px 10px;

    border-radius:20px;

    font-size:11px;
    font-weight:700;

    color:#fff;
}

.badge-new{
    background:#E91E63;
}

.badge-sale{
    background:#ff4d4f;
}

.badge-hot{
    background:#ff9800;
}

.badge-sold{
    background:#777;
}

/* ==========================================================
   QUICK ADD BUTTON
========================================================== */

.product-actions{
    display:flex;
    gap:10px;
}

.details-btn{
    flex:1;
    height:35px;
    width: 100px;
    display:flex;
    border-radius:12px;
    color:#E91E63;
    text-decoration:none;
    font-weight:600;
    transition:.3s;
    font-size: 15px;
}

.details-btn:hover{
    color: var(--primary); 
}

.quick-add-btn{
    flex:1;
    position:static;
    opacity:1;
    transform:none;
    height:35px;
    border:none;
    border-radius:12px;
    background:#E91E63;
    color:#fff;
    font-weight:700;
    cursor:pointer;
    transition:.3s;
}

.quick-add-btn:hover{
    background:#d81b60;
    transform:translateY(-2px);
}

/* ==========================================================
   PRODUCT INFO
========================================================== */


/* ---- Info section ---- */
.product-info {
  padding: 10px 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;                              /* ← Pushes info to fill remaining space */
}
.product-rating {
  display: flex; align-items: center; gap: 4px;
  font-size: 10px;
}
.product-rating .stars { color: #F59E0B; font-size: 11px; }
.product-rating .count { font-size: 10px; color: var(--text-muted); }
 
.product-name {
  font-size: 16px; font-weight: 700;
  line-height: 1.3; color: var(--text);
  /* Clamp to 2 lines max — no overflow */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-name a {
  color: inherit; text-decoration: none;
}
.product-name a:hover { color: var(--primary); }

.product-price-row{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:20px;
}

.product-price{
    font-size:18px;
    font-weight:800;
    color:#E91E63;
    white-space:nowrap;
}

.product-price-old{
    color:#999;
    text-decoration:line-through;
    white-space:nowrap;
}
.product-card:hover .quick-add-btn{
    opacity:1;
    transform:translateY(0);
}



/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width:1200px){

    .products-slider{
        grid-template-columns:repeat(4,1fr);
    }

}

@media (max-width:992px){

    .products-slider{
        grid-template-columns:repeat(3,1fr);
    }

}

@media (max-width:768px){

    .products-slider{
        grid-template-columns:repeat(2,1fr);
        gap:14px;
    }

    .slider-btn{
        display:none;
    }

    .product-info{
        padding:14px;
    }

}

@media (max-width:480px){

    .products-slider{
        grid-template-columns:repeat(2,minmax(150px,1fr));
        gap:10px;
    }

    .product-name{
        font-size:14px;
        height:40px;
    }

    .product-price{
        font-size:17px;
    }

    .product-price-old{
        font-size:12px;
    }

}

/* ==========================================================================
   BULLETPROOF SMARTPHONE RESPONSIVE OVERRIDE ENGINE (Screens Under 650px)
   ========================================================================== */
@media (max-width: 650px) {
  
  /* 1. Prevent Category Filter tabs from squeezing or stacking */
  .filter-tabs {
    overflow-x: auto; /* Side-swipe filter categories natively */
    white-space: nowrap;
    gap: 8px;
    padding-bottom: 6px;
    margin-bottom: 20px;
    scrollbar-width: none; /* Hide Firefox scroll tracker bar */
  }
  .filter-tabs::-webkit-scrollbar {
    display: none; /* Hide Safari and Chrome mobile scroll bar */
  }
  .filter-tab-btn {
    padding: 8px 14px;
    font-size: 11px;
    flex-shrink: 0;
  }

  /* 2. Fix the grid container to act as a sleek horizontal swipe track */
  .products-slider {
    display: flex !important; /* Temporarily drop rigid grid constraints safely */
    grid-template-columns: none !important;
    overflow-x: auto !important; /* Enable smooth swipe actions for thumbs */
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding: 10px 4px;
    scrollbar-width: none;
  }
  .products-slider::-webkit-scrollbar {
    display: none;
  }

  /* 3. Hide desktop slider tracking arrows from mobile touch profiles */
  .slider-btn {
    display: none !important;
  }

  /* 4. Enforce ideal, fixed responsive dimensions onto product cards */
  .products-slider .product-card {
    flex: 0 0 165px !important; /* Lock crisp, readable mobile card sizing sizes */
    max-width: 165px !important;
    overflow: hidden;
  }

  /* 5. Mobile-optimizing desktop 'hover' styles for tactile touchscreen interactions */
  .wishlist-btn {
    opacity: 1 !important; /* Force visibility so phone users can save items */
    width: 30px;
    height: 30px;
    font-size: 13px;
    top: 8px;
    right: 8px;
  }

  /* 6. Modify the Quick-Add slide panel to act as a sleek baseline footer bar */
  .quick-add-btn {
    transform: translateY(0) !important; /* Lock into persistent view */
    position: relative; /* Anchor below product metadata descriptions */
    padding: 10px;
    font-size: 11px;
    border-radius: var(--radius-sm);
    margin-top: 8px;
  }

  .product-info {
    padding: 8px 4px;
  }

  .product-name {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Keeps long titles clean without pushing text rows down */
  }
}


/* ============================================
   SHOP PAGE
   ============================================ */
.shop-page-hero {
  background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(255,77,141,0.06));
  border-bottom: 1px solid var(--border);
  padding: 40px 0 32px;
}
.shop-page-hero h1 {
  font-size: 32px; font-weight: 900;
  text-transform: uppercase; letter-spacing: 1px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); margin-top: 8px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--border); }
.breadcrumb .current { color: var(--primary); font-weight: 600; }

.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 40px 0; }

/* Sidebar */
.shop-sidebar { position: sticky; top: calc(var(--nav-height) + 20px); height: fit-content; }
.sidebar-section { margin-bottom: 28px; }
.sidebar-title {
  font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--text); margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid;
  border-image: var(--gradient-main) 1;
}

.filter-option { display: flex; align-items: center; gap: 10px; padding: 7px 0; cursor: pointer; }
.filter-option input[type="radio"],
.filter-option input[type="checkbox"] { accent-color: var(--primary); width: 14px; height: 14px; cursor: pointer; }
.filter-option label { font-size: 13px; color: var(--text); cursor: pointer; flex: 1; }
.filter-option .filter-count { font-size: 11px; color: var(--text-muted); }
.filter-option:hover label { color: var(--primary); font-weight: 600; }

.price-range-inputs { display: flex; gap: 8px; margin-top: 12px; }
.price-input {
  flex: 1; padding: 9px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px; text-align: center;
  transition: var(--transition);
}
.price-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,58,237,0.1); }

.color-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.color-swatch {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}
.color-swatch.active, .color-swatch:hover {
  border-color: var(--primary);
  transform: scale(1.15);
  box-shadow: var(--shadow-md);
}

.size-options { display: flex; flex-wrap: wrap; gap: 8px; }
.size-option {
  padding: 6px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  background: var(--surface);
}
.size-option:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.size-option.active {
  background: var(--gradient-main);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.clear-filters {
  font-size: 13px; color: var(--secondary);
  text-decoration: underline; cursor: pointer;
  margin-top: 20px; display: inline-block;
  font-weight: 600;
}
.clear-filters:hover { color: var(--primary); }

/* Shop toolbar */
.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap; gap: 12px;
}
.shop-results { font-size: 13px; color: var(--text-muted); }
.shop-results span { color: var(--primary); font-weight: 700; }

.shop-sort {
  padding: 9px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
  background: var(--surface);
  cursor: pointer;
  transition: var(--transition);
  min-width: 160px;
}
.shop-sort:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,58,237,0.1); }

.shop-products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 40px; }
.page-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  background: var(--surface);
  color: var(--text);
}
.page-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}
.page-btn.active {
  background: var(--gradient-main);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-md);
}
.page-btn.dots { background: none; border: none; cursor: default; transform: none; }

/* ==========================================================================
   PRODUCT DETAIL PAGE (PRESERVED EXCELLENT ORIGINAL LOOK)
   ========================================================================== */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 40px 0 60px;
  align-items: start;
}

.product-images { display: grid; grid-template-columns: 72px 1fr; gap: 12px; }
.product-thumbs { display: flex; flex-direction: column; gap: 8px; }
.product-thumb {
  width: 72px; height: 80px;
  border: 2px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  border-radius: var(--radius-sm);
  background: var(--light-gray);
  transition: var(--transition);
  flex-shrink: 0;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb:hover { border-color: var(--primary); transform: scale(1.04); }
.product-thumb.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}
.product-main-image {
  aspect-ratio: 3/4;
  background: var(--light-gray);
  overflow: hidden;
  border-radius: var(--radius-lg);
  position: relative;
}
.product-main-image img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.2s; }
.product-main-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
  background: linear-gradient(135deg, #f1f0ff, #fdf2f8);
}

/* Product info */
.product-detail-info { padding-top: 8px; }
.product-detail-breadcrumb { margin-bottom: 16px; }
.product-detail-name { font-size: 28px; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.product-detail-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13px; }
.product-detail-rating .stars { color: #FBBF24; font-size: 14px; }
.product-detail-price {
  font-size: 26px; font-weight: 900; margin-bottom: 4px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.product-detail-price .old-price {
  font-size: 16px;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 400;
  -webkit-text-fill-color: var(--text-muted);
  margin-left: 10px;
}
.product-detail-desc { font-size: 14px; color: var(--text-light); line-height: 1.7; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }

.option-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; color: var(--text); }
.option-label span { font-weight: 400; color: var(--text-muted); text-transform: none; letter-spacing: 0; }

.detail-size-options { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.detail-size-btn {
  width: 46px; height: 46px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 700;
  cursor: pointer; transition: var(--transition);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
}
.detail-size-btn:hover { border-color: var(--primary); color: var(--primary); transform: scale(1.05); }
.detail-size-btn.active {
  background: var(--gradient-main);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-md);
}
.detail-size-btn.sold-out { opacity: 0.35; text-decoration: line-through; cursor: not-allowed; }

.detail-colors { display: flex; gap: 10px; margin-bottom: 20px; }
.detail-color-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer; transition: var(--transition);
}
.detail-color-btn.active, .detail-color-btn:hover {
  border-color: var(--primary);
  transform: scale(1.12);
  box-shadow: var(--shadow-md);
}

/* Quantity */
.qty-row  { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.qty-control {
  display: flex; align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.qty-btn {
  width: 42px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 300;
  cursor: pointer; background: none; border: none;
  color: var(--text); transition: var(--transition);
}
.qty-btn:hover { background: rgba(124,58,237,0.08); color: var(--primary); transform: none; }
.qty-input {
  width: 50px; height: 44px;
  text-align: center; border: none;
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  font-size: 14px; font-weight: 700; color: var(--text);
}
.qty-stock-note { font-size: 12px; color: var(--error); font-weight: 600; }

.product-cta      { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.product-cta-full { margin-bottom: 20px; }

/* Delivery info */
.delivery-info { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; margin-top: 20px; background: linear-gradient(135deg, rgba(124,58,237,0.03), rgba(255,77,141,0.03)); }
.delivery-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 13px; border-bottom: 1px solid var(--border); }
.delivery-item:last-child { border-bottom: none; }
.delivery-item .icon { font-size: 16px; }
.delivery-item .text { color: var(--text-light); }

/* Product tabs */
.product-tabs-section { padding: 0 0 5rem; }
.tabs-nav { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.tab-btn {
  padding: 12px 24px; font-size: 14px; font-weight: 700;
  color: var(--text-muted); background: none; border: none;
  cursor: pointer; position: relative; transition: var(--transition);
}
.tab-btn::after {
  content: ''; position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-main);
  transform: scaleX(0); transition: transform 0.3s ease;
  border-radius: 2px;
}
.tab-btn.active, .tab-btn:hover { color: var(--primary); transform: none; }
.tab-btn.active::after { transform: scaleX(1); }
.tab-content        { display: none; animation: fadeUp 0.3s ease; }
.tab-content.active { display: block; }

@keyframes fadeUp { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }

/* ==========================================================================
   UNBREAKABLE MOBILE PHONE DETAILS ENGINE (Screens 600px and under)
   ========================================================================== */
@media (max-width: 600px) {

  /* 1. Dissolve 50/50 split layout grid, stack elements linearly */
  .product-detail-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 15px 0 85px; /* Added bottom padding so content doesn't get cut off by the sticky footer */
  }

  /* 2. Re-arrange thumbnails grid to fit a row setup above or below */
  .product-images {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  /* 3. SHRINK PRODUCT MAIN IMAGE CONTAINER FOR A CLEAN SQUARE LOOK */
  .product-main-image {
    aspect-ratio: 1 / 1 !important;  /* Converts tall 3/4 layout into a perfect square */
    height: 280px !important;        /* Locks a small, balanced layout window on touchscreens */
    width: 100% !important;
  }
  
  .product-main-image img {
    object-fit: cover !important;
  }

  .product-main-placeholder {
    font-size: 3rem !important; /* Prevents icons from spilling over smaller container frames */
  }

  /* 4. Flip vertical thumbnails into a neat horizontal scrolling track */
  .product-thumbs {
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 8px;
    padding-bottom: 2px;
  }
  .product-thumbs::-webkit-scrollbar { display: none; }
  
  .product-thumb {
    width: 55px !important;
    height: 55px !important; /* Scaled down thumbnail sizes */
  }

  /* 5. Compact the informational headers text scale sizes */
  .product-detail-info {
    padding-top: 0;
  }

  .product-detail-name {
    font-size: 1.4rem !important; /* Cleaner headline text size for mobile profiles */
    line-height: 1.3;
  }

  .product-detail-price {
    font-size: 1.5rem !important;
  }

  .product-detail-price .old-price {
    font-size: 13px !important;
  }

  .product-detail-desc {
    font-size: 13px !important;
    margin-bottom: 16px;
    padding-bottom: 16px;
  }

  /* 6. Make sizes and selection buttons highly compact for thumbs */
  .detail-size-btn {
    width: 40px !important;
    height: 40px !important;
    font-size: 11px !important;
  }

  .detail-color-btn {
    width: 24px !important;
    height: 24px !important;
  }

  /* 7. PIN BUY BUTTON GROUPS SECURELY TO MOBILE SCREEN BASELINE */
  .product-cta {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background-color: var(--surface, #ffffff) !important;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.08) !important;
    padding: 10px 15px !important;
    margin-bottom: 0 !important;
    gap: 8px !important;
    z-index: 9999;
    box-sizing: border-box;
  }

  /* Clean overrides stripping away desktop scaling shifts */
  .product-cta button,
  .product-cta a {
    padding: 12px !important;
    font-size: 11px !important;
    height: auto !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transform: none !important;
  }

  /* 8. Tidy tabs layout headers track from collapsing messy */
  .tab-btn {
    padding: 10px 14px !important;
    font-size: 12px !important;
  }
}

/* ============================================
   CART PAGE
   ============================================ */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; padding: 40px 0 60px; align-items: start; }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  padding: 12px 0; font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
  text-align: left;
}
.cart-table th:not(:first-child) { text-align: center; }
.cart-table td { padding: 20px 0; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-table td:not(:first-child) { text-align: center; }

.cart-product { display: flex; align-items: center; gap: 16px; }
.cart-product-img {
  width: 80px; height: 90px;
  border-radius: var(--radius-md);
  background: var(--light-gray);
  overflow: hidden; flex-shrink: 0;
}
.cart-product-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-product-info .name    { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.cart-product-info .variant { font-size: 12px; color: var(--text-muted); }

.cart-remove { font-size: 18px; color: var(--text-muted); cursor: pointer; background: none; border: none; transition: var(--transition); }
.cart-remove:hover { color: var(--error); transform: scale(1.15); }

.cart-qty-control { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.cart-qty-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer; background: none; border: none;
  transition: var(--transition); color: var(--text);
}
.cart-qty-btn:hover { background: rgba(124,58,237,0.08); color: var(--primary); transform: none; }
.cart-qty-num {
  width: 36px; height: 32px;
  text-align: center;
  border: none;
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.cart-price       { font-size: 14px; font-weight: 700; color: var(--text); }
.cart-total-price { font-size: 14px; font-weight: 800; color: var(--primary); }

/* Coupon */
.cart-coupon { display: flex; gap: 0; margin-top: 24px; max-width: 320px; }
.coupon-input {
  flex: 1; padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  font-size: 13px; transition: var(--transition);
}
.coupon-input:focus { border-color: var(--primary); }
.coupon-btn {
  padding: 11px 20px;
  background: var(--gradient-main);
  color: white;
  font-size: 13px; font-weight: 700;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  cursor: pointer; border: none;
  transition: var(--transition);
}
.coupon-btn:hover { opacity: 0.9; transform: none; }

/* Cart summary */
.cart-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky; top: calc(var(--nav-height) + 20px);
  box-shadow: var(--shadow-sm);
}
.cart-summary h3 {
  font-size: 15px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 2px solid;
  border-image: var(--gradient-main) 1;
}
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.summary-row .label { color: var(--text-light); }
.summary-row .value { font-weight: 600; color: var(--text); }
.summary-total {
  display: flex; justify-content: space-between;
  padding: 14px 0 0;
  border-top: 2px solid var(--border);
  margin-top: 8px;
  font-size: 16px; font-weight: 800;
}
.summary-total span:last-child {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.deposit-note {
  background: linear-gradient(135deg, rgba(124,58,237,0.05), rgba(255,77,141,0.05));
  border: 1px solid rgba(124,58,237,0.15);
  border-radius: var(--radius-md);
  padding: 14px; margin: 16px 0;
  font-size: 13px;
}
.deposit-note .title { font-weight: 800; margin-bottom: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--primary); }
.deposit-row { display: flex; justify-content: space-between; padding: 3px 0; color: var(--text-light); }
.deposit-row .val { font-weight: 700; color: var(--primary); }

.cart-empty-state { text-align: center; padding: 80px 20px; }
.cart-empty-icon  { font-size: 4rem; margin-bottom: 16px; }
.cart-empty-state h3 { font-size: 20px; margin-bottom: 8px; color: var(--text); }
.cart-empty-state p  { color: var(--text-muted); margin-bottom: 24px; font-size: 14px; }

/* ============================================
   CHECKOUT PAGE
   ============================================ */
.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 32px; padding: 40px 0 60px; align-items: start; }
.checkout-section-title {
  font-size: 15px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 2px solid;
  border-image: var(--gradient-main) 1;
}

/* Forms */
.form-group   { margin-bottom: 16px; }
.form-label   { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text); margin-bottom: 6px; }
.form-input {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px; color: var(--text);
  background: var(--surface);
  transition: var(--transition);
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
  outline: none;
}
.form-input::placeholder { color: var(--text-muted); }
textarea.form-input { resize: vertical; min-height: 100px; }
.form-row    { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-select {
  width: 100%; padding: 12px 36px 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px; background: var(--surface);
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237C3AED' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: var(--transition);
}
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
  outline: none;
}

/* Payment methods */
.payment-methods { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.payment-option {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer; transition: var(--transition);
}
.payment-option:hover { border-color: var(--primary); background: rgba(124,58,237,0.03); transform: none; }
.payment-option.active {
  border-color: var(--primary);
  background: rgba(124,58,237,0.05);
  box-shadow: 0 0 0 1px var(--primary);
}
.payment-option input[type="radio"] { accent-color: var(--primary); margin-top: 2px; width: 14px; height: 14px; flex-shrink: 0; }
.payment-option-info .name { font-size: 14px; font-weight: 700; color: var(--text); }
.payment-option-info .desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.mpesa-box {
  background: linear-gradient(135deg, rgba(124,58,237,0.05), rgba(255,77,141,0.05));
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: var(--radius-md);
  padding: 16px; margin-top: 10px;
  font-size: 13px;
}
.mpesa-box .number { font-size: 20px; font-weight: 900; color: var(--primary); letter-spacing: 2px; margin: 6px 0; }

/* Order summary */
.order-summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky; top: calc(var(--nav-height) + 20px);
  box-shadow: var(--shadow-sm);
}
.order-summary-header {
  padding: 16px 20px;
  background: var(--gradient-main);
}
.order-summary-header h3 { color: white; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.order-summary-body { padding: 20px; }
.order-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.order-item:last-of-type { border-bottom: none; margin-bottom: 12px; }
.order-item-img { width: 52px; height: 60px; border-radius: var(--radius-sm); overflow: hidden; background: var(--light-gray); flex-shrink: 0; }
.order-item-img img { width: 100%; height: 100%; object-fit: cover; }
.order-item-info { flex: 1; }
.order-item-info .name    { font-size: 13px; font-weight: 600; margin-bottom: 2px; color: var(--text); }
.order-item-info .variant { font-size: 11px; color: var(--text-muted); }
.order-item-price { font-size: 13px; font-weight: 800; color: var(--primary); }
.order-totals { border-top: 1px solid var(--border); padding-top: 14px; }
.order-total-row { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; }
.order-total-row .label { color: var(--text-light); }
.order-total-row.total {
  font-size: 15px; font-weight: 800;
  border-top: 2px solid var(--border);
  margin-top: 8px; padding-top: 12px;
}
.order-total-row.total span:last-child {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-brand {
  background: var(--gradient-hero);
  padding: 60px;
  display: flex; flex-direction: column;
  justify-content: center; gap: 40px;
  position: relative; overflow: hidden;
}
.auth-brand::before {
  content: ''; position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: rgba(255,255,255,0.06); border-radius: 50%;
}
.auth-brand::after {
  content: ''; position: absolute;
  bottom: -80px; left: -80px;
  width: 300px; height: 300px;
  background: rgba(56,189,248,0.08); border-radius: 50%;
}
.auth-brand-logo {
  font-family: var(--font-serif);
  font-size: 32px; font-weight: 900;
  color: white; z-index: 2;
}
.auth-brand h2   { font-size: 38px; font-weight: 900; color: white; line-height: 1.1; z-index: 2; }
.auth-brand p    { font-size: 15px; color: rgba(255,255,255,0.75); line-height: 1.7; max-width: 360px; z-index: 2; }
.auth-brand-features { display: flex; flex-direction: column; gap: 14px; z-index: 2; }
.auth-brand-feature  { display: flex; align-items: center; gap: 12px; }
.auth-brand-feature .icon { width: 36px; height: 36px; background: rgba(255,255,255,0.15); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.auth-brand-feature .text { font-size: 14px; color: rgba(255,255,255,0.8); }

.auth-form-side { padding: 60px; display: flex; flex-direction: column; justify-content: center; max-width: 480px; width: 100%; margin: 0 auto; }
.auth-form-side h3 { font-size: 28px; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.auth-form-side > p { font-size: 14px; color: var(--text-muted); margin-bottom: 32px; }
.auth-or { display: flex; align-items: center; gap: 16px; margin: 20px 0; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-or span { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.auth-link { text-align: center; font-size: 14px; color: var(--text-muted); margin-top: 20px; }
.auth-link a { color: var(--primary); font-weight: 700; }
.auth-back { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 16px; }
.auth-back a { color: var(--text-muted); text-decoration: underline; }
.password-wrap { position: relative; }
.password-toggle-btn { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); background: none; border: none; font-size: 16px; cursor: pointer; color: var(--text-muted); transition: var(--transition); }
.password-toggle-btn:hover { color: var(--primary); transform: translateY(-50%) scale(1.1); }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-layout  { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; padding: 60px 0; align-items: start; }
.contact-info h2 { font-size: 32px; font-weight: 900; margin-bottom: 12px; color: var(--text); }
.contact-info p  { font-size: 14px; color: var(--text-light); line-height: 1.7; margin-bottom: 32px; }
.contact-detail  { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.contact-detail:last-of-type { border-bottom: none; }
.contact-detail-icon { width: 42px; height: 42px; background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(255,77,141,0.1)); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.contact-detail-text .label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 3px; }
.contact-detail-text .value { font-size: 14px; font-weight: 600; color: var(--text); }
.contact-social { display: flex; gap: 10px; margin-top: 24px; }
.contact-social-link { width: 40px; height: 40px; background: var(--gradient-main); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 18px; color: white; transition: var(--transition); }
.contact-social-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.contact-form-card { background: var(--surface); padding: 32px; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.contact-form-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 4px; color: var(--text); }
.contact-form-card > p { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-hero { background: var(--gradient-hero); padding: 80px 0; text-align: center; position: relative; overflow: hidden; }
.about-hero h1 { font-size: 56px; font-weight: 900; color: white; text-transform: uppercase; }
.about-hero p  { font-size: 16px; color: rgba(255,255,255,0.75); max-width: 500px; margin: 16px auto 0; line-height: 1.7; }
.about-layout  { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding: 80px 0; }
.about-images  { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about-img-main  { grid-column: 1/-1; aspect-ratio: 16/9; background: var(--light-gray); border-radius: var(--radius-lg); overflow: hidden; }
.about-img-small { aspect-ratio: 1; background: var(--light-gray); border-radius: var(--radius-lg); overflow: hidden; }
.about-text h2  { font-size: 36px; font-weight: 900; margin-bottom: 16px; color: var(--text); }
.about-text p   { font-size: 14px; color: var(--text-light); line-height: 1.8; margin-bottom: 16px; }
.about-stats    { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.about-stat     { text-align: center; padding: 20px; background: linear-gradient(135deg, rgba(124,58,237,0.06), rgba(255,77,141,0.06)); border-radius: var(--radius-md); border: 1px solid rgba(124,58,237,0.1); }
.about-stat .num { font-size: 28px; font-weight: 900; background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.about-stat .label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* ============================================
   TRUST BAR
   ============================================ */
.trust-bar {
  background: linear-gradient(135deg, rgba(124,58,237,0.04), rgba(255,77,141,0.04));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust-item { display: flex; align-items: center; gap: 14px; }
.trust-icon { font-size: 28px; flex-shrink: 0; }
.trust-text .title { font-size: 13px; font-weight: 700; color: var(--text); }
.trust-text .desc  { font-size: 12px; color: var(--text-muted); }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--text); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand-logo {
  font-family: var(--font-serif);
  font-size: 24px; font-weight: 900;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
}
.footer-brand p    { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.7; max-width: 240px; margin-bottom: 20px; }
.footer-social { display: flex; gap: 8px; }
.footer-social-link { width: 36px; height: 36px; background: rgba(255,255,255,0.06); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 16px; color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer-social-link:hover { background: var(--gradient-main); color: white; transform: translateY(-3px); box-shadow: var(--shadow-md); }
.footer-col h5 { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,0.3); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.5); transition: var(--transition); }
.footer-links a:hover { color: white; padding-left: 4px; }
.footer-bottom { padding: 20px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.2); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 12px; color: rgba(255,255,255,0.2); transition: var(--transition); }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.6); }

/* ============================================
   ADMIN DASHBOARD
   ============================================ */
.admin-layout { display: flex; min-height: 100vh; background: var(--bg); }

.admin-sidebar { width: 250px; background: var(--text); display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; z-index: 200; transition: transform 0.3s ease; }
.admin-sidebar-header { padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.admin-sidebar-logo {
  font-family: var(--font-serif); font-size: 20px; font-weight: 900;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.admin-sidebar-logo small { display: block; font-family: var(--font); font-size: 10px; font-weight: 400; color: rgba(255,255,255,0.3); letter-spacing: 2px; text-transform: uppercase; margin-top: 2px; -webkit-text-fill-color: rgba(255,255,255,0.3); }

.admin-user-info { padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; gap: 12px; }
.admin-avatar { width: 38px; height: 38px; background: var(--gradient-main); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: white; flex-shrink: 0; }
.admin-user-name { font-size: 13px; font-weight: 700; color: white; }
.admin-user-role { font-size: 11px; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 1px; }

.admin-nav { flex: 1; padding: 12px 0; overflow-y: auto; }
.admin-nav-section { padding: 12px 20px 4px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,0.2); }
.admin-nav-link { display: flex; align-items: center; gap: 10px; padding: 10px 20px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.5); transition: var(--transition); border-left: 3px solid transparent; text-decoration: none; cursor: pointer; background: none; width: 100%; text-align: left; }
.admin-nav-link:hover, .admin-nav-link.active { color: white; background: rgba(255,255,255,0.05); border-left-color: var(--secondary); transform: none; }
.admin-nav-link .nav-icon { font-size: 16px; width: 20px; text-align: center; }
.admin-sidebar-footer { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.08); }

.admin-main    { flex: 1; margin-left: 250px; min-height: 100vh; }
.admin-topbar  { background: var(--surface); border-bottom: 1px solid var(--border); padding: 0 28px; height: 64px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm); }
.admin-topbar-title h4 { font-size: 16px; font-weight: 800; color: var(--text); }
.admin-topbar-title p  { font-size: 12px; color: var(--text-muted); }
.admin-topbar-right { display: flex; align-items: center; gap: 12px; }
.admin-content { padding: 28px; }

/* Admin stats */
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 28px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; transition: var(--transition); position: relative; overflow: hidden; }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient-main); }
.stat-card:nth-child(2)::before { background: var(--gradient-alt); }
.stat-card:nth-child(3)::before { background: var(--gradient-warm); }
.stat-card:nth-child(4)::before { background: linear-gradient(135deg, var(--success), var(--accent)); }
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.stat-card-icon { width: 44px; height: 44px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.stat-card-icon.black  { background: var(--gradient-main); color: white; }
.stat-card-icon.light  { background: rgba(124,58,237,0.1); }
.stat-card-icon.accent { background: rgba(56,189,248,0.15); }
.stat-change { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: var(--radius-full); }
.stat-change.up   { background: rgba(34,197,94,0.1);  color: var(--success); }
.stat-change.down { background: rgba(239,68,68,0.1);   color: var(--error); }
.stat-card .num   { font-size: 28px; font-weight: 900; line-height: 1; margin-bottom: 4px; color: var(--text); }
.stat-card .label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* Admin cards */
.admin-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.admin-card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; background: var(--bg); }
.admin-card-header h4 { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text); }
.admin-card-body { padding: 20px; }

/* Admin table */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { padding: 12px 16px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); background: var(--bg); border-bottom: 2px solid var(--border); text-align: left; white-space: nowrap; }
.admin-table td { padding: 14px 16px; font-size: 13px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text); }
.admin-table tbody tr:hover { background: rgba(124,58,237,0.03); }
.admin-table tbody tr:last-child td { border-bottom: none; }

/* Status badges */
.status-badge { display: inline-block; padding: 3px 10px; border-radius: var(--radius-full); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.status-badge.pending   { background: rgba(245,158,11,0.12);  color: #92400e; }
.status-badge.confirmed { background: rgba(56,189,248,0.12);  color: #0369a1; }
.status-badge.shipped   { background: rgba(124,58,237,0.12);  color: var(--primary); }
.status-badge.delivered { background: rgba(34,197,94,0.12);   color: #15803d; }
.status-badge.cancelled { background: rgba(239,68,68,0.12);   color: var(--error); }
.status-badge.paid      { background: rgba(34,197,94,0.12);   color: #15803d; }
.status-badge.unpaid    { background: rgba(239,68,68,0.12);   color: var(--error); }
.status-badge.partial   { background: rgba(245,158,11,0.12);  color: #92400e; }
.status-badge.active    { background: rgba(34,197,94,0.12);   color: #15803d; }
.status-badge.inactive  { background: rgba(239,68,68,0.12);   color: var(--error); }

/* Admin form */
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Image upload */
.image-upload-area { border: 2px dashed var(--border); border-radius: var(--radius-lg); padding: 40px; text-align: center; cursor: pointer; transition: var(--transition); }
.image-upload-area:hover { border-color: var(--primary); background: rgba(124,58,237,0.03); }
.image-upload-icon { font-size: 2.5rem; margin-bottom: 8px; }
.image-upload-text { font-size: 13px; color: var(--text-muted); }
.image-preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.image-preview-item { aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; position: relative; background: var(--light-gray); }
.image-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.image-remove-btn { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; background: var(--error); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; cursor: pointer; border: none; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 9000; padding: 20px; opacity: 0; visibility: hidden; transition: var(--transition); backdrop-filter: blur(4px); }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal { background: var(--surface); border-radius: var(--radius-xl); padding: 28px; width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; transform: scale(0.95); transition: var(--transition); box-shadow: var(--shadow-xl); }
.modal-overlay.active .modal { transform: scale(1); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid; border-image: var(--gradient-main) 1; }
.modal-header h3 { font-size: 18px; font-weight: 800; color: var(--text); }
.modal-close { width: 32px; height: 32px; background: var(--bg); border: none; border-radius: var(--radius-sm); cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; transition: var(--transition); color: var(--text-light); }
.modal-close:hover { background: var(--border); color: var(--text); transform: rotate(90deg); }

/* ============================================
   ALERTS & TOASTS
   ============================================ */
.alert { padding: 12px 16px; border-radius: var(--radius-md); font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.alert-success { background: rgba(34,197,94,0.08);  border-left: 3px solid var(--success); color: #15803d; }
.alert-error   { background: rgba(239,68,68,0.08);  border-left: 3px solid var(--error);   color: #b91c1c; }
.alert-warning { background: rgba(245,158,11,0.1);  border-left: 3px solid var(--warning); color: #92400e; }
.alert-info    { background: rgba(56,189,248,0.08); border-left: 3px solid var(--accent);  color: #0369a1; }

.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--text);
  color: white;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  font-size: 13px; font-weight: 500;
  min-width: 280px; max-width: 360px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.3s ease;
  border-left: 3px solid var(--primary);
}
.toast.success { border-left-color: var(--success); }
.toast.error   { border-left-color: var(--error); }
.toast.warning { border-left-color: var(--warning); }
.toast.info    { border-left-color: var(--accent); }
.toast.removing { animation: slideDown 0.3s ease forwards; }
@keyframes slideUp   { from{transform:translateY(20px);opacity:0} to{transform:translateY(0);opacity:1} }
@keyframes slideDown { from{transform:translateY(0);opacity:1} to{transform:translateY(20px);opacity:0} }

/* ============================================
   SPINNER / LOADING / EMPTY STATES
   ============================================ */
.spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.7s linear infinite; margin: 40px auto; }
.loading-state { text-align: center; padding: 60px 20px; }
.loading-state p { font-size: 13px; color: var(--text-muted); margin-top: 12px; }
.empty-state { text-align: center; padding: 80px 20px; }
.empty-state-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.empty-state p  { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
  position: fixed; bottom: 20px; left: 20px;
  width: 40px; height: 40px;
  background: var(--gradient-main);
  color: white;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer; border: none;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 990;
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover   { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ============================================
   MISC UTILITIES
   ============================================ */
.divider   { height: 1px; background: var(--border); margin: 24px 0; }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.mt-1{margin-top:8px} .mt-2{margin-top:16px} .mt-3{margin-top:24px} .mt-4{margin-top:32px}
.mb-1{margin-bottom:8px} .mb-2{margin-bottom:16px} .mb-3{margin-bottom:24px}
.flex{display:flex} .flex-center{display:flex;align-items:center;justify-content:center}
.gap-1{gap:8px} .gap-2{gap:16px} .gap-3{gap:24px}
.hidden{display:none !important}

/* ============================================
   RESPONSIVE — TABLET (max 1024px)
   ============================================ */
@media (max-width:1024px) {
  .hero-inner            { grid-template-columns:1fr; }
  .hero-image            { display:none; }
  .hero-text             { padding:60px 0; }
  .categories-grid       { grid-template-columns:repeat(2,1fr); }
  .footer-grid           { grid-template-columns:1fr 1fr; gap:32px; }
  .products-slider       { grid-template-columns:repeat(3,1fr); }
  .shop-layout           { grid-template-columns:220px 1fr; gap:24px; }
  .shop-products-grid    { grid-template-columns:repeat(2,1fr); }
  .product-detail-layout { grid-template-columns:1fr; gap:32px; }
  .product-images        { grid-template-columns:60px 1fr; }
  .checkout-layout       { grid-template-columns:1fr 360px; }
  .cart-layout           { grid-template-columns:1fr 320px; }
  .admin-stats           { grid-template-columns:repeat(2,1fr); }
  .trust-grid            { grid-template-columns:repeat(2,1fr); }
  .hero-features         { grid-template-columns:repeat(2,1fr); }
}

/* ============================================
   RESPONSIVE — MOBILE (max 768px)
   ============================================ */
@media (max-width:768px) {
  :root { --nav-height:60px; }
  .nav-links { display:none; }
  .hamburger { display:flex; }
  .hero-text h1 { font-size:clamp(36px,10vw,52px); }
  .hero-text    { padding:48px 0 100px; }
  .hero-features { grid-template-columns:repeat(2,1fr); }
  .products-slider { grid-template-columns:repeat(2,1fr); gap:12px; }
  .categories-grid { grid-template-columns:repeat(2,1fr); gap:12px; }
  .slider-btn { display:none; }
  .shop-layout { grid-template-columns:1fr; }
  .shop-sidebar { display:none; }
  .shop-products-grid { grid-template-columns:repeat(2,1fr); gap:12px; }
  .product-images { grid-template-columns:1fr; }
  .product-thumbs { flex-direction:row; }
  .product-thumb  { width:60px; height:68px; }
  .product-cta    { grid-template-columns:1fr; }
  .cart-layout    { grid-template-columns:1fr; }
  .cart-table thead { display:none; }
  .cart-table td  { display:block; padding:6px 0; border:none; text-align:left !important; }
  .cart-table tr  { border-bottom:1px solid var(--border); padding:16px 0; display:block; }
  .checkout-layout { grid-template-columns:1fr; }
  .auth-page { grid-template-columns:1fr; }
  .auth-brand { display:none; }
  .auth-form-side { padding:40px 24px; max-width:100%; }
  .contact-layout { grid-template-columns:1fr; gap:32px; }
  .about-layout   { grid-template-columns:1fr; gap:40px; }
  .about-hero h1  { font-size:36px; }
  .admin-sidebar  { transform:translateX(-100%); }
  .admin-sidebar.open { transform:translateX(0); }
  .admin-main     { margin-left:0; }
  .admin-stats    { grid-template-columns:repeat(2,1fr); }
  .footer-grid    { grid-template-columns:1fr; }
  .trust-grid     { grid-template-columns:1fr 1fr; }
  .footer-bottom  { flex-direction:column; align-items:flex-start; }
  .form-row       { grid-template-columns:1fr; }
  .admin-form-grid { grid-template-columns:1fr; }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (max 480px)
   ============================================ */
@media (max-width:480px) {
  .container           { padding:0 16px; }
  .section             { padding:40px 0; }
  .products-slider     { grid-template-columns:repeat(2,1fr); gap:10px; }
  .categories-grid     { grid-template-columns:1fr 1fr; gap:10px; }
  .hero-features       { grid-template-columns:1fr 1fr; }
  .shop-products-grid  { grid-template-columns:repeat(2,1fr); gap:10px; }
  .admin-stats         { grid-template-columns:1fr; }
  .trust-grid          { grid-template-columns:1fr; }
  .footer-grid         { gap:24px; }
  .toast-container     { left:12px; right:12px; bottom:12px; }
  .toast               { min-width:unset; }
  .auth-form-side      { padding:32px 16px; }
  .hero-text           { padding:40px 0 80px; }
  .about-hero h1       { font-size:30px; }
}






/* ==========================================================================
   KILIMALL FLASH SALES CORE STYLE ENGINE (DESKTOP STATE)
   ========================================================================== */
.flash-sale-section {
  background-color: transparent;
  margin-bottom: 20px;
}

.flash-sale-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--border, #e5e5e5);
  padding-bottom: 12px;
}

.fs-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fs-thunder-icon {
  font-size: 1.6rem;
  color: #ff0015; /* Striking Kilimall red lightning strike accent */
  animation: thunderPulse 1.5s infinite alternate ease-in-out;
}

.fs-section-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

/* Kilimall Styled Countdown Timer Blocks */
.fs-countdown-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #ff001512; /* Pale red safety glow highlight background */
  padding: 4px 10px;
  border-radius: 20px;
  margin-left: 10px;
}

.fs-timer-label {
  font-size: 11px;
  font-weight: 800;
  color: #ff0015;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fs-countdown-timer {
  display: flex;
  align-items: center;
  gap: 4px;
}

.time-block {
  background-color: #ff0015; /* Deep red locked background digital square blocks */
  color: #ffffff;
  font-family: monospace, sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  min-width: 22px;
  text-align: center;
}

.time-colon {
  color: #ff0015;
  font-weight: 800;
  font-size: 12px;
  animation: flashColon 1s infinite steps(1);
}

/* Horizontal Viewport Window Container rules */
.fs-slider-viewport {
  position: relative;
  width: 100%;
}

.fs-products-slider {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Clean 4 column splits for computer screens */
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 5px 2px;
}
.fs-products-slider::-webkit-scrollbar { display: none; }

/* Product Card Custom Flash Sizing Styles */
.fs-product-card {
  background-color: var(--surface, #ffffff);
  border: 1px solid var(--border, #e5e5e5);
  border-radius: var(--radius-lg, 8px);
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease;
  position: relative;
}
.fs-product-card:hover {
  transform: translateY(-4px);
}

/* IMAGE BOUNDS CONTROL - Preserves proportions on desktop monitors */
.fs-img-container {
  width: 100%;
  aspect-ratio: 1 / 1; /* Locked clean square thumbnail baseline frames */
  overflow: hidden;
  position: relative;
  border-radius: 6px;
  background-color: var(--light-gray, #f8f9fa);
}

.fs-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fs-discount-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background-color: #ff0015;
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 2;
}

.fs-card-info {
  padding-top: 10px;
}

.fs-product-name {
  font-size: 13px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fs-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.fs-current-price {
  font-size: 14px;
  font-weight: 800;
  color: #ff0015; /* Flash prices glow in red */
}

.fs-old-price {
  font-size: 12px;
  color: var(--text-muted, #888888);
  text-decoration: line-through;
}

/* PROGRESS BAR STRUCTURE PROPERTIES */
.fs-stock-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fs-stock-bar {
  width: 100%;
  height: 6px;
  background-color: #e5e5e5;
  border-radius: 4px;
  overflow: hidden;
}

.fs-stock-progress {
  height: 100%;
  background: linear-gradient(90deg, #ffb703, #ff0015); /* Hot orange to intense red progression fills */
  border-radius: 4px;
}
.fs-stock-progress.style-urgent {
  background: #ff0015; /* Solid flashing urgent notification bar color rules */
}

.fs-stock-text {
  font-size: 10px;
  font-weight: 700;
  color: #666666;
}
.fs-stock-text.text-urgent {
  color: #ff0015;
}

/* Nav arrows layout config */
.fs-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; background: #ffffff; border: 1px solid #ddd;
  border-radius: 50%; font-size: 20px; cursor: pointer; z-index: 5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06); display: flex; align-items: center; justify-content: center;
}
.fs-nav-btn.fs-prev { left: -18px; }
.fs-nav-btn.fs-next { right: -18px; }

/* --- RE-USABLE ANIMATIONS --- */
@keyframes thunderPulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 1px #ff0015); }
  100% { transform: scale(1.15); filter: drop-shadow(0 0 6px #ff0015); }
}
@keyframes flashColon {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ==========================================================================
   UNBREAKABLE MOBILE OPTIMIZATION PATCH OVERRIDES (Screens 600px and under)
   ========================================================================== */
@media (max-width: 600px) {
  
  .fs-nav-btn { display: none !important; } /* Touch tracking physics overrides buttons */

  .fs-section-title { font-size: 1.1rem; }
  .fs-countdown-wrapper { margin-left: 0; padding: 3px 8px; }
  .fs-timer-label { font-size: 9px; }
  
  /* FORCE DUAL COLUMN LAYOUT PACKS WHILE SHRINKING CARD ELEMENTS */
  .fs-products-slider {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important; /* Locks exactly 2 product cards per row */
    gap: 10px !important;
    padding: 5px 0;
  }

  .fs-product-card {
    padding: 6px !important;
    border-radius: 6px !important;
  }

  /* LOWER IMAGE CONTAINER HEIGHT DIRECTLY VIA OUR PRE-REQUISITE METHOD RULES */
  .fs-img-container {
    height: 120px !important; /* Locks down a smaller, tighter layout frame for smartphone displays */
    border-radius: 4px !important;
  }

  .fs-product-name { font-size: 12px !important; margin-bottom: 2px !important; }
  .fs-price-row { gap: 6px !important; margin-bottom: 6px !important; }
  .fs-current-price { font-size: 12px !important; }
  .fs-old-price { font-size: 11px !important; }
  
  .fs-stock-bar { height: 4px !important; }
  .fs-stock-text { font-size: 9px !important; }
}
