*, *::before, ::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Josefin Sans', sans-serif;
}

a {
  text-decoration: none;
}

/* ===== HERO WRAPPER ===== */
.hero {
  background: linear-gradient(180deg, #e3f2ea 0%, #d3e8dc 100%);
  height: 100vh;
  width: 100%;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  padding: 20px;
  overflow: hidden;
  position: relative;
}

/* ===== TOP BAR ===== */
.top-bar {
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 0 30px;
  flex-wrap: wrap;
}

.brand {
  display: flex !important;
  align-items: center !important;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  margin-right: 10px;
}

.brand-text {
  font-weight: 700;
  letter-spacing: 1px;
  color: #0f2e21;
  font-size: 1.1rem;
}

/* ===== TOP BUTTONS ===== */
.top-btn-group {
  display: flex !important;
  gap: 8px;
}

.top-btn {
  background-color: #1f5a41;
  border: 1px solid #0f2e21;
  color: #e3f2ea;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  transition: 0.25s;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.top-btn:hover {
  background-color: #0c2419 !important;
  color: #fff !important;
}

/* ===== HERO CONTENT ===== */
.hero-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;      
  justify-content: center !important;  
  text-align: center !important;
  width: 100% !important;
  max-width: 500px;
  margin: 0 auto !important;           
  position: relative;
}

.hero-logo {
  max-width: 480px !important;
  width: 100%;
  display: block !important;
  margin: 0 auto !important;           
  margin-top: -60px !important;        
  padding: 0 !important;
}

/* MAIN BUTTON */
.hero-btn {
  background-color: #1f5a41 !important;
  border: 2px solid #0f2e21 !important;   
  color: #e3f2ea !important;
  font-size: 1.5rem !important;          
  font-weight: 700 !important;           
  padding: 16px 48px !important;         
  border-radius: 8px !important;         
  transition: all 0.2s ease-in-out !important; 
  box-shadow: 0 6px 16px rgba(15,46,33, 0.35) !important;
  white-space: nowrap !important;
  display: inline-block !important;
}

/* FIXED INTERACTIVE HOVER STATE */
.hero-btn:hover {
  background-color: #0f2e21 !important; /* Changes to a deep dark espresso brown */
  color: #ffffff !important;            /* Changes to bright white */
  border-color: #081d14 !important;     
  box-shadow: 0 8px 24px rgba(15,46,33, 0.6) !important; 
}

/* ===== BUTTON FIX ===== */
.hero-content .hero-btn {
  margin: 0 auto !important;
  margin-top: -115px !important;       
  position: relative !important;
  z-index: 10;                  
}

/* ===== FOOTER ===== */
.site-footer {
  display: none;
}

/* ===== MOBILE ===== */
@media (max-width: 480px) {
  .top-bar {
    padding: 0 15px;
  }
  
  .logo-img {
    height: 38px;
  }
  
  .hero-logo {
    max-width: 240px;
    margin-top: -40px !important;
  }
  
  .hero-btn {
    font-size: 1.1rem !important;
    padding: 12px 28px !important;
  }
  
  .hero-content .hero-btn {
    margin-top: -65px !important;
  }

  .hero-content {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }
}
/* ========================================= */
/* CUSTOMER LOGIN PAGE */
/* ========================================= */

.login-page {
    min-height: 100vh !important;
    background: linear-gradient(180deg, #e3f2ea 0%, #d3e8dc 100%) !important;
    width: 100vw !important;
    position: relative !important; 
    display: block !important; /* Disables outer flex conflicts */
}

.login-card {
    width: 90% !important;
    max-width: 380px !important;
    background: #ffffff !important;
    border-radius: 5px !important;
    padding: 20px 30px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .15) !important;
    max-height: 95vh !important;
    overflow-y: auto !important;
    display: flex !important;          
    flex-direction: column !important;

    /* ABSOLUTE DEAD CENTER SYSTEM */
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important; 
    z-index: 9999 !important;
}

.login-card .hero-logo {
    max-width: 150px !important;
    display: block !important;
    margin: 0 auto !important; 
    padding: 0 !important;
}

.back-btn {
    display: inline-block !important;
    color: #0f2e21 !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    text-decoration: none !important;
    align-self: flex-start !important; 
}

.back-btn:hover {
    text-decoration: underline !important;
    color: #1f5a41 !important;
}

.login-title {
    color: #0f2e21 !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    text-align: center !important;
    margin-top: -25px !important; 
    margin-bottom: 15px !important;
}

.login-card label {
    color: #0f2e21 !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    display: block !important;
    margin-bottom: 4px !important;
}

.login-card .form-control {
    height: 38px !important;
    border-radius: 6px !important;
    border: 1px solid #b3cdbf !important;
    font-size: 0.9rem !important;
    width: 100% !important;
    padding: 0 12px !important;
    margin-bottom: 8px !important;
}

.login-card .form-control:focus {
    border-color: #1f5a41 !important;
    box-shadow: 0 0 0 .2rem rgba(31,90,65, .2) !important;
    outline: none !important;
}

.login-btn {
    width: 100% !important;
    background: #1f5a41 !important;
    color: #fff !important;
    border: none !important;
    padding: 10px !important;
    border-radius: 6px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    margin-top: 8px !important;
    cursor: pointer !important;
    transition: .3s !important;
}

.login-btn:hover {
    background: #0c2419 !important;
}

.register-text {
    margin-top: 10px !important;
    text-align: center !important;
    color: #666 !important;
    font-size: 0.8rem !important;
}

.register-btn-small {
    margin-top: 6px !important;
    border: 2px solid #1f5a41 !important;
    color: #1f5a41 !important;
    background: white !important;
    padding: 6px 18px !important;
    border-radius: 25px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    transition: .3s !important;
    display: inline-block !important;
}

.register-btn-small:hover {
    background: #1f5a41 !important;
    color: white !important;
}

@media (max-width: 480px) {
    .login-card {
        padding: 16px 20px !important;
    }

    .login-title {
        font-size: 20px !important;
        margin-top: -15px !important;
    }

    .login-card .hero-logo {
        max-width: 130px !important;
    }
}

/* Password Viewers */
.password-wrapper {
    position: relative !important;
    width: 100% !important;
}

.password-input {
    width: 100% !important;
    padding-right: 55px !important;
}

.toggle-password {
    position: absolute !important;
    top: 50% !important;
    right: 15px !important;
    transform: translateY(-50%) !important;
    border: none !important;
    background: none !important;
    cursor: pointer !important;
    font-size: 18px !important;
    color: #777 !important;
    padding: 0 !important;
}

.toggle-password:hover {
    color: #226347 !important;
}

.toggle-password:focus {
    outline: none !important;
}
/* ========================================= */
/* REGISTER PAGE */
/* ========================================= */

/* Style ALL Django form inputs */
.login-card input,
.login-card input[type="text"],
.login-card input[type="email"],
.login-card input[type="password"]{
    width:100%;
    height:30px;
    border:1px solid #a8d2bc;
    border-radius:8px;
    padding:0 15px;
    margin-bottom:5px;
    font-size:16px;
    transition:.3s;
    background:#fff;
}

/* Input Focus */

.login-card input:focus{
    border-color:#1f5a41;
    outline:none;
    box-shadow:0 0 0 .2rem rgba(31,90,65,.15);
}

/* Hide Django help text */

.helptext{
    display:none;
}

/* Hide bullet list under password */

ul{
    margin:0;
    padding:0;
    list-style:none;
}

ul.errorlist{
    display:none;
}

/* Spacing */

.login-card form{
    margin-top:5px;
}

.login-card label{
    margin-bottom:5px;
    font-weight:600;
    color:#0f2e21;
}

.login-title {
    text-align: center;
    margin-top: 15px;
}

/* Register Button */

.login-btn{
    margin-top:20px;
}

/* Login Link */

.register-text{
    text-align:center;
    margin-top:20px;
    color:#666;
    font-size:15px;
}

.register-btn-small{
    display:inline-block;
    margin-top:10px;
    padding:10px 25px;
    border:2px solid #226347;
    border-radius:30px;
    background:#fff;
    color:#226347;
    font-weight:600;
    transition:.3s;
}

.register-btn-small:hover{
    background:#226347;
    color:#fff;
}

/* ===========================
   CUSTOMER DASHBOARD
=========================== */

.dashboard{
    min-height:100vh;
    background:#e8f5ee;
}

/* Header */

.dashboard-header{
    height:70px;
    background:#4c6358;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 45px;
}

/* =========================================
   LOGOUT BUTTON
========================================= */

.back-button.logout-btn{
    background:#1f5a41 !important;
    color:#ffffff !important;
    border:2px solid #ffffff !important;
}

.back-button.logout-btn:hover{
    background:#0c2419 !important;
}
.brew-id{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    color:white;
    gap:3px;
}

.brew-label{
    font-size:13px;
    font-weight:600;
    letter-spacing:1px;
    text-transform:uppercase;
}

.customer-name{
    font-size:14px;
    font-weight:400;
    margin-top:3px;
    color:#f1f1f1;
}

.welcome-name{
    font-size:1.8rem;
    font-weight:600;
    margin-bottom:12px;
    color:#2f2f2f;
}

/* Welcome */

.welcome-section{
    text-align:center;
    padding:45px 20px 20px;
}

.welcome-section h1{
    font-size:2.0rem;
    font-weight:800;
    letter-spacing:1px;
    line-height:1.15;
    margin-bottom:8px;
    color:#222;
}

.welcome-section h3{
    font-size:1.0rem;
    font-weight:500;
    letter-spacing:.5px;
    color:#555;
    margin-bottom:40px;
}

/* Cards */

.category-container{
    display:flex;
    justify-content:center;
    gap:45px;
    flex-wrap:wrap;
    padding-bottom:50px;
}

.category-card{
    width:250px;
    height:250px;
    background:#fff;
    border-radius:15px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    box-shadow:0 6px 18px rgba(0,0,0,.18);
    transition:.3s;
}

.category-card:hover{
    transform:translateY(-8px);
    box-shadow:0 12px 25px rgba(0,0,0,.22);
}

.category-card img{
    width:120px;
    height:120px;
    object-fit:contain;
    margin-bottom:18px;
}

.category-card h2{
    font-size:1.9rem;
    font-weight:800;
    color:#000;
    margin:0;
}

/* Tablet Layouts */

@media (max-width:1200px){

    .welcome-section h1{
        font-size:3rem;
    }

    .category-card{
        width:220px;
        height:220px;
    }

    .category-card img{
        width:100px;
        height:100px;
    }

}

/* =========================================================
   EXACT MOBILE SYNC (Matches layout shape in image_7454a1.png)
========================================================= */

@media (max-width:768px){

    .dashboard-header{
        padding:12px 20px;
        height:auto;
    }

    /* Smaller header typography to save vertical space */
    .welcome-name{
        font-size:1.4rem;
        margin-bottom: 8px;
    }

    .welcome-section h1{
        font-size:1.45rem;
        margin-bottom: 4px;
    }

    .welcome-section h3{
        font-size:0.75rem;
        margin-bottom:20px;
    }

    .category-container{
        flex-direction:column;
        align-items:center;
        gap:16px; /* Tight container gap */
        padding-bottom:120px; /* Leave space for bottom coffee beans image */
    }

    /* Converts block squares to the horizontal rectangle card layout */
    .category-card {
        width: 240px;           /* Exact slim width to fit beautifully */
        height: 140px;          /* Compact landscape profile matching image_7454a1.png */
        border: 1.5px solid #000000; /* Crisp dark wireframe border overlay */
        border-radius: 18px;    /* Smooth rounded corners matching your card */
        padding: 10px;
        box-sizing: border-box;
        
        /* Drop shadow styling matching image_7454a1.png */
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    }

    .category-card img {
        width: 75px;            /* Scaled down image asset */
        height: 75px;
        margin-bottom: 4px;     /* Minimal padding below image */
    }

    .category-card h2 {
        font-size: 1.05rem;     /* Clean, downscaled uppercase text header */
        letter-spacing: 0.5px;
    }

}
/* =========================================
   CUSTOMIZE PAGE
========================================= */

.customize-page {
    min-height: 100vh;
    background: #e8f5ee;
}


/* =========================================
   HEADER
========================================= */

.customize-header {
    height: 70px;
    background: #4f6a5d;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 35px;

    box-sizing: border-box;
}

.category-title {
    text-align: center;
    color: #0f2e21;
    font-size: 2rem;
    margin: 20px 0;
}


/* =========================================
   MAIN LAYOUT
========================================= */

.customize-container {
    display: flex;
    align-items: flex-start;

    gap: 25px;

    padding: 0 35px 35px;

    box-sizing: border-box;
}


/* =========================================
   LEFT SIDE
========================================= */

.left-panel {
    width: 340px;
    flex-shrink: 0;

    display: flex;
    flex-direction: column;

    gap: 18px;
}


/* =========================================
   PANEL BOX
========================================= */

.panel-box {
    background: #ffffff;

    border-radius: 12px;

    padding: 18px;

    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.12);

    box-sizing: border-box;
}

.panel-box h3 {
    margin-top: 0;
    margin-bottom: 12px;

    color: #0f2e21;
}


/* =========================================
   CUP SIZE BUTTONS
========================================= */

.panel-box button {
    width: 100%;

    padding: 11px;

    margin: 6px 0;

    border: none;

    border-radius: var(--bl-radius-sm, 10px);

    background: var(--bl-grad-brown, #1f5a41);

    color: #ffffff;

    font-weight: 700;

    letter-spacing: 0.2px;

    cursor: pointer;

    box-shadow: 0 3px 8px rgba(15,46,33, 0.18);

    transition: 0.25s;
}

.panel-box button:hover {
    background: var(--bl-grad-brown-hover, #0c2419);

    box-shadow: 0 6px 14px rgba(15,46,33, 0.28);

    transform: translateY(-2px);
}


/* =========================================
   SWEETNESS / ICE OPTIONS
========================================= */

.panel-box p {
    margin: 8px 0;

    padding: 9px;

    border-radius: 7px;

    background: #f2f9f5;

    color: #0f2e21;

    cursor: pointer;

    transition: 0.25s;
}

.panel-box p:hover {
    background: #1f5a41;

    color: #ffffff;
}


/* =========================================
   INGREDIENT DRAG ITEMS
========================================= */

.panel-box.is-hidden {
    display: none;
}

.ingredient-panel {
    opacity: 0.5;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
    filter: saturate(0.7);
}

.ingredient-panel.is-visible {
    opacity: 1;
    transform: none;
    filter: saturate(1);
}

.ingredient-panel.is-locked {
    pointer-events: none;
}

.ingredient {
    background: #f2f9f5;

    border: 2px solid #1f5a41;

    border-radius: 8px;

    padding: 10px;

    margin: 8px 0;

    cursor: grab;

    text-align: center;

    font-weight: 600;

    color: #0f2e21;

    transition: 0.25s;

    user-select: none;
}

.ingredient:hover {
    background: #1f5a41;

    color: #ffffff;
}

.ingredient:active {
    cursor: grabbing;
}

.ingredient-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.25);
}

.dragging {
    opacity: 0.45;

    transform: scale(0.96) rotate(-2deg);
    box-shadow: 0 12px 20px rgba(12,42,30, 0.2);
}


/* =========================================
   ORDER SUMMARY
========================================= */

.summary-box {
    min-height: 120px;

    margin: 15px 0;

    padding: 12px;

    background: var(--bl-cream-soft, #f2f9f5);

    border: 1px solid var(--bl-cream-deep, #d7ebe0);

    border-radius: var(--bl-radius-md, 12px);

    color: #0f2e21;

    box-sizing: border-box;
}

.total-box {
    display: flex;
    align-items: baseline;
    justify-content: space-between;

    font-weight: 800;

    font-size: 1.25rem;

    margin-bottom: 15px;
    padding-top: 8px;
    border-top: 2px dashed var(--bl-cream-deep, #d7ebe0);

    color: var(--bl-brown-dark, #0f2e21);
}

.summary-actions {
    display: flex;
    gap: 10px;
    width: 100%;
}

.add-cart-btn,
.order-btn {
    flex: 1;
    padding: 13px 12px;
    border-radius: var(--bl-radius-pill, 999px);
    cursor: pointer;
    font-weight: 800;
    letter-spacing: 0.2px;
    transition: 0.2s;
}

.add-cart-btn {
    border: 2px solid var(--bl-brown, #1f5a41);
    background: #fff;
    color: var(--bl-brown, #1f5a41);
}

.add-cart-btn:hover {
    background: var(--bl-cream, #e8f5ee);
    transform: translateY(-2px);
}

.order-btn {
    border: none;
    background: var(--bl-grad-brown, #1f5a41);
    color: #ffffff;
    box-shadow: var(--bl-shadow-btn, 0 6px 14px rgba(15,46,33, 0.28));
}

.order-btn:hover {
    background: var(--bl-grad-brown-hover, #0c2419);
    box-shadow: var(--bl-shadow-btn-hover, 0 10px 20px rgba(15,46,33, 0.35));
    transform: translateY(-2px);
}


/* =========================================
   RIGHT PANEL
========================================= */

.desktop-fixed-right-panel {
    flex: 1;

    min-width: 0;

    background: #ffffff;

    border-radius: 12px;

    padding: 20px;

    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.12);

    display: flex;

    flex-direction: column;

    align-items: center;

    box-sizing: border-box;
}

.desktop-fixed-right-panel h2 {
    width: 100%;

    margin: 10px 0 20px;

    color: #0f2e21;

    font-size: 30px;

    font-weight: 700;

    text-align: center;
}


/* =========================================
   BLUE BOX
========================================= */

.desktop-fixed-blue-box {
    width: 100%;

    max-width: 600px;

    border: 3px solid #1c82e6;

    border-radius: 12px;

    background: #f1f9f5;

    padding: 25px;

    display: flex;

    flex-direction: column;

    align-items: center;

    box-sizing: border-box;
}


/* =========================================
   CUP AREA
========================================= */

.desktop-fixed-cup-zone {
    --cup-zone-width: clamp(200px, 22vw, 260px);
    --cup-zone-height: clamp(360px, 40vw, 470px);
    --cup-body-width: clamp(150px, 17vw, 190px);
    --cup-body-height: clamp(210px, 27vw, 260px);
    --cup-body-bottom: clamp(23px, 3vw, 35px);
    --cup-rim-width: clamp(170px, 18vw, 205px);
    --cup-rim-height: clamp(22px, 2.6vw, 28px);
    --cup-rim-top: clamp(-18px, -1.4vw, -20px);
    --cup-inner-width: clamp(120px, 13vw, 150px);
    --cup-inner-height: clamp(160px, 19vw, 200px);
    --cup-inner-bottom: clamp(10px, 1vw, 15px);
    --cup-handle-width: clamp(62px, 7vw, 80px);
    --cup-handle-height: clamp(92px, 11vw, 120px);
    --cup-handle-right: clamp(14px, 2vw, 20px);
    --cup-handle-top: clamp(120px, 12vw, 145px);
    --liquid-width: clamp(150px, 15vw, 170px);
    --liquid-height: clamp(170px, 20vw, 210px);
    --liquid-bottom: clamp(34px, 4vw, 50px);
    --drop-text-size: 14px;

    position: relative;

    width: var(--cup-zone-width);

    height: var(--cup-zone-height);

    display: flex;

    justify-content: center;

    align-items: flex-end;

    margin-bottom: 25px;

    transition: transform 0.2s ease, width 0.3s ease, height 0.3s ease;

    box-sizing: border-box;
}

.desktop-fixed-cup-zone.drag-hover {
    transform: scale(1.03);
}

.desktop-fixed-cup-zone.cup-size-s {
    --cup-zone-width: clamp(150px, 17vw, 220px);
    --cup-zone-height: clamp(260px, 32vw, 390px);
    --cup-body-width: clamp(106px, 12vw, 146px);
    --cup-body-height: clamp(150px, 18vw, 200px);
    --cup-body-bottom: clamp(20px, 2.4vw, 28px);
    --cup-rim-width: clamp(130px, 15vw, 165px);
    --cup-rim-height: clamp(18px, 2vw, 24px);
    --cup-rim-top: clamp(-12px, -1.2vw, -15px);
    --cup-inner-width: clamp(90px, 10vw, 110px);
    --cup-inner-height: clamp(120px, 14vw, 150px);
    --cup-inner-bottom: clamp(8px, 1vw, 12px);
    --cup-handle-width: clamp(42px, 5vw, 58px);
    --cup-handle-height: clamp(72px, 8vw, 92px);
    --cup-handle-right: clamp(9px, 1.2vw, 12px);
    --cup-handle-top: clamp(86px, 9vw, 110px);
    --liquid-width: clamp(96px, 11vw, 120px);
    --liquid-height: clamp(120px, 14vw, 150px);
    --liquid-bottom: clamp(24px, 3vw, 38px);
    --drop-text-size: 10px;
}

.desktop-fixed-cup-zone.cup-size-m {
    --cup-zone-width: clamp(200px, 23vw, 290px);
    --cup-zone-height: clamp(340px, 38vw, 470px);
    --cup-body-width: clamp(150px, 16vw, 190px);
    --cup-body-height: clamp(210px, 22vw, 260px);
    --cup-body-bottom: clamp(24px, 3vw, 35px);
    --cup-rim-width: clamp(170px, 17vw, 205px);
    --cup-rim-height: clamp(22px, 2.4vw, 28px);
    --cup-rim-top: clamp(-16px, -1.5vw, -20px);
    --cup-inner-width: clamp(120px, 13vw, 150px);
    --cup-inner-height: clamp(160px, 18vw, 200px);
    --cup-inner-bottom: clamp(10px, 1.2vw, 15px);
    --cup-handle-width: clamp(58px, 6vw, 80px);
    --cup-handle-height: clamp(92px, 10vw, 120px);
    --cup-handle-right: clamp(14px, 1.9vw, 20px);
    --cup-handle-top: clamp(112px, 12vw, 145px);
    --liquid-width: clamp(135px, 14vw, 170px);
    --liquid-height: clamp(170px, 19vw, 210px);
    --liquid-bottom: clamp(32px, 4vw, 50px);
    --drop-text-size: 13px;
}

.desktop-fixed-cup-zone.cup-size-l {
    --cup-zone-width: clamp(240px, 28vw, 350px);
    --cup-zone-height: clamp(400px, 44vw, 540px);
    --cup-body-width: clamp(176px, 19vw, 225px);
    --cup-body-height: clamp(245px, 27vw, 310px);
    --cup-body-bottom: clamp(28px, 3.6vw, 42px);
    --cup-rim-width: clamp(200px, 21vw, 245px);
    --cup-rim-height: clamp(25px, 2.8vw, 32px);
    --cup-rim-top: clamp(-18px, -2vw, -25px);
    --cup-inner-width: clamp(145px, 16vw, 185px);
    --cup-inner-height: clamp(200px, 22vw, 250px);
    --cup-inner-bottom: clamp(12px, 1.4vw, 18px);
    --cup-handle-width: clamp(68px, 7vw, 90px);
    --cup-handle-height: clamp(106px, 12vw, 140px);
    --cup-handle-right: clamp(18px, 2.4vw, 28px);
    --cup-handle-top: clamp(142px, 14vw, 175px);
    --liquid-width: clamp(165px, 17vw, 200px);
    --liquid-height: clamp(200px, 22vw, 250px);
    --liquid-bottom: clamp(40px, 4.8vw, 58px);
    --drop-text-size: 16px;
}

.cup-body {
    position: absolute;
    bottom: var(--cup-body-bottom);
    left: 50%;
    transform: translateX(-50%);
    width: var(--cup-body-width);
    height: var(--cup-body-height);
    background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(238,247,242,0.9) 15%, rgba(236,246,240,0.9) 100%);
    border: 8px solid #eff8f3;
    border-top: 12px solid #f7fcf9;
    border-bottom-left-radius: 42px;
    border-bottom-right-radius: 42px;
    box-shadow: inset -12px 0 18px rgba(68,108,90, 0.12), inset 12px 0 18px rgba(255,255,255,0.8), 0 20px 30px rgba(12,40,28,0.14);
    z-index: 3;
    transition: width 0.3s ease, height 0.3s ease, bottom 0.3s ease;
}

.cup-rim {
    position: absolute;
    left: 50%;
    top: var(--cup-rim-top);
    transform: translateX(-50%);
    width: var(--cup-rim-width);
    height: var(--cup-rim-height);
    background: linear-gradient(180deg, #f8fdfa 0%, #e6f3ec 100%);
    border-radius: 50% 50% 48% 48%;
    border: 8px solid #eaf5ef;
    box-shadow: inset 0 2px 6px rgba(255,255,255,0.85);
    transition: width 0.3s ease, height 0.3s ease, top 0.3s ease;
}

.cup-inner {
    position: absolute;
    left: 50%;
    bottom: var(--cup-inner-bottom);
    transform: translateX(-50%);
    width: var(--cup-inner-width);
    height: var(--cup-inner-height);
    background: rgba(255,255,255,0.12);
    border-radius: 0 0 30px 30px;
    border: 2px solid rgba(70,110,92, 0.08);
    transition: width 0.3s ease, height 0.3s ease, bottom 0.3s ease;
}

.cup-handle {
    position: absolute;
    right: var(--cup-handle-right);
    top: var(--cup-handle-top);
    width: var(--cup-handle-width);
    height: var(--cup-handle-height);
    border: 10px solid #eaf5ef;
    border-left: none;
    border-radius: 0 54px 54px 0;
    box-shadow: inset -10px 0 12px rgba(75,112,95, 0.08);
    z-index: 2;
    transition: width 0.3s ease, height 0.3s ease, right 0.3s ease, top 0.3s ease;
}


/* =========================================
   LIQUID INSIDE CUP
========================================= */

#liquid-layer-container {
    position: absolute;

    bottom: var(--liquid-bottom);

    left: 50%;

    transform: translateX(-50%);

    width: var(--liquid-width);

    height: var(--liquid-height);

    display: flex;

    flex-direction: column-reverse;

    align-items: stretch;

    overflow: hidden;

    border-bottom-left-radius: 35px;

    border-bottom-right-radius: 35px;

    z-index: 4;

    pointer-events: none;
    transition: width 0.3s ease, height 0.3s ease, bottom 0.3s ease;
}


/* =========================================
   LIQUID LAYER
========================================= */

.liquid-layer {
    width: 100%;
    height: 0;
    transition: height 0.45s ease, transform 0.2s ease;
    opacity: 0.9;
    flex-shrink: 0;
    border-radius: 12px 12px 0 0;
    box-shadow: inset 0 12px 16px rgba(255,255,255,0.18);
}


/* =========================================
   DROP TEXT
========================================= */

.drop-text {
    position: absolute;

    top: 50%;

    left: 50%;

    transform: translate(-50%, -50%);

    color: #888888;

    font-size: var(--drop-text-size, 14px);
    font-weight: bold;

    text-align: center;

    white-space: normal;
    line-height: 1.2;
    max-width: 90%;

    pointer-events: none;

    z-index: 1;
}


/* =========================================
   CUP ACTION BUTTONS
========================================= */

.cup-action-controls {
    display: flex;

    justify-content: center;

    align-items: center;

    gap: 20px;

    margin-bottom: 20px;

    width: 100%;
}

.ctrl-btn {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 10px 22px;

    border-radius: var(--bl-radius-pill, 25px);

    border: 1.5px solid var(--bl-cream-deep, #ddd);

    background: #ffffff;

    color: var(--bl-brown-dark, #0f2e21);

    cursor: pointer;

    transition: 0.2s;

    font-size: 14px;

    font-weight: 700;
}

.ctrl-btn:hover {
    background: var(--bl-brown, #1f5a41);

    color: #ffffff;

    border-color: var(--bl-brown, #1f5a41);

    transform: translateY(-2px);

    box-shadow: 0 6px 14px rgba(15,46,33, 0.25);
}

.ctrl-icon {
    width: 18px;

    height: 18px;

    fill: currentColor;
}


/* =========================================
   SUGGESTION BOX
========================================= */

.suggestion-footer-box {
    width: 100%;

    background: #dddddd;

    border-radius: 6px;

    padding: 15px;

    text-align: center;

    color: #777777;

    font-size: 12px;

    font-weight: bold;

    box-sizing: border-box;
}


/* =========================================
   CART
========================================= */

.action-bar {
    display: flex;

    justify-content: flex-end;

    padding: 10px 35px 0;

    box-sizing: border-box;
}

.cart-link {
    width: 40px;

    height: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #ffffff;

    border: 2px solid #1f5a41;

    transition: 0.25s;

    text-decoration: none;

    box-sizing: border-box;
}

.cart-link:hover {
    background: #1f5a41;

    transform: translateY(-2px);
}

.cart-icon {
    width: 20px;

    height: 20px;

    stroke: #1f5a41;

    stroke-width: 2;

    fill: none;

    transition: 0.25s;
}

.cart-link:hover .cart-icon {
    stroke: #ffffff;
}


/* =========================================
   BACK BUTTON
========================================= */

.back-button {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    padding: 8px 16px;

    border-radius: 7px;

    background: transparent;

    color: #ffffff;

    text-decoration: none;

    font-weight: 600;

    transition: 0.25s;
}

.back-button:hover {
    background: #1f5a41;

    color: #ffffff;

    transform: translateX(-2px);
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .customize-header {
        height: 60px;
        padding: 0 15px;
    }

    .category-title {
        font-size: 1.4rem;
        margin: 15px 0 8px;
    }

    .action-bar {
        padding: 8px 15px 0;
    }

    .cart-link {
        width: 36px;
        height: 36px;
    }

    .cart-icon {
        width: 18px;
        height: 18px;
    }

    .customize-container {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 8px;
        padding: 8px 10px 12px;
        width: 100%;
        box-sizing: border-box;
    }

    .left-panel {
        width: 39%;
        flex-shrink: 0;
        gap: 10px;
    }

    .panel-box {
        padding: 10px;
        border-radius: 9px;
    }

    .panel-box h3 {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .panel-box button {
        padding: 7px;
        font-size: 11px;
        margin: 4px 0;
    }

    .panel-box p {
        font-size: 11px;
        padding: 6px;
        margin: 6px 0;
    }

    .ingredient {
        padding: 7px 5px;
        font-size: 10px;
    }

    .summary-box {
        min-height: 88px;
        font-size: 10px;
        margin: 10px 0;
    }

    .total-box {
        font-size: 12px;
    }

    .order-btn,
    .add-cart-btn {
        padding: 9px;
        font-size: 11px;
    }

    .desktop-fixed-right-panel {
        width: 61%;
        flex: none;
        padding: 8px;
        min-width: 0;
    }

    .desktop-fixed-right-panel h2 {
        font-size: 14px;
        margin: 5px 0 10px;
    }

    .desktop-fixed-blue-box {
        padding: 10px 8px 12px;
        width: 100%;
        max-width: 100%;
    }

    .desktop-fixed-cup-zone {
        width: var(--cup-zone-width);
        height: var(--cup-zone-height);
        margin: 0 auto 12px;
    }

    .desktop-fixed-cup-zone.cup-size-s {
        --cup-zone-width: 128px;
        --cup-zone-height: 210px;
        --cup-body-width: 90px;
        --cup-body-height: 120px;
        --cup-body-bottom: 18px;
        --cup-rim-width: 112px;
        --cup-rim-height: 14px;
        --cup-rim-top: -8px;
        --cup-inner-width: 74px;
        --cup-inner-height: 88px;
        --cup-inner-bottom: 7px;
        --cup-handle-width: 28px;
        --cup-handle-height: 42px;
        --cup-handle-right: 6px;
        --cup-handle-top: 52px;
        --liquid-width: 80px;
        --liquid-height: 88px;
        --liquid-bottom: 22px;
    }

    .desktop-fixed-cup-zone.cup-size-m {
        --cup-zone-width: 150px;
        --cup-zone-height: 250px;
        --cup-body-width: 110px;
        --cup-body-height: 145px;
        --cup-body-bottom: 20px;
        --cup-rim-width: 134px;
        --cup-rim-height: 16px;
        --cup-rim-top: -10px;
        --cup-inner-width: 90px;
        --cup-inner-height: 112px;
        --cup-inner-bottom: 8px;
        --cup-handle-width: 34px;
        --cup-handle-height: 54px;
        --cup-handle-right: 8px;
        --cup-handle-top: 68px;
        --liquid-width: 100px;
        --liquid-height: 108px;
        --liquid-bottom: 24px;
    }

    .desktop-fixed-cup-zone.cup-size-l {
        --cup-zone-width: 170px;
        --cup-zone-height: 290px;
        --cup-body-width: 126px;
        --cup-body-height: 166px;
        --cup-body-bottom: 22px;
        --cup-rim-width: 150px;
        --cup-rim-height: 18px;
        --cup-rim-top: -12px;
        --cup-inner-width: 104px;
        --cup-inner-height: 130px;
        --cup-inner-bottom: 10px;
        --cup-handle-width: 40px;
        --cup-handle-height: 60px;
        --cup-handle-right: 10px;
        --cup-handle-top: 78px;
        --liquid-width: 116px;
        --liquid-height: 130px;
        --liquid-bottom: 28px;
    }

    .cup-body {
        width: var(--cup-body-width);
        height: var(--cup-body-height);
        bottom: var(--cup-body-bottom);
    }

    .cup-rim {
        width: var(--cup-rim-width);
        height: var(--cup-rim-height);
        top: var(--cup-rim-top);
    }

    .cup-inner {
        width: var(--cup-inner-width);
        height: var(--cup-inner-height);
        bottom: var(--cup-inner-bottom);
    }

    .cup-handle {
        width: var(--cup-handle-width);
        height: var(--cup-handle-height);
        right: var(--cup-handle-right);
        top: var(--cup-handle-top);
    }

    #liquid-layer-container {
        width: var(--liquid-width);
        height: var(--liquid-height);
        bottom: var(--liquid-bottom);
    }

    .drop-text {
        font-size: 10px;
        white-space: normal;
        width: 100px;
        text-align: center;
    }
}


/* =========================================
   VERY SMALL PHONES
========================================= */

@media (max-width: 480px) {
    .customize-container {
        gap: 7px;
        padding: 7px;
    }

    .left-panel {
        width: 41%;
    }

    .desktop-fixed-right-panel {
        width: 59%;
        padding: 7px;
    }

    .desktop-fixed-blue-box {
        padding: 7px;
    }

    .desktop-fixed-cup-zone {
        width: var(--cup-zone-width);
        height: var(--cup-zone-height);
        margin: 0 auto 10px;
    }

    .desktop-fixed-cup-zone.cup-size-s {
        --cup-zone-width: 102px;
        --cup-zone-height: 180px;
        --cup-body-width: 72px;
        --cup-body-height: 96px;
        --cup-body-bottom: 14px;
        --cup-rim-width: 86px;
        --cup-rim-height: 12px;
        --cup-rim-top: -7px;
        --cup-inner-width: 56px;
        --cup-inner-height: 72px;
        --cup-inner-bottom: 6px;
        --cup-handle-width: 24px;
        --cup-handle-height: 38px;
        --cup-handle-right: 6px;
        --cup-handle-top: 50px;
        --liquid-width: 62px;
        --liquid-height: 72px;
        --liquid-bottom: 18px;
    }

    .desktop-fixed-cup-zone.cup-size-m {
        --cup-zone-width: 122px;
        --cup-zone-height: 220px;
        --cup-body-width: 90px;
        --cup-body-height: 122px;
        --cup-body-bottom: 16px;
        --cup-rim-width: 106px;
        --cup-rim-height: 14px;
        --cup-rim-top: -8px;
        --cup-inner-width: 72px;
        --cup-inner-height: 96px;
        --cup-inner-bottom: 7px;
        --cup-handle-width: 30px;
        --cup-handle-height: 46px;
        --cup-handle-right: 7px;
        --cup-handle-top: 60px;
        --liquid-width: 80px;
        --liquid-height: 88px;
        --liquid-bottom: 20px;
    }

    .desktop-fixed-cup-zone.cup-size-l {
        --cup-zone-width: 142px;
        --cup-zone-height: 255px;
        --cup-body-width: 108px;
        --cup-body-height: 138px;
        --cup-body-bottom: 18px;
        --cup-rim-width: 124px;
        --cup-rim-height: 16px;
        --cup-rim-top: -10px;
        --cup-inner-width: 88px;
        --cup-inner-height: 110px;
        --cup-inner-bottom: 9px;
        --cup-handle-width: 34px;
        --cup-handle-height: 52px;
        --cup-handle-right: 8px;
        --cup-handle-top: 70px;
        --liquid-width: 94px;
        --liquid-height: 108px;
        --liquid-bottom: 22px;
    }

    #liquid-layer-container {
        width: var(--liquid-width);
        height: var(--liquid-height);
        bottom: var(--liquid-bottom);
    }

    .ingredient {
        font-size: 10px;
        padding: 7px 3px;
    }

    .panel-box {
        padding: 9px;
    }

    .panel-box h3 {
        font-size: 12px;
    }

    .ctrl-btn {
        padding: 5px 7px;
    }
}

@media (max-width: 375px) {
    .customize-container {
        gap: 6px;
        padding: 6px;
    }

    .left-panel {
        width: 42%;
    }

    .desktop-fixed-right-panel {
        width: 58%;
        padding: 6px;
    }

    .desktop-fixed-cup-zone {
        width: var(--cup-zone-width);
        height: var(--cup-zone-height);
        margin: 0 auto 8px;
    }

    .desktop-fixed-cup-zone.cup-size-s {
        --cup-zone-width: 92px;
        --cup-zone-height: 160px;
        --cup-body-width: 62px;
        --cup-body-height: 84px;
        --cup-body-bottom: 12px;
        --cup-rim-width: 76px;
        --cup-rim-height: 11px;
        --cup-rim-top: -6px;
        --cup-inner-width: 46px;
        --cup-inner-height: 58px;
        --cup-inner-bottom: 5px;
        --cup-handle-width: 22px;
        --cup-handle-height: 34px;
        --cup-handle-right: 5px;
        --cup-handle-top: 44px;
        --liquid-width: 50px;
        --liquid-height: 60px;
        --liquid-bottom: 16px;
    }

    .desktop-fixed-cup-zone.cup-size-m {
        --cup-zone-width: 112px;
        --cup-zone-height: 200px;
        --cup-body-width: 80px;
        --cup-body-height: 104px;
        --cup-body-bottom: 14px;
        --cup-rim-width: 92px;
        --cup-rim-height: 13px;
        --cup-rim-top: -8px;
        --cup-inner-width: 64px;
        --cup-inner-height: 82px;
        --cup-inner-bottom: 6px;
        --cup-handle-width: 27px;
        --cup-handle-height: 40px;
        --cup-handle-right: 6px;
        --cup-handle-top: 53px;
        --liquid-width: 68px;
        --liquid-height: 80px;
        --liquid-bottom: 18px;
    }

    .desktop-fixed-cup-zone.cup-size-l {
        --cup-zone-width: 130px;
        --cup-zone-height: 232px;
        --cup-body-width: 94px;
        --cup-body-height: 118px;
        --cup-body-bottom: 16px;
        --cup-rim-width: 108px;
        --cup-rim-height: 14px;
        --cup-rim-top: -9px;
        --cup-inner-width: 78px;
        --cup-inner-height: 96px;
        --cup-inner-bottom: 8px;
        --cup-handle-width: 32px;
        --cup-handle-height: 46px;
        --cup-handle-right: 7px;
        --cup-handle-top: 61px;
        --liquid-width: 82px;
        --liquid-height: 96px;
        --liquid-bottom: 20px;
    }
}

/* =========================================
   BACK BUTTON
========================================= */

.back-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;

    padding:7px 18px;

    background:rgba(255,255,255,0.14);
    color:#eaf7f0;

    border:1.5px solid rgba(255,255,255,0.5);
    border-radius:var(--bl-radius-pill, 999px);

    font-size:15px;
    font-weight:700;

    text-decoration:none;

    transition:all .2s ease;
}

/* Hover */
.back-button:hover{

    background:#ffffff;
    color:var(--bl-brown-dark, #0f2e21);

    border-color:#ffffff;

    transform:translateY(-2px);

    box-shadow:0 6px 14px rgba(0,0,0,.20);
}

/* Click */
.back-button:active{
    transform:scale(.97);
}

/* phones: a full-size tap target */
@media (max-width: 768px){
    .back-button{ min-height:44px; padding:8px 18px; }
}

/* ===== one font for the whole system: Josefin Sans ===== */
:root { --bs-body-font-family: 'Josefin Sans', sans-serif; }

body,
button,
input,
select,
textarea {
  font-family: 'Josefin Sans', sans-serif;
}

body { font-weight: 500; }

h1, h2, h3, h4, h5, h6 { font-family: 'Josefin Sans', sans-serif; }

/* customize page: Brew ID looks the same as on the category page */
.customize-header { background: var(--bl-brown-dark, #0f2e21); }

.customize-brewid {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #c9dbd1;
}