/* Pashmina Craft — Shop styles (luxury dark + gold) */
:root {
  --bg: #0a0705;
  --bg2: #120d09;
  --card: #171009;
  --card2: #1d150c;
  --line: rgba(233, 201, 139, 0.14);
  --ink: #f7f1e8;
  --muted: rgba(247, 241, 232, 0.62);
  --gold: #e9c98b;
  --gold-deep: #b98a3e;
  --accent: #8a5a12;
  --green: #7fb069;
  --red: #d97757;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea {
  font-family: inherit; font-size: 14px;
  background: var(--bg2); color: var(--ink);
  border: 1px solid var(--line); border-radius: 6px;
  padding: 12px 14px; width: 100%; outline: none;
  transition: border-color .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold-deep); }
label { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }

/* header */
.shop-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 7, 5, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.shop-header .inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: .06em; }
.brand span { color: var(--gold); }
.shop-nav { display: flex; gap: 26px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; align-items: center; }
.shop-nav > a { color: var(--muted); transition: color .2s; }
.shop-nav > a:hover, .shop-nav > a.active { color: var(--gold); }

/* dropdown nav */
.nav-drop { position: relative; }
.drop-trigger { color: var(--muted); transition: color .2s; display: inline-flex; align-items: center; gap: 5px; }
.nav-drop:hover .drop-trigger, .drop-trigger.active { color: var(--gold); }
.caret { font-size: 9px; opacity: .7; }
.drop-panel {
  position: absolute; top: calc(100% + 22px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--bg2); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 0; min-width: 200px;
  opacity: 0; pointer-events: none; transition: opacity .22s, transform .22s;
  box-shadow: 0 24px 48px -16px rgba(0,0,0,.75);
}
.nav-drop:hover .drop-panel, .nav-drop:focus-within .drop-panel {
  opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.drop-panel a {
  display: block; padding: 10px 22px; color: var(--muted); font-size: 11.5px;
  letter-spacing: .1em; text-transform: uppercase; transition: color .15s, background .15s; white-space: nowrap;
}
.drop-panel a:hover { color: var(--gold); background: rgba(233,201,139,.05); }

/* mobile menu toggle */
.menu-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 6px; width: 40px; height: 40px; font-size: 17px; }
.cart-btn {
  position: relative; background: none; border: 1px solid var(--line); color: var(--ink);
  border-radius: 999px; padding: 9px 18px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  transition: border-color .2s, background .2s;
}
.cart-btn:hover { border-color: var(--gold-deep); background: rgba(233,201,139,.06); }
.cart-count {
  position: absolute; top: -7px; right: -6px; min-width: 20px; height: 20px;
  background: var(--gold-deep); color: #0a0705; border-radius: 999px;
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 5px;
}

/* announcement */
.announce {
  background: linear-gradient(90deg, #1a1208, #241809, #1a1208);
  color: var(--gold); text-align: center; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  padding: 9px 16px; border-bottom: 1px solid var(--line);
}

/* hero strip */
.shop-hero {
  max-width: 1280px; margin: 0 auto; padding: 56px 24px 8px;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px;
}
.shop-hero h1 { font-family: var(--font-display); font-size: clamp(34px, 5vw, 54px); font-weight: 600; line-height: 1.05; }
.shop-hero p { color: var(--muted); max-width: 520px; margin-top: 10px; }

/* filters */
.filters {
  max-width: 1280px; margin: 26px auto 0; padding: 0 24px;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.chip {
  background: none; border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 8px 18px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  transition: all .2s;
}
.chip:hover { color: var(--ink); border-color: var(--gold-deep); }
.chip.active { background: var(--gold); color: #0a0705; border-color: var(--gold); font-weight: 600; }

/* grid */
.grid {
  max-width: 1280px; margin: 30px auto 80px; padding: 0 24px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 28px;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.3,1), border-color .35s, box-shadow .35s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); border-color: rgba(233,201,139,.35); box-shadow: 0 24px 48px -20px rgba(0,0,0,.7); }
.card .img-wrap { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--bg2); }
.card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.3,1); }
.card:hover .img-wrap img { transform: scale(1.05); }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(10,7,5,.82); color: var(--gold); border: 1px solid rgba(233,201,139,.3);
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 4px;
}
.card .info { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .cat { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); }
.card h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.2; }
.card .desc { font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 12px; }
.price { font-size: 17px; font-weight: 600; color: var(--gold); }
.price .compare { font-size: 12.5px; color: var(--muted); text-decoration: line-through; margin-left: 8px; font-weight: 400; }
.add-btn {
  background: transparent; border: 1px solid var(--gold-deep); color: var(--gold);
  border-radius: 6px; padding: 9px 16px; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  transition: all .25s;
}
.add-btn:hover { background: var(--gold); color: #0a0705; }
.stock-low { font-size: 11px; color: var(--red); }

/* product detail */
.pdp { max-width: 1180px; margin: 40px auto 90px; padding: 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.pdp .gallery img { border-radius: 10px; border: 1px solid var(--line); width: 100%; }
.pdp .cat { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); }
.pdp h1 { font-family: var(--font-display); font-size: clamp(32px, 4vw, 46px); font-weight: 600; line-height: 1.08; margin: 10px 0 14px; }
.pdp .price { font-size: 26px; }
.pdp .desc { color: var(--muted); margin: 18px 0 26px; max-width: 480px; }
.qty-row { display: flex; gap: 14px; align-items: stretch; margin-bottom: 18px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.qty button { width: 42px; height: 48px; background: none; border: none; color: var(--ink); font-size: 18px; }
.qty input { width: 52px; text-align: center; border: none; background: none; padding: 0; }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, var(--gold-deep), var(--accent));
  color: #fff; border: none; border-radius: 6px; padding: 15px 34px;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  transition: transform .2s, box-shadow .2s; flex: 1;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(185,138,62,.5); }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 6px;
  padding: 13px 26px; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; transition: all .2s;
}
.btn-ghost:hover { border-color: var(--gold-deep); color: var(--gold); }
.trust { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 22px; display: grid; gap: 12px; }
.trust div { display: flex; gap: 12px; align-items: baseline; font-size: 13px; color: var(--muted); }
.trust b { color: var(--ink); font-weight: 600; }
.trust .dot { color: var(--gold); }

/* cart drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .3s; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(430px, 94vw); z-index: 100;
  background: var(--bg2); border-left: 1px solid var(--line);
  transform: translateX(105%); transition: transform .38s cubic-bezier(.2,.7,.3,1);
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer .head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer .head h2 { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.drawer .close { background: none; border: none; color: var(--muted); font-size: 26px; line-height: 1; }
.drawer .items { flex: 1; overflow-y: auto; padding: 18px 24px; display: flex; flex-direction: column; gap: 18px; }
.cart-item { display: grid; grid-template-columns: 74px 1fr auto; gap: 14px; align-items: center; }
.cart-item img { width: 74px; height: 92px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.cart-item h4 { font-family: var(--font-display); font-size: 16.5px; font-weight: 600; }
.cart-item .meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.cart-item .qty { transform: scale(.82); transform-origin: left; margin-top: 6px; }
.cart-item .line-price { font-size: 14px; color: var(--gold); font-weight: 600; }
.cart-item .rm { background: none; border: none; color: var(--muted); font-size: 11px; text-decoration: underline; margin-top: 8px; }
.drawer .foot { border-top: 1px solid var(--line); padding: 20px 24px 24px; }
.subtotal-row { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 6px; }
.subtotal-row b { color: var(--gold); }
.free-ship-note { font-size: 12px; color: var(--green); margin-bottom: 14px; }

/* checkout */
.checkout { max-width: 1080px; margin: 40px auto 90px; padding: 0 24px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; }
.checkout h1 { font-family: var(--font-display); font-size: 38px; font-weight: 600; margin-bottom: 24px; grid-column: 1/-1; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1/-1; }
.field-err { border-color: var(--red) !important; }
.summary { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 26px; align-self: start; position: sticky; top: 92px; }
.summary h2 { font-family: var(--font-display); font-size: 24px; font-weight: 600; margin-bottom: 18px; }
.sum-line { display: flex; justify-content: space-between; font-size: 13.5px; padding: 7px 0; color: var(--muted); }
.sum-line.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; font-size: 17px; color: var(--ink); font-weight: 600; }
.sum-line.total span:last-child { color: var(--gold); }
.ship-box { background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin: 14px 0; font-size: 13px; }
.ship-box .carrier { color: var(--gold); font-weight: 600; }
.ship-box .eta { color: var(--muted); font-size: 12px; margin-top: 2px; }
.ship-box.free { border-color: rgba(127,176,105,.4); }
.ship-box.free .carrier { color: var(--green); }

/* confirmation */
.confirm { max-width: 640px; margin: 70px auto 100px; padding: 0 24px; text-align: center; }
.confirm .check { width: 74px; height: 74px; margin: 0 auto 24px; border-radius: 50%; background: rgba(127,176,105,.12); border: 1px solid rgba(127,176,105,.4); display: flex; align-items: center; justify-content: center; font-size: 34px; color: var(--green); }
.confirm h1 { font-family: var(--font-display); font-size: 40px; font-weight: 600; margin-bottom: 12px; }
.confirm .order-no { color: var(--gold); font-size: 18px; letter-spacing: .06em; margin-bottom: 18px; }
.confirm p { color: var(--muted); margin-bottom: 14px; }
.confirm .bank { text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 22px; margin: 26px 0; white-space: pre-line; font-size: 13.5px; }

/* footer */
.shop-footer { border-top: 1px solid var(--line); padding: 44px 24px; text-align: center; color: var(--muted); font-size: 12.5px; }
.shop-footer .brand { margin-bottom: 10px; }
.shop-footer .links { display: flex; gap: 22px; justify-content: center; margin: 14px 0; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; }
.shop-footer a:hover { color: var(--gold); }

/* toast */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--card2); border: 1px solid var(--gold-deep); color: var(--ink);
  padding: 13px 26px; border-radius: 8px; font-size: 13px; z-index: 200; opacity: 0;
  transition: all .35s cubic-bezier(.2,.7,.3,1); pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.empty { text-align: center; color: var(--muted); padding: 60px 0; grid-column: 1/-1; }

@media (max-width: 860px) {
  .pdp { grid-template-columns: 1fr; gap: 30px; }
  .checkout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .form-grid { grid-template-columns: 1fr; }
  .menu-toggle { display: block; }
  .shop-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg2); border-bottom: 1px solid var(--line); padding: 10px 0 16px;
  }
  .shop-nav.open { display: flex; }
  .shop-nav > a { padding: 13px 24px; }
  .nav-drop { width: 100%; }
  .drop-trigger { padding: 13px 24px; display: flex; justify-content: space-between; }
  .drop-panel {
    position: static; transform: none; opacity: 1; pointer-events: auto;
    background: none; border: none; box-shadow: none; padding: 0 0 6px; min-width: 0;
  }
  .drop-panel a { padding: 9px 24px 9px 40px; }
}
