/* Quick Order E-Commerce - Clean Minimalism Stylesheet */
:root {
  --primary: #991b1b;
  --primary-dark: #7f1d1d;
  --primary-light: #b91c1c;
  --primary-gradient: linear-gradient(135deg, #7f1d1d 0%, #991b1b 50%, #b91c1c 100%);
  --secondary: #171717;
  --accent: #dc2626;
  --bg-main: #fafafa;
  --bg-card: #ffffff;
  --bg-subtle: #f5f5f5;
  --text-dark: #171717;
  --text-muted: #737373;
  --text-light: #ffffff;
  --border-color: #e5e5e5;
  --border-dark: #d4d4d4;
  --border-light: #f5f5f5;
  --badge-discount: #dc2626;
  --success: #15803d;
  --warning: #b45309;
  
  /* Strict Clean Minimalist Square Geometry */
  --radius-none: 0px;
  --radius-xs: 0px;
  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
  --radius-full: 0px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
  --font-family: 'Hind Siliguri', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family);
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-bottom: 65px; /* space for mobile bottom bar */
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  font-family: inherit;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* =========================================
   HEADER STYLES (Modern Compact Deep Red Aesthetic)
   ========================================= */
.site-header {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 50%, #7f1d1d 100%);
  color: var(--text-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
  padding: 6px 10px 8px 10px;
  max-width: 1240px;
  margin: 0 auto;
}

.header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.menu-toggle-btn {
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  font-size: 17px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s;
  flex-shrink: 0;
}

.menu-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.logo-brand {
  display: flex;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
  min-width: 0;
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
}

.logo-text-main {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.3px;
  line-height: 1.1;
}

.speed-lines {
  font-size: 13px;
  color: #facc15;
  opacity: 0.95;
}

.logo-name {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.logo-subtitle {
  font-size: 8px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.2px;
  margin-top: 1px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.lang-switch-btn {
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 3px 6px;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-switch-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.header-icon-btn {
  position: relative;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s;
}

.header-icon-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.header-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #facc15;
  color: #0f172a;
  font-size: 8.5px;
  font-weight: 900;
  min-width: 15px;
  height: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 0 2px;
  border: 1.5px solid #7f1d1d;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Header Search & Actions Row */
.header-search-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.search-form-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 4px;
  height: 36px;
  padding: 0 10px;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  min-width: 0;
}

.search-icon-prefix {
  color: #94a3b8;
  font-size: 13px;
  flex-shrink: 0;
}

.search-input-field {
  flex: 1;
  border: none;
  font-size: 12.5px;
  color: #1e293b;
  background: transparent;
  outline: none;
  width: 100%;
  min-width: 0;
}

.search-input-field::placeholder {
  color: #94a3b8;
  font-size: 12px;
}

.wishlist-header-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 4px;
  color: #dc2626;
  font-size: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: transform 0.15s;
}

.wishlist-header-btn:hover {
  transform: scale(1.03);
}

/* Desktop Navigation Bar */
.desktop-nav-bar {
  display: none;
  background: #111827;
  border-bottom: 1px solid #1f2937;
  color: #e5e7eb;
}

.desktop-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 13.5px;
  font-weight: 600;
}

.desktop-nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.desktop-nav-links a {
  padding: 10px 0;
  color: #d1d5db;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.desktop-nav-links a:hover,
.desktop-nav-links a.active {
  color: #ffffff;
  border-bottom-color: #ff4d4d;
}

.desktop-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #9ca3af;
  font-size: 12.5px;
}

@media (min-width: 768px) {
  .desktop-nav-bar {
    display: block;
  }
}

/* =========================================
   HERO BANNER CAROUSEL (Compact with Thin Gold Frame & Dual Side Scroll)
   ========================================= */
.main-content-container {
  padding: 8px 8px 0 8px;
}

.banner-carousel-section {
  position: relative;
  border-radius: 0px;
  overflow: hidden;
  margin-bottom: 12px;
  /* Thin Gold Frame surrounding the entire banner */
  border: 2px solid #d4af37;
  outline: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 0 0 1px #854d0e, 0 4px 12px rgba(212, 175, 55, 0.2);
  background: #0f172a;
}

.carousel-track-container {
  position: relative;
  width: 100%;
  height: 135px;
  min-height: 135px;
  max-height: 135px;
  overflow: hidden;
  border-radius: 0px;
}

@media (min-width: 640px) {
  .carousel-track-container {
    height: 155px;
    min-height: 155px;
    max-height: 155px;
  }
}

@media (min-width: 1024px) {
  .carousel-track-container {
    height: 175px;
    min-height: 175px;
    max-height: 175px;
  }
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 42px;
  color: #ffffff;
  overflow: hidden;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.slide-mega-sale {
  background: linear-gradient(135deg, #b91c1c 0%, #dc2626 50%, #ea580c 100%);
}

.slide-tech-sale {
  background: linear-gradient(135deg, #831843 0%, #9333ea 60%, #c026d3 100%);
}

/* Confetti decorations */
.confetti-item {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.banner-left-info {
  position: relative;
  z-index: 3;
  max-width: 58%;
}

.special-offer-pill {
  display: inline-block;
  background: #facc15;
  color: #18181b;
  font-size: 8.5px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 0px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 2px;
}

.mega-sale-title {
  font-size: 18px;
  font-weight: 900;
  font-style: italic;
  line-height: 1.05;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  margin-bottom: 1px;
}

@media (min-width: 640px) {
  .mega-sale-title {
    font-size: 22px;
  }
}

.upto-discount-text {
  font-size: 13.5px;
  font-weight: 900;
  font-style: italic;
  color: #fef08a;
  letter-spacing: -0.3px;
  line-height: 1.1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

@media (min-width: 640px) {
  .upto-discount-text {
    font-size: 16px;
  }
}

.banner-subtext {
  font-size: 9.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin: 2px 0 6px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.banner-shop-now-btn {
  display: inline-block;
  background: #facc15;
  color: #18181b;
  font-weight: 800;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 0px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s, background 0.15s;
  text-decoration: none;
  border: 1px solid #eab308;
}

.banner-shop-now-btn:hover {
  background: #fde047;
  transform: translateY(-1px);
}

.banner-right-showcase {
  position: relative;
  width: 42%;
  height: 100%;
  min-height: 115px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.limited-time-stamp {
  position: absolute;
  top: -2px;
  right: 0px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px dashed #ffffff;
  background: rgba(185, 28, 28, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 7px;
  font-weight: 900;
  line-height: 1.05;
  color: #ffffff;
  transform: rotate(-10deg);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 4;
}

.banner-products-scene {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 110px;
}

.scene-item {
  position: absolute;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  border-radius: 0px;
}

.scene-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0px;
}

.scene-chair {
  left: 0;
  top: 6px;
  width: 48px;
  height: 48px;
  transform: rotate(-6deg);
  z-index: 1;
}

.scene-phone {
  right: 10px;
  top: 4px;
  width: 34px;
  height: 48px;
  transform: rotate(8deg);
  z-index: 2;
}

.scene-watch {
  left: 24px;
  bottom: 4px;
  width: 34px;
  height: 34px;
  z-index: 3;
}

.scene-shoe {
  right: 0px;
  bottom: 4px;
  width: 48px;
  height: 34px;
  transform: rotate(-4deg);
  z-index: 3;
}

.scene-headphones {
  right: 32px;
  bottom: 18px;
  width: 34px;
  height: 34px;
  z-index: 2;
}

/* Dual Side Scroll System Buttons */
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 28px;
  height: 28px;
  background: rgba(15, 23, 42, 0.85);
  color: #facc15;
  border: 1.5px solid #d4af37;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0px;
  cursor: pointer;
  font-size: 11.5px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.carousel-nav-btn:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #fde047;
  transform: translateY(-50%) scale(1.08);
}

.carousel-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
  left: 6px;
}

.carousel-next {
  right: 6px;
}

.carousel-indicators {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 4px;
}

.carousel-dot {
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 0px;
  cursor: pointer;
  transition: all 0.25s;
}

.carousel-dot.active {
  width: 14px;
  background: #facc15;
  border: 1px solid #ca8a04;
}

/* =========================================
   10 QUICK ACTION BUTTONS (2 Rows x 5 Columns)
   ========================================= */
.quick-action-section {
  margin-bottom: 14px;
}

.quick-action-grid-card {
  background: #ffffff;
  border-radius: 0px;
  padding: 14px 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px 4px;
  text-align: center;
}

.quick-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
  padding: 2px 0;
}

.quick-action-item:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.qa-tile {
  width: 44px;
  height: 44px;
  border-radius: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #ffffff;
  margin: 0 auto 6px auto;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.qa-tile-pink {
  background: #f43f5e;
}

.qa-tile-amber {
  background: #f59e0b;
}

.qa-tile-green {
  background: #10b981;
}

.qa-tile-blue {
  background: #2563eb;
}

.qa-tile-purple {
  background: #8b5cf6;
}

.qa-tile-cyan {
  background: #06b6d4;
}

.qa-tile-rose {
  background: #e11d48;
}

.qa-tile-teal {
  background: #0d9488;
}

.qa-tile-skyblue {
  background: #3b82f6;
}

.qa-tile-orange {
  background: #f97316;
}

.qa-badge-text-icon {
  font-size: 11px;
  font-weight: 900;
  background: #ffffff;
  color: #2563eb;
  padding: 2px 4px;
  border-radius: 0px;
}

.qa-title {
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
  white-space: nowrap;
}

@media (max-width: 380px) {
  .qa-tile {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
  .qa-title {
    font-size: 9.5px;
  }
}

/* =========================================
   4 TRUST FEATURES ROW (Square Clean Grid)
   ========================================= */
.trust-features-section {
  margin-bottom: 18px;
}

.trust-features-card {
  background: #ffffff;
  border-radius: 0px;
  padding: 10px 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.trust-card-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
}

.trust-card-item:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

.trust-icon-wrap {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border: 1px solid transparent;
  flex-shrink: 0;
}

.trust-icon-wrap.icon-blue {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
}

.trust-icon-wrap.icon-green {
  background: #f0fdf4;
  color: #16a34a;
  border-color: #bbf7d0;
}

.trust-icon-wrap.icon-purple {
  background: #faf5ff;
  color: #9333ea;
  border-color: #e9d5ff;
}

.trust-icon-wrap.icon-orange {
  background: #fff7ed;
  color: #ea580c;
  border-color: #fed7aa;
}

.trust-card-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.trust-card-title {
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  white-space: nowrap;
}

.trust-card-sub {
  font-size: 10px;
  color: #64748b;
  margin-top: 2px;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .trust-features-card {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 6px;
  }
  .trust-card-item {
    padding: 8px 8px;
    gap: 8px;
  }
  .trust-icon-wrap {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 14px;
  }
  .trust-card-title {
    font-size: 11px;
  }
  .trust-card-sub {
    font-size: 9.5px;
  }
}

@media (max-width: 380px) {
  .trust-features-card {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    padding: 4px;
  }
  .trust-card-item {
    padding: 6px 4px;
    gap: 6px;
  }
  .trust-icon-wrap {
    width: 28px;
    height: 28px;
    min-width: 28px;
    font-size: 12px;
  }
  .trust-card-title {
    font-size: 10px;
  }
  .trust-card-sub {
    font-size: 8.5px;
  }
}

/* =========================================
   TOP PRODUCTS SECTION & 3-COLUMN MOBILE GRID
   ========================================= */
.top-products-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 2px;
}

.top-products-heading {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.3px;
}

.top-products-view-all {
  font-size: 12px;
  font-weight: 700;
  color: #dc2626;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 3px;
}

.top-products-view-all:hover {
  text-decoration: underline;
}

/* Mobile View: STRICT 3 Columns Side-by-Side */
.product-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 18px;
}

@media (min-width: 640px) {
  .product-grid-3col {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
}

@media (min-width: 900px) {
  .product-grid-3col {
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
  }
}

@media (min-width: 1150px) {
  .product-grid-3col {
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
  }
}

/* Product Card - Square Clean Minimalist Design */
.product-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0px;
  padding: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
  border-color: #fca5a5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
}

.product-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f8fafc;
  border-radius: 0px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #f1f5f9;
}

.product-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.discount-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: #dc2626;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 0px;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.product-info-box {
  padding: 6px 0 0 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.25;
  height: 28px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 3px;
}

.product-rating-box {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 9px;
  color: #f59e0b;
  margin-bottom: 4px;
}

.product-rating-score {
  color: #64748b;
  font-weight: 600;
  font-size: 8.5px;
  margin-left: 2px;
}

.product-price-box {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}

.current-price {
  font-size: 13px;
  font-weight: 800;
  color: #dc2626;
}

.old-price {
  font-size: 10px;
  color: #94a3b8;
  text-decoration: line-through;
}

.product-actions-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.add-to-cart-card-btn {
  flex: 1;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  font-size: 10.5px;
  font-weight: 700;
  padding: 6px 4px;
  border-radius: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s ease;
  cursor: pointer;
}

.add-to-cart-card-btn:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
}

.wishlist-card-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #e2e8f0;
  border-radius: 0px;
  background: #ffffff;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  transition: all 0.15s ease;
  cursor: pointer;
}

.wishlist-card-btn:hover,
.wishlist-card-btn.active {
  color: #dc2626;
  border-color: #fecaca;
  background: #fef2f2;
}

@media (max-width: 480px) {
  .product-grid-3col {
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
  }
  .product-card {
    padding: 6px;
  }
  .product-card-title {
    font-size: 10.5px;
    height: 26px;
    line-height: 1.2;
    margin-bottom: 2px;
  }
  .product-rating-box {
    font-size: 8px;
    margin-bottom: 3px;
  }
  .product-rating-score {
    font-size: 8px;
  }
  .current-price {
    font-size: 12px;
  }
  .old-price {
    font-size: 9px;
  }
  .add-to-cart-card-btn {
    font-size: 9.5px;
    padding: 5px 2px;
    gap: 2px;
  }
  .wishlist-card-btn {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }
}

@media (max-width: 360px) {
  .product-grid-3col {
    gap: 4px;
  }
  .product-card {
    padding: 4px;
  }
  .product-card-title {
    font-size: 9.5px;
    height: 24px;
  }
  .current-price {
    font-size: 11px;
  }
  .old-price {
    display: none;
  }
  .add-to-cart-card-btn {
    font-size: 8.5px;
    padding: 4px 1px;
  }
  .wishlist-card-btn {
    width: 22px;
    height: 22px;
    font-size: 9px;
  }
}

@media (min-width: 640px) {
  .product-card-title {
    font-size: 13px;
    height: 32px;
  }
  .current-price {
    font-size: 15px;
  }
  .old-price {
    font-size: 11.5px;
  }
  .add-to-cart-card-btn {
    font-size: 11.5px;
    padding: 6px 4px;
  }
  .wishlist-card-btn {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }
}

/* =========================================
   MOBILE BOTTOM NAVIGATION BAR
   ========================================= */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
  .mobile-bottom-nav {
    display: none;
  }
}

.nav-bottom-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
  gap: 2px;
  height: 100%;
  position: relative;
  transition: all 0.2s;
  text-decoration: none;
}

.nav-bottom-item.active,
.nav-bottom-item:hover {
  color: #dc2626;
}

.nav-bottom-icon {
  font-size: 18px;
  position: relative;
}

.nav-bottom-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  background: #dc2626;
  color: #ffffff;
  font-size: 9px;
  font-weight: 900;
  min-width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2px;
}

/* =========================================
   CATEGORY DRAWER / SIDEBAR
   ========================================= */
.category-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.category-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.category-drawer {
  position: fixed;
  top: 0;
  left: -320px;
  width: 290px;
  height: 100%;
  background: #ffffff;
  z-index: 1001;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.category-drawer-overlay.open .category-drawer {
  transform: translateX(320px);
}

.drawer-header {
  background: var(--primary-gradient);
  color: #ffffff;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #5a0000;
}

.drawer-title {
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-close-btn {
  color: #ffffff;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-xs);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
}

.drawer-section-title {
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  padding: 8px 16px 4px 16px;
  letter-spacing: 0.5px;
}

.drawer-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dark);
  border-left: 3px solid transparent;
  transition: all 0.15s;
}

.drawer-list-item:hover {
  background: #f8fafc;
  color: var(--primary);
  border-left-color: var(--primary);
}

.drawer-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-item-icon {
  width: 20px;
  color: var(--primary);
  text-align: center;
}

.drawer-item-count {
  font-size: 11px;
  color: #94a3b8;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  font-weight: 700;
}

.drawer-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--border-color);
  background: #f8fafc;
}

/* =========================================
   FOOTER (Desktop & Content)
   ========================================= */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  margin-top: auto;
  border-top: 4px solid var(--primary);
}

.footer-top {
  padding: 30px 0 20px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 32px;
  }
}

.footer-col h4 {
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 6px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
}

.footer-col p {
  font-size: 13px;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 12px;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 13px;
  color: #cbd5e1;
  transition: all 0.2s;
  display: inline-block;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 8px;
  color: #cbd5e1;
}

.footer-contact-info span {
  color: #f87171;
}

.footer-bottom {
  background: #090d16;
  padding: 14px 0;
  border-top: 1px solid #1e293b;
  font-size: 12px;
  text-align: center;
  color: #64748b;
}

/* Toast Notifications - Crisp Square Shape */
.toast-container {
  position: fixed;
  top: 75px;
  right: 14px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 92vw;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 0px !important;
  border: 1.5px solid #334155;
  border-left: 5px solid var(--primary);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  animation: slideInRight 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.success {
  border-left-color: #16a34a;
}

.toast.error {
  border-left-color: #dc2626;
}

.toast.warning {
  border-left-color: #f59e0b;
}

/* Square Alert Box Components */
.square-alert-box {
  background: #ffffff;
  border: 1.5px solid #0f172a;
  border-radius: 0px !important;
  padding: 14px 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 3px 3px 0px #0f172a;
}

.square-alert-box.success {
  border-color: #15803d;
  background: #f0fdf4;
  box-shadow: 3px 3px 0px #15803d;
  color: #14532d;
}

.square-alert-box.error {
  border-color: #b91c1c;
  background: #fef2f2;
  box-shadow: 3px 3px 0px #b91c1c;
  color: #7f1d1d;
}

.square-alert-box.warning {
  border-color: #b45309;
  background: #fffbeb;
  box-shadow: 3px 3px 0px #b45309;
  color: #78350f;
}

/* 4 Columns x 3 Rows Side-Scrolling Product Carousel System */
.carousel-grid-section {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0px;
  padding: 14px 12px;
  margin-bottom: 22px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.carousel-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f1f5f9;
}

.carousel-grid-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel-grid-title {
  font-size: 16px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-grid-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.carousel-nav-arrow-btn {
  width: 32px;
  height: 32px;
  background: #0f172a;
  color: #ffffff;
  border: 1px solid #0f172a;
  border-radius: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.carousel-nav-arrow-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.carousel-grid-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.carousel-grid-track-slides {
  display: flex;
  gap: 14px;
  transition: transform 0.35s ease-in-out;
}

.carousel-grid-slide-page {
  min-width: 100%;
  flex-shrink: 0;
}

.product-grid-4x3 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(auto, 1fr);
  gap: 10px;
}

@media (max-width: 1024px) {
  .product-grid-4x3 {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
  }
  .carousel-grid-slide-page {
    min-width: auto;
    width: auto;
  }
}

@media (max-width: 768px) {
  .product-grid-4x3 {
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 8px;
  }
}

.carousel-grid-dots-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  padding-top: 8px;
}

.carousel-grid-dot {
  width: 22px;
  height: 6px;
  background: #cbd5e1;
  border-radius: 0px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-grid-dot.active {
  background: var(--primary);
  width: 32px;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* =========================================
   PROFILE PAGE (Exact Design Match to Reference)
   ========================================= */
.profile-page-bg {
  background: #f8fafc;
  min-height: 100vh;
  padding-bottom: 80px;
}

.profile-top-header {
  background: #c7001e;
  background-image: radial-gradient(circle at 50% 10%, #dc2626 0%, #b91c1c 45%, #881337 100%);
  padding: 12px 16px 36px 16px;
  position: relative;
}

.profile-header-inner {
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile-header-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: transparent;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: none;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  transition: background 0.15s;
}

.profile-header-icon-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

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

.profile-header-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #dc2626;
  border: 1.5px solid #ffffff;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

.profile-main-container {
  max-width: 540px;
  margin: -24px auto 0 auto;
  padding: 0 12px;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 1. Profile Info Card */
.profile-user-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid #f1f5f9;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.profile-user-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.09);
  transform: translateY(-1px);
}

.profile-user-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.profile-avatar-box {
  width: 62px;
  height: 62px;
  border-radius: 10px;
  overflow: hidden;
  background: #fed7aa;
  flex-shrink: 0;
  border: 1.5px solid #ffedd5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.profile-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-user-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.profile-user-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-user-name {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.profile-verified-icon {
  color: #dc2626;
  font-size: 15px;
}

.profile-user-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #64748b;
  font-weight: 500;
}

.profile-user-phone i {
  font-size: 11.5px;
  color: #94a3b8;
}

.profile-id-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  width: fit-content;
  margin-top: 2px;
  cursor: pointer;
  transition: background 0.15s;
}

.profile-id-pill:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.profile-id-pill i {
  font-size: 11px;
  color: #64748b;
}

.profile-chevron-right {
  font-size: 14px;
  color: #94a3b8;
  flex-shrink: 0;
  margin-left: 8px;
}

/* Section Card Base */
.profile-section-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
}

.profile-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.profile-section-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.profile-view-all-link {
  font-size: 12.5px;
  font-weight: 700;
  color: #dc2626;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.15s;
}

.profile-view-all-link:hover {
  gap: 6px;
  text-decoration: underline;
}

/* 2. My Orders 5-Grid */
.profile-orders-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.profile-order-status-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 4px 8px 4px;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.15s, background-color 0.15s;
}

.profile-order-status-card:hover {
  transform: translateY(-2px);
}

.profile-order-status-card.status-pay {
  background: #fff1f2;
}

.profile-order-status-card.status-ship {
  background: #f0fdf4;
}

.profile-order-status-card.status-receive {
  background: #eff6ff;
}

.profile-order-status-card.status-review {
  background: #fffbeb;
}

.profile-order-status-card.status-return {
  background: #faf5ff;
}

.profile-order-status-icon {
  font-size: 18px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
}

.status-pay .profile-order-status-icon {
  color: #f43f5e;
}

.status-ship .profile-order-status-icon {
  color: #22c55e;
}

.status-receive .profile-order-status-icon {
  color: #3b82f6;
}

.status-review .profile-order-status-icon {
  color: #f59e0b;
}

.status-return .profile-order-status-icon {
  color: #a855f7;
}

.profile-order-status-count {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  margin-bottom: 2px;
}

.profile-order-status-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #475569;
  line-height: 1.15;
  white-space: nowrap;
}

/* 3. My Account 10-Grid */
.profile-account-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px 6px;
  padding: 4px 0;
}

.profile-account-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: transform 0.15s;
}

.profile-account-item:hover {
  transform: translateY(-2px);
}

.profile-account-icon {
  font-size: 22px;
  margin-bottom: 6px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-account-label {
  font-size: 10.5px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.2;
  text-align: center;
  max-width: 65px;
  word-wrap: break-word;
}

/* 4. More Services List */
.profile-services-list {
  display: flex;
  flex-direction: column;
}

.profile-service-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 4px;
  text-decoration: none;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s;
  cursor: pointer;
}

.profile-service-item:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}

.profile-service-item:hover {
  background: #f8fafc;
}

.profile-service-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.profile-service-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.profile-service-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.profile-service-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.profile-service-subtitle {
  font-size: 11px;
  color: #64748b;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-service-item.logout-item .profile-service-title {
  color: #dc2626;
}

/* Modal Popup Styles */
.profile-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.profile-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.profile-modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 440px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.2s ease;
}

.profile-modal-overlay.active .profile-modal-card {
  transform: scale(1);
}

.profile-modal-header {
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}

.profile-modal-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.profile-modal-close-btn {
  background: transparent;
  border: none;
  font-size: 18px;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
}

.profile-modal-close-btn:hover {
  color: #0f172a;
}

.profile-modal-body {
  padding: 16px;
  max-height: 70vh;
  overflow-y: auto;
}

.auth-page-bg {
  min-height: 100vh;
  min-height: 100dvh;
  background: #c7001e;
  background-image: 
    radial-gradient(circle at 50% 10%, #dc2626 0%, #b91c1c 45%, #881337 100%);
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 0 24px 0;
}

.auth-watermark-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: 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='%23ffffff' fill-opacity='1' fill-rule='evenodd'%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/svg%3E");
}

.auth-top-header {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 14px 14px 46px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
}

.auth-back-btn {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.auth-back-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

.auth-logo-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.auth-logo-title {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.auth-logo-sub {
  color: rgba(255, 255, 255, 0.92);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-top: 2px;
}

.auth-lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.auth-lang-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Card Wrap & Square Layout */
.auth-card-wrap {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 12px;
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 44px 20px 24px 20px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

@media (min-width: 480px) {
  .auth-card {
    padding: 46px 28px 28px 28px;
    border-radius: 14px;
  }
}

/* Floating Square Badge */
.auth-avatar-floating {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  width: 68px;
  height: 68px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  border: 2px solid #fee2e2;
}

.auth-avatar-inner {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dc2626;
  font-size: 22px;
}

.auth-heading {
  font-size: 21px;
  font-weight: 800;
  color: #0f172a;
  text-align: center;
  letter-spacing: -0.4px;
  margin-bottom: 3px;
}

@media (min-width: 480px) {
  .auth-heading {
    font-size: 23px;
  }
}

.auth-subheading {
  font-size: 12.5px;
  color: #64748b;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.4;
}

/* Field Group and Square Inputs */
.auth-field-group {
  margin-bottom: 13px;
}

.auth-field-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 5px;
}

.auth-field-label i {
  color: #dc2626;
  font-size: 13px;
  width: 14px;
  text-align: center;
}

.auth-input {
  width: 100%;
  height: 44px;
  border: 1.5px solid #e2e8f0;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 13.5px;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  transition: all 0.15s;
  box-sizing: border-box;
}

.auth-input::placeholder {
  color: #94a3b8;
  font-size: 13px;
}

.auth-input:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
  background: #fffafa;
}

/* Phone Field with Square Country Selector */
.auth-phone-row {
  display: flex;
  border: 1.5px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
  height: 44px;
  transition: all 0.15s;
  box-sizing: border-box;
}

.auth-phone-row:focus-within {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
  background: #fffafa;
}

.auth-country-code {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  background: #f8fafc;
  border-right: 1.5px solid #e2e8f0;
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}

.auth-country-flag {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  object-fit: cover;
  display: inline-block;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.auth-phone-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  padding: 0 10px;
  font-size: 13.5px;
  color: #0f172a;
  background: transparent;
}

.auth-phone-input::placeholder {
  color: #94a3b8;
  font-size: 13px;
}

.auth-pass-wrap {
  position: relative;
  width: 100%;
}

.auth-pass-wrap .auth-input {
  padding-right: 40px;
}

.auth-eye-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 15px;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.auth-eye-btn:hover {
  color: #dc2626;
}

/* Square Submit Button */
.auth-submit-btn {
  width: 100%;
  height: 46px;
  background: #dc2626;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 14.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(220, 38, 38, 0.3);
  transition: all 0.15s;
  margin-top: 16px;
  text-transform: capitalize;
}

.auth-submit-btn:hover {
  background: #b91c1c;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4);
  transform: translateY(-1px);
}

.auth-submit-btn:active {
  transform: translateY(0);
}

.auth-or-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0 14px 0;
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 700;
}

.auth-or-divider::before,
.auth-or-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.auth-or-divider span {
  padding: 0 10px;
}

.auth-bottom-switch {
  text-align: center;
  font-size: 13px;
  color: #475569;
  font-weight: 600;
}

.auth-switch-link {
  color: #dc2626;
  font-weight: 800;
  text-decoration: none;
  margin-left: 3px;
  transition: all 0.15s;
}

.auth-switch-link:hover {
  color: #b91c1c;
  text-decoration: underline;
}

/* Bottom 3 Trust Badges (Square Card Grid) */
.auth-trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  max-width: 520px;
  margin: 16px auto 0 auto;
  padding: 0 12px;
  gap: 6px;
  position: relative;
  z-index: 10;
}

.auth-trust-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  padding: 8px 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.15s;
}

.auth-trust-card:hover {
  background: rgba(255, 255, 255, 0.18);
}

.auth-trust-icon {
  font-size: 16px;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-trust-icon.shield-red {
  color: #dc2626;
}

.auth-trust-icon.check-green {
  color: #059669;
}

.auth-trust-icon.badge-blue {
  color: #2563eb;
}

.auth-trust-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.auth-trust-title {
  font-size: 10.5px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-trust-desc {
  font-size: 8.5px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Super Small Mobile Screen Refinements (<360px) */
@media (max-width: 370px) {
  .auth-top-header {
    padding: 10px 10px 38px 10px;
  }
  .auth-card {
    padding: 38px 14px 18px 14px;
  }
  .auth-trust-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .auth-trust-card {
    padding: 6px 8px;
  }
}

/* ==========================================================================
   SELLER STORE DEDICATED STYLES (Clean Square Geometry & Fully Responsive)
   ========================================================================== */
.store-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 10px 80px 10px;
  background: transparent;
  min-height: 100vh;
}

.store-top-bar {
  background: #0f172a;
  color: #ffffff;
  padding: 6px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  font-weight: 700;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 0px;
}

.store-top-bar a {
  color: #86efac;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: opacity 0.15s;
}

.store-top-bar a:hover {
  opacity: 0.85;
}

/* 1. Store Header Profile Card */
.store-identity-card {
  background: #ffffff;
  border-radius: 0px;
  border: 1px solid #e2e8f0;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.store-identity-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.store-logo-box {
  width: 52px;
  height: 52px;
  border-radius: 0px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.25);
  border: 1px solid #c7d2fe;
  position: relative;
}

.store-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-logo-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
}

.store-logo-fallback i {
  font-size: 20px;
  margin-bottom: 2px;
}

.store-title-wrap h1 {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 2px 0;
  line-height: 1.2;
}

.store-bio-text {
  font-size: 11.5px;
  color: #64748b;
  margin: 0 0 4px 0;
  font-weight: 500;
}

.store-meta-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #334155;
  font-weight: 600;
  flex-wrap: wrap;
}

.store-meta-pills .meta-sep {
  color: #cbd5e1;
  font-weight: 300;
}

.store-seller-badge {
  background: #f3e8ff;
  color: #7e22ce;
  border-radius: 0px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 12px;
  border: 1px solid #d8b4fe;
  white-space: nowrap;
}

/* 2. Banner Slider */
.store-slider-container {
  position: relative;
  overflow: hidden;
  border-radius: 0px;
  border: 2px solid #d4af37;
  background: #111827;
  height: 140px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

@media (min-width: 640px) {
  .store-slider-container {
    height: 160px;
  }
}

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

.store-slide-item {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.store-slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(88,28,135,0.85) 0%, rgba(219,39,119,0.75) 50%, rgba(245,158,11,0.65) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 24px;
  color: #ffffff;
}

.store-slide-tag-pill {
  display: inline-block;
  background: #facc15;
  color: #0f172a;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 0px;
  text-transform: uppercase;
  margin-bottom: 3px;
  width: fit-content;
}

.store-slide-title {
  font-size: 16px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 2px;
  letter-spacing: -0.2px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.store-slide-discount {
  font-size: 13px;
  font-weight: 800;
  color: #fef08a;
  margin-bottom: 4px;
}

.store-slide-btn {
  display: inline-flex;
  align-items: center;
  background: #facc15;
  color: #0f172a;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 0px;
  text-decoration: none;
  width: fit-content;
}

.store-slider-dots {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 5;
  align-items: center;
}

.store-slider-dot {
  width: 5px;
  height: 5px;
  border-radius: 0px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.2s;
}

.store-slider-dot.active {
  background: #facc15;
  width: 14px;
}

.store-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.85);
  color: #facc15;
  border: 1px solid #d4af37;
  width: 28px;
  height: 28px;
  border-radius: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
  font-size: 11px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
  transition: background 0.15s;
}

.store-slider-btn:hover {
  background: #0f172a;
  color: #ffffff;
}

.store-slider-btn.prev {
  left: 8px;
}

.store-slider-btn.next {
  right: 8px;
}

/* 3. Three Feature Action Cards */
.store-action-buttons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.store-feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  border-radius: 0px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  text-align: center;
  transition: transform 0.12s, box-shadow 0.12s;
}

.store-feature-card:active {
  transform: scale(0.97);
}

.feature-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 15px;
  margin-bottom: 4px;
}

.feature-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.feature-subtitle {
  font-size: 9.5px;
  color: #64748b;
  font-weight: 500;
}

/* Blue Card: All Products */
.card-blue {
  background: #f0f7ff;
  border-color: #dbeafe;
}
.icon-blue {
  background: #2563eb;
}

/* Green Card: Contact Seller */
.card-green {
  background: #f0fdf4;
  border-color: #dcfce7;
}
.icon-green {
  background: #16a34a;
}

/* Purple Card: Live Chat */
.card-purple {
  background: #faf5ff;
  border-color: #f3e8ff;
}
.icon-purple {
  background: #9333ea;
}

/* 4. Full Width Quick Order Orange Button */
.store-quick-order-btn {
  background: #ff7800;
  background: linear-gradient(135deg, #ff8a00 0%, #ff6200 100%);
  color: #ffffff;
  border-radius: 0px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  margin-bottom: 14px;
  box-shadow: 0 2px 6px rgba(255, 120, 0, 0.25);
  transition: transform 0.12s;
  cursor: pointer;
  border: 1px solid #ea580c;
}

.store-quick-order-btn:active {
  transform: scale(0.98);
}

.store-quick-order-btn i {
  font-size: 16px;
}

.store-quick-order-btn .btn-primary-text {
  font-size: 14px;
  font-weight: 800;
}

.store-quick-order-btn .btn-sub-text {
  font-size: 11.5px;
  font-weight: 500;
  opacity: 0.95;
}

/* Store Category Tiles Grid */
.store-categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.store-category-tile {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0px;
  padding: 8px 4px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.15s ease;
}

.store-category-tile:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.cat-tile-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 13px;
  margin-bottom: 4px;
}

.tile-electronics { background: #2563eb; }
.tile-accessories { background: #0d9488; }
.tile-fashion { background: #e11d48; }
.tile-home { background: #f59e0b; }
.tile-more { background: #64748b; }

.cat-tile-label {
  font-size: 10px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.1;
  white-space: nowrap;
}

.cat-tile-count {
  font-size: 8.5px;
  color: #64748b;
  margin-top: 1px;
}

.store-quick-order-btn:hover {
  box-shadow: 0 6px 16px rgba(255, 120, 0, 0.4);
}

.store-quick-order-btn:active {
  transform: scale(0.98);
}

.store-quick-order-btn i {
  font-size: 18px;
}

.store-quick-order-btn .btn-primary-text {
  font-size: 15px;
  font-weight: 800;
}

.store-quick-order-btn .btn-sub-text {
  font-size: 12.5px;
  font-weight: 500;
  opacity: 0.95;
}

/* Store Section Titles */
.store-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0 10px 0;
}

.store-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.store-section-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.store-view-all-link {
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: color 0.12s;
  cursor: pointer;
}

.store-view-all-link:hover {
  color: #1d4ed8;
}

/* Flash sale red countdown timer */
.store-flash-timer-badge {
  background: #dc2626;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  font-family: monospace;
}

/* 4-Item Horizontal Scroll Card Grid */
.store-hscroll-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

@media (max-width: 580px) {
  .store-hscroll-row {
    grid-template-columns: repeat(4, 135px);
    overflow-x: auto;
    scrollbar-width: thin;
  }
}

.store-compact-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.12s, box-shadow 0.12s;
  cursor: pointer;
}

.store-compact-card:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.store-compact-img-wrap {
  width: 100%;
  height: 95px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  position: relative;
}

.store-compact-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.store-card-discount-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  z-index: 2;
}

.store-compact-title {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.store-compact-price-row {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 800;
  color: #16a34a;
  margin-bottom: 2px;
}

.store-compact-price-row.flash-price {
  color: #dc2626;
}

.store-compact-old-price {
  font-size: 10px;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: normal;
}

.store-compact-rating {
  font-size: 10.5px;
  color: #475569;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Sold progress bar for flash sale */
.store-sold-bar-wrap {
  margin-top: 3px;
}

.store-sold-label {
  font-size: 10px;
  color: #dc2626;
  font-weight: 700;
  margin-bottom: 2px;
}

.store-sold-track {
  background: #fee2e2;
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
  width: 100%;
}

.store-sold-fill {
  background: #ef4444;
  height: 100%;
}

/* 5. Category Navigation Tiles (5 items) */
.store-categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.store-category-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  padding: 6px 2px;
  border-radius: 8px;
  transition: background 0.12s;
}

.store-category-tile:hover,
.store-category-tile.active {
  background: #f8fafc;
}

.cat-tile-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 4px;
  transition: transform 0.12s;
}

.store-category-tile:active .cat-tile-icon-box {
  transform: scale(0.92);
}

.cat-tile-label {
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.cat-tile-count {
  font-size: 10px;
  color: #64748b;
}

/* Tile color variants */
.tile-electronics {
  background: #f3e8ff;
  color: #9333ea;
}
.tile-accessories {
  background: #dcfce7;
  color: #16a34a;
}
.tile-fashion {
  background: #ffedd5;
  color: #ea580c;
}
.tile-home {
  background: #ffe4e6;
  color: #e11d48;
}
.tile-more {
  background: #e0f2fe;
  color: #0284c7;
}

/* Dedicated Bottom Navigation Footer */
.store-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
  max-width: 640px;
  margin: 0 auto;
}

.store-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #334155;
  text-decoration: none;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s;
}

.store-bottom-nav-item i {
  font-size: 17px;
}

/* Active Purple Home */
.store-bottom-nav-item.nav-home.active,
.store-bottom-nav-item.nav-home:hover {
  color: #7e22ce;
}
.store-bottom-nav-item.nav-home i {
  color: #7e22ce;
}

/* Orange Back to Quick Order */
.store-bottom-nav-item.nav-back i {
  color: #ea580c;
}
.store-bottom-nav-item.nav-back:hover {
  color: #ea580c;
}

/* Blue Categories */
.store-bottom-nav-item.nav-categories i {
  color: #2563eb;
}
.store-bottom-nav-item.nav-categories:hover {
  color: #2563eb;
}

/* Live Chat Modal */
.store-chat-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 12px;
}

.store-chat-modal.active {
  display: flex;
}

.store-chat-box {
  background: #ffffff;
  width: 100%;
  max-width: 440px;
  height: 85vh;
  max-height: 540px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  overflow: hidden;
}

.store-chat-header {
  background: #0f172a;
  color: #ffffff;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.store-chat-vendor-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.store-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #a855f7;
}

.store-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-bubble {
  max-width: 80%;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.4;
  border-radius: 8px;
}

.chat-bubble-vendor {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  align-self: flex-start;
}

.chat-bubble-user {
  background: #7e22ce;
  color: #ffffff;
  align-self: flex-end;
}

.chat-time {
  font-size: 9px;
  opacity: 0.7;
  margin-top: 2px;
  display: block;
}

.store-chat-quick-replies {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 12px;
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
}

.quick-reply-chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 3px 8px;
  font-size: 10.5px;
  color: #334155;
  white-space: nowrap;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.12s;
}

.quick-reply-chip:hover {
  background: #7e22ce;
  color: #ffffff;
  border-color: #7e22ce;
}

.store-chat-footer {
  padding: 10px 12px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 8px;
}

.store-chat-input {
  flex: 1;
  border: 1px solid #cbd5e1;
  padding: 8px 10px;
  font-size: 12.5px;
  border-radius: 6px;
  outline: none;
}

.store-chat-input:focus {
  border-color: #7e22ce;
}

/* Store Categories Drawer */
.store-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: none;
}

.store-drawer-overlay.active {
  display: block;
}

.store-drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 80%;
  max-width: 300px;
  background: #ffffff;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  border-left: 3px solid #7e22ce;
  box-shadow: -4px 0 15px rgba(0,0,0,0.2);
}

.store-drawer-header {
  background: #0f172a;
  color: #ffffff;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.store-drawer-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

.store-drawer-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: #0f172a;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border-radius: 6px;
}

.store-drawer-item:hover,
.store-drawer-item.active {
  background: #faf5ff;
  color: #7e22ce;
}

/* ==========================================================
   VENDOR QUICK ACTION & MOBILE SCREEN-FIT RESPONSIVE SYSTEM
   ========================================================== */
.vendor-quick-action-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  width: 100%;
}

.vendor-quick-action-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  color: #0f172a;
  transition: all 0.15s ease;
  min-width: 0;
}

.vendor-quick-action-card:hover {
  border-color: #16a34a;
  background: #f0fdf4;
  transform: translateY(-2px);
}

.vendor-quick-action-icon {
  width: 32px;
  height: 32px;
  background: #16a34a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

@media (max-width: 768px) {
  .vendor-quick-action-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .vendor-quick-action-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
  }
  
  .vendor-quick-action-card {
    padding: 8px 4px;
  }
  
  .vendor-quick-action-card span {
    font-size: 10.5px !important;
    line-height: 1.15;
  }
  
  .vendor-quick-action-icon {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }
}

/* Green Vendor Drawer Styles */
.vendor-green-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.vendor-green-drawer-overlay.open {
  display: block;
  opacity: 1;
}

.vendor-green-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 85%;
  max-width: 320px;
  background: #0f172a;
  color: #ffffff;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  border-right: 3px solid #16a34a;
  box-shadow: 4px 0 20px rgba(0,0,0,0.4);
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}

.vendor-green-drawer-overlay.open .vendor-green-drawer {
  transform: translateX(0);
}

.vendor-drawer-header {
  padding: 14px;
  background: #1e293b;
  border-bottom: 1px solid #334155;
  position: relative;
}

.vendor-drawer-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #334155;
  color: #cbd5e1;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 1px solid #475569;
  font-size: 14px;
}

.vendor-green-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #16a34a;
  color: #ffffff;
  border: 1px solid #15803d;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s;
}

.vendor-green-menu-btn:hover {
  background: #15803d;
}

/* ==========================================================================
   UNIFIED PRODUCT CAROUSEL & 3-COLUMN GRID SYSTEM (SAME EXACT SIZE EVERYWHERE)
   ========================================================================== */
.carousel-grid-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0px;
  padding: 14px 12px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.carousel-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid #f1f5f9;
  flex-wrap: wrap;
  gap: 8px;
}

.carousel-grid-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.carousel-grid-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15.5px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.2px;
}

.carousel-grid-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.carousel-nav-arrow-btn {
  width: 28px;
  height: 28px;
  border-radius: 0px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.15s ease;
}

.carousel-nav-arrow-btn:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.carousel-grid-viewport {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.carousel-grid-track-slides {
  display: flex;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.carousel-grid-slide-page {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
}

/* 4x3 Desktop / 3-Column Mobile Unified Grid */
.product-grid-4x3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: 100%;
}

@media (min-width: 640px) {
  .product-grid-4x3 {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
}

@media (min-width: 1024px) {
  .product-grid-4x3 {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}

.carousel-grid-dots-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  padding-top: 6px;
}

.carousel-grid-dot {
  width: 8px;
  height: 8px;
  border-radius: 0px;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-grid-dot.active {
  width: 20px;
  background: #0f172a;
}

/* ==========================================================================
   2-ROW UNLIMITED SIDE-SCROLLING PRODUCT CAROUSEL (WITH AUTO-SCROLL)
   ========================================================================== */
.product-2row-scroll-viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 4px 0 10px 0;
  cursor: grab;
  user-select: none;
}

.product-2row-scroll-viewport:active {
  cursor: grabbing;
}

.product-2row-scroll-viewport::-webkit-scrollbar {
  height: 6px;
}

.product-2row-scroll-viewport::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 0px;
}

.product-2row-scroll-viewport::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* 2 Rows Grid that flows horizontally indefinitely (auto-flow: column) */
.product-2row-grid-track {
  display: grid;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  grid-auto-columns: minmax(130px, 145px);
  gap: 8px;
  width: max-content;
  min-width: 100%;
}

@media (min-width: 640px) {
  .product-2row-grid-track {
    grid-auto-columns: minmax(160px, 175px);
    gap: 10px;
  }
}

@media (min-width: 1024px) {
  .product-2row-grid-track {
    grid-auto-columns: minmax(175px, 195px);
    gap: 12px;
  }
}

/* 2-Row Carousel Header Controls */
.carousel-auto-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 0px;
}

.carousel-auto-status-chip i {
  font-size: 9px;
}

/* ==========================================================================
   3D GRAPHICS PROMO POPUP MODAL (FIRST VISIT / ADMIN CONTROLLED)
   ========================================================================== */
.modal-3d-promo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-3d-promo-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-3d-card {
  background: #ffffff;
  width: 100%;
  max-width: 440px;
  border: 2px solid #eab308;
  border-radius: 0px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 30px rgba(234, 179, 8, 0.25);
  overflow: hidden;
  position: relative;
  transform: scale(0.9) perspective(800px) rotateX(10deg);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-3d-promo-overlay.active .modal-3d-card {
  transform: scale(1) perspective(800px) rotateX(0deg);
}

.modal-3d-header-graphic {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #312e81 100%);
  padding: 24px 20px 20px 20px;
  text-align: center;
  position: relative;
  border-bottom: 3px solid #eab308;
  color: #ffffff;
}

.modal-3d-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 0px;
  transition: all 0.2s;
  font-size: 13px;
}

.modal-3d-close-btn:hover {
  background: #dc2626;
  border-color: #dc2626;
}

/* 3D Floating Graphic Cube / Gift */
.gift-box-3d-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px auto;
  perspective: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gift-box-3d-box {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #eab308 0%, #f59e0b 50%, #d97706 100%);
  border: 2px solid #fef08a;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35), inset 0 2px 4px rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #0f172a;
  transform: rotateY(-12deg) rotateX(12deg);
  animation: float3DBox 3s ease-in-out infinite;
}

@keyframes float3DBox {
  0%, 100% {
    transform: rotateY(-12deg) rotateX(12deg) translateY(0);
  }
  50% {
    transform: rotateY(12deg) rotateX(-8deg) translateY(-8px);
  }
}

.modal-3d-badge {
  display: inline-block;
  background: #dc2626;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  border-radius: 0px;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4);
}

.modal-3d-title {
  font-size: 18px;
  font-weight: 900;
  margin: 0 0 6px 0;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.modal-3d-subtitle {
  font-size: 12.5px;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.4;
}

.modal-3d-body {
  padding: 18px 20px;
  background: #ffffff;
}

.modal-3d-coupon-box {
  background: #f8fafc;
  border: 1.5px dashed #ca8a04;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  border-radius: 0px;
}

.modal-3d-coupon-code {
  font-family: 'Plus Jakarta Sans', monospace;
  font-size: 16px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: 1.5px;
}

.modal-3d-copy-btn {
  background: #eab308;
  color: #0f172a;
  border: 1px solid #ca8a04;
  font-size: 11.5px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 0px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.modal-3d-copy-btn:hover {
  background: #ca8a04;
  color: #ffffff;
}

.modal-3d-cta-btn {
  width: 100%;
  background: #dc2626;
  color: #ffffff;
  border: 1px solid #b91c1c;
  padding: 11px;
  font-size: 14px;
  font-weight: 800;
  border-radius: 0px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.modal-3d-cta-btn:hover {
  background: #b91c1c;
  color: #ffffff;
}

.modal-3d-footer-action {
  text-align: center;
  margin-top: 10px;
}

.modal-3d-skip-btn {
  background: none;
  border: none;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.modal-3d-skip-btn:hover {
  color: #0f172a;
}

/* =========================================================
   GLOBAL SQUARE GEOMETRY & ULTRA-SMOOTH ANIMATION ENGINE
   ========================================================= */
*,
*::before,
*::after {
  border-radius: 0px !important;
}

/* Smooth Transitions & Elevation Physics */
.product-card,
.card,
.card-box,
.stat-card,
.vendor-drawer-item,
.btn,
.badge,
.tab-item,
.modal-box,
.cart-drawer,
.menu-drawer,
.dropdown-menu,
.category-card {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.18s ease, 
              border-color 0.18s ease,
              color 0.18s ease !important;
}

/* Product Card Smooth Hover Elevation */
.product-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
  border-color: #cbd5e1 !important;
}

/* Button Active Tactile Press */
.btn:active,
button:active {
  transform: scale(0.98) !important;
}

/* Smooth Fade In Animation */
@keyframes smoothFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in,
.card-box,
.product-card,
.section-wrapper {
  animation: smoothFadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}








