/* ============================================
   SNAPSHOT MAGNETS — Global Stylesheet
   Brand colour: #517C63
   ============================================ */

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

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

body {
  font-family: 'DM Sans', 'Segoe UI', -apple-system, sans-serif;
  color: #222;
  background: #FCFBF9;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* --- CSS VARIABLES --- */
:root {
  --brand: #517C63;
  --brand-dark: #3d5e4a;
  --brand-light: #6FAE8D;
  --brand-bg: rgba(81, 124, 99, 0.08);
  --cream: #F5F3EE;
  --warm: #F9F8F5;
  --warm-light: #FCFBF9;
  --text: #222222;
  --text-light: #6B6B6B;
  --accent: #C4956A;
  --white: #FFFFFF;
  --dark: #222222;
  --success: #4A9F6E;
  --danger: #D94F4F;
  --shadow-sm: 0 2px 8px rgba(34,34,34,0.04);
  --shadow-md: 0 4px 16px rgba(34,34,34,0.06);
  --shadow-lg: 0 8px 32px rgba(34,34,34,0.1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-full: 100px;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; letter-spacing: -0.5px; }
h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.08; }
h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.15; }
h3 { font-size: clamp(18px, 2.5vw, 22px); line-height: 1.3; }

/* --- LAYOUT UTILITIES --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section--sm { padding: 60px 0; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.grid { display: grid; }

/* --- ANNOUNCEMENT BAR --- */
.announcement-bar {
  background: var(--dark);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* --- NAVIGATION --- */
.nav {
  background: var(--white);
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.nav__logo { height: 56px; width: auto; }
.nav__links { display: flex; gap: 28px; align-items: center; }
.nav__link {
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  transition: color var(--transition);
}
.nav__link:hover { color: var(--brand); }

.nav__cart {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--cream); border: none;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.nav__cart-count {
  position: absolute; top: -2px; right: -2px;
  background: var(--brand); color: #fff;
  font-size: 10px; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.nav__hamburger {
  display: none;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--cream); border: none;
  align-items: center; justify-content: center;
}

.mobile-menu {
  display: none;
  background: var(--white);
  padding: 16px 20px;
  border-bottom: 1px solid var(--cream);
  position: sticky;
  top: 88px;
  z-index: 99;
  box-shadow: var(--shadow-md);
}
.mobile-menu.active { display: block; }
.mobile-menu a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--cream);
}

/* --- HERO --- */
.hero {
  background: linear-gradient(135deg, var(--warm) 0%, var(--warm-light) 100%);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  max-width: 1280px;
  margin: 0 auto;
  align-items: center;
}
.hero__content { padding: 80px 40px 80px 60px; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: 12px;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.hero__title { margin-bottom: 20px; }
.hero__title em { color: var(--brand); font-style: italic; }
.hero__subtitle {
  font-size: 17px;
  color: var(--text-light);
  margin-bottom: 28px;
  line-height: 1.7;
  max-width: 440px;
}
.hero__image-wrap { position: relative; padding: 40px 40px 40px 0; }
.hero__image {
  width: 100%;
  min-height: 560px;
  border-radius: 24px;
  overflow: hidden;
  object-fit: cover;
  box-shadow: 0 20px 60px rgba(34,34,34,0.15);
}
.hero__floating-review {
  position: absolute; bottom: 70px; left: 30px;
  background: var(--white); padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); max-width: 240px;
}
.hero__floating-badge {
  position: absolute; top: 70px; right: 70px;
  background: var(--white); padding: 12px 18px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  border: none;
  transition: all var(--transition);
  letter-spacing: 0.3px;
}
.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 24px rgba(81, 124, 99, 0.25);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(81, 124, 99, 0.35);
}
.btn--white {
  background: var(--white);
  color: var(--brand);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.btn--outline {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
}
.btn--outline:hover { background: var(--brand); color: #fff; }
.btn--lg { padding: 18px 48px; font-size: 16px; }
.btn--full { width: 100%; }
.btn--disabled { opacity: 0.5; cursor: not-allowed; background: #ccc; box-shadow: none; }

/* --- STARS --- */
.stars { display: inline-flex; gap: 2px; }
.stars svg { fill: var(--accent); }

/* --- TRUST BAR --- */
.trust-bar {
  background: var(--cream);
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-bar__item { font-size: 13px; font-weight: 500; }

/* --- SECTION HEADERS --- */
.section-label {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--brand);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-subtitle {
  color: var(--text-light);
  font-size: 16px;
  margin-top: 12px;
}

/* --- CARDS --- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card__image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.card__body { padding: 24px; }
.card__title { font-size: 18px; font-weight: 600; margin-bottom: 8px; font-family: 'DM Sans', sans-serif; }
.card__desc { font-size: 13px; color: var(--text-light); line-height: 1.6; margin-bottom: 14px; }
.card__link { font-size: 13px; color: var(--brand); font-weight: 600; }

/* --- CATEGORY GRID --- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* --- HOW IT WORKS --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.step { background: var(--white); border-radius: var(--radius-lg); padding: 40px 32px; box-shadow: var(--shadow-md); }
.step__number { font-family: 'DM Serif Display', Georgia, serif; font-size: 60px; color: rgba(81, 124, 99, 0.2); line-height: 1; margin-bottom: 16px; }
.step__title { font-size: 20px; font-weight: 600; margin-bottom: 10px; font-family: 'DM Sans', sans-serif; }
.step__desc { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* --- EMOTIONAL SECTION --- */
.emotional {
  position: relative; padding: 160px 24px; text-align: center; overflow: hidden;
  background-size: cover; background-position: center;
}
.emotional__quote {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(28px, 5vw, 52px);
  color: #fff; max-width: 780px; margin: 0 auto;
  line-height: 1.25; font-style: italic;
}
.emotional__sub {
  font-size: 17px; color: rgba(255,255,255,0.85);
  max-width: 540px; margin: 20px auto 0; line-height: 1.7;
}

/* --- PRICING --- */
.size-toggle { display: flex; justify-content: center; gap: 12px; margin-bottom: 40px; }
.size-btn {
  padding: 14px 24px; border-radius: 14px; border: 2px solid var(--cream);
  background: var(--white); text-align: left; transition: all 0.2s;
}
.size-btn.active { border-color: var(--brand); background: rgba(81, 124, 99, 0.05); }
.size-btn__label { font-size: 14px; font-weight: 600; }
.size-btn__dim { font-size: 11px; color: var(--text-light); margin-top: 2px; }

.pack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 880px;
  margin: 0 auto;
}
.pack-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 32px 20px;
  text-align: center; border: 2px solid transparent; transition: all var(--transition);
  position: relative; cursor: pointer;
}
.pack-card.active { border-color: var(--brand); box-shadow: 0 8px 30px rgba(81, 124, 99, 0.15); }
.pack-card__qty { font-size: 40px; font-family: 'DM Serif Display', Georgia, serif; margin-bottom: 4px; }
.pack-card__unit { font-size: 11px; color: var(--text-light); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 16px; }
.pack-card__price { font-size: 28px; font-weight: 700; margin-bottom: 4px; }
.pack-card__each { font-size: 12px; color: var(--text-light); }
.pack-card__badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 10px; font-weight: 700;
  padding: 5px 14px; border-radius: 12px; white-space: nowrap;
}
.pack-card__save {
  margin-top: 14px; font-size: 11px; font-weight: 600;
  color: var(--brand); background: rgba(81, 124, 99, 0.08);
  padding: 5px 12px; border-radius: var(--radius-full); display: inline-block;
}

/* --- REVIEWS --- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1000px; margin: 0 auto; }
.review {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px 28px; box-shadow: var(--shadow-md);
}
.review__text { font-size: 15px; line-height: 1.7; margin: 16px 0 24px; }
.review__author { display: flex; align-items: center; gap: 12px; }
.review__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600;
}
.review__name { font-size: 14px; font-weight: 600; }
.review__location { font-size: 12px; color: var(--text-light); }

/* --- FAQ --- */
.faq-list { max-width: 680px; margin: 0 auto; }
.faq-item { background: var(--white); border-radius: var(--radius-md); margin-bottom: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.faq-question {
  width: 100%; padding: 24px 28px; border: none; background: transparent;
  display: flex; justify-content: space-between; align-items: center;
  text-align: left; font-size: 16px; font-weight: 600; color: var(--text);
}
.faq-question__icon { color: var(--brand); font-size: 24px; transition: transform var(--transition); margin-left: 12px; flex-shrink: 0; }
.faq-question__icon.open { transform: rotate(45deg); }
.faq-answer { padding: 0 28px 24px; font-size: 15px; color: var(--text-light); line-height: 1.7; display: none; }
.faq-answer.open { display: block; }

/* --- CTA SECTION --- */
.cta-section {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  padding: 140px 24px; text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.1) 0%, transparent 50%);
}
.cta-section h2 { color: #fff; position: relative; margin-bottom: 20px; }
.cta-section p { color: rgba(255,255,255,0.85); font-size: 16px; position: relative; margin-bottom: 36px; }

/* --- FOOTER --- */
.footer { background: var(--dark); padding: 64px 32px 40px; color: rgba(255,255,255,0.6); }
.footer__inner { max-width: var(--max-width); margin: 0 auto; }
.footer__top { display: flex; justify-content: space-between; gap: 40px; margin-bottom: 40px; }
.footer__brand { max-width: 300px; }
.footer__logo { height: 60px; width: auto; margin-bottom: 20px; }
.footer__desc { font-size: 13px; line-height: 1.7; }
.footer__columns { display: flex; gap: 56px; }
.footer__col-title { color: #fff; font-size: 12px; font-weight: 600; margin-bottom: 16px; letter-spacing: 1.5px; }
.footer__link { display: block; color: rgba(255,255,255,0.5); font-size: 13px; margin-bottom: 10px; transition: color var(--transition); }
.footer__link:hover { color: rgba(255,255,255,0.8); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer__payments { display: flex; gap: 8px; flex-wrap: wrap; }
.footer__pay {
  background: rgba(255,255,255,0.1); border-radius: 6px;
  padding: 5px 10px; font-size: 11px; color: rgba(255,255,255,0.7); font-weight: 500;
}
.footer__copy { font-size: 12px; }

/* --- PRODUCT PAGE SPECIFICS --- */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 40px 80px;
}

.category-tabs {
  background: var(--warm-light);
  border-bottom: 1px solid var(--cream);
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}
.category-tabs__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
}
.category-tab {
  padding: 16px 24px; border: none; background: transparent;
  border-bottom: 3px solid transparent;
  color: var(--text-light); font-size: 14px; font-weight: 500;
  transition: all 0.2s; flex-shrink: 0;
}
.category-tab.active { border-bottom-color: var(--brand); color: var(--brand); font-weight: 600; }

.breadcrumb { padding: 16px 40px; font-size: 13px; color: var(--text-light); max-width: var(--max-width); margin: 0 auto; }
.breadcrumb a { color: var(--text-light); }
.breadcrumb span { margin: 0 8px; }

/* Upload zone */
.upload-zone {
  border: 2px dashed #D0CEC8;
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  background: var(--warm-light);
  transition: all var(--transition);
  cursor: pointer;
}
.upload-zone.drag-over { border-color: var(--brand); background: rgba(81, 124, 99, 0.05); }
.upload-zone.has-photos { border-color: var(--cream); padding: 24px; }
.upload-zone__icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(81, 124, 99, 0.1);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.upload-zone__title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.upload-zone__desc { font-size: 13px; color: var(--text-light); margin-bottom: 16px; }
.upload-zone__meta { font-size: 12px; color: var(--text-light); background: var(--cream); padding: 6px 16px; border-radius: var(--radius-full); display: inline-block; }

/* Photo grid in uploader */
.photo-grid { display: grid; gap: 10px; width: 100%; }
.photo-thumb { position: relative; aspect-ratio: 0.82; border-radius: 10px; overflow: hidden; border: 3px solid white; box-shadow: var(--shadow-md); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb__remove {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,0.6); color: #fff; border: none;
  font-size: 13px; display: flex; align-items: center; justify-content: center;
}
.photo-slot {
  aspect-ratio: 0.82; border-radius: 10px;
  border: 2px dashed var(--cream); background: var(--warm-light);
  display: flex; align-items: center; justify-content: center;
}

/* Progress bar */
.progress { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.progress__bar { flex: 1; height: 4px; border-radius: 2px; background: var(--cream); }
.progress__fill { height: 100%; border-radius: 2px; background: var(--brand); transition: width var(--transition); }
.progress__fill.complete { background: var(--success); }
.progress__text { font-size: 13px; color: var(--text-light); font-weight: 500; }

/* Order summary */
.order-summary { background: var(--warm-light); border-radius: var(--radius-md); padding: 18px; margin-bottom: 16px; }
.order-summary__row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.order-summary__total { border-top: 1px solid var(--cream); margin-top: 12px; padding-top: 12px; font-size: 18px; font-weight: 700; }

/* Trust list */
.trust-list { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.trust-list__item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-light); }

/* Pack selector (radio style) */
.pack-radio { display: flex; flex-direction: column; gap: 8px; }
.pack-radio__item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-radius: 14px; border: 2px solid var(--cream);
  background: var(--white); transition: all 0.2s; cursor: pointer; width: 100%;
}
.pack-radio__item.active { border-color: var(--brand); background: rgba(81, 124, 99, 0.05); }
.pack-radio__dot {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid #ccc; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pack-radio__item.active .pack-radio__dot { border-color: var(--brand); }
.pack-radio__dot-inner { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); display: none; }
.pack-radio__item.active .pack-radio__dot-inner { display: block; }
.pack-radio__info { margin-left: 12px; }
.pack-radio__name { font-size: 14px; font-weight: 600; }
.pack-radio__each { font-size: 12px; color: var(--text-light); }
.pack-radio__price { font-size: 16px; font-weight: 700; }
.pack-radio__badge { font-size: 10px; font-weight: 600; color: var(--brand); background: rgba(81, 124, 99, 0.08); padding: 3px 8px; border-radius: var(--radius-full); margin-right: 8px; }

/* Tips box */
.tips-box { background: var(--warm-light); border-radius: var(--radius-md); padding: 24px; margin-top: 24px; }
.tips-box__title { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.tips-box__content { font-size: 13px; color: var(--text-light); line-height: 1.8; }

/* Custom fields */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.form-input {
  width: 100%; padding: 12px 16px; border: 2px solid var(--cream);
  border-radius: 12px; font-size: 14px; transition: border-color 0.2s;
  background: var(--white);
}
.form-input:focus { outline: none; border-color: var(--brand); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%236B6B6B'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.form-textarea { min-height: 120px; resize: vertical; }

/* Sticky sidebar */
.sidebar { position: sticky; top: 120px; align-self: start; }

/* Memorial page overrides */
.memorial .section { background: #FAFAF9; }
.memorial .card { box-shadow: 0 2px 8px rgba(0,0,0,0.03); }
.memorial .btn--primary { background: #6B8F7B; box-shadow: 0 4px 16px rgba(107, 143, 123, 0.2); }
.memorial .section-label { color: #6B8F7B; }

/* --- FADE IN ANIMATION --- */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .nav { padding: 12px 16px; }
  .nav__logo { height: 40px; }
  .nav__links a:not(.nav__cart):not(.nav__hamburger) { display: none; }
  .nav__hamburger { display: flex; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__content { padding: 40px 20px 24px; }
  .hero__image-wrap { padding: 0 16px 40px; }
  .hero__image { min-height: auto; aspect-ratio: 4/3; border-radius: 16px; }
  .hero__floating-review, .hero__floating-badge { display: none; }

  .trust-bar { gap: 12px 20px; padding: 16px; }
  .trust-bar__item { font-size: 11px; }

  .section { padding: 64px 0; }
  .section--sm { padding: 40px 0; }
  .container { padding: 0 16px; }

  .steps-grid { grid-template-columns: 1fr; gap: 16px; }
  .step { padding: 28px 24px; }
  .step__number { font-size: 40px; }

  .category-grid { 
    display: flex; 
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px; 
    padding-bottom: 8px;
    align-items: stretch;
  }
  .category-grid::-webkit-scrollbar { display: none; }
  .category-grid > .card { 
    flex: 0 0 140px; 
    scroll-snap-align: start;
    transform: none !important;
  }
  .category-grid > .card:hover {
    transform: none !important;
  }
  .card__body { padding: 14px; }
  .card__title { font-size: 14px; }
  .card__desc { display: none; }

  .emotional { padding: 80px 20px; }

  .pack-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pack-card { padding: 24px 16px; }
  .pack-card__qty { font-size: 28px; }
  .pack-card__price { font-size: 22px; }

  .review-grid { grid-template-columns: 1fr; gap: 16px; }

  .faq-question { padding: 20px; font-size: 14px; }
  .faq-answer { padding: 0 20px 20px; }

  .cta-section { padding: 80px 20px; }
  .btn--lg { padding: 16px 32px; width: 100%; }

  .footer__top { flex-direction: column; }
  .footer { padding: 40px 20px 32px; }
  .footer__logo { height: 48px; }

  .product-layout { grid-template-columns: 1fr; padding: 24px 16px 40px; gap: 32px; }
  .sidebar { position: static; }
  .category-tabs__inner { padding: 0 16px; }
  .category-tab { padding: 14px 16px; font-size: 13px; }
  .breadcrumb { padding: 16px; }

  .upload-zone { padding: 28px 16px; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }

  .corporate-hero { grid-template-columns: 1fr !important; gap: 24px !important; }
  .corporate-cases { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }
  .corporate-form-grid { grid-template-columns: 1fr !important; }

  .announcement-bar { font-size: 11px; }
}

@media (max-width: 480px) {
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  .category-grid > .card { flex: 0 0 130px; }
  .pack-grid { grid-template-columns: 1fr 1fr; }
}

/* Product Image Gallery */
.product-gallery {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-lg);
  background: var(--warm-light);
}
.product-gallery__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.product-gallery__track::-webkit-scrollbar { display: none; }
.product-gallery__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-gallery__slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
.product-gallery__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.25));
}
.product-gallery__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s;
}
.product-gallery__dot.active {
  background: #fff;
}

/* Mini Cart Dropdown */
.mini-cart {
  position: absolute;
  top: 100%;
  right: 0;
  width: 320px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  padding: 20px;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 1000;
}
.mini-cart.show {
  opacity: 1;
  transform: translateY(8px);
  pointer-events: auto;
}
.mini-cart__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 12px;
}
.mini-cart__item {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}
.mini-cart__price {
  font-weight: 600;
  float: right;
}
.mini-cart__view {
  display: block;
  text-align: center;
  margin-top: 14px;
  padding: 10px;
  background: var(--brand);
  color: #fff;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  width: 100%;
}
@media (max-width: 600px) {
  .mini-cart { width: 280px; right: -8px; }
}

/* Hide Snipcart cart only during programmatic add */
body.sm-adding .snipcart-modal__container,
body.sm-adding .snipcart-cart__content,
body.sm-adding .snipcart-layout {
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

/* Uploadcare widget — always show upload button */
.uploadcare--widget__button_type_open,
.uploadcare--widget__button_type_open.uploadcare--widget__button_type_open,
.uploadcare--widget .uploadcare--widget__button_type_open,
.uploadcare--widget_status_loaded .uploadcare--widget__button_type_open {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
/* Make sure the widget doesn't collapse after upload */
.uploadcare--widget {
  min-height: 40px;
}
/* Stack button below file info after upload */
.uploadcare--widget_status_loaded {
  display: flex !important;
  flex-wrap: wrap !important;
}
.uploadcare--widget_status_loaded .uploadcare--widget__text {
  width: 100% !important;
  margin-bottom: 8px !important;
}
.uploadcare--widget_status_loaded .uploadcare--widget__button_type_open {
  width: auto !important;
}
