/* ============================================================
   FryHaus — Mobile-First Shopify-Standard Stylesheet
   Base: 375px. Breakpoints: 768px, 1024px
   ============================================================ */

:root {
  --bg: #F7F5F1;
  --card: #FFFFFF;
  --bg-light: #FAF8F4;
  --text: #171717;
  --text-muted: #68635D;
  --border: #E5E0D8;
  --border-strong: #C8C0B4;
  --cta: #111111;
  --cta-hover: #333;
  --cta-text: #FFFFFF;
  --accent: #2D6A4F;
  --btn-bg: #111111;
  --green: #1E7F4F;
  --r: 14px;
  --r-sm: 8px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; font: inherit; border: none; background: none; padding: 0; }
p, h1, h2, h3 { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { text-decoration: none; color: inherit; }

/* ── Announcement Bar ── */
.announcement-bar {
  background: var(--text);
  color: #fff;
  text-align: center;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.announcement-bar p { margin: 0; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 0 16px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.site-header.scrolled {
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
}
.logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}
.cart-btn {
  position: relative;
  padding: 8px;
  color: var(--text);
  display: flex;
  align-items: center;
}
.cart-count {
  position: absolute;
  top: 1px;
  right: 0;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-count[data-count="0"] { display: none; }

/* ── Gallery ── */
.product-gallery {
  max-width: 440px;
  margin: 0 auto;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #fff;
}
.gallery-slides {
  display: flex;
  height: 100%;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* First slide (clean product shot) uses contain */
.gallery-slide:first-child img {
  object-fit: contain;
  padding: 12px;
}
.gallery-thumbnails {
  display: flex;
  gap: 6px;
  padding: 8px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  background: var(--card);
}
.gallery-thumbnails::-webkit-scrollbar { display: none; }
.gallery-thumb {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 6px;
  border: 2px solid transparent;
  overflow: hidden;
  padding: 0;
  background: var(--bg-light);
  transition: border-color 0.15s;
}
.gallery-thumb.active {
  border-color: var(--text);
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* First thumb (hero) uses contain */
.gallery-thumb:first-child img {
  object-fit: contain;
  padding: 3px;
}

/* ── Product Info ── */
.product-info {
  max-width: 440px;
  margin: 0 auto;
  padding: 20px 16px 0;
  background: var(--card);
}
.product-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}
.product-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 10px;
  color: var(--text);
}
.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}
.product-price {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.price-note {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}
.product-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
}
.benefits-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin-bottom: 20px;
}
.benefits-list li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}
.check-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* ── Variant Selectors ── */
.selector-block {
  margin-bottom: 16px;
}
.selector-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.size-options {
  display: flex;
  gap: 8px;
}
.size-btn {
  flex: 1;
  padding: 11px 12px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  text-align: left;
  position: relative;
  transition: border-color 0.15s;
}
.size-btn.active {
  border-color: var(--text);
  box-shadow: inset 0 0 0 1px var(--text);
}
.size-value {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.size-sub {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.3;
}
.size-badge {
  position: absolute;
  top: -1px;
  right: -1px;
  background: var(--text);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 0 var(--r-sm) 0 var(--r-sm);
  text-transform: uppercase;
}
.colour-options {
  display: flex;
  gap: 8px;
  margin-top: 8px; /* label -> swatches spacing */
}
.colour-swatch {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 0;
  border: 1px solid transparent; /* faint border when not active */
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.colour-swatch.active {
  border: 1px solid var(--text); /* "anel preto fino" */
}
.swatch-dot {
  display: block;
  width: 26px; /* 24-28px */
  height: 26px;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* ── CTA Block ── */
.cta-block {
  padding: 0 0 20px 0;
}
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 54px;
  background: var(--btn-bg);
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.15);
}
.btn-primary:active { 
  opacity: 0.85; 
  transform: scale(0.98); 
}
.cta-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 14px;
  text-align: center;
  font-weight: 400;
}
.cta-meta svg { 
  flex-shrink: 0; 
  color: var(--text-muted);
}

/* ── Content Sections ── */
.content-section {
  padding: 0;
}
.content-section.bg-light {
  background: var(--bg-light);
}
.section-inner {
  padding: 32px 16px;
}
.section-heading {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 10px;
  color: var(--text);
}
.section-body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}
.full-image {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.full-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ── Stats Row ── */
.stats-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 0;
  background: var(--card);
  border-radius: var(--r);
  border: 1px solid var(--border);
  overflow: hidden;
}
.stat-item {
  flex: 1;
  text-align: center;
  padding: 16px 8px;
}
.stat-number {
  display: block;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── Full-bleed Image Section ── */
.full-image-section {
  position: relative;
  line-height: 0;
  overflow: hidden;
}
.full-image-section img {
  width: 100%;
  display: block;
  object-fit: cover;
}
.full-image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
}
.caption-headline {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}
.caption-body {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}

/* ── Functions Grid ── */
.functions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 24px;
}
.function-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px 12px;
}
.function-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}
.function-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── Addons — Horizontal Compact Order Bump ── */
.addons-section {
  padding: 0;
  margin-top: 36px;
}
.addons-section h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px 0;
  line-height: 1.2;
}
.addons-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 14px 0;
}
.addons-list {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 24px;
}
.addon-card {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  min-height: 94px;
  border-bottom: 1px solid #EEEAE4;
  cursor: pointer;
  user-select: none;
  background: transparent;
  transition: background 0.15s;
  box-sizing: border-box;
}
.addon-card:last-child {
  border-bottom: none;
}
.addon-card.selected {
  background: #FAF8F4;
}
.addon-card:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: -2px;
}

/* Image Area */
.addon-img-wrap {
  width: 68px;
  height: 68px;
  min-width: 68px;
  border-radius: 9px;
  background: #FAF8F4;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.addon-img-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Card Info */
.addon-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.addon-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 3px 0;
  line-height: 1.2;
}
.addon-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.addon-price {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  margin: 5px 0 0 0;
}

/* Add Button */
.btn-addon {
  min-width: 58px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #D8D2CA;
  border-radius: 9px;
  background: #FFFFFF;
  font-size: 13px;
  font-weight: 650;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* Allows the .addon-card to handle the click */
  transition: all 0.15s;
}
.btn-addon::after {
  content: "Add";
}
.addon-card.selected .btn-addon {
  background: #171717;
  color: #FFFFFF;
  border-color: #171717;
}
.addon-card.selected .btn-addon::after {
  content: "✓ Added";
}

/* ── Order Summary ── */
.order-summary {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px 16px;
  margin: 24px 0 16px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.summary-lines {
  display: flex;
  flex-direction: column;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.summary-line.summary-delivery {
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 16px;
}
.summary-line.summary-delivery .free {
  color: var(--green);
  font-weight: 600;
}
.summary-divider {
  height: 1px;
  background: var(--border);
  margin: 0 0 16px 0;
}
.summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

/* ── Trust Section ── */
.trust-section {
  padding: 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-item {
  background: var(--card);
  padding: 20px 16px;
}
.trust-item svg {
  display: block;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.trust-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}
.trust-body {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── FAQ ── */
.faq-list {
  border-top: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  gap: 12px;
  background: none;
  cursor: pointer;
}
.faq-q span { flex: 1; }
.faq-icon {
  flex-shrink: 0;
  transition: transform 0.25s;
  color: var(--text-muted);
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}
.faq-a p {
  padding-bottom: 16px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Footer ── */
.site-footer {
  background: var(--text);
  padding: 32px 16px;
}
.footer-brand {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  transition: color 0.15s;
}
.footer-links a:hover { color: #fff; }
.footer-copy {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  line-height: 1.5;
}

/* ── Sticky CTA ── */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(64px + env(safe-area-inset-bottom));
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 0 16px env(safe-area-inset-bottom) 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 -1px 3px rgba(0,0,0,0.03);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 40;
}
.sticky-cta.visible {
  transform: translateY(0);
}
.sticky-cta.hidden {
  transform: translateY(120%);
}
.sticky-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sticky-name {
  display: none;
}
.sticky-price {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.sticky-btn {
  height: 44px;
  min-width: 130px;
  background: #171717;
  color: #fff;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 650;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.sticky-btn:active {
  opacity: 0.85;
}
/* Ensure the body doesn't get covered by the sticky bar */
body {
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
}

/* ── Cart Overlay ── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.42);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ── Cart Drawer ── */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: var(--card);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.cart-drawer.open {
  transform: translateX(0);
}
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-header h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.cart-close {
  padding: 6px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}
.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  -webkit-overflow-scrolling: touch;
}
/* Empty state */
.cart-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}
.cart-empty svg {
  margin: 0 auto 14px;
  opacity: 0.35;
}
.cart-empty p {
  font-size: 15px;
  margin-bottom: 16px;
}
.cart-continue {
  display: inline-block;
  padding: 10px 22px;
  border: 1.5px solid var(--text);
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  background: none;
}
/* Cart items */
.cart-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 60px;
  height: 60px;
  min-width: 60px;
  border-radius: 8px;
  background: var(--bg-light);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}
.cart-item-info {
  flex: 1;
  min-width: 0;
}
.cart-item-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-price {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.cart-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-qty-btn {
  width: 26px;
  height: 26px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-light);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
}
.cart-qty-num {
  font-size: 13px;
  font-weight: 600;
  min-width: 18px;
  text-align: center;
}
.cart-remove {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: underline;
  background: none;
  cursor: pointer;
  padding: 0;
  margin-left: 8px;
}
/* Cart footer */
.cart-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-total-lines {
  margin-bottom: 12px;
}
.cart-total-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  padding: 3px 0;
}
.cart-grand-line {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  padding: 10px 0 0;
  margin-top: 6px;
  border-top: 1px solid var(--border);
}

/* ── Utilities ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   TABLET — 768px
   ============================================================ */
@media (min-width: 768px) {
  .product-title { font-size: 26px; }
  .product-price { font-size: 30px; }
  .gallery-thumb { width: 64px; height: 64px; }
  .section-heading { font-size: 30px; }
  .functions-grid { grid-template-columns: repeat(3, 1fr); }
  .section-inner { padding: 40px 24px; }
}

/* ============================================================
   DESKTOP — 1024px
   Centre the single-column PDP layout
   ============================================================ */
@media (min-width: 1024px) {
  body { background: var(--bg); }

  .product-gallery,
  .product-info,
  .content-section,
  .trust-section,
  .site-footer {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
  }
  .announcement-bar,
  .site-header,
  .sticky-cta {
    /* These stay full-width */
  }
  .site-header {
    padding: 0 calc(50% - 340px);
  }
  .product-title { font-size: 28px; }
  .product-price { font-size: 32px; }
  .section-heading { font-size: 32px; }
  .addons-list { flex-direction: row; flex-wrap: wrap; }
  .addon-card { flex: 1 1 calc(50% - 4px); }
  .sticky-cta {
    max-width: 680px;
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(110%);
    border-radius: var(--r) var(--r) 0 0;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }
  .sticky-cta.visible {
    transform: translateX(-50%) translateY(0);
  }
}




