/* LuckyDaw Shop — public storefront styles */

/* ── Theme tokens ─────────────────────────────────────────── */
:root {
  --shop-radius: 16px;
  --shop-radius-sm: 10px;
  --shop-shadow: 0 8px 32px rgba(0,0,0,.35);
  --shop-shadow-lg: 0 24px 64px rgba(0,0,0,.55);
}

/* Smooth scroll for in-page anchors */
html { scroll-behavior: smooth; }

/* ── Zodiac emoji placeholder (used everywhere no image exists yet) ─────── */
.zodiac-placeholder {
  position: relative;
  width: 100%; height: 100%;
  background:
    radial-gradient(ellipse at center, rgba(245,158,11,.18) 0%, transparent 65%),
    linear-gradient(135deg, var(--dark4) 0%, var(--dark2) 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.zodiac-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(245,158,11,.12) 0%, transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(245,158,11,.10) 0%, transparent 30%);
  pointer-events: none;
}
.zodiac-placeholder::after {
  content: '';
  position: absolute; width: 70%; aspect-ratio: 1;
  border-radius: 50%; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(245,158,11,.3);
  pointer-events: none;
}
.zodiac-emoji {
  position: relative; z-index: 1;
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1;
  display: inline-block;
  filter:
    drop-shadow(0 8px 24px rgba(0,0,0,.5))
    drop-shadow(0 0 32px rgba(245,158,11,.4));
  animation: zodiacFloat 4s ease-in-out infinite alternate;
}
@keyframes zodiacFloat {
  0%   { transform: translateY(0)    scale(1)    rotate(-2deg); }
  100% { transform: translateY(-6px) scale(1.04) rotate(2deg); }
}

/* Hero carousel uses a much larger emoji to fill the circular frame */
.hero-product-placeholder.zodiac-placeholder {
  border-radius: 50%;
}
.hero-product-placeholder.zodiac-placeholder .zodiac-emoji {
  font-size: clamp(5rem, 12vw, 9rem);
}

/* Cart thumb stays compact */
.cart-row-thumb.zodiac-placeholder { border-radius: 12px; }

/* ── Shop Nav ─────────────────────────────────────────────── */
.shop-nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(8,12,24,.85);
  backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%);
  border-bottom: 1px solid rgba(245,158,11,.18);
  padding: .85rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.shop-nav-brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.shop-nav-logo  { height: 40px; width: auto; max-width: 100px; object-fit: contain; border-radius: 6px; }
.shop-nav-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(245,158,11,.24), rgba(245,158,11,.06));
  border: 1px solid rgba(245,158,11,.35);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1.15rem; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,.2) inset, 0 8px 24px rgba(245,158,11,.15);
}
.shop-nav-name {
  font-size: 1.05rem; font-weight: 800; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px;
  letter-spacing: .02em;
}
.shop-nav-right { display: flex; align-items: center; gap: .55rem; flex-shrink: 0; }
.shop-nav-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  color: #cbd5e1; border-radius: 12px; padding: .5rem 1rem;
  font-size: .88rem; font-weight: 700; text-decoration: none;
  transition: all .18s ease;
}
.shop-nav-btn:hover { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); transform: translateY(-1px); }
.shop-nav-btn.gold { background: linear-gradient(135deg, rgba(245,158,11,.18), rgba(245,158,11,.08)); border-color: rgba(245,158,11,.4); color: var(--gold); }
.shop-nav-btn.gold:hover { background: linear-gradient(135deg, rgba(245,158,11,.28), rgba(245,158,11,.14)); color: #fcd34d; box-shadow: 0 8px 24px rgba(245,158,11,.2); }
.cart-badge {
  position: absolute; top: -7px; right: -7px;
  background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff;
  font-size: .7rem; font-weight: 800;
  min-width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 0 6px; border: 2px solid #0a0e1c;
  box-shadow: 0 4px 12px rgba(239,68,68,.4);
  animation: cartPulse 2s ease-in-out infinite;
}
@keyframes cartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.shop-nav-lang {
  display: inline-flex; align-items: center; gap: .35rem;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  color: #94a3b8; border-radius: 12px; padding: .4rem .8rem;
  font-size: .75rem; font-weight: 700; text-decoration: none;
  transition: all .18s ease;
}
.shop-nav-lang i { color: var(--gold); font-size: .78rem; }
.shop-nav-lang:hover { background: rgba(255,255,255,.1); color: #fff; transform: translateY(-1px); }
.shop-nav-sep { width: 1px; height: .8em; background: rgba(255,255,255,.2); }

@media (max-width: 600px) {
  .shop-nav { padding: .55rem .75rem; gap: .5rem; }
  .shop-nav-logo { height: 34px; }
  .shop-nav-icon { width: 38px; height: 38px; font-size: 1rem; }
  .shop-nav-name { max-width: 130px; font-size: .92rem; }
  .shop-nav-right { gap: .4rem; }
  .shop-nav-btn-label { display: none; }
  /* Uniform square icon buttons — clean & tappable */
  .shop-nav-btn {
    padding: 0; width: 40px; height: 40px;
    justify-content: center; border-radius: 11px; font-size: 1rem;
  }
  .shop-nav-lang {
    padding: 0 .55rem; height: 40px; border-radius: 11px;
    font-size: .72rem; gap: .3rem;
  }
  .cart-badge {
    top: -6px; right: -6px; min-width: 18px; height: 18px;
    font-size: .62rem; border-width: 1.5px;
  }
  /* Trim excess whitespace under the header on phones */
  .shop-hero { min-height: auto; }
  .hero-carousel { padding: 1.25rem 0; }
  .hero-carousel .carousel-item { padding: 1rem 0; min-height: auto; }
}
@media (max-width: 380px) {
  .shop-nav { padding: .5rem .6rem; }
  .shop-nav-name { max-width: 86px; font-size: .82rem; }
  .shop-nav-right { gap: .32rem; }
  .shop-nav-btn { width: 36px; height: 36px; font-size: .95rem; }
  .shop-nav-lang { padding: 0 .45rem; height: 36px; font-size: .66rem; }
}

/* ── Hero (product carousel) ──────────────────────────────── */
.shop-hero {
  background: linear-gradient(180deg, #050811 0%, var(--dark) 100%);
  position: relative; overflow: hidden;
  min-height: clamp(380px, 56vw, 580px);
}
.shop-hero-glow {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 20% 30%, rgba(245,158,11,.22) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(99,102,241,.10) 0%, transparent 60%);
}
.shop-hero .container { position: relative; z-index: 4; }
.shop-hero-title { /* legacy fallback heading */
  font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900;
  letter-spacing: -.02em; line-height: 1.05;
  background: linear-gradient(135deg, #fff 0%, var(--gold-light) 45%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 1rem;
}
.shop-hero-sub {
  color: #cbd5e1; font-size: clamp(.95rem, 1.6vw, 1.1rem);
  max-width: 620px; margin: 0 auto 1.5rem; line-height: 1.65;
}

/* ── Carousel layout ──────────────────────────────────────── */
.hero-carousel { padding: 2.5rem 0; }
.hero-carousel .carousel-inner { overflow: visible; }
.hero-carousel .carousel-item {
  position: relative;
  padding: clamp(1.5rem, 4vw, 3rem) 0;
  min-height: clamp(320px, 50vw, 480px);
}
.hero-slide-bg {
  position: absolute; inset: -20px; z-index: 0;
  background-size: cover; background-position: center;
  filter: blur(40px) saturate(180%) brightness(.6);
  opacity: .55;
}
.hero-slide-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(8,12,24,.5) 0%, rgba(8,12,24,.75) 100%);
}

/* Product image side */
.hero-product-img-wrap {
  position: relative;
  width: clamp(220px, 36vw, 380px);
  aspect-ratio: 1; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.hero-product-glow {
  position: absolute; inset: -10%; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(245,158,11,.35) 0%, transparent 65%);
  filter: blur(20px); z-index: 0;
  animation: heroGlow 4s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  0%   { transform: scale(.95); opacity: .7; }
  100% { transform: scale(1.05); opacity: 1; }
}
.hero-product-img {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(245,158,11,.45);
  box-shadow:
    0 0 0 1px rgba(245,158,11,.25) inset,
    0 24px 64px rgba(0,0,0,.65),
    0 0 80px rgba(245,158,11,.25);
}
.hero-product-placeholder {
  position: relative; z-index: 1;
  width: 100%; height: 100%; border-radius: 50%;
  background: linear-gradient(135deg, var(--dark4), var(--dark2));
  border: 4px solid rgba(245,158,11,.45);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 5rem;
}

/* Product info side */
.hero-product-info {
  padding: 1rem 0;
  text-align: left;
}
.hero-product-info .hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(245,158,11,.12);
  border: 1px solid var(--border-gold);
  color: var(--gold); font-weight: 700;
  padding: 5px 14px; border-radius: 50px;
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero-product-title {
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1; letter-spacing: -.02em;
  background: linear-gradient(135deg, #fff 0%, var(--gold-light) 60%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 1rem;
  text-shadow: 0 0 40px rgba(245,158,11,.2);
}
.hero-product-desc {
  color: #cbd5e1; font-size: clamp(.92rem, 1.3vw, 1.05rem);
  line-height: 1.7; margin-bottom: 1.5rem;
  max-width: 540px;
}
.hero-product-price {
  display: flex; align-items: baseline; gap: .75rem;
  margin-bottom: 1.8rem; flex-wrap: wrap;
}
.hero-product-price .price-regular,
.hero-product-price .price-sale {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800; color: var(--gold);
}
.hero-product-price .price-old {
  font-size: 1.1rem; color: var(--text-muted);
  text-decoration: line-through;
}
.hero-product-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.hero-product-actions .btn { padding: .7rem 1.5rem; border-radius: 12px; font-weight: 700; }

/* Carousel controls */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 8%; opacity: .85;
  z-index: 5;
}
.hero-carousel .hero-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(245,158,11,.15); border: 1px solid var(--border-gold);
  color: var(--gold); font-size: 1rem;
  backdrop-filter: blur(8px);
  transition: all .2s ease;
}
.hero-carousel .carousel-control-prev:hover .hero-arrow,
.hero-carousel .carousel-control-next:hover .hero-arrow {
  background: var(--gold); color: #0a0e1c; transform: scale(1.08);
}
.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon { display: none; }

/* Indicators */
.hero-carousel .carousel-indicators {
  margin-bottom: .8rem; gap: 6px;
}
.hero-carousel .carousel-indicators button {
  width: 28px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,.25);
  border: 0; opacity: 1;
  transition: all .3s ease;
}
.hero-carousel .carousel-indicators button.active {
  background: var(--gold); width: 44px;
  box-shadow: 0 0 10px rgba(245,158,11,.6);
}

/* Slide transition */
.hero-carousel .carousel-item {
  transition: transform .8s cubic-bezier(.4,0,.2,1), opacity .8s ease;
}
.hero-carousel .carousel-item.active .hero-product-img-wrap {
  animation: heroImgIn .8s cubic-bezier(.4,0,.2,1);
}
.hero-carousel .carousel-item.active .hero-product-info > * {
  animation: heroInfoIn .8s cubic-bezier(.4,0,.2,1) both;
}
.hero-carousel .carousel-item.active .hero-product-info > *:nth-child(1) { animation-delay: .08s; }
.hero-carousel .carousel-item.active .hero-product-info > *:nth-child(2) { animation-delay: .16s; }
.hero-carousel .carousel-item.active .hero-product-info > *:nth-child(3) { animation-delay: .24s; }
.hero-carousel .carousel-item.active .hero-product-info > *:nth-child(4) { animation-delay: .32s; }
.hero-carousel .carousel-item.active .hero-product-info > *:nth-child(5) { animation-delay: .40s; }
@keyframes heroImgIn {
  from { transform: scale(.85) rotate(-6deg); opacity: 0; }
  to   { transform: scale(1) rotate(0); opacity: 1; }
}
@keyframes heroInfoIn {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

@media (max-width: 767px) {
  .hero-product-info { text-align: center; }
  .hero-product-desc { margin-left: auto; margin-right: auto; }
  .hero-product-price { justify-content: center; }
  .hero-product-actions { justify-content: center; }
  .hero-carousel .carousel-control-prev,
  .hero-carousel .carousel-control-next { width: 12%; }
  .hero-carousel .hero-arrow { width: 38px; height: 38px; font-size: .85rem; }
}

/* ── Section header ──────────────────────────────────────── */
.section-eyebrow {
  display: inline-block;
  color: var(--gold); font-weight: 700;
  font-size: .8rem; letter-spacing: .25em; text-transform: uppercase;
  margin-bottom: .5rem;
}

/* ── Product Card ─────────────────────────────────────────── */
.product-card {
  background: linear-gradient(180deg, var(--dark3), var(--dark2));
  border: 1px solid var(--border);
  border-radius: var(--shop-radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .35s cubic-bezier(.4,0,.2,1),
              box-shadow .35s cubic-bezier(.4,0,.2,1),
              border-color .35s;
  height: 100%;
  position: relative;
}
.product-card::before {
  content: ''; position: absolute; inset: 0;
  border-radius: var(--shop-radius);
  background: linear-gradient(135deg, rgba(245,158,11,.0), rgba(245,158,11,.06) 50%, rgba(245,158,11,.0));
  opacity: 0; transition: opacity .35s ease; pointer-events: none; z-index: 1;
}
.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shop-shadow-lg), 0 0 0 1px var(--border-gold);
  border-color: var(--border-gold);
}
.product-card:hover::before { opacity: 1; }
.product-card-img {
  position: relative; display: block;
  aspect-ratio: 1; overflow: hidden;
  background: linear-gradient(135deg, var(--dark4), var(--dark2));
  text-decoration: none; z-index: 0;
}
.product-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.25,.46,.45,.94);
}
.product-card:hover .product-card-img img { transform: scale(1.08); }
.product-card-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; color: var(--border-gold);
  background: radial-gradient(ellipse at center, rgba(245,158,11,.08), transparent);
}
.product-badge {
  position: absolute; top: .85rem; left: .85rem;
  padding: 5px 13px; border-radius: 50px;
  font-size: .7rem; font-weight: 800; letter-spacing: 1px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.product-badge.sale {
  background: linear-gradient(135deg, rgba(239,68,68,.95), rgba(220,38,38,.95));
  color: #fff;
}
.product-badge.oos {
  background: rgba(15,23,42,.85); color: #cbd5e1;
  left: auto; right: .85rem;
  border: 1px solid rgba(255,255,255,.15);
}

.product-card-body { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; flex: 1; position: relative; z-index: 2; }
.product-card-title {
  font-size: 1rem; font-weight: 700;
  line-height: 1.35; margin-bottom: .6rem;
  min-height: 2.7em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card-title a { color: #fff; text-decoration: none; transition: color .2s; }
.product-card-title a:hover { color: var(--gold); }
.product-card-price { margin-bottom: 1rem; flex: 1; display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.price-regular { color: var(--gold); font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; }
.price-sale    { color: var(--gold); font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; }
.price-old     { color: var(--text-muted); text-decoration: line-through; font-size: .9rem; font-weight: 500; }
.product-card-actions { display: flex; gap: .45rem; }
.product-card-actions .btn {
  flex: 1; font-size: .82rem; font-weight: 700;
  padding: .6rem .7rem; border-radius: var(--shop-radius-sm);
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  transition: all .2s ease;
}
.product-card-actions .btn-add-cart { flex: 0 0 auto; min-width: 56px; padding: .6rem .8rem; }
.product-card-actions .btn-add-cart i { margin: 0 !important; }
.product-card-actions .btn:hover:not(:disabled) { transform: translateY(-1px); }

/* ── Product Detail Page ──────────────────────────────────── */
.product-detail {
  background: linear-gradient(180deg, var(--dark2), rgba(11,15,28,.4));
  border: 1px solid var(--border);
  border-radius: var(--shop-radius); padding: clamp(1.2rem, 3vw, 2rem);
  margin-top: 1.5rem;
  box-shadow: var(--shop-shadow);
}
.pd-gallery-main {
  aspect-ratio: 1; border-radius: 14px; overflow: hidden;
  background: linear-gradient(135deg, var(--dark4), var(--dark2));
  border: 1px solid var(--border);
  position: relative;
}
.pd-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-gallery-thumbs { display: flex; gap: .55rem; margin-top: .7rem; flex-wrap: wrap; }
.pd-gallery-thumbs img {
  width: 68px; height: 68px; object-fit: cover; border-radius: 10px;
  cursor: pointer; border: 2px solid var(--border); opacity: .65;
  transition: all .2s;
}
.pd-gallery-thumbs img:hover { opacity: 1; }
.pd-gallery-thumbs img.active { opacity: 1; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(245,158,11,.2); }
.pd-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: #fff; margin-bottom: .5rem; letter-spacing: -.01em; }
.pd-price { font-size: clamp(1.6rem, 3.5vw, 2rem); font-weight: 800; color: var(--gold); margin-bottom: 1.3rem; display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.pd-price .price-old { font-size: 1.1rem; }
.pd-description { color: #cbd5e1; line-height: 1.75; margin-bottom: 1.5rem; }
.pd-meta { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.pd-meta-chip {
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  border-radius: 50px; padding: 7px 14px;
  color: var(--text-muted); font-size: .85rem; font-weight: 500;
}
.pd-meta-chip i { color: var(--gold); margin-right: 5px; }
.pd-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: stretch; }
.pd-actions .btn { padding: .65rem 1.2rem; border-radius: var(--shop-radius-sm); font-weight: 700; }
.pd-qty {
  display: inline-flex; align-items: center; gap: 0;
  background: var(--dark3); border: 1px solid var(--border); border-radius: var(--shop-radius-sm);
  overflow: hidden;
}
.pd-qty button {
  background: transparent; border: 0; color: #fff;
  width: 42px; height: 46px; font-size: 1.2rem; font-weight: 700;
  cursor: pointer; transition: background .15s;
}
.pd-qty button:hover { background: rgba(245,158,11,.15); color: var(--gold); }
.pd-qty input {
  background: transparent; border: 0; color: #fff;
  width: 56px; text-align: center; font-weight: 700; font-size: 1rem;
}
.pd-qty input::-webkit-outer-spin-button,
.pd-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ── Cart Page ───────────────────────────────────────────── */
.cart-wrapper { max-width: 1000px; margin: 2rem auto; padding: 0 1rem; }
.cart-row {
  background: linear-gradient(180deg, var(--dark2), rgba(11,15,28,.5));
  border: 1px solid var(--border);
  border-radius: var(--shop-radius); padding: 1rem; margin-bottom: .85rem;
  display: grid;
  grid-template-columns: 88px 1fr auto auto auto;
  gap: 1rem; align-items: center;
  transition: border-color .2s;
}
.cart-row:hover { border-color: rgba(245,158,11,.25); }
.cart-row > img,
.cart-row-thumb {
  width: 88px; height: 88px; object-fit: cover; border-radius: 12px;
  background: var(--dark4);
}
.cart-row-thumb {
  display: flex; align-items: center; justify-content: center;
  color: var(--border-gold); font-size: 1.8rem;
}
.cart-row-name { font-weight: 700; color: #fff; margin-bottom: .25rem; }
.cart-row-price { color: var(--gold); font-weight: 600; font-size: .92rem; }
.cart-row-warn { color: #f59e0b; font-size: .8rem; margin-top: .25rem; }
.cart-row .pd-qty button { width: 36px; height: 38px; font-size: 1.1rem; }
.cart-row .pd-qty input { width: 44px; }
.cart-line-total { min-width: 120px; text-align: right; font-weight: 700; color: var(--gold); }
.cart-summary {
  background: linear-gradient(180deg, var(--dark2), rgba(11,15,28,.6));
  border: 1px solid var(--border-gold);
  border-radius: var(--shop-radius); padding: 1.6rem; margin-top: 1.5rem;
  box-shadow: 0 12px 36px rgba(245,158,11,.08);
}
.cart-summary .row-line {
  display: flex; justify-content: space-between; align-items: center;
  padding: .55rem 0; color: #cbd5e1; font-size: .95rem;
}
.cart-summary .total-line {
  border-top: 1px solid var(--border); padding-top: 1rem; margin-top: .5rem;
  font-size: 1.35rem; font-weight: 800; color: var(--gold);
}

@media (max-width: 640px) {
  .cart-row {
    grid-template-columns: 72px 1fr auto;
    grid-template-rows: auto auto;
    row-gap: .75rem;
  }
  .cart-row > img, .cart-row-thumb { width: 72px; height: 72px; grid-row: 1 / 3; }
  .cart-row > :nth-child(2) { grid-column: 2 / 4; grid-row: 1; }
  .cart-row > .pd-qty       { grid-column: 2; grid-row: 2; }
  .cart-row > .cart-line-total { grid-column: 3; grid-row: 2; }
  .cart-row > .cart-remove  {
    grid-column: 3; grid-row: 1; justify-self: end;
  }
}

/* ── Empty states ────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 4rem 1.5rem;
}
.empty-state-icon {
  width: 96px; height: 96px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(245,158,11,.12), rgba(245,158,11,.02));
  border: 1px solid var(--border-gold);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem;
  color: var(--gold); font-size: 2.6rem;
}
.empty-state h4 { color: #fff; font-weight: 800; margin-bottom: .5rem; }
.empty-state p { color: var(--text-muted); margin-bottom: 1.5rem; max-width: 420px; margin-left: auto; margin-right: auto; }

/* ── Checkout / Order Success ─────────────────────────────── */
.checkout-wrapper { max-width: 1000px; margin: 2rem auto; padding: 0 1rem; }
.checkout-card {
  background: linear-gradient(180deg, var(--dark2), rgba(11,15,28,.5));
  border: 1px solid var(--border);
  border-radius: var(--shop-radius); padding: 1.6rem; margin-bottom: 1rem;
}
.checkout-card h4 {
  color: #fff; font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; gap: .55rem; margin-bottom: 1.2rem;
  padding-bottom: .8rem; border-bottom: 1px solid var(--border);
}
.checkout-card h4 i {
  color: var(--gold); width: 32px; height: 32px;
  background: rgba(245,158,11,.12); border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .95rem;
}
.checkout-card .form-control,
.checkout-card .form-select {
  background: var(--dark3); border: 1px solid var(--border); color: #fff;
  padding: .65rem .9rem; border-radius: var(--shop-radius-sm);
  transition: all .18s ease;
}
.checkout-card .form-control:focus,
.checkout-card .form-select:focus {
  background: var(--dark3); border-color: var(--gold);
  color: #fff; box-shadow: 0 0 0 3px rgba(245,158,11,.18);
}
.checkout-card .form-control::placeholder { color: #64748b; }
.checkout-card label { color: #cbd5e1; font-weight: 600; font-size: .88rem; margin-bottom: .35rem; }

textarea.form-control { min-height: 80px; }

/* Checkout progress steps */
.checkout-steps {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: nowrap; max-width: 540px; margin: 0 auto 2rem;
}
.cstep {
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  flex-shrink: 0;
}
.cstep .cnum {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--dark3); border: 2px solid var(--border); color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .95rem;
  transition: all .2s;
}
.cstep .clabel { color: var(--text-muted); font-size: .8rem; font-weight: 600; }
.cstep.active .cnum {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark)); border-color: var(--gold);
  color: #0a0e1c;
  box-shadow: 0 0 0 5px rgba(245,158,11,.16);
}
.cstep.active .clabel { color: var(--gold); }
.cstep.done .cnum { background: rgba(34,197,94,.18); border-color: #22c55e; color: #22c55e; }
.cstep.done .clabel { color: #22c55e; }
.cline {
  flex: 1 1 auto; height: 2px; background: var(--border);
  margin: 0 .4rem; margin-bottom: 1.5rem;
  min-width: 30px; max-width: 100px;
}
.cline.done { background: linear-gradient(90deg, #22c55e, rgba(34,197,94,.4)); }

@media (max-width: 480px) {
  .cstep .clabel { font-size: .7rem; }
  .cstep .cnum { width: 32px; height: 32px; font-size: .82rem; }
  .cline { min-width: 16px; }
}

.qr-success-box {
  background: linear-gradient(180deg, var(--dark2), rgba(11,15,28,.7));
  border: 2px solid var(--gold);
  border-radius: 20px; padding: 2rem; text-align: center;
  max-width: 520px; margin: 2rem auto;
  box-shadow: 0 24px 64px rgba(245,158,11,.18);
}
.qr-canvas-wrap {
  background: #fff; padding: 18px; border-radius: 14px;
  display: inline-block; margin: 1rem 0;
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
}

/* ── Fulfillment selector ─────────────────────────────────── */
.fulfill-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.fulfill-card {
  background: linear-gradient(180deg, var(--dark3), var(--dark2));
  border: 2px solid var(--border);
  border-radius: var(--shop-radius); padding: 1.6rem 1.2rem; text-align: center;
  cursor: pointer; transition: all .25s cubic-bezier(.4,0,.2,1);
  color: #fff; position: relative;
  user-select: none;
}
.fulfill-card:hover {
  border-color: rgba(245,158,11,.5);
  background: linear-gradient(180deg, var(--dark3), rgba(245,158,11,.04));
  transform: translateY(-3px);
}
.fulfill-card.active {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(245,158,11,.12), rgba(245,158,11,.02));
  box-shadow: 0 12px 32px rgba(245,158,11,.18), inset 0 0 0 1px var(--border-gold);
}
.fulfill-card.active::after {
  content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  position: absolute; top: 12px; right: 14px;
  color: var(--gold); font-size: 1.1rem;
}
.fulfill-card i { font-size: 2.8rem; color: var(--gold); margin-bottom: .6rem; display: block; }
.fulfill-card .ft { font-weight: 800; font-size: 1.15rem; }
.fulfill-card .fd { color: var(--text-muted); font-size: .85rem; margin-top: .35rem; line-height: 1.5; }
@media (max-width: 480px) { .fulfill-choice { grid-template-columns: 1fr; } }

/* ── LuckyDaw name input panel ────────────────────────────── */
.luckydaw-panel {
  background:
    radial-gradient(ellipse at top right, rgba(245,158,11,.1), transparent 60%),
    linear-gradient(180deg, rgba(245,158,11,.06), rgba(245,158,11,.02));
  border: 1px solid var(--border-gold);
  border-radius: var(--shop-radius); padding: 1.4rem; margin-bottom: 1rem;
  position: relative; overflow: hidden;
}
.luckydaw-panel::before {
  content: ''; position: absolute; top: -20px; right: -20px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(245,158,11,.12) 0%, transparent 70%);
  pointer-events: none;
}
.luckydaw-panel h5 {
  color: var(--gold); font-weight: 800;
  display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem;
  position: relative;
}
.luckydaw-panel h5 i { font-size: 1.15rem; }
.luckydaw-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: .65rem; position: relative;
}
.luckydaw-entry-row {
  display: flex; gap: .55rem; align-items: center;
}
.luckydaw-entry-row .item-tag {
  flex-shrink: 0;
  font-size: .72rem; font-weight: 800; color: var(--gold);
  background: linear-gradient(135deg, rgba(245,158,11,.18), rgba(245,158,11,.08));
  border: 1px solid var(--border-gold);
  border-radius: 8px; padding: 8px 10px;
  min-width: 44px; text-align: center;
  letter-spacing: .03em;
  box-shadow: 0 0 0 1px rgba(0,0,0,.2) inset;
}
.luckydaw-entry-row .form-control {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  color: #fff; font-weight: 500;
}
.luckydaw-entry-row .form-control:focus {
  background: rgba(255,255,255,.06);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,158,11,.16);
  color: #fff;
}

/* ── Button refinements ──────────────────────────────────── */
.btn-gold {
  font-weight: 700; letter-spacing: .01em;
  transition: all .2s ease;
}
.btn-gold:hover:not(:disabled) { transform: translateY(-2px); }
.btn-outline-gold {
  border: 1px solid var(--border-gold);
  color: var(--gold);
  background: transparent;
  font-weight: 700;
  transition: all .2s ease;
}
.btn-outline-gold:hover:not(:disabled) {
  background: rgba(245,158,11,.1);
  color: #fcd34d;
  border-color: var(--gold);
  transform: translateY(-1px);
}

/* ── Slip dropzone (checkout) ─────────────────────────────── */
.slip-dropzone {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 2px dashed rgba(245,158,11,.4);
  border-radius: 16px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
  min-height: 180px;
  display: flex; align-items: center; justify-content: center;
}
.slip-dropzone::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(245,158,11,.08), transparent 70%);
  opacity: 0; transition: opacity .25s ease;
}
.slip-dropzone:hover,
.slip-dropzone:focus-visible {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(245,158,11,.06), rgba(245,158,11,.01));
  transform: translateY(-1px);
  outline: none;
}
.slip-dropzone:hover::before,
.slip-dropzone:focus-visible::before { opacity: 1; }
.slip-dropzone.is-dragover {
  border-color: var(--gold);
  border-style: solid;
  background: linear-gradient(180deg, rgba(245,158,11,.14), rgba(245,158,11,.04));
  transform: scale(1.005);
  box-shadow:
    0 0 0 4px rgba(245,158,11,.18),
    0 12px 32px rgba(245,158,11,.18);
}

/* State visibility — driven by data-state on the wrapper */
.slip-state { display: none; width: 100%; }
.slip-dropzone[data-state="idle"]    .slip-state-idle    { display: block; }
.slip-dropzone[data-state="preview"] .slip-state-preview { display: flex; gap: 1rem; align-items: center; text-align: left; }
.slip-dropzone[data-state="error"]   .slip-state-error   { display: block; }
.slip-dropzone[data-state="preview"] { cursor: default; padding: 1rem; }
.slip-dropzone[data-state="error"]   { border-color: rgba(239,68,68,.6); background: rgba(239,68,68,.04); }

/* Idle */
.slip-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(245,158,11,.18), rgba(245,158,11,.04));
  border: 1px solid var(--border-gold);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1.8rem;
  margin-bottom: .75rem;
  transition: transform .3s ease;
}
.slip-dropzone:hover .slip-icon,
.slip-dropzone.is-dragover .slip-icon { transform: translateY(-3px) scale(1.05); }
.slip-title {
  color: #fff; font-weight: 700; font-size: 1.02rem;
  margin-bottom: .25rem;
}
.slip-sub {
  color: #94a3b8; font-size: .9rem;
  margin-bottom: .9rem;
}
.slip-link {
  color: var(--gold); font-weight: 700;
  text-decoration: underline; text-decoration-color: rgba(245,158,11,.4);
  text-underline-offset: 3px;
}
.slip-meta {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; color: var(--text-muted);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 5px 14px;
}
.slip-meta-sep { opacity: .5; }

/* Preview */
.slip-preview-img-wrap {
  position: relative; flex-shrink: 0;
  width: 100px; height: 100px;
  border-radius: 12px; overflow: hidden;
  background: var(--dark4);
  border: 1px solid var(--border-gold);
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.slip-preview-img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.slip-remove {
  position: absolute; top: 4px; right: 4px;
  width: 26px; height: 26px; border-radius: 50%;
  border: 0; background: rgba(0,0,0,.6);
  color: #fff; font-size: .75rem;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.slip-remove:hover { background: #ef4444; transform: scale(1.1); }

.slip-preview-info { flex: 1; min-width: 0; }
.slip-preview-name {
  color: #fff; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: .25rem;
}
.slip-preview-size {
  display: flex; gap: .75rem; align-items: center;
  color: var(--text-muted); font-size: .85rem;
  flex-wrap: wrap;
}
.slip-check {
  color: #22c55e; font-weight: 600;
  display: inline-flex; align-items: center;
}

/* Error */
.slip-state-error .slip-title { color: #fca5a5; }

@media (max-width: 480px) {
  .slip-dropzone { padding: 1.25rem .9rem; min-height: 160px; }
  .slip-icon { width: 52px; height: 52px; font-size: 1.4rem; }
  .slip-meta { font-size: .72rem; padding: 4px 10px; }
  .slip-dropzone[data-state="preview"] .slip-state-preview { flex-direction: column; text-align: center; }
  .slip-preview-info { width: 100%; }
}

/* ── LuckyDaw ticket cards on order success ─────────────────── */
.ld-entries-grid { margin-top: .25rem; }
.ld-ticket {
  position: relative;
  background: linear-gradient(180deg, rgba(245,158,11,.08), rgba(245,158,11,.02));
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: .85rem 1rem;
  transition: border-color .2s, transform .2s;
}
.ld-ticket:hover { border-color: var(--gold); transform: translateY(-2px); }
.ld-ticket-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: .5rem; margin-bottom: .5rem;
}
.ld-ticket-name {
  color: #fff; font-weight: 700; font-size: .95rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ld-ticket-name i { color: var(--gold); }
.ld-ticket-id {
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  color: var(--gold); font-weight: 700; font-size: .92rem;
  letter-spacing: .04em;
  background: rgba(0,0,0,.25);
  border: 1px dashed rgba(245,158,11,.35);
  border-radius: 8px;
  padding: 6px 10px;
  text-align: center;
}
.ld-ticket-id.muted {
  color: var(--text-muted); font-weight: 500;
  border-style: dotted; border-color: var(--border);
  background: rgba(255,255,255,.03);
}
.ld-qr-box {
  margin-top: .75rem;
  padding: 12px; background: #fff;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.ld-qr-box img, .ld-qr-box canvas { display: block; margin: 0 auto; }

/* ── Reveal animations ───────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
