body {
  margin: 0;
  font-family: "Unna", serif;
}
/* GLOBAL FIX */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 15vh;
  padding: 1.5rem; /* 🔥 change from 3vw */
  margin: 0;
  position: fixed;
  top: 0;
  left: 0;
  background: #ddd;
  z-index: 1000;
}
.nav-logo {
  width: 30%;
  cursor: pointer;
  display: flex;
}

.nav-logo img {
  width: 100%;
  height: auto;
}

.nav-icon {
  height: 1.5rem;
  width: 3rem;
  cursor: pointer;
  margin-left: 15px;
}

.instaBtn {
  display: flex;
  align-items: center;
}

.nav-right {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 420px;
  max-width: 100%;
  height: 100vh;
  background: #fff;
  color: #000;
  border-left: 1px solid #000;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 14px;
  transform: translateX(100%);
  will-change: transform;
}
/* Drawer base */
/*.drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 360px;
  max-width: 100%;
  height: 100vh;
  background: #fff;
  color: #000;
  border-left: 1px solid #000;
  z-index: 2000;

  display: flex;
  flex-direction: column; 

  overflow: hidden;
  padding: 14px;
}*/
/* drawer inner spacing */
.drawer-inner {
  padding-top: 3rem;
  display: flex; /* ✅ ADD */
  flex-direction: column; /* ✅ ADD */
  flex: 1; /* ✅ ADD */
  overflow-y: auto; /* scroll happens here */
}

/* close button */
.drawer-close {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 6px;
  float: right;
}

.drawer-close img {
  display: flex;
  justify-content: center;
}

/* Menu links */
.menu-links {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 18px;
}
.menu-links a {
  text-decoration: none;
  color: #000;
  padding: 0.5rem;
  border-bottom: 2px solid #000000;
}

/* ====== Excel grid styles (exact look requested) ====== */
h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  margin-top: 4rem;
  display: flex;
  justify-content: center;
}
/* Add .drawer prefix to ensure these only apply to the cart drawer */
.drawer .excel-header,
.drawer .excel-row {
  display: grid;
  grid-template-columns: 1fr 80px 100px;
  border-bottom: 1px solid #000000;
  text-align: center;
}

.drawer .cell {
  padding: 0.5rem;
  font-size: medium;
  border-right: 1px solid #000000;
  border-top: none; /* Ensure checkout's border:1px solid doesn't leak in */
  border-left: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.excel-header {
  color: #000000;
  font-weight: 600;
}

.excel-header div,
.excel-row .cell {
  padding: 0.5rem;
  font-size: medium;
  border-right: 1px solid #000000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.excel-row .cell:last-child,
.excel-header div:last-child {
  border-right: none;
}

/* Qty controller */
.qty {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.qty button {
  width: 20px;
  height: 20px;
  background: #fff;
  border: 1px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.qty .value {
  min-width: 30px;
  min-height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  color: #fff;
  font-size: large;
}

/* summary & buttons */
.cart-summary {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid #ddd;
}
.cart-summary .line {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
}
.cart-actions {
  display: flex;
  gap: 10px;
  margin-top: auto; /* 🔥 THIS IS THE MAGIC */
  margin-bottom: 2rem;
  margin-top: 2rem;
}
.btn-primary {
  background: #000;
  color: #fff;
  border: 0;
  padding: 1rem;
  cursor: pointer;
  right: 0;
  bottom: 0;
  position: relative;
  margin-top: 5rem;
  display: flex;
  letter-spacing: 0.2rem;
  font-weight: 900;
  width: 100%;
  font-size: 1.2rem;
  font-family: "Unna", serif;
  justify-content: center;
}
.btn-ghost {
  background: transparent;
  border: 1px solid #000;
  padding: 10px 14px;
  cursor: pointer;
}

/* responsive: mobile still uses full width visually because max-width:100% */
@media (max-width: 420px) {
  .drawer {
    width: 100%;
  }
}

@media (min-width: 1025px) {
  .nav-logo {
    width: 70%;
  }
  .nav-right {
    width: 10%;
  }
  .nav-icon {
    height: 1.5rem;
  }
}

#drawerBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 0.25s;
  z-index: 1999; /* between overlay and drawer */
}

#drawerBackdrop.active {
  opacity: 1;
  pointer-events: auto;
}

#cartDrawer,
#menuDrawer{
transform:translateX(100%);
will-change:transform;
}