/* Shared site scale. Loaded after the homepage and catalogue presentation. */
:root {
    --vt-content-width: 1200px;
    --vt-gutter: clamp(20px, 4vw, 48px);
    --vt-page-inset: max(var(--vt-gutter), calc((100% - var(--vt-content-width)) / 2));
    /* Preserve the approved pre-width-change vertical spacing (0.4.0). */
    --section-space: 88px;
    --vt-heading: clamp(2rem, 3vw, 2.5rem);
}

html { scroll-padding-top: 104px; }
.section, .site-footer {
    max-width: none;
    padding-inline: var(--vt-page-inset);
}
/* One outer spacing rule for every content section, at every breakpoint. */
.section { padding-block: var(--section-space); margin-block: 0; }
.site-footer { padding-block: 0; }
.section > *, .hero > *, .catalogue-bundle > * { min-width: 0; }
.site-header {
    padding: 14px var(--vt-page-inset);
    min-height: 80px;
    flex-wrap: nowrap;
}
.site-header .brand img, .footer-top .brand img { width: 180px; }
.intro-line { padding: 16px var(--vt-page-inset); }

/* Hero composition stays the same, with a bounded height and text scale. */
.hero {
    max-width: calc(var(--vt-content-width) + var(--vt-gutter) + var(--vt-gutter));
    grid-template-columns: 45% 55%;
    min-height: 500px;
}
.hero-art { min-height: 500px; }
.hero-copy { padding: var(--section-space) 32px var(--section-space) var(--vt-gutter); }
.hero h1, html[lang="sr-Cyrl"] .hero h1 {
    font-size: clamp(3rem, 5.2vw, 4.5rem);
    line-height: 1.02;
}
.hero h1 > span { font-size: inherit; }
.hero h1 { --vt-hero-phrase-fallback: .348em; }
html[lang="sr-Cyrl"] .hero h1 { --vt-hero-phrase-fallback: .534em; }
html[lang="sr-Latn"] .hero h1 { --vt-hero-phrase-fallback: .470em; }
.hero h1 em {
    /* Fit the whole phrase to the rendered width of Nature / Природа / Priroda. */
    font-size: var(--vt-hero-phrase-size, var(--vt-hero-phrase-fallback));
    letter-spacing: calc(-.055em + var(--vt-hero-phrase-tracking, 0px));
    line-height: 1.2;
    margin-top: 16px;
    white-space: nowrap;
}
.hero .eyebrow { margin-bottom: 20px; }
.hero-copy > p:not(.eyebrow) { font-size: 1rem; margin-top: 20px; }
.hero-actions { margin-top: 22px; }
.button, .hero-actions .button,
.catalogue-page a.button, .catalogue-detail-page a.button {
    min-height: 44px;
    padding: 11px 18px;
    font-size: .875rem;
}

/* Catalogue headings retain their compact scale. Homepage section headings use
   their original responsive sizes from homepage.css and style.css. */
.catalogue-bridge h2,
.catalogue-bundle h2, .catalogue-information h2, .catalogue-included h2,
.catalogue-related > h2 {
    font-size: var(--vt-heading);
    line-height: 1.14;
}
.section-heading { margin-bottom: 30px; }
.section-heading .eyebrow, .editorial .eyebrow, .films .eyebrow,
.quality .eyebrow, .gifting .eyebrow, .home-faq .eyebrow,
.catalogue-intro .eyebrow, .catalogue-bundle-info > .eyebrow,
.catalogue-bridge .eyebrow { margin-bottom: 18px; }
.editorial-body, .films-copy > p:not(.eyebrow), .quality-approved,
.gifting-copy > p:not(.eyebrow) { font-size: 1rem; line-height: 1.75; }
.editorial-body, .films-copy > p:not(.eyebrow) { margin-top: 20px; }
.editorial-photo, .gifting-brand {
    min-height: 0;
    height: auto;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 4 / 5;
    align-self: center;
    justify-self: center;
}
.film-grid { width: 100%; max-width: 460px; margin-inline: auto; gap: 16px; }
.film:nth-child(2) { margin-top: 32px; }
.films-note { margin-top: 24px; }
.ingredient-notes { margin-top: 24px; padding-top: 20px; }
.faq-list summary { padding-block: 18px; }
/* Center the quality heading against the complete text/sample column. */
.quality { align-items: center; }
.quality-content { padding: 0; }

/* The contact owns its section padding. Footer rows own their compact padding;
   no outer footer padding or row margins may add another layer of empty space. */
.footer-contact {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: clamp(32px, 4vw, 64px);
    align-items: center;
    padding: var(--section-space) 0;
    margin: 0;
}
.footer-contact > * { min-width: 0; }
.footer-contact .eyebrow { margin-bottom: 12px; }
.footer-contact-copy > p:last-child { margin-top: 12px; }
.footer-contact address {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: start;
    align-content: center;
    gap: 24px;
    width: 100%;
    font-size: 1rem;
}
.footer-direct {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
}
.footer-contact .footer-email {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    max-width: 100%;
    font-size: 1.25rem;
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--gold);
}
.footer-contact .footer-instagram {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    justify-self: end;
    width: 44px;
    height: 44px;
    color: var(--gold);
    transition: color .2s;
}
.footer-instagram svg { display: block; width: 26px; height: 26px; }
.footer-contact .footer-instagram:hover { color: var(--text-light); text-decoration: none; }
.footer-phones {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}
.footer-phones a { display: inline-flex; align-items: center; min-height: 32px; white-space: nowrap; }
.footer-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding-block: 16px;
    margin: 0;
}
.footer-top > * { min-width: 0; }
.footer-top > p { margin: 0; justify-self: center; text-align: center; }
.site-footer nav { width: auto; justify-self: end; justify-content: flex-end; }
.site-footer .vt-menu { flex-direction: row; flex-wrap: wrap; align-items: center; }
.footer-bottom { margin: 0; padding-block: 16px; align-items: center; }
.page-content h1 { font-size: clamp(2rem, 3.5vw, 2.75rem); margin-bottom: 28px; }
dialog h2 { font-size: 1.75rem; line-height: 1.2; }

/* Cards retain their existing columns and approved image compositions. */
.product-title, .catalogue-card .product-title { min-height: 0; margin: 18px 0 14px; }
.product-title h3, .catalogue-card .product-title h3 {
    font-size: clamp(1.375rem, 1.9vw, 1.75rem);
    line-height: 1.18;
}
.product-description, .catalogue-card .product-description {
    font-size: 1rem;
    line-height: 1.65;
    min-height: 0;
    margin-bottom: 18px;
}
.product-price, .catalogue-card .product-price { font-size: 1.125rem; }
.product-button { min-height: 44px; font-size: .875rem; }
.product-grid.catalogue-grid { gap: 24px; }
.product-card > a.product-photo,
.product-card > button.product-photo {
    display: block;
    border: 0;
    padding: 0;
    border-radius: 0;
    cursor: pointer;
}
.product-card > button.product-photo { width: calc(100% + 48px); }

/* A single introduction beside two live, directly linked bundle options. */
.catalogue-bundle-bridge {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: clamp(40px, 6vw, 88px);
    align-items: center;
}
.bundle-bridge-copy > p { margin-top: 20px; }
.bundle-bridge-copy > .button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-top: 28px;
}
.bundle-bridge-offers { border-block: 1px solid #19161755; }
.bundle-bridge-offer {
    display: block;
    position: relative;
    padding: 26px 64px 26px 0;
}
.bundle-bridge-offer + .bundle-bridge-offer { border-top: 1px solid #19161755; }
.bundle-bridge-offer h3 {
    font-size: clamp(1.375rem, 2vw, 1.625rem);
    line-height: 1.2;
    letter-spacing: -.035em;
}
.bundle-bridge-offer p.bundle-bridge-contents {
    margin-top: 10px;
    max-width: none;
    font-size: .875rem;
    line-height: 1.65;
}
.bundle-bridge-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin-top: 16px;
}
.bundle-bridge-price strong { font-size: 1.125rem; line-height: 1.4; }
.bundle-bridge-price > span { font-size: .8125rem; }
.bundle-bridge-price bdi { white-space: nowrap; }
.bundle-bridge-arrow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    background: var(--ink);
    color: var(--gold);
    font-size: 1.25rem;
    transition: background .2s, color .2s;
}
.bundle-bridge-offer:hover h3 { text-decoration: underline; text-underline-offset: 5px; }
.bundle-bridge-offer:hover .bundle-bridge-arrow { background: var(--text-light); color: var(--ink); }
.catalogue-bundle-bridge-empty { grid-template-columns: minmax(0, 1fr); }
.catalogue-bundle-bridge-empty .bundle-bridge-copy { max-width: 540px; }

/* These supplied photographs use their own proportions: no bars or cropping. */
.natural-detail-page .catalogue-main-image,
.propolis-detail-page .catalogue-main-image { aspect-ratio: auto; }
.natural-detail-page .catalogue-main-image > img,
.propolis-detail-page .catalogue-main-image > img { width: 100%; height: auto; }
.catalogue-card.natural .product-photo img,
.catalogue-card.propolis .product-photo img { object-fit: cover; }

@media (max-width: 700px) {
    .catalogue-bridge.catalogue-bundle-bridge { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .bundle-bridge-copy > p { margin-top: 18px; }
    .bundle-bridge-copy > .button { margin-top: 24px; }
    .bundle-bridge-offer { padding-block: 24px; padding-right: 56px; }
}
@media (max-width: 360px) {
    .product-card > button.product-photo { width: calc(100% + 40px); }
}

/* Catalogue headers and product detail images must not grow with wide screens. */
/* Hero content starts directly after the shared top padding, with no label row. */
.catalogue-intro-content { min-height: 0; padding-top: 0; gap: 6%; }
.catalogue-intro h1 { font-size: clamp(2rem, 3.5vw, 2.75rem); line-height: 1.12; }
.catalogue-preview-note { margin-top: 18px; padding-block: 5px; }
.catalogue-detail-top { grid-column: 1 / -1; width: 100%; max-width: none; padding: 0; margin: 0; }
.catalogue-detail {
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    gap: 28px clamp(32px, 5vw, 64px);
}
.catalogue-detail-copy { padding-top: 0; }
.catalogue-detail-top:empty { display: none; }
.catalogue-detail-top > .catalogue-preview-note { margin-top: 0; }
.catalogue-detail h1 { font-size: clamp(2rem, 3vw, 2.5rem); line-height: 1.15; }
.catalogue-gallery, .catalogue-detail-media > .catalogue-photo-pending {
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
}
.catalogue-description { margin-block: 18px; line-height: 1.7; }
.catalogue-facts { margin-top: 24px; }
.catalogue-facts > div { padding-block: 14px; }
.catalogue-facts dd { font-size: 1rem; }
.catalogue-facts > div:last-child dd { font-size: 1.5rem; }
.catalogue-delivery { margin-top: 20px; }
.catalogue-bundle { gap: 6%; }
.catalogue-bundle-price { margin-top: 24px; }
.catalogue-bundle-price strong { font-size: 1.5rem; }
.catalogue-label { font-size: .75rem; line-height: 1.6; margin-top: 24px; }
.catalogue-information h2 { margin-bottom: 20px; }
.catalogue-related > h2 { margin-bottom: 28px; }
.catalogue-included a > span:first-child { font-size: 1rem; }

@media (min-width: 1001px) {
    .site-header nav { order: initial; width: auto; justify-content: initial; }
    /* Header + opening + yellow strip fill the first visible desktop screen.
       Minimum height lets long translations / zoomed text grow without clipping. */
    .home-opening {
        --vt-header-height: 80px;
        --vt-admin-height: 0px;
        display: flex;
        flex-direction: column;
        min-height: calc(100vh - var(--vt-header-height) - var(--vt-admin-height));
        min-height: calc(100dvh - var(--vt-header-height) - var(--vt-admin-height));
    }
    .admin-bar .home-opening { --vt-admin-height: 32px; }
    .home-opening .hero {
        flex: 1 0 auto;
        width: 100%;
        max-width: none;
        margin: 0;
        min-height: 0;
        /* Preserve the old copy's left edge and dividing line; extend only art. */
        grid-template-columns:
            var(--vt-page-inset)
            calc(min(100%, calc(var(--vt-content-width) + var(--vt-gutter) + var(--vt-gutter))) * .45 - var(--vt-gutter))
            minmax(0, 1fr);
    }
    .home-opening .hero-copy {
        grid-column: 2;
        padding: clamp(24px, 5vh, 56px) 32px clamp(24px, 5vh, 56px) 0;
    }
    .home-opening .hero-art { grid-column: 3; min-height: 0; }
    .home-opening .hero-product {
        inset: 0;
        width: 100%;
        height: 100%;
        transform: none;
        object-fit: contain;
        object-position: center;
    }
    .home-opening .hero h1, html[lang="sr-Cyrl"] .home-opening .hero h1 {
        font-size: clamp(3.5rem, min(5.8vw, 11vh), 5.25rem);
    }
    .home-opening .intro-line { flex-shrink: 0; }
}

@media (max-width: 1200px) {
    .footer-top { grid-template-columns: auto minmax(0, 1fr); }
    .footer-top > p { justify-self: end; text-align: right; }
    .site-footer nav { grid-column: 1 / -1; justify-self: stretch; justify-content: flex-start; }
}

@media (max-width: 1000px) {
    .site-header nav { width: auto; order: initial; padding-inline: var(--vt-gutter); }
}

@media (max-width: 960px) {
    :root { --section-space: 68px; --vt-heading: 2.125rem; }
    .hero, .hero-art { min-height: 440px; }
    .hero-copy { padding-right: 24px; padding-block: var(--section-space); }
    .hero h1, html[lang="sr-Cyrl"] .hero h1 { font-size: clamp(2.75rem, 5.6vw, 3.5rem); }
    .catalogue-detail { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
    .catalogue-detail h1 { font-size: 2rem; }
    .product-title h3, .catalogue-card .product-title h3 { font-size: 1.625rem; }
}

@media (max-width: 900px) {
    .footer-contact { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

@media (max-width: 700px) {
    :root { --section-space: 54px; --vt-gutter: 20px; --vt-heading: clamp(1.75rem, 7.5vw, 2rem); }
    html { scroll-padding-top: 88px; }
    .site-header { padding-block: 10px; min-height: 68px; gap: 12px; }
    .site-header .brand { max-width: none; }
    .site-header .brand img { width: clamp(120px, 32vw, 150px); }
    .footer-top .brand img { width: 160px; }
    .hero { grid-template-columns: 1fr; min-height: 0; }
    .hero-copy { padding: var(--section-space) var(--vt-gutter); }
    .hero h1, html[lang="sr-Cyrl"] .hero h1 { font-size: clamp(2.75rem, 19vw, 5rem); }
    .hero h1 em { margin-top: 14px; }
    .hero-copy > p:not(.eyebrow) { margin-top: 18px; }
    .hero-art { min-height: 0; aspect-ratio: 1.35; }
    .intro-line { padding-block: 14px; }
    /* Use one gap when the homepage split sections stack. */
    .editorial, .films, .quality, .gifting, .home-faq { row-gap: 32px; }
    .section-heading { margin-bottom: 24px; }
    .section-heading > p { margin-top: 18px; }
    .editorial-photo, .gifting-brand { max-width: 340px; }
    .film-grid { max-width: 240px; gap: 24px; }
    .film:nth-child(2) { margin-top: 0; }
    .product-title h3, .catalogue-card .product-title h3 { font-size: 1.5rem; }
    .product-photo { aspect-ratio: auto; height: clamp(240px, 76vw, 320px); margin-bottom: 18px; }
    .product-photo img { object-fit: contain; }
    .product-grid.catalogue-grid { gap: 24px; }
    .catalogue-intro h1, .page-content h1 { font-size: 2rem; }
    .catalogue-intro-content > p { margin-top: 18px; }
    .catalogue-preview-note { margin-top: 14px; }
    .catalogue-detail { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .catalogue-detail-copy { padding-top: 0; }
    .catalogue-detail h1 { font-size: clamp(1.75rem, 7.5vw, 2rem); }
    .catalogue-gallery, .catalogue-detail-media > .catalogue-photo-pending { max-width: 300px; }
    .catalogue-facts { margin-top: 20px; }
    .catalogue-bundle { gap: 24px; }
    .catalogue-information, .catalogue-included, .catalogue-bridge { gap: 24px; }
    .catalogue-information-facts > div:first-child { padding-top: 20px; }
    .catalogue-related > h2 { margin-bottom: 24px; }
    .footer-contact { gap: 16px; }
    .footer-contact address { gap: 16px; }
    .footer-phones a { min-height: 44px; }
    .footer-top { grid-template-columns: minmax(0, 1fr); gap: 16px; justify-items: start; }
    .footer-top > p { justify-self: start; text-align: left; }
    .site-footer nav { justify-self: start; }
}

@media (max-width: 360px) {
    .site-header { gap: 8px; }
    .header-actions { gap: 6px; }
}
