@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800;900&family=Great+Vibes&family=DM+Sans:wght@400;500;600;700;800&display=swap');

/* =========================================================
   INSANE LABAN — CUSTOMER PRODUCT PAGE
   Same design system as home.css / products.css.
   Class names and layout structure unchanged — this is a reskin,
   so existing markup and JS continue to work.
========================================================= */

:root{
    --navy-900:#04102a;
    --navy-800:#071a3a;
    --navy-700:#0d2a55;
    --ivory:#f6f3ee;
    --gold:#d9a441;
    --gold-soft:#e8bd68;
    --violet:#6b3df5;
    --violet-hi:#7f57ff;
    --violet-deep:#5728dc;
    --ink:#102d4d;

    --line:rgba(255,255,255,.12);
    --surface:rgba(255,255,255,.05);
    --surface-hi:rgba(255,255,255,.08);
    --text-mute:rgba(255,255,255,.7);
    --text-dim:rgba(255,255,255,.5);

    --display:"Playfair Display",Georgia,serif;
    --script:"Great Vibes",cursive;
    --sans:"DM Sans",Arial,sans-serif;
}


/* =========================================================
   GLOBAL
========================================================= */

*,*::before,*::after{box-sizing:border-box}

html{
    min-height:100%;
    height:auto;
    overflow-x:hidden;
    overflow-y:auto;
}

body{
    margin:0;
    min-height:100vh;
    background:var(--navy-900);
    color:#fff;
    font-family:var(--sans);
    overflow-x:hidden;
    overflow-y:auto;
    -webkit-font-smoothing:antialiased;
}

:focus-visible{outline:3px solid var(--gold-soft);outline-offset:3px;border-radius:6px}


/* =========================================================
   PAGE
========================================================= */

.customer-product-page{
    width:calc(100% - 165px);
    margin-left:145px;
    margin-right:20px;
    padding-top:28px;
    padding-bottom:80px;
    min-height:100vh;
    overflow:visible;
}


/* =========================================================
   BREADCRUMB
========================================================= */

.product-breadcrumb{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:26px;
    color:var(--text-dim);
    font-size:13px;
    line-height:1.4;
}

.product-breadcrumb a{
    color:var(--text-mute);
    text-decoration:none;
    transition:color .2s ease;
}

.product-breadcrumb a:hover{color:var(--gold-soft)}

.product-breadcrumb strong{
    color:#fff;
    font-weight:600;
}


/* =========================================================
   LAYOUT
========================================================= */

.product-layout{
    display:grid;
    grid-template-columns:minmax(0,1.65fr) minmax(430px,.95fr);
    gap:46px;
    align-items:start;
    width:100%;
    overflow:visible;
}

.product-media-column{
    width:100%;
    min-width:0;
    overflow:visible;
}

.product-media-area{
    display:grid;
    grid-template-columns:80px minmax(0,1fr);
    gap:16px;
    width:100%;
    overflow:visible;
}


/* =========================================================
   THUMBNAILS
========================================================= */

.media-thumbnails{
    width:80px;
    display:flex;
    flex-direction:column;
    gap:12px;
    max-height:700px;
    overflow-y:auto;
    overflow-x:hidden;
    scrollbar-width:thin;
    scrollbar-color:rgba(255,255,255,.2) transparent;
}

.media-thumbnail{
    position:relative;
    width:78px;
    height:78px;
    min-width:78px;
    min-height:78px;
    padding:0;
    border:1px solid var(--line);
    border-radius:10px;
    overflow:hidden;
    background:var(--navy-700);
    cursor:pointer;
    transition:border-color .2s ease,transform .2s ease,box-shadow .2s ease;
}

.media-thumbnail:hover{
    border-color:var(--gold-soft);
    transform:translateY(-1px);
}

.media-thumbnail.active{
    border:2px solid var(--gold);
    box-shadow:0 0 0 3px rgba(217,164,65,.18);
}

.media-thumbnail img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.thumbnail-number{
    position:absolute;
    top:5px;
    left:5px;
    z-index:5;
    min-width:19px;
    height:19px;
    padding:0 5px;
    border-radius:5px;
    background:rgba(4,16,42,.85);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-family:var(--sans);
    font-size:10px;
    font-weight:700;
}


/* VIDEO THUMBNAIL */

.video-thumbnail{
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--navy-800);
}

.video-thumbnail-content{
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,#0a2244,#123163);
    color:var(--gold-soft);
    font-size:18px;
}

.video-thumbnail-content i{
    width:36px;
    height:36px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid rgba(232,189,104,.45);
    border-radius:50%;
    background:rgba(255,255,255,.08);
    backdrop-filter:blur(5px);
}


/* =========================================================
   MAIN MEDIA
========================================================= */

.main-media-container{
    position:relative;
    width:100%;
    height:640px;
    border:1px solid var(--line);
    border-radius:22px;
    overflow:hidden;
    background:linear-gradient(160deg,#0b2148,#061229);
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 20px 46px rgba(3,16,40,.45);
}

.main-product-image{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    border-radius:inherit;
}

.main-product-video{
    width:100%;
    height:100%;
    display:none;
    object-fit:cover;
    border-radius:inherit;
    background:#050f22;
}

.main-product-placeholder{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:12px;
    color:var(--text-dim);
    font-size:14px;
}

.main-product-placeholder i{font-size:48px}

.media-counter{
    position:absolute;
    right:18px;
    bottom:18px;
    z-index:10;
    padding:8px 14px;
    border:1px solid rgba(255,255,255,.14);
    border-radius:30px;
    background:rgba(4,16,42,.7);
    backdrop-filter:blur(8px);
    color:#fff;
    font-size:12px;
    font-weight:700;
}


/* =========================================================
   PURCHASE AREA
========================================================= */

.purchase-area-left{
    width:calc(100% - 96px);
    margin-left:96px;
    margin-top:18px;
    padding-bottom:10px;
    overflow:visible;
}

.purchase-row{
    position:relative;
    z-index:20;
    display:grid;
    grid-template-columns:150px minmax(0,1fr);
    gap:14px;
    width:100%;
}


/* QUANTITY */

.quantity-control{
    height:60px;
    display:grid;
    grid-template-columns:42px 1fr 42px;
    align-items:center;
    border:1px solid var(--line);
    border-radius:15px;
    background:var(--surface);
}

.quantity-control button{
    width:42px;
    height:42px;
    margin:auto;
    padding:0;
    border:none;
    border-radius:50%;
    background:var(--violet);
    color:#fff;
    font-size:20px;
    font-weight:700;
    line-height:1;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition:background .2s ease,transform .2s ease;
}

.quantity-control button:hover{
    background:var(--violet-hi);
    transform:scale(1.06);
}

.quantity-control span{
    text-align:center;
    color:#fff;
    font-family:var(--sans);
    font-size:16px;
    font-weight:700;
}


/* ADD TO CART */

.add-to-cart-button{
    width:100%;
    height:60px;
    border:none;
    border-radius:15px;
    background:linear-gradient(135deg,var(--violet),#5b30dc);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    font-family:var(--sans);
    font-size:15px;
    font-weight:700;
    letter-spacing:.5px;
    cursor:pointer;
    box-shadow:0 14px 30px -12px rgba(84,48,210,.95);
    transition:background .2s ease,transform .2s ease,box-shadow .2s ease;
}

.add-to-cart-button:hover{
    background:var(--violet-hi);
    transform:translateY(-2px);
    box-shadow:0 18px 34px -12px rgba(84,48,210,1);
}

.add-to-cart-button:active{transform:translateY(0)}

.add-to-cart-button.added{
    background:#128a45;
    box-shadow:none;
}


/* =========================================================
   BENEFITS
========================================================= */

.product-benefits{
    width:100%;
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:20px;
    margin-top:24px;
    padding-top:22px;
    border-top:1px solid var(--line);
}

.benefit-item{
    display:flex;
    align-items:flex-start;
    gap:10px;
    min-width:0;
}

.benefit-item > i{
    width:28px;
    flex-shrink:0;
    color:var(--gold-soft);
    font-size:19px;
    text-align:center;
}

.benefit-item div{
    display:flex;
    flex-direction:column;
    gap:3px;
    min-width:0;
}

.benefit-item strong{
    color:#fff;
    font-size:12.5px;
    font-weight:700;
    white-space:nowrap;
}

.benefit-item span{
    color:var(--text-dim);
    font-size:11px;
    line-height:1.35;
}


/* =========================================================
   PRODUCT INFORMATION
========================================================= */

.product-information{
    width:100%;
    min-width:0;
    height:auto;
    overflow:visible;
    padding-top:6px;
}

.product-header{
    padding-bottom:26px;
    border-bottom:1px solid var(--line);
}

.product-brand{
    display:block;
    margin-bottom:10px;
    color:var(--gold);
    font-size:10px;
    font-weight:700;
    letter-spacing:3.5px;
    text-transform:uppercase;
}

.product-header h1{
    margin:0;
    color:#fff;
    font-family:var(--display);
    font-size:clamp(40px,4vw,62px);
    font-weight:800;
    line-height:1.05;
    letter-spacing:-1px;
}

.product-price{
    margin-top:15px;
    color:var(--gold-soft);
    font-family:var(--display);
    font-size:34px;
    font-weight:800;
}


/* DESCRIPTION */

.product-description{
    padding:24px 0;
    color:var(--text-mute);
    font-size:14px;
    line-height:1.7;
}


/* BADGES */

.product-badges{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    padding-bottom:26px;
    border-bottom:1px solid var(--line);
}

.product-badge{
    display:inline-flex;
    align-items:center;
    gap:7px;
    padding:9px 14px;
    border:1px solid rgba(232,189,104,.35);
    border-radius:999px;
    background:rgba(232,189,104,.08);
    color:var(--gold-soft);
    font-size:11.5px;
    font-weight:600;
}


/* =========================================================
   TOPPINGS
========================================================= */

.customer-topping-section{
    margin-top:26px;
    width:100%;
}

.topping-heading{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:20px;
    margin-bottom:16px;
}

.section-eyebrow{
    display:block;
    margin-bottom:6px;
    color:var(--gold);
    font-size:10px;
    font-weight:700;
    letter-spacing:3.5px;
    text-transform:uppercase;
}

.topping-heading h2{
    margin:0;
    color:#fff;
    font-family:var(--display);
    font-size:28px;
    font-weight:800;
    line-height:1.1;
}

.selection-status{
    flex-shrink:0;
    display:inline-flex;
    align-items:center;
    gap:7px;
    padding:8px 13px;
    border:1px solid rgba(46,190,110,.35);
    border-radius:999px;
    background:rgba(46,190,110,.12);
    color:#6ddc9d;
    font-size:11px;
    font-weight:700;
}

.selection-status i{font-size:7px}


/* LIST */

.customer-topping-list{
    display:flex;
    flex-direction:column;
    gap:9px;
    max-height:440px;
    padding-right:8px;
    overflow-y:auto;
    scrollbar-width:thin;
    scrollbar-color:rgba(255,255,255,.2) transparent;
}


/* OPTION */

.customer-topping-option{
    width:100%;
    min-height:76px;
    padding:9px;
    display:grid;
    grid-template-columns:64px minmax(0,1fr) 28px;
    align-items:center;
    gap:12px;
    border:1px solid var(--line);
    border-radius:15px;
    background:var(--surface);
    color:#fff;
    text-align:left;
    cursor:pointer;
    transition:border-color .2s ease,background .2s ease,transform .2s ease;
}

.customer-topping-option:hover{
    border-color:rgba(232,189,104,.5);
    background:var(--surface-hi);
    transform:translateY(-1px);
}

.customer-topping-option.selected{
    border:1.5px solid var(--violet-hi);
    background:rgba(107,61,245,.16);
}

.customer-topping-image{
    width:58px;
    height:58px;
    border-radius:11px;
    overflow:hidden;
    background:var(--navy-700);
    display:flex;
    align-items:center;
    justify-content:center;
}

.customer-topping-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.customer-topping-image i{
    color:var(--text-dim);
    font-size:20px;
}

.customer-topping-text{
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:4px;
}

.customer-topping-text strong{
    color:#fff;
    font-size:14.5px;
    font-weight:700;
}

.customer-topping-text span{
    color:var(--text-dim);
    font-size:11.5px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.topping-check{
    width:25px;
    height:25px;
    border-radius:50%;
    background:rgba(255,255,255,.1);
    display:flex;
    align-items:center;
    justify-content:center;
    color:transparent;
    transition:background .2s ease,color .2s ease;
}

.customer-topping-option.selected .topping-check{
    background:var(--violet);
    color:#fff;
}

.topping-check i{font-size:11px}


/* =========================================================
   ALLERGENS
========================================================= */

.product-allergens{
    margin-top:25px;
    padding:18px;
    border:1px solid rgba(232,189,104,.28);
    border-radius:14px;
    background:rgba(232,189,104,.06);
}

.product-allergens h3{
    margin:0 0 8px;
    color:var(--gold-soft);
    font-size:11px;
    font-weight:800;
    letter-spacing:1.6px;
    text-transform:uppercase;
}

.product-allergens p{
    margin:0;
    color:var(--text-mute);
    font-size:13px;
    line-height:1.6;
}


/* =========================================================
   LARGE LAPTOP
========================================================= */

@media (max-width:1350px){

    .customer-product-page{
        width:calc(100% - 155px);
        margin-left:135px;
        margin-right:20px;
    }

    .product-layout{
        grid-template-columns:minmax(0,1.45fr) minmax(380px,.85fr);
        gap:30px;
    }

    .main-media-container{height:590px}

    .purchase-area-left{
        width:calc(100% - 90px);
        margin-left:90px;
    }

    .product-benefits{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width:1050px){

    .customer-product-page{
        width:calc(100% - 40px);
        margin-left:130px;
        margin-right:20px;
    }

    .product-layout{
        grid-template-columns:1fr;
        gap:40px;
    }

    .product-information{order:2}
    .product-media-column{order:1}

    .main-media-container{height:600px}

    .purchase-area-left{
        width:100%;
        margin-left:0;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width:700px){

    /* clears the fixed top bar */
    .customer-product-page{
        width:calc(100% - 30px);
        margin-left:15px;
        margin-right:15px;
        padding-top:78px;
    }

    .product-media-area{
        grid-template-columns:1fr;
        gap:12px;
    }

    .media-thumbnails{
        width:100%;
        max-height:none;
        flex-direction:row;
        overflow-x:auto;
        overflow-y:hidden;
    }

    .media-thumbnail{
        flex:0 0 68px;
        width:68px;
        height:68px;
        min-width:68px;
        min-height:68px;
    }

    .main-media-container{
        height:420px;
        border-radius:18px;
    }

    .main-product-image,
    .main-product-video{
        height:420px;
        object-fit:cover;
    }

    .purchase-row{grid-template-columns:1fr}

    .product-benefits{grid-template-columns:1fr 1fr}

    .product-header h1{font-size:40px}

    .product-price{font-size:30px}

    .topping-heading{
        align-items:flex-start;
        flex-direction:column;
    }

    .topping-heading h2{font-size:25px}
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width:450px){

    .product-breadcrumb{
        flex-wrap:wrap;
        font-size:12px;
    }

    .main-media-container{height:340px}

    .main-product-image,
    .main-product-video{height:340px}

    .product-benefits{grid-template-columns:1fr}

    .customer-topping-option{
        grid-template-columns:56px minmax(0,1fr) 25px;
    }

    .customer-topping-image{
        width:50px;
        height:50px;
    }
}


/* =========================================================
   MOTION
========================================================= */

@media (prefers-reduced-motion:reduce){
    *{animation:none !important;transition:none !important}
}
/* =========================================================
   SAUCE ADD-ON SECTION (customer product page)
========================================================= */

.customer-sauce-section {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid #ece7e0;
}


/* ---------------------------------------------------------
   HEADING
--------------------------------------------------------- */

.sauce-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.sauce-heading h2 {
    margin-top: 4px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    line-height: 1.15;
}

.sauce-optional-tag {
    flex-shrink: 0;
    padding: 6px 12px;
    border-radius: 20px;
    background: #f4f1ea;
    color: #8a8175;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
}


/* ---------------------------------------------------------
   LIST
--------------------------------------------------------- */

.customer-sauce-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


/* ---------------------------------------------------------
   SAUCE OPTION
--------------------------------------------------------- */

.customer-sauce-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 12px 14px;

    background: #ffffff;
    border: 2px solid #ece7e0;
    border-radius: 14px;

    text-align: left;
    font-family: inherit;

    cursor: pointer;

    transition:
        border-color .2s ease,
        background .2s ease,
        transform .15s ease,
        box-shadow .2s ease;
}

.customer-sauce-option:hover {
    border-color: #d5cdc1;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
}

.customer-sauce-option.selected {
    border-color: #6b3df5;
    background: #f8f5ff;
}


/* ---------------------------------------------------------
   IMAGE
--------------------------------------------------------- */

.customer-sauce-image {
    flex-shrink: 0;

    width: 56px;
    height: 56px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 11px;
    background: #f4f1eb;

    color: #b9b1a5;
    font-size: 1.2rem;
}

.customer-sauce-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ---------------------------------------------------------
   TEXT
--------------------------------------------------------- */

.customer-sauce-text {
    flex: 1;
    min-width: 0;
}

.customer-sauce-text strong {
    display: block;
    font-size: .98rem;
    font-weight: 700;
    color: #24211d;
}

.customer-sauce-text span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;

    margin-top: 3px;

    color: #8a8175;
    font-size: .8rem;
    line-height: 1.45;
}


/* ---------------------------------------------------------
   PRICE + CHECK
--------------------------------------------------------- */

.customer-sauce-meta {
    flex-shrink: 0;

    display: flex;
    align-items: center;
    gap: 12px;
}

.sauce-price {
    color: #6b3df5;
    font-size: .92rem;
    font-weight: 700;
    white-space: nowrap;
}

.sauce-check {
    width: 26px;
    height: 26px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px solid #ddd6cb;
    border-radius: 50%;

    background: #ffffff;
    color: transparent;

    font-size: .68rem;

    transition: .2s ease;
}

.customer-sauce-option.selected .sauce-check {
    border-color: #6b3df5;
    background: #6b3df5;
    color: #ffffff;
}


/* ---------------------------------------------------------
   RUNNING TOTAL
--------------------------------------------------------- */

.sauce-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 14px;
    padding: 13px 16px;

    border-radius: 12px;
    background: #f8f5ff;
    border: 1px dashed #cdbcff;
}

.sauce-total-row span {
    color: #6a6259;
    font-size: .85rem;
    font-weight: 600;
}

.sauce-total-row strong {
    color: #6b3df5;
    font-size: 1.05rem;
    font-weight: 700;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 768px) {

    .customer-sauce-section {
        margin-top: 26px;
        padding-top: 22px;
    }

    .sauce-heading h2 {
        font-size: 1.5rem;
    }

    .customer-sauce-option {
        gap: 11px;
        padding: 10px 12px;
        border-radius: 12px;
    }

    .customer-sauce-image {
        width: 48px;
        height: 48px;
        border-radius: 9px;
    }

    .customer-sauce-text strong {
        font-size: .9rem;
    }

    .customer-sauce-text span {
        -webkit-line-clamp: 1;
        font-size: .75rem;
    }

    .customer-sauce-meta {
        gap: 9px;
    }

    .sauce-price {
        font-size: .85rem;
    }

    .sauce-check {
        width: 23px;
        height: 23px;
    }

}


@media (max-width: 380px) {

    .customer-sauce-image {
        width: 42px;
        height: 42px;
    }

    /* Hide the description on very narrow phones so the
       name, price and check still fit on one row. */
    .customer-sauce-text span {
        display: none;
    }

}