﻿/* ==========================================================================
   home.css  -  index.aspx only
   Hero, value bar, brand grid, editorial split, testimonials
   ========================================================================== */

/* ============ Hero ============ */
.hero {
    background: linear-gradient(180deg, var(--red-soft) 0%, #ffffff 100%);
    padding: 80px 0 60px;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--red-primary);
    margin-bottom: 18px;
}

.hero-title {
    font-family: var(--serif);
    font-size: clamp(38px, 5.5vw, 68px);
    line-height: 1.05;
    font-weight: 700;
    margin: 0 0 24px;
    color: var(--ink);
}

    .hero-title em {
        font-style: italic;
        color: var(--red-primary);
        font-weight: 500;
    }

.hero-subtitle {
    font-size: 17px;
    color: var(--ink-3);
    margin: 0 0 36px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/5;
    box-shadow: var(--shadow-lg);
}

    .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.site-header .logo img.site-logo-img,
.site-footer .logo img.site-logo-img,
img.site-logo-img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-height: 52px !important;
    max-width: 220px !important;
    object-fit: contain !important;
}

.site-footer .logo img.site-logo-img {
    max-height: 64px !important;
    max-width: 240px !important;
}

img[data-lb-hidden="1"] {
    visibility: hidden;
}

/* ============ Brand Grid ============ */
.brand-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: repeat(2, 260px);
    gap: 16px;
}

.brand-card {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    display: block;
}

    .brand-card.featured {
        grid-row: span 2;
    }

    .brand-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s ease;
    }

    .brand-card:hover img {
        transform: scale(1.06);
    }

.brand-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: #fff;
}

.brand-tag {
    align-self: flex-start;
    background: var(--red-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 4px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    margin-bottom: auto;
}

.brand-overlay h3 {
    font-family: var(--serif);
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 6px;
}

.brand-overlay .brand-link {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    opacity: 0.9;
}

/* ============ Editorial ============ */
.editorial {
    padding: 80px 0;
    background: var(--bg-2);
}

.editorial-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.editorial-image {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/5;
}

    .editorial-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.editorial-content .section-title {
    text-align: left;
}

.editorial-content p {
    font-size: 16px;
    color: var(--ink-3);
    margin: 20px 0;
    line-height: 1.75;
}

.editorial-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 32px;
}

    .editorial-list li {
        padding: 6px 0;
        color: var(--ink-2);
        font-size: 15px;
        letter-spacing: 0.3px;
    }

/* ============ Testimonials ============ */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.testimonial {
    background: #fff;
    padding: 32px;
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
}

    .testimonial p {
        font-family: var(--serif);
        font-size: 17px;
        line-height: 1.55;
        color: var(--ink-2);
        margin: 16px 0 20px;
        font-style: italic;
    }

.testimonial-author strong {
    display: block;
    font-size: 14px;
    color: var(--ink);
    margin-bottom: 2px;
}

.testimonial-author span {
    font-size: 12px;
    color: var(--muted);
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
    .hero-inner, .editorial-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .value-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .brand-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 220px);
    }

    .brand-card.featured {
        grid-row: span 1;
        grid-column: span 2;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 48px 0;
    }

    .value-grid {
        grid-template-columns: 1fr;
    }

    .brand-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 240px);
    }

    .brand-card.featured {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
}
/* ============ Home product sections (Clearance / New Arrivals / ...) ============ */
.hs-section {
    margin: 36px 0 48px;
}

    .hs-section[hidden] {
        display: none;
    }

.hs-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
    margin-bottom: 40px;
}

.hs-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #000;
}

.hs-arrows {
    display: flex;
    gap: 22px;
}

    .hs-arrows button {
        width: 30px;
        height: 30px;
        border: 0;
        border-radius: 2px;
        background: #000;
        color: #fff;
        font-size: 12px;
        cursor: pointer;
    }

        .hs-arrows button:disabled {
            opacity: .35;
            cursor: default;
        }

.hs-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    align-items: flex-start;
}

    .hs-track::-webkit-scrollbar {
        display: none;
    }

.hs-card {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 0 0 calc((100% - 48px) / 5);
    scroll-snap-align: start;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    padding: 6px;
    text-align: center;
    color: #000;
    transition: box-shadow .2s, border-color .2s;
}

    .hs-card:hover {
        border-color: #ccc;
        box-shadow: 0 4px 14px rgba(0,0,0,.08);
    }

.hs-mediawrap {
    position: relative;
}

.hs-media {
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

    .hs-media img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.hs-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px 6px 12px;
    color: inherit;
    text-decoration: none;
    flex: none;
}
.hs-name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden; /* very long names stop at 2 lines */
}

.hs-price {
    margin-top: 8px;
    padding-top: 0;
    font-size: 15px;
    font-weight: 700;
}
.hs-cart {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    gap: 6px;
    padding: 8px 6px;
    background: #fff;
    box-shadow: 0 -4px 8px -4px rgba(0, 0, 0, .12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.hs-card:hover .hs-cart,
.hs-card:focus-within .hs-cart {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.hs-qty {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    height: 34px;
    background: #fff;
    border: 1px solid #ddd;
}

.hs-qty-btn {
    width: 28px;
    height: 100%;
    border: 0;
    background: transparent;
    font-size: 15px;
    cursor: pointer;
    color: #000;
}

.hs-qty-input {
    width: 30px;
    height: 100%;
    border: 0;
    text-align: center;
    font-size: 13px;
    background: transparent;
    padding: 0;
    outline: none;
}

.hs-add {
    flex: 1;
    height: 34px;
    border: 0;
    background: #000;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

    .hs-add:hover {
        background: #222;
    }

    .hs-add:disabled {
        opacity: .6;
        cursor: default;
    }

/* touch screens have no hover: show the bar under the image instead */
@media (hover: none) {
    .hs-cart {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 6px 2px 0;
    }
}

.hs-badge {
    position: absolute;
    top: 24px;
    left: 14px;
    z-index: 1;
    background: #b30000;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
}

.hs-brand {
    color: var(--red-primary);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.hs-name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    min-height: 35px;
}

.hs-price {
    margin-top: auto;
    padding-top: 22px;
    font-size: 15px;
    font-weight: 700;
}

.hs-now {
    color: #b30000;
    margin-right: 5px;
}

.hs-was {
    color: #000;
    text-decoration: line-through;
}

@media (max-width: 1100px) {
    .hs-card {
        flex-basis: calc((100% - 36px) / 4);
    }
}

@media (max-width: 800px) {
    .hs-card {
        flex-basis: calc((100% - 24px) / 3);
    }
}

@media (max-width: 560px) {
    .hs-card {
        flex-basis: calc((100% - 12px) / 2);
    }

    .hs-media {
        height: 170px;
    }

}


/* Cleaned Mobile Brand Grid */
@media (max-width: 768px) {
    .brand-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
        grid-template-columns: none; /* Reset desktop grid */
        grid-template-rows: none; /* Remove fixed row heights */
    }

    .brand-card {
        width: 100%;
        height: 200px; /* Fixed predictable height for uniform cards */
        aspect-ratio: auto;
    }

        .brand-card.featured {
            height: 240px; /* Slightly taller for the featured item */
            grid-column: auto;
            grid-row: auto;
        }

        .brand-card img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
        }

    .brand-overlay {
        padding: 16px;
        background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.75) 100%);
    }

        .brand-overlay h3 {
            font-size: 20px;
            margin: 0;
        }
}
@media (max-width: 420px) {
    .brand-grid {
        grid-template-columns: 1fr;
    }

    .brand-card.featured {
        grid-column: auto;
        aspect-ratio: 4 / 3;
    }

    .brand-card {
        aspect-ratio: 4 / 3;
    }
}

