/* ============================================================
   PEACH BLOSSOM STORE - MAIN STYLESHEET
   ============================================================ */

@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:wght@300;400;500;600&display=swap');

/* ---- CSS Variables ---- */
:root {
  --peach-50:  #fff8f5;
  --peach-100: #fde8d8;
  --peach-200: #fbd0b5;
  --peach-300: #f9b08a;
  --peach-400: #f78c5e;
  --peach-500: #ff8c69;
  --peach-600: #e8724e;
  --peach-700: #c1694f;
  --peach-800: #8b4a35;
  --blush:     #f4a5a5;
  --rose:      #e8908a;
  --cream:     #fdf6f0;
  --text-dark: #3d2b1f;
  --text-mid:  #7a5c4a;
  --text-light:#b87050;
  --white:     #ffffff;
  --shadow-sm: 0 2px 8px rgba(255,140,105,0.12);
  --shadow-md: 0 4px 20px rgba(255,140,105,0.18);
  --shadow-lg: 0 8px 40px rgba(255,140,105,0.22);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--peach-50);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }
input, textarea, select { font-family: inherit; outline: none; }

/* ---- Typography ---- */
h1, h2, h3 { font-family: 'Cormorant Garamond', serif; line-height: 1.2; }

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--peach-100);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon { font-size: 28px; }

.logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--peach-700);
  letter-spacing: 0.5px;
}

.logo-text span {
  color: var(--peach-500);
  font-style: italic;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--peach-500);
  transition: width var(--transition);
  border-radius: 2px;
}

.nav-link:hover, .nav-link.active { color: var(--peach-600); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

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

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--peach-50);
  border: 1.5px solid var(--peach-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mid);
  font-size: 18px;
  position: relative;
  transition: all var(--transition);
}

.icon-btn:hover {
  background: var(--peach-100);
  color: var(--peach-600);
  border-color: var(--peach-200);
  transform: translateY(-1px);
}

.badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--peach-500);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-mid);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #fff0e8 0%, #fde8d8 50%, #fbd0b5 100%);
  padding: 80px 24px 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,140,105,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--peach-100);
  color: var(--peach-700);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(42px, 5vw, 66px);
  font-weight: 300;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero h1 em {
  font-style: italic;
  color: var(--peach-600);
}

.hero p {
  font-size: 16px;
  color: var(--text-mid);
  margin-bottom: 36px;
  max-width: 440px;
  line-height: 1.7;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--peach-500), var(--peach-600));
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(255,140,105,0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,140,105,0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--peach-700);
  padding: 13px 28px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid var(--peach-300);
  transition: all var(--transition);
}

.btn-secondary:hover {
  background: var(--peach-100);
  border-color: var(--peach-400);
}

.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  position: relative;
}

.hero-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition);
}

.hero-card:nth-child(2) { margin-top: 24px; }

.hero-card:hover { transform: translateY(-4px); }

.hero-card-emoji { font-size: 42px; margin-bottom: 10px; }
.hero-card-title { font-size: 13px; font-weight: 600; color: var(--text-dark); }
.hero-card-price { font-size: 12px; color: var(--peach-500); font-weight: 700; }

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
  background: white;
  padding: 28px 24px;
  border-bottom: 1px solid var(--peach-100);
}

.stats-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.stat-icon { font-size: 28px; }

.stat-text { }
.stat-value { font-size: 18px; font-weight: 700; color: var(--peach-600); font-family: 'Cormorant Garamond', serif; }
.stat-label { font-size: 12px; color: var(--text-light); }

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section { padding: 72px 24px; }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--peach-500);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 400;
  color: var(--text-dark);
}

.section-title em { font-style: italic; color: var(--peach-600); }

.section-subtitle {
  font-size: 15px;
  color: var(--text-mid);
  margin-top: 10px;
}

.section-inner { max-width: 1280px; margin: 0 auto; }

/* ============================================================
   CATEGORY PILLS
   ============================================================ */
.category-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.cat-pill {
  padding: 8px 20px;
  border-radius: 50px;
  border: 1.5px solid var(--peach-200);
  background: white;
  color: var(--text-mid);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.cat-pill:hover, .cat-pill.active {
  background: var(--peach-500);
  border-color: var(--peach-500);
  color: white;
}

/* ============================================================
   PRODUCT GRID
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-image-wrap {
  position: relative;
  padding-top: 100%;
  background: var(--peach-50);
  overflow: hidden;
}

.product-image-wrap img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-emoji-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 72px;
  opacity: 0.6;
}

.product-actions-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition);
}

.product-card:hover .product-actions-overlay { opacity: 1; transform: translateX(0); }

.overlay-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--peach-100);
  transition: all var(--transition);
}

.overlay-btn:hover { background: var(--peach-100); transform: scale(1.1); }

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, var(--peach-500), var(--peach-600));
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  letter-spacing: 0.5px;
}

.product-body {
  padding: 18px;
}

.product-category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--peach-500);
  margin-bottom: 6px;
}

.product-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.price-current {
  font-size: 20px;
  font-weight: 700;
  color: var(--peach-600);
  font-family: 'Cormorant Garamond', serif;
}

.price-original {
  font-size: 14px;
  color: var(--text-light);
  text-decoration: line-through;
}

.price-save {
  font-size: 11px;
  background: #e8f5e9;
  color: #388e3c;
  padding: 2px 7px;
  border-radius: 50px;
  font-weight: 700;
}

.btn-add-cart {
  width: 100%;
  background: linear-gradient(135deg, var(--peach-500), var(--peach-600));
  color: white;
  padding: 11px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition);
}

.btn-add-cart:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255,140,105,0.4);
}

.btn-add-cart.added {
  background: linear-gradient(135deg, #66bb6a, #43a047);
}

/* ============================================================
   CART SIDEBAR
   ============================================================ */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(61, 43, 31, 0.4);
  z-index: 2000;
  backdrop-filter: blur(3px);
}

.cart-overlay.open { display: block; }

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  background: var(--white);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -8px 0 40px rgba(255,140,105,0.15);
}

.cart-sidebar.open { right: 0; }

.cart-header {
  padding: 24px;
  border-bottom: 1px solid var(--peach-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header h2 {
  font-size: 22px;
  font-weight: 500;
}

.close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--peach-50);
  border: 1px solid var(--peach-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-mid);
  transition: all var(--transition);
}

.close-btn:hover { background: var(--peach-100); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-light);
}

.cart-empty-icon { font-size: 56px; opacity: 0.5; }

.cart-item {
  background: var(--peach-50);
  border-radius: var(--radius-md);
  padding: 14px;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: start;
}

.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: var(--peach-100);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

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

.cart-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--peach-600);
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: white;
  border: 1.5px solid var(--peach-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--peach-600);
  transition: all var(--transition);
}

.qty-btn:hover { background: var(--peach-100); }

.qty-value {
  font-size: 14px;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

.remove-btn {
  color: var(--text-light);
  font-size: 16px;
  transition: color var(--transition);
}

.remove-btn:hover { color: #e53935; }

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--peach-100);
  background: white;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-mid);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  margin: 14px 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  font-family: 'Cormorant Garamond', serif;
  padding-top: 12px;
  border-top: 1.5px solid var(--peach-100);
}

.btn-checkout {
  width: 100%;
  background: linear-gradient(135deg, var(--peach-500), var(--peach-600));
  color: white;
  padding: 15px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(255,140,105,0.3);
}

.btn-checkout:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,140,105,0.4);
}

/* ============================================================
   WISHLIST SIDEBAR
   ============================================================ */
.wishlist-sidebar {
  position: fixed;
  top: 0;
  left: -420px;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  background: var(--white);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transition: left 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 8px 0 40px rgba(255,140,105,0.15);
}

.wishlist-sidebar.open { left: 0; }

/* ============================================================
   CHECKOUT PAGE
   ============================================================ */
.checkout-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

.form-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.form-card h2 {
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 24px;
  color: var(--text-dark);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--peach-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-dark);
  background: var(--peach-50);
  transition: all var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--peach-400);
  background: white;
  box-shadow: 0 0 0 3px rgba(255,140,105,0.12);
}

.form-group textarea { resize: vertical; min-height: 80px; }

.payment-options { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }

.payment-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1.5px solid var(--peach-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
}

.payment-option:hover { border-color: var(--peach-400); background: var(--peach-50); }

.payment-option.selected { border-color: var(--peach-500); background: var(--peach-50); }

.payment-option input[type="radio"] { accent-color: var(--peach-500); width: 16px; height: 16px; }

.payment-option-icon { font-size: 24px; }

.payment-option-text strong { display: block; font-size: 14px; color: var(--text-dark); }
.payment-option-text span { font-size: 12px; color: var(--text-light); }

.order-summary-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 90px;
}

.order-summary-card h3 {
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 20px;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--peach-100);
}

.summary-item-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--peach-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  overflow: hidden;
}

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

.summary-item-name { font-size: 13px; font-weight: 600; color: var(--text-dark); flex: 1; }
.summary-item-qty { font-size: 12px; color: var(--text-light); }
.summary-item-price { font-size: 14px; font-weight: 700; color: var(--peach-600); }

.summary-totals { margin-top: 16px; }

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 8px;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1.5px solid var(--peach-200);
  font-family: 'Cormorant Garamond', serif;
}

.btn-place-order {
  width: 100%;
  background: linear-gradient(135deg, var(--peach-500), var(--peach-600));
  color: white;
  padding: 16px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  margin-top: 20px;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(255,140,105,0.3);
}

.btn-place-order:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255,140,105,0.4);
}

.btn-place-order:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ============================================================
   ORDER CONFIRMATION
   ============================================================ */
.confirmation-page {
  max-width: 600px;
  margin: 60px auto;
  padding: 0 24px;
  text-align: center;
}

.confirmation-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  box-shadow: var(--shadow-lg);
}

.confirmation-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--peach-500), var(--peach-600));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 24px;
  animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
  0% { transform: scale(0); }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.confirmation-title {
  font-size: 36px;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.confirmation-subtitle {
  font-size: 15px;
  color: var(--text-mid);
  margin-bottom: 32px;
  line-height: 1.6;
}

.order-id-display {
  background: var(--peach-50);
  border: 1.5px dashed var(--peach-300);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.order-id-label { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-light); }
.order-id-value { font-size: 24px; font-weight: 700; color: var(--peach-600); font-family: 'Cormorant Garamond', serif; }

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: white;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--peach-500);
  min-width: 280px;
  max-width: 340px;
  animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
  font-size: 14px;
  color: var(--text-dark);
}

.toast.success { border-color: #43a047; }
.toast.error { border-color: #e53935; }

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

@keyframes fadeOut {
  to { transform: translateX(100%); opacity: 0; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: linear-gradient(135deg, #3d2b1f 0%, #5c3d2e 100%);
  color: #c8a898;
  padding: 60px 24px 30px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .logo-text { color: #f4c9b8; }
.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  margin-top: 14px;
  color: #a8887a;
}

.footer-col h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 500;
  color: #f4c9b8;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: #a8887a; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--peach-300); }

.footer-newsletter input {
  width: 100%;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: white;
  font-size: 13px;
  margin-bottom: 10px;
}

.footer-newsletter input::placeholder { color: #a8887a; }

.footer-newsletter .btn-primary { width: 100%; justify-content: center; font-size: 13px; padding: 11px; }

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #a8887a;
}

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   ADMIN STYLES
   ============================================================ */
.admin-body {
  background: #faf7f5;
  min-height: 100vh;
  display: flex;
}

.admin-sidebar {
  width: 240px;
  background: linear-gradient(180deg, #3d2b1f 0%, #5c3d2e 100%);
  min-height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.admin-logo {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-logo .logo-text { color: #f4c9b8; font-size: 18px; }

.admin-nav { flex: 1; padding: 16px 0; }

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  font-size: 13.5px;
  color: #a8887a;
  transition: all var(--transition);
  font-weight: 500;
}

.admin-nav-link:hover, .admin-nav-link.active {
  background: rgba(255,140,105,0.15);
  color: #f4c9b8;
  border-left: 3px solid var(--peach-400);
  padding-left: 17px;
}

.admin-nav-link .nav-icon { font-size: 18px; }

.admin-main {
  margin-left: 240px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  background: white;
  border-bottom: 1px solid var(--peach-100);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-topbar h1 {
  font-size: 22px;
  font-weight: 400;
  color: var(--text-dark);
}

.admin-content { padding: 32px; flex: 1; }

.admin-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.admin-table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--peach-50);
  color: var(--text-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.admin-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--peach-50);
  color: var(--text-dark);
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--peach-50); }

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
}

.status-Processing { background: #fff3e0; color: #e65100; }
.status-Shipped { background: #e3f2fd; color: #1565c0; }
.status-Delivered { background: #e8f5e9; color: #2e7d32; }
.status-Cancelled { background: #ffebee; color: #c62828; }

.metric-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.metric-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--peach-400);
}

.metric-value {
  font-size: 30px;
  font-weight: 700;
  color: var(--peach-600);
  font-family: 'Cormorant Garamond', serif;
}

.metric-label { font-size: 12px; color: var(--text-light); font-weight: 600; letter-spacing: 0.5px; margin-top: 4px; }

.btn-admin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition);
}

.btn-admin-primary {
  background: linear-gradient(135deg, var(--peach-500), var(--peach-600));
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-admin-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-admin-danger { background: #ffebee; color: #c62828; }
.btn-admin-danger:hover { background: #c62828; color: white; }

.btn-admin-secondary { background: var(--peach-50); color: var(--peach-700); border: 1px solid var(--peach-200); }
.btn-admin-secondary:hover { background: var(--peach-100); }

.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.admin-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--peach-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--peach-50);
  color: var(--text-dark);
  transition: all var(--transition);
}

.admin-input:focus {
  border-color: var(--peach-400);
  background: white;
  box-shadow: 0 0 0 3px rgba(255,140,105,0.12);
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--peach-50), var(--peach-100));
}

.login-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.login-card .logo { justify-content: center; margin-bottom: 8px; }
.login-card h2 { font-size: 26px; font-weight: 400; margin-bottom: 8px; }
.login-card p { font-size: 14px; color: var(--text-light); margin-bottom: 32px; }

.login-card .form-group { text-align: left; }

.error-msg {
  background: #ffebee;
  color: #c62828;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .order-summary-card { position: static; }
  .metric-cards { grid-template-columns: repeat(2, 1fr); }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .admin-sidebar { width: 200px; }
  .admin-main { margin-left: 200px; }
  .metric-cards { grid-template-columns: 1fr 1fr; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

@media (max-width: 480px) {
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cart-sidebar, .wishlist-sidebar { width: 100vw; }
  .section { padding: 48px 16px; }
}

/* ============================================================
   PRODUCT CARD LINK OVERRIDES (clickable image area)
   ============================================================ */
a.product-image-wrap {
  text-decoration: none;
  color: inherit;
}

.product-name a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}
.product-name a:hover { color: var(--peach-600); }

/* ── New status badges ──────────────────────────────────── */
.status-badge.status-Pending    { background:#fff3e0; color:#e65100; }
.status-badge.status-Processing { background:#e3f2fd; color:#1565c0; }
.status-badge.status-Shipped    { background:#e8f5e9; color:#2e7d32; }
.status-badge.status-Delivered  { background:#f3e5f5; color:#6a1b9a; }
.status-badge.status-Cancelled  { background:#ffebee; color:#c62828; }

/* ── Confirmation page ─────────────────────────────────── */
.confirmation-page { max-width:560px; margin:0 auto; }
.confirmation-card {
  background:white; border-radius:24px; padding:40px 32px;
  box-shadow:0 8px 40px rgba(255,140,105,0.15); text-align:center;
}
.confirmation-icon {
  width:72px; height:72px; border-radius:50%;
  background:linear-gradient(135deg,var(--peach-500),var(--peach-600));
  display:flex; align-items:center; justify-content:center;
  font-size:32px; color:white; margin:0 auto 20px; font-weight:700;
}
.confirmation-title   { font-size:28px; font-weight:300; margin-bottom:8px; color:var(--text-dark); }
.confirmation-subtitle{ font-size:15px; color:var(--text-mid); margin-bottom:24px; line-height:1.7; }
.order-id-display { background:var(--peach-50); border-radius:12px; padding:16px; margin:20px 0; }
.order-id-label   { font-size:11px; color:var(--text-light); font-weight:700; text-transform:uppercase; letter-spacing:1px; }
.order-id-value   { font-size:24px; font-weight:700; color:var(--peach-600); margin-top:4px; }

/* ── Checkout summary ──────────────────────────────────── */
.checkout-page          { max-width:1100px; margin:0 auto; padding:0 16px; }
.checkout-grid          { display:grid; grid-template-columns:1fr 380px; gap:24px; }
.order-summary-card     { background:white; border-radius:20px; padding:24px; box-shadow:0 4px 24px rgba(255,140,105,0.1); position:sticky; top:20px; }
.order-summary-card h3  { font-size:20px; font-weight:400; margin-bottom:16px; color:var(--text-dark); }
.summary-item           { display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--peach-50); }
.summary-item-img       { width:44px; height:44px; border-radius:10px; background:var(--peach-50); display:flex; align-items:center; justify-content:center; overflow:hidden; flex-shrink:0; }
.summary-item-img img   { width:100%; height:100%; object-fit:cover; }
.summary-item-name      { flex:1; font-size:13px; color:var(--text-dark); font-weight:500; }
.summary-item-qty       { font-size:12px; color:var(--text-light); }
.summary-item-price     { font-size:14px; font-weight:700; color:var(--peach-600); }
.summary-totals         { margin-top:16px; border-top:1px solid var(--peach-100); padding-top:16px; }
.summary-row            { display:flex; justify-content:space-between; font-size:14px; color:var(--text-mid); margin-bottom:8px; }
.summary-total          { display:flex; justify-content:space-between; font-size:18px; font-weight:700; color:var(--text-dark); margin-top:12px; padding-top:12px; border-top:2px solid var(--peach-200); }
.btn-place-order        { width:100%; background:linear-gradient(135deg,var(--peach-500),var(--peach-600)); color:white; border:none; border-radius:14px; padding:16px; font-size:16px; font-weight:700; cursor:pointer; margin-top:20px; display:flex; align-items:center; justify-content:center; gap:8px; transition:all 0.2s; }
.btn-place-order:hover  { transform:translateY(-2px); box-shadow:0 8px 24px rgba(255,140,105,0.35); }
.btn-place-order:disabled{ opacity:0.7; cursor:not-allowed; transform:none; }

/* ── Form cards ───────────────────────────────────────── */
.form-card              { background:white; border-radius:20px; padding:24px; box-shadow:0 4px 24px rgba(255,140,105,0.08); }
.form-card h2           { font-size:18px; font-weight:500; margin-bottom:20px; color:var(--text-dark); }
.form-group             { margin-bottom:16px; }
.form-group label       { display:block; font-size:13px; font-weight:600; color:var(--text-mid); margin-bottom:6px; }
.form-group input,
.form-group textarea,
.form-group select      { width:100%; padding:12px 14px; border:1.5px solid var(--peach-200); border-radius:10px; font-size:14px; font-family:inherit; box-sizing:border-box; transition:border 0.2s; }
.form-group input:focus,
.form-group textarea:focus { border-color:var(--peach-500); outline:none; }
.form-row               { display:grid; grid-template-columns:1fr 1fr; gap:16px; }

/* Payment options */
.payment-options        { display:flex; flex-direction:column; gap:12px; }
.payment-option         { display:flex; align-items:center; gap:14px; padding:14px 16px; border:2px solid var(--peach-100); border-radius:14px; cursor:pointer; transition:all 0.2s; }
.payment-option.selected{ border-color:var(--peach-500); background:var(--peach-50); }
.payment-option input   { display:none; }
.payment-option-icon    { font-size:24px; }
.payment-option-text    { display:flex; flex-direction:column; }
.payment-option-text strong { font-size:14px; color:var(--text-dark); }
.payment-option-text span   { font-size:12px; color:var(--text-light); }

/* Spinner */
.spinner { width:16px; height:16px; border:2px solid rgba(255,255,255,0.4); border-top-color:white; border-radius:50%; animation:spin 0.7s linear infinite; display:inline-block; }
@keyframes spin { to { transform:rotate(360deg); } }

/* ── Admin Input ───────────────────────────────────────── */
.admin-input {
  width:100%; padding:10px 14px; border:1.5px solid var(--peach-200);
  border-radius:8px; font-size:14px; font-family:inherit; box-sizing:border-box;
}
.admin-input:focus { border-color:var(--peach-500); outline:none; }

/* ── Login Page ────────────────────────────────────────── */
.login-page  { min-height:100vh; display:flex; align-items:center; justify-content:center; background:var(--peach-50); padding:20px; }
.login-card  { background:white; border-radius:20px; padding:40px; width:100%; max-width:400px; box-shadow:0 8px 40px rgba(255,140,105,0.15); text-align:center; }
.login-card h2  { font-size:24px; font-weight:400; margin-bottom:4px; }
.login-card > p { font-size:14px; color:var(--text-light); margin-bottom:24px; }
.error-msg   { background:#ffebee; color:#c62828; padding:12px 16px; border-radius:8px; margin-bottom:16px; font-size:14px; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .form-row      { grid-template-columns: 1fr; }
  .order-summary-card { position: static; }
}

/* ── New Collection / New Arrival Cards ────────────────────── */
.new-arrival-card { position: relative; }
.new-arrival-badge {
  position: absolute; top: 12px; left: 12px; z-index: 10;
  background: linear-gradient(135deg, #ff8c69, #ffb347);
  color: white; font-size: 10px; font-weight: 800;
  padding: 4px 12px; border-radius: 20px;
  letter-spacing: 0.5px; text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(255,140,105,0.4);
}

/* ── cat-pill as anchor (not button) ───────────────────────── */
a.cat-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 50px; font-size: 13px;
  font-weight: 600; cursor: pointer; transition: all .2s;
  border: 1.5px solid var(--peach-200); background: white;
  color: var(--text-mid); text-decoration: none;
}
a.cat-pill:hover, a.cat-pill.active {
  background: var(--peach-500); color: white;
  border-color: var(--peach-500);
}
