/* AFYAVINE PHASE 4A — COMPACT VISUAL POLISH
   Layout-only overrides. No business logic changes. */

:root {
    --compact-section-y: 64px;
}

/* Header */
.header-inner {
    min-height: 70px;
}

.brand-logo {
    width: 220px;
}

/* Public homepage */
.hero {
    min-height: 540px;
}

.hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 52px;
    padding: 58px 0;
}

.hero h1 {
    margin-bottom: 18px;
    font-size: clamp(2.8rem, 5.5vw, 5.1rem);
    line-height: 0.98;
}

.hero-lead {
    max-width: 680px;
    margin-bottom: 26px;
    font-size: 1.02rem;
}

.hero-mark {
    min-height: 330px;
    padding: 28px;
}

.hero-mark img {
    width: min(100%, 300px);
}

.section {
    padding: var(--compact-section-y) 0;
}

.section h2 {
    margin-bottom: 30px;
    font-size: clamp(2rem, 3.5vw, 3.2rem);
}

.feature-card {
    min-height: 220px;
    padding: 24px;
}

.feature-card h3 {
    margin-top: 30px;
    font-size: 1.4rem;
}

/* Store / category hero */
.store-hero {
    padding: 54px 0 44px;
}

.store-hero-compact {
    padding: 42px 0 36px;
}

.store-hero h1 {
    max-width: 820px;
    margin-bottom: 14px;
    font-size: clamp(2.7rem, 5.2vw, 4.8rem);
    line-height: 0.98;
}

.store-hero p {
    max-width: 700px;
    font-size: 1rem;
}

/* Shop listing */
.store-section,
.store-product-page {
    padding: 52px 0 70px;
}

.store-filter {
    margin-bottom: 30px;
}

.store-section-heading {
    margin-bottom: 22px;
}

.store-section-heading h2,
.store-related h2,
.store-documents h2 {
    font-size: clamp(1.9rem, 3.2vw, 2.9rem);
}

.store-product-grid {
    gap: 16px;
}

.store-product-image {
    height: 235px;
    padding: 16px;
}

.store-product-body {
    padding: 18px;
}

.store-product-card h3 {
    font-size: 1.3rem;
}

.store-product-card p {
    min-height: 42px;
    margin-bottom: 14px;
}

/* Product detail */
.store-breadcrumb {
    margin-bottom: 18px;
}

.store-product-layout {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: 38px;
    margin-bottom: 38px;
}

.store-main-image {
    min-height: 390px;
    padding: 24px;
}

.store-main-image img {
    max-height: 390px;
}

.store-product-info {
    padding-top: 6px;
}

.store-product-info h1 {
    margin-bottom: 6px;
    font-size: clamp(2.5rem, 4.5vw, 4rem);
    line-height: 0.98;
}

.store-lead {
    margin: 16px 0;
    font-size: 1rem;
}

.store-purchase-panel {
    margin: 20px 0 14px;
}

.store-purchase-panel > div {
    padding: 15px;
}

.store-copy-block {
    margin-top: 22px;
}

.store-information-grid {
    margin-bottom: 38px;
}

.store-information-grid article {
    padding: 18px;
}

.store-documents,
.store-related {
    margin-top: 40px;
}

/* Management headings: keep enterprise feel without wasting viewport */
.dashboard-hero,
.catalog-shell,
.inventory-shell {
    padding-top: 42px;
}

.dashboard-heading {
    margin-bottom: 26px;
}

.dashboard-heading h1,
.catalog-topbar h1 {
    font-size: clamp(2.2rem, 4.2vw, 3.7rem);
}

.kpi-card {
    min-height: 145px;
    padding: 20px;
}

.module-card {
    padding: 23px;
}

/* Mobile */
@media (max-width: 920px) {
    .hero-grid {
        gap: 28px;
        padding: 44px 0;
    }

    .hero-mark {
        min-height: 280px;
    }

    .store-product-layout {
        gap: 26px;
    }
}

@media (max-width: 620px) {
    .brand-logo {
        width: 175px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .store-hero h1 {
        font-size: 2.8rem;
    }

    .store-product-info h1 {
        font-size: 2.6rem;
    }

    .store-main-image {
        min-height: 310px;
    }
}
