/* ===================================================================
   store.css — Jewellery storefront (premium gold/maroon theme)
   Loaded after style.css; reuses the same root variables.
=================================================================== */

body.store {
  background: var(--bg-light);
  color: var(--text-dark);
  font-family: 'Roboto', system-ui, sans-serif;
}
.store .font-display { font-family: 'Playfair Display', Georgia, serif; }
.store a { text-decoration: none; }
.container-store { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* ---------- Top announcement bar ---------- */
.store-topbar {
  background: var(--maroon); color: #f7e9c9; font-size: .82rem;
  letter-spacing: .3px;
}
.store-topbar .container-store {
  display: flex; justify-content: space-between; align-items: center;
  height: 38px; flex-wrap: wrap;
}
.store-topbar .rate-chip { color: #ffe9a8; font-weight: 600; }
.store-topbar a { color: #f7e9c9; margin-left: 16px; }

/* ---------- Main header ---------- */
.store-header {
  background: #fff; border-bottom: 1px solid #efe3c8;
  position: sticky; top: 0; z-index: 40;
  box-shadow: 0 2px 14px rgba(0,0,0,.04);
}
.store-header .container-store {
  display: flex; align-items: center; gap: 20px; height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--gold-grad); color: #fff; display: grid; place-items: center;
  font-size: 1.4rem; box-shadow: 0 4px 12px rgba(201,162,39,.4);
}
.brand-name { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--maroon); line-height: 1; }
.brand-name small { display: block; font-family: 'Roboto'; font-size: .62rem; letter-spacing: 3px; color: var(--gold-dark); text-transform: uppercase; }

.store-search { flex: 1; max-width: 520px; position: relative; }
.store-search input {
  width: 100%; border: 1.5px solid #e6d9bb; border-radius: 30px;
  padding: 11px 46px 11px 18px; font-size: .92rem; background: #fffdf8;
}
.store-search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,39,.15); }
.store-search button {
  position: absolute; right: 5px; top: 5px; border: none;
  width: 38px; height: 38px; border-radius: 50%; background: var(--gold-grad); color: #fff; cursor: pointer;
}
.header-actions { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.header-actions a { color: var(--text-dark); font-size: .78rem; text-align: center; position: relative; }
.header-actions a i { display: block; font-size: 1.25rem; color: var(--gold-dark); margin-bottom: 2px; }
.header-actions a:hover i { color: var(--maroon); }
.cart-badge {
  position: absolute; top: -6px; right: 2px; background: var(--maroon); color: #fff;
  font-size: .62rem; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px;
}

/* ---------- Category nav strip ---------- */
.store-nav { background: #fff; border-bottom: 1px solid #efe3c8; }
.store-nav .container-store { display: flex; gap: 6px; overflow-x: auto; height: 46px; align-items: center; }
.store-nav a {
  white-space: nowrap; color: var(--text-dark); font-size: .86rem; font-weight: 500;
  padding: 6px 14px; border-radius: 20px; transition: .15s;
}
.store-nav a:hover, .store-nav a.active { background: #fbf3df; color: var(--maroon); }

/* ---------- Hero ---------- */
.hero {
  position: relative; border-radius: 16px; overflow: hidden; margin: 22px 0;
  min-height: 340px; display: flex; align-items: center;
  background: linear-gradient(120deg, #6B0F1A, #3a0810);
}
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.hero-inner { position: relative; padding: 40px 48px; color: #fff; max-width: 560px; }
.hero-inner .eyebrow { letter-spacing: 4px; text-transform: uppercase; font-size: .72rem; color: #ffdf9e; }
.hero-inner h1 { font-family: 'Playfair Display', serif; font-size: 2.7rem; margin: 10px 0 14px; line-height: 1.1; }
.hero-inner p { color: #f0e2c8; margin-bottom: 22px; }

/* ---------- Section heads ---------- */
.section { margin: 44px 0; }
.section-head { text-align: center; margin-bottom: 26px; }
.section-head h2 { font-family: 'Playfair Display', serif; font-size: 1.9rem; color: var(--maroon); margin: 0; }
.section-head .divider { width: 64px; height: 3px; background: var(--gold-grad); margin: 12px auto 0; border-radius: 2px; }
.section-head p { color: var(--text-muted); margin-top: 8px; }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-tile {
  background: #fff; border: 1px solid #efe3c8; border-radius: var(--radius-card);
  overflow: hidden; text-align: center; transition: .2s; box-shadow: var(--card-shadow);
}
.cat-tile:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(107,15,26,.14); }
.cat-tile .thumb { aspect-ratio: 4/3; background: #fffdf8; overflow: hidden; }
.cat-tile .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile .label { padding: 14px 10px; font-weight: 600; color: var(--maroon); }
.cat-tile .label span { display: block; font-size: .74rem; color: var(--text-muted); font-weight: 400; }

/* ---------- Product grid ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.prod-card {
  background: #fff; border: 1px solid #efe3c8; border-radius: var(--radius-card);
  overflow: hidden; position: relative; transition: .2s; box-shadow: var(--card-shadow); display: flex; flex-direction: column;
}
.prod-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.12); }
.prod-card .p-thumb { aspect-ratio: 1/1; background: #fffdf8; overflow: hidden; display: block; }
.prod-card .p-thumb img { width: 100%; height: 100%; object-fit: cover; transition: .3s; }
.prod-card:hover .p-thumb img { transform: scale(1.05); }
.prod-card .p-purity {
  position: absolute; top: 10px; left: 10px; background: var(--gold-grad); color: #fff;
  font-size: .68rem; font-weight: 600; padding: 3px 9px; border-radius: 20px;
}
.prod-card .p-wish {
  position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%;
  background: #fff; color: var(--maroon); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.12);
  border: none; cursor: pointer;
}
.prod-card .p-body { padding: 13px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prod-card .p-cat { font-size: .7rem; color: var(--gold-dark); text-transform: uppercase; letter-spacing: .5px; }
.prod-card .p-name { font-weight: 600; font-size: .95rem; line-height: 1.3; color: var(--text-dark); }
.prod-card .p-meta { font-size: .76rem; color: var(--text-muted); }
.prod-card .p-price { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.12rem; color: var(--maroon); margin-top: auto; }
.prod-card .p-actions { display: flex; gap: 8px; margin-top: 10px; }

/* ---------- Buttons (store) ---------- */
.btn-store {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--gold-grad); color: #fff; border: none; border-radius: var(--radius-btn);
  padding: 11px 22px; font-weight: 600; cursor: pointer; transition: .15s; font-size: .9rem;
}
.btn-store:hover { filter: brightness(1.06); color: #fff; box-shadow: 0 6px 16px rgba(201,162,39,.4); }
.btn-store.sm { padding: 8px 14px; font-size: .82rem; }
.btn-store.block { width: 100%; }
.btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #fff; color: var(--maroon); border: 1.5px solid var(--maroon); border-radius: var(--radius-btn);
  padding: 10px 20px; font-weight: 600; cursor: pointer; transition: .15s; font-size: .88rem;
}
.btn-line:hover { background: var(--maroon); color: #fff; }
.btn-line.sm { padding: 7px 12px; font-size: .8rem; }

/* ---------- USP strip ---------- */
.usp { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin: 40px 0; }
.usp .u { background: #fff; border: 1px solid #efe3c8; border-radius: var(--radius-card); padding: 20px; text-align: center; }
.usp .u i { font-size: 1.6rem; color: var(--gold-dark); margin-bottom: 8px; }
.usp .u b { display: block; color: var(--maroon); }
.usp .u span { font-size: .8rem; color: var(--text-muted); }

/* ---------- Product detail ---------- */
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 26px 0; }
.pd-gallery .main { border: 1px solid #efe3c8; border-radius: var(--radius-card); overflow: hidden; background: #fffdf8; aspect-ratio: 1/1; }
.pd-gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pd-thumbs img { width: 66px; height: 66px; object-fit: cover; border-radius: 8px; border: 2px solid #efe3c8; cursor: pointer; }
.pd-thumbs img.active { border-color: var(--gold); }
.pd-info h1 { font-family: 'Playfair Display', serif; color: var(--maroon); font-size: 2rem; margin: 4px 0 6px; }
.pd-price { font-family: 'Poppins'; font-size: 1.9rem; font-weight: 700; color: var(--maroon); margin: 14px 0; }
.breakdown { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .9rem; }
.breakdown td { padding: 8px 0; border-bottom: 1px dashed #ece0c4; }
.breakdown td:last-child { text-align: right; font-weight: 600; }
.breakdown tr.total td { border-top: 2px solid var(--gold); border-bottom: none; font-size: 1.05rem; color: var(--maroon); padding-top: 12px; }

/* ---------- Auth / forms ---------- */
.store-auth { max-width: 440px; margin: 40px auto; }
.store-card { background: #fff; border: 1px solid #efe3c8; border-radius: 16px; box-shadow: var(--card-shadow); }
.store-card .body { padding: 30px; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 6px; color: var(--text-dark); }
.field input, .field select, .field textarea {
  width: 100%; border: 1.5px solid #e6d9bb; border-radius: 8px; padding: 11px 13px; font-size: .92rem; background: #fffdf8;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,39,.15); }

/* ---------- Cart / checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 26px; margin: 26px 0; align-items: start; }
.cart-line { display: flex; gap: 14px; background: #fff; border: 1px solid #efe3c8; border-radius: var(--radius-card); padding: 14px; margin-bottom: 14px; }
.cart-line img { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; }
.cart-line .grow { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid #e6d9bb; border-radius: 8px; overflow: hidden; }
.qty button { border: none; background: #fbf3df; width: 32px; height: 34px; cursor: pointer; color: var(--maroon); font-size: 1rem; }
.qty span { width: 40px; text-align: center; font-weight: 600; }
.summary { background: #fff; border: 1px solid #efe3c8; border-radius: var(--radius-card); padding: 20px; position: sticky; top: 90px; }
.summary .row-s { display: flex; justify-content: space-between; padding: 7px 0; font-size: .92rem; }
.summary .row-s.grand { border-top: 2px solid var(--gold); margin-top: 8px; padding-top: 12px; font-size: 1.15rem; font-weight: 700; color: var(--maroon); }

/* ---------- Alerts ---------- */
.store .alert-s { border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; font-size: .9rem; }
.store .alert-s.success { background: #eaf5eb; color: #2E7D32; border: 1px solid #bfe0c2; }
.store .alert-s.danger  { background: #fdeaea; color: #C62828; border: 1px solid #f3c2c2; }
.store .alert-s.warning { background: #fff6e6; color: #8a5a00; border: 1px solid #f0dcae; }

/* ---------- Footer ---------- */
.store-footer { background: #2a0a10; color: #e9d8bb; margin-top: 56px; padding: 44px 0 20px; }
.store-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.store-footer h5 { color: #fff; font-family: 'Playfair Display', serif; margin-bottom: 14px; }
.store-footer a { color: #d9c4a0; display: block; padding: 4px 0; font-size: .88rem; }
.store-footer a:hover { color: var(--gold); }
.store-footer .bottom { border-top: 1px solid #4a2a30; margin-top: 30px; padding-top: 16px; text-align: center; font-size: .82rem; color: #b89a78; }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty i { font-size: 3rem; color: #e6d3a8; margin-bottom: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .cat-grid, .prod-grid, .usp { grid-template-columns: repeat(2, 1fr); }
  .pd, .cart-layout { grid-template-columns: 1fr; }
  .store-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .store-header .container-store { height: auto; flex-wrap: wrap; padding: 10px 16px; gap: 10px; }
  .store-search { order: 3; max-width: 100%; flex-basis: 100%; }
  .hero-inner h1 { font-size: 1.9rem; }
  .cat-grid, .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .section-head h2 { font-size: 1.5rem; }
}
