/* ─── CART ICON IN NAV ────────────────────────────────────────── */
.cart-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--white-70);
  text-decoration: none;
  padding: 6px;
  transition: color 0.2s;
  flex-shrink: 0;
}
.cart-icon-btn:hover { color: var(--white); }

.cart-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  background: #e8102e;
  color: #fff;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  transition: transform 0.2s;
}
.cart-badge.bump { transform: scale(1.4); }
.cart-badge[data-count="0"] { display: none; }

/* ─── CART PAGE WRAPPER ───────────────────────────────────────── */
.cart-page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px 54px 100px;
}

.cart-heading {
  text-align: center;
  margin-bottom: 60px;
}

/* ─── LAYOUT ──────────────────────────────────────────────────── */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: start;
}

/* ─── CART ITEMS ──────────────────────────────────────────────── */
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cart-item-thumb {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background: #1a0028;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-item-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}

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

.cart-item-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 4px;
}

.cart-item-name {
  font-family: var(--font-head);
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-size {
  font-size: 12px;
  color: var(--white-40);
  font-weight: 600;
  margin-top: 4px;
}

.cart-item-price {
  font-family: var(--font-head);
  font-size: 20px;
  color: var(--white);
  margin-top: 6px;
}

.cart-item-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 4px 8px;
}

.qty-btn {
  background: none;
  border: none;
  color: var(--white-70);
  font-size: 18px;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
  line-height: 1;
  padding: 0;
}
.qty-btn:hover { color: var(--white); }

.qty-val {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  min-width: 20px;
  text-align: center;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--white-40);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0;
}
.cart-item-remove:hover { color: #e8102e; }

/* ─── EMPTY STATE ─────────────────────────────────────────────── */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 60px 0;
  color: var(--white-40);
  font-size: 15px;
  font-weight: 600;
}

.cart-back-link {
  display: inline-block;
  margin-top: 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--white-40);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}
.cart-back-link:hover { color: var(--white); }

/* ─── TOTALS ──────────────────────────────────────────────────── */
.cart-totals {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 22px 24px;
  margin-bottom: 28px;
}

.totals-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--white-70);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.totals-row:last-child { border-bottom: none; }

.totals-note {
  font-size: 12px;
  color: var(--white-40);
}

.totals-total {
  font-family: var(--font-head);
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--white);
  margin-top: 4px;
}

/* ─── ORDER FORM ──────────────────────────────────────────────── */
.order-form {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 28px 26px;
}

.form-title {
  font-family: var(--font-head);
  font-size: 20px;
  letter-spacing: 1.5px;
  color: var(--white);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--white-40);
  margin-bottom: 7px;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 11px 14px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.2);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(255,255,255,0.35);
}

/* ─── PAYMENT OPTIONS ─────────────────────────────────────────── */
.payment-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.pay-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}

.pay-option.selected {
  border-color: #25D366;
  background: rgba(37,211,102,0.06);
}

.pay-qpay-soon {
  cursor: not-allowed;
  opacity: 0.6;
}

.pay-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
}
.pay-desc {
  font-size: 11px;
  color: var(--white-40);
  margin-top: 2px;
}

.pay-soon-tag {
  position: absolute;
  right: 14px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  background: rgba(255,255,255,0.1);
  color: var(--white-40);
  padding: 3px 8px;
  border-radius: 3px;
}

/* ─── ORDER BUTTON ────────────────────────────────────────────── */
.btn-order-whatsapp {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 15px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.btn-order-whatsapp:hover {
  background: #1da851;
  box-shadow: 0 0 28px rgba(37,211,102,0.35);
  transform: translateY(-1px);
}
.btn-order-whatsapp:active { transform: translateY(0); }
.btn-order-whatsapp:disabled {
  background: rgba(255,255,255,0.1);
  color: var(--white-40);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.order-note {
  font-size: 12px;
  color: var(--white-40);
  font-weight: 500;
  text-align: center;
  margin-top: 14px;
  line-height: 1.6;
}

/* ─── SUCCESS SCREEN ──────────────────────────────────────────── */
.order-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.order-success.show { display: block; }

.success-icon {
  width: 64px; height: 64px;
  background: rgba(37,211,102,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.success-title {
  font-family: var(--font-head);
  font-size: 36px;
  color: var(--white);
  margin-bottom: 10px;
}

.success-msg {
  font-size: 14px;
  color: var(--white-40);
  line-height: 1.7;
}

/* ─── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .cart-page-wrapper {
    padding: 120px 24px 80px;
  }
}

@media (max-width: 640px) {
  .cart-page-wrapper {
    padding: 90px 16px 60px;
  }
  .cart-item {
    grid-template-columns: 64px 1fr auto;
    gap: 12px;
  }
  .cart-item-thumb {
    width: 64px;
    height: 64px;
  }
  .cart-item-name {
    font-size: 18px;
  }
}
