@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================================
   DESIGN TOKENS & VARIABLES
   ========================================================================== */
:root {
  /* HSL Color System */
  --bg-primary: #fcfdfa;
  --bg-secondary: #f4f7f0;
  --bg-card: #ffffff;
  --text-primary: #1c2b18;
  --text-secondary: #52664d;
  --accent-primary: #137c01; /* Classic Deal A1 Green */
  --accent-secondary: #199e03;
  --accent-light: #e6f3eb;
  --accent-gold: #c89524;
  --accent-gold-light: #fdf6e6;
  --accent-danger: #d93838;
  --accent-danger-light: #fdf2f2;
  
  --border-color: #e2e9de;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --border-radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(28, 43, 24, 0.04);
  --shadow-md: 0 12px 30px rgba(28, 43, 24, 0.08);
  --shadow-lg: 0 20px 40px rgba(28, 43, 24, 0.12);
  
  --font-main: 'Outfit', sans-serif;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s ease;
  
  --header-height: 80px;
  --container-width: 1200px;
}

[data-theme="dark"] {
  --bg-primary: #0c110a;
  --bg-secondary: #141d11;
  --bg-card: #192316;
  --text-primary: #f2f7f0;
  --text-secondary: #9cb19a;
  --accent-primary: #2fa155;
  --accent-secondary: #48c372;
  --accent-light: #162a1a;
  --accent-gold: #e2ab39;
  --accent-gold-light: #2c2514;
  
  --border-color: #243320;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.grid { display: grid; }

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.site-header {
  height: var(--header-height);
  background-color: rgba(252, 253, 250, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

[data-theme="dark"] .site-header {
  background-color: rgba(12, 17, 10, 0.85);
}

.header-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-primary);
}

.logo img {
  height: 48px;
  width: auto;
}

.logo-text span {
  color: var(--text-primary);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-primary);
  transition: width var(--transition-normal);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.action-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-full);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  position: relative;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.action-btn:hover {
  background-color: var(--accent-light);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--accent-primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg-card);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  background: linear-gradient(rgba(28, 43, 24, 0.3), rgba(28, 43, 24, 0.5)), url('/images/banner.webp') no-repeat center center;
  background-size: cover;
  padding: 120px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
  color: #ffffff;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 24px;
}

.hero-content h1 span {
  color: #ffd369;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.15rem;
  color: #e2e9de;
  line-height: 1.6;
  margin: 0 auto 36px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-weight: 600;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-normal);
  gap: 10px;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(19, 124, 1, 0.15);
}

.btn-primary:hover {
  background-color: var(--accent-secondary);
  box-shadow: 0 12px 24px rgba(19, 124, 1, 0.25);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-secondary);
  border-color: var(--text-secondary);
  transform: translateY(-2px);
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image-bg {
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
  z-index: 1;
  top: -10%;
  left: -10%;
}

.hero-img {
  position: relative;
  z-index: 2;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  max-height: 420px;
  object-fit: cover;
}

/* ==========================================================================
   PRODUCTS CATALOG
   ========================================================================== */
.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.catalog-title h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.catalog-title p {
  color: var(--text-secondary);
}

/* Filters */
.filter-tabs {
  display: flex;
  gap: 12px;
  background-color: var(--bg-secondary);
  padding: 6px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  list-style: none;
}

.filter-btn {
  padding: 8px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--text-primary);
}

.filter-btn.active {
  background-color: var(--bg-card);
  color: var(--accent-primary);
  box-shadow: var(--shadow-sm);
}

/* Product Grid */
.product-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}

/* Product Card */
.product-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-secondary);
}

.product-card-img-link {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background-color: var(--bg-secondary);
  position: relative;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover img {
  transform: scale(1.08);
}

.product-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--accent-gold-light);
  color: var(--accent-gold);
  border: 1px solid rgba(200, 149, 36, 0.2);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--border-radius-full);
  z-index: 10;
}

.product-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.product-card-title a:hover {
  color: var(--accent-primary);
}

.product-card-category {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.product-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
}

.product-price::after {
  content: ' ৳';
  font-size: 1rem;
  font-weight: 600;
}

.add-to-cart-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--border-radius-md);
  background-color: var(--accent-light);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.add-to-cart-btn:hover {
  background-color: var(--accent-primary);
  color: #ffffff;
  transform: scale(1.05);
}

/* ==========================================================================
   PRODUCT DETAIL PAGE
   ========================================================================== */
.product-detail-grid {
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.product-gallery {
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  aspect-ratio: 1;
  overflow: hidden;
}

.product-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info-panel .product-category {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--accent-primary);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.product-info-panel h1 {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.product-info-panel .price-tag {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.product-info-panel .price-tag::after {
  content: ' BDT';
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.product-description {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.product-features-list {
  list-style: none;
  margin-bottom: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.product-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 500;
}

.product-features-list li::before {
  content: '✓';
  color: var(--accent-primary);
  font-weight: 700;
}

.purchase-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  background-color: var(--bg-secondary);
  overflow: hidden;
  height: 56px;
}

.qty-btn {
  width: 50px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  transition: background-color var(--transition-fast);
}

.qty-btn:hover {
  background-color: var(--border-color);
}

.qty-input {
  width: 50px;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.purchase-actions .btn {
  height: 56px;
  flex-grow: 1;
}

/* ==========================================================================
   SHOPPING CART PAGE
   ========================================================================== */
.cart-grid {
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: start;
}

.cart-items-card, .summary-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 32px;
}

.cart-title-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.cart-empty-state {
  text-align: center;
  padding: 48px 0;
}

.cart-empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.cart-empty-state p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Cart Table Layout */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1.5fr 1fr 100px 40px;
  align-items: center;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.cart-item-name p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-top: 4px;
}

.cart-item-qty {
  display: flex;
  justify-content: center;
}

.cart-item-qty .quantity-selector {
  height: 40px;
}

.cart-item-qty .qty-btn {
  width: 32px;
}

.cart-item-qty .qty-input {
  width: 36px;
  font-size: 0.95rem;
}

.cart-item-price {
  font-weight: 800;
  text-align: right;
  font-size: 1.1rem;
}

.cart-item-price::after {
  content: ' ৳';
}

.cart-item-remove {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  display: flex;
  justify-content: center;
}

.cart-item-remove:hover {
  color: var(--accent-danger);
}

/* Order Summary */
.summary-card h3 {
  font-size: 1.35rem;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-weight: 500;
  color: var(--text-secondary);
}

.summary-row.total {
  font-weight: 800;
  color: var(--text-primary);
  font-size: 1.3rem;
  border-top: 1px dashed var(--border-color);
  padding-top: 16px;
  margin-top: 16px;
}

.summary-row span.val::after {
  content: ' ৳';
}

.summary-row.shipping-notice {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--accent-gold);
  background-color: var(--accent-gold-light);
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  display: block;
  text-align: center;
}

.summary-card .btn {
  width: 100%;
  margin-top: 24px;
}

/* ==========================================================================
   CHECKOUT PAGE
   ========================================================================== */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.form-control:focus {
  border-color: var(--accent-primary);
  background-color: var(--bg-card);
}

textarea.form-control {
  height: 100px;
  padding: 16px;
  resize: vertical;
}

.payment-options {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.payment-card {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  background-color: var(--bg-secondary);
  transition: all var(--transition-fast);
}

.payment-card input {
  accent-color: var(--accent-primary);
}

.payment-card.active {
  border-color: var(--accent-primary);
  background-color: var(--accent-light);
  color: var(--accent-primary);
}

.payment-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.payment-card.disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* ==========================================================================
   SUCCESS PAGE
   ========================================================================== */
.success-card {
  text-align: center;
  max-width: 600px;
  margin: 40px auto;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
}

.success-icon {
  width: 80px;
  height: 80px;
  background-color: var(--accent-light);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  border-radius: var(--border-radius-full);
  margin: 0 auto 24px;
}

.order-number {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--accent-primary);
  background-color: var(--bg-secondary);
  padding: 8px 20px;
  border-radius: var(--border-radius-sm);
  display: inline-block;
  margin: 16px 0 24px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: #172214;
  color: #ffffff;
  padding: 60px 0 30px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-widget h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-widget p {
  color: #a9beab;
  line-height: 1.6;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #a9beab;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #a9beab;
  font-size: 0.9rem;
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
}

.toast {
  background-color: var(--bg-card);
  border: 1px solid var(--accent-primary);
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius-md);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  color: var(--text-primary);
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  color: var(--accent-primary);
  font-size: 1.25rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN MODIFIERS
   ========================================================================== */
@media screen and (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }
  
  .hero-content h1 {
    font-size: 2.75rem;
  }
  
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .cart-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 768px) {
  .catalog-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .filter-tabs {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }
  
  .nav-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }
  
  .nav-menu.active {
    max-height: 400px;
    padding: 16px 24px;
  }

  .nav-menu li {
    width: 100%;
    margin: 0;
  }

  .nav-link {
    display: block;
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .nav-link::after {
    display: none;
  }

  .menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    margin-left: 8px;
    border-radius: 6px;
  }
  .menu-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
  }
  
  .cart-item {
    grid-template-columns: 60px 1.5fr 100px 30px;
    gap: 12px;
  }
  
  .cart-item-qty {
    grid-column: 2 / 4;
    justify-content: flex-start;
    margin-top: 8px;
  }
  
  .cart-item-price {
    grid-column: 3;
    text-align: right;
  }
  
  .cart-item-remove {
    grid-column: 4;
  }
  
  .cart-item-image {
    width: 60px;
    height: 60px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ==========================================================================
   PRELOADER
   ========================================================================== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  opacity: 1;
  visibility: visible;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.loader-logo {
  width: 76px;
  height: 76px;
  border-radius: var(--border-radius-full);
  animation: pulse-breathing 1.8s infinite ease-in-out;
  object-fit: cover;
  z-index: 2;
}

.loader-spinner {
  position: absolute;
  width: 104px;
  height: 104px;
  border: 3px solid transparent;
  border-top-color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 1.2s infinite linear;
  z-index: 1;
}

@keyframes pulse-breathing {
  0%, 100% {
    transform: scale(0.92);
    filter: drop-shadow(0 0 4px rgba(19, 124, 1, 0.15));
  }
  50% {
    transform: scale(1.08);
    filter: drop-shadow(0 0 16px rgba(19, 124, 1, 0.4));
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   SHOP LAYOUT (SIDEBAR FILTERING)
   ========================================================================== */
.shop-layout {
  display: grid;
  grid-template-columns: fit-content(240px) 1fr;
  gap: 30px;
  align-items: start;
}

.shop-sidebar {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 20px;
  min-width: 200px;
  position: sticky;
  top: calc(var(--header-height) + 68px + 24px); /* Stick below floating filters bar */
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.sidebar-filter-group {
  margin-bottom: 30px;
}

.sidebar-filter-group:last-child {
  margin-bottom: 0;
}

.sidebar-filter-group h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--accent-primary);
  letter-spacing: 0.75px;
  font-weight: 700;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.sidebar-filter-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-filter-list .filter-btn {
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  display: block;
}

.sidebar-filter-list .filter-btn:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.sidebar-filter-list .filter-btn.active {
  background-color: var(--accent-light);
  color: var(--accent-primary);
  border-color: rgba(19, 124, 1, 0.1);
}

@media screen and (max-width: 992px) {
  .shop-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .shop-sidebar {
    position: static;
    padding: 20px;
  }
  
  .sidebar-filter-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .sidebar-filter-list li {
    flex-grow: 1;
  }
  
  .sidebar-filter-list .filter-btn {
    text-align: center;
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}

/* ==========================================================================
   FLOATING TOP FILTERS
   ========================================================================== */
.catalog-filters-top {
  position: sticky;
  top: var(--header-height);
  background-color: rgba(252, 253, 250, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 90;
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
  margin-bottom: 36px;
  width: 100%;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

[data-theme="dark"] .catalog-filters-top {
  background-color: rgba(12, 17, 10, 0.92);
}

/* ==========================================================================
   LANDING PAGE STYLES FOR CATEGORY PAGES
   ========================================================================== */
.landing-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border-color);
}
.landing-section-alt {
  background-color: var(--bg-card);
  padding: 80px 0;
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}
.landing-title {
  text-align: center;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 40px;
  position: relative;
}
.landing-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--accent-primary);
  margin: 15px auto 0;
  border-radius: 2px;
}
.landing-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.landing-card {
  background-color: var(--bg-card);
  padding: 30px;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}
.landing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-primary);
}
.landing-card-alt {
  background-color: var(--bg-body);
  padding: 30px;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}
.landing-card-alt:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-primary);
}
.landing-card h3, .landing-card-alt h3 {
  color: var(--accent-primary);
  font-size: 1.35rem;
  margin-bottom: 15px;
  font-weight: 700;
}
.landing-split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: center;
}
.landing-split-text {
  font-size: 1.05rem;
}
.landing-split-text h3 {
  font-size: 1.6rem;
  color: var(--text-primary);
  margin-bottom: 16px;
  font-weight: 700;
}
.landing-split-text p {
  margin-bottom: 16px;
}
.landing-split-img {
  text-align: center;
}
.landing-split-img img {
  max-width: 100%;
  max-height: 280px;
  width: auto;
  border-radius: var(--border-radius-lg);
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.1));
  transition: transform var(--transition-normal);
}
.landing-split-img img:hover {
  transform: scale(1.03) rotate(1deg);
}
@media screen and (max-width: 768px) {
  .landing-split {
    grid-template-columns: 1fr;
  }
}
