/*
 * BBQ WOK — Components
 */

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  font-family: var(--font-family-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--bbq-yellow);
  color: var(--bbq-black);
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-family-heading);
  border: 2px solid var(--bbq-yellow);
  transition: all 0.25s ease;
  font-size: 0.85rem;
}

.btn-primary:hover {
  background: var(--bbq-yellow-hover);
  border-color: var(--bbq-yellow-hover);
  color: var(--bbq-black);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-yellow);
}

.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-family-heading);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.25s ease;
  font-size: 0.85rem;
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.btn-secondary {
  background: var(--bbq-yellow);
  color: var(--bbq-black);
  border-color: var(--bbq-yellow);
  font-weight: 700;
}

.btn-secondary:hover {
  background: var(--bbq-yellow-hover);
  border-color: var(--bbq-yellow-hover);
  box-shadow: var(--shadow-glow-yellow);
}

.btn-large { padding: 16px 38px; font-size: 0.95rem; }
.btn-small { padding: 10px 18px; font-size: 0.8rem; }

/* === PRODUCT GRID === */
.products-grid {
  display: grid;
  grid-template-columns: var(--products-grid-columns);
  gap: var(--grid-gap);
}

/* === PRODUCT CARD === */
.product-card {
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 210, 0, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.product-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image { transform: scale(1.05); }

.product-image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background-color: rgba(255, 210, 0, 0.04);
}

.product-image-placeholder.large {
  aspect-ratio: 1;
  max-width: 500px;
}

.product-info { padding: var(--space-4); }
.product-info h3 { font-size: var(--font-size-lg); margin-bottom: var(--space-2); color: #fff; }

.product-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-3);
}

.price {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--bbq-yellow);
}

.price.large { font-size: var(--font-size-2xl); }

.product-actions { padding: 0 var(--space-4) var(--space-4); }
.product-actions .btn { width: 100%; }

/* === HERO (fallback) === */
.hero {
  position: relative;
  height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  overflow: hidden;
  margin-top: calc(-1 * var(--header-height));
  margin-bottom: 0;
  background: var(--bbq-black);
}

.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 0;
  object-fit: cover;
  filter: brightness(0.3);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.5) 0%, var(--bbq-black) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  width: 260px;
  height: 260px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 25px rgba(255, 210, 0, 0.3));
  animation: floatLogo 6s ease-in-out infinite;
}

.hero-wordmark {
  font-family: var(--font-family-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(2.5rem, 10vw, 5rem);
  line-height: 1;
  color: var(--bbq-yellow);
  margin-bottom: 20px;
  text-shadow: 0 0 30px rgba(255, 210, 0, 0.2);
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero p {
  font-size: clamp(1.1rem, 4vw, 1.6rem);
  color: var(--bbq-yellow);
  font-family: var(--font-family-accent);
  margin-bottom: 40px;
  letter-spacing: 0.06em;
}

/* === TICKER === */
.ticker-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  background: var(--bbq-yellow);
  padding: 8px 0;
  z-index: 2;
}

.ticker {
  display: flex;
  white-space: nowrap;
  animation: ticker 20s linear infinite;
}

.ticker-item {
  display: inline-block;
  padding: 0 20px;
  font-family: var(--font-family-heading);
  font-size: 0.9rem;
  color: var(--bbq-black);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === CATEGORIES === */
.categories-nav {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid rgba(255, 210, 0, 0.15);
}

.category-link {
  padding: var(--space-2) var(--space-4);
  background-color: var(--bg-card);
  border-radius: 8px;
  color: var(--color-text);
  font-weight: var(--font-weight-medium);
  border: 1px solid rgba(255, 210, 0, 0.1);
  transition: all var(--transition-fast);
}

.category-link:hover {
  background-color: var(--bbq-yellow);
  color: var(--bbq-dark);
  border-color: var(--bbq-yellow);
}

.category-section { margin-bottom: var(--space-12); }
.category-section h2 { margin-bottom: var(--space-6); color: var(--bbq-yellow); }

/* === ORDER MODES === */
.order-modes { padding: var(--space-12) 0; }
.order-modes h2 { text-align: center; margin-bottom: var(--space-8); }

.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--grid-gap);
  max-width: 600px;
  margin: 0 auto;
}

.mode-option {
  text-align: center;
  padding: var(--space-8);
  border: 2px solid rgba(255, 210, 0, 0.15);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  transition: all var(--transition-fast);
}

.mode-option:hover {
  border-color: var(--bbq-yellow);
  box-shadow: var(--shadow-glow-yellow);
}

.mode-option h3 { margin-bottom: var(--space-2); }
.mode-option p { color: var(--color-text-light); margin-bottom: var(--space-4); }

/* === PRODUCT DETAIL === */
.back-link {
  display: inline-block;
  margin-bottom: var(--space-6);
  color: var(--color-text-light);
}

.back-link:hover { color: var(--bbq-yellow); }

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
}

@media (max-width: 768px) {
  .product-detail { grid-template-columns: 1fr; }
}

.product-detail-image { width: 100%; border-radius: var(--radius-lg); }
.product-content h1 { margin-bottom: var(--space-4); color: var(--bbq-yellow); }
.product-content .description { color: var(--color-text-light); margin-bottom: var(--space-4); }
.product-form { margin-top: var(--space-6); }

/* === STEP FIELDSET === */
.step-fieldset {
  border: 2px solid rgba(255, 210, 0, 0.12);
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 30px;
  background: rgba(0, 0, 0, 0.2);
}

.step-fieldset legend {
  font-family: var(--font-family-heading);
  font-weight: 800;
  padding: 0 15px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bbq-yellow);
  font-size: 1.1rem;
}

.step-fieldset .required {
  font-size: 0.7rem;
  background: var(--bbq-red-bright);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 10px;
  vertical-align: middle;
}

.choices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.choice-label {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 2px solid rgba(255, 210, 0, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
  background: rgba(0, 0, 0, 0.15);
}

.choice-label input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.choice-label:hover {
  border-color: rgba(255, 210, 0, 0.3);
  background: rgba(255, 210, 0, 0.04);
}

.choice-label:has(input:checked) {
  border-color: var(--bbq-yellow);
  background: rgba(255, 210, 0, 0.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.choice-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 15px;
  width: 100%;
}

.choice-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.choice-name { font-weight: 700; font-size: 0.95rem; }

.choice-price {
  font-size: 0.85rem;
  color: #fff;
  background: var(--bbq-red);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 800;
  margin-top: 6px;
  display: inline-block;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-6) 0;
}

.quantity-selector input { width: 80px; text-align: center; }

/* === CART === */
.cart-content {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 30px;
}

@media (max-width: 992px) {
  .cart-content { grid-template-columns: 1fr; }
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px;
  background: var(--bg-card);
  border: 2px solid rgba(255, 210, 0, 0.08);
  border-radius: 16px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.cart-item:hover {
  border-color: rgba(255, 210, 0, 0.2);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .cart-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .item-actions { width: 100%; justify-content: space-between; }
}

.item-selections {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 10px 0;
  padding-left: 0;
  list-style: none;
}

.item-selections li { position: relative; padding-left: 15px; }
.item-selections li::before { content: '•'; position: absolute; left: 0; color: var(--bbq-yellow); }

.item-price {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--bbq-yellow);
}

.item-actions { display: flex; align-items: center; gap: 25px; }

.quantity-form {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 5px;
  gap: 15px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background-color: var(--bbq-yellow);
  color: var(--bbq-black);
  font-weight: 900;
  font-size: 1.2rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background-color: var(--bbq-yellow-hover);
}

.quantity { font-weight: 800; font-size: 1.1rem; min-width: 25px; text-align: center; }

.btn-remove {
  color: var(--bbq-red-bright);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
  transition: all 0.2s ease;
}

.btn-remove:hover { opacity: 1; text-decoration: underline; }

.cart-summary {
  padding: 30px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-2xl);
  height: fit-content;
  position: sticky;
  top: 110px;
  box-shadow: var(--shadow-xl);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-weight: 600;
  color: var(--text-muted);
}

.summary-row.total {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  padding-top: 25px;
  border-top: 2px solid rgba(255, 210, 0, 0.15);
  margin-top: 10px;
}

.summary-row.total span:last-child { color: var(--bbq-yellow); }
.summary-row.total { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.cart-summary .btn { width: 100%; margin-bottom: 15px; }

.empty-cart {
  text-align: center;
  padding: 100px 20px;
  background: var(--bg-card);
  border-radius: 20px;
  border: 2px dashed rgba(255, 210, 0, 0.15);
}

.empty-cart p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--text-muted);
}

/* === CHECKOUT === */
.checkout-content { max-width: 800px; margin: 0 auto; }

.form-section {
  margin-bottom: 50px;
  background: var(--bg-card);
  padding: 30px;
  border-radius: 20px;
  border: 2px solid rgba(255, 210, 0, 0.08);
}

.form-section h2 {
  font-size: 1.4rem;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(255, 210, 0, 0.1);
  color: var(--bbq-yellow);
}

.form-group { margin-bottom: 25px; }

.order-summary {
  background: rgba(0, 0, 0, 0.3);
  padding: 25px;
  border-radius: 16px;
  border: 1px solid rgba(255, 210, 0, 0.08);
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 210, 0, 0.06);
  font-weight: 500;
}

.summary-item:last-child { border-bottom: none; }
.checkout-content > .btn { width: 100%; margin-top: 20px; }

.delivery-quote-box {
  padding: 20px;
  background: rgba(255, 210, 0, 0.05);
  border: 2px solid rgba(255, 210, 0, 0.15);
  border-radius: 14px;
  margin-top: 20px;
}

.delivery-quote-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-weight: 700; }
.delivery-quote-row:last-child { margin-bottom: 0; }
.delivery-quote-label { color: var(--bbq-yellow); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.1em; }
.delivery-quote-value { color: #fff; }
.delivery-quote-info { margin-top: 12px; color: var(--text-muted); font-size: 0.8rem; font-style: italic; }

/* === SUCCESS PAGE === */
.success-page {
  text-align: center;
  max-width: 600px;
  margin: 60px auto;
  padding: 50px;
  background: var(--bg-card);
  border-radius: 24px;
  border: 2px solid rgba(255, 210, 0, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.success-icon {
  width: 100px;
  height: 100px;
  background: var(--color-success);
  color: white;
  font-size: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.3);
  animation: successPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes successPop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.order-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--bbq-yellow);
  margin: 15px 0;
  font-family: var(--font-family-heading);
}

.order-details {
  text-align: left;
  background: rgba(0, 0, 0, 0.2);
  padding: 25px;
  border-radius: 14px;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 210, 0, 0.06);
}

.next-steps {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.featured { padding: var(--space-12) 0; }
.featured h2 { text-align: center; margin-bottom: var(--space-8); }
.empty-category { color: var(--color-text-light); font-style: italic; }

/* =========================================================
   LANDING SECTIONS (structure lefirst, couleurs BBQ Wok)
   ========================================================= */

.menu-section { padding-bottom: 40px; }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 20px;
  margin-bottom: 30px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-family: var(--font-family-heading);
  font-size: 2.2rem;
  text-transform: uppercase;
  line-height: 1;
  color: #fff;
}

.section-subtitle {
  font-family: var(--font-family-accent);
  font-style: italic;
  color: var(--bbq-yellow);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 5px;
  text-transform: none;
  font-weight: 400;
}

.btn-link {
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 2px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all 0.2s;
}

.btn-link:hover {
  color: #fff;
  border-bottom-color: #fff;
}

/* Cards scroll */
.cards-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 0 20px 40px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  max-width: 1200px;
  margin: 0 auto;
}

.cards-scroll::-webkit-scrollbar { display: none; }

.card {
  min-width: 280px;
  flex: 0 0 280px;
  scroll-snap-align: center;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.35s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 210, 0, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.card-body { padding: 20px; }

.card-price {
  display: inline-block;
  background: rgba(255, 210, 0, 0.12);
  color: var(--bbq-yellow);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.card-title {
  font-family: var(--font-family-heading);
  font-size: 1.3rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  color: #fff;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Features grid */
.features-section {
  padding: 80px 20px;
  background: var(--bbq-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-item {
  padding: 30px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.feature-item:hover {
  border-color: rgba(255, 210, 0, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-number {
  font-family: var(--font-family-heading);
  font-size: 2.5rem;
  color: var(--bbq-yellow);
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.4;
}

.feature-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  color: #fff;
}

.feature-text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Pre-footer */
.pre-footer {
  padding: 100px 20px;
  text-align: center;
  background: var(--bbq-dark);
  position: relative;
}

.pre-footer h2 {
  font-family: var(--font-family-heading);
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 20px;
  text-transform: uppercase;
  color: #fff;
}

.pre-footer p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
}

.floating-cta {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  background: var(--bbq-yellow);
  color: var(--bbq-black);
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  font-family: var(--font-family-heading);
  box-shadow: 0 10px 30px rgba(255, 210, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  border: 2px solid var(--bbq-yellow);
  width: max-content;
}

.floating-cta:hover {
  transform: translateX(-50%) translateY(-3px);
  background: var(--bbq-yellow-hover);
  box-shadow: 0 15px 40px rgba(255, 210, 0, 0.4);
  color: var(--bbq-black);
}

@media (min-width: 768px) {
  .cards-scroll { overflow: visible; flex-wrap: wrap; justify-content: center; }
  .card { flex: 0 0 calc(33.333% - 20px); }
}
