/* ── Cart Drawer Styles ── */

#cart-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s, opacity 0.3s;
}

#cart-drawer.open {
  visibility: visible;
  opacity: 1;
}

.cart-drawer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
}

.cart-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: #FFF;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -4px 0 24px rgba(0,0,0,0.1);
}

#cart-drawer.open .cart-drawer-panel {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid #EBE7E0;
}

.cart-drawer-header h3 {
  font-family: 'Luckiest Guy', cursive;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0;
}

.cart-drawer-close {
  width: 36px;
  height: 36px;
  border: none;
  background: #F5F5F5;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.cart-drawer-close:hover {
  background: #EBE7E0;
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: #999;
  font-size: 14px;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #EBE7E0;
  position: relative;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  background: #F6EDE3;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  font-weight: 600;
  font-size: 14px;
  color: #111;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.cart-item-variant {
  font-size: 12px;
  color: #999;
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 13px;
  font-weight: 600;
  color: #111;
  margin-bottom: 8px;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-item-qty button {
  width: 28px;
  height: 28px;
  border: 1px solid #EBE7E0;
  background: #FFF;
  border-radius: 2px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.cart-item-qty button:hover {
  background: #111;
  color: #FFF;
  border-color: #111;
}

.cart-item-qty span {
  font-size: 13px;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

.cart-item-remove {
  position: absolute;
  top: 16px;
  right: 0;
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  font-size: 18px;
  color: #CCC;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0;
}

.cart-item-remove:hover {
  color: #111;
}

.cart-drawer-footer {
  padding: 20px 28px 28px;
  border-top: 1px solid #EBE7E0;
  background: #FFF;
}

.cart-drawer-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cart-drawer-checkout {
  width: 100%;
  padding: 14px;
  background: #111;
  color: #FFF;
  border: none;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 10px;
}

.cart-drawer-checkout:hover {
  background: #E67E22;
}

.cart-drawer-continue {
  width: 100%;
  padding: 12px;
  background: transparent;
  color: #666;
  border: 1px solid #EBE7E0;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.cart-drawer-continue:hover {
  border-color: #111;
  color: #111;
}

/* ── Cart Count Badge ── */
.cart-count {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  background: #111;
  color: #FFF;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  margin-left: 6px;
  padding: 0 5px;
}

.cart {
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .cart-drawer-panel {
    max-width: 100%;
  }
}
