@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --rose: #E8A4A4;
  --rose-dark: #C06060;
  --mint: #A8D8B9;
  --bg: #FAFAF8;
  --text: #2D2D2D;
  --muted: #6c757d;
  --border: #e8e0dc;
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 0.93rem;
}

h1,h2,h3,h4,h5,h6 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; }

/* ── Navbar ── */
.navbar { background: #fff !important; border-bottom: 1px solid var(--border); }
.navbar-brand { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--rose-dark) !important; }
.nav-link { font-weight: 500; color: var(--text) !important; }
.nav-link:hover { color: var(--rose-dark) !important; }
.cart-badge { background: var(--rose-dark); color: #fff; font-size: 0.65rem; padding: 2px 5px; border-radius: 10px; }

/* ── Buttons ── */
.btn-rose { background: var(--rose-dark); color: #fff; border: none; }
.btn-rose:hover { background: #a84f4f; color: #fff; }
.btn-outline-rose { border: 1.5px solid var(--rose-dark); color: var(--rose-dark); background: transparent; }
.btn-outline-rose:hover { background: var(--rose-dark); color: #fff; }

/* ── Product Card ── */
.product-card { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; background: #fff; }
.product-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.10); transform: translateY(-3px); }
.product-card .card-img-top { height: 220px; object-fit: cover; }
.product-card .badge-sale { background: var(--rose-dark); color: #fff; font-size: 0.72rem; border-radius: 20px; padding: 3px 8px; }
.product-card .price { font-size: 1.05rem; font-weight: 700; color: var(--rose-dark); }
.product-card .price-original { text-decoration: line-through; color: var(--muted); font-size: 0.85rem; }
.product-card .wishlist-btn { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,0.9); border: none; border-radius: 50%; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.product-card .wishlist-btn.active { color: var(--rose-dark); }

/* ── Stars ── */
.stars { color: #f5a623; font-size: 0.85rem; }

/* ── Section Headers ── */
.section-title { font-size: 1.5rem; font-weight: 800; position: relative; padding-bottom: 8px; }
.section-title::after { content: ''; display: block; width: 48px; height: 3px; background: var(--rose-dark); border-radius: 2px; margin-top: 6px; }

/* ── Hero Banner ── */
.hero-carousel .carousel-item img { height: 480px; object-fit: cover; border-radius: 16px; }
@media (max-width: 768px) { .hero-carousel .carousel-item img { height: 200px; } }

/* ── Category Cards ── */
.category-card { border-radius: 12px; overflow: hidden; position: relative; cursor: pointer; }
.category-card img { height: 160px; object-fit: cover; width: 100%; transition: transform 0.3s; }
.category-card:hover img { transform: scale(1.05); }
.category-card .overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.55)); padding: 16px 12px 10px; color: #fff; font-weight: 700; font-size: 1rem; }

/* ── Filter Sidebar ── */
.filter-sidebar { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; position: sticky; top: 80px; }
.filter-sidebar .filter-heading { font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 10px; }

/* ── Product Detail ── */
.product-gallery .main-img { width: 100%; height: 440px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); }
.product-gallery .thumb { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; }
.product-gallery .thumb.active, .product-gallery .thumb:hover { border-color: var(--rose-dark); }
.product-detail-price { font-size: 1.8rem; font-weight: 800; color: var(--rose-dark); }
.product-detail-original { font-size: 1.1rem; text-decoration: line-through; color: var(--muted); }
.variant-btn { border: 1.5px solid var(--border); border-radius: 6px; padding: 5px 14px; cursor: pointer; font-size: 0.88rem; background: #fff; }
.variant-btn.active { border-color: var(--rose-dark); color: var(--rose-dark); background: #fdf0f0; font-weight: 600; }

/* ── Cart ── */
.cart-table th { font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); border-top: none; }
.qty-input { width: 58px; text-align: center; }
.cart-summary { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 24px; }

/* ── Checkout ── */
.checkout-step { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 24px; margin-bottom: 20px; }
.checkout-step-title { font-size: 1rem; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.checkout-step-title .step-num { background: var(--rose-dark); color: #fff; border-radius: 50%; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; }
.payment-method-card { border: 1.5px solid var(--border); border-radius: 10px; padding: 14px 18px; cursor: pointer; transition: border-color 0.15s; }
.payment-method-card.selected { border-color: var(--rose-dark); background: #fdf7f7; }

/* ── Toasts ── */
.toast-container { position: fixed; top: 80px; right: 20px; z-index: 9999; }

/* ── Mini Cart Offcanvas ── */
.offcanvas-cart .offcanvas-body { padding: 0; }
.mini-cart-item { padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; gap: 12px; align-items: center; }
.mini-cart-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }

/* ── Account Sidebar ── */
.account-sidebar { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.account-sidebar .nav-link { color: var(--text); border-radius: 8px; padding: 9px 14px; font-weight: 500; }
.account-sidebar .nav-link.active, .account-sidebar .nav-link:hover { background: #fdf0f0; color: var(--rose-dark); }

/* ── Flash Sale Countdown ── */
.countdown-box { display: inline-flex; gap: 6px; }
.countdown-unit { background: var(--rose-dark); color: #fff; border-radius: 6px; padding: 4px 10px; font-weight: 700; font-size: 1rem; min-width: 42px; text-align: center; }
.countdown-unit span { display: block; font-size: 0.6rem; font-weight: 400; }

/* ── Order Status Badge ── */
.status-pending { background: #fff3cd; color: #856404; }
.status-confirmed { background: #d1e7dd; color: #0f5132; }
.status-processing { background: #cfe2ff; color: #084298; }
.status-shipped { background: #d0d5ff; color: #3730a3; }
.status-delivered { background: #d1e7dd; color: #0f5132; }
.status-cancelled { background: #f8d7da; color: #842029; }
.status-returned { background: #e2e3e5; color: #41464b; }

/* ── Footer ── */
footer { background: var(--text); color: #ccc; padding: 48px 0 24px; margin-top: 60px; }
footer h6 { color: #fff; font-weight: 700; margin-bottom: 14px; }
footer a { color: #aaa; text-decoration: none; }
footer a:hover { color: #fff; }
footer .social-icon { width: 36px; height: 36px; background: rgba(255,255,255,0.1); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; margin-right: 8px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .product-gallery .main-img { height: 280px; }
  .product-detail-price { font-size: 1.4rem; }
  .cart-table { font-size: 0.82rem; }
}
