/*
 * public_html/css/main.css
 * 100% variable-driven — sin colores hardcodeados.
 * Todos los valores vienen de themes.json vía index.php → <style>:root{...}
 */

/* ── VARIABLES FALLBACK (valores reales vienen del PHP) ─────────────────── */
:root {
  --bg: #888;               --bg-rgb: 136,136,136;
  --surface: #888;          --card: #888;          --card2: #888;
  --accent: #888;           --accent-rgb: 136,136,136; --accent-dim: #666;
  --accent2: #888;          --accent2-rgb: 136,136,136; --accent2-dim: #666;
  --text: #333;             --gray: #888;          --muted: #aaa;
  --border: rgba(0,0,0,0.1);
  --cta-bg: #888;           --cta-text: #fff;
  --cta-section-bg: #f0f0f0;
  --cta-section-border: rgba(0,0,0,0.1);
  --cta-section-glow: rgba(0,0,0,0.05);
  --header-glass: rgba(255,255,255,0.9);
  --body-pattern: rgba(0,0,0,0.03);
  --slide-caption-from: rgba(0,0,0,0.9);
  --slide-caption-mid: rgba(0,0,0,0.4);
  --crea-bg-from: #eee;     --crea-bg-mid: #ddd;
  --app-shadow: rgba(0,0,0,0.1);
  --card-shadow: rgba(0,0,0,0.05);
  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  --r: 14px;
  --max: 580px;
  --color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-image:
    linear-gradient(var(--body-pattern) 1px, transparent 1px),
    linear-gradient(90deg, var(--body-pattern) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ── WRAPPER ────────────────────────────────────────────────────────────── */
.app {
  width: 100%;
  max-width: var(--max);
  min-height: 100vh;
  background: var(--surface);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 80px var(--app-shadow);
}

/* ── HEADER ─────────────────────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-glass);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.logo-wrap { display: flex; align-items: center; gap: 9px; }

.logo-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1.5px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  background: rgba(var(--accent-rgb), 0.08);
  flex-shrink: 0;
}
.logo-icon svg { width: 20px; height: 20px; }
.logo-icon img { width: 24px; height: 24px; object-fit: contain; border-radius: 6px; }

.logo-text { line-height: 1; }
.logo-text strong {
  display: block;
  font-family: var(--font-head);
  font-size: 15px; font-weight: 800;
  color: var(--text); letter-spacing: 2px;
}
.logo-text span { font-size: 12px; color: var(--gray); letter-spacing: 0.5px; font-weight: 400; }

.social-icons { display: flex; align-items: center; gap: 6px; }
.social-icons a {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: rgba(var(--accent-rgb), 0.06);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 12px; font-weight: 800;
  font-family: var(--font-head);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  letter-spacing: 0.5px;
}
.social-icons a svg { width: 16px; height: 16px; display: block; }
.social-icons a:hover { background: rgba(var(--accent-rgb), 0.15); border-color: var(--accent); }

/* ── CAROUSEL ───────────────────────────────────────────────────────────── */
.carousel {
  position: relative; overflow: hidden;
  height: 235px; background: var(--card);
}
@media (min-width: 480px) { .carousel { height: 235px; } }

.carousel-track {
  display: flex; height: 100%;
  transition: transform 0.55s cubic-bezier(0.77,0,0.175,1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%; height: 100%;
  position: relative; display: flex;
  align-items: flex-end; overflow: hidden;
}

.slide-geo { position: absolute; inset: 0; pointer-events: none; z-index: 2; }

.slide-caption {
  position: relative; z-index: 20;
  width: 100%; padding: 20px 18px 14px;
  background: linear-gradient(0deg,
    var(--slide-caption-from) 0%,
    var(--slide-caption-mid) 70%,
    transparent 100%);
}

.slide-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 10.5px; font-weight: 700; letter-spacing: 2.5px;
  color: var(--accent); border: 1px solid var(--accent);
  border-radius: 4px; padding: 2px 7px; margin-bottom: 6px;
}
.slide-title {
  font-family: var(--font-head); font-size: 17.5px; font-weight: 800;
  color: var(--text); line-height: 1.2; letter-spacing: 0.5px;
}
@media (min-width: 480px) { .slide-title { font-size: 19.5px; } }
.slide-sub { margin-top: 3px; font-size: 12.5px; color: var(--accent); font-weight: 500; letter-spacing: 0.3px; }

/* Carousel arrows */
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  color: var(--accent); font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; backdrop-filter: blur(4px);
}
.carousel-btn:hover { background: rgba(var(--accent-rgb), 0.25); }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* Carousel dots */
.carousel-dots { display: flex; justify-content: center; gap: 6px; padding: 10px 0 6px; background: var(--surface); }
.dot { width: 6px; height: 6px; border-radius: 3px; background: var(--border); border: none; cursor: pointer; transition: all 0.3s; padding: 0; }
.dot.active { width: 20px; background: var(--accent); }

/* ── SLOGAN STRIP ───────────────────────────────────────────────────────── */
.slogan-strip {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  background: rgba(var(--accent-rgb), 0.03);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.slogan-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.3), transparent); }
.slogan-text { font-family: var(--font-head); font-size: 18px; font-weight: 600; color: var(--accent); letter-spacing: 1px; white-space: nowrap; text-align: center; font-style: italic; }

/* ── SECTION TITLE ──────────────────────────────────────────────────────── */
.section-header { padding: 20px 18px 4px; text-align: center; }
.section-title { font-family: var(--font-head); font-size: 15px; font-weight: 800; letter-spacing: 3px; color: var(--accent); text-transform: uppercase; }
.section-sub { margin-top: 4px; font-size: 15px; color: var(--gray); }

/* ── SERVICE CARDS ──────────────────────────────────────────────────────── */
.services { padding: 10px 14px; display: flex; flex-direction: column; gap: 12px; }

.service-card {
  border-radius: var(--r); background: var(--card);
  border: 1px solid var(--border); overflow: hidden;
  transition: border-color 0.3s;
}
.service-card:hover { border-color: rgba(var(--accent-rgb), 0.4); }

.card-row { display: grid; grid-template-columns: 1fr 2fr; gap: 0; }

.card-img {
  position: relative; background: var(--card2);
  display: flex; align-items: stretch; justify-content: center;
  min-height: 200px; overflow: hidden;
  border-right: 1px solid var(--border); padding: 0;
}
.card-img-inner {
  width: 100%; aspect-ratio: 2/3; border-radius: 0; border: none;
  background: var(--card2); display: flex; align-items: center;
  justify-content: center; overflow: hidden; position: relative;
}
.card-img-inner img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); }
.service-card:hover .card-img-inner img { transform: scale(1.1); }
.card-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(var(--accent-rgb), 0.06) 100%);
  pointer-events: none; z-index: 2;
}

.card-controls { padding: 12px 12px 10px; display: flex; flex-direction: column; gap: 8px; }
.card-title { font-family: var(--font-head); font-size: 13px; font-weight: 800; letter-spacing: 0.5px; color: var(--text); line-height: 1.35; text-transform: uppercase; }
.card-desc { font-size: 13px; color: var(--gray); line-height: 1.4; margin-top: -4px; }

.controls-grid { display: flex; flex-direction: column; gap: 7px; }
/* Control Row */
.control-row { display: flex; flex-direction: column; gap: 3px; }
.control-label { font-size: 12px; color: var(--gray); letter-spacing: 0.5px; font-weight: 500; }
.share-row { align-items: flex-start; cursor: default; }
.share-input { accent-color: var(--accent2); margin-right: 5px; cursor: pointer; }
.share-input:disabled { cursor: not-allowed; }

/* Stepper */
.stepper { display: flex; align-items: center; gap: 4px; height: 28px; }
.step-btn {
  width: 28px; height: 28px; border-radius: 8px;
  border: 1px solid var(--border); background: rgba(var(--accent-rgb), 0.06);
  color: var(--accent); font-size: 16px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; line-height: 1;
  transition: background 0.15s, transform 0.1s; flex-shrink: 0;
}
.step-btn:hover { background: rgba(var(--accent-rgb), 0.2); }
.step-btn:active { transform: scale(0.9); }
.step-btn.plus { background: var(--accent2); color: #fff; border-color: var(--accent2); }
.step-btn.plus:hover { background: var(--accent2-dim); }
.step-value {
  flex: 1; text-align: center;
  font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--text);
  background: rgba(var(--accent-rgb), 0.05); border: 1px solid var(--border);
  border-radius: 7px; height: 28px; display: flex; align-items: center; justify-content: center;
}

/* Date input */
.date-input {
  width: 100%; height: 28px; background: rgba(var(--accent-rgb), 0.05);
  border: 1px solid var(--border); border-radius: 8px; color: var(--text);
  font-family: var(--font-body); font-size: 14px; padding: 0 8px; cursor: pointer;
  outline: none; transition: border-color 0.2s;
  -webkit-appearance: none; appearance: none;
  color-scheme: var(--color-scheme);
}
.date-input:focus { border-color: rgba(var(--accent-rgb), 0.5); }

/* Total bar */
.total-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 10px; background: rgba(var(--accent2-rgb), 0.07);
  border: 1px solid rgba(var(--accent2-rgb), 0.22); border-radius: 9px;
}
.total-label { font-size: 12px; color: var(--gray); font-family: var(--font-head); letter-spacing: 1px; }
.total-value { font-family: var(--font-head); font-size: 17px; font-weight: 900; color: var(--accent2); }
.total-note { font-size: 11px; color: var(--gray); opacity: 0.7; }

/* Reserve button */
.btn-reserve {
  width: 100%; height: 34px; border-radius: 9px;
  background: var(--accent); color: var(--bg); border: none;
  font-family: var(--font-head); font-size: 13px; font-weight: 800;
  letter-spacing: 1.5px; cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.25); text-transform: uppercase;
}
.btn-reserve:hover { background: var(--accent-dim); box-shadow: 0 4px 28px rgba(var(--accent-rgb), 0.4); }
.btn-reserve:active { transform: scale(0.98); }

/* ── CREA CONTENIDO ─────────────────────────────────────────────────────── */
.crea-contenido {
  margin: 4px 14px 0; border-radius: var(--r);
  background: var(--card); border: 1px solid var(--border);
  overflow: hidden; height: 180px; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.crea-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--crea-bg-from) 0%, var(--crea-bg-mid) 50%, var(--crea-bg-from) 100%);
}
.crea-bg::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(var(--accent-rgb), 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(var(--accent2-rgb), 0.06) 0%, transparent 50%);
}
.crea-lines { position: absolute; inset: 0; overflow: hidden; }
.crea-lines::before, .crea-lines::after {
  content: ''; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.2), transparent);
}
.crea-lines::before { top: 33%; } .crea-lines::after { top: 66%; }
.crea-content { position: relative; z-index: 2; text-align: center; }
.crea-tag {
  display: inline-block; font-family: var(--font-head); font-size: 10px;
  letter-spacing: 3px; color: var(--accent2); border: 1px solid var(--accent2);
  border-radius: 4px; padding: 2px 8px; margin-bottom: 8px; opacity: 0.9;
}
.crea-title { font-family: var(--font-head); font-size: 18px; font-weight: 900; color: var(--text); letter-spacing: 1px; }

/* Banner image replaces placeholder — fills area naturally, no deformation */
.crea-banner-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}

/* ── CTA FINAL ──────────────────────────────────────────────────────────── */
.cta-section {
  margin: 14px 14px 14px; border-radius: var(--r);
  background: var(--cta-section-bg);
  border: 1px solid var(--cta-section-border); padding: 30px 18px;
  text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--cta-section-glow) 0%, transparent 60%);
}
.cta-emoji { font-size: 40px; margin-bottom: 12px; display: block; line-height: 1; }
.cta-text { position: relative; font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: 0.3px; margin-bottom: 18px; }
.btn-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0 28px; height: 46px; border-radius: 12px;
  background: var(--cta-bg); color: var(--cta-text); border: none;
  font-family: var(--font-head); font-size: 14px; font-weight: 800;
  letter-spacing: 1.5px; cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(var(--accent2-rgb), 0.3);
  position: relative; text-transform: uppercase;
  text-decoration: none;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(var(--accent2-rgb), 0.5); filter: brightness(1.1); }
.btn-cta:active { transform: translateY(0) scale(0.97); }

/* ── FOOTER BANNER ──────────────────────────────────────────────────────── */
.footer-banner { width: 100%; overflow: hidden; }
.footer-banner img { width: 100%; display: block; }

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
footer { text-align: center; padding: 16px; border-top: 1px solid var(--border); margin-top: 4px; }
.footer-logo { font-family: var(--font-head); font-size: 14px; font-weight: 800; color: var(--accent); letter-spacing: 3px; margin-bottom: 4px; }
.footer-links { display: center; justify-content: center; gap: 14px; }
.footer-links a { font-size: 12px; color: var(--gray); text-decoration: none; letter-spacing: 0.5px; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { margin-top: 6px; font-size: 12px; color: var(--muted); }

/* ── CHECKOUT MODAL ─────────────────────────────────────────────────────── */
.checkout-modal {
  display: none; position: fixed; inset: 0; z-index: 9999;
  align-items: flex-end; justify-content: center;
}
.checkout-modal.open { display: flex; }
.checkout-backdrop { position: absolute; inset: 0; background: rgba(var(--bg-rgb), 0.85); backdrop-filter: blur(4px); }
.checkout-content {
  position: relative; z-index: 1;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px 20px 0 0; width: 100%; max-width: var(--max);
  max-height: 90vh; overflow-y: auto; padding: 20px 18px 28px;
}
.checkout-close {
  position: absolute; top: 14px; right: 14px;
  background: rgba(var(--accent-rgb), 0.08); border: 1px solid var(--border);
  color: var(--gray); width: 30px; height: 30px; border-radius: 50%;
  cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.checkout-close:hover { color: var(--text); background: rgba(var(--accent-rgb), 0.2); }
.checkout-header h2 { font-family: var(--font-head); font-size: 17px; font-weight: 800; color: var(--text); letter-spacing: 1px; margin-bottom: 16px; }
.checkout-image-container { min-height: 120px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.checkout-image-container img { max-width: 100%; border-radius: 10px; }
.checkout-loader { font-size: 12px; color: var(--gray); text-align: center; padding: 20px; }
.checkout-actions { display: flex; flex-direction: column; gap: 10px; }
.btn-checkout {
  width: 100%; height: 44px; border-radius: 10px;
  font-family: var(--font-head); font-size: 14px; font-weight: 800;
  letter-spacing: 1px; cursor: pointer; border: none;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: opacity 0.2s, transform 0.1s;
}
.btn-checkout:active { transform: scale(0.98); }
.btn-checkout.primary { background: var(--accent); color: var(--bg); }
.btn-checkout.primary:hover { opacity: 0.88; }
.btn-checkout.outline { background: transparent; border: 1px solid var(--border); color: var(--gray); }
.btn-checkout.outline:hover { border-color: var(--accent); color: var(--accent); }

/* Checkout Dynamic Module Inputs */
.checkout-extra-module label {
  display: block;
  color: var(--gray);
  font-size: 12px;
  margin-bottom: 8px;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.checkout-field-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(var(--accent-rgb), 0.05);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  transition: all 0.3s ease;
  outline: none;
  margin-bottom: 15px;
}

.option-emoji {
  display: block;
  font-size: 40px;
  margin-bottom: 8px;
  line-height: 1;
}

.checkout-option-box {
  padding: 15px 10px;
  border-radius: 12px;
  text-align: center;
  font-size: 13px;
  color: var(--gray);
  transition: all 0.3s;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}

.checkout-field-input:focus {
  background: var(--card);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.1);
}

.checkout-field-input::placeholder {
  color: var(--gray);
  opacity: 0.6;
}


/* ── ANIMATIONS ─────────────────────────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
header    { animation: fade-up 0.5s ease both; }
.carousel { animation: fade-up 0.5s 0.1s ease both; }
.service-card { animation: fade-up 0.5s ease both; }
.service-card:nth-child(1) { animation-delay: 0.15s; }
.service-card:nth-child(2) { animation-delay: 0.25s; }
.service-card:nth-child(3) { animation-delay: 0.35s; }
.crea-contenido { animation: fade-up 0.5s 0.4s ease both; }
.cta-section    { animation: fade-up 0.5s 0.45s ease both; }

@keyframes glow-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(var(--accent2-rgb), 0); }
  50%      { box-shadow: 0 0 14px 3px rgba(var(--accent2-rgb), 0.18); }
}
.total-bar { animation: glow-pulse 3s ease infinite; }

/* ── DESKTOP TWEAKS ─────────────────────────────────────────────────────── */
@media (min-width: 520px) {
  .card-title { font-size: 14px; }
  .crea-contenido { height: 210px; }
  .crea-title { font-size: 23px; }
}

/* ── STORE MENU ─────────────────────────────────────────────────────────── */
.choice-chips-container {
  display: flex; gap: 8px; justify-content: flex-start; padding: 10px 14px 20px;
  overflow-x: auto; scrollbar-width: none;
}
.choice-chips-container::-webkit-scrollbar { display: none; }

.choice-chip {
  background: rgba(var(--accent-rgb), 0.05); color: var(--gray);
  border: 1px solid var(--border); border-radius: 20px;
  padding: 8px 18px; font-family: var(--font-head); font-size: 13px;
  font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(5px);
}
.choice-chip:hover { border-color: var(--accent); color: var(--text); }
.choice-chip.active {
  background: var(--cta-bg); color: var(--cta-text);
  border-color: var(--cta-bg);
  box-shadow: 0 4px 15px rgba(var(--accent2-rgb), 0.3);
  transform: translateY(-2px);
}

.section-label {
  font-family: var(--font-head); font-size: 12px; font-weight: 800;
  color: var(--text); background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid var(--border); border-radius: 20px;
  padding: 6px 16px; margin: 20px auto 10px; text-transform: uppercase;
  letter-spacing: 2px; text-align: center; width: fit-content;
  backdrop-filter: blur(5px); transition: all 0.4s ease;
}

.product-card {
  display: flex; gap: 14px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 14px; position: relative; overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card.hidden, .section-label.hidden {
  opacity: 0; transform: scale(0.9); pointer-events: none;
  height: 0; padding: 0; margin: 0; overflow: hidden; border: none;
}
.product-card.selected { border-color: var(--accent); background: rgba(var(--accent-rgb), 0.04); }
.product-img-wrap {
  width: 80px; height: 80px; flex-shrink: 0; border-radius: 10px;
  overflow: hidden; background: var(--surface); position: relative; border: 1px solid var(--border);
}
.product-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.product-name {
  font-family: var(--font-head); font-size: 14px; font-weight: 800;
  color: var(--text); margin-bottom: 4px; line-height: 1.2;
}
.price-row {
  display: flex; align-items: center; justify-content: space-between; margin-top: auto;
  min-height: 32px;
}
.product-quantity {
  display: none; align-items: center; background: rgba(var(--accent-rgb), 0.05);
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden; height: 32px;
}
.product-card.selected .product-quantity {
  display: flex;
}
.qty-btn {
  width: 32px; height: 100%; background: transparent; border: none; color: var(--accent);
  font-size: 16px; font-weight: 700; cursor: pointer; transition: background 0.2s; display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: rgba(var(--accent-rgb), 0.1); }
.qty-btn:active { background: rgba(var(--accent-rgb), 0.2); }
.qty-input {
  width: 32px; height: 100%; text-align: center; background: transparent; border: none;
  border-left: 1px solid var(--border); border-right: 1px solid var(--border);
  color: var(--text); font-family: var(--font-head); font-size: 14px; font-weight: 700;
  appearance: textfield; -moz-appearance: textfield; outline:none;
}
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.product-check-wrap {
  position: absolute; top: 2px; right: 2px; z-index: 10; cursor: pointer;
  width: 38px; height: 38px; display:flex; align-items:center; justify-content:center;
}
.product-checkbox { position: absolute; opacity: 0; width: 0; height: 0; }
.product-checkmark {
  width: 24px; height: 24px;
  border: 1.5px solid var(--cta-bg); border-radius: 50%; background: rgba(var(--bg-rgb), 0.5);
  backdrop-filter: blur(4px); transition: all 0.2s; display: flex; align-items: center; justify-content: center;
}
.product-checkbox:checked ~ .product-checkmark { background: var(--cta-bg); border-color: var(--cta-bg); }
.product-checkmark svg {
  width: 14px; height: 14px; color: var(--bg); opacity: 0; transform: scale(0.5); transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.product-checkbox:checked ~ .product-checkmark svg { opacity: 1; transform: scale(1); }

/* ── FLOATING CART BUTTON ───────────────────────────────────────────────── */
.cart-btn-floating {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(100px);
  width: 90%; max-width: 400px; height: 50px; border-radius: 25px;
  background: var(--cta-bg); color: var(--cta-text); border: none;
  font-family: var(--font-head); font-size: 16px; font-weight: 800; letter-spacing: 0.5px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5), 0 1px 1px 0 rgba(255,255,255,0.3) inset;
  cursor: pointer; z-index: 999; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cart-btn-floating.visible { transform: translateX(-50%) translateY(0); }
.cart-btn-floating:active { transform: translateX(-50%) translateY(2px); }
.cart-btn-text { white-space: nowrap; pointer-events: none; }

/* ── LIGHTBOX ──────────────────────────────────────────────────────────── */
.lightbox {
  position: fixed; top:0; left:0; width:100%; height:100%;
  display:none; align-items:center; justify-content:center;
  z-index: 3000; padding: 20px;
}
.lightbox.open { display: flex; animation: fadeIn 0.3s ease forwards; }
.lightbox-backdrop {
  position:absolute; top:0; left:0; width:100%; height:100%;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(10px);
}
.lightbox-content {
  position:relative; max-width: 95vw; max-height: 95vh;
  display:inline-flex; flex-direction:column; align-items:center;
  transform: scale(0.9); opacity:0; transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: var(--card); border-radius: 12px; overflow: hidden;
}
.lightbox.open .lightbox-content { transform: scale(1); opacity:1; }

.lightbox-close {
  position:absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.5); border:none;
  color:#fff; font-size:24px; cursor:pointer; z-index:10; border-radius: 50%;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.lightbox-img-container {
  flex: 1; display:flex; justify-content:center; align-items: center;
  overflow:hidden;
}
.lightbox-img-container img {
  max-width:100%; max-height: 75vh; object-fit: contain; display:block;
}
.lightbox-caption-wrap {
  width:100%; background: rgba(15, 15, 15, 0.95);
  padding: 15px 20px; border-top: 1px solid rgba(255,255,255,0.1);
  color: #fff; text-align: center;
}
#lightbox-caption {
  margin:0; font-size:15px; line-height:1.5; color: rgba(255,255,255,0.9);
}

@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

@media (max-width: 600px) {
  .lightbox { padding: 10px; }
  .lightbox-close { top: -45px; right: 10px; }
  .lightbox-caption-wrap { padding: 15px; }
}
