/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #1a1a2e;
  color: #e0e0e0;
  line-height: 1.6;
  min-height: 100vh;
}

/* === HEADER === */
.header {
  background: #16213e;
  border-bottom: 3px solid #7c3aed;
  padding: 1.5rem;
  text-align: center;
}

.site-logo {
  width: 240px;
  height: 240px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.header h1 {
  font-size: 2rem;
  color: #a78bfa;
}

.header p {
  color: #94a3b8;
  font-size: 1.1rem;
}

/* === PRODUCT GRID === */
.products {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: #16213e;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid #2d3748;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.25);
  border-color: #7c3aed;
}

/* === CAROUSEL === */
.carousel {
  position: relative;
  width: 100%;
  height: 180px;
  background: #0f172a;
  overflow: hidden;
}

.carousel img,
.carousel .carousel-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: none;
}

.carousel img:only-child,
.carousel .carousel-img.active {
  display: block;
}

/* Single-image carousel (no controls) */
.carousel img:only-child {
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 1);
}

.carousel-btn-prev {
  left: 6px;
}

.carousel-btn-next {
  right: 6px;
}

.carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transition: background 0.2s;
  cursor: pointer;
}

.carousel-dot.active {
  background: #fff;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
}

.product-info {
  padding: 1rem;
}

.product-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.product-info .description {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.product-info .price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #34d399;
}

.buy-btn {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: #7c3aed;
  color: #fff;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.buy-btn:hover {
  background: #6d28d9;
}

.buy-btn:disabled {
  background: #4a5568;
  cursor: not-allowed;
}

/* === CHECKOUT PAGE === */
.checkout-container {
  max-width: 500px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.checkout-card {
  background: #16213e;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 1px solid #2d3748;
}

.checkout-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #2d3748;
}

.checkout-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  background: #0f172a;
}

.checkout-item-details h3 {
  font-size: 1.1rem;
}

.checkout-item-details .price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #34d399;
}

/* === BUYER FORM === */
.buyer-form {
  margin-bottom: 1.5rem;
}

.buyer-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
  margin-top: 0.75rem;
  color: #e0e0e0;
}

.buyer-form input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #4a5568;
  border-radius: 8px;
  font-size: 1rem;
  background: #0f172a;
  color: #e0e0e0;
}

.buyer-form select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #4a5568;
  border-radius: 8px;
  font-size: 1rem;
  background: #0f172a;
  color: #e0e0e0;
  cursor: pointer;
}

.buyer-form input:focus,
.buyer-form select:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

/* === VENMO SECTION === */
.venmo-section {
  text-align: center;
  padding: 1.5rem;
  background: #0f172a;
  border-radius: 12px;
  margin-top: 1.5rem;
  border: 1px solid #2d3748;
}

.venmo-section h2 {
  color: #a78bfa;
  margin-bottom: 0.5rem;
}

.venmo-section .amount {
  font-size: 2rem;
  font-weight: 700;
  color: #34d399;
  margin: 0.5rem 0;
}

.venmo-section .venmo-handle {
  font-size: 1.2rem;
  color: #94a3b8;
  margin-bottom: 1rem;
}

.venmo-qr {
  max-width: 200px;
  margin: 1rem auto;
  display: block;
  border-radius: 8px;
}

.venmo-instructions {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-top: 1rem;
  padding: 0.75rem;
  background: #16213e;
  border-radius: 8px;
  border: 1px solid #2d3748;
}

.venmo-instructions code {
  background: #2d3748;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
  color: #a78bfa;
}

.venmo-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.85rem 2rem;
  background: #008CFF;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background 0.2s;
}

.venmo-btn:hover {
  background: #006fcc;
}

/* === CONFIRMATION === */
.confirmation {
  text-align: center;
  padding: 2rem;
}

.confirmation .checkmark {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.confirmation h2 {
  color: #34d399;
  margin-bottom: 0.5rem;
}

.order-details {
  background: #0f172a;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  text-align: left;
  border: 1px solid #2d3748;
}

.order-details p {
  margin: 0.25rem 0;
}

.back-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: #a78bfa;
  text-decoration: none;
  font-weight: 600;
}

.back-link:hover {
  text-decoration: underline;
}

/* === SOLD OUT === */
.sold-out {
  background: #2d1b1b;
  color: #f87171;
  padding: 0.75rem;
  text-align: center;
  font-weight: 600;
}

/* === FOOTER === */
.footer {
  text-align: center;
  padding: 2rem 1rem;
  color: #64748b;
  font-size: 0.85rem;
}

/* === RESPONSIVE === */
@media (max-width: 480px) {
  .products {
    grid-template-columns: 1fr;
  }

  .header h1 {
    font-size: 1.5rem;
  }

  .checkout-item {
    flex-direction: column;
    text-align: center;
  }
}
