/* Hero Banner Sizing: Full width, perfectly fitted, zero side letterboxing */
.hero,
.catalog-page .hero {
    margin-top: 14px;
    margin-bottom: 20px;
    padding: 0 max(16px, 2.5vw) !important;
}

.hero-track,
.catalog-page .hero-track {
    width: 100% !important;
    position: relative !important;
    overflow: hidden !important;
    border-radius: 20px !important;
    background: #f1f5f9 !important;
    aspect-ratio: 2.5 / 1 !important;
    min-height: 180px !important;
    max-height: 480px !important;
    height: auto !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

.hero-slide,
.catalog-page .hero-slide {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    pointer-events: none;
    z-index: 1;
}

.hero-slide.is-active,
.catalog-page .hero-slide.is-active {
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 2;
}

.hero-slide picture,
.catalog-page .hero-slide picture {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.hero-slide img,
.catalog-page .hero-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    border-radius: 20px !important;
}

/* Category artwork is often supplied as a complete icon/card image. */
.category-image {
    padding: 0 !important;
    background: #f4faf8 !important;
}

.category-image img,
.mobile-categories a > span img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
}

.category-image img {
    transform: scale(1.35);
}

.mobile-categories a > span {
    padding: 0;
    background: #f4faf8 !important;
}

@media (max-width: 700px) {
    .hero {
        padding-inline: 10px !important;
    }

    .hero-track {
        aspect-ratio: auto !important;
        min-height: 0 !important;
        border-radius: 15px !important;
    }

    .category-image img {
        transform: scale(1.3);
    }

    .mobile-categories a > span img {
        transform: scale(1.2);
    }
}

/* Keep catalog navigation compact so shoppers reach products sooner. */
.catalog-page .section,
.catalog-page .section.compact {
    margin-top: 24px;
    margin-bottom: 24px;
}
.catalog-page .section-title { margin-bottom: 12px; }
.catalog-page .section-title .eyebrow { display: none; }
.catalog-page .section-title h2 { font-size: 24px; }
.catalog-page .category-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 0 8px;
}
.catalog-page .category-card {
    flex: 0 0 112px;
    padding: 10px 8px;
}
.catalog-page .category-image {
    width: 52px;
    height: 52px;
    margin-bottom: 6px;
}
.catalog-page .category-card small { display: none; }
.catalog-page .chip { padding: 7px 12px; }
@media (max-width: 700px) {
    .catalog-page .section,
    .catalog-page .section.compact {
        margin-top: 18px;
        margin-bottom: 18px;
    }
    .catalog-page .section-title h2 { font-size: 20px; }
    .catalog-page .category-card { flex-basis: 94px; }
}

/* Bound banner height regardless of the uploaded image dimensions. */
.catalog-page .hero { margin-top: 14px; margin-bottom: 20px; }
.catalog-page .hero-track { aspect-ratio: 2.5 / 1 !important; height: auto !important; max-height: 480px !important; }
.catalog-page .hero-slide,
.catalog-page .hero-slide.is-active { position: absolute; inset: 0; width: 100%; height: 100%; }
.catalog-page .hero-slide picture { width: 100%; height: 100%; }
.catalog-page .hero-slide img { width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: center !important; }
.catalog-page .hero-copy strong { font-size: clamp(18px, 2.4vw, 32px); }
.catalog-page .hero-copy small { font-size: 13px; }
.product-salt { font-size: 12px; color: #526862; margin: 6px 0; overflow-wrap: anywhere; }
.order-progress { padding: 16px 24px; border-top: 1px solid #dfe8e4; }
.order-progress ol { padding-left: 22px; margin: 10px 0; }
.order-progress li { padding: 3px 0; color: #647571; }
.order-progress li.reached { color: #087466; font-weight: 700; }
.order-cancelled { color: #a52a2a; padding: 16px 24px; background: #fff4f4; }
.order-admin-form { display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 24px; }
.order-admin-form input, .order-admin-form select { padding: 10px; max-width: 100%; border: 1px solid #cbd9d5; border-radius: 6px; }
@media (max-width: 768px) {
    .hero, .catalog-page .hero { padding-inline: 12px !important; margin-top: 10px !important; margin-bottom: 14px !important; }
    .hero-track, .catalog-page .hero-track { aspect-ratio: 2 / 1 !important; min-height: 140px !important; height: auto !important; border-radius: 14px !important; }
    .hero-slide img, .catalog-page .hero-slide img { border-radius: 14px !important; }
}
@media (max-width: 480px) {
    .hero-track, .catalog-page .hero-track { aspect-ratio: 1.85 / 1 !important; min-height: 130px !important; border-radius: 12px !important; }
    .hero-slide img, .catalog-page .hero-slide img { border-radius: 12px !important; }
}

.order-progress h3 { margin: 0 0 8px; font-size: 16px; }
.order-progress li[aria-current="step"] {
    padding: 8px 10px;
    border-radius: 6px;
    background: #eaf7f3;
    color: #075d53;
    font-weight: 800;
}
.order-progress li[aria-current="step"]::after { content: " (Current status)"; font-size: 12px; }

/* Product Card Pricing & Discount Styling */
.product-price-row {
    margin-top: 6px;
    margin-bottom: 2px;
}

.product-price {
    color: #D92D36 !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    line-height: 1.15;
    letter-spacing: -0.3px;
    font-family: 'Manrope', 'DM Sans', sans-serif;
}

.product-savings-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 4px;
    margin-bottom: 12px;
    min-height: 22px;
    flex-wrap: wrap;
}

.product-old-price {
    color: #899B93 !important;
    text-decoration: line-through !important;
    font-size: 12px !important;
    font-weight: 500;
    margin-right: 6px !important;
}

.product-saving {
    color: #D92D36 !important;
    background: #FDECEC !important;
    padding: 4px 7px !important;
    border-radius: 5px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
}

.product-tax-note {
    font-size: 11px;
    color: #64748b;
}

.price-line strong {
    color: #0f172a;
    font-size: 20px;
    font-weight: 800;
}
.price-line del {
    color: #899B93;
    font-size: 12px;
}
.savings {
    color: #047857;
    font-weight: 600;
}
