/* ================================================================
   KASI MATTRESS
   ----------------------------------------------------------------
   File: /public_html/kasimattress.co.za/assets/css/pages/hd.css
   Purpose: HD Mattress page styles
   Version: 1.1.0
   ----------------------------------------------------------------
   Design:
   - Matches Budget Mattress hero exactly
   - Kasi Mattress premium styling
   - Mobile-first
   - No global class overrides
   - HD-specific classes only
   ================================================================ */


/* ================================================================
   HD PAGE VARIABLES
================================================================ */

.hd-page {
    --hd-navy: #0F4C81;
    --hd-navy-dark: #0A355A;
    --hd-navy-light: #EAF3FA;

    --hd-gold: #F4A300;
    --hd-gold-light: #FFF5DC;

    --hd-white: #FFFFFF;
    --hd-background: #F7F9FB;
    --hd-border: #E3E8ED;

    --hd-text: #333333;
    --hd-muted: #68737D;

    --hd-shadow:
        0 12px 35px rgba(15, 76, 129, 0.10);

    --hd-shadow-hover:
        0 18px 45px rgba(15, 76, 129, 0.16);

    color: var(--hd-text);
    background: var(--hd-white);
}


/* ================================================================
   CONTAINER
================================================================ */

.hd-container {
    width: min(
        calc(100% - 32px),
        1200px
    );

    margin-inline: auto;
}


/* ================================================================
   HERO
   ----------------------------------------------------------------
   Matched to Budget Mattress hero styling.

   Design:
   - Slim premium presentation
   - Content left
   - Mattress product right
   - Equal visual height
   - Strong navy / gold Kasi identity
   - Product remains the visual focus
================================================================ */

.hd-hero {
    position: relative;
    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #0A365C 0%,
            #0F4C81 58%,
            #145B91 100%
        );

    color: var(--hd-white);
}


/* ----------------------------------------------------------------
   Subtle background detail
---------------------------------------------------------------- */

.hd-hero::before {
    content: "";

    position: absolute;

    top: -170px;
    right: -170px;

    width: 390px;
    height: 390px;

    border:
        1px solid
        rgba(244, 163, 0, 0.28);

    border-radius: 50%;

    pointer-events: none;
}


.hd-hero::after {
    content: "";

    position: absolute;

    left: -170px;
    bottom: -210px;

    width: 360px;
    height: 360px;

    border:
        1px solid
        rgba(255, 255, 255, 0.09);

    border-radius: 50%;

    pointer-events: none;
}


/* ----------------------------------------------------------------
   Hero inner
---------------------------------------------------------------- */

.hd-hero__inner {
    position: relative;

    z-index: 1;

    display: grid;

    grid-template-columns:
        minmax(0, 0.95fr)
        minmax(380px, 1.05fr);

    align-items: stretch;

    gap: 46px;

    min-height: 350px;

    padding-top: 30px;
    padding-bottom: 30px;
}


/* ----------------------------------------------------------------
   Hero content
---------------------------------------------------------------- */

.hd-hero__content {
    display: flex;

    flex-direction: column;

    justify-content: center;

    max-width: 600px;

    padding: 12px 0;
}


/* ----------------------------------------------------------------
   Hero eyebrow
---------------------------------------------------------------- */

.hd-hero__eyebrow {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    width: fit-content;

    margin-bottom: 11px;

    color: var(--hd-gold);

    font-family: "Poppins", sans-serif;

    font-size: 0.72rem;

    font-weight: 700;

    letter-spacing: 0.16em;

    line-height: 1.3;

    text-transform: uppercase;
}


.hd-hero__eyebrow::before {
    content: "";

    display: block;

    width: 28px;
    height: 2px;

    background: var(--hd-gold);
}


/* ----------------------------------------------------------------
   Hero heading
---------------------------------------------------------------- */

.hd-hero h1 {
    margin: 0 0 13px;

    color: var(--hd-white);

    font-family: "Poppins", sans-serif;

    font-size:
        clamp(
            2rem,
            4.5vw,
            3.35rem
        );

    font-weight: 700;

    line-height: 1.08;

    letter-spacing: -0.025em;
}


/* ----------------------------------------------------------------
   Hero paragraph
---------------------------------------------------------------- */

.hd-hero__content > p {
    max-width: 540px;

    margin: 0;

    color:
        rgba(
            255,
            255,
            255,
            0.84
        );

    font-size: 0.98rem;

    line-height: 1.7;
}


/* ----------------------------------------------------------------
   Hero actions
---------------------------------------------------------------- */

.hd-hero__actions {
    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 10px;

    margin-top: 22px;
}


/* ----------------------------------------------------------------
   Hero visual
---------------------------------------------------------------- */

.hd-hero__visual {
    position: relative;

    display: flex;

    align-items: stretch;

    justify-content: center;

    min-width: 0;
}


/* ----------------------------------------------------------------
   Hero visual frame

   Matches Budget Mattress hero frame.
---------------------------------------------------------------- */

.hd-hero__visual-frame {
    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    min-height: 290px;

    overflow: hidden;

    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.13),
            rgba(255, 255, 255, 0.045)
        );

    border:
        1px solid
        rgba(255, 255, 255, 0.14);

    box-shadow:
        0 18px 45px
        rgba(0, 0, 0, 0.13);
}


/* ----------------------------------------------------------------
   Decorative gold edge
---------------------------------------------------------------- */

.hd-hero__visual-frame::before {
    content: "";

    position: absolute;

    top: 18px;
    right: 18px;

    width: 42px;
    height: 42px;

    border-top:
        2px solid
        var(--hd-gold);

    border-right:
        2px solid
        var(--hd-gold);

    opacity: 0.9;

    pointer-events: none;
}


/* ----------------------------------------------------------------
   Mattress image
---------------------------------------------------------------- */

.hd-hero__visual img {
    position: relative;

    z-index: 1;

    display: block;

    width: auto;

    max-width: 94%;

    height: 100%;

    max-height: 290px;

    object-fit: contain;

    filter:
        drop-shadow(
            0 18px 20px
            rgba(0, 0, 0, 0.18)
        );

    transition:
        transform 300ms ease;
}


.hd-hero__visual img:hover {
    transform: none;
}


/* ================================================================
   BUTTONS
================================================================ */

.hd-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding: 0 21px;

    border-radius: 9px;

    text-decoration: none;

    font-size: 0.92rem;

    font-weight: 700;

    line-height: 1;

    cursor: pointer;

    transition:
        transform 180ms ease,
        background 180ms ease,
        border-color 180ms ease,
        color 180ms ease;
}


.hd-btn:hover {
    transform: translateY(-2px);
}


.hd-btn-primary {
    background: var(--hd-gold);

    color: #1C1C1C;

    border:
        1px solid
        var(--hd-gold);
}


.hd-btn-primary:hover {
    background: #FFB31A;

    border-color: #FFB31A;

    color: #1C1C1C;
}


.hd-btn-secondary {
    border:
        1px solid
        rgba(255, 255, 255, 0.30);

    background: transparent;

    color: var(--hd-white);
}


.hd-btn-secondary:hover {
    background:
        rgba(255, 255, 255, 0.08);

    color: var(--hd-white);

    border-color:
        rgba(255, 255, 255, 0.45);
}


/* ================================================================
   INTRO
================================================================ */

.hd-intro {
    padding: 58px 0 34px;
}


.hd-section-heading {
    max-width: 760px;

    margin-inline: auto;

    text-align: center;
}


.hd-section-label {
    display: inline-block;

    margin-bottom: 9px;

    color: var(--hd-gold);

    font-size: 0.75rem;

    font-weight: 800;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


.hd-section-heading h2 {
    margin: 0;

    color: var(--hd-navy);

    font-size:
        clamp(
            1.7rem,
            3vw,
            2.35rem
        );

    line-height: 1.15;

    font-weight: 800;

    letter-spacing: -0.025em;
}


.hd-section-heading p {
    max-width: 650px;

    margin: 13px auto 0;

    color: var(--hd-muted);

    font-size: 0.98rem;

    line-height: 1.7;
}


/* ================================================================
   PRODUCT TYPE SELECTOR
================================================================ */

.hd-type-selector {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    max-width: 700px;

    margin: 32px auto 0;

    padding: 5px;

    gap: 5px;

    background: #EDF2F6;

    border:
        1px solid
        var(--hd-border);

    border-radius: 12px;
}


.hd-type-button {
    min-height: 68px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 3px;

    padding: 10px 14px;

    color: var(--hd-muted);

    background: transparent;

    border: 0;

    border-radius: 8px;

    cursor: pointer;

    transition:
        background-color 180ms ease,
        color 180ms ease,
        box-shadow 180ms ease;
}


.hd-type-button:hover {
    color: var(--hd-navy);
}


.hd-type-button.is-active {
    color: var(--hd-navy);

    background: var(--hd-white);

    box-shadow:
        0 4px 14px
        rgba(15, 76, 129, 0.10);
}


.hd-type-value {
    font-size: 0.95rem;

    font-weight: 800;
}


.hd-type-label {
    font-size: 0.72rem;

    font-weight: 600;

    opacity: 0.78;
}


/* ================================================================
   PRODUCTS SECTION
================================================================ */

.hd-products {
    padding: 20px 0 70px;

    background: var(--hd-background);
}


.hd-type-panel {
    display: none;
}


.hd-type-panel.is-active {
    display: block;
}


/* ================================================================
   PRODUCT TYPE HEADER
================================================================ */

.hd-product-type-heading {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(280px, 0.8fr);

    align-items: end;

    gap: 30px;

    margin-bottom: 28px;

    padding-bottom: 20px;

    border-bottom:
        1px solid
        var(--hd-border);
}


.hd-panel-kicker {
    display: block;

    margin-bottom: 7px;

    color: var(--hd-gold);

    font-size: 0.72rem;

    font-weight: 800;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


.hd-product-type-heading h2 {
    margin: 0;

    color: var(--hd-navy);

    font-size:
        clamp(
            1.55rem,
            3vw,
            2.15rem
        );

    line-height: 1.15;

    font-weight: 800;
}


.hd-product-type-heading p {
    margin: 0;

    color: var(--hd-muted);

    font-size: 0.94rem;

    line-height: 1.65;
}


/* ================================================================
   SIZE SELECTOR
================================================================ */

.hd-size-selector {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 10px;

    margin-bottom: 28px;
}


.hd-size-button {
    min-height: 72px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 4px;

    padding: 10px;

    color: var(--hd-muted);

    background: var(--hd-white);

    border:
        1px solid
        var(--hd-border);

    border-radius: 10px;

    cursor: pointer;

    box-shadow:
        0 3px 10px
        rgba(15, 76, 129, 0.04);

    transition:
        border-color 180ms ease,
        background-color 180ms ease,
        color 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}


.hd-size-button:hover {
    color: var(--hd-navy);

    border-color: #C7D9E8;

    transform: translateY(-1px);
}


.hd-size-button.is-active {
    color: var(--hd-white);

    background: var(--hd-navy);

    border-color: var(--hd-navy);

    box-shadow:
        0 7px 18px
        rgba(15, 76, 129, 0.18);
}


.hd-size-value {
    font-size: 0.92rem;

    font-weight: 800;
}


.hd-size-label {
    font-size: 0.7rem;

    font-weight: 600;

    opacity: 0.85;
}


/* ================================================================
   SIZE PANELS
================================================================ */

.hd-size-panel {
    display: none;
}


.hd-size-panel.is-active {
    display: block;
}


/* ================================================================
   SIZE PANEL HEADER
================================================================ */

.hd-panel-heading {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    margin-bottom: 20px;
}


.hd-panel-heading h3 {
    margin: 0;

    color: var(--hd-navy);

    font-size: 1.35rem;

    line-height: 1.2;

    font-weight: 800;
}


.hd-panel-heading p {
    max-width: 480px;

    margin: 0;

    color: var(--hd-muted);

    font-size: 0.88rem;

    line-height: 1.6;

    text-align: right;
}


/* ================================================================
   THICKNESS GRID
================================================================ */

.hd-thickness-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 20px;
}


/* ================================================================
   PRODUCT CARD
================================================================ */

.hd-product-card {
    overflow: hidden;

    background: var(--hd-white);

    border:
        1px solid
        var(--hd-border);

    border-radius: 12px;

    box-shadow:
        0 5px 18px
        rgba(15, 76, 129, 0.06);

    transition:
        transform 200ms ease,
        box-shadow 200ms ease,
        border-color 200ms ease;
}


.hd-product-card:hover {
    transform: translateY(-4px);

    border-color: #D2DEE8;

    box-shadow:
        var(--hd-shadow-hover);
}


/* ================================================================
   PRODUCT IMAGE BUTTON
================================================================ */

.hd-product-image-button {
    display: block;

    width: 100%;

    padding: 0;

    border: 0;

    background: transparent;

    cursor: pointer;

    text-align: left;
}


.hd-image-frame {
    position: relative;

    display: block;

    overflow: hidden;

    aspect-ratio: 3 / 2;

    background:
        linear-gradient(
            145deg,
            #F4F7F9,
            #E9EFF3
        );
}


.hd-image-frame img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    transition:
        transform 300ms ease;
}


.hd-product-card:hover .hd-image-frame img {
    transform: scale(1.035);
}


/* ================================================================
   IMAGE OVERLAY
================================================================ */

.hd-image-overlay {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    gap: 4px;

    color: var(--hd-white);

    background:
        rgba(15, 76, 129, 0.72);

    font-size: 0.78rem;

    font-weight: 700;

    opacity: 0;

    transition:
        opacity 200ms ease;
}


.hd-product-card:hover
.hd-image-overlay,

.hd-product-image-button:focus-visible
.hd-image-overlay {
    opacity: 1;
}


.hd-view-icon {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 34px;
    height: 34px;

    border:
        1px solid
        rgba(255, 255, 255, 0.75);

    border-radius: 50%;

    font-size: 1.35rem;

    font-weight: 400;

    line-height: 1;
}


/* ================================================================
   PRODUCT INFORMATION
================================================================ */

.hd-product-info {
    padding: 17px 18px 18px;
}


.hd-product-size {
    display: flex;

    align-items: center;

    gap: 7px;

    margin-bottom: 8px;
}


.hd-product-width,
.hd-product-thickness {
    color: var(--hd-navy);

    font-size: 0.78rem;

    font-weight: 800;
}


.hd-product-separator {
    color: var(--hd-gold);

    font-size: 0.8rem;

    font-weight: 800;
}


.hd-product-info h4 {
    margin: 0;

    color: var(--hd-text);

    font-size: 1rem;

    line-height: 1.3;

    font-weight: 700;
}


/* ================================================================
   VIEW DETAILS
================================================================ */

.hd-view-details {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-top: 13px;

    padding: 0;

    color: var(--hd-navy);

    background: transparent;

    border: 0;

    font-size: 0.82rem;

    font-weight: 800;

    cursor: pointer;

    transition:
        color 180ms ease,
        gap 180ms ease;
}


.hd-view-details span {
    color: var(--hd-gold);

    font-size: 1rem;

    transition:
        transform 180ms ease;
}


.hd-view-details:hover {
    color: var(--hd-navy-dark);
}


.hd-view-details:hover span {
    transform: translateX(3px);
}


/* ================================================================
   VALUE SECTION
================================================================ */

.hd-value-section {
    padding: 55px 0;

    background: var(--hd-white);

    border-top:
        1px solid
        var(--hd-border);
}


.hd-value-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 22px;
}


.hd-value-item {
    display: flex;

    align-items: flex-start;

    gap: 14px;

    padding: 20px;

    background: var(--hd-background);

    border:
        1px solid
        var(--hd-border);

    border-radius: 10px;
}


.hd-value-icon {
    flex: 0 0 auto;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 34px;
    height: 34px;

    color: var(--hd-white);

    background: var(--hd-gold);

    border-radius: 50%;

    font-size: 0.9rem;

    font-weight: 900;
}


.hd-value-item h3 {
    margin: 1px 0 6px;

    color: var(--hd-navy);

    font-size: 0.98rem;

    line-height: 1.3;

    font-weight: 800;
}


.hd-value-item p {
    margin: 0;

    color: var(--hd-muted);

    font-size: 0.82rem;

    line-height: 1.6;
}


/* ================================================================
   CTA
================================================================ */

.hd-cta {
    padding: 0 0 70px;

    background: var(--hd-white);
}


.hd-cta-card {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 35px;

    padding: 32px;

    background:
        linear-gradient(
            135deg,
            var(--hd-navy),
            var(--hd-navy-dark)
        );

    border-radius: 14px;

    box-shadow:
        0 15px 40px
        rgba(15, 76, 129, 0.18);
}


.hd-cta-content {
    max-width: 680px;
}


.hd-cta-content .hd-section-label {
    color: var(--hd-gold);
}


.hd-cta-content h2 {
    margin: 0;

    color: var(--hd-white);

    font-size:
        clamp(
            1.45rem,
            3vw,
            2rem
        );

    line-height: 1.2;

    font-weight: 800;
}


.hd-cta-content p {
    max-width: 650px;

    margin: 10px 0 0;

    color:
        rgba(
            255,
            255,
            255,
            0.78
        );

    font-size: 0.9rem;

    line-height: 1.65;
}


.hd-cta-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    flex: 0 0 auto;
}


.hd-cta .hd-btn-secondary {
    color: var(--hd-white);

    background: transparent;

    border-color:
        rgba(255, 255, 255, 0.35);
}


.hd-cta .hd-btn-secondary:hover {
    color: var(--hd-white);

    background:
        rgba(255, 255, 255, 0.10);

    border-color:
        rgba(255, 255, 255, 0.55);
}


/* ================================================================
   LIGHTBOX
================================================================ */

.hd-lightbox {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 20px;
}


.hd-lightbox.is-open {
    display: flex;
}


.hd-lightbox-backdrop {
    position: absolute;

    inset: 0;

    background:
        rgba(7, 24, 39, 0.88);

    backdrop-filter: blur(5px);
}


.hd-lightbox-dialog {
    position: relative;

    z-index: 2;

    width: min(100%, 1050px);

    max-height:
        calc(100vh - 40px);

    overflow: hidden;

    background: var(--hd-white);

    border-radius: 14px;

    box-shadow:
        0 30px 80px
        rgba(0, 0, 0, 0.35);
}


.hd-lightbox-content {
    display: grid;

    grid-template-columns:
        minmax(0, 1.45fr)
        minmax(240px, 0.55fr);

    min-height: 500px;
}


.hd-lightbox-image-wrap {
    display: flex;

    align-items: center;

    justify-content: center;

    min-width: 0;

    padding: 30px;

    background: #F2F5F7;
}


.hd-lightbox-image-wrap img {
    display: block;

    max-width: 100%;

    max-height: 70vh;

    object-fit: contain;
}


.hd-lightbox-details {
    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 35px;
}


.hd-lightbox-width {
    margin-bottom: 8px;

    color: var(--hd-gold);

    font-size: 0.75rem;

    font-weight: 800;

    letter-spacing: 0.1em;

    text-transform: uppercase;
}


.hd-lightbox-details h2 {
    margin: 0;

    color: var(--hd-navy);

    font-size: 1.5rem;

    line-height: 1.25;

    font-weight: 800;
}


.hd-lightbox-thickness {
    margin-top: 12px;

    color: var(--hd-muted);

    font-size: 0.9rem;

    font-weight: 700;
}


.hd-lightbox-counter {
    margin-top: 25px;

    padding-top: 15px;

    border-top:
        1px solid
        var(--hd-border);

    color: var(--hd-muted);

    font-size: 0.78rem;

    font-weight: 700;
}


/* ================================================================
   LIGHTBOX CLOSE
================================================================ */

.hd-lightbox-close {
    position: absolute;

    top: 14px;
    right: 14px;

    z-index: 5;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 40px;
    height: 40px;

    padding: 0;

    color: var(--hd-white);

    background:
        rgba(15, 76, 129, 0.92);

    border: 0;

    border-radius: 50%;

    cursor: pointer;

    box-shadow:
        0 5px 15px
        rgba(0, 0, 0, 0.15);
}


.hd-lightbox-close span {
    font-size: 1.55rem;

    line-height: 1;
}


/* ================================================================
   LIGHTBOX NAVIGATION
================================================================ */

.hd-lightbox-nav {
    position: absolute;

    top: 50%;

    z-index: 5;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 44px;
    height: 44px;

    padding: 0;

    color: var(--hd-white);

    background:
        rgba(15, 76, 129, 0.92);

    border: 0;

    border-radius: 50%;

    cursor: pointer;

    transform:
        translateY(-50%);

    transition:
        background-color 180ms ease,
        transform 180ms ease;
}


.hd-lightbox-nav:hover {
    background: var(--hd-navy-dark);

    transform:
        translateY(-50%)
        scale(1.04);
}


.hd-lightbox-nav span {
    font-size: 1.9rem;

    line-height: 1;
}


.hd-lightbox-prev {
    left: 14px;
}


.hd-lightbox-next {
    right: 14px;
}


/* ================================================================
   BODY LOCK WHEN LIGHTBOX IS OPEN
================================================================ */

body.hd-lightbox-open {
    overflow: hidden;
}


/* ================================================================
   FOCUS STATES
================================================================ */

.hd-type-button:focus-visible,
.hd-size-button:focus-visible,
.hd-btn:focus-visible,
.hd-product-image-button:focus-visible,
.hd-view-details:focus-visible,
.hd-lightbox-close:focus-visible,
.hd-lightbox-nav:focus-visible {
    outline:
        3px solid
        rgba(244, 163, 0, 0.55);

    outline-offset: 3px;
}


/* ================================================================
   TABLET
================================================================ */

@media (max-width: 1000px) {

    .hd-hero__inner {
        grid-template-columns:
            minmax(0, 0.95fr)
            minmax(320px, 1.05fr);

        gap: 32px;
    }

    .hd-hero__visual-frame {
        min-height: 270px;
    }

    .hd-hero__visual img {
        max-height: 270px;
    }

}


@media (max-width: 900px) {

    .hd-thickness-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .hd-product-type-heading {
        grid-template-columns: 1fr;

        gap: 10px;
    }

    .hd-panel-heading {
        align-items: flex-start;

        flex-direction: column;

        gap: 8px;
    }

    .hd-panel-heading p {
        max-width: 650px;

        text-align: left;
    }

    .hd-value-grid {
        grid-template-columns: 1fr;
    }

    .hd-cta-card {
        align-items: flex-start;

        flex-direction: column;
    }

    .hd-lightbox-prev {
        left: 10px;
    }

    .hd-lightbox-next {
        right: 10px;
    }

}


/* ================================================================
   MOBILE
================================================================ */

@media (max-width: 767px) {

    .hd-hero__inner {
        grid-template-columns: 1fr;

        min-height: 0;

        gap: 22px;

        padding-top: 28px;

        padding-bottom: 28px;
    }

    .hd-hero__content {
        align-items: center;

        max-width: 620px;

        padding: 4px 0 0;

        text-align: center;
    }

    .hd-hero__eyebrow {
        justify-content: center;
    }

    .hd-hero__content > p {
        max-width: 560px;
    }

    .hd-hero__actions {
        justify-content: center;
    }

    .hd-hero__visual {
        min-height: 230px;
    }

    .hd-hero__visual-frame {
        min-height: 230px;

        border-radius: 12px;
    }

    .hd-hero__visual img {
        max-width: 92%;

        max-height: 230px;
    }

}


@media (max-width: 640px) {

    .hd-container {
        width:
            min(
                calc(100% - 24px),
                1200px
            );
    }

    /* ------------------------------------------------------------
       HERO
    ------------------------------------------------------------ */

    .hd-hero__inner {
        gap: 18px;

        padding-top: 24px;

        padding-bottom: 24px;
    }

    .hd-hero h1 {
        font-size:
            clamp(
                1.85rem,
                9vw,
                2.65rem
            );
    }

    .hd-hero__content > p {
        font-size: 0.92rem;

        line-height: 1.65;
    }

    .hd-hero__actions {
        width: 100%;

        flex-direction: column;

        margin-top: 18px;
    }

    .hd-hero__actions .hd-btn {
        width: 100%;
    }

    .hd-hero__visual {
        min-height: 205px;
    }

    .hd-hero__visual-frame {
        min-height: 205px;
    }

    .hd-hero__visual img {
        max-height: 205px;
    }

    /* ------------------------------------------------------------
       INTRO
    ------------------------------------------------------------ */

    .hd-intro {
        padding-top: 48px;
    }

    .hd-section-heading h2 {
        font-size: 1.65rem;
    }

    .hd-section-heading p {
        font-size: 0.88rem;
    }

    /* ------------------------------------------------------------
       TYPE SELECTOR
    ------------------------------------------------------------ */

    .hd-type-selector {
        grid-template-columns: 1fr;

        margin-top: 24px;
    }

    .hd-type-button {
        min-height: 58px;
    }

    /* ------------------------------------------------------------
       PRODUCTS
    ------------------------------------------------------------ */

    .hd-products {
        padding: 18px 0 50px;
    }

    .hd-product-type-heading {
        margin-bottom: 22px;

        padding-bottom: 17px;
    }

    .hd-product-type-heading h2 {
        font-size: 1.45rem;
    }

    .hd-product-type-heading p {
        font-size: 0.84rem;
    }

    /* ------------------------------------------------------------
       SIZE SELECTOR
    ------------------------------------------------------------ */

    .hd-size-selector {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap: 8px;

        margin-bottom: 22px;
    }

    .hd-size-button {
        min-height: 62px;
    }

    /* ------------------------------------------------------------
       THICKNESS GRID
    ------------------------------------------------------------ */

    .hd-thickness-grid {
        grid-template-columns: 1fr;

        gap: 16px;
    }

    .hd-product-card:hover {
        transform: none;
    }

    .hd-image-overlay {
        display: none;
    }

    .hd-product-info {
        padding: 15px 16px 17px;
    }

    /* ------------------------------------------------------------
       VALUE SECTION
    ------------------------------------------------------------ */

    .hd-value-section {
        padding: 42px 0;
    }

    .hd-value-grid {
        gap: 12px;
    }

    .hd-value-item {
        padding: 16px;
    }

    /* ------------------------------------------------------------
       CTA
    ------------------------------------------------------------ */

    .hd-cta {
        padding-bottom: 50px;
    }

    .hd-cta-card {
        padding: 25px 20px;

        border-radius: 11px;
    }

    .hd-cta-content h2 {
        font-size: 1.4rem;
    }

    .hd-cta-content p {
        font-size: 0.84rem;
    }

    .hd-cta-actions {
        width: 100%;

        flex-direction: column;
    }

    .hd-cta-actions .hd-btn {
        width: 100%;
    }

    /* ------------------------------------------------------------
       LIGHTBOX
    ------------------------------------------------------------ */

    .hd-lightbox {
        padding: 10px;
    }

    .hd-lightbox-dialog {
        max-height:
            calc(100vh - 20px);

        border-radius: 10px;
    }

    .hd-lightbox-content {
        display: flex;

        flex-direction: column;

        min-height: 0;

        max-height:
            calc(100vh - 20px);

        overflow-y: auto;
    }

    .hd-lightbox-image-wrap {
        min-height: 260px;

        padding: 20px;
    }

    .hd-lightbox-image-wrap img {
        max-height: 45vh;
    }

    .hd-lightbox-details {
        padding: 20px 20px 25px;
    }

    .hd-lightbox-details h2 {
        font-size: 1.2rem;
    }

    .hd-lightbox-counter {
        margin-top: 15px;
    }

    .hd-lightbox-close {
        top: 8px;

        right: 8px;

        width: 36px;

        height: 36px;
    }

    .hd-lightbox-nav {
        top: 35%;

        width: 38px;

        height: 38px;
    }

    .hd-lightbox-prev {
        left: 8px;
    }

    .hd-lightbox-next {
        right: 8px;
    }

}


/* ================================================================
   SMALL MOBILE
================================================================ */

@media (max-width: 400px) {

    .hd-container {
        width: calc(100% - 20px);
    }

    .hd-hero__inner {
        padding-top: 24px;
    }

    .hd-hero h1 {
        font-size: 1.75rem;
    }

    .hd-hero__content > p {
        font-size: 0.84rem;
    }

    .hd-btn {
        width: 100%;
    }

    .hd-hero__actions {
        flex-direction: column;
    }

    .hd-size-selector {
        grid-template-columns: 1fr 1fr;
    }

    .hd-size-button {
        min-height: 58px;

        padding-inline: 6px;
    }

    .hd-size-value {
        font-size: 0.82rem;
    }

    .hd-size-label {
        font-size: 0.64rem;
    }

}