@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Poppins:wght@300;400;500;600&display=swap');

:root {
  --rose:     #C0395B;
  --rose-lt:  #F9EEF2;
  --rose-dark:#9B2547;
  --gold:     #B8860B;
  --ink:      #1A1A2E;
  --muted:    #6B7280;
  --border:   #F0D9E3;
  --bg:       #FDF8FA;
  --white:    #FFFFFF;
  --green:    #059669;
  --green-dark: #065F46;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Poppins', sans-serif; background: var(--bg); color: var(--ink); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ── HEADER ── */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(192,57,91,.08);
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
}
.logo-wrap { display: flex; flex-direction: column; }
.logo-name { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--rose); font-weight: 700; }
.logo-sub  { font-size: 10px; color: var(--muted); letter-spacing: .5px; }
.logo-tag  { font-size: 11px; color: var(--rose); font-style: italic; margin-top: 1px; }
.header-nav { display: flex; align-items: center; gap: 24px; }
.header-nav a { font-size: 13px; font-weight: 500; color: var(--muted); transition: color .2s; }
.header-nav a:hover { color: var(--rose); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.cart-btn {
  background: var(--rose); color: #fff; border: none; padding: 9px 18px;
  border-radius: 25px; font-size: 13px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; gap: 7px; transition: background .2s;
}
.cart-btn:hover { background: var(--rose-dark); }
.cart-count {
  background: #fff; color: var(--rose); width: 20px; height: 20px;
  border-radius: 50%; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ── HERO BANNER ── */
.hero {
  background: linear-gradient(135deg, #1A1A2E 0%, #C0395B 100%);
  padding: 60px 20px; text-align: center; color: #fff;
}
.hero h1 { font-family: 'Playfair Display', serif; font-size: 42px; margin-bottom: 12px; }
.hero p  { font-size: 16px; opacity: .85; margin-bottom: 28px; }
.hero-search {
  max-width: 500px; margin: 0 auto;
  display: flex; background: #fff; border-radius: 50px;
  overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,.2);
}
.hero-search input {
  flex: 1; border: none; padding: 14px 20px; font-size: 14px;
  font-family: 'Poppins', sans-serif; outline: none; color: var(--ink);
}
.hero-search button {
  background: var(--rose); border: none; padding: 14px 24px;
  color: #fff; font-size: 16px; cursor: pointer; transition: background .2s;
}
.hero-search button:hover { background: var(--rose-dark); }

/* ── CATEGORY BAR ── */
.cat-bar { background: var(--white); border-bottom: 1px solid var(--border); }
.cat-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; gap: 6px; overflow-x: auto;
}
.cat-btn {
  padding: 12px 22px; border: none; background: none; font-family: 'Poppins', sans-serif;
  font-size: 13px; font-weight: 500; cursor: pointer; color: var(--muted);
  border-bottom: 3px solid transparent; white-space: nowrap; transition: all .2s;
}
.cat-btn.active, .cat-btn:hover { color: var(--rose); border-bottom-color: var(--rose); }

/* ── PRODUCTS GRID ── */
.shop-main { max-width: 1200px; margin: 0 auto; padding: 32px 20px; }
.section-title {
  font-family: 'Playfair Display', serif; font-size: 26px;
  color: var(--ink); margin-bottom: 24px;
}
.section-title span { color: var(--rose); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

/* ── PRODUCT CARD ── */
.product-card {
  background: var(--white); border-radius: 16px;
  border: 1px solid var(--border); overflow: hidden;
  transition: transform .3s, box-shadow .3s; cursor: pointer;
}
.product-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 40px rgba(192,57,91,.15);
}
.product-img {
  position: relative; overflow: hidden;
  aspect-ratio: 3/4; background: var(--rose-lt);
}
.product-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.product-card:hover .product-img img { transform: scale(1.08); }
.badge-sale {
  position: absolute; top: 10px; left: 10px;
  background: var(--rose); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px;
}
.badge-featured {
  position: absolute; top: 10px; right: 10px;
  background: var(--gold); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px;
}
.product-info { padding: 14px; }
.product-cat  { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--rose); margin-bottom: 4px; }
.product-name { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 8px; line-height: 1.4; }
.product-price { display: flex; align-items: center; gap: 8px; }
.price-current { font-size: 17px; font-weight: 700; color: var(--rose); }
.price-original { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.price-save { font-size: 11px; color: var(--green); font-weight: 600; }
.product-sizes { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; }
.size-chip {
  font-size: 10px; padding: 2px 7px; border: 1px solid var(--border);
  border-radius: 4px; color: var(--muted);
}

/* ── PRODUCT DETAIL ── */
.product-detail { max-width: 1100px; margin: 0 auto; padding: 32px 20px; }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.pd-images .main-img {
  border-radius: 16px; overflow: hidden; aspect-ratio: 3/4;
  background: var(--rose-lt); margin-bottom: 12px;
}
.pd-images .main-img img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.pd-thumb {
  aspect-ratio: 1; border-radius: 8px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; transition: border-color .2s;
}
.pd-thumb.active { border-color: var(--rose); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-info h1 { font-family: 'Playfair Display', serif; font-size: 28px; margin-bottom: 8px; }
.pd-cat-badge {
  display: inline-block; background: var(--rose-lt); color: var(--rose);
  font-size: 11px; padding: 4px 12px; border-radius: 20px; font-weight: 600; margin-bottom: 16px;
}
.pd-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.pd-price .current { font-size: 30px; font-weight: 700; color: var(--rose); }
.pd-price .original { font-size: 18px; color: var(--muted); text-decoration: line-through; }
.pd-price .saving { font-size: 13px; color: var(--green); font-weight: 600; }
.pd-desc { font-size: 14px; color: var(--muted); line-height: 1.8; margin-bottom: 24px; }

.option-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 8px; }
.size-options { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.size-opt {
  padding: 8px 16px; border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 13px; cursor: pointer; transition: all .2s; font-weight: 500;
}
.size-opt:hover, .size-opt.selected { border-color: var(--rose); color: var(--rose); background: var(--rose-lt); }

.color-options { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.color-opt {
  padding: 7px 14px; border: 1.5px solid var(--border); border-radius: 20px;
  font-size: 12px; cursor: pointer; transition: all .2s;
}
.color-opt:hover, .color-opt.selected { border-color: var(--rose); background: var(--rose-lt); color: var(--rose); }

.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.qty-ctrl { display: flex; align-items: center; gap: 0; border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden; }
.qty-ctrl button { border: none; background: #f9f9f9; width: 36px; height: 36px; font-size: 18px; cursor: pointer; }
.qty-ctrl span { padding: 0 16px; font-weight: 600; }

.btn-cart {
  flex: 1; background: var(--rose); color: #fff; border: none; padding: 14px;
  border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer;
  font-family: 'Poppins', sans-serif; transition: background .2s;
}
.btn-cart:hover { background: var(--rose-dark); }
.btn-buy {
  flex: 1; background: var(--ink); color: #fff; border: none; padding: 14px;
  border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer;
  font-family: 'Poppins', sans-serif; transition: background .2s;
}
.btn-buy:hover { background: #111; }
.pd-actions { display: flex; gap: 12px; }

/* ── CART SIDEBAR ── */
.cart-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4);
  z-index: 200; justify-content: flex-end;
}
.cart-overlay.open { display: flex; }
.cart-panel {
  background: #fff; width: 380px; height: 100%; display: flex; flex-direction: column;
  box-shadow: -8px 0 30px rgba(0,0,0,.1);
}
.cart-header {
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.cart-header h3 { font-family: 'Playfair Display', serif; font-size: 20px; }
.cart-close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--muted); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px; }
.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cart-item-img { width: 70px; height: 90px; border-radius: 8px; object-fit: cover; background: var(--rose-lt); flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.cart-item-meta { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.cart-item-price { font-size: 14px; font-weight: 700; color: var(--rose); }
.cart-item-remove { background: none; border: none; color: #DC2626; cursor: pointer; font-size: 16px; }
.cart-footer { padding: 20px 24px; border-top: 1px solid var(--border); }
.coupon-row { display: flex; gap: 8px; margin-bottom: 16px; }
.coupon-input {
  flex: 1; padding: 9px 12px; border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 13px; font-family: 'Poppins', sans-serif; text-transform: uppercase;
}
.coupon-input:focus { outline: none; border-color: var(--rose); }
.btn-coupon {
  background: var(--rose-lt); color: var(--rose); border: 1.5px solid var(--rose);
  padding: 9px 16px; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer;
}
.cart-totals { margin-bottom: 16px; }
.cart-total-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13px; }
.cart-total-row.grand { font-size: 17px; font-weight: 700; color: var(--rose); border-top: 2px solid var(--border); padding-top: 10px; margin-top: 6px; }
.cart-discount { color: var(--green); }
.btn-checkout {
  width: 100%; background: var(--rose); color: #fff; border: none; padding: 14px;
  border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer;
  font-family: 'Poppins', sans-serif; transition: background .2s;
}
.btn-checkout:hover { background: var(--rose-dark); }

/* ── FORMS ── */
.form-page { max-width: 560px; margin: 40px auto; padding: 0 20px; }
.form-card { background: #fff; border-radius: 16px; padding: 36px; border: 1px solid var(--border); }
.form-title { font-family: 'Playfair Display', serif; font-size: 24px; margin-bottom: 6px; }
.form-sub   { font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: 9px; font-size: 14px; font-family: 'Poppins', sans-serif;
  color: var(--ink); background: var(--bg); transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--rose); background: #fff;
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.btn-submit {
  width: 100%; background: var(--rose); color: #fff; border: none; padding: 13px;
  border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer;
  font-family: 'Poppins', sans-serif; transition: background .2s; margin-top: 8px;
}
.btn-submit:hover { background: var(--rose-dark); }
.form-link { text-align: center; margin-top: 16px; font-size: 13px; color: var(--muted); }
.form-link a { color: var(--rose); font-weight: 600; }
.alert { padding: 12px 16px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; }
.alert.err { background: #FEE2E2; color: #991B1B; }
.alert.ok  { background: #D1FAE5; color: #065F46; }

/* ── PAYMENT ── */
.payment-methods { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.pay-opt { border: 2px solid var(--border); border-radius: 10px; padding: 14px; text-align: center; cursor: pointer; transition: all .2s; }
.pay-opt:hover, .pay-opt.selected { border-color: var(--rose); background: var(--rose-lt); }
.pay-opt .pay-icon { font-size: 24px; margin-bottom: 4px; }
.pay-opt .pay-name { font-size: 12px; font-weight: 600; color: var(--ink); }
.pay-opt.disabled { opacity: .4; pointer-events: none; }
.shipping-note { background: #FEF3C7; border: 1px solid #FCD34D; border-radius: 8px; padding: 10px 14px; font-size: 12px; color: #92400E; margin-bottom: 16px; }

/* ── VERTICAL ORDER TIMELINE ── (styling now fully inline in track.php/account.php to avoid any CSS-cache dependency) */

/* Track-order popup modal (used on account.php's My Orders) */
/* (track modal styling moved fully inline in account.php) */

/* ── FOOTER ── */
.site-footer { background: var(--ink); color: #9CA3AF; padding: 40px 20px 20px; margin-top: 60px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 30px; }
.footer-brand .fn { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--rose); margin-bottom: 4px; }
.footer-brand p { font-size: 13px; line-height: 1.8; }
.footer-links h4 { font-size: 13px; color: #fff; font-weight: 600; margin-bottom: 12px; }
.footer-links a { display: block; font-size: 13px; margin-bottom: 8px; transition: color .2s; }
.footer-links a:hover { color: var(--rose); }
.footer-bottom { border-top: 1px solid #2D3748; padding-top: 20px; text-align: center; font-size: 12px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  /* Header */
  .header-inner { padding: 10px 14px; gap: 8px; flex-wrap: nowrap; }
  .logo-name { font-size: 16px; }
  .logo-sub, .logo-tag { font-size: 9px; }
  .logo-wrap img { height: 38px !important; }

  /* Hide main nav on mobile - use cat-bar instead */
  .header-nav { display: none; }

  /* Cart button compact */
  .cart-btn { padding: 7px 12px; font-size: 12px; }

  /* Cat bar scrollable */
  .cat-bar { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cat-inner { min-width: max-content; padding: 0 12px; }
  .cat-btn { padding: 10px 14px; font-size: 12px; }

  /* Search box */
  .hero-search input { font-size: 13px; }

  /* Products */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-info { padding: 10px; }
  .product-name { font-size: 13px; }
  .price-current { font-size: 15px; }

  /* Product detail */
  .pd-grid { grid-template-columns: 1fr; }
  .pd-thumbs { grid-template-columns: repeat(4, 1fr); }

  /* Cart sidebar */
  .cart-panel { width: 100% !important; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .f-brand { grid-column: span 2; }

  /* Checkout */
  .payment-methods { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }

  /* Shop main */
  .shop-main { padding: 20px 14px; }
}

@media (max-width: 480px) {
  .header-inner { padding: 8px 12px; }
  .logo-name { font-size: 14px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .footer-inner { grid-template-columns: 1fr; }
  .f-brand { grid-column: span 1; }
  .product-img { aspect-ratio: 3/4; }
  .shop-main { padding: 16px 10px; }
  .section-title { font-size: 20px; }
}

/* ── HERO SLIDER ── */
.hero-slider {
  position: relative; overflow: hidden; height: 420px; background: var(--ink);
}
.slide {
  position: absolute; inset: 0; display: flex; align-items: center;
  opacity: 0; transition: opacity .7s ease; pointer-events: none;
}
.slide.active { opacity: 1; pointer-events: auto; }
.slide-content {
  position: relative; z-index: 2; max-width: 1280px; margin: 0 auto;
  padding: 0 48px; color: #fff;
}
.slide-content h1 {
  font-family: 'Playfair Display', serif; font-size: 46px;
  line-height: 1.2; margin-bottom: 14px; text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.slide-content p {
  font-size: 18px; opacity: .85; margin-bottom: 28px;
  text-shadow: 0 1px 6px rgba(0,0,0,.3);
}
.slide-btn {
  display: inline-block; background: var(--rose); color: #fff;
  padding: 13px 30px; border-radius: 30px; font-size: 15px; font-weight: 700;
  text-decoration: none; transition: background .2s, transform .2s;
  box-shadow: 0 6px 20px rgba(192,57,91,.4);
}
.slide-btn:hover { background: var(--rose-dark); transform: translateY(-2px); }
.slide-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15); border: none; color: #fff;
  width: 46px; height: 46px; border-radius: 50%; font-size: 26px;
  cursor: pointer; z-index: 10; backdrop-filter: blur(4px);
  transition: background .2s;
}
.slide-arrow:hover { background: rgba(255,255,255,.3); }
.slide-prev { left: 20px; }
.slide-next { right: 20px; }
.slide-dots {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.4); cursor: pointer; transition: all .3s;
}
.dot.active { background: #fff; transform: scale(1.3); }

/* ── HAMBURGER MENU ── */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px; border: none; background: none;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile drawer menu */
.mobile-menu {
  display: none; position: fixed; top: 0; left: 0; bottom: 0;
  width: 280px; background: var(--ink); z-index: 300;
  transform: translateX(-100%); transition: transform .35s cubic-bezier(.4,0,.2,1);
  padding: 24px 20px; overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 299;
}
.mobile-overlay.open { display: block; }
.mobile-menu a {
  display: block; color: #9CA3AF; font-size: 15px; font-weight: 500;
  padding: 12px 0; border-bottom: 1px solid #2D3748;
  transition: color .2s; text-decoration: none;
}
.mobile-menu a:hover, .mobile-menu a.active-m { color: var(--rose); }
.mobile-menu .m-brand {
  font-family: 'Playfair Display', serif; font-size: 20px;
  color: var(--rose); margin-bottom: 24px; padding-bottom: 16px;
  border-bottom: 1px solid #2D3748;
}

@media(max-width:900px) {
  .hamburger { display: flex; }
  .mobile-menu { display: block; }
  .desktop-login { display: none !important; }
  .hero-slider { height: 260px; }
  .slide-content { padding: 0 20px; }
  .slide-content h1 { font-size: 26px; margin-bottom: 8px; }
  .slide-content p { font-size: 13px; margin-bottom: 16px; }
  .slide-btn { padding: 10px 20px; font-size: 13px; }
  .slide-arrow { width: 36px; height: 36px; font-size: 20px; }
}
