/* =========================================================
   PRODUCTS SECTION
========================================================= */

.products-section{

    position:relative;

    background:#fff;

    overflow:hidden;

}


/* =========================================================
   PRODUCTS HEADER
========================================================= */

.products-heading{

    position:relative;

    min-height:390px;

    display:flex;

    align-items:center;

    justify-content:center;

    padding:95px 30px 75px;

    background:#111b2b;

    overflow:hidden;

}


/* =========================================================
   WATERMARK
========================================================= */

.products-watermark{

    position:absolute;

    left:50%;

    top:-18px;

    transform:translateX(-50%);

    color:rgba(255,255,255,.025);

    font-family:'Manrope',sans-serif;

    font-size:clamp(150px,18vw,280px);

    font-weight:800;

    line-height:1;

    letter-spacing:-10px;

    white-space:nowrap;

    user-select:none;

    pointer-events:none;

}


/* =========================================================
   INTRO CONTENT
========================================================= */

.products-heading-inner{

    position:relative;

    z-index:2;

    width:min(900px,100%);

    text-align:center;

}


/* =========================================================
   SECTION EYEBROW
========================================================= */

.section-eyebrow{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:16px;

    margin-bottom:22px;

    color:var(--primary);

    font-family:'Manrope',sans-serif;

    font-size:13px;

    font-weight:800;

    letter-spacing:4px;

}

.section-eyebrow > span:not(:nth-child(2)){

    width:55px;

    height:1px;

    background:rgba(244,180,0,.65);

}


/* =========================================================
   PRODUCTS HEADING
========================================================= */

.products-heading h2{

    margin:0;

    color:#fff;

    font-family:'Manrope',sans-serif;

    font-size:clamp(45px,5vw,72px);

    line-height:1.05;

    letter-spacing:-2.5px;

    font-weight:800;

}

.products-heading h2 span{

    color:var(--primary);

}


/* =========================================================
   PRODUCTS INTRO TEXT
========================================================= */

.products-heading-inner p{

    max-width:760px;

    margin:24px auto 0;

    color:rgba(255,255,255,.72);

    font-size:17px;

    line-height:1.8;

}


/* =========================================================
   QUALITY SIGNATURE
========================================================= */

.products-signature{

    position:absolute;

    right:55px;

    top:55px;

    z-index:2;

    display:flex;

    flex-direction:column;

    align-items:flex-start;

    color:rgba(255,255,255,.72);

    font-family:cursive;

    font-size:24px;

    line-height:1.05;

    transform:rotate(-7deg);

}

.products-signature::after{

    content:"";

    width:75px;

    height:2px;

    margin-top:12px;

    background:var(--primary);

    transform:rotate(-8deg);

}


/* =========================================================
   PRODUCTS CONTAINER
========================================================= */

.products-container{

    width:min(1280px,92%);

    margin:0 auto;

    padding:65px 0 85px;

}


/* =========================================================
   PRODUCTS GRID
========================================================= */

.products-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:22px;

}


/* =========================================================
   PRODUCT CARD
========================================================= */

.product-card{

    position:relative;

    overflow:hidden;

    background:#fff;

    border:1px solid rgba(11,18,32,.08);

    border-radius:16px;

    box-shadow:
        0 8px 25px rgba(11,18,32,.055);

    transition:
        transform .35s ease,
        box-shadow .35s ease;

}

.product-card:hover{

    transform:translateY(-7px);

    box-shadow:
        0 18px 38px rgba(11,18,32,.12);

}


/* =========================================================
   PRODUCT IMAGE
========================================================= */

.product-image{

    position:relative;

    height:245px;

    overflow:hidden;

    background:#f4f5f6;

}

.product-image img{

    width:100%;

    height:100%;

    object-fit:cover;

    transition:
        transform .6s cubic-bezier(.22,1,.36,1);

}

.product-card:hover .product-image img{

    transform:scale(1.045);

}


/* =========================================================
   PRODUCT ICON
========================================================= */

.product-icon{

    position:absolute;

    left:22px;

    bottom:-22px;

    width:54px;

    height:54px;

    display:flex;

    align-items:center;

    justify-content:center;

    border:2px solid var(--primary);

    border-radius:50%;

    background:#101a2a;

    color:var(--primary);

    box-shadow:
        0 7px 18px rgba(0,0,0,.16);

    z-index:2;

}

.product-icon i{

    font-size:23px;

}


/* =========================================================
   PRODUCT CONTENT
========================================================= */

.product-content{

    position:relative;

    padding:42px 22px 24px;

}

.product-number{

    position:absolute;

    top:15px;

    right:20px;

    color:rgba(11,18,32,.12);

    font-family:'Manrope',sans-serif;

    font-size:13px;

    font-weight:800;

    letter-spacing:1px;

}

.product-content h3{

    margin:0 0 10px;

    color:#111827;

    font-family:'Manrope',sans-serif;

    font-size:21px;

    line-height:1.25;

    font-weight:800;

}

.product-content p{

    min-height:78px;

    margin:0 0 20px;

    color:#6b7280;

    font-size:14.5px;

    line-height:1.65;

}


/* =========================================================
   PRODUCT LINK
========================================================= */

.product-link{

    display:inline-flex;

    align-items:center;

    gap:9px;

    color:#111827;

    font-family:'Manrope',sans-serif;

    font-size:14px;

    font-weight:800;

}

.product-link > span{

    width:34px;

    height:34px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:50%;

    background:var(--primary);

    color:#111;

    transition:
        transform .3s ease,
        background .3s ease;

}

.product-link i{

    font-size:15px;

}

.product-link:hover > span{

    transform:translateX(4px);

    background:#e3a600;

}

/* =========================================================
   PRODUCT LINK - TABLET & MOBILE CENTERING
========================================================= */

@media (max-width: 991px){

    .product-link{

        width:100%;

        justify-content:center;

        text-align:center;

    }

}

/* =========================================================
   BULK ORDER CTA
========================================================= */

.products-cta{

    display:grid;

    grid-template-columns:auto 1fr auto;

    align-items:center;

    gap:28px;

    margin-top:38px;

    padding:26px 30px;

    border:1px solid rgba(255,255,255,.08);

    border-radius:16px;

    background:#111b2b;

    box-shadow:
        0 15px 35px rgba(11,18,32,.10);

}

.products-cta-icon{

    width:68px;

    height:68px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:50%;

    background:rgba(244,180,0,.10);

    color:var(--primary);

}

.products-cta-icon i{

    font-size:32px;

}

.products-cta-content h3{

    margin-bottom:4px;

    color:#fff;

    font-family:'Manrope',sans-serif;

    font-size:23px;

    line-height:1.3;

}

.products-cta-content h3 span{

    color:var(--primary);

}

.products-cta-content p{

    color:rgba(255,255,255,.68);

    font-size:14px;

    line-height:1.6;

}

.products-cta-button{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:11px;

    min-width:180px;

    min-height:52px;

    padding:0 24px;

    border-radius:10px;

    background:var(--primary);

    color:#111;

    font-family:'Manrope',sans-serif;

    font-size:14px;

    font-weight:800;

    transition:
        transform .3s ease,
        background .3s ease;

}

.products-cta-button i{

    transition:transform .3s ease;

}

.products-cta-button:hover{

    transform:translateY(-2px);

    background:#e5a900;

}

.products-cta-button:hover i{

    transform:translateX(4px);

}


/* =========================================================
   PRODUCT REVEAL
========================================================= */

.reveal-product{

    opacity:0;

    transform:translateY(35px);

}


/* =========================================================
   TABLET
========================================================= */

@media(max-width:1100px){

    .products-grid{

        grid-template-columns:repeat(2,1fr);

        gap:20px;

    }

    .products-signature{

        right:30px;

        font-size:20px;

    }

}


/* =========================================================
   TABLET
========================================================= */

@media(max-width:991px){

    .products-heading{

        min-height:360px;

        padding:
            85px 25px 65px;

    }

    .products-heading h2{

        font-size:55px;

    }

    .products-heading-inner p{

        font-size:16px;

    }

    .products-signature{

        top:35px;

        right:24px;

        font-size:18px;

    }

    .products-container{

        width:92%;

        padding:55px 0 70px;

    }

    .product-image{

        height:230px;

    }

    .products-cta{

        grid-template-columns:auto 1fr;

    }

    .products-cta-button{

        grid-column:2;

        justify-self:start;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media(max-width:767px){

    .products-heading{

        min-height:355px;

        padding:
            78px 20px 50px;

    }

    .products-watermark{

        top:30px;

        font-size:105px;

        letter-spacing:-5px;

    }

    .section-eyebrow{

        gap:10px;

        margin-bottom:18px;

        font-size:10px;

        letter-spacing:2.5px;

    }

    .section-eyebrow > span:not(:nth-child(2)){

        width:30px;

    }

    .products-heading h2{

        font-size:42px;

        line-height:1.05;

        letter-spacing:-1.5px;

    }

    .products-heading-inner p{

        margin-top:20px;

        font-size:14.5px;

        line-height:1.7;

    }

    .products-signature{

        display:none;

    }


    .products-container{

        width:calc(100% - 32px);

        padding:42px 0 55px;

    }

    .products-grid{

        grid-template-columns:1fr;

        gap:18px;

    }

    .product-image{

        height:240px;

    }

    .product-content{

        padding:
            42px
            20px
            22px;

    }

    .product-content h3{

        font-size:20px;

    }

    .product-content p{

        min-height:auto;

        font-size:14px;

    }


    .products-cta{

        display:flex;

        flex-direction:column;

        align-items:stretch;

        gap:18px;

        padding:24px 20px;

        text-align:center;

    }

    .products-cta-icon{

        margin:0 auto;

    }

    .products-cta-content h3{

        font-size:21px;

    }

    .products-cta-content p{

        font-size:14px;

    }

    .products-cta-button{

        width:100%;

    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media(max-width:430px){

    .products-heading{

        padding-left:16px;

        padding-right:16px;

    }

    .products-heading h2{

        font-size:38px;

    }

    .products-watermark{

        font-size:68px;

    }

    .product-image{

        height:220px;

    }

}

/* =========================================================
   PRODUCT CAROUSEL — HORIZONTAL RESPONSIVE STRIP
   Append-only additions for the existing Products section.
   Keep this block after the original product styles.
========================================================= */

.products-container {
    width: min(1500px, 94%);
}

.products-carousel {
    position: relative;
    width: 100%;
    min-width: 0;
}

/* Previous / next controls sit on opposite sides of the track. */
.products-carousel-toolbar {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 14px;
    margin: 0 0 14px;
}

.products-carousel-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(17, 27, 43, .08);
    border-radius: 50%;
    background: var(--primary, #f7bf08);
    color: #111827;
    box-shadow: 0 5px 16px rgba(11, 18, 32, .10);
    cursor: pointer;
    transition:
        transform .2s ease,
        background .2s ease,
        box-shadow .2s ease,
        opacity .2s ease;
}

.products-carousel-arrow i {
    font-size: 25px;
    line-height: 1;
}

.products-carousel-arrow:hover:not(:disabled) {
    transform: translateY(-2px);
    background: #e5a900;
    box-shadow: 0 8px 20px rgba(11, 18, 32, .15);
}

.products-carousel-arrow:active:not(:disabled) {
    transform: translateY(0);
}

.products-carousel-arrow:focus-visible {
    outline: 3px solid rgba(17, 27, 43, .72);
    outline-offset: 3px;
}

.products-carousel-arrow:disabled {
    opacity: .34;
    cursor: not-allowed;
    box-shadow: none;
}

.products-carousel-status {
    margin: 0;
    color: #667085;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

/* The viewport owns the main product-strip scrolling. */
.products-carousel-viewport {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 9px 1px 16px;
    margin: -9px -1px -16px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1px;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.products-carousel-viewport::-webkit-scrollbar {
    display: none;
}

.products-carousel-viewport:focus-visible {
    outline: 2px solid var(--primary, #f7bf08);
    outline-offset: 4px;
}

/* Retain the existing .products-grid and .product-card HTML. */
.products-grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 20px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Desktop: five cards visible where the viewport is wide enough.
   20% minus 16px allows for four 20px gaps across five cards. */
.products-grid > .product-card {
    box-sizing: border-box;
    flex: 0 0 calc(33.333% - 13.333px);
    min-width: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* Keep card content and image swipes independent of outer scrolling.
   The gallery script sets .product-gallery to touch-action: pan-y,
   so horizontal swipes inside the image area change images. */
.products-carousel-viewport {
    touch-action: pan-x pan-y;
}

.products-carousel-viewport .product-gallery {
    touch-action: pan-y;
}

/* Tablet: approximately two cards visible. */
@media (max-width: 1100px) {
    .products-container {
        width: 92%;
    }

    .products-grid {
        gap: 18px;
    }

    .products-grid > .product-card {
        flex-basis: calc(50% - 9px);
    }

    .products-carousel-toolbar {
        grid-template-columns: 40px minmax(0, 1fr) 40px;
    }

    .products-carousel-arrow {
        width: 40px;
        height: 40px;
    }
}

/* Mobile: one complete card plus a preview of the next card. */
@media (max-width: 767px) {
    .products-container {
        width: calc(100% - 32px);
    }

    .products-grid {
        gap: 14px;
    }

    .products-grid > .product-card {
        flex-basis: 88%;
    }

    .products-carousel-toolbar {
        grid-template-columns: 36px minmax(0, 1fr) 36px;
        gap: 10px;
        margin-bottom: 10px;
    }

    .products-carousel-arrow {
        width: 36px;
        height: 36px;
    }

    .products-carousel-arrow i {
        font-size: 23px;
    }

    .products-carousel-status {
        font-size: 11px;
    }
}

/* Reduced-motion preference: avoid animated scrolling. */
@media (prefers-reduced-motion: reduce) {
    .products-carousel-viewport {
        scroll-behavior: auto;
    }

    .products-carousel-arrow {
        transition: none;
    }
}
