/* ============ SHOP ============ */

.shop-hero {
  padding: 90px 0 60px;
  background: radial-gradient(1200px 400px at 50% 0%, rgba(244, 169, 27, 0.12) 0%, transparent 70%), var(--pearl);
  text-align: center;
}

.shop-hero h1 {
  font-family: var(--display);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 12px 0 16px;
}

.shop-hero p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--mist);
  font-size: clamp(16px, 2vw, 18px);
}

.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 36px auto 40px;
  max-width: 980px;
}

.shop-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(5, 28, 44, 0.12);
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  transition: all 160ms var(--ease-premium);
  cursor: pointer;
}

.shop-filter-pill:hover {
  border-color: rgba(244, 169, 27, 0.8);
  box-shadow: 0 10px 30px -18px rgba(5, 28, 44, 0.9);
}

.shop-filter-pill.active {
  background: linear-gradient(90deg, rgba(244, 169, 27, 0.18) 0%, rgba(255, 255, 255, 1) 100%);
  border-color: rgba(244, 169, 27, 0.9);
  color: var(--navy-deep);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 26px;
}

.shop-card {
  grid-column: span 4;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(5, 28, 44, 0.08);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 220ms var(--ease-premium), box-shadow 220ms var(--ease-premium), border-color 220ms var(--ease-premium);
}

.shop-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(244, 169, 27, 0.6);
}

.shop-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: radial-gradient(600px 280px at 50% 0%, rgba(244, 169, 27, 0.14) 0%, transparent 70%), linear-gradient(180deg, var(--pearl) 0%, var(--white) 100%);
  overflow: hidden;
}

.shop-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms var(--ease-premium);
}

.shop-card:hover .shop-card-media img {
  transform: scale(1.05);
}

.shop-card-badges {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  z-index: 2;
}

.shop-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  background: rgba(5, 28, 44, 0.85);
  color: #fff;
}

.shop-badge--stock {
  background: rgba(16, 185, 129, 0.9);
}

.shop-badge--preorder {
  background: rgba(244, 169, 27, 0.95);
  color: var(--ink);
}

.shop-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 26px 26px;
}

.shop-card-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.shop-card-category {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.shop-card-title {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}

.shop-card-desc {
  color: var(--mist);
  line-height: 1.7;
  margin: 0;
}

.shop-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.shop-card-specs li {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(5, 28, 44, 0.1);
  font-size: 12px;
  color: var(--ink);
}

.shop-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 8px;
}

.shop-card-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.shop-price-amount {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.shop-price-note {
  font-size: 12px;
  color: var(--text-mist);
}

.shop-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Shop card share button */
.shop-card-share-wrap {
  display: inline-flex;
}
.shop-card-share {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--pearl);
  color: var(--ink);
  border: none;
  cursor: pointer;
  transition: background 140ms var(--ease-premium), color 140ms;
  flex-shrink: 0;
}
.shop-card-share:hover {
  background: var(--gold);
  color: var(--navy);
}

.shop-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 160ms var(--ease-premium);
}

.shop-btn--primary {
  background: linear-gradient(90deg, #f4a91b 0%, #f5b63b 100%);
  color: var(--ink);
  box-shadow: 0 18px 40px -24px rgba(244, 169, 27, 0.9);
}

.shop-btn--primary:hover {
  filter: brightness(1.02);
}

.shop-btn--ghost {
  border-color: rgba(5, 28, 44, 0.16);
  color: var(--ink);
  background: transparent;
}

.shop-btn[disabled] {
  opacity: 0.5;
  pointer-events: none;
}

.shop-empty {
  text-align: center;
  padding: 40px 20px;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(5, 28, 44, 0.18);
  color: var(--mist);
}

/* Cart */
.shop-cart-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(5, 28, 44, 0.14);
  background: var(--white);
  cursor: pointer;
  transition: border-color 160ms var(--ease-premium), box-shadow 160ms var(--ease-premium);
}

.shop-cart-toggle:hover {
  border-color: rgba(244, 169, 27, 0.8);
  box-shadow: 0 8px 24px -14px rgba(244, 169, 27, 0.7);
}

.shop-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.shop-cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s 320ms;
}

.shop-cart-drawer.open {
  visibility: visible;
  pointer-events: auto;
  transition: visibility 0s;
}

.shop-cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 28, 44, 0.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 280ms var(--ease-premium);
}

.shop-cart-drawer.open .shop-cart-backdrop {
  opacity: 1;
}

.shop-cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100%;
  background: var(--white);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  transform: translateX(100%);
  transition: transform 320ms var(--ease-premium);
}

.shop-cart-drawer.open .shop-cart-panel {
  transform: translateX(0);
}

.shop-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 26px;
  border-bottom: 1px solid rgba(5, 28, 44, 0.08);
}

.shop-cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.shop-cart-item {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 14px;
  align-items: center;
}

.shop-cart-item img {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.shop-cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shop-cart-item-title {
  font-weight: 600;
}

.shop-cart-item-price {
  color: var(--gold-ink);
  font-weight: 600;
}

.shop-cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(5, 28, 44, 0.14);
  border-radius: 999px;
  padding: 4px 10px;
}

.shop-cart-qty button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: transparent;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms var(--ease-premium);
}

.shop-cart-qty button:hover {
  background: rgba(244, 169, 27, 0.16);
}

.shop-cart-footer {
  border-top: 1px solid rgba(5, 28, 44, 0.08);
  padding: 18px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shop-cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
}

.shop-cart-empty {
  text-align: center;
  color: var(--mist);
  margin-top: 40px;
}

/* Checkout */
.shop-checkout {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 30px;
}

.shop-checkout-main {
  grid-column: span 7;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.shop-checkout-sidebar {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.shop-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(5, 28, 44, 0.08);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.shop-panel-header {
  padding: 22px 28px 0;
}

.shop-panel-body {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 18px 28px 28px;
}

.shop-panel-body .full {
  grid-column: 1 / -1;
}

.shop-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shop-field label {
  font-weight: 600;
}

.shop-field input,
.shop-field textarea,
.shop-field select {
  border-radius: var(--radius-md);
  border: 1px solid rgba(5, 28, 44, 0.16);
  padding: 12px 14px;
  font: inherit;
}

.shop-order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  border-top: 1px solid rgba(5, 28, 44, 0.08);
}

.shop-order-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 28px 26px;
  border-top: 1px solid rgba(5, 28, 44, 0.08);
}

.shop-order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shop-order-total {
  font-size: 18px;
  font-weight: 700;
}

.shop-success {
  text-align: center;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.shop-success-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Helper notes (replaces former inline styles) */
.shop-panel-note {
  margin: 6px 0 0;
  color: var(--mist);
}

.shop-checkout-note {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-mist);
}

.shop-order-back {
  justify-content: center;
}

.shop-order-item-title {
  font-weight: 600;
}

.shop-order-item-qty {
  color: var(--text-mist);
  font-size: 13px;
}

.shop-cart-note {
  margin: 0;
  font-size: 12px;
  color: var(--text-mist);
  line-height: 1.5;
}

/* Floating cart FAB (mobile) */
.shop-cart-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--gold, #F4A91B);
  color: var(--ink, #051c2c);
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.35);
  z-index: 9998;
  cursor: pointer;
}
.shop-cart-fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #e53935;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}
@media (max-width: 768px) {
  .shop-cart-fab { display: flex; }
}

/* Raffle promo banner */
.shop-raffle-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px;
  margin: 0 0 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0d2f24 0%, #1a4a36 50%, #0d2f24 100%);
  color: #fff;
  flex-wrap: wrap;
  border: 2px solid #F4A91B;
  box-shadow: 0 8px 32px -8px rgba(244,169,27,0.45), 0 0 0 4px rgba(244,169,27,0.12);
  position: relative;
  overflow: hidden;
}
.shop-raffle-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(244,169,27,0.18), transparent 70%);
  pointer-events: none;
}
.shop-raffle-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 1;
}
.shop-raffle-text strong {
  font-size: 26px;
  color: #ffd24a;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  letter-spacing: 0.01em;
}
.shop-raffle-text span {
  font-size: 14px;
  color: #e8f0ea;
  max-width: 560px;
  line-height: 1.5;
}
.shop-raffle-lottie {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.shop-raffle-details {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 13px;
  color: #d6e0ec;
  line-height: 1.6;
}
.shop-raffle-details li {
  margin-bottom: 4px;
}
.shop-raffle-cta {
  white-space: nowrap;
  position: relative;
  z-index: 1;
  font-size: 15px;
  padding: 12px 24px;
  background: #F4A91B;
  color: #051c2c;
  font-weight: 700;
  border: none;
  box-shadow: 0 4px 14px -4px rgba(244,169,27,0.6);
}
.shop-raffle-cta:hover {
  background: #ffd24a;
  transform: translateY(-1px);
}
@media (max-width: 640px) {
  .shop-raffle-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }
  .shop-raffle-cta {
    width: 100%;
    justify-content: center;
  }
  .shop-raffle-img {
    max-width: 100%;
  }
}
.shop-raffle-cta {
  white-space: nowrap;
}
.shop-raffle-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 10px;
  flex-shrink: 0;
}
.shop-raffle-lottie {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .shop-raffle-img {
    max-width: 100%;
  }
}
@media (max-width: 640px) {
  .shop-raffle-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .shop-raffle-cta {
    width: 100%;
    justify-content: center;
  }
}

/* Referral / marketing banner */
.shop-referral-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  margin: 0 0 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(244,169,27,0.12), rgba(47,107,58,0.08));
  border: 1px solid rgba(244,169,27,0.25);
  flex-wrap: wrap;
}
.shop-referral-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.shop-referral-text strong {
  font-size: 15px;
  color: var(--ink, #051c2c);
}
.shop-referral-text span {
  font-size: 13px;
  color: var(--mist, #5b6b54);
}
@media (max-width: 640px) {
  .shop-referral-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Keyboard focus rings */
.shop-filter-pill:focus-visible,
.shop-btn:focus-visible,
.shop-cart-toggle:focus-visible,
.shop-field input:focus-visible,
.shop-field textarea:focus-visible,
.shop-field select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .shop-cart-drawer,
  .shop-cart-drawer.open,
  .shop-cart-backdrop,
  .shop-cart-panel,
  .shop-card,
  .shop-card-media img,
  .shop-filter-pill,
  .shop-btn,
  .shop-cart-toggle,
  .shop-cart-qty button {
    transition: none;
  }

  .shop-card:hover,
  .shop-card:hover .shop-card-media img {
    transform: none;
  }
}

@media (max-width: 1080px) {
  .shop-card {
    grid-column: span 6;
  }

  .shop-checkout-main,
  .shop-checkout-sidebar {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .shop-hero {
    padding: 64px 0 44px;
  }

  .shop-filters {
    gap: 8px;
    margin: 26px auto 30px;
  }

  .shop-filter-pill {
    padding: 8px 14px;
    font-size: 13px;
  }

  .shop-card {
    grid-column: 1 / -1;
  }

  .shop-card-body {
    padding: 20px;
  }

  .shop-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .shop-card-actions {
    width: 100%;
  }

  .shop-card-actions .shop-btn {
    flex: 1;
    justify-content: center;
  }

  .shop-panel-header {
    padding: 20px 20px 0;
  }

  .shop-panel-body {
    grid-template-columns: 1fr;
    padding: 16px 20px 24px;
  }

  .shop-order-item {
    padding: 14px 20px;
  }

  .shop-order-summary {
    padding: 18px 20px 24px;
  }

  .shop-success {
    padding: 56px 16px;
  }

  .shop-cart-header {
    padding: 18px 20px;
  }

  .shop-cart-body {
    padding: 16px 20px;
  }

  .shop-cart-footer {
    padding: 16px 20px;
  }

  .shop-cart-qty button {
    width: 30px;
    height: 30px;
  }
}
