/* ------- Theme tokens ------- */
:root{
  --bg:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --border:#e5e7eb;
  --card:#ffffff;
  --shadow:0 8px 24px rgba(16,24,40,.06);
  --radius:16px;

  --brand:#a01752;        /* maroon/rose */
  --brand-soft:#fbe8f1;
  --accent:#10b981;       /* green for discount */
  --accent-soft:#ecfdf5;
  --danger:#ef4444;
  --blue:#2563eb;         /* popularity text */
  --blue-soft:#eff6ff;

  --header-h:56px;
  --catbar-h:74px;
  --search-h:72px;
  
   --promo-h: 0px;
   --subbar-h: 0px;
     --fixed-top: calc(var(--header-h) + var(--catbar-h) + var(--search-h) + var(--promo-h));

  
}

*{box-sizing:border-box}
html,body{margin:0;height:100%}
body{
  padding-top: calc(var(--header-h) + var(--catbar-h) + var(--search-h) + var(--subbar-h) + var(--promo-h));
  background:var(--bg);
  color:var(--text);
  font:16px/1.45 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,'Helvetica Neue',Arial;
}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}

/* ------- Header ------- */
.app-header{
  position: fixed;           /* was: sticky */
  top: 0;
  left: 0; right: 0;
  z-index: 60;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;

  /* was: height: var(--header-h);  -> remove hard height */
  min-height: var(--header-h);      /* lets content define actual height */

  flex-wrap: nowrap;                 /* prevent profile icon from wrapping */
  padding: .75rem .9rem;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.brand{ flex: 1; font-weight: 700; letter-spacing: .2px; }  /* pushes profile icon to right */


/* ------- Category bar: single-row horizontal scroll ------- */
.category-bar{
  position: fixed;                    /* was: sticky */
  top: var(--header-h);
  left: 0; right: 0;
  z-index: 55;

  display: flex;
  gap: .8rem;
  overflow-x: auto;                   /* keep icons in a single row */
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;

  padding: .6rem .85rem;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.category-pill{ flex: 0 0 auto; }     /* don’t shrink */

.category-pill{
  /*flex:0 0 auto; scroll-snap-align:center;*/
  border:none; background:transparent; cursor:pointer;
  display:flex; flex-direction:column; align-items:center; gap:.35rem;
  color:#374151; min-width:78px;
}
.category-pill .avatar{
  width:58px; height:58px; border-radius:50%; overflow:hidden;
  background:#f3f4f6; border:1px solid var(--border); display:grid; place-items:center;
}
.category-pill .avatar img{width:100%; height:100%; object-fit:cover}
.category-pill .label{font-size:.82rem; text-align:center}
.category-pill.active .avatar{outline:3px solid var(--brand-soft); border-color:#f6c3d9}
.category-pill.active .label{color:var(--brand); font-weight:600}

/* ------- Search row with Menu button ------- */
.search-row{
  position: fixed;                    /* was: sticky */
  top: calc(var(--header-h) + var(--catbar-h));
  left: 0; right: 0;
  z-index: 50;

  display: flex;
  align-items: center;
  gap: .6rem;

  /* was: height: var(--search-h); -> remove hard height */
  min-height: var(--search-h);

  padding: .75rem .85rem;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.search-row input{
  flex:1;
  height:44px;
  padding:.7rem .95rem; border-radius:999px;
  border:1px solid var(--border); background:#fff; color:#111827; outline:none;
}
.search-row input:focus{box-shadow:0 0 0 3px rgba(160,23,82,.15); border-color:#f0a8c4}

.menu-btn{
  height:44px; padding:0 .95rem;
  display:inline-flex; align-items:center; gap:.5rem;
  border:1px solid #0f172a; background:#0f172a; color:#fff;
  border-radius:12px; font-weight:700; cursor:pointer;
}
.menu-btn .menu-icon{display:inline-flex;}


/* NEW: Waxing sub-category pills */
.subbar{
  position: fixed;
  top: calc(var(--header-h) + var(--catbar-h) + var(--search-h));
  left: 0; right: 0;
  z-index: 49;
  display:flex; gap:.5rem; overflow:auto; padding:.55rem .85rem;
  background:#fff; border-bottom:1px solid var(--border);
  -webkit-overflow-scrolling:touch;
}

.subbar.hidden{display:none;}
.subbar::-webkit-scrollbar{height:0}
.sub-pill{
  flex:0 0 auto; padding:.5rem .9rem; border-radius:999px;
  border:1px solid var(--border); background:#fff; color:#374151; font-weight:600;
}
.sub-pill.active{ background:var(--brand-soft); color:var(--brand); border-color:#f1bfd6 }


/* ------- Services grid ------- */
.services-list{
  display:grid; grid-template-columns:1fr; gap:1rem;
  padding:1rem .85rem 7.5rem; /* space for booking bar */
}
@media(min-width:520px){.services-list{grid-template-columns:1fr 1fr}}
@media(min-width:960px){.services-list{grid-template-columns:repeat(3,1fr)}}

/* ------- Card ------- */
.card{
  background:var(--card); border:1px solid var(--border); border-radius:18px;
  box-shadow:var(--shadow); overflow:hidden; display:flex; flex-direction:column;
  
   -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
/* non-cropping image area */
.card .img-wrap{
  position: relative;
  aspect-ratio: 16 / 9;
  background:#fafafa;
  border-bottom:1px solid var(--border);

  /* iOS fixes */
  overflow: hidden;                           /* ensure clip */
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.card .img-wrap img{
  position: absolute;                         /* important for Safari */
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;                          /* fill nicely; no letterboxing */
  object-position: center;
}

.card.row .thumb{
  /* existing styles ... */
  overflow: hidden;                            /* already there */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.card.row .thumb img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}



/* fallback if a very old browser lacks aspect-ratio */
@supports not (aspect-ratio: 16/9){
  .card .img-wrap{height:0; padding-top:56.25%;}  /* 16:9 */
  .card .img-wrap img{position:absolute; inset:0;}
}

.badge-time{
  position:absolute; left:12px; bottom:12px;
  background:#fff; color:#374151; border:1px solid var(--border);
  padding:.35rem .55rem; border-radius:999px; font-size:.8rem; display:flex; align-items:center; gap:.35rem;
}
.clock{display:inline-flex; align-items:center; gap:.35rem}

.card .content{padding:.9rem .95rem}
.card h3{margin:.1rem 0 .2rem; font-size:1.08rem}
.subtitle{color:var(--muted); font-size:.92rem; margin-bottom:.5rem}

.price-row{display:flex; align-items:baseline; gap:.55rem; margin:.35rem 0}
.price-sale{font-weight:800}
.price-mrp{text-decoration:line-through; color:#9ca3af}
.discount-chip{
  background:var(--accent-soft); color:var(--accent); border:1px solid #b7f3dc;
  padding:.2rem .45rem; border-radius:999px; font-weight:700; font-size:.8rem;
}
.flag-chip{
  background:#fff5f7; color:var(--brand); border:1px solid #ffd3e3;
  padding:.2rem .45rem; border-radius:999px; font-size:.8rem; font-weight:700; margin-bottom:.25rem;
}
.popularity{
  color:var(--blue); background:var(--blue-soft);
  display:inline-block; padding:.2rem .45rem; border-radius:8px; font-size:.85rem; margin:.25rem 0;
}

.bullets{margin:.45rem 0 .2rem; padding-left:1.05rem; color:#374151}
.bullets li{margin:.18rem 0}

/* Actions row */
.card .actions{
  padding:.8rem .95rem; display:flex; align-items:center; justify-content:space-between; gap:.75rem;
  border-top:1px solid var(--border);
   position: relative;
  z-index: 2;     
}
.btn{
  padding:.6rem .95rem; border-radius:999px; border:1px solid var(--border);
  background:#fff; color:var(--brand); font-weight:700; cursor:pointer;
}
.btn:hover{filter:brightness(1.03)}
.btn-primary{background:var(--brand); color:#fff; border-color:var(--brand)}
.qty{display:flex; align-items:center; gap:.4rem}
.icon-btn{
  width:36px; height:36px; border-radius:10px; border:1px solid var(--border);
  background:#fff; color:#111827; display:grid; place-items:center; cursor:pointer;
}

/* Load more */
.load-more-wrap{display:grid; place-items:center; padding:1rem}

.benefits{
  color:#374151;           /* slightly darker than subtitle for emphasis */
  font-size:.92rem;
  margin:.35rem 0 .1rem;
}

/* ------- Bottom booking bar ------- */
.cart-bar{
  position:fixed; left:0; right:0; bottom:0; z-index:70;
  display:flex; align-items:center; justify-content:space-between; gap:.85rem;
  padding:.8rem .95rem; background:#fff; border-top:1px solid var(--border);
  box-shadow:0 -6px 20px rgba(16,24,40,.06);
}
.cart-summary{font-weight:700}
.checkout{
  padding:.8rem 1.1rem; border-radius:12px; border:0; background:#16a34a; color:#fff; font-weight:800;
}
.checkout:disabled{opacity:.6}

/* ------- Bottom-sheet Modal ------- */
.sheet.hidden{display:none}
.sheet.open{display:block}

/* Make sure the sheet is ABOVE the fixed BOOK bar */
.sheet-backdrop{
  position:fixed; inset:0;
  background:rgba(0,0,0,.35); backdrop-filter:saturate(160%) blur(2px);
  z-index: 998;
}
.sheet-panel{
  position:fixed; left:0; right:0; bottom:0;
  background:#fff; border-top-left-radius:18px; border-top-right-radius:18px;
  box-shadow:0 -10px 30px rgba(0,0,0,.15);
  transform:translateY(100%); transition:transform .25s ease;
  /* height: allow nearly full screen; use modern viewport units with fallbacks */
  max-height: 92vh;                   /* fallback */
  max-height: calc(100svh - 12px);    /* small viewport (mobile address bar collapse) */
  /* If the browser supports dvh it will override svh automatically when you add the next line: */
  /* max-height: calc(100dvh - 12px);  uncomment if you prefer dvh */
  overflow:auto;
  overscroll-behavior: contain;
  z-index: 999;                       /* above the BOOK bar */
}
.sheet.open .sheet-panel{ transform:translateY(0); }

.sheet-handle{ width:48px; height:5px; border-radius:999px; background:#e5e7eb; margin:.6rem auto 0; }
.sheet-header{ display:flex; align-items:center; justify-content:space-between; padding:.6rem 1rem .4rem; }
.sheet-header h2{ margin:0; font-size:1.1rem; }
.sheet-close{
  border:1px solid var(--border); background:#fff; border-radius:999px; width:36px; height:36px;
  display:grid; place-items:center; cursor:pointer;
}

/* Grid of categories inside modal */
/* Extra bottom padding so the last row never hides behind device safe area */
.modal-category-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:1.1rem .6rem;
  padding:1rem 1rem calc(32px + env(safe-area-inset-bottom));
}
@media(min-width:520px){ .modal-category-grid{ grid-template-columns:repeat(4,1fr);} }
.modal-category-grid .category-pill{ min-width:auto; }



/* === Compact ROW card: small image on the right ========================= */
.card.row {
  display: grid;
  grid-template-columns: 1fr 104px;    /* left content | right thumb */
  column-gap: .85rem;
  border-radius: 16px;
  overflow: hidden;
}

/* Left side content becomes tighter */
.card.row .content {
  padding: .75rem .9rem;
}
.card.row h3 {
  margin: .1rem 0 .2rem;
  font-size: 1rem;
}
.card.row .subtitle {
  margin-bottom: .35rem;
}

/* Right side thumbnail */
.card.row .thumb {
  margin: .75rem .75rem .75rem 0;
  width: 104px; height: 104px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fafafa;
}
.card.row .thumb img {
  width: 100%; height: 100%; object-fit: cover;
}

/* Time badge becomes a small inline chip under title (optional) */
.card.row .badge-time {
  position: static;
  margin: .25rem 0 0;
  font-size: .78rem;
  padding: .25rem .45rem;
}

/* Actions row spans full width under both columns */
.card.row .actions {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  padding: .7rem .9rem;
}

/* ---- Enhanced Booking overlay ---- */
.booking.hidden{display:none}
.booking{display:block}
.booking-backdrop{
  position:fixed; inset:0; 
  background:rgba(0,0,0,.4); 
  backdrop-filter:blur(4px);
  z-index:999;
  animation:fadeIn .2s ease-out;
}
.booking-panel{
  position:fixed; left:50%; top:50%; 
  transform:translate(-50%, -50%);
  width:min(90vw, 480px);
  max-height:90vh;
  background:#fff; 
  border-radius:20px;
  box-shadow:0 25px 50px rgba(0,0,0,.25);
  z-index:1000;
  display:flex; flex-direction:column;
  animation:scaleIn .3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { 
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  to { 
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.booking-header{
  display:flex; align-items:center; justify-content:space-between; 
  padding:1.2rem 1.5rem .8rem; 
  border-bottom:1px solid var(--border);
  position:relative;
}

.booking-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
}

.booking-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.bk-close{
  border:1px solid var(--border); 
  background:#fff; 
  border-radius:50%; 
  width:32px; 
  height:32px; 
  cursor:pointer;
  display:grid; 
  place-items:center;
  transition:all .2s;
  color: var(--muted);
}
.bk-close:hover {
  background: #f9fafb;
  color: var(--text);
  transform: scale(1.05);
}

/* Progress indicator */
.bk-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 0 1.5rem;
  margin-bottom: .5rem;
}

.bk-progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e5e7eb;
  transition: all .3s;
}

.bk-progress-dot.active {
  background: var(--brand);
  transform: scale(1.25);
}

.bk-progress-dot.completed {
  background: var(--accent);
}

.booking-step{
  flex:1; 
  overflow:auto; 
  padding:1.5rem;
  scrollbar-width: thin;
}

.booking-step::-webkit-scrollbar {
  width: 4px;
}

.booking-step::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border-radius: 2px;
}

.booking-step p {
  margin: 0 0 1.2rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.bk-grid{
  display:grid; 
  grid-template-columns:1fr; 
  gap:1rem;
}
@media(min-width:520px){ 
  .bk-grid{ 
    grid-template-columns:repeat(2,1fr); 
  } 
}

.bk-card{
  border:2px solid var(--border); 
  border-radius:16px; 
  padding:1.2rem; 
  cursor:pointer; 
  background:#fff;
  transition:all .2s;
  position:relative;
}
.bk-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
}
.bk-card.active{
  border-color:var(--brand);
  background:var(--brand-soft);
  box-shadow: 0 4px 20px rgba(160,23,82,.1);
}

.bk-card.active::before {
  content: '✓';
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  background: var(--brand);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: bold;
}

.bk-card h4 {
  margin: 0 0 .5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.bk-actions{
  position:sticky; 
  bottom:0; 
  background:#fff; 
  padding:1.5rem; 
  border-top:1px solid var(--border); 
  display:flex; 
  gap:.8rem; 
  justify-content:flex-end;
}

.bk-btn{
  padding:.75rem 1.25rem; 
  border-radius:12px; 
  border:1px solid var(--border); 
  background:#fff; 
  cursor:pointer;
  font-weight: 600;
  transition:all .2s;
  min-width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bk-btn:hover {
  background: #f9fafb;
  transform: translateY(-1px);
}
.bk-btn.primary{
  background:var(--brand); 
  color:#fff; 
  border-color:var(--brand);
  box-shadow: 0 2px 8px rgba(160,23,82,.2);
}
.bk-btn.primary:hover {
  background: #8f1548;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(160,23,82,.3);
}
.bk-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none !important;
}

.bk-note{
  color:var(--muted); 
  font-size:.9rem; 
  margin-top:.6rem;
  line-height: 1.4;
}

.bk-row{
  display:flex; 
  gap:.8rem; 
  align-items:center; 
  margin:.8rem 0;
}

.bk-row label {
  min-width: 80px;
  font-weight: 600;
  color: var(--text);
}

.bk-input{
  width:100%; 
  padding:.75rem 1rem; 
  border:2px solid var(--border); 
  border-radius:12px;
  font-size: 1rem;
  transition:all .2s;
  background: #fff;
}
.bk-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(160,23,82,.1);
}

/* Enhanced OTP inputs */
.bk-otp{
  display:flex; 
  gap:.5rem; 
  justify-content:center; 
  margin:1.5rem 0;
}
.bk-otp input{
  width:48px; 
  height:56px; 
  text-align:center; 
  font-size:1.25rem; 
  font-weight: 700;
  border:2px solid var(--border); 
  border-radius:12px;
  background: #fff;
  transition:all .2s;
}
.bk-otp input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(160,23,82,.1);
  transform: scale(1.05);
}

.bk-digit{
  width:36px; 
  height:48px; 
  text-align:center; 
  font-size:1.1rem; 
  font-weight: 600;
  border:2px solid var(--border); 
  border-radius:10px;
  background: #fff;
  transition:all .2s;
}
.bk-digit:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(160,23,82,.1);
}

/* Phone number grid styling */
.phone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  max-width: 240px;
  margin: 1.5rem auto;
}

.phone-grid .bk-digit {
  width: 100%;
  aspect-ratio: 1;
}

/* Enhanced upcoming booking card */
.upcoming-card {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 2px solid #a7f3d0;
  border-radius: 16px;
  padding: 1.2rem;
  margin-bottom: 1.2rem;
  position: relative;
  overflow: hidden;
}

.upcoming-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
}

.upcoming-card h4 {
  margin: 0 0 .5rem;
  color: #065f46;
  font-weight: 700;
  font-size: 1rem;
}

.upcoming-card .bk-note {
  color: #047857;
  margin-top: .25rem;
}

/* Success state styling */
.bk-success {
  text-align: center;
  padding: 1rem 0;
}

.bk-success h3 {
  color: var(--accent);
  font-size: 1.5rem;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}

.bk-success .success-icon {
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

/* Responsive adjustments */
@media (max-width: 520px) {
  .booking-panel {
    width: 95vw;
    max-height: 95vh;
    border-radius: 16px;
  }
  
  .booking-header {
    padding: 1rem 1.2rem .6rem;
  }
  
  .booking-step {
    padding: 1.2rem;
  }
  
  .bk-actions {
    padding: 1.2rem;
  }
  
  .bk-otp {
    gap: .3rem;
  }
  
  .bk-otp input {
    width: 40px;
    height: 48px;
    font-size: 1.1rem;
  }
  
  .phone-grid {
    gap: .3rem;
    max-width: 200px;
  }
}

/* Cart overlay */
#cartOverlay{display:none}
#cartOverlay.show{display:block}
#cartOverlay .cart-backdrop{position:fixed; inset:0; background:rgba(0,0,0,.35); z-index:999}
#cartOverlay .cart-panel{
  position:fixed; inset:0; background:#fff; z-index:1000;
  display:flex; flex-direction:column;
}
/*.cart-header{display:flex; align-items:center; gap:10px; padding:.9rem 1rem; border-bottom:1px solid var(--border)}*/
/*.cart-header h2{margin:0; font-size:1.1rem}*/
/*.cart-close{width:36px; height:36px; border:1px solid var(--border); background:#fff; border-radius:8px; cursor:pointer}*/

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.cart-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  color: #6b7280;
  transition: all 0.2s;
  order: 2; /* Places it after the title */
}

.cart-close:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
  color: #374151;
}

#cartTitle {
  order: 1;
  margin: 0;
}
.cart-list{flex:1; overflow:auto; padding:.6rem 1rem}
.cart-empty{padding:2rem 1rem; color:#6b7280}
.cart-row{display:flex; gap:.8rem; padding:.7rem 0; border-bottom:1px solid #f3f4f6}
.cart-thumb{width:72px; height:72px; border-radius:12px; overflow:hidden; border:1px solid var(--border)}
.cart-thumb img{width:100%; height:100%; object-fit:cover}
.cart-main{flex:1}
.cart-name{font-weight:700; margin-bottom:.15rem}
.cart-price .mrp{text-decoration:line-through; color:#9ca3af; margin-right:.5rem}
.cart-price .sale{color:#111827; font-weight:700}
.cart-qty{display:flex; align-items:center; gap:.5rem; margin-top:.4rem}
.qty-btn{width:28px; height:28px; border:1px solid var(--border); background:#fff; border-radius:8px; font-size:18px; line-height:24px}
.remove{margin-left:auto; background:#fff; border:1px solid var(--border); border-radius:8px; padding:.35rem .55rem; color:#b91c1c}
.cart-totals{border-top:1px solid var(--border); padding:.8rem 1rem; background:#fff}
.cart-totals .t-row{display:flex; justify-content:space-between; margin:.25rem 0}
.cart-totals .t-row .mrp{text-decoration:line-through; color:#9ca3af}
.cart-totals .t-row.save span:last-child{color:#16a34a; font-weight:700}
.cart-actions{display:flex; gap:.6rem; justify-content:flex-end; padding:1rem; border-top:1px solid var(--border); background:#fff}
.cart-actions .btn{padding:.7rem 1rem; border-radius:10px; border:1px solid var(--border); background:#fff; cursor:pointer}
.cart-actions .btn.primary{background:#111827; color:#fff; border-color:#111827}


/* Cart button in bottom bar */
#cartAction.cart-btn{
  position:relative;
  width:52px; height:52px;
  display:flex; align-items:center; justify-content:center;
  border-radius:14px;
  background:#111827; color:#fff;
  font-size:24px; line-height:1;
  box-shadow:0 6px 14px rgba(0,0,0,.18);
}
#cartAction.cart-btn .badge{
  position:absolute; top:-6px; right:-6px;
  min-width:20px; height:20px; padding:0 6px;
  border-radius:999px; background:#10b981; color:#fff;
  font-size:12px; display:flex; align-items:center; justify-content:center;
  border:2px solid #fff;
}

/* Buttons in cart overlay when disabled */
.cart-actions .btn:disabled{opacity:.55; cursor:not-allowed}


.promo-banner {
    position: fixed;
    top: calc(var(--header-h) + var(--catbar-h) + var(--search-h) + var(--subbar-h));
    left: 0;
    right: 0;
    z-index: 48; /* under subbar */
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-bottom: 1px solid #a7f3d0;
    padding: 0.75rem 0.9rem;
    text-align: center;
    font-size: 0.9rem;
    animation: slideDown 0.3s ease-out;
}


.promo-banner .promo-icon {
    display: inline-block;
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.promo-banner .amount {
    font-weight: 700;
    color: var(--accent);
}

.promo-banner .muted {
    color: #047857;
    font-weight: 500;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.promo-banner.hidden {
    display: none !important;
}

/* Or update your existing hidden class */
.hidden {
    display: none !important;
}

.coupon-message {
  background: #f6f6f6;
  border: 1px solid #ddd;
  color: #333;
  padding: 6px 10px;
  border-radius: 6px;
  margin-top: 6px;
}
