/* ==========================================================================
   PANACEA COSMÉTICOS — Sistema de Diseño Editorial "Botica Médica Mexicana"
   100% propio, móvil-first, sin dependencias de Shopify ni CSS bloat.
   ========================================================================== */

:root {
  --ivory: #F8F5F0;
  --ivory-deep: #EFE9DF;
  --white: #FFFFFF;
  --ink: #181816;
  --ink-muted: #5A5751;
  --wax-red: #8B2323;
  --wax-red-dark: #6E1A1A;
  --sage: #4A5D4E;
  --sage-soft: #E9EFEA;
  --border: #E2DBD0;
  --gold: #B08D57;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(24, 24, 22, 0.05);
  --shadow-md: 0 12px 32px rgba(24, 24, 22, 0.09);
  --shadow-lg: 0 24px 60px rgba(24, 24, 22, 0.16);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w: 1240px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--ivory);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

button, input, select {
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Announcement Bar ---------- */
.announcement {
  background: var(--ink);
  color: var(--ivory);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 10px 16px;
}

.announcement strong {
  color: #E8C99B;
  font-weight: 600;
}

/* ---------- Sticky Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(248, 245, 240, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 20px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-wordmark {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink);
}

.brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--wax-red);
}

.main-nav a.nav-highlight {
  color: var(--wax-red);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.icon-btn:hover {
  border-color: var(--ink);
  background: var(--white);
}

.cart-btn {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.cart-btn:hover {
  background: var(--wax-red);
  border-color: var(--wax-red);
  color: var(--white);
}

.cart-badge {
  background: var(--wax-red);
  color: var(--white);
  font-size: 0.72rem;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

.cart-btn:hover .cart-badge {
  background: var(--white);
  color: var(--wax-red);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 11px;
  font-size: 1.15rem;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 13px 26px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.22s ease;
  text-align: center;
}

.btn-primary {
  background: var(--wax-red);
  color: var(--white);
  border-color: var(--wax-red);
}

.btn-primary:hover {
  background: var(--wax-red-dark);
  border-color: var(--wax-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(139, 35, 35, 0.25);
}

.btn-dark {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.btn-dark:hover {
  background: var(--wax-red);
  border-color: var(--wax-red);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.82rem;
}

.btn-block {
  width: 100%;
}

/* ---------- Hero Section ---------- */
.hero {
  padding: 44px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wax-red);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1.5px;
  background: var(--wax-red);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5vw, 4.1rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 18px;
}

.hero h1 em {
  font-style: italic;
  color: var(--wax-red);
  font-weight: 500;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--ink-muted);
  max-width: 520px;
  margin-bottom: 28px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.stat-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  line-height: 1.1;
  color: var(--ink);
}

.stat-item span {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.hero-media {
  position: relative;
}

.hero-photo-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 4.4;
  background: var(--ivory-deep);
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-floating-card {
  position: absolute;
  bottom: 20px;
  left: -20px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  max-width: 270px;
}

.hero-floating-card .fc-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sage);
  font-weight: 700;
}

.hero-floating-card p {
  font-size: 0.84rem;
  color: var(--ink);
  margin-top: 4px;
  line-height: 1.4;
}

/* ---------- Trust Bar ---------- */
.trust-bar {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ivory);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.trust-item strong {
  display: block;
  font-size: 0.86rem;
  color: var(--ink);
}

.trust-item span {
  font-size: 0.76rem;
  color: var(--ink-muted);
}

/* ---------- Section Headings ---------- */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.section-header.centered {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
}

.section-subtitle {
  color: var(--ink-muted);
  font-size: 0.96rem;
  max-width: 560px;
  margin-top: 8px;
}

/* ---------- Skin Concerns Grid ---------- */
.concerns-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.concern-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--ink);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.concern-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.concern-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.concern-card:hover img {
  transform: scale(1.05);
}

.concern-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24,24,22,0.05) 35%, rgba(24,24,22,0.82) 100%);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--white);
}

.concern-pill {
  align-self: flex-start;
  background: rgba(248, 245, 240, 0.9);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}

.concern-overlay h3 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.concern-overlay p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 10px;
}

.concern-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #F2D7A8;
}

/* ---------- Interactive Routine Quiz ---------- */
.quiz-box {
  background: var(--ink);
  color: var(--ivory);
  border-radius: var(--radius-lg);
  padding: 44px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.quiz-box .eyebrow {
  color: #E8C99B;
}

.quiz-box .eyebrow::before {
  background: #E8C99B;
}

.quiz-box h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1.1;
  margin-bottom: 14px;
}

.quiz-box p {
  color: rgba(248, 245, 240, 0.78);
  font-size: 0.95rem;
}

.quiz-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 28px;
}

.quiz-step-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #E8C99B;
  margin-bottom: 10px;
  font-weight: 700;
}

.quiz-question {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  margin-bottom: 18px;
}

.quiz-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.quiz-opt {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.88rem;
}

.quiz-opt:hover, .quiz-opt.selected {
  background: var(--wax-red);
  border-color: var(--wax-red);
}

.quiz-opt small {
  display: block;
  font-size: 0.74rem;
  opacity: 0.8;
  margin-top: 2px;
}

.quiz-result-card {
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--ivory);
  color: var(--ink);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-top: 14px;
}

.quiz-result-card img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.quiz-result-card h4 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.15;
}

.quiz-result-card p {
  color: var(--ink-muted);
  font-size: 0.82rem;
  margin: 6px 0 10px;
}

.quiz-coupon {
  display: inline-block;
  background: var(--sage-soft);
  color: var(--sage);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

/* ---------- Catalog Controls & Product Grid ---------- */
.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 28px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-btn {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.pill-btn:hover {
  border-color: var(--ink);
}

.pill-btn.active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.catalog-search-sort {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.input-clean {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.85rem;
  color: var(--ink);
  outline: none;
}

.input-clean:focus {
  border-color: var(--ink);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.product-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #F4EFE8;
  overflow: hidden;
  cursor: pointer;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.04);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}

.product-badge.badge-red {
  background: var(--wax-red);
}

.product-badge.badge-sage {
  background: var(--sage);
}

.product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-rating {
  font-size: 0.76rem;
  color: var(--gold);
  margin-bottom: 5px;
  font-weight: 600;
}

.product-rating span {
  color: var(--ink-muted);
  font-weight: 400;
}

.product-title {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  cursor: pointer;
  margin-bottom: 4px;
}

.product-title:hover {
  color: var(--wax-red);
}

.product-sub {
  font-size: 0.79rem;
  color: var(--ink-muted);
  margin-bottom: 12px;
  flex: 1;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.price-current {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.price-compare {
  font-size: 0.82rem;
  color: var(--ink-muted);
  text-decoration: line-through;
}

.msi-note {
  font-size: 0.72rem;
  color: var(--sage);
  font-weight: 600;
  margin-top: -8px;
  margin-bottom: 12px;
}

.product-card-actions {
  display: flex;
  gap: 8px;
}

.product-card-actions .btn-primary {
  flex: 1;
  padding: 10px 12px;
  font-size: 0.82rem;
}

.product-card-actions .btn-outline {
  padding: 10px 12px;
  font-size: 0.8rem;
  border-color: var(--border);
}

/* ---------- Authority / Founders Story ---------- */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.story-media {
  position: relative;
}

.story-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  aspect-ratio: 4 / 3.6;
  object-fit: cover;
}

.story-seal {
  position: absolute;
  bottom: -18px;
  right: 20px;
  background: var(--wax-red);
  color: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  max-width: 240px;
}

.story-seal strong {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  display: block;
}

.story-seal span {
  font-size: 0.76rem;
  opacity: 0.9;
}

.story-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 24px 0 28px;
}

.pillar-box {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.pillar-box strong {
  display: block;
  font-size: 0.88rem;
  color: var(--ink);
  margin-bottom: 3px;
}

.pillar-box span {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

/* ---------- Testimonials ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-stars {
  color: var(--gold);
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.review-quote {
  font-size: 0.88rem;
  color: var(--ink);
  margin-bottom: 16px;
}

.review-meta strong {
  display: block;
  font-size: 0.86rem;
}

.review-meta span {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.review-verified {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--sage);
  font-weight: 600;
}

/* ---------- Newsletter Banner ---------- */
.newsletter-box {
  background: var(--ivory-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 22px auto 0;
}

.newsletter-form input {
  flex: 1;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(248, 245, 240, 0.82);
  padding: 64px 0 96px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand .brand-wordmark {
  color: var(--white);
}

.footer-brand p {
  font-size: 0.85rem;
  margin-top: 12px;
  color: rgba(248, 245, 240, 0.68);
  max-width: 300px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.86rem;
}

.footer-col a:hover {
  color: #E8C99B;
}

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.social-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  color: var(--white);
  transition: all 0.2s;
}

.social-pill:hover {
  background: var(--wax-red);
  border-color: var(--wax-red);
}

.payment-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.pay-tag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.72rem;
  padding: 4px 9px;
  border-radius: 6px;
  color: var(--ivory);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.78rem;
  color: rgba(248, 245, 240, 0.6);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

/* ---------- Floating WhatsApp (Never overlaps footer icons) ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 80;
  background: #1F8A4C;
  color: var(--white);
  border-radius: 999px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: 0 10px 26px rgba(31, 138, 76, 0.35);
  transition: transform 0.2s;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
}

/* ---------- Instagram Community Strip (reemplaza Instafeed) ---------- */
.insta-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.insta-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
}
.insta-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.insta-tile:hover img {
  transform: scale(1.06);
}
.insta-tile span {
  position: absolute;
  inset: auto 8px 8px 8px;
  background: rgba(24, 24, 22, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 900px) {
  .insta-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Sticky Add-To-Cart Bar (reemplaza satcb.min.js) ---------- */
.sticky-atc-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(120px);
  z-index: 45;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px 8px 10px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 24px);
  transition: transform 0.28s ease;
}
.sticky-atc-bar.visible {
  transform: translateX(-50%) translateY(0);
}
.sticky-atc-bar img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}
.sticky-atc-info { min-width: 0; }
.sticky-atc-info strong {
  display: block;
  font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}
.sticky-atc-info small {
  color: var(--wax-red);
  font-weight: 700;
  font-size: 0.8rem;
}

/* ---------- Cart Drawer & Modals ---------- */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 24, 22, 0.56);
  backdrop-filter: blur(3px);
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(440px, 100vw);
  background: var(--white);
  z-index: 130;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.cart-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
}

.drawer-header h3 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
}

.close-btn {
  background: var(--ivory);
  border: 1px solid var(--border);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
}

.shipping-meter {
  background: var(--ivory);
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}

.meter-bar {
  height: 7px;
  background: var(--border);
  border-radius: 999px;
  margin-top: 8px;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  background: var(--wax-red);
  transition: width 0.3s ease, background 0.3s ease;
}

.meter-fill.unlocked {
  background: var(--sage);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item img {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--ivory);
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h4 {
  font-size: 0.9rem;
  line-height: 1.25;
}

.cart-item-meta {
  font-size: 0.74rem;
  color: var(--sage);
  margin-top: 2px;
}

.qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.qty-ctrl {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.qty-ctrl button {
  background: none;
  border: none;
  width: 28px;
  height: 26px;
  cursor: pointer;
  font-weight: 700;
}

.qty-ctrl span {
  font-size: 0.82rem;
  min-width: 22px;
  text-align: center;
}

.upsell-box {
  background: var(--ivory);
  border: 1px dashed var(--gold);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.upsell-box img {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
}

.drawer-footer {
  padding: 18px 22px;
  border-top: 1px solid var(--border);
  background: var(--ivory);
}

.coupon-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.coupon-row input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.82rem;
}

.totals-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  margin-bottom: 5px;
}

.totals-line.grand {
  font-size: 1.08rem;
  font-weight: 700;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* ---------- Product Detail Modal ---------- */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.96);
  width: min(920px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  z-index: 140;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.pdp-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  padding: 28px;
}

.pdp-img {
  border-radius: var(--radius-md);
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--ivory);
}

.pdp-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.pdp-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  background: var(--ivory);
  flex-shrink: 0;
}

.pdp-thumb.active {
  border-color: var(--wax-red);
}

.variant-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.variant-btn {
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--ink);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.variant-btn.active {
  border-color: var(--wax-red);
  background: #FCF6F6;
  color: var(--wax-red);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.blog-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--ivory-deep);
}

.blog-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-date {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wax-red);
  font-weight: 700;
  margin-bottom: 6px;
}

.blog-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.18;
  margin-bottom: 8px;
}

.blog-card p {
  font-size: 0.83rem;
  color: var(--ink-muted);
  flex: 1;
  margin-bottom: 12px;
}

.article-reader {
  padding: 28px;
}

.article-reader img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin: 14px 0 20px;
}

.article-content {
  font-size: 0.94rem;
  color: var(--ink);
  white-space: pre-line;
  line-height: 1.75;
}

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

.sub-options {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.sub-opt {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 0.85rem;
}

.sub-opt.active {
  border-color: var(--wax-red);
  background: #FCF6F6;
}

.pdp-accordion details {
  border-top: 1px solid var(--border);
  padding: 10px 0;
}

.pdp-accordion summary {
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}

.pdp-accordion p, .pdp-accordion ul {
  font-size: 0.84rem;
  color: var(--ink-muted);
  margin-top: 8px;
  padding-left: 16px;
}

.checkout-box {
  padding: 28px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 16px 0;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.field-group input, .field-group select {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.88rem;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--white);
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 0.84rem;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Mobile Drawer & Responsive Rules ---------- */
.mobile-nav-drawer {
  display: none;
  flex-direction: column;
  gap: 12px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
}

.mobile-nav-drawer.open {
  display: flex;
}

@media (max-width: 1024px) {
  .products-grid, .concerns-grid, .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-grid, .quiz-box, .story-grid, .pdp-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-floating-card {
    left: 14px;
    bottom: 14px;
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .product-body {
    padding: 12px;
  }
  .product-title {
    font-size: 1.05rem;
  }
  .concerns-grid, .reviews-grid, .quiz-options, .story-pillars, .checkout-grid {
    grid-template-columns: 1fr;
  }
  .quiz-box {
    padding: 24px 20px;
  }
  .newsletter-form {
    flex-direction: column;
  }
  .whatsapp-float span {
    display: none;
  }
  .whatsapp-float {
    padding: 14px;
  }
}
