/* =========================================================
   HUSNARA — HOME PAGE
   Single Home-page stylesheet
   Consolidated from:
   redesign.css (Home-only rules)
   story-section.css
   reels.css
   home-reel-story.css
   reels-refine.css
   reels-final.css
   reels-spacing.css
   ========================================================= */

/* ---------- Home sections / base ---------- */

.section {
    padding: 72px 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 30px;
}

.section-head h2 {
    font: 400 clamp(30px, 4vw, 52px)/1.05 Georgia, serif;
    color: var(--wine);
    margin: 7px 0 0;
}

.section-head a {
    font-size: 10px;
    text-transform: uppercase;
    border-bottom: 1px solid;
    padding-bottom: 5px;
}


/* ---------- Hero ---------- */

.home-hero {
    --home-hero-aspect: 2033 / 773;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: var(--home-hero-aspect);
    position: relative;
    background: #ddd;
    overflow: hidden;
}

.home-hero .hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 1s ease,
        visibility 1s ease;
}

.home-hero .hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.home-hero img,
.home-hero .hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero controls are intentionally hidden in the current design. */
.home-hero .slider-arrow,
.home-hero .slider-dots {
    display: none !important;
}


/* ---------- Product grids ---------- */

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 34px 12px;
}

.product-card {
    min-width: 0;
}

.product-image {
    aspect-ratio: 3 / 4;
    background: #eee;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.product-card:hover img {
    transform: scale(1.025);
}

.product-info {
    text-align: center;
    padding: 12px 5px;
}

.product-info h3 {
    font: 400 13px Georgia, serif;
    margin: 0 0 6px;
}

.product-card .price {
    font-size: 10px;
    font-weight: 700;
}

.tag {
    position: absolute;
    right: 8px;
    top: 8px;
    background: #d91f28;
    color: #fff;
    padding: 4px 7px;
    font-size: 8px;
}


/* ---------- Category mosaic ---------- */

.mosaic {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    grid-template-rows: 280px 360px;
    gap: 9px;
}

.tile {
    position: relative;
    overflow: hidden;
}

.tile:first-child {
    grid-row: 1 / 3;
}

.tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.tile:hover img {
    transform: scale(1.025);
}

.tile:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, .45),
        transparent 58%
    );
}

.tile-copy {
    position: absolute;
    z-index: 2;
    left: 25px;
    bottom: 23px;
    color: #fff;
}

.tile-copy h3 {
    font: 400 27px Georgia, serif;
    margin: 3px 0 0;
}


/* ---------- Story / House film ---------- */

.story-band.story-editorial {
    height: 760px !important;
    min-height: 0;
    display: grid;
    grid-template-columns: 48% 52% !important;
    background: #f1ebe5;
    position: relative;
    overflow: hidden;
}

.story-editorial:before {
    content: 'H';
    position: absolute;
    left: -.045em;
    bottom: -.27em;
    font: 400 510px/1 Georgia, serif;
    color: rgba(84, 21, 29, .035);
    pointer-events: none;
}

.story-editorial .story-copy {
    position: relative;
    z-index: 2;
    padding: 70px clamp(45px, 6vw, 105px);
    padding-left: clamp(48px, 6vw, 105px) !important;
    padding-right: clamp(42px, 5vw, 88px) !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.story-editorial .story-copy:before {
    content: '';
    width: 54px;
    height: 2px;
    background: #a98245;
    margin-bottom: 28px;
}

.story-editorial .story-copy h2 {
    font-size: clamp(42px, 4.6vw, 70px);
    line-height: .93;
    margin: 13px 0 24px;
    max-width: 620px;
}

.story-editorial .story-copy > p {
    max-width: 540px !important;
    line-height: 1.75;
    margin: 0 0 25px;
}

.story-editorial .story-note {
    display: flex;
    align-items: center;
    gap: 25px;
    margin: 7px 0 30px;
    padding: 18px 0;
    border-top: 1px solid #d9cec7;
    border-bottom: 1px solid #d9cec7;
    color: #705f58;
}

.story-editorial .story-note span {
    font-size: 9px;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.story-editorial .story-note i {
    width: 1px;
    height: 22px;
    background: #c9bab1;
}

.story-editorial .button {
    background: #54151d;
}

.story-band.story-editorial .story-image {
    height: 760px !important;
    min-height: 0;
    position: relative;
    overflow: hidden;
    padding: 24px !important;
    isolation: isolate;
    background: #2a1714 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.story-band.story-editorial .story-film-bg {
    position: absolute !important;
    z-index: -1 !important;
    inset: -30px !important;
    width: calc(100% + 60px) !important;
    height: calc(100% + 60px) !important;
    max-width: none !important;
    object-fit: cover !important;
    filter: blur(24px) brightness(.54) saturate(.82) !important;
    transform: scale(1.08) !important;
    border: 0 !important;
    opacity: .88;
}

.story-band.story-editorial .story-film-main {
    position: relative !important;
    z-index: 1 !important;
    width: auto !important;
    height: 712px !important;
    max-height: calc(100% - 8px) !important;
    max-width: 94% !important;
    aspect-ratio: 9 / 16 !important;
    object-fit: contain !important;
    border: 1px solid rgba(255, 255, 255, .58) !important;
    box-shadow: 0 22px 65px rgba(12, 5, 4, .34) !important;
    background: #160a09 !important;
}

.story-band.story-editorial .story-index {
    display: none !important;
}

.story-band.story-editorial .story-image:after {
    z-index: 3 !important;
}


/* ---------- Reels ---------- */

.hsn-reels {
    position: relative;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 92px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #180b09 !important;
    color: #fff;
    overflow: hidden;
}

.hsn-reels-rail {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0;
    width: 100% !important;
    background: #180b09;
}

.hsn-reel {
    position: relative;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    isolation: isolate;
    background: #180b09 !important;
}

.hsn-reel:after {
    content: '';
    position: absolute;
    z-index: 2;
    inset: 0;
    border-right: 1px solid rgba(255, 255, 255, .14) !important;
    background: linear-gradient(
        180deg,
        rgba(18, 7, 6, .06),
        transparent 45%,
        rgba(18, 7, 6, .15)
    ) !important;
    pointer-events: none;
}

.hsn-reel:last-child:after {
    border-right: 0 !important;
}

.hsn-reel video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition:
        transform .8s cubic-bezier(.22, 1, .36, 1),
        filter .5s ease;
    filter: saturate(.96) contrast(1.02);
}

.hsn-reel:hover video {
    transform: scale(1.018);
    filter: saturate(1.04) contrast(1.02);
}

.hsn-reel-label {
    display: none !important;
}


/* ---------- Newsletter ---------- */

main > .newsletter {
    display: block;
    margin: 0;
    padding: 72px 24px;
    text-align: center;
    border-top: 1px solid var(--line);
}

main > .newsletter h2 {
    margin: 8px 0 10px;
}

main > .newsletter p {
    margin: 0;
    color: #655b56;
}

main > .newsletter .newsletter-form {
    width: min(650px, 100%);
    margin: 28px auto 0;
    display: flex;
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid currentColor;
}

main > .newsletter .newsletter-form input {
    max-width: none;
    padding: 14px 4px;
}

main > .newsletter .newsletter-form button {
    padding: 14px 0;
    white-space: nowrap;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mosaic {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 430px 300px;
    }

    .story-band.story-editorial {
        height: auto !important;
        grid-template-columns: 1fr !important;
    }

    .story-band.story-editorial .story-image {
        height: 720px !important;
        padding: 22px !important;
        order: -1;
    }

    .story-band.story-editorial .story-film-main {
        height: 680px !important;
    }

    .story-band.story-editorial .story-copy {
        padding: 75px 7vw;
    }

    main > .newsletter {
        padding: 56px 20px;
    }
}


@media (max-width: 700px) {

    .hsn-reels {
        margin-bottom: 58px !important;
        padding: 0 !important;
    }

    .hsn-reels-rail {
        display: block !important;
        overflow: hidden;
    }

    .hsn-reel {
        display: none !important;
    }

    .hsn-reel:first-child {
        display: block !important;
        width: 100% !important;
        aspect-ratio: 9 / 16;
        max-height: none;
    }

    .hsn-reel:first-child:after {
        border: 0 !important;
        background: linear-gradient(
            180deg,
            rgba(18, 7, 6, .04),
            transparent 55%,
            rgba(18, 7, 6, .14)
        ) !important;
    }

    .hsn-reel:first-child video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}


@media (max-width: 600px) {

    main > .newsletter .newsletter-form {
        gap: 12px;
    }
}


@media (max-width: 560px) {

    .section {
        padding: 55px 0;
    }

    .section-head {
        display: block;
    }

    .section-head a {
        display: inline-block;
        margin-top: 15px;
    }

    .product-grid {
        gap: 28px 7px;
    }

    .product-info h3 {
        font-size: 12px;
    }

    .mosaic {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        grid-template-rows: none !important;
        gap: 7px;
    }

    .mosaic .tile {
        height: 300px;
        margin-bottom: 0;
    }

    .mosaic .tile:first-child {
        grid-row: auto !important;
        grid-column: auto !important;
    }

    .story-band.story-editorial .story-image {
        height: 132vw !important;
        max-height: 650px !important;
        padding: 14px !important;
    }

    .story-band.story-editorial .story-film-main {
        height: calc(100% - 4px) !important;
        max-width: 96% !important;
    }

    .story-band.story-editorial .story-copy {
        padding: 65px 7vw !important;
    }

    .story-editorial .story-copy h2 {
        font-size: 45px;
    }

    .story-editorial .story-note {
        gap: 14px;
    }

    .story-editorial:before {
        font-size: 330px;
    }

    main > .newsletter .newsletter-form {
        gap: 12px;
    }
}


@media (max-width: 480px) {

    main > .newsletter {
        padding-left: 18px;
        padding-right: 18px;
    }

    main > .newsletter .newsletter-form {
        gap: 9px;
    }

    main > .newsletter .newsletter-form input {
        min-width: 0;
    }
}
/* HOME — RESTORE CENTERED CONTENT CONTAINER */
main .wrap {
    width: min(90vw, 1280px) !important;
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 0;
    margin-bottom: 0;
    box-sizing: border-box;
}

/* =========================================================
   HOME — RESTORE ORIGINAL BUTTON + FORM STYLING
   ========================================================= */

main .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border: 1px solid #54151d;
    background: #54151d;
    color: #fff !important;
    font: 500 10px/1 Arial, sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}

main .button:hover {
    background: #3f1016;
    color: #fff !important;
}

main > .newsletter .newsletter-form input {
    flex: 1;
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #2e2522;
    font: 400 14px/1.4 Arial, sans-serif;
}

main > .newsletter .newsletter-form input::placeholder {
    color: #655b56;
    opacity: 1;
}

main > .newsletter .newsletter-form button {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: #2e2522;
    font: 400 11px/1 Arial, sans-serif;
    cursor: pointer;
}

main > .newsletter .newsletter-form button:hover {
    color: #54151d;
}

/* =========================================================
   HOME HERO — MOBILE RESPONSIVE
   Keep the original banner composition, no forced 520px crop
   ========================================================= */

@media (max-width: 900px) {
    .home-hero {
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 2.15 / 1 !important;
        overflow: hidden !important;
    }

    .home-hero .hero-slide {
        inset: 0 !important;
    }

    .home-hero .hero-slide img,
    .home-hero img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
    }
}

@media (max-width: 560px) {
    .home-hero {
        aspect-ratio: 2.15 / 1 !important;
        min-height: 0 !important;
    }
}

/* Each slide supplies its natural image ratio, so important banner text is never cropped. */
@media (max-width: 900px) {
    .home-hero {
        aspect-ratio: var(--home-hero-aspect) !important;
    }
}

@media (max-width: 700px) {
    .mosaic .tile-copy {
        left: 8px !important;
        right: 5px !important;
        bottom: 14px !important;
    }

    .mosaic .tile-copy h3 {
        font-size: clamp(16px, 4.5vw, 22px) !important;
        line-height: 1 !important;
        letter-spacing: -0.025em !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }
}

@media (max-width: 480px) {
    .mosaic .tile-copy {
        left: 7px !important;
        right: 4px !important;
        bottom: 11px !important;
    }

    .mosaic .tile-copy h3 {
        font-size: 18px !important;
    }
}
/* Product card wishlist position */
.product-card .product-wish {
    top: 52px !important;
    right: 12px !important;
    z-index: 5 !important;
}

@media (max-width: 700px) {
    .product-card .product-wish {
        top: 52px !important;
        right: 10px !important;
    }
}
/* =========================================================
   HOME REELS — 4 VIDEOS ON MOBILE + DESKTOP
   ========================================================= */

.hsn-reels-rail {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    width: 100% !important;
}

.hsn-reel {
    display: block !important;
    width: 100% !important;
    position: relative;
    overflow: hidden;
}

.hsn-reel video {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Mobile — still 4 videos */
@media (max-width: 700px) {
    .hsn-reels-rail {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        width: 100% !important;
    }

    .hsn-reel {
        display: block !important;
        width: 100% !important;
        aspect-ratio: 9 / 16 !important;
    }

    .hsn-reel:first-child {
        display: block !important;
        width: 100% !important;
    }

    .hsn-reel video {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}
