
/* ===== CENTERED TOP-FIXED CART ===== */
.cart-bottom-sheet {
  position: fixed;
  top: -100%;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 92%;
  max-width: 400px;
  max-height: 75vh;
  background: white;
  border-radius: 12px;           /* exactly 12px as requested */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transition: top 0.3s ease;
  z-index: 9999;
  padding: 0;
  overflow-y: auto;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* When open - perfectly centered at top */
.cart-bottom-sheet.open {
  top: 10px;                      /* fixed 10px from top */
}

/* Center alignment for all screen sizes */
@media (min-width: 768px) {
  .cart-bottom-sheet {
    width: 400px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
}

/* Small phones */
@media (max-width: 480px) {
  .cart-bottom-sheet {
    width: 94%;
    max-height: 70vh;
  }
  
  .cart-bottom-sheet.open {
    top: 8px;                      /* slightly less on small screens */
  }
}

/* Remove any pseudo-elements that might interfere */
.cart-bottom-sheet::before {
  display: none;
}

/* Header styling to match 12px radius */
.cart-header {
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}
/* ===== PREMIUM CART DESKTOP ===== ye cart wali hai ok such me */

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 0;
  color: #1a1a1a;
  background: #ffffff;
  border-radius: 28px 28px 0 0;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  z-index: 10;
}


.cart-header button {
  background: #f2f2f2;
  border: none;
  font-size: 22px;
  font-weight: 500;
  cursor: pointer;
  color: #333;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}



  /* ===== CART BAR (BOTTOM BAR) ===== ye sabse niche wali line hai ok ciew cart wali  */
  #cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.12);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    z-index: 9990;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-sizing: border-box;
    gap: 12px;
  }

  #cart-bar.hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
  }

  .cart-header button:hover {
  background: #1a3cff;
  color: white;
  transform: rotate(90deg);
}



  #cart-info {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    letter-spacing: -0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }

  #cart-info span {
    font-weight: 700;
    color: #1a3cff;
    background: #eef2ff;
    padding: 4px 10px;
    border-radius: 40px;
    margin-left: 8px;
    font-size: 13px;
    display: inline-block;
  }

  .cart-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
  }

  #view-cart-btn,
  #send-cart-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
    line-height: 1.2;
  }

  #view-cart-btn {
    background: #ffffff;
    color: #1a3cff;
    border: 1.5px solid #dde3ff;
  }

  #view-cart-btn:hover {
    background: #f5f8ff;
    border-color: #1a3cff;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(26, 60, 255, 0.15);
  }

  #send-cart-btn {
    background: #1a3cff;
    color: white;
    border: 1.5px solid #1a3cff;
  }

  #send-cart-btn:hover {
    background: #0028d7;
    border-color: #0028d7;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(26, 60, 255, 0.3);
  }

#cart-items {
  padding: 16px 20px 24px;
}



/* 
.cart-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 0;
  border-bottom:1px solid #eee;
}  


.cart-left{
  display:flex;
  flex-direction:column;
  gap:2px;
  max-width:65%;
}

.cart-left .name{
  font-size:15px;
  font-weight:600;
}

.cart-left .variant{
  font-size:13px;
  color:#777;
}

.cart-left .price{
  font-size:14px;
  font-weight:bold;
}


.cart-right{
  display:flex;
  align-items:center;
  gap:6px;
}

.cart-right span{
  min-width:20px;
  text-align:center;
  font-weight:600;
}

.cart-right button{
  padding:4px 8px;
  border-radius:6px;
  border:1px solid #ccc;
  background:#f5f5f5;
  cursor:pointer;
  font-size:14px;
}

.cart-right button:hover{
  background:#eaeaea;
}


.cart-right button:last-child{
  color:#c0392b;
}
 */


/* this is a slim version start  cart me left right sab ye  hi handle karta hai ok  */
/* ITEM ROW */
.cart-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:6px 0;          /* 🔥 less height */
  border-bottom:1px solid #eee;
}

/* LEFT SIDE */
.cart-left{
  display:flex;
  flex-direction:column;
  gap:1px;                /* 🔥 less gap */
  max-width:65%;
}

.cart-left .name{
  font-size:14px;         /* 🔥 smaller */
  font-weight:600;
  line-height:1.2;
}

.cart-left .variant{
  font-size:12px;         /* 🔥 smaller */
  color:#888;
}

.cart-left .price{
  font-size:12px;         /* 🔥 smaller */
  font-weight:bold;
}

/* RIGHT SIDE */
.cart-right{
  display:flex;
  align-items:center;
  gap:4px;                /* 🔥 less gap */
}

.cart-right span{
  min-width:16px;
  text-align:center;
  font-weight:600;
  font-size:13px;
}




/* ===== PREMIUM BUTTON STYLES ===== */

/* Base button style - more polished */
.cart-right button {
  padding: 4px 8px;              /* slightly larger for better touch */
  border-radius: 20px;            /* pill shape instead of 5px */
  border: none;                   /* clean, no border */
  background: #f0f2f5;            /* softer background */
  cursor: pointer;
  font-size: 13px;                /* slightly larger */
  font-weight: 500;               /* medium weight */
  color: #2c3e50;                 /* dark slate color */
  min-width: 32px;                /* minimum width for consistency */
  height: 32px;                   /* fixed height for circular look */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.2, 0.9, 0.4, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* Hover state */
.cart-right button:hover {
  background: #e2e6ea;
  transform: scale(1.02);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* Active/click state */
.cart-right button:active {
  transform: scale(0.98);
  background: #d1d5db;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Quantity buttons (+ and -) - special styling */
.cart-right button:not(:last-child) {
  background: #ffffff;
  border: 1px solid #e9ecef;
  color: #1a3cff;
  font-weight: 600;
  font-size: 16px;
  width: 32px;
  padding: 0;
  border-radius: 50%;              /* perfectly circular */
}

.cart-right button:not(:last-child):hover {
  background: #1a3cff;
  color: white;
  border-color: #1a3cff;
  box-shadow: 0 4px 10px rgba(26, 60, 255, 0.2);
}

/* Delete button (last child) - subtle and elegant */
.cart-right button:last-child {
  background: transparent;
  color: #94a3b8;
  font-size: 15px;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  margin-left: 2px;
  box-shadow: none;
}

.cart-right button:last-child:hover {
  background: #fee2e2;
  color: #ef4444;
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(239, 68, 68, 0.15);
}

.cart-right button:last-child:active {
  background: #fecaca;
  transform: scale(0.95);
}

/* Focus state for accessibility */
.cart-right button:focus-visible {
  outline: 2px solid #1a3cff;
  outline-offset: 2px;
}




/* innput box design  do you want  to send order ke time pe name and number innput  */  

.confirm-box input{
  width:80%;
  display:block;
  margin:12px auto;     /* ⭐ center horizontally */

  padding:14px 16px;
  border-radius:15px;
  border:1.5px solid #dfe3ff;
  background:#f9faff;

  font-size:15px;
  outline:none;
  transition:0.25s ease;
  box-sizing:border-box;
}

/* focus glow */
.confirm-box input:focus{
  border-color:#1a3cff;
  box-shadow:0 0 10px rgba(26,60,255,0.35);
  background:#fff;
}

/* ===== ERROR TEXT ===== */
.confirm-box .error{
  display:block;
  width:80%;
  margin:6px auto 0;   /* center */
  text-align:center;   /* ⭐ center text */
  font-size:13px;
  color:#ff2b2b;
  font-weight:500;
}

.confirm-box{
  text-align:center;   /* ⭐ center everything */
}

.confirm-box h3::after{
  content:"";
  display:block;
  width:60px;
  height:3px;
  margin:8px auto 0;
  background:#1a3cff;
  border-radius:10px;
}





/* CLEAR BUTTON FIX */

/* .clear-btn{
  background:#fff;
  color:#ef4444;
  border:1px solid #ef4444;
}

.clear-btn:hover{
  background:#ef4444;
  color:#fff;
} */


.cart-header #clear-cart-btn{
  background:#fff !important;
  color:#ef4444 !important;
    border:1px solid #ef4444 !important;
 
}

.cart-header #clear-cart-btn:hover{
  background:#ef4444 !important;
  color:#fff !important;
 
}

.cart-header .clear-btn{
  width: auto;
  height: auto;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 13px;
  /* background: #000; */
  /* color: white; */
  margin-left: 20px;
}

.cart-header .clear-btn:hover{
  /* background:#333; */
  transform:none;
}


.cart-header{
  display:flex;
  align-items:center;
  gap:10px;
}

/* push Clear + Close to right */
.cart-header .clear-btn{
  margin-left:auto;
}

/* optional spacing near cross icon */
.cart-header button:last-child{
  margin-left:5px;
}