/* ═══════════════════════════════════════════════
   NAWABIQUE — cart.css
   Product Modal + Cart Toast + Success Screen
   ═══════════════════════════════════════════════ */

/* ── MODAL OVERLAY ── */
.nw-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}
.nw-modal-overlay.open { opacity: 1; }

/* ── MODAL BOX ── */
.nw-modal {
  background: #faf8f3;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  border-radius: 24px 24px 0 0;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  padding-bottom: 32px;
}
.nw-modal-overlay.open .nw-modal {
  transform: translateY(0);
}

/* ── CLOSE BUTTON ── */
.nw-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.08);
  border: none;
  font-size: 14px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
}

/* ── PRODUCT IMAGE ── */
.nw-modal-img-wrap {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
}
.nw-modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nw-modal-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #C9A84C;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ── MODAL BODY ── */
.nw-modal-body {
  padding: 20px 20px 0;
}
.nw-modal-cat {
  font-size: 11px;
  color: #C9A84C;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.nw-modal-name {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  color: #1a1a1a;
  margin: 6px 0 12px;
  line-height: 1.3;
}

/* ── PRICE ── */
.nw-modal-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.nw-mprice-new {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
}
.nw-mprice-old {
  font-size: 15px;
  color: #999;
  text-decoration: line-through;
}
.nw-mprice-off {
  font-size: 12px;
  background: #e8f5e9;
  color: #2e7d32;
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 600;
}

/* ── SECTION ── */
.nw-modal-section {
  margin-bottom: 18px;
}
.nw-modal-label {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* ── SIZE BUTTONS ── */
.nw-modal-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nw-size-btn {
  min-width: 44px;
  padding: 8px 14px;
  border: 1.5px solid #ddd;
  background: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  color: #333;
}
.nw-size-btn.active {
  border-color: #C9A84C;
  background: #C9A84C;
  color: #fff;
}
.nw-size-btn:hover:not(.active) {
  border-color: #C9A84C;
  color: #C9A84C;
}

/* ── QUANTITY ── */
.nw-qty-row {
  display: flex;
  align-items: center;
  gap: 0;
  background: #f0ede6;
  border-radius: 10px;
  width: fit-content;
  overflow: hidden;
}
.nw-qty-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  color: #C9A84C;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.nw-qty-btn:hover { background: #e0dbd0; }
.nw-qty-val {
  min-width: 36px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
}

/* ── ACTION BUTTONS ── */
.nw-modal-actions {
  display: flex;
  gap: 10px;
  margin: 20px 0 16px;
}
.nw-btn-cart, .nw-btn-buy {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}
.nw-btn-cart {
  background: #f0ede6;
  color: #C9A84C;
  border: 1.5px solid #C9A84C;
}
.nw-btn-cart:hover {
  background: #C9A84C;
  color: #fff;
}
.nw-btn-buy {
  background: #C9A84C;
  color: #fff;
}
.nw-btn-buy:hover {
  background: #b8943d;
}

/* ── FEATURES ── */
.nw-modal-features {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px;
  background: #f5f2eb;
  border-radius: 12px;
  margin-top: 4px;
}
.nw-modal-features span {
  font-size: 11px;
  color: #666;
  font-weight: 500;
}

/* ── CART TOAST NOTIFICATION ── */
.nw-toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1a1a1a;
  color: #fff;
  padding: 12px 16px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  max-width: 340px;
  z-index: 99999;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.nw-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.nw-toast span:first-child {
  font-size: 22px;
}
.nw-toast div {
  flex: 1;
}
.nw-toast div strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.nw-toast div p {
  font-size: 12px;
  color: #C9A84C;
  margin: 2px 0 0;
}
.nw-toast button {
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
}

/* ── CART BADGE ── */
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #C9A84C;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}

/* ── SUCCESS MODAL ── */
.nw-success-modal {
  text-align: center;
  padding: 40px 24px;
  border-radius: 24px;
  max-height: unset;
  margin: auto;
}
.nw-success-icon {
  font-size: 56px;
  margin-bottom: 12px;
}
.nw-success-modal h2 {
  font-family: 'Cinzel', serif;
  font-size: 24px;
  color: #1a1a1a;
  margin-bottom: 8px;
}
.nw-success-product {
  color: #666;
  font-size: 15px;
  margin-bottom: 4px;
}
.nw-success-amount {
  font-size: 28px;
  font-weight: 700;
  color: #C9A84C;
  margin-bottom: 8px;
}
.nw-success-id {
  font-size: 11px;
  color: #aaa;
  margin-bottom: 24px;
}

/* ── CURSOR POINTER ON CARDS ── */
.explore-img-wrap,
.explore-name {
  cursor: pointer;
}

/* ── SCROLLBAR HIDE ── */
.nw-modal::-webkit-scrollbar { display: none; }
.nw-modal { -ms-overflow-style: none; scrollbar-width: none; }

/* ════════════════════════════════════════════
   CHECKOUT FORM
════════════════════════════════════════════ */
.nw-checkout-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}
.nw-checkout-overlay.open { opacity: 1; }

.nw-checkout-modal {
  background: #faf8f3;
  width: 100%; max-width: 480px;
  max-height: 94vh;
  border-radius: 24px 24px 0 0;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.nw-checkout-overlay.open .nw-checkout-modal { transform: translateY(0); }
.nw-checkout-modal::-webkit-scrollbar { display: none; }

.nw-checkout-header {
  position: sticky; top: 0;
  background: #faf8f3;
  padding: 18px 20px 12px;
  border-bottom: 1px solid #ede8dc;
  z-index: 2;
}
.nw-checkout-title {
  font-family: 'Cinzel', serif;
  font-size: 18px; color: #1a1a1a;
  margin: 0; text-align: center;
}

.nw-order-summary {
  display: flex; gap: 14px;
  padding: 16px 20px;
  background: #f5f2eb;
  align-items: center;
}
.nw-os-img {
  width: 64px; height: 64px;
  border-radius: 10px; object-fit: cover;
}
.nw-os-name { font-size: 13px; font-weight: 600; color: #1a1a1a; margin-bottom: 4px; }
.nw-os-meta { font-size: 11px; color: #888; margin-bottom: 4px; }
.nw-os-price { font-size: 16px; font-weight: 700; color: #C9A84C; }

.nw-checkout-form { padding: 20px; }

.nw-form-group { margin-bottom: 16px; }
.nw-form-label {
  display: block; font-size: 12px;
  color: #888; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.6px;
  margin-bottom: 6px;
}
.nw-form-input {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid #e0dbd0;
  border-radius: 10px; font-size: 14px;
  background: #fff; color: #1a1a1a;
  outline: none; box-sizing: border-box;
  font-family: inherit;
  transition: border-color 0.2s;
}
.nw-form-input:focus { border-color: #C9A84C; }
.nw-form-textarea { resize: none; height: 80px; }

.nw-phone-row { display: flex; gap: 8px; align-items: center; }
.nw-phone-code {
  padding: 12px 14px;
  background: #f0ede6;
  border-radius: 10px;
  font-size: 14px; white-space: nowrap;
  border: 1.5px solid #e0dbd0;
}
.nw-phone-inp { flex: 1; }

.nw-form-row { display: flex; gap: 12px; }
.nw-form-row .nw-form-group { flex: 1; }

.nw-form-error {
  color: #c0392b; font-size: 13px;
  margin-bottom: 12px; padding: 10px 14px;
  background: #fdf0ee; border-radius: 8px;
}

.nw-checkout-total {
  display: flex; justify-content: space-between;
  align-items: center;
  padding: 14px; background: #f0ede6;
  border-radius: 12px; margin-bottom: 16px;
  font-size: 14px; font-weight: 600; color: #1a1a1a;
}
.nw-checkout-total-amt { font-size: 20px; color: #C9A84C; font-weight: 700; }
.nw-btn-proceed { width: 100%; padding: 16px; font-size: 16px; border-radius: 14px; }

/* ════════════════════════════════════════════
   SUCCESS SCREEN
════════════════════════════════════════════ */
.nw-success-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
  padding: 20px; box-sizing: border-box;
}
.nw-success-overlay.open { opacity: 1; }

.nw-success-modal {
  background: #faf8f3;
  border-radius: 24px;
  padding: 32px 24px;
  width: 100%; max-width: 380px;
  text-align: center;
  max-height: 90vh; overflow-y: auto;
}
.nw-success-icon { font-size: 56px; margin-bottom: 12px; }
.nw-success-modal h2 {
  font-family: 'Cinzel', serif;
  font-size: 22px; color: #1a1a1a; margin-bottom: 8px;
}
.nw-success-product { color: #666; font-size: 14px; margin-bottom: 4px; }
.nw-success-amount { font-size: 26px; font-weight: 700; color: #C9A84C; margin-bottom: 16px; }
.nw-success-delivery {
  background: #f0ede6; border-radius: 12px;
  padding: 14px; margin-bottom: 14px;
  text-align: left; font-size: 13px; color: #444; line-height: 1.6;
}
.nw-success-id { font-size: 11px; color: #aaa; margin-bottom: 20px; }
.nw-success-actions { display: flex; gap: 10px; }
.nw-btn-outline {
  flex: 1; padding: 14px;
  border: 1.5px solid #C9A84C;
  background: transparent; color: #C9A84C;
  border-radius: 12px; font-size: 13px;
  font-weight: 600; cursor: pointer;
}
.nw-success-actions .nw-btn-buy { flex: 1; padding: 14px; font-size: 13px; border-radius: 12px; }

/* ════════════════════════════════════════════
   MY ORDERS
════════════════════════════════════════════ */
.nw-orders-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 99999;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
}
.nw-orders-overlay.open { opacity: 1; }

.nw-orders-modal {
  background: #faf8f3;
  width: 100%; max-width: 480px;
  max-height: 90vh;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  display: flex; flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.nw-orders-overlay.open .nw-orders-modal { transform: translateY(0); }

.nw-orders-header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid #ede8dc;
  text-align: center; position: relative;
}
.nw-orders-header h2 {
  font-family: 'Cinzel', serif;
  font-size: 18px; color: #1a1a1a; margin: 0 0 4px;
}
.nw-orders-header p { font-size: 12px; color: #999; margin: 0; }

.nw-orders-list {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.nw-orders-list::-webkit-scrollbar { display: none; }

.nw-order-card {
  background: #fff; border-radius: 14px;
  padding: 14px; border: 1px solid #ede8dc;
}
.nw-order-top { display: flex; gap: 12px; margin-bottom: 10px; }
.nw-order-img {
  width: 70px; height: 70px;
  border-radius: 10px; object-fit: cover;
}
.nw-order-name { font-size: 13px; font-weight: 600; color: #1a1a1a; margin-bottom: 4px; }
.nw-order-meta { font-size: 11px; color: #888; margin-bottom: 4px; }
.nw-order-price { font-size: 15px; font-weight: 700; color: #C9A84C; margin-bottom: 6px; }
.nw-order-status {
  font-size: 11px; padding: 3px 10px;
  border-radius: 20px; font-weight: 600;
  background: #e8f5e9; color: #2e7d32;
}
.nw-order-footer {
  display: flex; justify-content: space-between;
  font-size: 11px; color: #aaa;
  padding-top: 10px; border-top: 1px solid #f0ede6;
}
.nw-orders-empty {
  text-align: center; padding: 40px 20px;
  color: #888; font-size: 15px;
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
}

/* Cart badge fix */
.cart-badge {
  position: absolute !important;
  top: -4px !important;
  right: -4px !important;
  background: #C9A84C !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  width: 16px !important;
  height: 16px !important;
  border-radius: 50% !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  z-index: 999 !important;
  line-height: 1 !important;
}