/* AFYAVINE Phase 11.1.4 — Compact public visual system
   Presentation-only overrides. Business, stock and checkout logic remain unchanged. */

:root { --public-section-y: 48px; }

/* Shared public header */
.header-inner { min-height: 64px; }
.brand-logo { width: 200px; }
.main-nav { gap: 22px; }

/* Homepage: retain premium identity without consuming the viewport */
.hero { min-height: 430px; }
.hero-grid { gap: 42px; padding: 44px 0; }
.hero h1 { max-width: 720px; margin-bottom: 16px; font-size: clamp(2.7rem, 4.3vw, 4.15rem); line-height: 1.02; }
.hero-lead { margin-bottom: 22px; font-size: 1rem; line-height: 1.6; }
.hero-mark { min-height: 270px; padding: 22px; }
.hero-mark img { width: min(100%, 260px); }
.section { padding: var(--public-section-y) 0; }
.section h2 { margin-bottom: 24px; font-size: clamp(1.85rem, 2.8vw, 2.65rem); line-height: 1.08; }
.feature-card { min-height: 190px; padding: 22px; }
.feature-card h3 { margin-top: 22px; font-size: 1.3rem; }

/* Shop and category pages */
.store-hero { padding: 38px 0 32px; }
.store-hero-compact { padding: 30px 0 26px; }
.store-hero h1 { max-width: 900px; margin: 10px 0 10px; font-size: clamp(2.25rem, 3.6vw, 3.5rem); line-height: 1.04; }
.store-hero p { margin: 8px 0 0; font-size: .98rem; line-height: 1.55; }
.store-section, .store-product-page { padding: 38px 0 56px; }
.store-section-heading { margin-bottom: 18px; }
.store-section-heading h2, .store-related h2, .store-documents h2 { font-size: clamp(1.75rem, 2.5vw, 2.35rem); }
.store-product-grid { gap: 14px; }
.store-product-image { height: 220px; padding: 14px; }
.store-product-body { padding: 16px; }
.store-product-card h3 { font-size: 1.2rem; line-height: 1.18; }
.store-product-card p { min-height: 0; font-size: .92rem; line-height: 1.5; }

/* Product detail */
.store-product-layout { gap: 32px; margin-bottom: 32px; }
.store-main-image { min-height: 350px; padding: 20px; }
.store-main-image img { max-height: 350px; }
.store-product-info h1 { max-width: 760px; margin-bottom: 6px; font-size: clamp(2.15rem, 3.35vw, 3.2rem); line-height: 1.03; }
.store-pack { margin: 4px 0 10px; }
.store-lead { margin: 12px 0; font-size: .98rem; line-height: 1.55; }
.store-purchase-panel { margin: 16px 0 12px; }
.store-purchase-panel > div { padding: 14px; }
.store-copy-block { margin-top: 18px; }
.store-copy-block h2 { font-size: 1.7rem; }

/* Customer, cart and checkout public headings */
.customer-auth-card h1, .customer-form-card h1 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.customer-account-heading h1 { font-size: clamp(2rem, 3vw, 2.9rem); }
.commerce-heading h1 { font-size: clamp(2rem, 3vw, 2.9rem); }
.commerce-page { padding-top: 38px; }

/* Therapy public presentation */
.therapy-page { padding: 48px 0 68px; }
.therapy-page h1 { font-size: clamp(2.1rem, 3.4vw, 3.25rem); line-height: 1.05; }

/* Technology / equipment public presentation */
.equipment-tech-hero h1, .equipment-tech-hero-compact h1 { font-size: clamp(2.05rem, 3vw, 3rem); line-height: 1.06; }
.equipment-detail-copy h1 { font-size: clamp(2.15rem, 3.3vw, 3.25rem); line-height: 1.04; }
.equipment-hero-image { min-height: 410px; }
.equipment-hero-image img { max-height: 420px; }

@media (max-width: 920px) {
  .hero { min-height: auto; }
  .hero-grid { gap: 26px; padding: 36px 0; }
  .hero-mark { min-height: 230px; }
  .store-product-layout { gap: 24px; }
}

@media (max-width: 620px) {
  .brand-logo { width: 168px; }
  .hero h1 { font-size: 2.55rem; }
  .store-hero h1 { font-size: 2.3rem; }
  .store-product-info h1 { font-size: 2.25rem; }
  .store-main-image { min-height: 290px; }
  .section, .store-section, .store-product-page { padding-top: 34px; padding-bottom: 44px; }
}


/* AFYAVINE Phase 11.1.5 — responsive compact closure */
/* Desktop typography is deliberately bounded: headings should identify hierarchy,
   not dominate the first viewport. */
.hero h1 { font-size: clamp(2.35rem, 3.45vw, 3.55rem); line-height: 1.04; }
.store-hero h1 { max-width: 760px; font-size: clamp(2rem, 2.85vw, 2.85rem); line-height: 1.06; }
.store-product-info h1 { max-width: 680px; font-size: clamp(1.95rem, 2.75vw, 2.75rem); line-height: 1.06; overflow-wrap: anywhere; }
.section h2 { font-size: clamp(1.75rem, 2.35vw, 2.35rem); }
.store-section-heading h2, .store-related h2, .store-documents h2 { font-size: clamp(1.65rem, 2.15vw, 2.15rem); }
.store-copy-block h2 { font-size: 1.55rem; }

/* Tablet and phone: force a genuine single-column product experience early. */
@media (max-width: 1024px) {
  .store-product-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .store-gallery,
  .store-product-info { min-width: 0; width: 100%; }
  .store-product-info { padding-top: 0; }
  .store-main-image { min-height: 320px; }
  .store-main-image img { max-height: 320px; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 1180px); }
  .header-inner { min-height: 62px; gap: 12px; }
  .brand-logo { width: 158px; max-width: 55vw; }
  .nav-button { padding: 9px 14px; }

  .hero-grid { grid-template-columns: 1fr; gap: 22px; padding: 30px 0; }
  .hero h1 { font-size: clamp(2.15rem, 10vw, 2.8rem); line-height: 1.04; }
  .hero-lead { font-size: .95rem; }
  .hero-mark { min-height: 210px; padding: 18px; }
  .hero-mark img { width: min(100%, 220px); }

  .store-hero, .store-hero-compact { padding: 28px 0 24px; }
  .store-hero h1 { max-width: none; font-size: clamp(1.9rem, 9vw, 2.45rem); line-height: 1.07; }
  .store-hero p { font-size: .94rem; }
  .store-back-link { margin-bottom: 12px; }

  .store-section, .store-product-page { padding: 28px 0 40px; }
  .store-breadcrumb { gap: 6px; margin-bottom: 16px; font-size: .8rem; }
  .store-product-info h1 { max-width: none; font-size: clamp(1.85rem, 8.5vw, 2.35rem); line-height: 1.08; }
  .store-lead { margin: 10px 0; font-size: .94rem; line-height: 1.5; }
  .store-pack { font-size: .92rem; }

  .store-main-image { min-height: 0; height: min(72vw, 340px); padding: 14px; border-radius: 18px; }
  .store-main-image img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
  .store-thumb-row { grid-template-columns: repeat(4, minmax(0, 72px)); gap: 8px; overflow-x: auto; }
  .store-thumb { width: 72px; height: 72px; padding: 6px; }

  .store-purchase-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .store-purchase-panel > div { padding: 12px; }
  .store-purchase-panel strong { font-size: 1rem; }
  .store-copy-block h2 { font-size: 1.45rem; }
  .store-information-grid { grid-template-columns: 1fr; }

  .store-filter { grid-template-columns: 1fr; }
  .store-section-heading { gap: 8px; }
  .store-section-heading h2, .store-related h2, .store-documents h2 { font-size: 1.75rem; }
  .section { padding: 36px 0; }
  .section h2 { font-size: 1.85rem; }
}

@media (max-width: 420px) {
  .shell { width: min(100% - 22px, 1180px); }
  .brand-logo { width: 148px; }
  .hero h1 { font-size: 2.2rem; }
  .store-hero h1 { font-size: 2rem; }
  .store-product-info h1 { font-size: 2rem; }
  .store-main-image { height: min(82vw, 320px); }
  .store-purchase-panel { grid-template-columns: 1fr; }
}


/* AFYAVINE Phase 11.1.6 — mobile navigation + responsive typography closure */
.mobile-nav { display: none; position: relative; }

/* Product cards must keep copy in its own readable surface. */
.store-product-card { display: flex; flex-direction: column; }
.store-product-image { flex: 0 0 auto; }
.store-product-body { position: relative; z-index: 1; flex: 1 1 auto; background: #fff; }

/* Final desktop bounds: premium, but no billboard typography. */
.hero h1 { font-size: clamp(2.2rem, 3vw, 3.2rem); }
.store-hero h1 { font-size: clamp(1.9rem, 2.5vw, 2.65rem); }
.store-product-info h1 { font-size: clamp(1.85rem, 2.4vw, 2.55rem); }
.section h2 { font-size: clamp(1.65rem, 2.1vw, 2.2rem); }
.store-section-heading h2, .store-related h2, .store-documents h2 { font-size: clamp(1.55rem, 1.95vw, 2rem); }
.store-copy-block h2 { font-size: 1.45rem; }

@media (max-width: 920px) {
  .main-nav { display: none; }
  .mobile-nav { display: block; margin-left: auto; }
  .mobile-nav summary {
    list-style: none; cursor: pointer; user-select: none;
    padding: 9px 15px; border: 1px solid var(--afyavine-green);
    border-radius: 999px; color: #fff; background: var(--afyavine-green);
    font-size: .9rem; font-weight: 800; line-height: 1.2;
  }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav summary::after { content: " ☰"; margin-left: 6px; }
  .mobile-nav[open] summary::after { content: " ×"; }
  .mobile-nav-panel {
    position: absolute; top: calc(100% + 10px); right: 0; z-index: 60;
    width: min(78vw, 290px); padding: 8px; border: 1px solid var(--border);
    border-radius: 16px; background: #fff; box-shadow: 0 16px 40px rgba(7,60,45,.16);
  }
  .mobile-nav-panel a {
    display: block; padding: 11px 12px; border-radius: 10px;
    color: var(--afyavine-green-deep); text-decoration: none;
    font-size: .94rem; font-weight: 750;
  }
  .mobile-nav-panel a:hover, .mobile-nav-panel a:focus-visible { background: #edf3e9; }
}

@media (max-width: 760px) {
  .hero h1 { font-size: clamp(1.95rem, 8.5vw, 2.35rem); line-height: 1.06; }
  .store-hero h1 { font-size: clamp(1.75rem, 7.7vw, 2.15rem); line-height: 1.08; }
  .store-product-info h1 { font-size: clamp(1.7rem, 7.4vw, 2.05rem); line-height: 1.09; }
  .section h2 { font-size: 1.65rem; line-height: 1.1; }
  .store-section-heading h2, .store-related h2, .store-documents h2 { font-size: 1.55rem; line-height: 1.12; }
  .store-copy-block h2 { font-size: 1.35rem; line-height: 1.15; }
  .store-lead, .store-copy-block p, .store-information-grid p { font-size: 1rem; line-height: 1.55; }
  .button { min-height: 42px; padding-top: 9px; padding-bottom: 9px; }
  .store-product-image { height: min(64vw, 245px); }
  .store-product-body { padding: 15px; }
  .store-product-card h3 { font-size: 1.15rem; line-height: 1.18; }
  .store-product-card p { font-size: .9rem; line-height: 1.45; }
}

@media (max-width: 420px) {
  .brand-logo { width: 142px; max-width: 62vw; }
  .mobile-nav summary { padding: 8px 12px; font-size: .84rem; }
  .hero h1 { font-size: 2rem; }
  .store-hero h1 { font-size: 1.85rem; }
  .store-product-info h1 { font-size: 1.8rem; }
}


/* AFYAVINE Phase 11.1.6A — mobile navigation, image containment & typography closure */
@media (max-width: 760px) {
  /* Preserve complete product photography on phones. */
  .store-product-image {
    height: min(82vw, 340px);
    min-height: 250px;
    padding: 14px;
  }
  .store-product-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
  }
  .store-main-image {
    height: min(88vw, 360px);
    min-height: 280px;
  }
  .store-main-image img {
    object-fit: contain;
    object-position: center;
  }

  /* Roughly 30% smaller than the Phase 11.1.6 phone display scale. */
  .hero h1 { font-size: clamp(1.55rem, 6vw, 1.75rem); line-height: 1.08; }
  .store-hero h1 { font-size: clamp(1.4rem, 5.7vw, 1.6rem); line-height: 1.1; }
  .store-product-info h1 { font-size: clamp(1.45rem, 5.8vw, 1.65rem); line-height: 1.1; }
  .section h2 { font-size: 1.35rem; line-height: 1.12; }
  .store-section-heading h2,
  .store-related h2,
  .store-documents h2 { font-size: 1.3rem; line-height: 1.14; }
  .store-copy-block h2 { font-size: 1.2rem; line-height: 1.16; }

  /* Keep body copy readable while reducing excess vertical consumption. */
  .hero-lead,
  .store-hero p,
  .store-lead,
  .store-copy-block p,
  .store-information-grid p { font-size: .9rem; line-height: 1.48; }

  /* Customer account uses its own stylesheet and needs the same phone scale. */
  .customer-account-heading h1 { font-size: 1.7rem; line-height: 1.08; }
  .customer-panel-heading h2 { font-size: 1.3rem; line-height: 1.12; }
  .customer-future-panel h2 { font-size: 1.4rem; line-height: 1.12; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 1.55rem; }
  .store-hero h1 { font-size: 1.4rem; }
  .store-product-info h1 { font-size: 1.45rem; }
  .store-product-image { height: min(88vw, 340px); min-height: 245px; }
}

/* AFYAVINE Phase 11.1.6B — catalogue density, desktop image & category rhythm closure */
/* Desktop/tablet cards: preserve the complete product photograph inside a compact frame. */
.store-product-image {
  height: 250px;
  min-height: 0;
  padding: 12px;
}
.store-product-image img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Shop/category vertical rhythm: bring useful catalogue content into the first viewport. */
.store-hero { padding: 26px 0 24px; }
.store-hero-compact { padding: 22px 0 20px; }
.store-hero h1 { margin: 7px 0 7px; }
.store-hero p { margin-top: 5px; line-height: 1.45; }
.store-section { padding: 28px 0 44px; }
.store-filter { margin-bottom: 24px; }
.store-section-heading { margin-bottom: 14px; }

/* Category heading controls are distinct elements, not one continuous label. */
.store-hero-compact .shell { display: block; }
.store-hero-compact .store-back-link {
  display: block;
  width: fit-content;
  margin: 0 0 10px;
}
.store-hero-compact .eyebrow {
  display: block;
  width: fit-content;
  margin-bottom: 8px;
}

@media (max-width: 760px) {
  .store-hero, .store-hero-compact { padding: 20px 0 18px; }
  .store-section { padding: 22px 0 34px; }
  .store-filter { gap: 8px; margin-bottom: 20px; }
  .store-section-heading { margin-bottom: 12px; }

  /* Dense catalogue cards while retaining the entire source image. */
  .store-product-image {
    height: min(68vw, 275px);
    min-height: 210px;
    padding: 10px;
  }
  .store-product-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
  }
  .store-product-body { padding: 13px; }
  .store-product-meta { margin-bottom: 7px; }
  .store-product-card h3 { margin-bottom: 7px; }
  .store-product-card p { margin-bottom: 12px; }

  .store-hero-compact .store-back-link { margin-bottom: 9px; }
  .store-hero-compact .eyebrow { margin-bottom: 7px; }
}

@media (max-width: 420px) {
  .store-product-image { height: min(70vw, 265px); min-height: 205px; }
}

/* AFYAVINE Phase 11.1.6C — responsive catalogue image-frame & mobile density closure */
/* Use a real responsive media frame. The image always fits inside it; never crop product artwork. */
.store-product-image {
  box-sizing: border-box;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
  padding: 10px;
  overflow: hidden;
}
.store-product-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
}

/* Keep shop/category introductions compact without changing site-wide typography. */
.store-hero { padding: 22px 0 20px; }
.store-hero-compact { padding: 18px 0 16px; }
.store-hero-compact .store-back-link { margin-bottom: 6px; }
.store-hero-compact .eyebrow { margin-bottom: 5px; }
.store-hero-compact h1 { margin-top: 5px; margin-bottom: 5px; }
.store-section { padding-top: 24px; }
.store-filter { margin-bottom: 18px; }
.store-section-heading { margin-bottom: 10px; }

@media (max-width: 760px) {
  .store-hero { padding: 16px 0 14px; }
  .store-hero-compact { padding: 14px 0 12px; }
  .store-section { padding: 18px 0 28px; }
  .store-filter { margin-bottom: 14px; }
  .store-section-heading { margin-bottom: 9px; }

  .store-product-grid { gap: 14px; }
  .store-product-image {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
    padding: 8px;
  }
  .store-product-body { padding: 12px; }
  .store-product-meta { margin-bottom: 6px; }
  .store-product-card h3 { margin-bottom: 6px; }
  .store-product-card p { margin-bottom: 10px; }
}

@media (max-width: 420px) {
  .store-product-image {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}

/* ==========================================================================
   AFYAVINE Phase 11.1.6D — catalogue image frame root-cause closure
   Natural product aspect ratios; no forced landscape frame.
   ========================================================================== */

.store-product-image {
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  overflow: visible !important;
  padding: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.store-product-image img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 330px !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: 0 auto !important;
}

.store-product-card {
  overflow: hidden;
}

@media (max-width: 760px) {
  .store-product-image {
    padding: 10px !important;
  }

  .store-product-image img {
    max-height: 280px !important;
  }

  .store-product-grid,
  .store-grid {
    row-gap: 16px !important;
  }
}

@media (max-width: 420px) {
  .store-product-image img {
    max-height: 250px !important;
  }
}

