/* USA GOLD STORE v2.0 — App styles (mobile-first) */
:root{
  --bg:#0b0b0e;
  --panel:#111118;
  --card:#151520;
  --muted:#a8a8b5;
  --text:#f3f3f7;
  --line:rgba(255,255,255,.08);
  --gold:#f5c84c;
  --gold2:#c9961a;
  --accent:#5dd6ff;
  --danger:#ff5d5d;
  --radius:16px;
  --shadow: 0 10px 30px rgba(0,0,0,.45);
  --wrap: 1150px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  background: radial-gradient(1200px 700px at 20% 10%, rgba(245,200,76,.14), transparent 60%),
              radial-gradient(900px 600px at 90% 0%, rgba(93,214,255,.10), transparent 55%),
              var(--bg);
  color:var(--text);
  line-height:1.55;
}
a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}
.wrap{max-width:var(--wrap); margin:0 auto; padding:0 18px}
.skip-link{
  position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{left:18px; top:18px; width:auto; height:auto; background:#000; padding:10px 12px; border-radius:12px; z-index:9999}

.muted{color:var(--muted)}
.small{font-size:.92rem}
.center{text-align:center}
.mt{margin-top:16px}
.hr{height:1px; background:var(--line); margin:18px 0}
.gold{color:var(--gold)}
.pill{
  display:inline-flex; gap:10px; align-items:center;
  background: rgba(255,255,255,.06);
  border:1px solid var(--line);
  border-radius:999px;
  padding:8px 12px;
  font-size:.92rem;
}
.star{color:var(--gold)}
.link{color:var(--gold); text-decoration:underline; text-underline-offset:3px}
.badge{
  display:inline-block; padding:4px 8px; border-radius:999px;
  background: rgba(245,200,76,.12); border:1px solid rgba(245,200,76,.35);
  color:var(--gold); font-size:.82rem; margin-left:8px;
}
.chip{
  display:inline-flex; align-items:center; justify-content:center;
  padding:5px 10px; border-radius:999px; border:1px solid var(--line);
  background: rgba(255,255,255,.05);
  font-size:.85rem;
}
.price{font-weight:800}
.price.big{font-size:1.6rem}
.compare{color:rgba(243,243,247,.65); text-decoration:line-through; margin-left:10px}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:999px;
  padding:12px 16px;
  font-weight:700;
  border:1px solid rgba(245,200,76,.35);
  background: linear-gradient(180deg, rgba(245,200,76,.95), rgba(201,150,26,.95));
  color:#141414;
  box-shadow: 0 10px 22px rgba(245,200,76,.12);
  cursor:pointer;
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover{transform: translateY(-1px); filter:brightness(1.02)}
.btn:active{transform: translateY(0)}
.btn.btn-ghost{
  background: rgba(255,255,255,.06);
  color: var(--text);
  border:1px solid var(--line);
  box-shadow:none;
}
.btn.danger{border-color: rgba(255,93,93,.4); color: var(--danger)}
.btn.disabled, .btn[disabled]{
  opacity:.5; pointer-events:none;
}

.site-header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(12px);
  background: rgba(11,11,14,.62);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px; padding:14px 0;
}
.brand-logo{height:36px; width:auto}
.top-nav{display:none; gap:18px}
.nav-link{color:rgba(243,243,247,.85)}
.nav-link:hover{color:var(--text)}
.header-actions{display:flex; align-items:center; gap:10px}

.cart-pill{
  display:inline-flex; gap:8px; align-items:center;
  padding:10px 12px; border-radius:999px;
  border:1px solid var(--line); background: rgba(255,255,255,.04);
}
.cart-pill .dot{width:8px; height:8px; border-radius:50%; background:var(--gold)}
.cart-pill .count{
  min-width:24px; text-align:center;
  background: rgba(245,200,76,.16);
  border:1px solid rgba(245,200,76,.35);
  border-radius:999px; padding:2px 8px; color:var(--gold);
  font-weight:800;
}

.menu-btn{
  width:44px; height:40px; border-radius:12px;
  background: rgba(255,255,255,.05);
  border:1px solid var(--line);
  display:grid; place-items:center;
  cursor:pointer;
}
.menu-btn span{
  display:block; width:18px; height:2px; background:rgba(243,243,247,.85); margin:2px 0;
}
.mobile-drawer{display:none; border-top:1px solid var(--line); padding:12px 0}
.mobile-drawer.open{display:block}
.drawer-link{display:block; padding:10px 2px; border-bottom:1px dashed rgba(255,255,255,.08); color:rgba(243,243,247,.9)}

.hero{
  padding:54px 0 26px;
}
.hero.compact{padding:28px 0 10px}
.hero-grid{display:grid; gap:18px}
.hero-card{
  position:relative;
  border-radius:var(--radius);
  background: radial-gradient(900px 420px at 10% 20%, rgba(245,200,76,.18), transparent 55%),
              linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.10);
  overflow:hidden;
  box-shadow: var(--shadow);
  min-height:280px;
  display:flex; flex-direction:column; justify-content:flex-end;
}
.hero-art{width:100%; height:auto; opacity:.9}
.hero-card .shine{
  position:absolute; inset:-40%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,.12), transparent);
  transform: rotate(18deg);
  animation: shine 7s linear infinite;
  pointer-events:none;
}
@keyframes shine{0%{transform:translateX(-40%) rotate(18deg)}100%{transform:translateX(40%) rotate(18deg)}}
.hero-card-foot{
  padding:14px 16px;
  border-top:1px solid rgba(255,255,255,.10);
  background: rgba(11,11,14,.55);
}
.lead{font-size:1.08rem; color:rgba(243,243,247,.86)}
.cta-row{display:flex; gap:12px; flex-wrap:wrap; margin-top:14px}

.trust-row{
  display:grid; gap:10px; margin-top:18px
}
.trust{
  display:flex; gap:12px; align-items:center;
  border:1px solid var(--line); background: rgba(255,255,255,.04);
  border-radius:14px; padding:10px 12px;
}
.trust-ic{font-size:1.3rem}

.section{padding:26px 0}
.section.alt{
  background: linear-gradient(180deg, rgba(255,255,255,.04), transparent);
  border-top:1px solid rgba(255,255,255,.06);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.section-head{display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin-bottom:14px}
.grid{display:grid; gap:14px}
.products{grid-template-columns:1fr}
.card{
  border-radius:var(--radius);
  border:1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
}
.card-body{padding:16px}
.product-link{display:block}
.product-img{
  width:100%; height:180px; object-fit:cover;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  background: rgba(0,0,0,.25);
}
.product-body{padding:14px 14px 16px}
.product-body h3{margin:0 0 6px; font-size:1.02rem}
.clamp{display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden}
.product-foot{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:10px}

.panel{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(17,17,24,.55);
  border-radius: var(--radius);
  padding:16px;
}
.panel.note{background: rgba(245,200,76,.07); border-color: rgba(245,200,76,.2)}
.tags{display:flex; flex-wrap:wrap; gap:10px}
.tag{
  padding:10px 12px; border-radius:999px;
  border:1px solid var(--line); background: rgba(255,255,255,.04);
}
.tag:hover{border-color: rgba(245,200,76,.35)}
.checklist{list-style:none; padding:0; margin:14px 0}
.checklist li{margin:10px 0; padding-left:26px; position:relative}
.checklist li:before{
  content:"✓"; position:absolute; left:0; top:0; color:var(--gold); font-weight:800;
}
.steps{margin:0; padding-left:20px}
.steps li{margin:10px 0}

.split{display:grid; gap:14px}
.prose{
  max-width: 780px;
}
.prose h2{margin-top:24px}
.prose a{color:var(--gold); text-decoration:underline; text-underline-offset:3px}
.prose code{background:rgba(0,0,0,.25); padding:2px 6px; border-radius:8px}

.filters{
  margin-top:14px;
  display:grid; gap:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius: var(--radius);
  padding:14px;
}
.field label{display:block; font-size:.92rem; color:rgba(243,243,247,.78); margin-bottom:6px}
.field input, .field textarea, .field select{
  width:100%; border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  color: var(--text);
  padding:11px 12px;
  outline:none;
}
.field textarea{resize:vertical}
.field input:focus, .field textarea:focus, .field select:focus{
  border-color: rgba(245,200,76,.35);
  box-shadow: 0 0 0 4px rgba(245,200,76,.10);
}
.field.actions{display:flex; gap:10px; align-items:flex-end}
.range{display:flex; gap:10px; align-items:center}
.range input{flex:1}

.product-page{display:grid; gap:14px}
.gallery{
  border:1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  overflow:hidden;
  background: rgba(0,0,0,.2);
}
.gallery-main{
  width:100%; height:320px; object-fit:cover;
}
.thumbs{display:flex; gap:10px; padding:10px; overflow:auto; border-top:1px solid rgba(255,255,255,.10)}
.thumb{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  border-radius:14px; padding:0; cursor:pointer;
}
.thumb img{width:74px; height:58px; object-fit:cover; border-radius:14px}

.buybox{border:1px solid rgba(255,255,255,.10); border-radius: var(--radius); padding:16px; background: rgba(17,17,24,.55)}
.buyline{display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:12px 0}
.qty-row{display:flex; align-items:center; justify-content:space-between; gap:10px; margin:12px 0}

.cart-grid{display:grid; gap:14px}
.cart-row{
  display:grid; grid-template-columns:72px 1fr; gap:12px;
  padding:12px 0; border-bottom:1px solid rgba(255,255,255,.08);
}
.cart-row:last-child{border-bottom:none}
.cart-img{width:72px; height:72px; object-fit:cover; border-radius:14px; background:rgba(0,0,0,.2)}
.cart-actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:8px}
.cart-form{display:flex; gap:10px; align-items:center}
.cart-form input{width:82px}
.cart-price{font-weight:800; margin-top:8px}

.checkout-grid{display:grid; gap:14px}
.form-grid{display:grid; gap:12px}
.field.span2{grid-column:1 / -1}
.paypal-box{margin-top:10px}
.sticky{position:sticky; top:86px}

.sum-row{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:7px 0;
}
.sum-row.big{font-size:1.1rem; font-weight:900}

.flash{
  position:sticky; top:64px; z-index:40;
  padding:10px 0;
}
.flash-inner{
  max-width:var(--wrap); margin:0 auto; padding:10px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
}
.flash-ok .flash-inner{border-color: rgba(93,255,156,.25)}
.flash-err .flash-inner{border-color: rgba(255,93,93,.25)}

.site-footer{
  border-top:1px solid rgba(255,255,255,.08);
  padding:22px 0;
  margin-top:20px;
}
.footer-grid{display:grid; gap:14px}
.site-footer h5{margin:0 0 10px}
.site-footer a{display:block; color:rgba(243,243,247,.82); padding:4px 0}
.site-footer a:hover{color:var(--text)}
.footer-bottom{display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap; margin-top:12px; padding-top:12px; border-top:1px solid rgba(255,255,255,.06)}
.footer-mark{opacity:.95}

@media (min-width: 820px){
  .top-nav{display:flex}
  .menu-btn{display:none}
  .mobile-drawer{display:none !important}
  .hero-grid{grid-template-columns: 1.1fr .9fr; align-items:stretch}
  .trust-row{grid-template-columns:repeat(3,1fr)}
  .products{grid-template-columns:repeat(3,1fr)}
  .split{grid-template-columns: 1.2fr .8fr; align-items:start}
  .product-page{grid-template-columns: 1fr 1fr}
  .cart-grid{grid-template-columns: 1.2fr .8fr}
  .checkout-grid{grid-template-columns: 1.2fr .8fr}
  .form-grid{grid-template-columns:repeat(2,1fr)}
  .filters{grid-template-columns: repeat(2, 1fr)}
  .field.actions{grid-column:1/-1}
  .footer-grid{grid-template-columns:1.4fr repeat(3,1fr)}
  .cart-row{grid-template-columns:72px 1fr auto auto}
  .cart-actions{margin-top:0; justify-content:flex-end}
  .cart-price{margin-top:0}
}
