/* ==========================================================================
   Digantika Super Shop & Agro Bazar (দিগন্তিকা সুপার শপ)
   E-Commerce Modern Stylesheet
   ========================================================================== */

:root {
  --color-primary: #15803d;
  --color-primary-dark: #0e3d23;
  --color-primary-light: #16a34a;
  --color-navy: #0b1e38;
  --color-navy-dark: #071528;
  --color-accent: #f59e0b;
  --color-accent-red: #ef4444;
  --color-blue: #2563eb;
  --color-bg-light: #f8fafc;
  --color-card-border: #e2e8f0;
  --color-text-main: #0f172a;
  --color-text-muted: #64748b;
  --font-main: 'Hind Siliguri', 'Noto Sans Bengali', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 15px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg-light);
  color: var(--color-text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ==========================================================================
   1. Top Announcement Bar (Matching Reference)
   ========================================================================== */
.shop-top-bar {
  background-color: var(--color-navy);
  color: #e2e8f0;
  font-size: 0.82rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.shop-top-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-features-list {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.top-feature-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #cbd5e1;
}

.top-feature-item svg {
  width: 14px;
  height: 14px;
  color: #38bdf8;
}

.top-feature-item a {
  color: #ffffff;
  font-weight: 600;
}

.top-right-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-social-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-social-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: var(--transition);
}

.top-social-icon:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
}

.top-social-icon svg {
  width: 12px;
  height: 12px;
}

.top-lang-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #cbd5e1;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   2. Main Header (Search Bar, Logo, Cart, User)
   ========================================================================== */
.shop-main-header {
  background: #ffffff;
  padding: 0.85rem 0;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 900;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.shop-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.shop-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.shop-brand-text {
  display: flex;
  flex-direction: column;
}

.shop-brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.shop-brand-title span {
  color: var(--color-primary);
}

.shop-brand-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.5px;
}

/* Search Bar Component */
.shop-search-wrapper {
  flex: 1;
  max-width: 620px;
  position: relative;
}

.search-box {
  display: flex;
  align-items: center;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-sm);
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(21, 128, 61, 0.08);
}

.search-input {
  flex: 1;
  border: none;
  padding: 0.65rem 1rem;
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  color: var(--color-text-main);
}

.search-input::placeholder {
  color: #94a3b8;
}

.search-category-select {
  border: none;
  border-left: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  font-family: inherit;
  color: #475569;
  outline: none;
  cursor: pointer;
}

.search-submit-btn {
  background: var(--color-primary);
  color: #ffffff;
  padding: 0 1.25rem;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

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

.search-submit-btn svg {
  width: 18px;
  height: 18px;
}

/* Header Action Buttons (Account & Cart) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.action-btn-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  color: var(--color-text-main);
  transition: var(--transition);
}

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

.action-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #334155;
  transition: var(--transition);
}

.action-btn-item:hover .action-icon-wrap {
  background: #dcfce7;
  color: var(--color-primary);
}

.action-icon-wrap svg {
  width: 20px;
  height: 20px;
}

.cart-badge-count {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

.action-text-col {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.action-label-top {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.action-value-bottom {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-text-main);
}

/* Mobile Toggle in Header */
.shop-mobile-toggle {
  display: none;
  padding: 0.5rem;
  color: var(--color-navy);
  font-size: 1.5rem;
}

/* ==========================================================================
   3. Navigation Bar (All Categories Button & Menu Links)
   ========================================================================== */
.shop-nav-bar {
  background-color: var(--color-navy);
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.shop-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* "All Categories" Dropdown Trigger */
.categories-btn-wrapper {
  position: relative;
}

.all-categories-btn {
  background: var(--color-primary);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.75rem 1.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: var(--transition);
}

.all-categories-btn:hover {
  background: var(--color-primary-light);
}

.all-categories-btn svg {
  width: 18px;
  height: 18px;
}

/* Mega Dropdown Menu for Categories */
.categories-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 250px;
  background: #ffffff;
  color: var(--color-text-main);
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  border: 1px solid #e2e8f0;
  border-top: none;
  display: none;
  flex-direction: column;
  z-index: 800;
  animation: fadeIn 0.2s ease;
}

.categories-btn-wrapper:hover .categories-dropdown-menu,
.categories-dropdown-menu.active {
  display: flex;
}

.cat-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  transition: var(--transition);
}

.cat-menu-item:last-child {
  border-bottom: none;
}

.cat-menu-item:hover {
  background: #f0fdf4;
  color: var(--color-primary);
  padding-left: 1.25rem;
}

.cat-menu-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
}

/* Horizontal Nav Links */
.shop-nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.shop-nav-link {
  color: #e2e8f0;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.8rem 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.shop-nav-link:hover,
.shop-nav-link.active {
  color: #38bdf8;
}

.shop-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #38bdf8;
  border-radius: 2px 2px 0 0;
}

/* Badges for Links (HOT & SALE) */
.badge-hot {
  background: #22c55e;
  color: #052e16;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-sale {
  background: #ef4444;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.nav-link-village {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.3rem 0.75rem !important;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  color: #fef08a !important;
}

.nav-link-village:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   4. Hero Banner & Normal Image Slider with Shop Now Button
   ========================================================================== */
.shop-hero-section {
  padding: 1.25rem 0 2rem;
}

.hero-banner-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(11, 30, 56, 0.15);
  background: #0b1e38;
}

.banner-slides-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  min-height: 380px;
  max-height: 480px;
  overflow: hidden;
}

.banner-slide-item {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.banner-slide-item.active {
  display: block;
  animation: bannerFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes bannerFadeIn {
  from {
    opacity: 0;
    transform: scale(1.02);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.banner-slide-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
  color: #ffffff;
  overflow: hidden;
}

.banner-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.banner-slide-link:hover .banner-slide-img {
  transform: scale(1.04);
}

/* Semi-transparent dark vignette gradient overlay on left for crisp readability */
.banner-slide-caption {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 52%;
  min-width: 340px;
  padding: 3rem 3.5rem;
  background: linear-gradient(90deg, rgba(7, 21, 40, 0.9) 0%, rgba(7, 21, 40, 0.72) 65%, rgba(7, 21, 40, 0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.9rem;
  z-index: 2;
}

.slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.slide-title {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.18;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.slide-title span {
  color: #fef08a;
}

.slide-desc {
  font-size: 0.98rem;
  color: #e2e8f0;
  max-width: 440px;
  line-height: 1.55;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
}

.slide-btn-wrap {
  margin-top: 0.4rem;
}

.slide-shop-now-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #16a34a;
  color: #ffffff;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.45);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.banner-slide-link:hover .slide-shop-now-btn {
  background: #15803d;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 28px rgba(22, 163, 74, 0.6);
}

.slide-shop-now-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.banner-slide-link:hover .slide-shop-now-btn svg {
  transform: translateX(5px);
}

/* 4 Trust Badges Strip Under Slider */
.slider-bottom-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
  background: #ffffff;
  padding: 1.15rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
}

.trust-strip-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.trust-strip-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-strip-icon.icon-blue { background: #e0f2fe; color: #0284c7; }
.trust-strip-icon.icon-green { background: #dcfce7; color: #16a34a; }
.trust-strip-icon.icon-purple { background: #f3e8ff; color: #9333ea; }
.trust-strip-icon.icon-orange { background: #ffedd5; color: #ea580c; }

.trust-strip-icon svg {
  width: 22px;
  height: 22px;
}

.trust-strip-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.trust-strip-text strong {
  font-size: 0.92rem;
  color: var(--color-navy);
  font-weight: 700;
}

.trust-strip-text span {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* Slider Controls (Arrows & Dots) */
.slider-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  background: #ffffff;
  color: var(--color-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 10;
  cursor: pointer;
  transition: var(--transition);
}

.slider-arrow-btn:hover {
  background: var(--color-primary);
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow-left { left: 1rem; }
.slider-arrow-right { right: 1rem; }

.slider-pagination-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
  z-index: 10;
}

.dot-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
}

.dot-indicator.active {
  width: 24px;
  border-radius: 6px;
  background: #ffffff;
}

/* ==========================================================================
   5. Top Categories Section (Matching Reference Style)
   ========================================================================== */
.top-categories-section {
  padding: 1.25rem 0 2.25rem;
  background: transparent;
}

.top-cat-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  border-bottom: 2px solid #16a34a;
  margin-bottom: 1.5rem;
  padding-bottom: 0;
}

.top-cat-badge {
  background: #000000;
  color: #ffffff;
  padding: 8px 34px 8px 18px;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  display: inline-flex;
  align-items: center;
  /* Slanted cut on right edge exactly as in reference: top sticks out, bottom slants in */
  clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
  margin-bottom: -1px;
}

.top-cat-badge span {
  position: relative;
  top: -1px;
}

.top-cat-see-all {
  color: #16a34a;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  padding-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.top-cat-see-all:hover {
  color: #15803d;
  transform: translateX(3px);
}

.top-cat-items-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1rem;
  align-items: start;
}

.top-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  padding: 0.85rem 0.5rem 0.65rem;
  border-radius: var(--radius-md);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  background: transparent;
  user-select: none;
}

.top-cat-thumb {
  width: 95px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.top-cat-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.05));
}

.top-cat-card:hover .top-cat-img,
.top-cat-card.active .top-cat-img {
  transform: translateY(-6px) scale(1.08);
  filter: drop-shadow(0 6px 14px rgba(22, 163, 74, 0.2));
}

.top-cat-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.top-cat-sublabel {
  font-size: 0.74rem;
  font-weight: 500;
  color: #64748b;
  margin-top: 2px;
  transition: color 0.2s ease;
}

.top-cat-card:hover .top-cat-label,
.top-cat-card.active .top-cat-label {
  color: #16a34a;
}

.top-cat-card:hover .top-cat-sublabel,
.top-cat-card.active .top-cat-sublabel {
  color: #15803d;
}

.top-cat-card.active {
  position: relative;
}

.top-cat-card.active::after {
  content: '';
  width: 24px;
  height: 3px;
  background: #16a34a;
  border-radius: 2px;
  margin-top: 6px;
}

/* ==========================================================================
   6. Flash Sale / Hot Deals Section (With Countdown Timer)
   ========================================================================== */
.flash-sale-section {
  padding: 2rem 0;
  background: #ffffff;
  border-radius: 20px;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
}

.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #fee2e2;
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-heading-h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-navy);
}

.countdown-timer-box {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.timer-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  margin-right: 0.25rem;
}

.time-digit-block {
  background: var(--color-accent-red);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  min-width: 32px;
  text-align: center;
}

.time-colon {
  font-weight: 800;
  color: var(--color-accent-red);
}

.view-all-link {
  color: var(--color-primary);
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.view-all-link:hover {
  color: var(--color-primary-dark);
  gap: 0.5rem;
}

/* Products Grid */
.products-grid-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding: 1.5rem;
}

.product-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.product-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.product-badge-discount {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--color-accent-red);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  z-index: 2;
}

.product-thumb-wrap {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  background: #f8fafc;
  border-radius: 8px;
  overflow: hidden;
}

.product-thumb-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

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

.product-category-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.product-title-link {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.35;
  margin: 0.25rem 0 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7rem;
}

.product-rating-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: #f59e0b;
  margin-bottom: 0.65rem;
}

.product-reviews-count {
  color: #94a3b8;
  font-size: 0.72rem;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: auto;
  margin-bottom: 0.85rem;
}

.price-current {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-navy);
}

.price-original {
  font-size: 0.88rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.add-to-cart-btn {
  width: 100%;
  background: #f0fdf4;
  color: var(--color-primary);
  border: 1px solid #bbf7d0;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 0;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: var(--transition);
}

.add-to-cart-btn:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.25);
}

.product-card-btns {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.product-card-btns .add-to-cart-btn {
  flex: 1;
  font-size: 0.84rem;
  padding: 0.6rem 0.25rem;
  white-space: nowrap;
}

.btn-card-buy-now {
  flex: 1;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border: none;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.6rem 0.25rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.25);
  white-space: nowrap;
}

.btn-card-buy-now:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(245, 158, 11, 0.4);
}

.add-to-cart-btn svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   7. Customer Trust Banner (4 Cards)
   ========================================================================== */
.shop-trust-features-section {
  padding: 1rem 0 3rem;
}

.trust-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.feature-benefit-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.benefit-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f0fdf4;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-icon-circle svg {
  width: 24px;
  height: 24px;
}

.benefit-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-navy);
}

.benefit-desc {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   8. Off-Canvas Cart Drawer
   ========================================================================== */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer-window {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 90vw;
  height: 100vh;
  background: #ffffff;
  z-index: 2010;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer-window.active {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.cart-drawer-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-close-btn {
  font-size: 1.25rem;
  color: #64748b;
  padding: 0.25rem;
  border-radius: 4px;
  transition: var(--transition);
}

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

.cart-drawer-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #f1f5f9;
}

.cart-item-img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: contain;
  background: #f8fafc;
  padding: 4px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.2;
}

.cart-item-price {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 0.25rem;
}

.cart-qty-ctrl {
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
}

.qty-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  font-size: 0.85rem;
  font-weight: 700;
}

.qty-display {
  width: 28px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.cart-item-remove-btn {
  color: #ef4444;
  padding: 4px;
  cursor: pointer;
}

.cart-drawer-footer {
  padding: 1.25rem;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-navy);
}

.cart-checkout-btn {
  width: 100%;
  background: var(--color-primary);
  color: #ffffff;
  padding: 0.85rem 0;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.cart-checkout-btn:hover {
  background: var(--color-primary-dark);
}

/* ==========================================================================
   9. Footer Section
   ========================================================================== */
.shop-footer {
  background: var(--color-navy);
  color: #cbd5e1;
  padding: 3rem 0 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.shop-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-col p {
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links-list a {
  font-size: 0.88rem;
  color: #cbd5e1;
  transition: var(--transition);
}

.footer-links-list a:hover {
  color: #38bdf8;
  padding-left: 4px;
}

.footer-bottom-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #94a3b8;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Mobile Navigation Drawer */
.shop-mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.shop-mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.shop-mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 290px;
  max-width: 85%;
  background: #ffffff;
  z-index: 1001;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15);
}

.shop-mobile-drawer.active {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  background: var(--color-navy);
  color: #ffffff;
}

.drawer-title {
  font-weight: 700;
  font-size: 1.05rem;
}

.drawer-close-btn {
  color: #ffffff;
  font-size: 1.25rem;
  padding: 4px 8px;
  cursor: pointer;
}

.drawer-body {
  padding: 1.25rem;
  overflow-y: auto;
  flex: 1;
}

.drawer-section-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.5px;
  margin-bottom: 0.65rem;
}

.drawer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.drawer-link {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #334155;
  transition: all 0.2s;
}

.drawer-link:hover,
.drawer-link.active {
  background: #f0fdf4;
  color: var(--color-primary);
}

.drawer-link.highlight-village {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.drawer-hotline-btn {
  display: block;
  background: var(--color-primary);
  color: #ffffff;
  text-align: center;
  padding: 0.7rem;
  border-radius: 8px;
  font-weight: 700;
  margin-top: 0.5rem;
  text-decoration: none;
}

/* ==========================================================================
   10. Mobile Responsiveness
   ========================================================================== */
@media (max-width: 1024px) {
  .banner-slides-track {
    aspect-ratio: 16 / 8;
    min-height: 340px;
  }
  .banner-slide-caption {
    width: 60%;
    padding: 2.5rem;
  }
  .slide-title {
    font-size: 2.1rem;
  }
  .slider-bottom-trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .categories-ribbon-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .top-cat-items-row {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
  }
  .products-grid-row {
    grid-template-columns: repeat(3, 1fr);
  }
  .trust-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .shop-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .shop-top-bar {
    display: none;
  }
  .shop-mobile-toggle {
    display: block;
  }
  .shop-search-wrapper {
    order: 3;
    width: 100%;
    max-width: 100%;
  }
  .search-category-select {
    display: none;
  }
  .header-container {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .shop-nav-bar {
    display: none;
  }
  .banner-slides-track {
    aspect-ratio: 16 / 9;
    min-height: 250px;
  }
  .banner-slide-caption {
    width: 80%;
    padding: 1.5rem 1.25rem;
    gap: 0.5rem;
  }
  .slide-title {
    font-size: 1.45rem;
  }
  .slide-desc {
    display: none;
  }
  .slide-shop-now-btn {
    padding: 0.55rem 1.2rem;
    font-size: 0.88rem;
  }
  .slider-bottom-trust-strip {
    grid-template-columns: repeat(2, 1fr);
    padding: 0.85rem 1rem;
    gap: 0.75rem;
  }
  .top-cat-items-row {
    display: flex;
    overflow-x: auto;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .top-cat-items-row::-webkit-scrollbar {
    display: none;
  }
  .top-cat-card {
    flex: 0 0 110px;
    padding: 0.5rem 0.25rem;
  }
  .top-cat-thumb {
    width: 75px;
    height: 68px;
  }
  .top-cat-label {
    font-size: 0.82rem;
  }
  .top-cat-badge {
    font-size: 1rem;
    padding: 6px 24px 6px 12px;
  }
  .top-cat-see-all {
    font-size: 0.85rem;
  }
  .categories-ribbon-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .products-grid-row {
    grid-template-columns: repeat(2, 1fr);
    padding: 0.75rem;
    gap: 0.75rem;
  }
  .trust-features-grid {
    grid-template-columns: 1fr;
  }
  .shop-footer-grid {
    grid-template-columns: 1fr;
  }
  .action-text-col {
    display: none;
  }
}

@media (max-width: 480px) {
  .banner-slides-track {
    min-height: 220px;
  }
  .banner-slide-caption {
    width: 100%;
    background: linear-gradient(180deg, rgba(7, 21, 40, 0.1) 0%, rgba(7, 21, 40, 0.88) 100%);
    justify-content: flex-end;
    padding: 1rem 0.85rem 1.75rem;
  }
  .slide-title {
    font-size: 1.25rem;
  }
  .slide-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
  }
  .slider-bottom-trust-strip {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    padding: 0.75rem;
  }
  .top-cat-badge {
    font-size: 0.92rem;
    padding: 5px 20px 5px 10px;
  }
  .products-grid-row {
    grid-template-columns: 1fr;
  }
  .categories-ribbon-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   11. E-Commerce Modals & Interactive Components (Quick View, Checkout, Invoice, Tracking)
   ========================================================================== */

/* Modal Base */
.shop-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(5px);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.shop-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.shop-modal-container {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.98);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1.5rem;
}

.shop-modal-overlay.active .shop-modal-container {
  transform: translateY(0) scale(1);
}

.shop-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #64748b;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}

.shop-modal-close:hover {
  background: #ef4444;
  color: #ffffff;
}

/* Quick View Modal Layout */
.quick-view-container {
  max-width: 820px;
  padding: 1.75rem;
}

.quick-view-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: center;
}

.quick-view-img-wrap {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.quick-view-img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.quick-view-img:hover {
  transform: scale(1.05);
}

.quick-view-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--color-accent-red);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.quick-view-category {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quick-view-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-navy);
  margin: 0.35rem 0 0.5rem;
  line-height: 1.3;
}

.quick-view-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #f59e0b;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.quick-view-price-box {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: #f0fdf4;
  border-radius: 8px;
  border: 1px solid #dcfce7;
}

.qv-current-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-primary-dark);
}

.qv-original-price {
  font-size: 1.1rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.qv-stock-status {
  font-size: 0.82rem;
  color: #16a34a;
  font-weight: 700;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.quick-view-desc {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.quick-view-options {
  margin-bottom: 1.25rem;
}

.qv-opt-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.4rem;
  display: block;
}

.qv-units-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.qv-unit-btn {
  padding: 0.4rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  background: #ffffff;
  cursor: pointer;
  transition: var(--transition);
}

.qv-unit-btn.active,
.qv-unit-btn:hover {
  border-color: var(--color-primary);
  background: #f0fdf4;
  color: var(--color-primary);
}

.quick-view-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.qv-qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
}

.qv-qty-btn {
  width: 38px;
  height: 42px;
  background: #f8fafc;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #334155;
}

.qv-qty-input {
  width: 48px;
  height: 42px;
  text-align: center;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  outline: none;
}

.qv-btn-cart {
  flex: 1;
  background: #f0fdf4;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.qv-btn-cart:hover {
  background: var(--color-primary);
  color: #ffffff;
}

.qv-btn-buy {
  flex: 1;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.qv-btn-buy:hover {
  background: var(--color-primary-dark);
}

/* ==========================================================================
   Checkout Modal (Full eCommerce Order Placement)
   ========================================================================== */
.checkout-modal-container {
  max-width: 950px;
  padding: 2rem;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
}

.checkout-section-header {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f1f5f9;
}

.checkout-form-group {
  margin-bottom: 1rem;
}

.checkout-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.35rem;
}

.checkout-input,
.checkout-select,
.checkout-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition);
}

.checkout-input:focus,
.checkout-select:focus,
.checkout-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.15);
}

.checkout-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Payment Method Radio Cards */
.payment-methods-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.payment-method-card {
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: var(--transition);
}

.payment-method-card.active {
  border-color: var(--color-primary);
  background: #f0fdf4;
}

.payment-method-card input[type="radio"] {
  accent-color: var(--color-primary);
}

.pm-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
}

.pm-desc {
  font-size: 0.72rem;
  color: #64748b;
}

.payment-instruction-box {
  background: #fefce8;
  border: 1px dashed #ca8a04;
  border-radius: 8px;
  padding: 0.85rem;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: #854d0e;
  line-height: 1.5;
}

/* Order Summary Column in Checkout */
.checkout-summary-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.checkout-items-preview {
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.75rem;
}

.co-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
}

.co-item-name {
  color: #334155;
  font-weight: 600;
  flex: 1;
}

.co-item-qty {
  color: #64748b;
  font-size: 0.8rem;
}

.co-item-total {
  font-weight: 700;
  color: var(--color-navy);
}

/* Coupon Box */
.coupon-input-wrap {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.coupon-input {
  flex: 1;
  padding: 0.55rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.85rem;
}

.coupon-btn {
  background: #e2e8f0;
  color: #1e293b;
  padding: 0 1rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: var(--transition);
}

.coupon-btn:hover {
  background: var(--color-primary);
  color: #ffffff;
}

/* Calculation Table */
.calc-table {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  color: #475569;
}

.calc-row.total-row {
  border-top: 2px dashed #cbd5e1;
  padding-top: 0.75rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-navy);
}

.confirm-order-btn {
  background: var(--color-primary);
  color: #ffffff;
  padding: 0.9rem;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 800;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(21, 128, 61, 0.3);
  transition: var(--transition);
}

.confirm-order-btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

/* ==========================================================================
   Order Success & Official Invoice Modal
   ========================================================================== */
.invoice-modal-container {
  max-width: 680px;
  padding: 2.25rem;
}

.invoice-paper {
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.75rem;
  background: #ffffff;
  position: relative;
}

.invoice-badge-status {
  display: inline-block;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.invoice-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
}

.invoice-meta-col {
  text-align: right;
  font-size: 0.85rem;
  color: #64748b;
}

.invoice-id-num {
  font-family: monospace;
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-navy);
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.88rem;
}

.invoice-table th {
  background: #f8fafc;
  color: #475569;
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #cbd5e1;
}

.invoice-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}

.invoice-actions-row {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-invoice-print {
  background: #0f172a;
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-invoice-track {
  background: var(--color-primary);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ==========================================================================
   Order Tracking Component (#track-order)
   ========================================================================== */
.track-order-section {
  padding: 3.5rem 0;
  background: linear-gradient(180deg, #f8fafc 0%, #ecfdf5 100%);
  border-top: 1px solid #e2e8f0;
}

.track-order-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0;
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  max-width: 800px;
  margin: 0 auto;
}

.track-search-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.track-search-input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
}

.track-search-input:focus {
  border-color: var(--color-primary);
}

.track-search-btn {
  background: var(--color-primary);
  color: #ffffff;
  font-weight: 700;
  padding: 0 1.75rem;
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
}

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

/* Stepper */
.order-stepper {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 2.5rem 0 1.5rem;
}

.order-stepper::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 40px;
  right: 40px;
  height: 4px;
  background: #e2e8f0;
  z-index: 1;
}

.stepper-progress-fill {
  position: absolute;
  top: 18px;
  left: 40px;
  height: 4px;
  background: var(--color-primary);
  z-index: 2;
  transition: width 0.5s ease;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 3;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.88rem;
  color: #64748b;
  transition: var(--transition);
}

.step-item.completed .step-circle {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

.step-item.active .step-circle {
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 0 0 4px #dcfce7;
}

.step-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  margin-top: 0.5rem;
  text-align: center;
}

/* ==========================================================================
   Toast Notification System
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast-message {
  pointer-events: auto;
  background: #0f172a;
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(20px);
  opacity: 0;
  animation: toastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  border-left: 4px solid var(--color-primary);
}

@keyframes toastIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

/* Floating Mobile Checkout Bar */
.mobile-bottom-cart-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  padding: 0.75rem 1.25rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
  z-index: 850;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
  .mobile-bottom-cart-bar {
    display: flex;
  }
  .quick-view-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .quick-view-img {
    height: 220px;
  }
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  .payment-methods-grid {
    grid-template-columns: 1fr;
  }
  .order-stepper {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }
  .order-stepper::before,
  .stepper-progress-fill {
    display: none;
  }
  .step-item {
    flex-direction: row;
    gap: 1rem;
  }
  .toast-container {
    bottom: 4.5rem;
    left: 1rem;
    right: 1rem;
  }
}

/* Print Only Styles for Official Invoice */
@media print {
  body * {
    visibility: hidden;
  }
  .invoice-paper,
  .invoice-paper * {
    visibility: visible;
  }
  .invoice-paper {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border: none;
    padding: 0;
  }
  .invoice-actions-row,
  .shop-modal-close {
    display: none !important;
  }
}

