.store-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 0, rgba(255, 139, 36, 0.12), transparent 30rem),
    #09090b;
}

.store-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 9, 11, 0.9);
  backdrop-filter: blur(18px);
}

.store-bar-inner {
  width: min(1180px, calc(100% - 2rem));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.store-back,
.cart-link {
  min-height: 44px;
  padding: 0.7rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--text);
  background: rgba(255,255,255,.035);
  font-size: .88rem;
  font-weight: 800;
}

.cart-link { position: relative; }
.cart-count {
  min-width: 22px;
  height: 22px;
  padding: 0 .35rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #111;
  background: var(--gold-bright);
  font-size: .72rem;
  font-weight: 950;
}

.product-shell,
.cart-shell,
.admin-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 5rem;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  align-items: start;
}

.product-visual,
.product-buybox,
.product-description-card,
.product-reviews,
.cart-card,
.checkout-card,
.admin-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(20,20,23,.92);
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
}

.product-visual {
  position: sticky;
  top: 100px;
  min-height: 470px;
  padding: 2rem;
  display: grid;
  align-content: space-between;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(255,193,77,.11), transparent 54%),
    url("assets/tiger-hero.webp") center/cover;
}

.product-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to top, rgba(5,5,7,.96), rgba(5,5,7,.28));
}

.product-visual > * { position: relative; z-index: 1; }
.product-visual .brand-mark { width: 58px; }
.product-visual-copy span { color: var(--gold); font-weight: 850; }
.product-visual-copy h2 { margin: .45rem 0 0; font-size: clamp(2rem, 6vw, 3.7rem); }

.product-buybox { padding: clamp(1.35rem, 4vw, 2.35rem); }
.product-badge {
  width: fit-content;
  padding: .38rem .7rem;
  border: 1px solid rgba(255,189,74,.25);
  border-radius: 999px;
  color: var(--gold-bright);
  background: rgba(255,189,74,.07);
  font-size: .78rem;
  font-weight: 850;
}

.product-buybox h1 { margin: 1rem 0 .55rem; font-size: clamp(1.75rem, 5vw, 3rem); line-height: 1.25; }
.product-lead { margin: 0; color: var(--muted); line-height: 1.9; }
.product-rating-line { margin: 1rem 0; display: flex; align-items: center; gap: .65rem; color: var(--muted); }
.product-rating-line .stars { color: var(--gold); letter-spacing: .08em; }
.verified-sales { color: #8fd9ae; font-weight: 800; }
.product-price { margin: 1.6rem 0; display: flex; align-items: end; gap: .5rem; }
.product-price strong { color: #fff; font-size: 3.8rem; line-height: .9; }
.product-price span { color: var(--muted); font-weight: 700; }
.product-actions { display: grid; grid-template-columns: 1fr auto; gap: .75rem; }
.add-cart-button { border: 0; cursor: pointer; }
.product-assurance { margin: 1.2rem 0 0; padding: 0; display: grid; gap: .65rem; list-style: none; color: #c9c9cf; }
.product-assurance li::before { content: "✓"; margin-inline-end: .55rem; color: var(--gold); font-weight: 900; }

.product-details-grid { margin-top: 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.product-description-card,
.product-reviews { padding: clamp(1.25rem, 4vw, 2rem); }
.product-description-card h2,
.product-reviews h2 { margin-top: 0; }
.product-description-card p { color: var(--muted); line-height: 1.9; }
.detail-list { margin: 1.2rem 0 0; padding: 0; display: grid; gap: .7rem; list-style: none; }
.detail-list li { padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); }
.detail-list li::before { content: "✓"; color: var(--gold); margin-inline-end: .55rem; }
.product-review-list { display: grid; gap: .8rem; }
.mini-review { padding: 1rem; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.025); }
.mini-review .stars { color: var(--gold); font-size: .8rem; }
.mini-review p { margin: .45rem 0 .75rem; color: #d4d4d8; line-height: 1.75; }
.mini-review strong { font-size: .84rem; }

.customer-dialog {
  width: min(520px, calc(100% - 1.25rem));
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  color: var(--text);
  background: #151518;
  box-shadow: 0 30px 100px rgba(0,0,0,.65);
}
.customer-dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(5px); }
.customer-form { position: relative; padding: 1.5rem; display: grid; gap: 1rem; }
.customer-form h2 { margin: 0; font-size: 1.65rem; }
.customer-form > p { margin: -.35rem 0 .2rem; color: var(--muted); line-height: 1.7; }
.customer-form label { display: grid; gap: .45rem; font-weight: 800; font-size: .88rem; }
.customer-form label small { color: var(--muted); font-weight: 500; }
.customer-form input:not([type="checkbox"]),
.admin-login input {
  width: 100%;
  min-height: 50px;
  padding: .8rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  color: #fff;
  background: #0e0e11;
  font: inherit;
}
.privacy-check { grid-template-columns: auto 1fr; align-items: start; font-weight: 500 !important; line-height: 1.6; }
.privacy-check input { margin-top: .3rem; accent-color: var(--orange); }
.dialog-close { position: absolute; top: 1rem; left: 1rem; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 11px; color: #fff; background: rgba(255,255,255,.04); font-size: 1.4rem; cursor: pointer; }
.form-error { padding: .75rem; border-radius: 11px; color: #ffb4b4; background: rgba(255,70,70,.09); font-size: .82rem; }

.cart-title,
.admin-title { margin-bottom: 1.5rem; display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.cart-title h1,
.admin-title h1 { margin: 0; font-size: clamp(2rem, 6vw, 3.3rem); }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 1.25rem; align-items: start; }
.cart-card,
.checkout-card { padding: 1.25rem; }
.checkout-card { position: sticky; top: 100px; }
.cart-item { padding: 1rem 0; display: grid; grid-template-columns: 1fr auto; gap: 1rem; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
.cart-item h3 { margin: 0 0 .35rem; }
.cart-item span { color: var(--muted); }
.cart-item strong { color: var(--gold-bright); font-size: 1.2rem; }
.remove-item { margin-top: .55rem; padding: 0; border: 0; color: #ff9a9a; background: transparent; cursor: pointer; }
.checkout-row { padding: .65rem 0; display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); }
.checkout-total { margin: .6rem 0 1rem; padding-top: 1rem; border-top: 1px solid var(--line); color: #fff; font-size: 1.1rem; font-weight: 900; }
.checkout-button { width: 100%; border: 0; cursor: pointer; }
.empty-cart { padding: 3rem 1rem; text-align: center; color: var(--muted); }

.admin-login { max-width: 480px; margin: 4rem auto; padding: 1.5rem; display: grid; gap: 1rem; }
.admin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.admin-card { padding: 1.2rem; }
.admin-card span { color: var(--muted); font-size: .82rem; }
.admin-card strong { margin-top: .35rem; display: block; font-size: 2rem; }
.admin-section { margin-top: 1.25rem; }
.admin-section h2 { margin: 0 0 1rem; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 700px; }
.admin-table th,
.admin-table td { padding: .85rem; border-bottom: 1px solid var(--line); text-align: right; }
.admin-table th { color: var(--muted); font-size: .78rem; }
.status-pill { padding: .25rem .5rem; border-radius: 999px; font-size: .72rem; font-weight: 800; }
.status-paid { color: #9ce3b7; background: rgba(68,190,117,.12); }
.status-pending { color: #ffd78b; background: rgba(255,189,74,.1); }
.sales-bar { margin-top: .75rem; height: 7px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.06); }
.sales-bar i { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,var(--orange),var(--gold-bright)); }

@media (max-width: 820px) {
  .product-layout,
  .product-details-grid,
  .cart-layout { grid-template-columns: 1fr; }
  .product-visual { position: relative; top: 0; min-height: 340px; }
  .checkout-card { position: static; }
  .admin-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .store-bar-inner { width: min(100% - 1rem, 1180px); min-height: 66px; }
  .product-shell,
  .cart-shell,
  .admin-shell { width: min(100% - 1rem, 1180px); padding-top: 1.25rem; }
  .product-actions { grid-template-columns: 1fr; }
  .product-visual { min-height: 280px; border-radius: 20px; }
  .product-buybox,
  .product-description-card,
  .product-reviews { border-radius: 20px; }
  .admin-grid { grid-template-columns: 1fr; }
  .store-back { padding: .65rem .75rem; }
}
