/* ========================================
   DIOBENE — Mexico Product Page
   ======================================== */

:root {
  --color-bg: #ffffff;
  --color-panel: #f4ede0;
  --color-panel-deep: #ebe3d3;
  --color-accent: #8b1e1e;
  --color-accent-hover: #a52a2a;
  --color-cta: #c0392b;
  --color-cta-hover: #d44637;
  --color-gold: #b8924a;
  --color-gold-light: #d4ad5e;
  --color-green: #4e8c46;
  --color-text: #1a1a1a;
  --color-text-muted: #6b6560;
  --color-border: #ddd9d3;
  --color-star: #f0a500;
  --color-footer-bg: #1a1410;
  --color-footer-text: #a09080;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.08);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

/* ========================================
   LAYOUT
   ======================================== */

.page-wrapper {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.product-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
  position: relative;
}

.product-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -100vw;
  width: calc(100vw + 48%);
  background: var(--color-panel);
  z-index: 0;
  pointer-events: none;
}

/* ---- Left Panel (Gallery + Ingredients + Testimonials) ---- */
.gallery-panel {
  background: var(--color-panel);
  width: 48%;
  max-width: 580px;
  padding: 60px 40px 50px 60px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}


.gallery-panel::after {
  content: '';
  position: absolute;
  bottom: -120px;
  right: -120px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: var(--color-panel-deep);
  opacity: 0.5;
  pointer-events: none;
}

/* ---- Right Panel (Info) ---- */
.info-panel {
  background: var(--color-bg);
  width: 52%;
  max-width: 700px;
  padding: 60px 50px 50px 60px;
  position: relative;
  z-index: 1;
}

/* ========================================
   GALLERY
   ======================================== */

.gallery {
  display: flex;
  gap: 30px;
  margin-bottom: 0;
  align-items: flex-start;
}

.gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}

.gallery-thumb {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.gallery-thumb:hover {
  border-color: var(--color-gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.gallery-thumb.active {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(139, 30, 30, 0.15);
}

.gallery-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gallery-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 320px;
}

.gallery-main-img {
  max-width: 300px;
  width: 100%;
  height: auto;
  transition: opacity 0.4s ease, transform 0.4s ease;
  will-change: opacity, transform;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.1));
}

.gallery-main-img.fade-out {
  opacity: 0;
  transform: scale(0.96);
}

.gallery-main-img.fade-in {
  opacity: 1;
  transform: scale(1);
}

/* Mobile Dots */
.gallery-dots {
  display: none;
  justify-content: center;
  gap: 10px;
  padding: 16px 0 4px;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.25;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
  border: none;
}

.gallery-dot:hover { opacity: 0.5; }

.gallery-dot.active {
  opacity: 1;
  transform: scale(1.2);
}

.gallery-badges-mobile {
  display: none;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* ========================================
   SECTION HEADINGS
   ======================================== */

.section-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.section-heading svg {
  flex-shrink: 0;
  color: var(--color-gold);
}

.section-heading--dark svg {
  color: var(--color-accent);
}

/* ========================================
   INGREDIENTS
   ======================================== */

.ingredients-section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.ingredient-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ingredient-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.ingredient-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.ingredient-item:hover .ingredient-icon {
  transform: translateY(-2px);
}

.ingredient-content {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-muted);
  padding-top: 2px;
}

.ingredient-content strong {
  color: var(--color-text);
  font-weight: 700;
}

/* ========================================
   TESTIMONIALS
   ======================================== */

.testimonials-section {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.testimonials-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: box-shadow var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-card);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.testimonial-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-gold);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.testimonial-meta {
  flex: 1;
  min-width: 0;
}

.testimonial-meta strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

.testimonial-meta span {
  font-size: 12px;
  color: var(--color-text-muted);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.testimonial-text {
  font-size: 13.5px;
  font-style: italic;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* ========================================
   BADGES
   ======================================== */

.badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  padding: 6px 14px;
  border-radius: 50px;
  line-height: 1;
}

.badge--sale { background: var(--color-cta); }
.badge--delivery { background: var(--color-green); }

/* ========================================
   PRODUCT INFO
   ======================================== */

.product-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.25;
  color: var(--color-text);
  margin-bottom: 18px;
}

.rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.rating-stars {
  display: flex;
  gap: 3px;
}

.rating-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
}

.price-block {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}

.price-current {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 38px;
  line-height: 1;
  color: var(--color-text);
}

.price-original {
  font-size: 20px;
  font-weight: 400;
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.product-description {
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

/* ========================================
   WHY CHOOSE
   ======================================== */

.why-choose {
  margin-bottom: 36px;
  padding: 24px;
  background: #f9f7f3;
  border-radius: var(--radius-md);
}

.why-choose .section-heading {
  margin-bottom: 16px;
  font-size: 18px;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text);
}

.check-list li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* ========================================
   FAQ
   ======================================== */

.faq-section {
  margin-bottom: 36px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-q {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--color-text);
  margin-bottom: 6px;
}

.faq-q svg {
  flex-shrink: 0;
}

.faq-a {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-muted);
  padding-left: 24px;
}

/* ========================================
   FORM
   ======================================== */

.order-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 36px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.form-label {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.form-input,
.form-select {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--color-text);
  background: #f9f7f3;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-input:disabled,
.form-select:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  background: #eee9df;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b6560' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(139, 30, 30, 0.1);
}

.form-input::placeholder {
  color: #b5b0a8;
}

.form-submit {
  width: 100%;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-cta);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
  margin-top: 4px;
}

.form-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition);
}

.form-submit:hover {
  background: var(--color-cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(192, 57, 43, 0.35);
}

.form-submit:hover::before { opacity: 1; }
.form-submit:active { transform: translateY(0); }

/* Trust badges below button */
.form-trust {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.form-trust li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-text-muted);
}

.form-trust li svg {
  flex-shrink: 0;
  margin-top: 1px;
}

/* ========================================
   FLOATING CTA (Mobile only)
   ======================================== */

.floating-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 56px;
  background: var(--color-cta);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
}

.floating-cta.show {
  opacity: 1;
  transform: translateY(0);
}

@media screen and (max-width: 768px) {
  .floating-cta { display: block; }
}

/* ========================================
   BENEFITS ROW (Bottom)
   ======================================== */

.benefits-row {
  background: var(--color-panel);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 40px 20px;
}

.benefits-row-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  gap: 30px;
  justify-content: center;
}

.benefit-card {
  flex: 1;
  max-width: 300px;
  text-align: center;
}

.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.benefit-card:hover .benefit-icon {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(184, 146, 74, 0.3);
}

.benefit-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text);
  margin-bottom: 6px;
}

.benefit-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
  background: var(--color-footer-bg);
  padding: 28px 20px;
  text-align: center;
}

.site-footer p {
  font-size: 13px;
  color: var(--color-footer-text);
  margin-bottom: 6px;
}

.site-footer a {
  font-size: 13px;
  color: var(--color-gold-light);
  text-decoration: none;
  transition: color var(--transition);
}

.site-footer a:hover {
  color: var(--color-gold);
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 4px;
  margin-top: 4px;
}

.footer-dot {
  color: var(--color-footer-text);
  font-size: 13px;
}

/* ========================================
   RESPONSIVE — Tablet
   ======================================== */

@media screen and (max-width: 1100px) {
  .gallery-panel {
    padding: 40px 24px 40px 30px;
  }

  .info-panel {
    padding: 40px 30px 40px 36px;
  }

  .product-title {
    font-size: 26px;
  }

  .price-current {
    font-size: 32px;
  }

  .gallery-main-img {
    max-width: 250px;
  }
}

/* ---- Responsive Visibility Utilities ---- */
.mobile-only { display: none !important; }

/* ========================================
   RESPONSIVE — Mobile
   ======================================== */

@media screen and (max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: block !important; }
  .product-container {
    flex-direction: column;
  }

  .product-container::after {
    display: none;
  }

  .gallery-panel,
  .info-panel {
    width: 100%;
    max-width: 100%;
  }

  .gallery-panel {
    padding: 24px 20px 28px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  .gallery-panel::after {
    display: none;
  }

  .info-panel {
    padding: 28px 20px 40px;
  }

  .gallery {
    flex-direction: column;
    gap: 0;
    align-items: center;
  }

  .gallery-thumbs {
    display: none;
  }

  .gallery-dots {
    display: flex;
  }

  .gallery-badges-mobile {
    display: flex;
  }

  .gallery-main {
    min-height: 260px;
    justify-content: center;
    align-items: center;
  }

  .gallery-main-img {
    max-width: 240px;
    margin: 0 auto;
  }

  .badges-desktop {
    display: none;
  }

  .product-title {
    font-size: 26px;
    margin-bottom: 14px;
  }

  .price-current {
    font-size: 34px;
  }

  .price-block {
    margin-bottom: 20px;
  }

  .form-row {
    flex-direction: column;
    gap: 18px;
  }

  .product-description {
    margin-bottom: 24px;
  }

  .order-form {
    margin-bottom: 32px;
  }

  .why-choose {
    padding: 20px;
    margin-bottom: 32px;
  }

  .ingredients-section {
    margin-top: 28px;
    padding-top: 24px;
    margin-bottom: 4px;
  }

  .testimonials-section {
    margin-top: 28px;
    padding-top: 24px;
    margin-bottom: 28px;
  }

  .faq-section {
    margin-bottom: 32px;
  }

  .benefits-row-inner {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .benefit-card {
    max-width: 100%;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 14px;
  }

  .benefit-icon {
    margin: 0;
    flex-shrink: 0;
  }
}
