/* ============================================================
   LUMINA Jewels - Modern Card Layout Stylesheet
   ============================================================ */
:root {
  --gold: #c9a24b;
  --gold-dark: #a9802f;
  --gold-light: #e8d5a4;
  --navy: #1a2332;
  --navy-2: #232f43;
  --cream: #faf6ee;
  --cream-2: #f3ecdd;
  --ink: #2a2a2a;
  --muted: #7a766b;
  --white: #ffffff;
  --success: #2e8b57;
  --danger: #c0392b;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(26, 35, 50, 0.10);
  --shadow-lg: 0 18px 50px rgba(26, 35, 50, 0.16);
  --font: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { width: 90%; max-width: 1220px; margin: 0 auto; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-2);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; gap: 20px;
}
.brand { font-size: 1.5rem; font-weight: 800; letter-spacing: 1px; color: var(--navy); }
.brand span { color: var(--gold-dark); }
.nav-links { display: flex; gap: 26px; font-weight: 600; font-size: .95rem; color: var(--navy); }
.nav-links a:hover { color: var(--gold-dark); }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-actions .icon-btn { position: relative; font-size: 1.25rem; color: var(--navy); }
.nav-actions .icon-btn:hover { color: var(--gold-dark); }
.cart-badge {
  position: absolute; top: -8px; right: -10px;
  background: var(--gold); color: #fff; font-size: .68rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
}
.menu-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  background: linear-gradient(135deg, #1a2332 0%, #2c3a52 45%, #8a6d3b 100%);
  padding: 90px 0 120px; overflow: hidden; text-align: center;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(201,162,75,0.35), transparent 45%),
              radial-gradient(circle at 15% 85%, rgba(201,162,75,0.22), transparent 40%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; letter-spacing: 1px;
  animation: fadeSlide 1s ease both;
}
.hero h1 .accent {
  background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { max-width: 620px; margin: 18px auto 30px; font-size: 1.08rem; color: #e6dfcf; }
.hero-btn {
  display: inline-block; background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff; font-weight: 700; padding: 14px 34px; border-radius: 40px;
  box-shadow: 0 10px 24px rgba(201,162,75,0.45); transition: transform .2s;
}
.hero-btn:hover { transform: translateY(-3px); }
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-head { text-align: center; margin-bottom: 34px; }
.section-head .eyebrow { color: var(--gold-dark); font-weight: 700; letter-spacing: 2px; font-size: .8rem; text-transform: uppercase; }
.section-head h2 { font-size: 2rem; color: var(--navy); margin-top: 6px; }
.section-head p { color: var(--muted); margin-top: 8px; }

/* ---------- Carousel ---------- */
.carousel-wrap { position: relative; }
.carousel {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 4px 18px; scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel .carousel-slide {
  flex: 0 0 46%; scroll-snap-align: start;
}
@media (min-width: 640px) { .carousel .carousel-slide { flex-basis: 30%; } }
@media (min-width: 960px) { .carousel .carousel-slide { flex-basis: 22%; } }
.featured-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.featured-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.featured-card .thumb { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--cream-2); }
.featured-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.featured-card:hover .thumb img { transform: scale(1.06); }
.featured-card .body { padding: 16px; }
.featured-card .price { color: var(--gold-dark); font-weight: 800; font-size: 1.1rem; }
.featured-card h3 { font-size: .98rem; color: var(--navy); margin-top: 4px; }
.arrow-btn {
  position: absolute; top: 42%; transform: translateY(-50%);
  width: 44px; height: 44px; border: none; border-radius: 50%;
  background: var(--white); color: var(--navy); font-size: 1.2rem; cursor: pointer;
  box-shadow: var(--shadow); z-index: 5; transition: background .2s, color .2s;
}
.arrow-btn:hover { background: var(--gold); color: #fff; }
.arrow-btn.prev { left: -12px; }
.arrow-btn.next { right: -12px; }

/* ---------- Category grid ---------- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 22px; }
.category-card {
  background: var(--white); border-radius: var(--radius); text-align: center;
  padding: 30px 16px 22px; box-shadow: var(--shadow); cursor: pointer;
  transition: transform .2s, box-shadow .2s; border: 2px solid transparent;
}
.category-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.category-card.active { border-color: var(--gold); }
.category-card .cat-emoji { font-size: 2.6rem; }
.category-card h3 { font-size: 1rem; color: var(--navy); margin-top: 10px; }
.category-card span { font-size: .8rem; color: var(--muted); }

/* ---------- Product grid ---------- */
.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 28px; }
.filter-chip {
  background: var(--white); border: 1px solid var(--cream-2); color: var(--navy);
  padding: 8px 18px; border-radius: 30px; font-size: .9rem; font-weight: 600; cursor: pointer;
  transition: all .2s;
}
.filter-chip:hover, .filter-chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 26px;
}
.product-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card .thumb { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--cream-2); cursor: pointer; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .thumb img { transform: scale(1.06); }
.badge {
  position: absolute; top: 12px; left: 12px; background: var(--gold); color: #fff;
  font-size: .68rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; letter-spacing: .5px;
}
.product-card .body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card .cat { font-size: .74rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.product-card h3 { font-size: 1rem; color: var(--navy); line-height: 1.35; cursor: pointer; }
.product-card h3:hover { color: var(--gold-dark); }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.price { color: var(--gold-dark); font-weight: 800; font-size: 1.1rem; }
.product-card .add-btn {
  background: var(--navy); color: #fff; border: none; padding: 8px 14px; border-radius: 24px;
  font-size: .82rem; font-weight: 600; cursor: pointer; transition: background .2s;
}
.product-card .add-btn:hover { background: var(--gold-dark); }

/* ---------- Trust ---------- */
.trust { background: var(--navy-2); color: #dfe3ea; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; text-align: center; }
.trust-item .t-ico { font-size: 2rem; }
.trust-item h4 { color: #fff; margin-top: 8px; }
.trust-item p { font-size: .86rem; color: #b9c0cb; margin-top: 4px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #c7cdd6; }
.footer-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; padding: 46px 0; }
.footer h4 { color: #fff; margin-bottom: 14px; }
.footer a { display: block; color: #c7cdd6; font-size: .9rem; padding: 3px 0; }
.footer a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 18px 0; text-align: center; font-size: .82rem; }

/* ---------- Product detail ---------- */
.detail { padding: 46px 0 70px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
@media (max-width: 800px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--white); }
.detail-img img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.detail-info h1 { font-size: 1.9rem; color: var(--navy); }
.detail-cat { color: var(--muted); text-transform: uppercase; letter-spacing: 1px; font-size: .8rem; margin: 6px 0; }
.detail-price { font-size: 1.7rem; font-weight: 800; color: var(--gold-dark); margin: 16px 0; }
.detail-desc { color: #555; margin: 18px 0; }
.qty-row { display: flex; align-items: center; gap: 14px; margin: 22px 0; }
.qty-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--cream-2); background: #fff; font-size: 1.2rem; cursor: pointer; }
.qty-btn:hover { background: var(--cream-2); }
.qty-num { font-weight: 700; min-width: 32px; text-align: center; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  border: none; cursor: pointer; font-weight: 700; padding: 14px 30px; border-radius: 40px;
  font-size: .98rem; transition: transform .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: #fff; }
.btn-gold:hover { opacity: .92; }
.btn-outline { background: transparent; border: 1.5px solid var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-block { width: 100%; text-align: center; }

/* ---------- Cart ---------- */
.cart-page { padding: 46px 0 70px; }
.cart-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cart-table th { background: var(--navy); color: #fff; padding: 14px; text-align: left; font-size: .85rem; }
.cart-table td { padding: 16px; border-top: 1px solid var(--cream-2); vertical-align: middle; }
.cart-item-name { font-weight: 700; color: var(--navy); }
.cart-item-img { width: 70px; height: 70px; border-radius: 10px; object-fit: cover; }
.qty-cell { display: inline-flex; align-items: center; gap: 8px; }
.remove-btn { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 1.1rem; }
.cart-summary {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px; margin-top: 30px; max-width: 420px; margin-left: auto;
}
.cart-summary h3 { color: var(--navy); margin-bottom: 16px; }
.sum-row { display: flex; justify-content: space-between; padding: 8px 0; }
.sum-row.total { border-top: 2px solid var(--cream-2); margin-top: 8px; padding-top: 16px; font-weight: 800; font-size: 1.2rem; }
.empty-cart { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-cart .e-ico { font-size: 4rem; }

/* ---------- Forms / Checkout ---------- */
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px; max-width: 520px; margin: 40px auto; }
.form-card h2 { color: var(--navy); margin-bottom: 6px; }
.form-card .sub { color: var(--muted); margin-bottom: 22px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; font-size: .92rem; }
.field input { width: 100%; padding: 13px 16px; border: 1px solid var(--cream-2); border-radius: 10px; font-size: .98rem; }
.field input:focus { outline: none; border-color: var(--gold); }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.form-msg { padding: 10px 14px; border-radius: 8px; font-size: .9rem; margin-bottom: 14px; display: none; }
.form-msg.success { background: #e7f5ee; color: var(--success); display: block; }
.form-msg.error { background: #fbe9e7; color: var(--danger); display: block; }
.otp-row { display: flex; gap: 10px; }
.otp-row input { text-align: center; font-size: 1.4rem; letter-spacing: 6px; }

/* ---------- Payment ---------- */
.payment-list { display: grid; gap: 16px; }
.pay-opt {
  display: flex; align-items: center; gap: 16px; padding: 20px; border: 2px solid var(--cream-2);
  border-radius: var(--radius); cursor: pointer; transition: all .2s; background: #fff;
}
.pay-opt:hover { border-color: var(--gold); }
.pay-opt.selected { border-color: var(--gold); background: #fdf9ef; box-shadow: var(--shadow); }
.pay-opt input { accent-color: var(--gold); width: 18px; height: 18px; }
.pay-logo { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: .8rem; }
.jazzcash { background: #e4003a; }
.easypaisa { background: #00a859; }
.pay-opt .pname { font-weight: 700; color: var(--navy); }
.pay-opt .pnote { font-size: .8rem; color: var(--muted); }
.banner { background: var(--gold-light); color: var(--navy); padding: 12px 18px; border-radius: 10px; font-weight: 600; margin-bottom: 18px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(120%);
  background: var(--navy); color: #fff; padding: 14px 26px; border-radius: 40px;
  box-shadow: var(--shadow-lg); z-index: 300; transition: transform .35s ease; font-weight: 600;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- Legal pages ---------- */
.legal { padding: 50px 0 70px; }
.legal h1 { color: var(--navy); margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: .86rem; margin-bottom: 26px; }
.legal h2 { color: var(--navy); margin: 26px 0 10px; font-size: 1.25rem; }
.legal p, .legal li { color: #4a4a4a; margin-bottom: 10px; }
.legal ul { padding-left: 22px; }
.breadcrumb { color: var(--gold-dark); font-weight: 600; margin-bottom: 10px; }
.breadcrumb a:hover { text-decoration: underline; }