/* Blackwing shop — extends styles.css (nav, footer, .section, buttons, --accent). */

.shop-hero { padding: 132px 56px 8px; max-width: 1400px; margin: 0 auto; width: 100%; }
.shop-hero h1 { font-size: 52px; font-weight: 800; letter-spacing: -0.03em; color: #fff; margin: 0 0 12px; }
.shop-hero p { font-size: 17px; color: rgba(255,255,255,0.55); max-width: 540px; line-height: 1.6; margin: 0; }

/* Product grid */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 48px 56px 112px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}
.product-card {
  background: #131313;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform .25s cubic-bezier(.16,1,.3,1), background .25s;
}
.product-card:hover { transform: translateY(-4px); background: #181818; }
.product-card-img { aspect-ratio: 1; background: #1a1a1a; overflow: hidden; position: relative; }
.sold-badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: rgba(0,0,0,0.78); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 6px; }
.product-card.sold-out .product-card-img img { opacity: 0.45; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 4px; }
.product-card-name { font-size: 18px; font-weight: 700; color: #fff; }
.product-card-tagline { font-size: 14px; color: #888; line-height: 1.5; }
.product-card-price { font-size: 16px; font-weight: 600; color: #fff; margin-top: 8px; }

/* Product detail page */
.pdp { max-width: 1100px; margin: 0 auto; padding: 124px 56px 100px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.pdp-media { display: flex; flex-direction: column; gap: 12px; }
.pdp-main { background: #131313; border-radius: 16px; overflow: hidden; aspect-ratio: 1; }
.pdp-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.pdp-thumb { width: 72px; height: 72px; border-radius: 8px; overflow: hidden; background: #131313; border: 1px solid #222; padding: 0; cursor: pointer; transition: border-color .15s; }
.pdp-thumb:hover { border-color: #555; }
.pdp-thumb.selected { border-color: #fff; box-shadow: 0 0 0 2px rgba(68,85,255,0.3); }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-info { padding-top: 8px; }
.pdp-name { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; color: #fff; margin: 0 0 10px; line-height: 1.05; }
.pdp-price { font-size: 22px; font-weight: 600; color: #fff; margin: 0 0 24px; }
.pdp-desc { font-size: 16px; color: rgba(255,255,255,0.6); line-height: 1.7; margin: 0 0 32px; }
.pdp-label { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #777; margin: 0 0 12px; }

/* Variant pills + qty */
.variant-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.variant-pill {
  min-width: 52px; padding: 11px 16px; border: 1px solid #333; border-radius: 8px;
  background: transparent; color: #aaa; font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .15s;
}
.variant-pill:hover { border-color: #666; color: #fff; }
.variant-pill.selected { background: #fff; color: #000; border-color: #fff; box-shadow: 0 0 0 3px rgba(68,85,255,0.25); }
.variant-pill:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }

.size-guide-link { background: none; border: none; color: var(--accent); font: inherit; font-size: 11px; font-weight: 600; text-transform: none; letter-spacing: 0; cursor: pointer; margin-left: 8px; text-decoration: underline; }
.size-guide-link:hover { color: #fff; }
.size-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1002; width: 440px; max-width: 92vw; background: #0c0c0c; border: 1px solid #1c1c1c; border-radius: 14px; padding: 24px 28px 28px; }
.size-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.size-modal-head h2 { font-size: 15px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin: 0; }
.size-table { width: 100%; border-collapse: collapse; }
.size-table th, .size-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #1a1a1a; font-size: 14px; color: #ddd; }
.size-table th { color: #777; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.size-note { color: #666; font-size: 12px; margin: 16px 0 0; line-height: 1.5; }

.qty-row { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid #333; border-radius: 8px; overflow: hidden; }
.qty-stepper button { width: 40px; height: 44px; background: transparent; color: #fff; border: none; font-size: 20px; cursor: pointer; }
.qty-stepper button:hover { background: #1e1e1e; }
.qty-stepper span { width: 44px; text-align: center; font-size: 15px; color: #fff; }

.add-btn { width: 100%; justify-content: center; cursor: pointer; border: none; font: inherit; }
.add-btn:disabled { opacity: .4; cursor: not-allowed; }
.pdp-back { display: inline-block; margin-top: 22px; font-size: 14px; color: #888; text-decoration: none; }
.pdp-back:hover { color: #fff; }

/* Cart button in nav */
.cart-btn { position: relative; background: none; border: none; color: rgba(255,255,255,0.7); cursor: pointer; padding: 6px; display: flex; align-items: center; }
.cart-btn:hover { color: #fff; }
.cart-count { position: absolute; top: -4px; right: -6px; min-width: 17px; height: 17px; padding: 0 4px; background: var(--accent); color: #fff; border-radius: 9px; font-size: 11px; font-weight: 700; display: none; align-items: center; justify-content: center; line-height: 17px; }
.cart-count.show { display: flex; }

/* Slide-in cart + checkout overlay */
.shop-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 1000; opacity: 0; pointer-events: none; transition: opacity .25s; }
.shop-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 420px; max-width: 92vw; z-index: 1001;
  background: #0c0c0c; border-left: 1px solid #1c1c1c; transform: translateX(100%);
  transition: transform .3s cubic-bezier(.16,1,.3,1); display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 24px 28px; border-bottom: 1px solid #1c1c1c; }
.cart-head h2 { font-size: 16px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin: 0; }
.cart-close { background: none; border: none; color: #888; font-size: 24px; cursor: pointer; line-height: 1; }
.cart-close:hover { color: #fff; }
.cart-back { background: none; border: none; color: #888; font-size: 20px; cursor: pointer; line-height: 1; }
.cart-back:hover { color: #fff; }
.cart-body { flex: 1; overflow-y: auto; padding: 12px 28px; }
.cart-empty { color: #666; font-size: 15px; text-align: center; padding: 48px 0; }
.cart-line { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid #161616; }
.cart-line img { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; background: #1a1a1a; flex-shrink: 0; }
.cart-line-info { flex: 1; min-width: 0; }
.cart-line-name { font-size: 14px; font-weight: 600; color: #fff; }
.cart-line-label { font-size: 12px; color: #888; margin-top: 2px; }
.cart-line-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.cart-line-price { font-size: 14px; color: #fff; }
.cart-qty { display: inline-flex; align-items: center; border: 1px solid #2a2a2a; border-radius: 6px; overflow: hidden; }
.cart-qty button { width: 28px; height: 28px; background: transparent; color: #fff; border: none; cursor: pointer; font-size: 15px; line-height: 1; }
.cart-qty button:hover { background: #1e1e1e; }
.cart-qty span { width: 30px; text-align: center; font-size: 13px; color: #fff; }
.cart-line-remove { background: none; border: none; color: #777; font-size: 12px; cursor: pointer; margin-top: 8px; }
.cart-line-remove:hover { color: #ff6b6b; }
.cart-foot { padding: 22px 28px 28px; border-top: 1px solid #1c1c1c; }
.cart-total-row { display: flex; justify-content: space-between; font-size: 15px; color: #fff; margin-bottom: 18px; }
.cart-total-row strong { font-weight: 700; }

/* Checkout panel (reuses the drawer position, wider) */
.checkout-panel { width: 520px; }
.checkout-panel .cart-body { padding: 24px 28px; }
.co-field { margin-bottom: 14px; }
.co-field label { display: block; font-size: 12px; color: #999; margin-bottom: 6px; }
.co-field input { width: 100%; padding: 12px 14px; background: #141414; border: 1px solid #2a2a2a; border-radius: 8px; color: #fff; font: inherit; font-size: 15px; }
.co-field input:focus { outline: none; border-color: var(--accent); }
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co-row-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.co-error { color: #ff6b6b; font-size: 13px; margin: 8px 0 0; min-height: 18px; }
.co-summary { font-size: 14px; color: #aaa; margin: 16px 0; }
.co-summary .co-total { display: flex; justify-content: space-between; color: #fff; font-weight: 700; font-size: 16px; padding-top: 10px; border-top: 1px solid #222; margin-top: 8px; }
#payment-element { margin: 18px 0; min-height: 40px; }
.co-done { text-align: center; padding: 40px 12px; }
.co-done h2 { font-size: 28px; font-weight: 800; color: #fff; margin: 0 0 10px; }
.co-done p { color: #999; font-size: 15px; line-height: 1.6; }

@media (max-width: 1000px) { .pdp { grid-template-columns: 1fr; gap: 32px; padding-top: 104px; } }
@media (max-width: 860px) { .shop-grid { grid-template-columns: repeat(2, 1fr); padding: 40px 24px 80px; } .shop-hero { padding: 116px 24px 0; } .shop-hero h1 { font-size: 40px; } }
@media (max-width: 520px) { .shop-grid { grid-template-columns: 1fr; } .pdp, .pdp-name { } .co-row, .co-row-3 { grid-template-columns: 1fr; } }
