/* =========================================================
   Aqsa Gold — shared shop styles (modal, product grid, cart)
   Black & gold luxury design system — matches index.html.
   Tokens (defined per-page in <style>): --bg --panel
   --panel-light --gold --gold-bright --gold-deep --cream
   --muted --line-gold --silver
   ========================================================= */

/* ---------- Cart icon / badge in nav ---------- */
.nav-cart{
  position:relative;
  display:inline-flex; align-items:center; justify-content:center;
  width:44px; height:44px;
  border:1px solid var(--line-gold); border-radius:50%;
  background:var(--panel);
  transition:all 0.25s ease;
}
.nav-cart:hover{ background:var(--gold); border-color:var(--gold); }
.nav-cart:hover svg{ stroke:var(--bg); }
.nav-cart svg{ width:20px; height:20px; stroke:var(--gold); fill:none; stroke-width:1.75; }
.nav-cart .badge{
  position:absolute; top:-8px; right:-8px;
  min-width:20px; height:20px; padding:0 4px;
  background:var(--gold); color:var(--bg);
  border:2px solid var(--bg);
  border-radius:50%;
  font-family:'Inter',sans-serif; font-weight:700; font-size:0.68rem;
  display:flex; align-items:center; justify-content:center;
}

/* ---------- Page header (sub-pages) ---------- */
.page-hero{
  padding:60px 5vw 40px;
  background:linear-gradient(120deg, #1D1712, #0A0908 70%);
  border-bottom:1px solid var(--line-gold);
}
.page-hero .eyebrow{ display:flex; align-items:center; gap:8px; }
.page-hero h1{ font-size:clamp(2.1rem,5vw,3.2rem); }
.page-hero p{ margin-top:14px; max-width:52ch; color:var(--muted); line-height:1.65; }

/* ---------- Type filter tabs ---------- */
.filter-row{
  display:flex; gap:8px; flex-wrap:wrap;
  width:fit-content; margin:36px 5vw 0;
}
.filter-tab{
  font-family:'Inter',sans-serif; font-weight:600; font-size:0.78rem;
  letter-spacing:0.06em; text-transform:uppercase;
  padding:11px 22px; cursor:pointer; border-radius:2px;
  background:var(--panel); color:var(--muted);
  border:1px solid var(--line-gold);
  transition:all 0.2s ease;
}
.filter-tab.active{ background:var(--gold); color:var(--bg); border-color:var(--gold); }

/* ---------- Product grid ---------- */
.product-grid{
  display:grid; grid-template-columns:repeat(5,1fr);
  gap:22px; margin:36px 5vw 90px;
}
.product-card{
  background:var(--panel); display:flex; flex-direction:column;
  border:1px solid var(--line-gold); border-radius:4px; overflow:hidden;
  box-shadow:0 10px 30px rgba(0,0,0,0.35);
  transition:border-color 0.25s ease, transform 0.25s ease;
}
.product-card:hover{ border-color:var(--gold); transform:translateY(-4px); }
.product-media{
  aspect-ratio:1/1; overflow:hidden;
  background:var(--panel-light); position:relative;
}
.product-media img{ width:100%; height:100%; object-fit:cover; display:block; }
.product-type-tag{
  position:absolute; top:14px; left:14px;
  font-family:'Inter',sans-serif; font-weight:700; font-size:0.64rem;
  letter-spacing:0.05em; text-transform:uppercase;
  background:var(--gold); color:var(--bg);
  border-radius:2px; padding:5px 12px;
}
.product-body{ padding:16px; display:flex; flex-direction:column; gap:8px; flex:1; }
.product-body h3{ font-size:0.98rem; line-height:1.3; font-weight:600; color:var(--cream); font-family:'Playfair Display',serif; }
.product-body .desc{ font-size:0.82rem; color:var(--muted); line-height:1.5; flex:1; }
.product-meta{ display:flex; justify-content:space-between; align-items:baseline; margin-top:6px; }
.product-meta .weight{ font-family:'Inter',sans-serif; font-size:0.72rem; font-weight:600; color:var(--muted); }
.product-meta .price{ font-family:'Playfair Display',serif; font-size:1.15rem; font-weight:700; color:var(--gold); }
.product-card .btn{ margin-top:14px; width:100%; padding:12px; font-size:0.7rem; }
@media (max-width:1200px){
  .product-grid{ grid-template-columns:repeat(3,1fr); }
}
@media (max-width:760px){
  .product-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:480px){
  .product-grid{ grid-template-columns:1fr; }
}
.empty-state{
  padding:80px 5vw; text-align:center; color:var(--muted);
  font-family:'Inter',sans-serif; letter-spacing:0.04em;
}

/* ---------- Modal (auth) ---------- */
.aq-modal-overlay{
  position:fixed; inset:0; background:rgba(0,0,0,0.75);
  backdrop-filter:blur(4px);
  display:flex; align-items:center; justify-content:center;
  z-index:1000; padding:20px;
}
.aq-modal{
  background:var(--panel); border:1px solid var(--line-gold); border-radius:4px;
  width:100%; max-width:420px; padding:36px 30px; position:relative;
  box-shadow:0 24px 70px rgba(0,0,0,0.5);
}
.aq-modal-close{
  position:absolute; top:14px; right:16px;
  background:none; border:none; font-size:1.6rem; line-height:1; cursor:pointer; color:var(--muted);
}
.aq-modal h3{ font-size:1.5rem; margin:10px 0 22px; font-family:'Playfair Display',serif; font-weight:700; color:var(--cream); }
.aq-modal .tag, .aq-modal .eyebrow{ color:var(--gold); }
.aq-input{
  width:100%; padding:14px 16px; margin-bottom:14px;
  border:1px solid var(--line-gold); border-radius:2px;
  background:var(--bg); color:var(--cream);
  font-family:'Inter',sans-serif; font-size:0.95rem;
}
.aq-input:focus{ outline:none; border-color:var(--gold); }
.aq-full{ width:100%; }
.aq-hint{ font-size:0.85rem; color:var(--muted); margin-bottom:14px; }
.aq-error{ color:#E0664F; font-size:0.82rem; margin-top:8px; min-height:1.2em; }

/* ---------- Cart page ---------- */
.cart-layout{ display:grid; grid-template-columns:1.6fr 1fr; gap:24px; margin:0 5vw 90px; }
.cart-items{ background:var(--panel); border:1px solid var(--line-gold); border-radius:4px; overflow:hidden; }
.cart-row{
  display:flex; gap:20px; padding:24px; border-bottom:1px solid var(--line-gold); align-items:center;
}
.cart-row:last-child{ border-bottom:none; }
.cart-row img{ width:84px; height:84px; object-fit:cover; border-radius:2px; border:1px solid var(--line-gold); flex-shrink:0; }
.cart-row .info{ flex:1; }
.cart-row .info h4{ font-size:1rem; margin-bottom:4px; font-family:'Playfair Display',serif; font-weight:700; color:var(--cream); }
.cart-row .info .sub{ font-size:0.8rem; color:var(--muted); }
.qty-control{ display:flex; align-items:center; border:1px solid var(--line-gold); border-radius:2px; overflow:hidden; }
.qty-control button{ width:34px; height:34px; background:var(--bg); border:none; cursor:pointer; font-size:1.1rem; font-weight:700; color:var(--gold); }
.qty-control button:hover{ background:var(--gold); color:var(--bg); }
.qty-control span{ width:34px; text-align:center; font-family:'Inter',sans-serif; font-weight:700; color:var(--cream); }
.cart-row .line-price{ font-family:'Playfair Display',serif; font-weight:700; color:var(--gold); min-width:90px; text-align:right; }
.cart-row .remove-link{ font-size:0.72rem; text-decoration:underline; color:var(--muted); cursor:pointer; margin-top:6px; display:inline-block; }

.cart-summary{ padding:30px; background:linear-gradient(120deg, #1D1712, #0A0908 70%); border:1px solid var(--line-gold); border-radius:4px; }
.cart-summary h3{ font-size:1.1rem; margin-bottom:20px; font-family:'Playfair Display',serif; font-weight:700; color:var(--cream); }
.summary-row{ display:flex; justify-content:space-between; padding:10px 0; font-size:0.92rem; color:var(--muted); border-bottom:1px solid var(--line-gold); }
.summary-row.total{ font-weight:700; font-size:1.15rem; color:var(--cream); border-bottom:none; padding-top:16px; font-family:'Playfair Display',serif; }

.addr-box{ border:1px solid var(--line-gold); border-radius:2px; padding:16px; margin-bottom:12px; cursor:pointer; background:var(--panel); transition:all 0.2s ease; }
.addr-box.selected{ background:var(--gold); border-color:var(--gold); color:var(--bg); }
.addr-box.selected .line{ color:rgba(10,9,8,0.75); }
.addr-box .name{ font-weight:700; font-family:'Playfair Display',serif; margin-bottom:4px; color:var(--cream); }
.addr-box.selected .name{ color:var(--bg); }
.addr-box .line{ font-size:0.84rem; color:var(--muted); line-height:1.5; }
.addr-form{ display:none; margin-top:12px; }
.addr-form.open{ display:block; }
.addr-form input{ width:100%; padding:12px 14px; margin-bottom:10px; border:1px solid var(--line-gold); border-radius:2px; background:var(--bg); color:var(--cream); font-family:'Inter',sans-serif; }

@media (max-width:900px){
  .cart-layout{ grid-template-columns:1fr; }
}

/* ---------- Account page ---------- */
.account-tabs{
  display:flex; gap:8px;
  width:fit-content; margin:36px 5vw 0;
}
.account-tab{
  font-family:'Inter',sans-serif; font-weight:600; font-size:0.78rem;
  letter-spacing:0.06em; text-transform:uppercase;
  padding:11px 22px; cursor:pointer; border-radius:2px;
  background:var(--panel); color:var(--muted);
  border:1px solid var(--line-gold);
  transition:all 0.2s ease;
}
.account-tab.active{ background:var(--gold); color:var(--bg); border-color:var(--gold); }
.account-panel{ display:none; margin:36px 5vw 90px; }
.account-panel.active{ display:block; }

.profile-card{
  background:var(--panel); border:1px solid var(--line-gold); border-radius:4px;
  padding:30px; display:flex;
  justify-content:space-between; align-items:center; flex-wrap:wrap; gap:20px;
}
.profile-card .who h3{ font-size:1.25rem; font-family:'Playfair Display',serif; font-weight:700; color:var(--cream); }
.profile-card .who p{ color:var(--muted); font-size:0.88rem; margin-top:4px; }

.order-card{ background:var(--panel); border:1px solid var(--line-gold); border-radius:4px; margin-bottom:24px; overflow:hidden; }
.order-header{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px;
  padding:18px 24px; background:linear-gradient(120deg, #1D1712, #0A0908 70%);
  border-bottom:1px solid var(--line-gold);
}
.order-header .oid{ font-family:'Playfair Display',serif; font-weight:700; color:var(--cream); }
.order-header .odate{ font-size:0.8rem; color:var(--muted); }
.status-badge{
  font-family:'Inter',sans-serif; font-weight:700; font-size:0.66rem;
  letter-spacing:0.04em; text-transform:uppercase;
  border-radius:2px; padding:6px 14px;
}
.status-badge.confirmed, .status-badge.delivered{ background:rgba(212,175,55,0.18); color:var(--gold); border:1px solid var(--gold); }
.status-badge.pending{ background:var(--panel-light); color:var(--muted); border:1px solid var(--line-gold); }
.status-badge.cancelled{ background:rgba(224,102,79,0.15); color:#E0664F; border:1px solid #E0664F; }
.order-items-list{ padding:6px 24px; }
.order-item-row{
  display:flex; justify-content:space-between; padding:14px 0;
  border-bottom:1px solid var(--line-gold); font-size:0.9rem;
}
.order-item-row:last-child{ border-bottom:none; }
.order-item-row .oi-name{ font-weight:600; color:var(--cream); }
.order-item-row .oi-sub{ color:var(--muted); font-size:0.8rem; }
.order-footer{
  display:flex; justify-content:space-between; align-items:center;
  padding:16px 24px; border-top:1px solid var(--line-gold);
}
.order-footer .oaddr{ font-size:0.82rem; color:var(--muted); max-width:60%; }
.order-footer .ototal{ font-family:'Playfair Display',serif; font-weight:700; font-size:1.1rem; color:var(--gold); }

/* ---------- Product detail page ---------- */
.pd-breadcrumb{ padding:24px 5vw 0; }
.pd-breadcrumb a{
  font-family:'Inter',sans-serif; font-weight:600; font-size:0.8rem;
  letter-spacing:0.04em; text-transform:uppercase; color:var(--gold);
}
.pd-layout{
  display:grid; grid-template-columns:1.1fr 1fr; gap:24px;
  margin:24px 5vw 90px;
}
.pd-gallery{ background:linear-gradient(120deg, #1D1712, #0A0908 70%); border:1px solid var(--line-gold); border-radius:4px; overflow:hidden; }
.pd-slider{
  position:relative; aspect-ratio:1/1; overflow:hidden;
}
.pd-slide{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; opacity:0; transition:opacity 0.5s ease; display:block;
}
.pd-slide.active{ opacity:1; }
.pd-slide.pd-noimg{
  display:flex; align-items:center; justify-content:center;
  font-family:'Inter',sans-serif; font-weight:600; text-transform:uppercase; letter-spacing:0.05em;
  color:var(--muted);
}
.pd-arrow{
  position:absolute; top:50%; transform:translateY(-50%);
  width:44px; height:44px; border:1px solid var(--line-gold); border-radius:50%;
  background:var(--panel); font-size:1.4rem; font-weight:700; cursor:pointer; color:var(--gold);
  display:flex; align-items:center; justify-content:center; z-index:2;
}
.pd-arrow:hover{ background:var(--gold); color:var(--bg); }
.pd-prev{ left:16px; }
.pd-next{ right:16px; }
.pd-dots{
  display:flex; justify-content:center; gap:10px; padding:18px;
}
.pd-dot{
  width:9px; height:9px; border-radius:50%; border:1px solid var(--line-gold);
  background:transparent; cursor:pointer;
}
.pd-dot.active{ background:var(--gold); border-color:var(--gold); }
.pd-info{ padding:44px; }
.pd-info h1{ font-size:clamp(1.7rem,3vw,2.4rem); margin-bottom:16px; font-family:'Playfair Display',serif; color:var(--cream); }
.pd-price{ font-family:'Playfair Display',serif; font-weight:700; font-size:2rem; color:var(--gold); }
.pd-weight{ font-size:0.88rem; color:var(--muted); margin-top:6px; margin-bottom:26px; }
.pd-desc{ font-size:0.98rem; line-height:1.75; color:var(--muted); margin-bottom:32px; }
.pd-add-btn{ width:100%; }
@media (max-width:900px){
  .pd-layout{ grid-template-columns:1fr; }
  .pd-info{ padding:30px; }
}