/* ── Customer Auth & Shop CSS additions ─────────────────── */

/* Auth pages (login / register) */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-family: 'Inter', sans-serif;
}
.auth-left {
  background: linear-gradient(145deg, #051232 0%, #0a1f4e 45%, #1a3a8a 80%, #2557d6 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 40px;
  position: relative;
  overflow: hidden;
}
.auth-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.auth-left-inner { position: relative; z-index: 2; text-align: center; max-width: 420px; }
.auth-brand { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 70px; height: 70px; background: rgba(255,255,255,.12); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.2); border-radius: 16px; margin-bottom: 22px; }
.auth-brand .bm { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 900; color: #fff; line-height: 1; }
.auth-brand .sub { font-size: .48rem; font-weight: 700; letter-spacing: 2.5px; color: rgba(255,255,255,.7); margin-top: 2px; }
.auth-left h2 { font-family: 'Outfit', sans-serif; font-size: 1.8rem; font-weight: 800; color: #fff; margin-bottom: 12px; line-height: 1.2; }
.auth-left h2 span { color: #f59e0b; }
.auth-left p { color: rgba(255,255,255,.65); font-size: .9rem; line-height: 1.7; margin-bottom: 32px; }
.auth-perks { display: flex; flex-direction: column; gap: 14px; text-align: left; margin-top: 10px; }
.auth-perk { display: flex; align-items: flex-start; gap: 14px; }
.auth-perk-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.auth-perk-text h4 { font-size: .88rem; font-weight: 700; color: #fff; margin-bottom: 2px; }
.auth-perk-text p { font-size: .78rem; color: rgba(255,255,255,.6); }

.auth-right { background: #f1f5f9; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { background: #fff; border-radius: 20px; padding: 40px 36px; width: 100%; max-width: 440px; box-shadow: 0 8px 40px rgba(10,31,78,.1); animation: authSlide .45s ease; }
@keyframes authSlide { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
.auth-card h3 { font-family: 'Outfit', sans-serif; font-size: 1.55rem; font-weight: 800; color: #0a1f4e; margin-bottom: 4px; }
.auth-card .sub-head { font-size: .87rem; color: #64748b; margin-bottom: 28px; }
.auth-card .sub-head a { color: #2557d6; font-weight: 600; }
.auth-form-label { font-size: .82rem; font-weight: 600; color: #334155; display: block; margin-bottom: 7px; }
.auth-input-wrap { position: relative; margin-bottom: 18px; }
.auth-input-wrap i.ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: .85rem; pointer-events: none; transition: color .2s; }
.auth-input-wrap:focus-within i.ico { color: #2557d6; }
.auth-input-wrap input { width: 100%; padding: 11px 13px 11px 36px; border: 1.5px solid #e2e8f0; border-radius: 9px; font-size: .92rem; font-family: 'Inter',sans-serif; color: #0f172a; background: #fafafa; outline: none; transition: all .2s; }
.auth-input-wrap input:focus { border-color: #2557d6; background: #fff; box-shadow: 0 0 0 3px rgba(37,87,214,.1); }
.auth-eye { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: #94a3b8; font-size: .88rem; transition: color .2s; }
.auth-eye:hover { color: #2557d6; }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auth-btn { width: 100%; padding: 13px; background: linear-gradient(135deg, #1a3a8a, #2557d6); color: #fff; border: none; border-radius: 9px; font-size: .97rem; font-weight: 700; font-family: inherit; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all .25s; margin-top: 6px; }
.auth-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(37,87,214,.35); }
.auth-divider { display: flex; align-items: center; gap: 12px; color: #cbd5e1; font-size: .8rem; margin: 18px 0; }
.auth-divider::before, .auth-divider::after { content:''; flex:1; height:1px; background:#e2e8f0; }
.auth-note { font-size: .8rem; color: #64748b; text-align: center; margin-top: 16px; }
.auth-note a { color: #2557d6; font-weight: 600; }

/* Cart icon in nav */
.cart-icon-wrap { position: relative; display: inline-flex; align-items: center; padding: 9px 14px; border-radius: 7px; color: var(--text-mid); font-size: .92rem; font-weight: 500; transition: var(--transition); }
.cart-icon-wrap:hover { background: var(--blue-main); color: #fff; }
.cart-count { position: absolute; top: 4px; right: 4px; background: var(--gold); color: #fff; font-size: .58rem; font-weight: 800; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; line-height: 1; }

/* Cart page */
.cart-page { padding: 50px 0; background: var(--bg-light); min-height: 60vh; }
.cart-grid { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.cart-table-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.cart-table-card .cart-head { padding: 18px 24px; border-bottom: 1px solid #f1f5f9; display: flex; justify-content: space-between; align-items: center; }
.cart-table-card .cart-head h2 { font-family: 'Outfit',sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--blue-dark); }
.cart-item { display: grid; grid-template-columns: 80px 1fr auto auto auto; gap: 16px; align-items: center; padding: 16px 24px; border-bottom: 1px solid #f8fafc; }
.cart-item-img { width: 72px; height: 60px; border-radius: 8px; object-fit: cover; background: var(--steel-light); }
.cart-item-name { font-weight: 600; font-size: .92rem; color: var(--blue-dark); }
.cart-item-meta { font-size: .76rem; color: var(--text-light); margin-top: 3px; }
.qty-control { display: flex; align-items: center; gap: 6px; }
.qty-btn { width: 28px; height: 28px; border: 1.5px solid #e2e8f0; background: #f8fafc; border-radius: 6px; font-size: .9rem; cursor: pointer; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--blue-dark); transition: .15s; }
.qty-btn:hover { border-color: var(--blue-main); background: var(--blue-main); color: #fff; }
.qty-val { width: 36px; text-align: center; font-weight: 700; font-size: .92rem; }
.cart-item-price { font-family: 'Outfit',sans-serif; font-weight: 800; color: var(--blue-main); font-size: 1rem; white-space: nowrap; }
.remove-btn { background: none; border: none; color: #ef4444; cursor: pointer; font-size: 1rem; padding: 4px; transition: .2s; }
.remove-btn:hover { color: #dc2626; transform: scale(1.1); }
.cart-empty { text-align: center; padding: 60px 20px; }
.cart-empty i { font-size: 3rem; color: #cbd5e1; margin-bottom: 16px; }
.cart-empty h3 { color: var(--blue-dark); margin-bottom: 8px; }
.cart-empty p { color: var(--text-light); margin-bottom: 20px; }
.cart-summary { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.cart-summary h3 { font-family: 'Outfit',sans-serif; font-weight: 700; color: var(--blue-dark); margin-bottom: 18px; font-size: 1rem; }
.summary-row { display: flex; justify-content: space-between; font-size: .9rem; padding: 8px 0; border-bottom: 1px solid #f1f5f9; color: var(--text-mid); }
.summary-row.total { font-weight: 800; font-size: 1.1rem; color: var(--blue-dark); border-bottom: none; padding-top: 14px; }
.summary-note { font-size: .78rem; color: var(--text-light); margin: 12px 0 18px; }

/* Checkout */
.checkout-grid { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.checkout-section { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; margin-bottom: 20px; }
.checkout-section h3 { font-family: 'Outfit',sans-serif; font-weight: 700; color: var(--blue-dark); font-size: 1rem; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.checkout-section h3 .step-num { width: 28px; height: 28px; background: var(--blue-main); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 800; flex-shrink: 0; }
.payment-options { display: flex; flex-direction: column; gap: 12px; }
.payment-option { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 2px solid #e2e8f0; border-radius: 10px; cursor: pointer; transition: .2s; }
.payment-option input[type=radio] { accent-color: var(--blue-main); width: 16px; height: 16px; cursor: pointer; }
.payment-option:has(input:checked) { border-color: var(--blue-main); background: #eff6ff; }
.payment-option .pay-icon { font-size: 1.4rem; }
.payment-option .pay-title { font-weight: 600; font-size: .92rem; color: var(--blue-dark); }
.payment-option .pay-sub { font-size: .78rem; color: var(--text-light); }
.order-summary-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; position: sticky; top: 90px; }
.order-item-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.order-item-img { width: 52px; height: 44px; border-radius: 6px; object-fit: cover; flex-shrink: 0; background: var(--steel-light); }
.order-item-info .name { font-size: .85rem; font-weight: 600; color: var(--blue-dark); }
.order-item-info .qty { font-size: .76rem; color: var(--text-light); }
.order-item-price { font-weight: 700; font-size: .9rem; color: var(--blue-main); margin-left: auto; flex-shrink: 0; }

/* Account / Dashboard */
.account-grid { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.account-sidebar { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.account-profile { background: linear-gradient(135deg, var(--blue-dark), var(--blue-main)); padding: 28px 20px; text-align: center; }
.account-avatar { width: 64px; height: 64px; background: rgba(255,255,255,.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Outfit',sans-serif; font-size: 1.6rem; font-weight: 800; color: #fff; margin: 0 auto 12px; border: 3px solid rgba(255,255,255,.25); }
.account-profile h4 { font-family: 'Outfit',sans-serif; font-weight: 700; color: #fff; font-size: .95rem; }
.account-profile p { font-size: .76rem; color: rgba(255,255,255,.65); margin-top: 3px; }
.account-nav a { display: flex; align-items: center; gap: 10px; padding: 12px 20px; font-size: .88rem; color: var(--text-mid); border-bottom: 1px solid #f8fafc; transition: .2s; font-weight: 500; }
.account-nav a:hover, .account-nav a.active { background: #eff6ff; color: var(--blue-main); border-left: 3px solid var(--blue-main); }
.account-nav a i { width: 16px; text-align: center; }
.order-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; overflow: hidden; }
.order-card-header { padding: 14px 20px; background: var(--bg-light); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.order-no { font-family: 'Outfit',sans-serif; font-weight: 700; color: var(--blue-dark); font-size: .92rem; }
.order-date { font-size: .78rem; color: var(--text-light); }
.status-badge { padding: 4px 12px; border-radius: 50px; font-size: .72rem; font-weight: 700; }
.status-pending    { background: #fef9c3; color: #854d0e; }
.status-confirmed  { background: #dbeafe; color: #1e40af; }
.status-processing { background: #fae8ff; color: #7e22ce; }
.status-shipped    { background: #ffedd5; color: #9a3412; }
.status-delivered  { background: #dcfce7; color: #166534; }
.status-cancelled  { background: #fee2e2; color: #991b1b; }
.order-card-body { padding: 16px 20px; }
.order-total-row { display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px solid #f1f5f9; margin-top: 10px; }
.order-total-row .label { font-size: .85rem; font-weight: 600; color: var(--text-mid); }
.order-total-row .amount { font-family: 'Outfit',sans-serif; font-size: 1.05rem; font-weight: 800; color: var(--blue-main); }

/* Success page */
.success-page { text-align: center; padding: 80px 20px; }
.success-icon { width: 90px; height: 90px; background: #dcfce7; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; margin: 0 auto 24px; }
.success-page h2 { font-family: 'Outfit',sans-serif; font-size: 2rem; font-weight: 800; color: var(--blue-dark); margin-bottom: 12px; }
.success-page p { color: var(--text-light); font-size: 1rem; margin-bottom: 28px; max-width: 500px; margin-inline: auto; }
.success-order-no { display: inline-block; background: var(--bg-light); border-radius: 8px; padding: 10px 24px; font-family: 'Outfit',sans-serif; font-weight: 800; color: var(--blue-main); font-size: 1.1rem; margin-bottom: 24px; }

@media (max-width:900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .auth-right { background: linear-gradient(145deg,#051232,#1a3a8a); }
  .auth-card { background: rgba(255,255,255,.97); }
  .cart-grid, .checkout-grid, .account-grid { grid-template-columns: 1fr; }
  .order-summary-card { position: static; }
}
@media (max-width:600px) {
  .cart-item { grid-template-columns: 60px 1fr auto; }
  .cart-item-price, .remove-btn { grid-column: 2/-1; }
  .auth-row { grid-template-columns: 1fr; }
}
