/* ============================================================
   AWANE — Cart Drawer
   ============================================================ */

/* ── Backdrop ───────────────────────────────────────────────── */
.aw-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(60, 62, 64, 0.45);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.aw-drawer-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

/* ── Drawer shell ───────────────────────────────────────────── */
.aw-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100vw;
  background: #ffffff;
  z-index: 1101;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 40px rgba(60, 62, 64, 0.12);
}
.aw-cart-drawer.open {
  transform: translateX(0);
}

/* ── Header ─────────────────────────────────────────────────── */
.aw-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid #EDEBE5;
  flex-shrink: 0;
}
.aw-drawer-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #171717;
  margin: 0;
}
.aw-drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  line-height: 1;
}
.aw-drawer-close:hover { color: #3c3e40; }

/* ── Body (scrollable) ──────────────────────────────────────── */
.aw-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  -webkit-overflow-scrolling: touch;
}

/* Empty state */
.aw-drawer-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 3rem 2rem;
  text-align: center;
  color: #888;
}
.aw-drawer-empty svg { opacity: 0.25; margin-bottom: 1.25rem; }
.aw-drawer-empty h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: #171717;
  margin-bottom: 0.5rem;
}
.aw-drawer-empty p { font-size: 0.85rem; margin-bottom: 1.5rem; }
.aw-drawer-empty a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.75rem;
  background: #3c3e40;
  color: #F2F0EA;
  border: 1px solid #3c3e40;
  border-radius: 3px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease;
}
.aw-drawer-empty a:hover { background: #B89B5E; border-color: #B89B5E; color: #fff; }

/* ── Cart items ─────────────────────────────────────────────── */
.aw-drawer-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid #EDEBE5;
  align-items: flex-start;
}
.aw-drawer-item-img {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border: 1px solid #E4E0D8;
  border-radius: 3px;
  overflow: hidden;
  background: #F7F4EE;
  display: flex;
  align-items: center;
  justify-content: center;
}
.aw-drawer-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.aw-drawer-item-img-placeholder {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: #B89B5E;
}
.aw-drawer-item-info {
  flex: 1;
  min-width: 0;
}
.aw-drawer-item-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: #222 !important;
  opacity: 1;
  margin: 0 0 0.2rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aw-drawer-item-name a,
.aw-drawer-item-name a:visited,
.aw-drawer-item-name a:hover,
.aw-drawer-item-name a:focus {
  color: #222 !important;
  opacity: 1;
  text-decoration: none;
}
.aw-drawer-item-price {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8rem;
  color: #5A5A5A;
  margin: 0 0 0.65rem;
}
.aw-drawer-item-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.aw-drawer-qty {
  display: flex;
  align-items: center;
  border: 1px solid #E4E0D8;
  border-radius: 3px;
  overflow: hidden;
}
.aw-drawer-qty-btn {
  background: none;
  border: none;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  color: #3c3e40;
  transition: background 0.15s ease;
  flex-shrink: 0;
}
.aw-drawer-qty-btn:hover { background: #F7F4EE; }
.aw-drawer-qty-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.aw-drawer-qty-num {
  width: 32px;
  text-align: center;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8rem;
  color: #171717;
  border-left: 1px solid #E4E0D8;
  border-right: 1px solid #E4E0D8;
  line-height: 28px;
  user-select: none;
}
.aw-drawer-remove {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.72rem;
  color: #888;
  padding: 0;
  text-decoration: underline;
  transition: color 0.2s ease;
}
.aw-drawer-remove:hover { color: #B03A2E; }
.aw-drawer-item-subtotal {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #171717;
  flex-shrink: 0;
  padding-top: 0.1rem;
}

/* ── Footer ─────────────────────────────────────────────────── */
.aw-drawer-footer {
  padding: 1.25rem 1.75rem 1.75rem;
  border-top: 1px solid #EDEBE5;
  flex-shrink: 0;
  background: #fff;
}
.aw-drawer-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.35rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: #171717;
}
.aw-drawer-shipping-note {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.75rem;
  color: #2d7a4f;
  margin: 0 0 1rem;
  min-height: 1rem;
}
.aw-drawer-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.85rem 1rem;
  background: #3c3e40;
  color: #F2F0EA;
  border: 1px solid #3c3e40;
  border-radius: 3px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease;
  margin-bottom: 0.6rem;
}
.aw-drawer-btn-primary:hover { background: #B89B5E; border-color: #B89B5E; color: #fff; }
.aw-drawer-btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  color: #171717;
  border: 1px solid #3c3e40;
  border-radius: 3px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease;
  margin-bottom: 0.6rem;
}
.aw-drawer-btn-secondary:hover { background: #3c3e40; color: #F2F0EA; }

/* ── Loading state ──────────────────────────────────────────── */
.aw-drawer-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: #888;
  font-size: 0.85rem;
  font-family: 'Inter', system-ui, sans-serif;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 480px) {
  .aw-cart-drawer { width: 100vw; }
}
