*{
box-sizing:border-box;
margin:0;
padding:0;
}

body{
margin:0;
font-family:'Poppins',sans-serif;
background: linear-gradient(
  to bottom right,
  #FDF8F6,
  #FAF0EE,
  #F5E6E0
);
color:var(--text-dark);
}

/* ===============================
   Login Modal
================================ */

/* BACKDROP */
#loginModal.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

/* MODAL BOX */
#loginModal .modal-box {
    background: #ffffff;
    padding: 32px 28px;
    border-radius: 16px;
    width: 92%;
    max-width: 380px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    animation: loginModalFade 0.25s ease;
}

/* TITLE */
#loginModal h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 22px;
    text-align: center;
    color: #222;
}

/* INPUT FIELDS */
#loginModal input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    margin-bottom: 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

#loginModal input:focus {
    border-color: #b76e79;
    box-shadow: 0 0 0 2px rgba(230,57,70,0.12);
}

.btn-primary {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    padding: 14px 26px;
    background: var(--rose);
    color: #fff;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(183, 110, 121, 0.25);
    transition: all .25s ease;
    cursor: pointer;
}

/* CLOSE BUTTON */
#loginModal .modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 22px;
    cursor: pointer;
    border: none;
    background: none;
    color: #777;
    transition: all 0.2s;
}

#loginModal .modal-close:hover {
    color: #111;
    transform: scale(1.1);
}

/* OTP SECTION */
#loginModal #otpSection {
    margin-top: 6px;
}

/* FORCE OTP SECTION HIDDEN INITIALLY */
#loginModal #otpSection {
    display: none !important;
}

/* SHOW WHEN JS REMOVES hidden */
#loginModal #otpSection.show {
    display: block !important;
}

/* HIDDEN CLASS */
#loginModal.hidden {
    display: none;
}

/* ANIMATION */
@keyframes loginModalFade {
    from {
        opacity: 0;
        transform: translateY(15px) scale(.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =====================================
   Address Form Inputs
===================================== */
/* inputs + textarea */

#addressFormView input,
#addressFormView textarea{

width:100%;
padding:12px 14px;

border-radius:10px;
border:1px solid #e3e0db;

background:#faf9f8;
font-size:14px;
font-family:'Poppins',sans-serif;

transition:all .2s ease;

}

/* textarea height */

#addressFormView textarea{
resize:none;
min-height:70px;
}

/* focus effect */

#addressFormView input:focus,
#addressFormView textarea:focus{

outline:none;
border-color:#b76e79;

background:#fff;

box-shadow:0 0 0 3px rgba(183,110,121,0.12);

}

/* placeholder */

#addressFormView input::placeholder,
#addressFormView textarea::placeholder{

color:#9a9a9a;
font-size:13px;

}

/* responsive spacing */

@media(max-width:600px){

#addressFormView input,
#addressFormView textarea{
font-size:13px;
padding:11px 12px;
}

}

/* ===============================
   Custom Scrollbar
================================ */

body::-webkit-scrollbar-thumb{
opacity:0;
}

body:hover::-webkit-scrollbar-thumb{
opacity:1;
}

/* width */

::-webkit-scrollbar{
width:10px;
height:10px;
}

/* track */

::-webkit-scrollbar-track{
background:#FDF8F6;
border-radius:20px;
}

/* thumb */

::-webkit-scrollbar-thumb{
box-shadow:0 0 6px rgba(183,110,121,0.5);
}

::-webkit-scrollbar-thumb{
background:linear-gradient(
180deg,
#b76e79,
#d68b95
);
border-radius:20px;
border:2px solid #FDF8F6;
}

/* hover */

::-webkit-scrollbar-thumb:hover{
background:linear-gradient(
180deg,
#9e5a64,
#c77b86
);
}

/* Firefox */

*{
scrollbar-width:thin;
scrollbar-color:#b76e79 #FDF8F6;
}

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  min-width: 260px;
  max-width: 320px;
  padding: 14px 16px;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
  position: relative;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast-success { background: #16a34a; }
.toast-error   { background: #dc2626; }
.toast-warning { background: #f59e0b; }
.toast-info    { background: #2563eb; }

.toast-close {
  position: absolute;
  top: 6px;
  right: 8px;
  cursor: pointer;
  font-size: 14px;
  opacity: 0.8;
}
.toast-close:hover { opacity: 1; }

/* ===============================
   CONFIRM TOAST WITH PROGRESS
================================ */

.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #111;
  color: #fff;
  padding: 18px 22px;
  border-radius: 14px;
  min-width: 280px;
  max-width: 350px;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.25s ease;
  z-index: 999999;
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
  overflow: hidden;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-message {
  margin-bottom: 12px;
  font-size: 14px;
}

.toast-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.toast-btn {
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
}

.confirm-btn {
  background: #c0392b;
  color: #fff;
}

.cancel-btn {
  background: #eee;
  color: #111;
}

/* Progress bar */
.toast-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: rgba(255,255,255,0.1);
}

.toast-progress-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg,#ff4d4d,#c0392b);
}

/* ===============================
   Related Product Component CSS
================================ */

.related-products{
margin-top:60px;
}

.related-products h2{
font-size:22px;
margin-bottom:20px;
}

/* -----------------------------
RELATED PRODUCT SLIDER
------------------------------*/

.related-wrapper{
margin-top:60px;
}

.related-slider-container{
position:relative;
display:flex;
align-items:center;
}

.related-slider-container::before,
.related-slider-container::after{
content:"";
position:absolute;
top:0;
bottom:0;
width:70px;
z-index:3;
pointer-events:none;
}

/*
.related-slider-container::before{
left:0;
background:linear-gradient(
to right,
#f4ebe8,
rgba(244,235,232,0)
);
}

.related-slider-container::after{
right:0;
background:linear-gradient(
to left,
#f4ebe8,
rgba(244,235,232,0)
);
}

*/

/* horizontal slider */

.related-slider{
display:flex;
gap:22px;
overflow-x:auto;
scroll-behavior:smooth;
padding:10px 0;
scrollbar-width:none;
}

/* hide scrollbar */

.related-slider::-webkit-scrollbar{
display:none;
}

.related-slider{
scrollbar-width:none;
}

.related-nav{
position:absolute;
top:50%;
transform:translateY(-50%);
width:38px;
height:38px;
border-radius:50%;
border:none;
background:white;
box-shadow:0 8px 20px rgba(0,0,0,.15);
cursor:pointer;
font-size:18px;
z-index:5;
}

.related-nav.prev{
left:-18px;
}

.related-nav.next{
right:-18px;
}

.related-card{
flex:0 0 240px;
position:relative;
display:block;
background:#fff;
border-radius:20px;
padding:18px;
text-decoration:none;
color:#111;
overflow:hidden;
transition:all .25s ease;
box-shadow:0 10px 25px rgba(0,0,0,0.06);
}

.related-card:hover{
transform:translateY(-6px);
box-shadow:0 20px 40px rgba(0,0,0,0.08);
transition:all .25s ease;
}

.related-card::before{
content:"H&H";
position:absolute;
left:-10%;
bottom:-20px;
font-size:7.5em;
font-family:'Playfair Display',serif;
color:rgba(183, 110, 121, 0.1);
pointer-events:none;
}

.related-img-wrap img{
width:100%;
border-radius:14px;
margin-bottom:10px;
}

.related-img-wrap img{
width:100%;
height:200px;
object-fit:contain;
}

/* Discount badge */

.badge-sale{
position:absolute;
top:12px;
left:12px;
background:#ff4d6d;
color:#fff;
font-size:11px;
padding:4px 8px;
border-radius:8px;
}

/* Body */

.related-body{
padding:14px 16px 18px;
}

/* Title */

.related-title{
font-size:14px;
font-weight:600;
margin-bottom:6px;
}

/* ---RELATED PRODUCT RATING---*/

.related-rating{
display:flex;
align-items:center;
gap:6px;
font-size:13px;
color:#666;
margin-top:4px;
margin-bottom:8px;
}

/* SVG star */

.related-rating .rating-star{
display:flex;
align-items:center;
justify-content:center;
color:#f5b642;
}

.related-rating .rating-star svg{
width:14px;
height:14px;
fill:currentColor;

}

/* rating number */

.related-rating .rating-value{
font-weight:600;
font-size:13px;
color:#222;
}

/* bought counter */

.related-rating .bought{
  margin-left: 1rem;
  display:flex;
  align-items:center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  gap:6px;
  background: #3a8bff;
  padding:6px 10px;
  border-radius:20px;
  box-shadow: 0 6px 16px rgba(58,139,255,0.25);
}

/* Price */

.price-row{
display:flex;
align-items:center;
gap:8px;
}

.price{
font-weight:600;
color:#111;
}

.mrp{
text-decoration:line-through;
color:#888;
font-size:13px;
}

/* ===============================
   trending Product Component CSS
================================ */

.trending-products{
width:100%;
margin-top:60px;
}

.trending-products h2{
font-size:22px;
margin-bottom:20px;
}

/* -----------------------------
trending PRODUCT SLIDER
------------------------------*/

.trending-wrapper{
grid-column: 1 / -1;
max-width:1100px;
margin:40px auto 0;
padding:0 20px;
border-top:1px solid #eee;
margin-top:40px;
padding-top:40px;
}

.trending-slider-container{
position:relative;
display:flex;
align-items:center;
}

.trending-slider-container::before,
.trending-slider-container::after{
content:"";
position:absolute;
top:0;
bottom:0;
width:70px;
z-index:3;
pointer-events:none;
}
/*

.trending-slider-container::before{
left:0;
background:linear-gradient(
to right,
#f4ebe8,
rgba(244,235,232,0)
);
}

.trending-slider-container::after{
right:0;
background:linear-gradient(
to left,
#f4ebe8,
rgba(244,235,232,0)
);
}

*/
/* horizontal slider */

.trending-slider{
display:flex;
gap:22px;
overflow-x:auto;
scroll-behavior:smooth;
padding:10px 0;
scrollbar-width:none;
width:100%;
}

/* hide scrollbar */

.trending-slider::-webkit-scrollbar{
display:none;
}

.trending-slider{
scrollbar-width:none;
}

.trending-nav{
position:absolute;
top:50%;
transform:translateY(-50%);
width:38px;
height:38px;
border-radius:50%;
border:none;
background:white;
box-shadow:0 8px 20px rgba(0,0,0,.15);
cursor:pointer;
font-size:18px;
z-index:5;
}

.trending-nav.prev{
left:-18px;
}

.trending-nav.next{
right:-18px;
}

.trending-card{
flex:0 0 240px;
min-width:240px;
position:relative;
display:block;
background:#fff;
border-radius:20px;
padding:18px;
text-decoration:none;
color:#111;
overflow:hidden;
transition:all .25s ease;
box-shadow:0 10px 25px rgba(0,0,0,0.06);
}

.trending-card:hover{
transform:translateY(-6px);
box-shadow:0 20px 40px rgba(0,0,0,0.08);
transition:all .25s ease;
}

.trending-card::before{
content:"H&H";
position:absolute;
left:-10%;
bottom:-20px;
font-size:7.5em;
font-family:'Playfair Display',serif;
color:rgba(183, 110, 121, 0.1);
pointer-events:none;
}

.trending-img-wrap img{
width:100%;
border-radius:14px;
margin-bottom:10px;
}

.trending-img-wrap img{
width:100%;
height:200px;
object-fit:contain;
}

/* Discount badge */

.badge-sale{
position:absolute;
top:12px;
left:12px;
background:#ff4d6d;
color:#fff;
font-size:11px;
padding:4px 8px;
border-radius:8px;
}

/* Body */

.trending-body{
padding:14px 16px 18px;
}

/* Title */

.trending-title{
font-size:14px;
font-weight:600;
margin-bottom:6px;
}

.trending-variant{
font-size:12px;
color:#777;
margin-bottom:6px;
}

/* ---trending PRODUCT RATING---*/

.trending-rating{
display:flex;
align-items:center;
gap:6px;
font-size:13px;
color:#666;
margin-top:4px;
margin-bottom:8px;
}

/* SVG star */

.trending-rating .rating-star{
display:flex;
align-items:center;
justify-content:center;
color:#f5b642;
}

.trending-rating .rating-star svg{
width:14px;
height:14px;
fill:currentColor;

}

/* rating number */

.trending-rating .rating-value{
font-weight:600;
font-size:13px;
color:#222;
}

/* bought counter */

.trending-rating .bought{
  margin-left: 1rem;
  display:flex;
  align-items:center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  gap:6px;
  background: #3a8bff;
  padding:6px 10px;
  border-radius:20px;
  box-shadow: 0 6px 16px rgba(58,139,255,0.25);
}

/* Price */

.price-row{
display:flex;
align-items:center;
gap:8px;
}

.price{
font-weight:600;
color:#111;
}

.mrp{
text-decoration:line-through;
color:#888;
font-size:13px;
}

.purchase-popup{

position:fixed;
bottom:25px;
left:25px;

width:320px;
background:#fff;

border-radius:14px;

display:flex;
gap:12px;
padding:12px;

box-shadow:0 15px 40px rgba(0,0,0,0.2);

z-index:9999;

animation:popupSlide .4s ease;
}

@keyframes popupSlide{
from{
transform:translateY(40px);
opacity:0;
}
to{
transform:translateY(0);
opacity:1;
}
}

.popup-close{
position:absolute;
top:6px;
right:8px;
border:none;
background:none;
font-size:18px;
cursor:pointer;
}

.purchase-popup img{
width:70px;
height:70px;
object-fit:cover;
border-radius:10px;
}

.popup-stars{
color:#f5b642;
font-size:14px;
margin-bottom:4px;
}

.popup-product{
font-size:12px;
color:#666;
margin-top:4px;
}

/* ---Gift Widget---*/

.gift-widget{
position:fixed;
bottom:120px;
left:25px;
z-index:99999;
font-family:Poppins;
}

/* icon */

.gift-icon{
width:60px;
height:60px;
background:#fff;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
font-size:28px;
cursor:pointer;
box-shadow:0 10px 25px rgba(0,0,0,.2);
position:relative;
}

.gift-badge{
position:absolute;
top:-5px;
right:-5px;
background:#ff4d6d;
color:#fff;
font-size:12px;
padding:4px 6px;
border-radius:50%;
}

/* popup */

.gift-popup{
position:absolute;
bottom:75px;
left:0;
width:320px;
background:#fff;
border-radius:16px;
box-shadow:0 20px 40px rgba(0,0,0,.2);
padding:18px;
display:none;
animation:giftFade .3s ease;
}

@keyframes giftFade{
from{
opacity:0;
transform:translateY(20px);
}
to{
opacity:1;
transform:translateY(0);
}
}

.gift-header{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:8px;
}

.gift-header h3{
font-size:16px;
margin:0;
}

.gift-header button{
background:none;
border:none;
font-size:20px;
cursor:pointer;
}

.gift-sub{
font-size:13px;
color:#666;
margin-bottom:12px;
}

.gift-condition{
background:#f5f5f5;
padding:10px;
border-radius:10px;
font-size:13px;
margin-bottom:14px;
}

.gift-product{
display:flex;
gap:12px;
align-items:center;
}

.gift-product img{
width:60px;
border-radius:8px;
}

.gift-price{
font-size:14px;
color:#00a651;
}

.gift-mrp{
text-decoration:line-through;
color:#999;
margin-left:6px;
}

/* =====================================================
   PRODUCT SLIDERS RESPONSIVE (CART PAGE SAFE)
===================================================== */

/* TABLET */

@media (max-width: 1024px){

.related-wrapper,
.trending-wrapper{
padding:0 16px;
}

.related-nav,
.trending-nav{
width:34px;
height:34px;
}

.related-card,
.trending-card{
flex:0 0 220px;
min-width:220px;
}

.related-img-wrap img,
.trending-img-wrap img{
height:180px;
}

}

/* MOBILE */

@media (max-width: 768px){

.related-slider-container::before,
.related-slider-container::after,
.trending-slider-container::before,
.trending-slider-container::after{
width:40px;
}

.related-nav,
.trending-nav{
display:none; /* swipe instead */
}

.related-card,
.trending-card{
flex:0 0 200px;
min-width:200px;
}

.related-slider,
.trending-slider{
gap:16px;
padding:10px 0 14px;
}

.related-img-wrap img,
.trending-img-wrap img{
height:160px;
}

}

/* SMALL MOBILE */

@media (max-width: 480px){

.related-wrapper,
.trending-wrapper{
margin-top:40px;
padding-top:30px;
}

.related-card,
.trending-card{
flex:0 0 180px;
min-width:180px;
padding:14px;
}

.related-img-wrap img,
.trending-img-wrap img{
height:140px;
}

.related-title,
.trending-title{
font-size:13px;
}

.price{
font-size:14px;
}

.mrp{
font-size:12px;
}

}

/* Slider safety inside cart grid */
.trending-wrapper,
.related-wrapper{
width:100%;
max-width:1100px;
overflow:hidden;
}

.trending-slider,
.related-slider{
max-width:100%;
}

/* VERY SMALL DEVICES */

@media (max-width: 360px){

.related-card,
.trending-card{
flex:0 0 160px;
min-width:160px;
}

.related-img-wrap img,
.trending-img-wrap img{
height:120px;
}

}

.fbt-wrapper{
max-width:1100px;
margin:40px auto;
padding:0 20px;
}

.fbt-section{
background:#fff;
border-radius:16px;
padding:24px;
box-shadow:0 6px 30px rgba(0,0,0,0.05);
}

.fbt-section h2{
font-size:22px;
margin-bottom:18px;
}

.fbt-products{
display:flex;
justify-content:center;
align-items:flex-start;
gap:28px;
flex-wrap:wrap;
text-align:center;
}

.fbt-item{
display:flex;
flex-direction:column;
align-items:center;
width:140px;
}

.fbt-item img{
width:90px;
height:90px;
object-fit:contain;
border-radius:10px;
background:#fff;
padding:6px;
}

.fbt-item-title{
font-size:14px;
font-weight:600;
margin-top:6px;
}

.fbt-variant{
font-size:12px;
color:#666;
}

.fbt-price{
display:flex;
flex-direction:column;
align-items:center;
gap:2px;
}

.fbt-mrp{
text-decoration:line-through;
color:#999;
font-size:12px;
}

.fbt-sale{
font-weight:600;
font-size:14px;
}

.fbt-discount{
color:#16a34a;
font-size:12px;
}

.fbt-plus{
font-size:26px;
font-weight:600;
color:#999;
align-self:center;
margin-top:30px;
}

.fbt-footer{
margin-top:20px;
display:flex;
justify-content:center;
align-items:center;
gap:24px;
flex-wrap:wrap;
}

.fbt-total{
font-weight:700;
font-size:16px;
}

.fbt-save{
color:#16a34a;
font-size:14px;
}

.fbt-gift{
background:#16a34a;
color:#fff;
font-size:11px;
padding:3px 8px;
border-radius:20px;
margin-top:4px;
}

.fbt-select{
cursor:pointer;
}

.fbt-checkbox{
margin-bottom:6px;
}

.fbt-card{
display:flex;
flex-direction:column;
align-items:center;
gap:4px;
}

.fbt-card img{
width:95px;
height:95px;
object-fit:contain;
border-radius:12px;
background:#fff;
padding:8px;
box-shadow:0 4px 14px rgba(0,0,0,0.06);
}

/* MOBILE */

@media(max-width:700px){

.fbt-products{
overflow-x:auto;
flex-wrap:nowrap;
padding-bottom:8px;
}

.fbt-item{
min-width:110px;
}

}

.profile-modal{
position:fixed;
inset:0;
background:rgba(0,0,0,.55);
display:flex;
align-items:center;
justify-content:center;
z-index:9999;
}

.profile-modal.hidden{
display:none;
}

.modal-box{
background:#fff;
padding:24px;
border-radius:14px;
width:90%;
max-width:380px;
box-shadow:0 20px 50px rgba(0,0,0,.25);
text-align:center;
}

#profileModal input{
    width: 100%;
    height: 46px;
    padding: 0 14px;
    margin-bottom: 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

#profileModal input:focus{
    border-color: #b76e79;
    box-shadow: 0 0 0 2px rgba(230,57,70,0.12);
}


/* PROFILE COMPLETION ALERT */

.profile-alert{
position:fixed;
top:90px;
left:50%;
transform:translateX(-50%);
width:calc(100% - 40px);
max-width:900px;
background:#fff;
border-radius:14px;
box-shadow:0 12px 40px rgba(0,0,0,0.15);
z-index:999;
padding:16px 20px;
animation:profileSlide .35s ease;
}

.profile-alert.hidden{
display:none;
}

.profile-alert-inner{
display:flex;
align-items:center;
justify-content:space-between;
gap:20px;
}

.profile-alert-text{
font-size:14px;
font-weight:500;
color:#444;
}

.profile-alert-btn{
background:#b76e79;
color:#fff;
font-family: 'Poppins',sans-serif;
border: 2px solid #b76e79 !important;
padding:10px 18px;
border-radius:8px;
font-size:14px;
font-weight:600;
cursor:pointer;
transition:.25s ease;
}

.profile-alert-btn:hover{
color:#b76e79;
background:#fff;
}

.profile-alert-actions{
display:flex;
align-items:center;
gap:10px;
}

.profile-alert-close{
border:none;
background:transparent;
font-size:18px;
cursor:pointer;
color:#666;
padding:4px 6px;
border-radius:6px;
transition:.2s ease;
}

.profile-alert-close:hover{
background:#f3f3f3;
color:#000;
}

@keyframes profileSlide{

from{
opacity:0;
transform:translate(-50%,-15px);
}

to{
opacity:1;
transform:translate(-50%,0);
}

}

/* MOBILE */

@media(max-width:600px){

.profile-alert-inner{
flex-direction:column;
align-items:flex-start;
gap:12px;
}

.profile-alert-btn{
width:100%;
}

}

    /* -----------
    Help Floating Button
    -----------*/

.help-floating{
position:fixed;
bottom:24px;
right:24px;
background:#111;
color:#fff;
padding:12px 16px;
border-radius:28px;
font-size:14px;
cursor:pointer;
box-shadow:0 8px 24px rgba(0,0,0,.25);
z-index:9999;
transition:all .2s ease;
}

.help-floating:hover{
transform:translateY(-2px);
box-shadow:0 10px 30px rgba(0,0,0,.35);
}