/* =========================
   AUTH PAGES (LOGIN / SIGNUP)
========================= */

.auth-page {
  background: #e4f1ef;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.auth-container {
  width: 100%;
  max-width: 1100px;
  background: #ffffff;
  border-radius: 20px;
  display: flex;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* LEFT IMAGE */
.auth-image {
  flex: 1;
}

.auth-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* RIGHT FORM */
.auth-form {
  flex: 1;
  background: #e4f1ef;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-form h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 15px;
  margin-bottom: 28px;
  color: #333;
}

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

.form-group label {
  font-size: 14px;
  margin-bottom: 6px;
  display: block;
  font-weight: 500;
}

.form-group input:not([type="checkbox"]):not([type="radio"]) {
  width: 100%;
  height: 48px;
  padding: 0 18px;
  border-radius: 30px;
  border: 1px solid #ccc;
  font-size: 14px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.form-group input:not([type="checkbox"]):not([type="radio"]):focus {
  outline: none;
  border-color: #0f766e;
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.15);
}

/* PASSWORD */
.password-wrapper {
  position: relative;
}

.password-hint {
  font-size: 11px;
  color: #666;
  margin-top: 4px;
}

.toggle-password {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 16px;
  opacity: 0.7;
}

/* BUTTONS */
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  background: #0f766e;
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 500;
  margin-top: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.primary-btn:hover {
  background: #0b5f59;
}

.auth-switch {
  text-align: center;
  font-size: 14px;
  margin: 16px 0;
}

.auth-switch a {
  color: #0f766e;
  font-weight: 600;
  text-decoration: none;
}

/* DIVIDER */
.divider {
  text-align: center;
  font-size: 13px;
  margin: 16px 0;
  color: #666;
}

/* GOOGLE BUTTON */
.google-btn {
  width: 100%;
  height: 48px;
  border-radius: 30px;
  border: 1px solid #ccc;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
}

.google-btn img {
  width: 18px;
  height: 18px;
}

.form-extra {
  display: flex;
  justify-content: flex-end;
  margin: 6px 0 12px;
}

.forgot-link {
  font-size: 14px;
  color: #0f766e;
  text-decoration: none;
  font-weight: 500;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .auth-container {
    flex-direction: column;
  }

  .auth-image {
    display: none;
  }

  .auth-form {
    padding: 32px 24px;
  }
}

/* ===== ACCOUNT PAGE ===== */
.account-layout {
  max-width: 1200px;
  margin: 40px auto;
  display: flex;
  gap: 24px;
  height: calc(100vh - 80px); /* adjust based on header height */
  overflow: hidden;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 260px;
  background: #0f766e;
  color: #fff;
  border-radius: 16px;
  padding: 24px;
}

.sidebar-header {
  text-align: center;
  margin-bottom: 24px;
}

.sidebar-header .avatar {
  width: 60px;
  height: 60px;
  margin: 0 auto;
  background: #fff;
  color: #0f766e;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 600;
  line-height: 60px;
}

.sidebar-header .name {
  margin-top: 10px;
  font-size: 14px;
}

.menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu li {
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 14px;
}

.menu li.active,
.menu li:hover {
  background: rgba(255, 255, 255, 0.15);
}

.menu a {
  color: inherit;
  text-decoration: none;
}

/* ===== CONTENT ===== */
.content {
  flex: 1;
  overflow-y: auto;
  padding-right: 10px;
}

.profile-box {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  max-width: 700px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  margin: 0 auto;
}

/* HEADER */
.profile-header {
  display: flex;
  flex-direction: column; /* ✅ STACK */
  align-items: center; /* ✅ CENTER */
  text-align: center;
  gap: 10px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eee;
}

.profile-header img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: block;
}

.profile-header small {
  font-size: 12px;
  color: #777;
}

.profile-header h2 {
  margin-top: 6px;
  font-size: 20px;
  color: #0f766e;
}

/* GRID */
.profile-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-items: center;
  text-align: center;
  gap: 20px 40px;
}

.profile-grid label {
  font-size: 12px;
  color: #777;
}

.profile-grid p {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 500;
}

/* ACTION */
.profile-action {
  margin-top: 32px;
  text-align: center;
}

.profile-action .primary-btn {
  padding: 12px 36px; /* ✅ FIX SIZE */
  font-size: 14px;
  min-width: 140px; /* ✅ CONSISTENT BUTTON */
  text-align: center;
}

.profile-referral-block {
  grid-column: span 2;
}

.profile-referral-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-referral-help {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 0.85rem;
  line-height: 1.45;
  text-align: center;
}

#profileReferralCode {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px dashed #0f766e;
  border-radius: 999px;
  background: #f0fdfa;
  color: #0f766e;
  font-weight: 700;
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  .profile-referral-block {
    grid-column: span 1;
  }
}

.address-list {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.address-card {
  background: #fff;
  padding: 16px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.address-name {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.default-badge {
  background: #0f766e;
  color: white;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
}

.address-actions {
  margin-top: 12px;
  display: flex;
  gap: 12px;
}

.address-actions a,
.address-actions button {
  font-size: 13px;
  background: none;
  border: none;
  color: #0f766e;
  cursor: pointer;
}

.form-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
}

.form-group.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-outlne {
  border: 1px solid #0f766e;
  color: #0f766e;
  padding: 10px 22px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 14px;
}

/* CHECKBOX FIX */
.checkbox-group {
  margin-top: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #0f766e;
}

/* SELECT DROPDOWN */
.form-group select {
  width: 100%;
  height: 48px;
  padding: 0 18px;
  border-radius: 30px;
  border: 1px solid #ccc;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
}

.form-group select:focus {
  outline: none;
  border-color: #0f766e;
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.15);
}

/* OTP INPUTS */
.otp-inputs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 24px 0;
}

.otp-box {
  width: 48px;
  height: 52px;
  text-align: center;
  font-size: 20px;
  border-radius: 10px;
  border: 1px solid #ccc;
  outline: none;
}

.otp-box:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.15);
}

/* TIMER */
.otp-timer {
  text-align: center;
  font-size: 14px;
  color: #555;
  margin-bottom: 12px;
}

/* RESEND BUTTON */
.resend-btn {
  width: 100%;
  height: 42px;
  border-radius: 30px;
  border: 1px solid #0f766e;
  background: transparent;
  color: #0f766e;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 16px;
  transition: all 0.2s ease;
}

.resend-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.resend-btn:not(:disabled):hover {
  background: #0f766e;
  color: #fff;
}

/* ERROR */
.otp-error {
  text-align: center;
  color: #dc2626;
  font-size: 14px;
  min-height: 18px;
}

.hidden {
  display: none;
}

.address-card {
  border: 1px solid #e5e7eb;
  padding: 18px;
  border-radius: 14px;
  margin-bottom: 18px;
  position: relative;
  background: #fff;
}

.address-card.default {
  border-color: var(--primary);
  background: #f0fdfa;
}

.default-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
}

.address-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-delete {
  background: #dc2626;
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.btn-set-default {
  background: var(--primary);
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.secondary-btn.small {
  padding: 6px 14px;
  font-size: 13px;
}

.password-success {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #16a34a; /* clean green */
}

.password-strength {
  display: block;
  margin-top: 6px;
  font-size: 12px;
}

.password-weak {
  color: #dc2626; /* red */
}

.password-medium {
  color: #f59e0b; /* orange */
}

.password-strong {
  color: #16a34a; /* green */
}

.field-error {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #dc2626;
}

.input-error {
  border-color: #dc2626 !important;
}

/* =========================
   CONFIRM MODAL
========================= */

.confirm-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.confirm-modal.hidden {
  display: none;
}

.confirm-box {
  background: #ffffff;
  width: 430px;
  max-width: 90%;
  padding: 28px 24px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  animation: modalFade 0.25s ease;
}

.confirm-box p {
  font-size: 15px;
  color: #333;
  margin-bottom: 24px;
  line-height: 1.5;
}

.confirm-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

/* Reset any global button behavior */
.confirm-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 130px; /* Fixed equal width */
  height: 42px; /* Fixed equal height */

  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s ease;

  margin: 0; /* Remove unwanted margin */
}

/* Cancel */
.confirm-actions .secondary-btn {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #333;
}

.confirm-actions .secondary-btn:hover {
  background: #e5e7eb;
}

/* Confirm */
.confirm-actions .danger-btn {
  background: #dc2626;
  border: none;
  color: #fff;
}

.confirm-actions .danger-btn:hover {
  background: #b91c1c;
}

/* Confirm Button (Danger style) */
.confirm-actions .danger-btn {
  background: #dc2626;
  border: none;
  color: white;
}

.confirm-actions .danger-btn:hover {
  background: #b91c1c;
}

/* Animation */
@keyframes modalFade {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.modal-footer button {
  min-width: 130px;
  height: 42px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s ease;
}

/* Cancel button */
.btn-cancel {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #374151;
}

.btn-cancel:hover {
  background: #e5e7eb;
}

/* Primary button */
.btn-primary {
  background: #bda417; /* your brand green */
  border: none;
  color: white;
}

.btn-primary:hover {
  background: #c7b134;
}

/* Disabled resend */
#resendEmailOtpBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.otp-timer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 13px;
  color: #6b7280;
}

.link-btn {
  background: none;
  border: none;
  color: #0f766e;
  cursor: pointer;
  font-weight: 500;
}

.link-btn:hover {
  text-decoration: underline;
}

.auth-block {
  display: none;
}

input.error {
  border: 1px solid #e74c3c;
}

/* ===== TOAST NOTIFICATION ===== */

.toast {
  position: fixed;
  top: 80px; /* Adjust based on your header height */
  left: 50%;
  transform: translateX(-50%) translateY(-10px);

  min-width: 280px;
  max-width: 420px;
  padding: 14px 22px;

  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  text-align: center;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  z-index: 3000;

  opacity: 0;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-success {
  background: #16a34a;
}

.toast-error {
  background: #dc2626;
}

.shop-page {
  padding-top: 2rem;
}

.shop-header {
  margin-bottom: 1.5rem;
}

.shop-header h1 {
  font-size: 2rem;
  color: #0f172a;
}

.shop-subtitle {
  color: #64748b;
  margin-top: 0.4rem;
}

.shop-alert {
  background: #fee2e2;
  color: #991b1b;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
}

.shop-sidebar {
  background: #ffffff;
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  height: fit-content;
}

.shop-price-block {
  display: grid;
  gap: 6px;
}

.shop-price-stack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.shop-price-original {
  color: #94a3b8;
  text-decoration: line-through;
  font-size: 0.95rem;
}

.shop-price-final {
  color: #0f172a;
  font-weight: 800;
  font-size: 1.05rem;
}

.shop-offer-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.78rem;
  font-weight: 700;
}

.shop-variant-price-stack {
  display: grid;
  gap: 4px;
}

.shop-offer-badge.is-placeholder {
  visibility: hidden;
}

.filter-group {
  margin-bottom: 1rem;
}

.filter-group label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 600;
  color: #0f172a;
}

.filter-group input,
.filter-group select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
}

.shop-search-row {
  display: flex;
  gap: 0.5rem;
}

.btn-filter-clear {
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 12px;
  padding: 0 0.9rem;
  cursor: pointer;
}

.price-range-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.filter-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.btn-shop-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid #0f766e;
  color: #0f766e;
  border-radius: 20px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}

.shop-content {
  min-width: 0;
}

.shop-toolbar {
  margin-bottom: 1rem;
  color: #475569;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.shop-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  position: relative;
}

.shop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

.shop-card-link {
  display: block;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
}

.shop-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  margin-bottom: 0.9rem;
}

.shop-card h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
  color: #0f172a;
}

.wishlist-icon-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #cfe0dc;
  background: rgba(255, 255, 255, 0.96);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(18, 56, 52, 0.08);
  transition: all 0.2s ease;
}

.wishlist-icon-btn:hover {
  border-color: #0f766e;
  transform: translateY(-1px);
}

.wishlist-icon-btn .wishlist-icon-outline,
.wishlist-icon-btn .wishlist-icon-filled {
  position: absolute;
  font-size: 1.15rem;
  line-height: 1;
}

.wishlist-icon-btn .wishlist-icon-outline {
  color: #0f766e;
  display: inline;
}

.wishlist-icon-btn .wishlist-icon-filled {
  color: #dc2626;
  display: none;
}

.wishlist-icon-btn.active {
  border-color: #f1b6b6;
  background: #fff5f5;
}

.wishlist-icon-btn.active .wishlist-icon-outline {
  display: none;
}

.wishlist-icon-btn.active .wishlist-icon-filled {
  display: inline;
}

.shop-meta {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 0.55rem;
}

.shop-price {
  color: #0f766e;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.shop-stock {
  font-size: 0.9rem;
  font-weight: 600;
}

.shop-stock.in-stock {
  color: #15803d;
}

.shop-stock.out-stock {
  color: #b91c1c;
}

.shop-empty {
  background: #fff;
  border-radius: 18px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.shop-pagination {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.page-btn {
  text-decoration: none;
  padding: 0.55rem 1rem;
  border-radius: 20px;
  background: #0f766e;
  color: #fff;
}

.page-btn.disabled {
  background: #cbd5e1;
  pointer-events: none;
}

.page-current {
  color: #334155;
  font-weight: 600;
}

.shop-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.shop-add-cart-btn,
.shop-choose-options-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #0f766e;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.shop-add-cart-btn {
  background: #0f766e;
  color: #fff;
}

.shop-choose-options-btn {
  background: #fff;
  color: #0f766e;
}

.shop-add-cart-btn:disabled {
  background: #d8e2e6;
  border-color: #d8e2e6;
  color: #7b8b95;
  cursor: not-allowed;
}

.shop-variant-modal-card {
  max-width: 720px;
}

.shop-variant-options {
  display: grid;
  gap: 12px;
  margin-top: 8px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}

.shop-variant-option-card {
  width: 100%;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid #d7e4e1;
  border-radius: 16px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.shop-variant-option-card img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.shop-variant-option-card.active {
  border-color: #0f766e;
  box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.15);
}

.shop-variant-option-card.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.shop-variant-option-content {
  display: grid;
  gap: 4px;
}

.shop-variant-option-content strong {
  color: #0f172a;
}

.shop-variant-option-content span {
  color: #0f766e;
  font-weight: 700;
}

.shop-variant-option-content small.in-stock {
  color: #15803d;
}

.shop-variant-option-content small.out-stock {
  color: #b91c1c;
}

.shop-variant-option-content small.cart-limit {
  color: #b45309;
}

@media (max-width: 640px) {
  .shop-card-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .shop-add-cart-btn,
  .shop-choose-options-btn {
    width: 100%;
  }

  .shop-variant-option-card {
    grid-template-columns: 56px 1fr;
  }

  .shop-variant-option-card img {
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 900px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }
}

.shop-notice {
  background: #ecfeff;
  color: #155e75;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.product-detail-page {
  padding-top: 2rem;
}

.product-breadcrumb {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 1.5rem;
}

.product-breadcrumb a {
  text-decoration: none;
  color: #0f766e;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.product-gallery-section {
  background: #fff;
  border-radius: 20px;
  padding: 1rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.product-main-image-box {
  background: #f8fafc;
  border-radius: 18px;
  overflow: hidden;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-detail-wishlist-btn {
  top: 16px;
  right: 16px;
}

.product-main-image-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.product-main-image-box img.zoomed {
  transform: scale(1.8);
  cursor: zoom-in;
}

.product-thumbnail-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.product-thumb-btn {
  width: 78px;
  height: 78px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  padding: 0;
}

.product-thumb-btn.active {
  border-color: #0f766e;
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.15);
}

.product-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info-section {
  background: #fff;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.product-price-guard-section {
  border: 1px solid #d9e5e2;
  border-radius: 22px;
  background: #ffffff;
  padding: 22px 24px;
}

.product-price-guard-section h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.product-price-guard-section p {
  margin: 0 0 18px;
  color: #64748b;
  font-size: 0.94rem;
  line-height: 1.5;
}

.product-price-guard-field {
  width: min(320px, 100%);
}

.product-offer-section {
  border: 1px solid #d9e5e2;
  border-radius: 22px;
  background: linear-gradient(180deg, #f8fcfb 0%, #ffffff 100%);
  padding: 22px 24px;
}

.product-offer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.product-offer-head h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.product-offer-head p {
  margin: 0;
  color: #64748b;
  font-size: 0.94rem;
  line-height: 1.5;
}

.product-offer-head-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.product-offer-head-actions .btn-outline {
  border: 1px solid #0f766e;
  background: #ecfdf5;
  color: #0f766e;
}

.product-offer-head-actions .btn-outline:hover {
  background: #d1fae5;
  color: #115e59;
}

.product-offer-head-actions .btn-cncel {
  border: 1px solid #ef4444;
  background: #fef2f2;
  color: #b91c1c;
}

.product-offer-head-actions .btn-cncel:hover {
  background: #fee2e2;
  color: #991b1b;
}

.product-offer-head-actions .btn-outline,
.product-offer-head-actions .btn-cncel {
  min-width: 130px;
}

.product-offer-grid {
  width: min(760px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 320px));
  justify-content: center;
  gap: 18px 20px;
}

.product-offer-grid .form-group {
  margin-bottom: 0;
}

.product-offer-grid .form-control {
  width: 100%;
}

.product-offer-grid.hidden {
  display: none;
}

.product-offer-grid input[type="datetime-local"] {
  min-width: 0;
}

@media (max-width: 900px) {
  .product-offer-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    width: 100%;
  }
}

@media (max-width: 768px) {
  .product-offer-head {
    flex-direction: column;
    align-items: stretch;
  }

  .product-offer-head-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .product-offer-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }
}

.category-modal-card {
  width: min(720px, calc(100vw - 32px));
  max-width: min(720px, calc(100vw - 32px));
}

.category-offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.category-offer-grid > div {
  min-width: 0;
}

.category-offer-grid .modal-input {
  width: 100%;
  min-width: 0;
}

@media (max-width: 640px) {
  .category-modal-card {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
  }

  .category-offer-grid {
    grid-template-columns: 1fr;
  }
}

.detail-brand {
  color: #0f766e;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.product-info-section h1 {
  font-size: 2rem;
  color: #0f172a;
  margin-bottom: 0.8rem;
}

.detail-rating-row {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1rem;
}

.detail-rating-badge {
  background: #facc15;
  color: #1f2937;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-weight: 700;
}

.detail-rating-count {
  color: #64748b;
  font-size: 0.95rem;
}

.detail-price-row {
  margin-bottom: 1rem;
}

.detail-price-extra {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin-top: 0.45rem;
  flex-wrap: wrap;
}

.detail-original-price {
  color: #94a3b8;
  text-decoration: line-through;
  font-size: 1rem;
}

.detail-discount-badge {
  background: #dcfce7;
  color: #166534;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.detail-price {
  font-size: 1.8rem;
  color: #0f766e;
}

.detail-price-note {
  display: block;
  margin-top: 0.35rem;
  color: #64748b;
  font-size: 0.9rem;
}

.detail-stock-row {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.detail-stock {
  font-weight: 700;
}

.detail-stock-meta {
  color: #64748b;
}

.detail-meta-list {
  margin-bottom: 1.25rem;
}

.detail-meta-list p {
  margin-bottom: 0.4rem;
  color: #334155;
}

.variant-selector-box {
  margin-bottom: 1.25rem;
}

.variant-selector-box h3 {
  margin-bottom: 0.7rem;
  color: #0f172a;
}

.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.variant-option {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: 0.2s ease;
}

.variant-option:hover {
  border-color: #0f766e;
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.12);
}

.variant-option.active {
  background: #0f766e;
  color: #fff;
  border-color: #0f766e;
}

.detail-coupon-box {
  background: #f8fafc;
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.detail-coupon-box h3 {
  margin-bottom: 0.7rem;
}

.detail-coupon-box ul {
  padding-left: 1rem;
}

.detail-coupon-box li {
  margin-bottom: 0.45rem;
}

.detail-action-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.btn-shop-outline {
  border: 1px solid #0f766e;
  color: #0f766e;
  background: #fff;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
}

.btn-disabled-action {
  background: #cbd5e1;
  color: #475569;
  border: none;
  padding: 0.55rem 1rem;
  border-radius: 20px;
}

.detail-short-description h3 {
  margin-bottom: 0.6rem;
}

.detail-short-description p {
  color: #475569;
  line-height: 1.7;
}

.detail-lower-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.detail-panel {
  background: #fff;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.highlights-list {
  padding-left: 1rem;
}

.highlights-list li {
  margin-bottom: 0.55rem;
  color: #334155;
}

.detail-specifications {
  white-space: pre-line;
  color: #475569;
  line-height: 1.8;
}

.reviews-panel {
  margin-bottom: 2rem;
}

.reviews-header {
  margin-bottom: 1rem;
}

.reviews-summary-text {
  color: #64748b;
  margin-top: 0.3rem;
}

.reviews-list {
  display: grid;
  gap: 1rem;
}

.review-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1rem;
  background: #fff;
}

.review-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.review-top h3 {
  font-size: 1rem;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.review-author {
  color: #64748b;
  font-size: 0.9rem;
}

.review-rating {
  background: #facc15;
  color: #1f2937;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}

.review-comment {
  color: #475569;
  line-height: 1.7;
}

.related-products-section {
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .product-detail-layout,
  .detail-lower-grid {
    grid-template-columns: 1fr;
  }

  .product-main-image-box {
    height: 320px;
  }
}

/* Cart Page  */

.cart-page {
  padding: 32px 0 64px;
}

.cart-header {
  margin-bottom: 24px;
  text-align: left;
}

.cart-header h1 {
  margin-bottom: 8px;
  font-size: 2.2rem;
  color: #0f172a;
}

.cart-header p {
  max-width: 620px;
  color: #64748b;
  line-height: 1.7;
}

.cart-empty-state {
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 32px;
}

.cart-empty-inner {
  max-width: 420px;
  text-align: center;
}

.cart-empty-inner h3 {
  margin-bottom: 10px;
  font-size: 1.9rem;
  color: #0f172a;
}

.cart-empty-inner p {
  margin-bottom: 18px;
  color: #64748b;
  line-height: 1.7;
}

.cart-empty-inner .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(290px, 360px);
  gap: 28px;
  align-items: start;
}

.cart-items {
  display: grid;
  gap: 20px;
}

.cart-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  padding: 20px;
  border-radius: 24px;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #dbe7e5;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.cart-card-disabled {
  opacity: 0.75;
  background: #f8fafc;
}

.cart-card-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 8px;
}

.cart-card-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
}

.cart-card-label {
  margin-bottom: 8px;
  color: #0f766e;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cart-card-content h3 {
  margin-bottom: 8px;
  font-size: 1.22rem;
  line-height: 1.4;
}

.cart-variant-text {
  color: #475569;
  line-height: 1.6;
}

.cart-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.cart-price {
  color: #0f766e;
  font-size: 1rem;
  font-weight: 700;
}

.cart-status {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.cart-status.in-stock {
  background: #dcfce7;
  color: #166534;
}

.cart-status.out-stock {
  background: #fee2e2;
  color: #b91c1c;
}

.cart-card-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  min-width: 220px;
}

.cart-qty-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.cart-qty-label {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
}

.cart-qty-note {
  margin-top: 8px;
  font-size: 0.84rem;
  color: #c46a00;
  font-weight: 600;
}

.cart-qty-box {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #d8d8d8;
  background: #fff;
  color: #222;
}

.cart-qty-btn {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  font-size: 1.3rem;
  cursor: pointer;
}

.cart-qty-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.cart-qty-value {
  min-width: 48px;
  text-align: center;
  font-weight: 700;
}

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

.cart-item-total {
  color: #334155;
  font-size: 0.95rem;
}

.cart-remove-btn,
.btn-danger-soft {
  border: 1px solid #fecaca;
  border-radius: 14px;
  padding: 10px 18px;
  cursor: pointer;
  background: #fff5f5;
  color: #c62828;
  font-weight: 700;
}

.cart-price-block {
  display: grid;
  gap: 4px;
}

.cart-price-original {
  color: #94a3b8;
  text-decoration: line-through;
  font-size: 0.88rem;
}

.cart-price-save {
  color: #047857;
  font-size: 0.82rem;
  font-weight: 700;
}

.cart-total-block {
  display: grid;
  gap: 4px;
}

.cart-line-save {
  margin: 0;
  color: #047857;
  font-size: 0.84rem;
  font-weight: 700;
}

.checkout-summary-item-price {
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
}

.checkout-summary-item-original {
  color: #94a3b8;
  text-decoration: line-through;
  font-size: 0.85rem;
}

.checkout-summary-item-final {
  color: #243746;
  font-weight: 800;
  font-size: 1rem;
}

.checkout-summary-item-save {
  color: #047857;
  font-size: 0.82rem;
  font-weight: 700;
}

.checkout-summary-savings-row {
  color: #047857;
}

.checkout-summary-savings-row strong {
  color: #047857;
}

.checkout-total-savings-note {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 0.85rem;
  line-height: 1.5;
}

.checkout-coupon-secondary.is-disabled,
.checkout-coupon-secondary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.cart-summary {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, #0f766e 0%, #115e59 100%);
  color: #fff;
  position: sticky;
  top: 110px;
  box-shadow: 0 14px 32px rgba(15, 118, 110, 0.2);
}

.cart-summary-header {
  margin-bottom: 18px;
}

.cart-summary-label {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cart-summary h2 {
  margin: 0;
  font-size: 1.7rem;
}

.cart-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.cart-summary-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.cart-summary-row span {
  color: rgba(255, 255, 255, 0.78);
  display: inline-block;
  max-width: 60%;
}

.cart-summary-row strong {
  font-size: 1.05rem;
  text-align: right;
  margin-left: auto;
}

.cart-summary .btn-primary {
  width: 100%;
  background: #f8fafc;
  color: #0f766e;
}

.cart-summary .btn-primary:hover {
  background: #ffffff;
}

.cart-summary .btn-primary:disabled {
  background: #d8e2e6;
  color: #7b8b95;
  cursor: not-allowed;
  opacity: 1;
  box-shadow: none;
}

.cart-summary .btn-shop-outline {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.36);
}

.cart-summary .btn-shop-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.cart-summary .btn-danger-soft {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.14);
}

.cart-summary-note {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.7;
  font-size: 0.92rem;
}

.cart-checkout-warning {
  margin-top: 12px;
  color: #ffd8a8;
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 600;
}

.cart-summary-wrap {
  position: relative;
  align-self: start;
  padding-top: 64px;
}

.cart-summary-top-actions {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  width: max-content;
  z-index: 2;
}

.cart-summary-top-actions .btn-shop-outline,
.cart-summary-top-actions .btn-danger-soft {
  min-height: 44px;
  min-width: 170px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  padding: 0 20px;
}

.cart-summary-top-actions .btn-shop-outline {
  background: #ffffff;
  border: 1px solid #cfe0dc;
  color: #1b7f79;
  box-shadow: 0 8px 18px rgba(18, 56, 52, 0.08);
}

.cart-summary-top-actions .btn-danger-soft {
  background: #fff5f5;
  border: 1px solid #f0c9c9;
  color: #c94b4b;
  box-shadow: 0 8px 18px rgba(18, 56, 52, 0.08);
}

@media (max-width: 992px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }
}

@media (max-width: 640px) {
  .cart-summary-wrap {
    padding-top: 108px;
  }

  .cart-summary-top-actions {
    width: 100%;
    left: 0;
    transform: none;
    justify-content: center;
    flex-wrap: wrap;
  }

  .cart-summary-top-actions .btn-shop-outline,
  .cart-summary-top-actions .btn-danger-soft {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
  }
}

.checkout-page {
  padding: 40px 0 60px;
}

.checkout-header {
  margin-bottom: 28px;
}

.checkout-header h1 {
  margin-bottom: 8px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) 380px;
  gap: 24px;
  align-items: start;
}

.checkout-main {
  display: grid;
  gap: 20px;
}

.checkout-card,
.checkout-summary-card {
  background: #fff;
  border: 1px solid #d9e6e3;
  border-radius: 22px;
  box-shadow: 0 14px 30px rgba(18, 56, 52, 0.08);
  padding: 24px;
}

.checkout-summary-card {
  position: sticky;
  top: 110px;
}

.checkout-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.checkout-card-head h2,
.checkout-summary-card h2 {
  margin: 0;
}

.checkout-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid #1b7f79;
  border-radius: 999px;
  color: #1b7f79;
  text-decoration: none;
  font-weight: 600;
}

.checkout-address-list {
  display: grid;
  gap: 14px;
}

.checkout-address-card {
  border: 1px solid #d9e6e3;
  border-radius: 16px;
  padding: 16px;
  background: #f9fcfb;
}

.checkout-address-card.selected {
  border-color: #1b7f79;
  box-shadow: 0 0 0 2px rgba(27, 127, 121, 0.08);
}

.checkout-address-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.checkout-address-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #dff4ef;
  color: #16645f;
  font-size: 0.8rem;
  font-weight: 700;
}

.checkout-empty-block {
  display: grid;
  gap: 12px;
}

.checkout-empty-block .checkout-add-address-btn {
  width: fit-content;
}

.checkout-item-list {
  display: grid;
  gap: 16px;
}

.checkout-item {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 16px;
  align-items: center;
  border: 1px solid #d9e6e3;
  border-radius: 16px;
  padding: 16px;
  background: #f9fcfb;
}

.checkout-item-disabled {
  opacity: 0.72;
}

.checkout-item-image img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 14px;
  background: #fff;
}

.checkout-item-info h3 {
  margin: 0 0 8px;
}

.checkout-item-info p {
  margin: 6px 0;
}

.checkout-item-meta {
  color: #5f6f85;
}

.checkout-item-total {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.checkout-status-good,
.checkout-status-bad {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 700;
}

.checkout-status-good {
  background: #dff4ef;
  color: #16645f;
}

.checkout-status-bad {
  background: #fde7e7;
  color: #ca3d3d;
}

.checkout-payment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #e8efed;
}

.checkout-summary-row.total {
  font-size: 1.08rem;
  border-bottom: 0;
}

.checkout-warning {
  margin: 14px 0 0;
  color: #ca3d3d;
  font-weight: 600;
}

.checkout-summary-card .btn-primary {
  width: 100%;
  margin-top: 18px;
}

@media (max-width: 992px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-summary-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .checkout-item {
    grid-template-columns: 1fr;
  }

  .checkout-item-total {
    justify-items: start;
  }

  .checkout-card-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

.checkout-layout-expanded {
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.95fr);
  gap: 32px;
}

.checkout-section-title-block {
  margin-bottom: -6px;
}

.checkout-section-title-block h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #2f2f2f;
}

.checkout-address-section,
.checkout-payment-section {
  padding-top: 22px;
}

.checkout-address-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-start;
}

.checkout-add-address-btn {
  min-width: 210px;
  border-radius: 999px;
}

.checkout-address-card {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: start;
  cursor: default;
}

.checkout-address-radio {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 4px;
}

.checkout-radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #6f7c84;
  display: inline-block;
  position: relative;
}

.checkout-radio-dot.active::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #1b7f79;
}

.checkout-address-body p {
  margin: 4px 0;
  color: #42556b;
}

.checkout-payment-list {
  display: grid;
  gap: 16px;
}

.checkout-payment-option {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #d9e6e3;
  border-radius: 16px;
  background: #f9fcfb;
  font-weight: 600;
}

.checkout-payment-option small {
  color: #7a8794;
  font-weight: 500;
}

.checkout-payment-option.active {
  border-color: #1b7f79;
  background: #eef8f6;
}

.checkout-payment-option.disabled {
  opacity: 0.72;
}

.checkout-sidebar-expanded .checkout-summary-card {
  padding: 22px 24px 24px;
}

.checkout-summary-items {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}

.checkout-summary-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: center;
}

.checkout-summary-item-image img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #d9e6e3;
}

.checkout-summary-item-info h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.checkout-summary-item-info p {
  margin: 4px 0;
  color: #5f6f85;
}

.checkout-summary-item-price {
  font-weight: 700;
  color: #243746;
  white-space: nowrap;
}

.checkout-summary-breakdown {
  border-top: 1px solid #e8efed;
  padding-top: 12px;
}

.checkout-coupon-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.checkout-coupon-secondary,
.checkout-coupon-primary {
  height: 48px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.checkout-coupon-secondary {
  background: #fff;
  border: 2px solid #d7d7d7;
  color: #5d6168;
  padding: 10px 20px;
}

.checkout-coupon-primary {
  background: #1b7f79;
  border: 1px solid #1b7f79;
  color: #fff;
  padding: 10px 15px;
}

.checkout-place-order-btn {
  width: 100%;
  height: 56px;
  margin-top: 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #2a9bc7, #1f8bb7);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}

.checkout-place-order-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.checkout-wallet-warning {
  margin: 12px 0 0;
  color: #b45309;
  font-size: 0.92rem;
  font-weight: 600;
}

@media (max-width: 992px) {
  .checkout-layout-expanded {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .checkout-summary-item {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .checkout-coupon-row {
    grid-template-columns: 1fr;
  }

  .checkout-payment-option {
    grid-template-columns: 20px 1fr;
  }

  .checkout-payment-option small {
    grid-column: 2 / 3;
  }

  .checkout-title-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

.checkout-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.checkout-back-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid #1b7f79;
  background: #fff;
  color: #1b7f79;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.checkout-address-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.checkout-address-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 24, 33, 0.45);
  backdrop-filter: blur(2px);
}

.checkout-address-modal-card {
  position: relative;
  z-index: 2;
  width: min(680px, calc(100% - 32px));
  margin: 36px auto;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 20px 42px rgba(18, 56, 52, 0.16);
  padding: 20px;
}

.checkout-address-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.checkout-address-modal-head h3 {
  margin: 0;
}

.checkout-address-close-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #f3f6f7;
  color: #1f2f39;
  font-size: 1.4rem;
  cursor: pointer;
}

.checkout-address-form {
  display: grid;
  gap: 12px;
}

.checkout-address-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.checkout-address-checkbox-group {
  display: flex;
  align-items: center;
}

.checkout-address-form-error {
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff1f1;
  color: #c84545;
  font-weight: 600;
  font-size: 0.88rem;
}

.checkout-address-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

@media (max-width: 640px) {
  .checkout-address-modal-card {
    margin: 20px auto;
    padding: 16px;
  }

  .checkout-address-grid {
    grid-template-columns: 1fr;
  }

  .checkout-address-form-actions {
    flex-direction: column;
  }
}

.checkout-applied-coupon {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #dff4ef;
  color: #16645f;
  font-weight: 600;
}

.checkout-coupon-modal-card {
  width: min(720px, calc(100% - 32px));
}

.checkout-coupon-list {
  display: grid;
  gap: 14px;
  max-height: 420px;
  overflow-y: auto;
}

.checkout-coupon-cards {
  display: grid;
  gap: 14px;
}

.checkout-coupon-card {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  align-items: start;
  border: 1px solid #d9e6e3;
  border-radius: 16px;
  padding: 16px;
  background: #f9fcfb;
  cursor: pointer;
}

.checkout-coupon-card.selected {
  border-color: #1b7f79;
  box-shadow: 0 0 0 2px rgba(27, 127, 121, 0.08);
}

.checkout-coupon-radio {
  margin-top: 4px;
}

.checkout-coupon-card-top h4 {
  margin: 0 0 6px;
  color: #0f172a;
}

.checkout-coupon-card-top p {
  margin: 0;
  color: #5f6f85;
}

.checkout-coupon-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: #475569;
  font-size: 0.92rem;
  margin-top: 10px;
}

.checkout-selected-coupon-note {
  margin: 10px 0 0;
  color: #1b7f79;
  font-size: 0.92rem;
  font-weight: 600;
}

.checkout-coupon-apply-btn {
  border: 1px solid #1b7f79;
  background: #1b7f79;
  color: #fff;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

/* Order Pages */

.order-success-page {
  padding: 48px 0 72px;
}

.order-success-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.8fr);
  gap: 32px;
  align-items: center;
}

.order-success-card {
  background: #fff;
  border: 1px solid #d9e6e3;
  border-radius: 28px;
  box-shadow: 0 18px 36px rgba(18, 56, 52, 0.08);
  padding: 36px 32px;
}

.order-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #dff4ef;
  color: #1b7f79;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.order-success-card h1 {
  margin-bottom: 10px;
}

.order-success-meta {
  margin-top: 24px;
  border-top: 1px solid #e8efed;
  padding-top: 18px;
  display: grid;
  gap: 12px;
}

.order-success-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.order-success-side {
  display: grid;
  gap: 20px;
}

.order-success-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.order-success-actions .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.order-account-layout {
  height: auto;
  overflow: visible;
  align-items: flex-start;
}

.order-page-content {
  overflow: visible;
  padding-right: 0;
}

@media (max-width: 900px) {
  .order-success-layout {
    grid-template-columns: 1fr;
  }
}

.order-list-page,
.order-detail-page {
  padding: 20px;
}

.profile-box.order-list-page,
.profile-box.order-detail-page {
  display: grid;
  gap: 20px;
}

.order-page-topbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 20px;
}

.order-page-heading h2 {
  margin: 0;
  font-size: 20px;
  color: #0f766e;
}

.order-page-heading p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 0.95rem;
}

.order-list-toolbar {
  margin-bottom: 0;
  width: 100%;
  max-width: 340px;
}

.order-list-toolbar .search-wrapper {
  position: relative;
  width: 100%;
  max-width: 340px;
}

.order-list-toolbar .search-wrapper input {
  width: 100%;
  padding-right: 42px;
}

.order-list-toolbar #clearSearch {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.order-list-toolbar #clearSearch:hover {
  color: #dc2626;
}

.order-list-toolbar .search-wrapper input:placeholder-shown + #clearSearch {
  display: none;
}

.order-list-grid {
  display: grid;
  gap: 18px;
}

.order-list-card {
  background: #fff;
  border: 1px solid #d9e6e3;
  border-radius: 20px;
  box-shadow: 0 14px 30px rgba(18, 56, 52, 0.08);
  padding: 18px 20px;
}

.order-list-card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.order-list-card-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.order-list-card-body.compact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: center;
}

.order-list-card-body.compact p {
  margin: 0;
  color: #334155;
}

.order-list-view-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f766e;
  text-decoration: none;
}

.order-list-view-link:hover {
  text-decoration: underline;
}

.order-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: capitalize;
  background: #e8efed;
  color: #2f414e;
}

.order-status-pill.delivered {
  background: #dff4ef;
  color: #16645f;
}

.order-status-pill.cancelled,
.order-status-pill.returned {
  background: #fde7e7;
  color: #ca3d3d;
}

.order-status-pill.shipped,
.order-status-pill.out_for_delivery {
  background: #fff3d8;
  color: #a46b00;
}

.order-status-pill.return_requested {
  background: #fff4d6;
  color: #b45309;
}

.order-status-pill.return_rejected {
  background: #fdeaea;
  color: #b42318;
}

.order-return-reject-note,
.order-item-reject-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fdeaea;
  color: #b42318;
  font-weight: 600;
}

.order-item-original-price {
  margin: 4px 0 0;
  color: #94a3b8;
  text-decoration: line-through;
  font-size: 0.9rem;
}

.order-item-final-price {
  margin: 4px 0 0;
  color: #0f172a;
  font-weight: 600;
}

.order-item-savings {
  margin: 8px 0 0;
  color: #047857;
  font-size: 0.85rem;
  font-weight: 700;
}

.order-total-savings-row {
  color: #047857;
}

.order-total-savings-row strong {
  color: #047857;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.modal-header h3 {
  margin: 0;
}

.payment-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: capitalize;
  background: #e8efed;
  color: #2f414e;
}

.payment-status-pill.paid {
  background: #dff4ef;
  color: #16645f;
}

.payment-status-pill.pending {
  background: #fff3d8;
  color: #a46b00;
}

.payment-status-pill.cancelled,
.payment-status-pill.failed {
  background: #fde7e7;
  color: #ca3d3d;
}

.payment-status-pill.refunded {
  background: #e7f0fd;
  color: #2c5ea8;
}

.order-pagination {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
}

.order-pagination button {
  min-width: 100px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #1b7f79;
  background: #fff;
  color: #1b7f79;
  font-weight: 700;
  cursor: pointer;
}

.order-pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.order-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.order-detail-main {
  display: grid;
  gap: 20px;
}

.order-detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.order-detail-meta-box {
  padding: 16px;
  border: 1px solid #d9e6e3;
  border-radius: 16px;
  background: #f9fcfb;
}

.order-detail-meta-box span {
  display: block;
  margin-bottom: 6px;
  color: #5f6f85;
}

.return-reason-modal-card {
  max-width: 460px;
}

.return-reason-label {
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2f414e;
}

#returnReasonInput,
#cancelReasonInput {
  width: 100%;
  resize: vertical;
}

#returnReasonError,
#cancelReasonError {
  margin-top: 8px;
  color: #d95555;
  font-size: 0.88rem;
}

.profile-box.order-detail-page {
  width: 100%;
  max-width: none;
}

@media (max-width: 992px) {
  .order-detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .order-page-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .order-list-toolbar {
    max-width: 100%;
  }

  @media (max-width: 768px) {
    .order-list-card-body.compact {
      grid-template-columns: 1fr;
      gap: 10px;
    }

    .order-list-card-side {
      align-items: flex-start;
    }
  }
}

@media (max-width: 640px) {
  .order-list-header,
  .order-detail-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .order-list-card-top {
    flex-direction: column;
  }

  .order-detail-meta-grid {
    grid-template-columns: 1fr;
  }
}

.order-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.order-detail-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.order-item-cancel-btn {
  margin-top: 10px;
  border: 1px solid #d95555;
  background: #fff;
  color: #d95555;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}

.order-item-return-btn {
  /* margin-top: 10px; */
  border: 1px solid #1b7f79;
  background: #fff;
  color: #1b7f79;
  border-radius: 999px;
  padding: 13px 18px;
  font-weight: 700;
  cursor: pointer;
}

/* Wishlist Page  */

.wishlist-page {
  width: 100%;
  max-width: none;
}

.wishlist-page-topbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 20px;
}

.wishlist-page-heading h2 {
  margin: 0;
  font-size: 20px;
  color: #0f766e;
}

.wishlist-page-heading p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 0.95rem;
}

.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.wishlist-card {
  background: #f5fbfa;
  border: 1px solid #d7e6e3;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(18, 56, 52, 0.06);
}

.wishlist-card-link {
  display: block;
  padding: 22px 22px 16px;
  text-decoration: none;
  color: inherit;
}

.wishlist-card-image {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.wishlist-card-image img {
  width: 170px;
  height: 170px;
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e2ece9;
  padding: 12px;
}

.wishlist-card-body h3 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 1.15rem;
  line-height: 1.4;
}

.wishlist-card-meta {
  margin: 0 0 10px;
  color: #5f6f85;
}

.wishlist-card-price {
  margin: 0 0 10px;
  color: #0f766e;
  font-size: 1.15rem;
  font-weight: 800;
}

.wishlist-card-stock {
  margin: 0;
  font-weight: 700;
}

.wishlist-card-stock.in-stock {
  color: #15803d;
}

.wishlist-card-stock.out-stock {
  color: #b91c1c;
}

.wishlist-card-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #d7e6e3;
}

.wishlist-add-cart-btn,
.wishlist-remove-btn {
  min-height: 52px;
  border: 0;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wishlist-add-cart-btn {
  background: #0f766e;
  color: #fff;
}

.wishlist-add-cart-btn.secondary {
  background: #0f766e;
  color: #fff;
}

.wishlist-remove-btn {
  background: #fff;
  color: #c94b4b;
  border-left: 1px solid #d7e6e3;
}

@media (max-width: 992px) {
  .wishlist-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .wishlist-page-topbar {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Coupon Pages */

.admin-page {
  display: grid;
  gap: 20px;
}

.admin-page-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}

.admin-page-header h1 {
  margin: 0;
  color: #0f172a;
}

.admin-page-header p {
  margin: 6px 0 0;
  color: #64748b;
}

.admin-table-card {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.admin-coupon-modal-card {
  max-width: 760px;
}

.admin-coupon-form {
  display: grid;
  gap: 18px;
}

.admin-coupon-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-table td .btn-activate,
.admin-table td .btn-deactivate,
.admin-table td .btn-delete {
  margin-right: 8px;
  margin-bottom: 6px;
}

.btn-delete-coupon {
  border: none;
  background: #fde7e7;
  color: #ca3d3d;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 768px) {
  .admin-page-header {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-coupon-grid {
    grid-template-columns: 1fr;
  }
}

/* wallet pages */

.wallet-page-shell {
  display: grid;
  gap: 24px;
}

.wallet-page-header h1 {
  margin: 0 0 8px;
  color: #0f172a;
}

.wallet-page-header p {
  margin: 0;
  color: #64748b;
}

.wallet-balance-card {
  background: linear-gradient(135deg, #176b67, #1f8a84);
  border-radius: 24px;
  padding: 28px;
  color: #fff;
  box-shadow: 0 16px 36px rgba(23, 107, 103, 0.18);
}

.wallet-balance-card h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 600;
}

.wallet-balance-card strong {
  font-size: 2rem;
  font-weight: 800;
}

.wallet-transactions-card {
  background: #fff;
  border: 1px solid #d7e4e1;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.wallet-transactions-head h3 {
  margin: 0 0 18px;
  color: #0f172a;
}

.wallet-transactions-table-wrap {
  overflow-x: auto;
}

.wallet-transactions-table {
  width: 100%;
  border-collapse: collapse;
}

.wallet-transactions-table th,
.wallet-transactions-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #e5ecea;
  text-align: left;
}

.wallet-transactions-table th {
  color: #46606d;
  font-weight: 700;
  font-size: 0.92rem;
}

.wallet-transactions-table td {
  color: #0f172a;
}

.wallet-credit {
  color: #15803d;
  font-weight: 700;
}

.wallet-debit {
  color: #b91c1c;
  font-weight: 700;
}
