/* =========================================================
   REBELS BIRYANI
   COMPONENT STYLES
   ========================================================= */


/* =========================================================
   MEDIA STAGE
   Image shown by default
   Video plays on hover when available
   ========================================================= */

.media-stage {
    position: relative;

    width: 100%;
    aspect-ratio: 4 / 5;

    overflow: hidden;

    border: 0;
    padding: 0;

    background: var(--black);

    cursor: pointer;
}


.media-stage::after {
    content: "";

    position: absolute;
    inset: 0;

    z-index: 4;

    pointer-events: none;

    box-shadow:
        inset 0 0 0 1px rgba(200, 149, 66, 0.18);
}


.media-stage img,
.media-stage video {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


.media-stage img {
    z-index: 1;

    transition:
        transform 0.7s ease,
        opacity 0.25s ease;
}


.media-stage video {
    z-index: 2;

    opacity: 0;

    transition:
        opacity 0.28s ease;
}


.media-stage.is-video-ready.is-playing video {
    opacity: 1;
}


.media-stage.is-video-ready.is-playing img {
    opacity: 0.08;
}


.media-stage:hover img {
    transform: scale(1.018);
}


.media-stage:focus-visible {
    outline-offset: 5px;
}


/* =========================================================
   MEDIA HOVER LABEL
   ========================================================= */

.media-badge {
    position: absolute;

    z-index: 5;

    right: 14px;
    bottom: 14px;

    padding: 8px 10px;

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

    color: rgba(245, 241, 233, 0.88);

    backdrop-filter: blur(8px);

    font-size: 9px;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


.media-stage.no-video .media-badge {
    display: none;
}


/* =========================================================
   PRODUCT DIALOG
   ========================================================= */

.dish-dialog {
    /*
     * Keep the modal attached to the viewport.
     * This prevents its position from being tied
     * to the document's current layout position.
     */
    position: fixed;

    inset: 0;

    margin: auto;

    width: min(1280px, 94vw);

    height: min(
        700px,
        calc(100dvh - 36px)
    );

    max-width: none;
    max-height: none;

    padding: 0;

    border:
        1px solid
        rgba(200, 149, 66, 0.34);

    background: var(--paper);

    color: var(--ink);

    box-shadow:
        0 30px 120px
        rgba(0, 0, 0, 0.55);

    overflow: hidden;
}


.dish-dialog::backdrop {
    background: rgba(0, 0, 0, 0.82);

    backdrop-filter: blur(8px);
}


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


/* =========================================================
   DIALOG CLOSE BUTTON
   ========================================================= */

.dialog-close {
    position: absolute;

    z-index: 10;

    top: 18px;
    right: 18px;

    width: 44px;
    height: 44px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border:
        1px solid
        rgba(23, 20, 17, 0.20);

    border-radius: 50%;

    background:
        rgba(251, 249, 244, 0.96);

    color: var(--ink);

    cursor: pointer;

    font-size: 26px;

    line-height: 1;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


.dialog-close:hover {
    background: var(--ivory);

    border-color:
        rgba(200, 149, 66, 0.50);

    transform: scale(1.04);
}


.dialog-close:focus-visible {
    outline:
        2px solid
        var(--gold);

    outline-offset: 3px;
}


/* =========================================================
   DIALOG GRID
   ========================================================= */

.dialog-grid {
    display: grid;

    grid-template-columns:
        1.04fr
        0.96fr;

    height: 100%;
}


/* =========================================================
   DIALOG MEDIA
   ========================================================= */

.dialog-media {
    position: relative;

    min-height: 0;

    overflow: hidden;

    background: var(--black);
}


.dialog-media .media-stage {
    width: 100%;
    height: 100%;

    aspect-ratio: auto;
}


/* =========================================================
   DIALOG COPY
   ========================================================= */

.dialog-copy {
    min-height: 0;

    padding:
        clamp(30px, 3.4vw, 52px);

    display: flex;

    flex-direction: column;

    justify-content: center;
}


.dialog-copy h2 {
    margin: 0 0 10px;

    font-family: var(--display);

    font-size:
        clamp(38px, 3.7vw, 60px);

    font-weight: 400;

    line-height: 0.95;

    text-transform: uppercase;
}


.dialog-tagline {
    margin: 0 0 16px;

    font-family: var(--display);

    font-size:
        clamp(18px, 1.6vw, 23px);

    line-height: 1.25;
}


.dialog-story {
    margin: 0 0 18px;

    color: var(--muted);

    font-size: 13.5px;

    line-height: 1.58;
}


/* =========================================================
   PRODUCT CHARACTER / FINISH
   ========================================================= */

.profile {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    border-top:
        1px solid
        var(--line-dark);

    border-bottom:
        1px solid
        var(--line-dark);
}


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


.profile div + div {
    padding-left: 16px;

    border-left:
        1px solid
        var(--line-dark);
}


.profile span {
    display: block;

    margin-bottom: 5px;

    color: var(--muted);

    font-size: 9px;

    letter-spacing: 0.13em;

    text-transform: uppercase;
}


.profile strong {
    font-size: 11.5px;

    font-weight: 600;

    line-height: 1.4;
}


/* =========================================================
   PACK INFORMATION DISCLAIMER
   ========================================================= */

.pack-note {
    margin: 13px 0 0;

    color: var(--muted);

    font-size: 10.5px;

    line-height: 1.5;
}


.pack-note strong {
    color: var(--ink);

    font-weight: 600;
}


/* =========================================================
   PRIVACY / COOKIE CONSENT BANNER
   ========================================================= */

.consent-banner {
    position: fixed;

    z-index: 300;

    left: 18px;
    right: 18px;
    bottom: 18px;

    max-width: 720px;

    margin: auto;

    padding: 18px 20px;

    background: #0a0a09;

    color: var(--ivory);

    border:
        1px solid
        rgba(200, 149, 66, 0.38);

    box-shadow:
        0 18px 60px
        rgba(0, 0, 0, 0.36);
}


.consent-banner[hidden] {
    display: none;
}


.consent-banner p {
    margin: 0;

    color:
        rgba(245, 241, 233, 0.72);

    font-size: 13px;

    line-height: 1.55;
}


.consent-banner strong {
    color: var(--ivory);

    font-weight: 600;
}


/* =========================================================
   CONSENT BUTTONS
   ========================================================= */

.consent-actions {
    display: flex;

    gap: 10px;

    flex-wrap: wrap;

    margin-top: 14px;
}


.consent-actions button {
    min-height: 40px;

    padding:
        0
        15px;

    border:
        1px solid
        var(--gold);

    background: transparent;

    color: var(--ivory);

    cursor: pointer;

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


.consent-actions .accept {
    background: var(--gold);

    color: var(--black);
}


/* =========================================================
   CONSENT DETAILS
   ========================================================= */

.consent-inline-details {
    display: grid;

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

    gap: 14px;

    margin-top: 14px;

    padding-top: 14px;

    border-top:
        1px solid
        rgba(200, 149, 66, 0.24);
}


.consent-inline-details[hidden] {
    display: none;
}


.consent-inline-details strong,
.consent-inline-details span {
    display: block;
}


.consent-inline-details strong {
    margin-bottom: 4px;

    color: var(--ivory);

    font-size: 11px;
}


.consent-inline-details span {
    color:
        rgba(245, 241, 233, 0.62);

    font-size: 10.5px;

    line-height: 1.45;
}


.consent-inline-details p {
    grid-column:
        1 / -1;

    margin:
        2px
        0
        0;

    font-size: 10.5px;
}


.consent-inline-details a {
    color: var(--gold-light);

    border-bottom:
        1px solid
        rgba(221, 182, 109, 0.50);
}


/* =========================================================
   SCROLL REVEAL
   ========================================================= */

.reveal {
    opacity: 0;

    transform:
        translateY(18px);

    transition:
        opacity 0.62s ease,
        transform 0.62s ease;
}


.reveal.is-visible {
    opacity: 1;

    transform: none;
}

/* =========================================================
   PRODUCT DIALOG COMMERCE CONTROLS
   ========================================================= */
.dialog-commerce {
    padding-top: 14px;
    border-top: 1px solid rgba(23,20,17,.12);
}
