/* Shop (Presale) Page Styles */
html, body {
  background-color: #000;
}
.shop-hero {
  padding: 80px 0 40px;
  background: #000;
  color: #fff;
}
.shop-hero .container {
  max-width: 1100px;
  margin: 0 auto;
}
.shop-hero h1 { font-size: 2.2rem; margin-bottom: 10px; }
.shop-hero h1 {
  position: relative;
}
.shop-hero h1::after {
  content: "";
  display: block;
  width: 140px;
  height: 3px;
  background: linear-gradient(90deg, #cda8ff, #7a5d89, #cda8ff);
  background-size: 200% 200%;
  animation: gradientFlow 10s ease-in-out infinite;
  border-radius: 999px;
  margin-top: 8px;
}
.shop-hero p { font-size: 1rem; color: #ddd; }

.shop-content { padding: 40px 0 60px; }
.shop-content .container { max-width: 1100px; margin: 0 auto; }
.shop-card {
  background: #000;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 24px;
  color: #ddd;
  margin-bottom: 24px;
}
.shop-card h2 { color: #fff; font-size: 1.4rem; margin-bottom: 12px; }
/* Purple underline utility for section titles */
.underline-purple { position: relative; display: inline-block; }
.underline-purple::after {
  content: "";
  display: block;
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, #cda8ff, #7a5d89, #cda8ff);
  border-radius: 999px;
  margin-top: 8px;
}
/* Smaller underline for group titles */
.underline-purple-sm { position: relative; display: inline-block; }
.underline-purple-sm::after {
  content: "";
  display: block;
  width: 90px;
  height: 3px;
  background: linear-gradient(90deg, #cda8ff, #7a5d89, #cda8ff);
  border-radius: 999px;
  margin-top: 6px;
}
.contact-list { list-style: none; padding: 0; }
.contact-list li { margin-bottom: 10px; }
.contact-list a { color: #988ac5; text-decoration: none; }
.contact-list a:hover { color: #7d72a8; }

.shop-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.shop-form .form-row { display: flex; flex-direction: column; gap: 8px; }
.shop-form label { font-size: 0.95rem; color: #ccc; }
.shop-form input, .shop-form textarea {
  background: #222;
  border: 1px solid #444;
  border-radius: 8px;
  color: #fff;
  padding: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.shop-form select {
  background: #222;
  border: 1px solid #444;
  border-radius: 8px;
  color: #fff;
  padding: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.shop-form select:disabled { cursor: not-allowed; opacity: 0.95; }
.shop-form select.currency-select {
  background: linear-gradient(135deg, #764ba2 0%, #9c6db4 100%);
  color: #000;
  border: 1px solid rgba(156, 109, 180, 0.35);
  border-radius: 4px;
  box-shadow: 0 14px 36px rgba(156, 109, 180, 0.5);
  padding: 8px 16px;
}
.shop-form select.currency-select:disabled { filter: brightness(0.98); }
.shop-form input:focus, .shop-form textarea:focus, .shop-form select:focus {
  border-color: #6d4a7c;
  box-shadow: 0 0 0 2px rgba(156, 109, 180, 0.25);
  outline: none;
}
.shop-form .form-actions { grid-column: span 2; margin-top: 4px; }
.shop-form textarea { min-height: 120px; grid-column: span 2; }
.shop-form .form-actions { grid-column: span 2; }
.shop-note { color: #888; font-size: 0.9rem; margin-top: 8px; }

@media (max-width: 768px) {
  .shop-form { grid-template-columns: 1fr; }
  .shop-form textarea, .shop-form .form-actions { grid-column: span 1; }
}

/* Force black backgrounds for shared components on this page */
.navbar { background-color: #000 !important; }
.navbar.scrolled { background-color: #000 !important; }
.main-footer { background-color: #000 !important; }

/* Flowing purple gradient card */
.shop-card.flow-purple {
  background: linear-gradient(135deg,
    #0f0a1a 0%,
    #1a0f26 12.5%,
    #2d1a3d 25%,
    #3d2650 37.5%,
    #4a2d5a 50%,
    #5a3d6d 62.5%,
    #6d4a7c 75%,
    #7a5d89 87.5%,
    #6d4a7c 100%);
  background-size: 400% 400%;
  animation: gradientFlow 12s ease-in-out infinite;
  border: 1px solid rgba(156, 109, 180, 0.35);
  box-shadow: 0 14px 36px rgba(156, 109, 180, 0.45);
  position: relative;
  overflow: hidden;
}

.shop-card.flow-purple::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -20%;
  width: 60%;
  height: 180%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0) 100%);
  transform: rotate(20deg);
  animation: shimmerSweep 3.6s ease-in-out infinite;
  pointer-events: none;
}

.shop-card.flow-purple h2,
.shop-card.flow-purple p,
.shop-card.flow-purple label,
.shop-card.flow-purple .group-title {
  color: #fff;
}

/* Options layout */
.options-group { margin-top: 8px; }
.group-title { font-size: 18px; margin: 16px 0 10px; opacity: 0.9; }
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.option-item {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  padding: 12px;
  min-width: 0; /* allow content to shrink within grid */
}
/* Purple-tinted background for selected option cards */
.option-item.purple-bg {
  background: linear-gradient(135deg, #140d20 0%, #1f1530 50%, #2a1c3f 100%);
  border: 1px solid rgba(156,109,180,0.35);
  box-shadow: 0 8px 22px rgba(156,109,180,0.25);
}
.option-head { display: flex; align-items: center; gap: 10px; }
.option-label { font-weight: 600; }
.option-price { margin-left: auto; color: #cda8ff; font-weight: 600; }
.option-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.option-controls input[type="number"],
.option-controls input[type="text"] {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

/* Quantity stepper for product cards */
.qty-row {
  display: none;
  margin-top: 8px;
  gap: 8px;
  align-items: center;
}
.qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(156,109,180,0.35);
  background: linear-gradient(135deg, #2a1c3f 0%, #3d2650 100%);
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.08s ease, filter 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 6px 14px rgba(156,109,180,0.25);
}
.qty-btn:hover { filter: brightness(1.08); }
.qty-btn:active { transform: scale(0.96); }
.qty-input {
  width: 88px;
  height: 36px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
}
/* Remove native number spinners for a cleaner look */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input { -moz-appearance: textfield; }

@media (max-width: 540px) {
  .options-grid { grid-template-columns: 1fr; }
}
