body{
font-family: 'Stylish', "Roboto Slab", serif;
background:#ffffff;
margin:0;
padding:40px;
padding-top: 150px;
}

/* PRODUCT LAYOUT */

.product-container{
display:flex;
gap:40px;
}

/* IMAGES */

.product-images{
display:flex;
gap:20px;
}

.thumbnail-images{
display:flex;
flex-direction:column;
gap:10px;
flex-wrap: wrap;
}

.thumbnail-images img{
width:50px;
cursor:pointer;
border:1px solid #ddd;
}

.main-image img{
width:400px;
}

/* PRODUCT DETAILS */

.product-details{
max-width:450px;
}

.product-details h1{
font-size:28px;
}

.price{
font-size:20px;
margin:15px 0;
}

.old{
text-decoration:line-through;
color:gray;
margin-right:10px;
}

.new{
color:#e63946;
font-weight:bold;
}

/* BUTTONS */

.flavours button,
.weights button{
padding:10px 20px;
margin:5px;
border:1px solid #ccc;
cursor:pointer;
background:white;
}

.buttons{
margin-top:20px;
}

.buy{
background:#f4b400;
border:none;
padding:12px 30px;
font-size:16px;
cursor:pointer;
margin-right:10px;
}

.cart{
background:#f4b400;
border:none;
padding:12px 30px;
font-size:16px;
cursor:pointer;
}

/* TABS */

.tabs-container{
margin-top:50px;
}

.tabs{
display:flex;
gap:20px;
border-bottom:2px solid #ddd;
}

.tabs button{
background:none;
border:none;
padding:15px;
cursor:pointer;
font-weight:bold;
}

.tabs button.active{
background:#f4b400;
}

.tab-content{
display:none;
padding:20px 0;
}

.tab-content.active{
display:block;
}

.flavours button.active,
.weights button.active{
background:#f4b400;
color:white;
border:none;
}

table{
width:100%;
border-collapse:collapse;
margin-top:20px;
}

table th{
background:#f4b400;
color:black;
}

table th, table td{
text-align:left;
padding:10px;
border:1px solid #ddd;
}

/* BUTTON PRESS EFFECT */

.buy, .cart{
transition: all 0.15s ease;
box-shadow: 0 4px 0 #c08f00;
}

/* When clicked */

.buy:active,
.cart:active{
transform: translateY(3px);
box-shadow: 0 1px 0 #c08f00;
}

.buy:hover,
.cart:hover{
background:#e6a800;
}


.back-btn{
background:#333;
color:white;
border:none;
padding:10px 20px;
cursor:pointer;
margin-bottom:20px;
font-size:14px;
}

.back-btn:hover{
background:#555;
}

@media (max-width:576px){

.product-container{
    display:flex;
    flex-direction:column;
    padding:15px;
}

.product-images{
    width:100%;
    text-align:center;
}

.product-details{
    width:100%;
    margin-top:20px;
}

}

/* ================= POPUP UPGRADE ================= */

/* TERMS POPUP */
.terms-popup-box{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.75);
display:none;
justify-content:center;
align-items:center;
z-index:9999;
backdrop-filter: blur(5px);
}

/* POPUP BOX */
.terms-content{
background:#111;
color:#fff;
padding:30px;
border-radius:15px;
text-align:center;
width:340px;
position:relative;
box-shadow:0 0 25px rgba(255,215,0,0.25);
animation: popupFade 0.3s ease;
}

/* TITLE */
.terms-content h3{
color:#f4b400;
margin-bottom:10px;
}

/* LINK */
.terms-link{
color:#f4b400;
font-weight:bold;
cursor:pointer;
text-decoration:underline;
}

/* CLOSE BUTTON */
.close-popup{
position:absolute;
top:10px;
right:15px;
font-size:18px;
cursor:pointer;
color:white;
}

.close-popup:hover{
color:red;
}

/* CHECKBOX */
.terms-check{
margin:15px 0;
font-size:14px;
}

/* BUTTON */
#continueBtn{
margin-top:10px;
padding:12px 25px;
background:#555;
border:none;
color:white;
font-weight:bold;
cursor:not-allowed;
border-radius:6px;
transition:0.3s;
}

/* ENABLED STATE */
#continueBtn.enabled{
background:#f4b400;
color:black;
cursor:pointer;
}

#continueBtn.enabled:hover{
background:#e6a800;
}

/* SUCCESS POPUP */
.cart-success-popup{
display:none;
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.75);
justify-content:center;
align-items:center;
z-index:9999;
}

.cart-success-box{
background:#111;
padding:30px;
border-radius:12px;
text-align:center;
color:white;
box-shadow:0 0 20px rgba(0,255,136,0.3);
animation: popupFade 0.3s ease;
}

.success-icon{
font-size:45px;
color:#00ff88;
margin-bottom:10px;
}

.cart-success-box button{
background:#f4b400;
border:none;
padding:10px 20px;
margin-top:10px;
cursor:pointer;
font-weight:bold;
border-radius:5px;
}

.cart-success-box button:hover{
background:#e6a800;
}

/* ANIMATION */
@keyframes popupFade{
from{
opacity:0;
transform:scale(0.8);
}
to{
opacity:1;
transform:scale(1);
}
}

/* Highlight link */

.terms-link{
color:#f4b400;
font-weight:bold;
cursor:pointer;
text-decoration:underline;
}

/* Close button */

.close-popup{
position:absolute;
top:10px;
right:15px;
font-size:18px;
cursor:pointer;
font-weight:bold;
}

.close-popup:hover{
color:red;
}

table{
    border-collapse: collapse;
    width: 100%;
    margin-top:20px;
}

th{
    background:#f4b400;
    color:black;
}

td, th{
    text-align:left;
}

#desc ul{
    margin-top:10px;
    padding-left:20px;
}

#desc li{
    margin-bottom:8px;
    font-weight:500;
}