/* ============================================================
   BIO BEAUTY — styles.css
   Aesthetic: Organic Luxury / Botanical Refined
   Fonts: Cormorant Garamond (display) + DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

/* ── Variables ── */
:root {
  --cream:     #faf8f4;
  --cream-2:   #f3ede4;
  --cream-3:   #ece3d7;
  --sand:      #d9c9b3;
  --caramel:   #b68b65;
  --dark:      #1c1a17;
  --mid:       #4a4540;
  --light:     #8a7f74;
  --white:     #ffffff;
  --accent:    #a37852;
  --accent-lt: rgba(166,120,82,0.12);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --shadow-sm: 0 2px 12px rgba(28,26,23,0.06);
  --shadow-md: 0 8px 32px rgba(28,26,23,0.09);
  --shadow-lg: 0 20px 60px rgba(28,26,23,0.12);
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--cream);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Container ── */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ============================================================
   HEADER
   ============================================================ */
header {
  background: rgba(250,248,244,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cream-3);
  position: sticky;
  top: 0;
  z-index: 200;
  transition: box-shadow var(--transition);
}

header.scrolled { box-shadow: var(--shadow-md); }

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 0;
}

/* Logo */
.logo { cursor: pointer; }
.logo h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 1px;
  background: linear-gradient(135deg, var(--dark) 30%, var(--caramel));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.logo span {
  font-size: 0.65rem;
  color: var(--caramel);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 400;
  display: block;
  margin-top: 3px;
}

/* Search */
.search-bar {
  flex: 1;
  max-width: 420px;
  position: relative;
}
.search-bar input {
  width: 100%;
  padding: 12px 20px 12px 44px;
  border: 1.5px solid var(--cream-3);
  border-radius: 50px;
  font-size: 0.875rem;
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--dark);
  transition: all var(--transition);
}
.search-bar input::placeholder { color: var(--light); }
.search-bar input:focus {
  outline: none;
  border-color: var(--caramel);
  box-shadow: 0 0 0 3px var(--accent-lt);
}
.search-bar .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--light);
  font-size: 0.9rem;
  pointer-events: none;
}

/* User Actions */
.user-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}
.action-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  border: none;
  color: var(--dark);
  transition: all var(--transition);
}
.action-btn:hover {
  background: var(--cream-2);
  color: var(--caramel);
}
.action-btn i { font-size: 1.15rem; }

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--caramel);
  color: white;
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--cream);
  transition: transform 0.2s;
}
.cart-count.bump { transform: scale(1.4); }

/* Nav */
.nav-menu {
  padding: 10px 0;
  border-top: 1px solid var(--cream-3);
}
.nav-menu ul {
  display: flex;
  gap: 4px;
  list-style: none;
  flex-wrap: wrap;
}
.nav-menu a {
  text-decoration: none;
  color: var(--mid);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 7px 16px;
  border-radius: 50px;
  transition: all var(--transition);
  display: block;
}
.nav-menu a:hover,
.nav-menu a.active {
  color: var(--accent);
  background: var(--accent-lt);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(120deg, #f5ede1 0%, var(--cream) 55%, #f0e8e0 100%);
  border-radius: var(--radius-lg);
  margin: 28px 0 48px;
  padding: 64px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  overflow: hidden;
  position: relative;
}

/* decorative blob */
.hero::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(182,139,101,0.10) 0%, transparent 70%);
  border-radius: 50%;
  top: -80px;
  right: 20%;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(182,139,101,0.14);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-content { flex: 1; min-width: 280px; }
.hero-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.4rem;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 18px;
  color: var(--dark);
}
.hero-content h2 em {
  font-style: italic;
  color: var(--caramel);
}
.hero-content p {
  font-size: 1.05rem;
  color: var(--mid);
  margin-bottom: 32px;
  max-width: 440px;
  font-weight: 300;
}

.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary {
  background: var(--dark);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover {
  background: var(--caramel);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(182,139,101,0.35);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--dark);
  border: 1.5px solid var(--sand);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.9rem;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-secondary:hover {
  border-color: var(--caramel);
  color: var(--caramel);
  background: var(--accent-lt);
}

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--cream-3);
}
.hero-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.75rem;
  color: var(--light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 3px;
}

.hero-img {
  flex: 0.6;
  text-align: center;
  position: relative;
}
.hero-img img {
  max-width: 100%;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 52px 0 28px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.3px;
}
.section-link {
  font-size: 0.85rem;
  color: var(--caramel);
  text-decoration: none;
  font-weight: 500;
  transition: opacity var(--transition);
}
.section-link:hover { opacity: 0.7; }

/* ============================================================
   CATEGORIES
   ============================================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 56px;
}
.category-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  text-align: center;
  padding: 36px 16px;
  transition: all var(--transition);
  cursor: pointer;
  border: 1.5px solid var(--cream-3);
  position: relative;
  overflow: hidden;
}
.category-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--caramel);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.category-card:hover {
  transform: translateY(-8px);
  border-color: var(--sand);
  box-shadow: var(--shadow-md);
}
.category-card:hover::after { transform: scaleX(1); }

.category-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: all var(--transition);
}
.category-card:hover .category-icon {
  background: var(--caramel);
}
.category-icon i {
  font-size: 1.4rem;
  color: var(--caramel);
  transition: color var(--transition);
}
.category-card:hover .category-icon i { color: white; }

.category-card h3 {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.category-card p {
  font-size: 0.78rem;
  color: var(--light);
}

/* ============================================================
   SHOP LAYOUT
   ============================================================ */
.shop-layout {
  display: flex;
  gap: 32px;
  margin: 32px 0 72px;
  align-items: flex-start;
}

/* ── Sidebar Filters ── */
.filters-sidebar {
  width: 264px;
  flex-shrink: 0;
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--cream-3);
  height: fit-content;
  position: sticky;
  top: 120px;
}

.filters-sidebar .sidebar-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--cream-3);
}

.filter-group {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--cream-3);
}
.filter-group:last-of-type {
  border-bottom: none;
  margin-bottom: 16px;
}
.filter-group h4 {
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--mid);
  margin-bottom: 14px;
}

/* Price range */
.price-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--light);
  margin-top: 8px;
}
#priceVal { font-weight: 600; color: var(--accent); }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--caramel) 0%, var(--caramel) 100%, var(--cream-3) 100%);
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--caramel);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.15s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }

/* Checkboxes */
.filter-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.875rem;
  color: var(--mid);
  cursor: pointer;
  transition: color 0.2s;
}
.filter-group label:hover { color: var(--dark); }

input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--sand);
  border-radius: 4px;
  background: var(--white);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
  position: relative;
}
input[type="checkbox"]:checked {
  background: var(--caramel);
  border-color: var(--caramel);
}
input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

/* Reset filters btn */
.btn-reset {
  width: 100%;
  padding: 10px;
  background: var(--cream-2);
  border: none;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--mid);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all var(--transition);
}
.btn-reset:hover {
  background: var(--cream-3);
  color: var(--dark);
}

/* ── Product Grid ── */
.products-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
  align-content: start;
}

/* Product Card */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--cream-3);
  overflow: hidden;
  padding: 0 0 18px;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--sand);
}

.product-img-wrap {
  position: relative;
  background: var(--cream-2);
  overflow: hidden;
}
.product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.product-card:hover .product-img { transform: scale(1.05); }

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--dark);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 50px;
}

.wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--light);
  transition: all 0.2s;
  opacity: 0;
  transform: scale(0.8);
}
.product-card:hover .wishlist-btn {
  opacity: 1;
  transform: scale(1);
}
.wishlist-btn:hover { color: #e05;  background: white; }
.wishlist-btn.active { color: #e05; }

.product-body { padding: 14px 16px 0; }
.product-title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 3px;
  line-height: 1.4;
  color: var(--dark);
}
.product-brand {
  font-size: 0.7rem;
  color: var(--caramel);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding: 0 16px;
}
.product-price {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--dark);
}
.stars {
  color: #d4a843;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0 16px;
  margin-top: 4px;
  margin-bottom: 12px;
}
.stars span { color: var(--light); margin-left: 2px; }

.add-to-cart {
  width: calc(100% - 32px);
  margin: 0 16px;
  background: var(--cream-2);
  border: none;
  padding: 10px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'DM Sans', sans-serif;
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.add-to-cart:hover {
  background: var(--dark);
  color: white;
}
.add-to-cart i { font-size: 0.75rem; }

/* Empty state */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  color: var(--light);
}
.empty-state i { font-size: 3rem; margin-bottom: 16px; opacity: 0.4; }
.empty-state p { font-size: 0.95rem; }

/* ============================================================
   PRODUCT MODAL
   ============================================================ */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28,26,23,0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
.modal.open { display: flex; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-content {
  background: var(--white);
  max-width: 840px;
  width: 100%;
  border-radius: var(--radius-lg);
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.close-modal {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  background: var(--cream-2);
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid);
  transition: all 0.2s;
  z-index: 10;
  line-height: 1;
}
.close-modal:hover { background: var(--cream-3); color: var(--dark); }

.modal-img {
  flex: 1;
  min-width: 240px;
  background: var(--cream-2);
}
.modal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 300px;
  display: block;
}

.modal-info {
  flex: 1.4;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.modal-info .product-brand {
  font-size: 0.75rem;
  color: var(--caramel);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  font-weight: 600;
}
#modalTitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 12px;
}
#modalDesc {
  color: var(--mid);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
  font-weight: 300;
}
.modal-price {
  font-size: 1.8rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 24px;
}
.modal-qty {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.qty-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--cream-3);
  background: transparent;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: var(--dark);
}
.qty-btn:hover { border-color: var(--caramel); color: var(--caramel); }
#modalQty { font-weight: 600; font-size: 1rem; min-width: 20px; text-align: center; }

/* ============================================================
   CART SIDEBAR
   ============================================================ */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  height: 100%;
  background: var(--white);
  box-shadow: -8px 0 40px rgba(28,26,23,0.12);
  z-index: 1100;
  transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
}
.cart-sidebar.open { right: 0; }

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28,26,23,0.35);
  z-index: 1099;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.cart-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--cream-3);
}
.cart-header h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 500;
}
.cart-close {
  width: 34px;
  height: 34px;
  background: var(--cream-2);
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid);
  transition: all 0.2s;
}
.cart-close:hover { background: var(--cream-3); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--cream-3) transparent;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--cream-3);
  animation: fadeIn 0.2s ease;
}
.cart-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: var(--cream-2);
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-brand {
  font-size: 0.7rem;
  color: var(--caramel);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--cream-3);
  background: transparent;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.cart-qty-btn:hover { border-color: var(--caramel); color: var(--caramel); }
.cart-item-qty { font-size: 0.85rem; font-weight: 600; min-width: 14px; text-align: center; }
.cart-item-price {
  font-size: 0.9rem;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}
.cart-item-del {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--light);
  font-size: 0.8rem;
  margin-left: auto;
  align-self: flex-start;
  padding: 2px;
  transition: color 0.2s;
}
.cart-item-del:hover { color: #e05; }

.cart-empty-msg {
  text-align: center;
  padding: 40px 0;
  color: var(--light);
  font-size: 0.9rem;
}
.cart-empty-msg i { font-size: 2.4rem; opacity: 0.3; display: block; margin-bottom: 12px; }

.cart-footer {
  padding-top: 18px;
  border-top: 1px solid var(--cream-3);
  margin-top: 8px;
}
.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--light);
  margin-bottom: 6px;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.cart-total-row span:last-child {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: var(--dark);
}
.btn-checkout {
  width: 100%;
  background: var(--dark);
  color: white;
  border: none;
  padding: 15px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-checkout:hover {
  background: var(--caramel);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(182,139,101,0.35);
}

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--dark);
  color: white;
  padding: 12px 22px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s;
  opacity: 0;
  white-space: nowrap;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast i { color: var(--caramel); font-size: 1rem; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #f0ebe3;
  padding: 60px 0 32px;
  margin-top: 72px;
  border-top: 1px solid var(--cream-3);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--dark);
}
.footer-brand p {
  font-size: 0.85rem;
  color: var(--light);
  line-height: 1.7;
  max-width: 240px;
}
.footer-col h5 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--mid);
  margin-bottom: 16px;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 0.875rem;
  color: var(--light);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--caramel); }

.social-icons { display: flex; gap: 10px; margin-top: 4px; }
.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.social-icon:hover { background: var(--caramel); border-color: var(--caramel); color: white; }

.newsletter-form { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 10px 16px;
  border-radius: 50px;
  border: 1.5px solid var(--sand);
  background: transparent;
  font-size: 0.8rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--dark);
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-form input:focus { border-color: var(--caramel); }
.newsletter-form button {
  background: var(--dark);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.newsletter-form button:hover { background: var(--caramel); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--sand);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: var(--light);
}
.footer-badges { display: flex; gap: 8px; }
.badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  background: var(--white);
  color: var(--mid);
  border: 1px solid var(--sand);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .shop-layout { flex-direction: column; }
  .filters-sidebar { width: 100%; position: static; }
  .hero { padding: 40px 28px; }
  .hero-content h2 { font-size: 2.2rem; }
  .hero-stats { gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cart-sidebar { width: 100%; }
  .section-header { flex-direction: column; gap: 4px; }
}

@media (max-width: 500px) {
  .container { padding: 0 16px; }
  .header-top { flex-direction: column; align-items: flex-start; }
  .search-bar { max-width: 100%; width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── Page load animation ── */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.product-card {
  animation: cardIn 0.4s ease both;
}
