/* =========================================================
   REBELS BIRYANI
   RESPONSIVE + MOTION RULES
   V10.1
   ========================================================= */


/* =========================================================
   TABLET / SMALL DESKTOP
   ========================================================= */

@media (max-width: 1050px) {

    .product-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .product-card,
    .product-card:nth-last-child(2),
    .product-card:last-child {
        grid-column: auto;
    }


    .brand-intro,
    .find {
        grid-template-columns: 1fr;
    }


    .collection-head {
        display: block;
    }


    .find-copy {
        max-width: 700px;
    }


    .footer-top {
        grid-template-columns:
            1fr
            auto
            1fr;
    }


    .footer-contact-groups {
        justify-self: end;
    }


    .dialog-copy {
        padding: 34px;
    }
}


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

@media (max-width: 760px) {

    :root {
        --header-h: 74px;
        --page: 20px;
    }


    /* -----------------------------------------------------
       HEADER
       ----------------------------------------------------- */

    .site-header {
        grid-template-columns:
            1fr
            auto
            1fr;

        overflow: visible !important;
    }


    .header-side {
        display: none;
    }


    /* Keep the full RB logo visible on mobile */

    .brand {
        position: relative !important;
        inset: auto !important;

        grid-column: 2;

        width: 58px !important;
        height: 58px !important;

        display: grid !important;
        place-items: center !important;

        align-self: center !important;
        justify-self: center !important;

        margin: 0 !important;

        overflow: visible !important;

        border-radius: 50%;

        transform: none !important;
    }


    .brand img {
        display: block !important;

        width: 56px !important;
        height: 56px !important;

        max-width: none !important;
        max-height: none !important;

        object-fit: contain !important;
        object-position: center !important;

        margin: 0 !important;

        border-radius: 50%;

        clip-path: none !important;

        opacity: 1 !important;
        visibility: visible !important;

        transform: none !important;
    }


    .menu-button {
        display: block;

        grid-column: 3;

        justify-self: end;
    }


    /* -----------------------------------------------------
       MOBILE NAVIGATION
       ----------------------------------------------------- */

    .mobile-menu {
        position: fixed;

        z-index: 99;

        inset:
            74px
            0
            auto;

        display: grid;

        gap: 0;

        background:
            rgba(7, 7, 7, 0.98);

        border-bottom:
            1px solid
            rgba(200, 149, 66, 0.28);

        transform:
            translateY(-120%);

        transition:
            transform 0.25s ease;
    }


    .mobile-menu.is-open {
        transform: none;
    }


    .mobile-menu a {
        padding:
            18px
            var(--page);

        border-top:
            1px solid
            rgba(255, 255, 255, 0.07);

        color: var(--ivory);

        font-family: var(--display);

        font-size: 14px;

        letter-spacing: 0.12em;

        text-transform: uppercase;
    }


    /* -----------------------------------------------------
       HERO
       ----------------------------------------------------- */

    .hero-copy {
        padding-bottom: 12vh;
    }


    .hero h1 {
        font-size:
            clamp(50px, 15vw, 86px);
    }


    .hero-lede {
        max-width: 560px;

        font-size: 15px;
    }


    .hero-foot {
        display: none;
    }


    /* -----------------------------------------------------
       OUR STORY
       ----------------------------------------------------- */

    .brand-intro {
        padding-top: 68px;
        padding-bottom: 68px;
    }


    .brand-intro-copy p:not(.lead) {
        font-size: 14px;
    }


    /* -----------------------------------------------------
       COLLECTION
       ----------------------------------------------------- */

    .collection {
        scroll-margin-top: 74px;

        padding-top: 64px;
    }


    .product-grid {
        grid-template-columns: 1fr;

        gap: 58px;
    }


    .product-card,
    .product-card:nth-last-child(2),
    .product-card:last-child {
        grid-column: auto;
    }


    .product-short {
        min-height: 0;
    }


    /* -----------------------------------------------------
       RB TABLE
       ----------------------------------------------------- */

    .feast {
        scroll-margin-top: 74px;

        height: auto;

        min-height:
            calc(100dvh - 74px);
    }


    .feast-copy {
        padding-top: 72px;
        padding-bottom: 72px;
    }


    /* -----------------------------------------------------
       OCCASIONS
       ----------------------------------------------------- */

    .find {
        scroll-margin-top: 74px;

        min-height:
            calc(100dvh - 74px);

        padding-top: 72px;
        padding-bottom: 72px;
    }


    /* -----------------------------------------------------
       FOOTER
       ----------------------------------------------------- */

    .footer-top {
        grid-template-columns: 1fr;

        justify-items: center;

        text-align: center;
    }


    .footer-brand {
        grid-row: 1;
    }


    .footer-links {
        justify-content: center;
    }


    .footer-contact-groups {
        justify-self: center;

        justify-content: center;

        flex-wrap: wrap;

        text-align: center;
    }


    .footer-contact-group {
        min-width: 0;

        justify-items: center;
    }


    /* Keep Cookie Settings compact on mobile */

    .privacy-panel {
        left: 50%;

        width:
            min(220px, 88vw);

        grid-template-columns: 1fr;

        text-align: left;

        transform:
            translateX(-50%);
    }


    .footer-bottom {
        flex-direction: column;

        align-items: center;

        text-align: center;
    }


    .rebels-glow {
        margin-top: 46px;
    }


    /* -----------------------------------------------------
       PRODUCT DIALOG
       ----------------------------------------------------- */

    .dish-dialog {
        width:
            calc(100vw - 14px);

        height:
            calc(100dvh - 14px);

        overflow: hidden;
    }


    .dish-dialog > [data-dialog-body] {
        height: 100%;
    }


    .dialog-grid {
        grid-template-columns: 1fr;

        grid-template-rows:
            42%
            58%;

        height: 100%;
    }


    .dialog-media {
        height: auto;

        min-height: 0;
    }


    .dialog-copy {
        padding:
            18px
            20px
            16px;

        justify-content: center;
    }


    .dialog-copy h2 {
        margin-bottom: 6px;

        font-size:
            clamp(27px, 8.5vw, 40px);
    }


    .dialog-tagline {
        margin-bottom: 9px;

        font-size: 16px;
    }


    .dialog-story {
        margin-bottom: 10px;

        font-size: 12px;

        line-height: 1.46;
    }


    .profile div {
        padding:
            8px
            8px
            8px
            0;
    }


    .profile div + div {
        padding-left: 10px;
    }


    .profile strong {
        font-size: 10.5px;
    }


    .pack-note {
        margin-top: 9px;

        font-size: 9px;

        line-height: 1.4;
    }


    .dialog-close {
        right: 10px;
        top: 10px;

        width: 38px;
        height: 38px;
    }


    /* -----------------------------------------------------
       PRIVACY NOTICE
       ----------------------------------------------------- */

    .consent-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;

        padding: 16px;
    }


    .consent-actions {
        gap: 8px;
    }


    .consent-inline-details {
        grid-template-columns: 1fr;
    }


    .consent-inline-details p {
        grid-column: auto;
    }
}


/* =========================================================
   SHORT DESKTOP / LAPTOP SCREENS
   ========================================================= */

@media (max-height: 650px) and (min-width: 761px) {

    .dish-dialog {
        height:
            calc(100dvh - 20px);
    }


    .dialog-copy {
        padding:
            26px
            34px;
    }


    .dialog-copy h2 {
        font-size: 42px;
    }


    .dialog-tagline {
        margin-bottom: 12px;

        font-size: 19px;
    }


    .dialog-story {
        margin-bottom: 12px;

        font-size: 12.5px;

        line-height: 1.5;
    }


    .profile div {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}


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

@media (max-width: 420px) {

    .dialog-grid {
        grid-template-rows:
            34%
            66%;
    }


    .dialog-copy {
        padding: 18px;
    }


    .dialog-story {
        font-size: 12px;
    }


    .profile strong {
        font-size: 10.5px;
    }


    .product-name {
        font-size: 28px;
    }
}


/* =========================================================
   SHORT MOBILE SCREENS
   ========================================================= */

@media (max-width: 760px) and (max-height: 680px) {

    .dialog-grid {
        grid-template-rows:
            34%
            66%;
    }


    .dialog-copy {
        padding:
            14px
            18px
            12px;
    }


    .dialog-copy h2 {
        font-size: 28px;
    }


    .dialog-tagline {
        font-size: 14px;
    }


    .dialog-story {
        font-size: 10.5px;

        line-height: 1.4;
    }


    .profile strong {
        font-size: 9.5px;
    }


    .pack-note {
        font-size: 8.3px;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }


    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;

        transition-duration: 0.001ms !important;
    }


    .reveal {
        opacity: 1;

        transform: none;
    }


    .rebels-glow .light {
        display: none;
    }
}

/* =========================================================
   V10.2 COMMERCE RESPONSIVE OVERRIDES
   ========================================================= */
@media (max-width: 1050px) {
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .collection-head { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 760px) {
    .product-grid { grid-template-columns: 1fr; }
    .hero-brand-name { font-size: 18px; }
    .brand-intro-copy p:not(.lead) { font-size: 16px; }
    .header-side { display:none; }
}
