/* Charcoal (Primary/Heading) */
/* Soft Blue (Accent) */
/* Coral (CTA) */
/* Dark Navy */
/* Light Grey for Borders */
/* Navbar */
.navbar {
  height: 80px;
  display: flex;
  align-items: center;
  background: #FFFFFF;
  /* Broken White */
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #f1f1f1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-size: 22px;
  font-family: "Poppins", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  text-decoration: none;
  color: #1E2B3A;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text span {
  font-weight: 700;
  color: #2D3E50;
}

.brand-logo {
  max-height: 50px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Nav Actions Nexus - Consolidated Header */
.nav-actions-nexus {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links-cluster {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-text-link {
  font-size: 14px;
  font-weight: 600;
  color: #1E2B3A;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-text-link:hover {
  color: #2D3E50;
}

.nav-text-link.highlight {
  color: #2D3E50;
  font-weight: 700;
}

.divider-v {
  width: 1px;
  height: 24px;
  background: #e2e8f0;
}

.nav-icons-cluster {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-icon-item {
  font-size: 20px;
  color: #64748b;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  transition: all 0.2s;
}

.nav-icon-item:hover {
  background: #f1f5f9;
  color: #2D3E50;
}

.nav-icon-item.cart-anchor i {
  color: #1E2B3A;
}

/* User Profile Dropdown */
.profile-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  background: #f8fafc;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.profile-trigger:hover {
  background: #fff;
  border-color: #e2e8f0;
}

.profile-trigger i:first-child {
  font-size: 20px;
  color: #64748b;
}

.user-first-name {
  font-size: 14px;
  font-weight: 700;
  color: #1E2B3A;
}

/* Auth Group */
.auth-group-nexus {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-login-nexus {
  font-size: 14px;
  font-weight: 700;
  color: #1E2B3A;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  transition: background 0.2s;
}

.btn-login-nexus:hover {
  background: #f8fafc;
}

.btn-register-nexus {
  font-size: 14px;
  font-weight: 700;
  color: white;
  background: #2D3E50;
  padding: 8px 16px;
  border-radius: 8px;
  transition: opacity 0.2s;
}

.btn-register-nexus:hover {
  opacity: 0.9;
}

/* Consistently styled dropdown content */
.user-profile-dropdown .dropdown-content {
  min-width: 220px;
  right: 0;
  left: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.dropdown-info-box {
  padding: 15px;
  background: #fcfdfd;
}

.user-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef3c7;
  color: #b45309;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 5px;
}

.user-points-info {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.dropdown-divider {
  height: 1px;
  background: #f1f5f9;
}

.user-profile-dropdown .dropdown-content a {
  padding: 12px 15px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.user-profile-dropdown .dropdown-content a i {
  width: 16px;
  text-align: center;
  font-size: 14px;
  color: #94a3b8;
}

/* Badge Count Utility - Shared across desktop/mobile */
.badge-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #FF7F6B;
  color: white;
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 10px;
  font-weight: 800;
  border: 2px solid white;
  line-height: 1;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logout-link {
  color: #ef4444 !important;
}

.logout-link i {
  color: #ef4444 !important;
}

/* Header Search Styles */
.header-search-wrapper {
  flex: 1;
  max-width: 500px;
  margin: 0 30px;
  display: block;
}

.header-search-box {
  position: relative;
  width: 100%;
}

/* Live Search Dropdown Styling */
.live-search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  z-index: 10002;
  margin-top: 8px;
  overflow: hidden;
  animation: slideDownFade 0.25s ease-out;
}

.live-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  border-bottom: 1px solid #f1f5f9;
}

.live-search-item:last-child {
  border-bottom: none;
}

.live-search-item:hover {
  background: #f8fafc;
  padding-left: 20px;
}

.live-item-img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
  flex-shrink: 0;
  border: 1px solid #f1f5f9;
}

.live-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-item-name {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.live-item-price {
  font-size: 13px;
  color: #2D3E50;
  font-weight: 700;
}

.live-search-empty {
  padding: 30px 20px;
  text-align: center;
  font-size: 14px;
  color: #64748b;
}

.live-search-footer {
  padding: 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #2D3E50;
  background: #f8fafc;
  cursor: pointer;
  border-top: 1px solid #f1f5f9;
  transition: background 0.2s;
}

.live-search-footer:hover {
  background: #f0f7ff;
  text-decoration: underline;
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.header-search-box i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 14px;
  pointer-events: none;
}

.header-search-box input {
  width: 100%;
  padding: 10px 65px 10px 40px !important;
  /* Extra right padding for button */
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  /* More square-ish like example */
  font-size: 14px;
  transition: all 0.3s ease;
  min-height: 40px !important;
}

.btn-search-internal {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #1e293b;
  font-weight: 700;
  font-size: 13px;
  padding: 5px 10px;
  cursor: pointer;
  z-index: 5;
}

.header-search-box input:focus {
  background: #fff;
  border-color: #cbd5e1;
  /* Subtle border like example */
  box-shadow: none;
}

@media (max-width: 992px) {
  .navbar {
    height: auto !important;
    padding: 12px 0;
  }
  .navbar .container {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    /* Keep in one line */
    gap: 15px;
  }
  .header-search-wrapper {
    flex: 1;
    margin: 0;
    order: 1;
  }
  .header-mobile-actions {
    display: flex !important;
    align-items: center;
    gap: 15px;
    order: 2;
  }
  .mobile-icon-link {
    font-size: 22px;
    color: #475569;
    text-decoration: none;
  }
}
/* --- NEXUS FOOTER --- */
footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-nexus-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (min-width: 992px) {
  .footer-nexus-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
    gap: 30px;
    align-items: start;
  }
}
.brand-block-nexus .footer-logo {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 15px;
}

.footer-social-nexus {
  display: flex;
  gap: 12px;
}

.footer-social-nexus a {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: all 0.3s;
}

.footer-social-nexus a:hover {
  background: #2D3E50;
  color: #fff;
  transform: translateY(-3px);
}

.footer-links-nexus {
  list-style: none;
  padding: 0;
}

.footer-links-nexus li {
  margin-bottom: 10px;
}

.footer-links-nexus a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
}

.legal-badge-nexus {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.nib-label {
  font-size: 10px;
  font-weight: 800;
  color: #2D3E50;
}

.nib-value {
  color: #fff;
  font-size: 11px;
}

.payment-badge-nexus {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 10px;
  border-radius: 6px;
  margin: 0 4px 4px 0;
  display: inline-block;
}

.footer-contact-nexus {
  margin-top: 20px;
}

.contact-item-nexus {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 8px;
}

.contact-item-nexus i {
  color: #2D3E50;
}

/* Checkout Layout Nexus */
.checkout-layout-nexus {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

@media (min-width: 992px) {
  .checkout-layout-nexus {
    display: grid;
    grid-template-columns: 1fr 400px;
    align-items: start;
    gap: 40px;
  }
  .checkout-sidebar-sticky {
    position: sticky;
    top: 100px;
  }
  /* Nexus 2.0 Desktop Elevations */
  .card-nexus.checkout-form-card {
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(226, 232, 240, 0.8);
  }
  /* Step Indicator Nexus 2.0 */
  .checkout-steps-nexus {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 16px;
  }
  .step-nexus {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.5;
    transition: all 0.3s;
  }
  .step-nexus.active {
    opacity: 1;
    transform: scale(1.05);
  }
  .step-icon {
    width: 32px;
    height: 32px;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
    font-size: 14px;
  }
  .step-nexus.active .step-icon {
    background: #2D3E50;
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  }
  .step-label {
    font-weight: 700;
    font-size: 14px;
    color: #1e293b;
  }
  .step-line {
    width: 60px;
    height: 2px;
    background: #e2e8f0;
  }
  /* Premium Form Inputs - Desktop Only Refinement */
  .input-nexus {
    padding: 14px 20px;
    font-size: 15px;
  }
}
.form-row-nexus {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

@media (max-width: 576px) {
  .form-row-nexus {
    flex-direction: column;
    gap: 0;
  }
}
/* Payment Cards Nexus */
.payment-methods-nexus {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-card-nexus {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px;
  border: 2px solid #f1f5f9;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  background: #fff;
}

.payment-card-nexus input[type=radio] {
  position: absolute;
  opacity: 0;
}

.payment-card-nexus:has(input:checked) {
  border-color: #2D3E50;
  background: #eff6ff;
}

.payment-card-nexus.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f8fafc;
}

.payment-content {
  flex: 1;
}

.payment-name {
  font-weight: 800;
  color: #1e293b;
  font-size: 14px;
}

.payment-desc {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.payment-error {
  color: #ef4444;
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
}

.payment-icon-wa {
  font-size: 24px;
  color: #10b981;
}

.payment-icon-wallet {
  font-size: 22px;
  color: #6366f1;
}

/* Voucher Group */
.voucher-input-group {
  display: flex;
  gap: 8px;
}

.btn-check-voucher {
  padding: 0 20px;
  background: #1e293b;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.voucher-status-msg {
  display: block;
  margin-top: 6px;
  font-size: 12px;
}

/* Summary Items */
.summary-product-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.summary-item-flex {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.item-name {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.item-variant {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.item-qty {
  font-size: 11px;
  color: #64748b;
  font-weight: 700;
  margin-top: 2px;
}

.item-price {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
}

.summary-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 20px 0;
}

.summary-row-nexus {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 10px;
}

.summary-row-nexus.discount {
  color: #ef4444;
  font-weight: 600;
}

.summary-total-nexus {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 18px;
  font-weight: 900;
  color: #1e293b;
}

#summary-total {
  color: #2D3E50;
}

/* Submit Area */
.checkout-submit-area {
  margin-top: 30px;
  text-align: center;
}

.btn-lg-nexus {
  padding: 16px;
  font-size: 16px;
  font-weight: 800;
  border-radius: 14px;
}

.btn-link-nexus {
  display: inline-block;
  margin-top: 15px;
  font-size: 13px;
  color: #94a3b8;
  text-decoration: none;
  font-weight: 600;
}

.trust-badges-nexus {
  display: flex;
  justify-content: space-around;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
}

.trust-item i {
  font-size: 18px;
  color: #cbd5e1;
}

/* --- TRACK ORDER NEXUS --- */
.order-body-nexus {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

@media (min-width: 992px) {
  .order-body-nexus {
    display: grid;
    grid-template-columns: 350px 1fr;
  }
}
.timeline-nexus {
  margin-top: 20px;
}

.timeline-v-item {
  display: flex;
  gap: 15px;
  margin-bottom: 1px;
  position: relative;
  padding-bottom: 25px;
}

.timeline-v-item::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 35px;
  bottom: 0;
  width: 2px;
  background: #f1f5f9;
}

.timeline-v-item:last-child::before {
  display: none;
}

.timeline-v-item.completed::before {
  background: #10b981;
}

.v-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f8fafc;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  z-index: 2;
  transition: all 0.3s;
}

.timeline-v-item.completed .v-icon {
  background: #10b981;
  color: #fff;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.v-label {
  font-size: 14px;
  font-weight: 800;
  color: #1e293b;
}

.timeline-v-item.completed .v-label {
  color: #10b981;
}

.v-desc {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}

.shipping-alert {
  background: #eff6ff;
  color: #2D3E50;
  padding: 15px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  margin-top: 20px;
}

.order-table-nexus {
  width: 100%;
  border-collapse: collapse;
}

.order-table-nexus th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  color: #94a3b8;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.order-table-nexus td {
  padding: 15px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
  color: #1e293b;
}

.order-table-nexus .total-row td {
  border-bottom: none;
  font-weight: 900;
  font-size: 16px;
  color: #2D3E50;
  padding-top: 20px;
}

.shipping-info-nexus .customer-name {
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 5px;
}

.badge-wa {
  font-size: 11px;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 50px;
  color: #64748b;
  font-weight: 600;
}

.customer-address {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}

.order-notes {
  background: #fffbeb;
  color: #b45309;
  padding: 12px;
  border-radius: 10px;
  font-size: 12px;
  margin-top: 15px;
  font-style: italic;
}

.btn-track-mini {
  display: block;
  width: 100%;
  padding: 10px;
  background: #ef4444;
  color: #fff;
  text-align: center;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.2s;
}

.btn-track-mini:hover {
  background: #dc2626;
}

/* Font loading handled in header.php for performance */
:root {
  --primary: #2D3E50;
  /* Charcoal (Primary/Heading) */
  --primary-hover: #1e2b3a;
  --secondary: #6C9EBF;
  /* Soft Blue (Accent) */
  --secondary-dark: #588bab;
  --secondary-hover: #7baecf;
  --cta: #FF7F6B;
  /* Coral (CTA) */
  --cta-hover: #ff6b52;
  --header-bg: #FFFFFF;
  --header-text: #2D3E50;
  --footer-bg: #1E2B3A;
  /* Dark Navy for Footer */
  --footer-text: #FFFFFF;
  --dark: #1E2B3A;
  --light: #EDF2F7;
  /* Light Grey for Borders */
  --white: #ffffff;
  --gray: #718096;
  --shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
  --border-radius: 12px;
  --container-width: 1280px;
  --success: #22c55e;
  --danger: #ef4444;
  --font-heading: Poppins, Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;
  --font-body: Inter, Nunito, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;
  --font-nav: DM Sans, sans-serif;
  --glass: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-body);
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

@media (hover: hover) {
  a:hover {
    text-decoration: underline;
    color: var(--primary-hover);
  }
}
/* Accessibility: Skip to Content */
.skip-link {
  position: absolute;
  transform: translateY(-100%);
  z-index: 10001;
  text-decoration: none;
  font-weight: 700;
  border-radius: 0 0 8px 8px;
  transition: transform 0.3s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Global Focus Indicator */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
.no-scroll {
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  position: fixed;
  width: 100%;
}

body {
  background-color: #f1f5f9;
  color: var(--dark);
  line-height: 1.6;
  /* overflow-x: hidden removed as requested */
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-width: 320px;
  /* Issue 1: Prevent breakdown below 320px */
}

/* Issue 2: Ensure content isn't hidden by bottom nav */
@media (max-width: 768px) {
  body {
    padding-bottom: 70px;
  }
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.desktop-only {
  display: flex !important;
}

@media (max-width: 992px) {
  .desktop-only {
    display: none !important;
  }
}
.btn-share-smart:hover {
  background: #e2e8f0 !important;
  color: var(--primary) !important;
  transform: translateY(-2px);
}

/* Share Modal Fallback */
.share-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.share-modal-content {
  background: white;
  padding: 24px;
  border-radius: 20px;
  width: 90%;
  max-width: 320px;
  text-align: center;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.share-modal-content h3 {
  margin: 0 0 20px 0;
  font-size: 18px;
  font-weight: 700;
}

.share-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.share-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
}

.share-opt i {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
}

.share-opt.wa i {
  background: #25d366;
}

.share-opt.fb i {
  background: #1877f2;
}

.share-opt.copy i {
  background: #64748b;
}

.btn-close-share {
  width: 100%;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  color: #64748b;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 992px) {
  .pdp-back-btn {
    position: fixed;
    top: 15px;
    left: 15px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e293b;
    z-index: 2000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.2s ease;
  }
  .pdp-back-btn:active {
    transform: scale(0.9);
    background: #fff;
  }
}
@media (min-width: 993px) {
  .pdp-back-btn {
    display: none !important;
  }
}
/* Mobile Vertical Density Improvements (PDP) */
@media (max-width: 992px) {
  .product-detail-page {
    padding-top: 0 !important;
  }
  .pdp-breadcrumb {
    margin: 5px 0 10px 0 !important;
    font-size: 11px !important;
  }
  .product-detail-grid {
    gap: 15px !important;
    margin-bottom: 25px !important;
  }
  .main-image-container {
    margin-bottom: 10px !important;
  }
  .pdp-category-label {
    margin-bottom: 2px !important;
    font-size: 11px !important;
  }
  .pdp-title-row {
    margin-bottom: 5px !important;
    gap: 10px !important;
  }
  .pdp-price-row {
    margin-bottom: 10px !important;
  }
  .variant-section {
    margin-bottom: 12px !important;
    padding-top: 10px !important;
  }
  .variant-section-header {
    margin-bottom: 5px !important;
  }
  .qty-stock-row {
    margin-bottom: 15px !important;
  }
  .seller-info-box {
    margin-top: 15px !important;
  }
  .pdp-tabs {
    margin-top: 15px !important;
  }
  .related-grid {
    gap: 10px !important;
  }
  .container[style*="margin-top: 30px"] {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
  }
  /* Smart Footer for Mobile PDP */
  .pdp-page #kontak .brand-block,
  .pdp-page #kontak .links-block,
  .pdp-page #kontak .legal-block,
  .pdp-page #kontak .payment-block,
  .pdp-page #kontak .footer-divider:not(:last-of-type) {
    display: none !important;
  }
  .pdp-page #kontak {
    padding-top: 20px !important;
    margin-top: 0 !important;
  }
  /* Sticky Action Bar Refinement */
  .btn-sticky-cart {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    background: white;
    color: var(--dark);
    /* Matching header color */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    /* Matching header mobile-icon-link font-size */
    cursor: pointer;
    transition: all 0.2s;
  }
  .btn-sticky-cart:active {
    background: #f1f5f9;
    transform: scale(0.95);
  }
  /* Mobile Header Adjustments */
  .logo {
    display: none;
    /* Hide logo on mobile to prioritize search bar as requested */
  }
  .nav-actions-nexus {
    display: none;
  }
  .mobile-hide-katalog-header {
    display: none !important;
  }
}
/* Mobile Bottom Navigation (Tokopedia Style) */
@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: block !important;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
    z-index: 1001;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .nav-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 65px;
  }
  .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #64748b;
    font-size: 11px;
    font-weight: 500;
    gap: 4px;
    flex: 1;
    transition: all 0.2s ease;
  }
  .nav-item i {
    font-size: 20px;
  }
  .nav-item.active {
    color: #03ac0e;
    /* Tokopedia Green */
  }
  /* Adjust page padding so content isn't hidden behind bottom nav */
  body {
    padding-bottom: 75px !important;
  }
}
@media (min-width: 769px) {
  .mobile-bottom-nav {
    display: none !important;
  }
}
/* Search History Dropdown */
.search-history-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-top: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 1002;
  overflow: hidden;
  display: none;
}

.search-history-item {
  padding: 12px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: #475569;
  transition: background 0.2s;
}

.search-history-item:hover {
  background: #f8fafc;
  color: var(--primary);
}

.search-history-item i {
  font-size: 12px;
  color: #94a3b8;
}

.remove-history:hover i {
  color: #ef4444;
}

/* Nav Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--white);
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  border-radius: 8px;
  padding: 8px 0;
  top: 100%;
  left: 0;
  /* Changed from 30px to prevent clipping on mobile */
  border: 1px solid #f1f5f9;
}

.dropdown-content a {
  color: var(--dark) !important;
  padding: 10px 20px;
  text-decoration: none;
  display: block;
  margin-left: 0 !important;
  font-size: 14px;
}

.dropdown-content a:hover {
  background-color: #f8fafc;
  color: var(--primary) !important;
}

.dropdown:hover .dropdown-content {
  display: block;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Hero Section */
.hero-wrapper {
  margin-top: 15px;
  /* Reduced from 20px */
}

.hero {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  transition: height 0.3s ease;
  contain: layout;
  aspect-ratio: 16/9;
  /* Mobile first */
  background: #f1f5f9;
}

@media (min-width: 768px) {
  .hero {
    aspect-ratio: 16/5;
  }
}
.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: translateX(100%);
  transition: transform 1s ease-in-out;
  background-image: linear-gradient(135deg, #e0e7ff 0%, #fae8ff 100%);
  /* Default fallback */
  z-index: 1;
}

.hero-slide.active {
  transform: translateX(0);
  z-index: 2;
}

.hero-slide.exit {
  transform: translateX(-100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background: var(--white);
  width: 24px;
  border-radius: 4px;
}

.hero h1 {
  font-size: 28px;
  /* Mobile first */
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--white);
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 36px;
  }
}
@media (min-width: 1200px) {
  .hero h1 {
    font-size: 48px;
  }
}
.hero h1 span {
  color: var(--secondary);
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  /* Mobile first */
  max-width: 600px;
  margin: 0 auto 30px;
}

@media (min-width: 768px) {
  .hero p {
    font-size: 18px;
  }
}
.btn-primary {
  display: inline-block;
  padding: 16px 32px;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: transform 0.3s, background 0.3s;
  box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.39);
}

@media (hover: hover) {
  .btn-primary:hover {
    background: var(--primary-hover);
    color: var(--white);
    transform: translateY(-2px);
  }
}
/* Product Section */
.products-section {
  padding: 40px 0;
  /* Reduced from 80px for cleaner density */
}

.section-header {
  text-align: left;
  margin-bottom: 40px;
}

.search-container {
  margin-top: 25px;
  max-width: 450px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 15px;
  color: var(--gray);
  font-size: 14px;
}

/* iOS Prevent Auto-zoom & Common Input Refinements */
input,
select,
textarea {
  font-size: 16px !important;
  min-height: 44px;
  /* Touch target */
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 15px;
  font-family: inherit;
  transition: all 0.2s;
}

input:focus,
select:focus,
textarea:focus,
#productSearch:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Filter Actions Nexus - Mobile First (320px) */
.filter-actions-nexus {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 25px;
  width: 100%;
}

@media (min-width: 768px) {
  .filter-actions-nexus {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }
}
.price-input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-input-group input {
  width: 100% !important;
}

.price-separator {
  display: none;
  /* Hide dash on mobile */
}

.action-grid-nexus {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.action-grid-nexus select,
.action-grid-nexus button {
  width: 100%;
}

.btn-outline-nexus {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  display: none;
}

.mobile-nexus-only {
  display: block !important;
}

@media (min-width: 768px) {
  .filter-actions-nexus {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
  }
  .price-input-group {
    flex-direction: row;
    align-items: center;
    flex: initial;
  }
  .price-input-group input {
    width: 130px !important;
  }
  .price-separator {
    display: block;
    color: #64748b;
  }
  .action-grid-nexus {
    display: flex;
    gap: 10px;
  }
  .btn-outline-nexus {
    width: auto;
  }
  .mobile-nexus-only {
    display: none !important;
  }
}
.no-results {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 20px;
  background: var(--white);
  border-radius: 12px;
  color: var(--gray);
}

.no-results i {
  font-size: 40px;
  margin-bottom: 15px;
  display: block;
  color: #e2e8f0;
}

.section-header h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--gray);
  font-size: 14px;
}

/* Modern Category Grid - Mobile First (320px) */
.category-grid-responsive {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* 2 columns for 320px */
  gap: 15px;
}

.cat-item-modern {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s;
}

.cat-item-modern:active {
  transform: scale(0.95);
}

.cat-icon-box {
  width: 50px;
  /* Mobile size */
  height: 50px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s;
}

.cat-item-modern span {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
}

/* Tablet Scale Up */
@media (min-width: 480px) {
  .category-grid-responsive {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .cat-icon-box {
    width: 60px;
    height: 60px;
    font-size: 22px;
  }
  .cat-item-modern span {
    font-size: 13px;
  }
}
/* Desktop Scale Up */
@media (min-width: 768px) {
  .category-grid-responsive {
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
  }
  .cat-icon-box {
    width: 64px;
    height: 64px;
    font-size: 24px;
  }
}
/* Catalog Sidebar & Layout */
.catalog-layout {
  display: flex;
  gap: 30px;
}

.catalog-sidebar-refined {
  width: 250px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-group {
  background: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid #f1f5f9;
}

.sidebar-group h4 {
  font-size: 16px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f1f5f9;
}

.sidebar-categories {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-cat-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #475569;
  cursor: pointer;
  transition: color 0.2s;
}

.sidebar-cat-label:hover {
  color: var(--primary);
}

.sidebar-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 13px;
}

.sidebar-promo {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.sidebar-promo img {
  width: 100%;
  height: auto;
  display: block;
}

.promo-text {
  padding: 15px;
  background: white;
}

.promo-text h5 {
  color: var(--primary);
  margin-bottom: 5px;
}

.promo-text p {
  font-size: 12px;
  color: #64748b;
  margin: 0;
}

.catalog-main-content {
  flex: 1;
}

.load-more-container {
  text-align: center;
  padding: 40px 0;
}

.btn-secondary-outline {
  background: white;
  border: 2px solid #e2e8f0;
  color: #64748b;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-secondary-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #fdf2f8;
}

@media (max-width: 992px) {
  .catalog-sidebar-refined {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: white;
    z-index: 2000;
    overflow-y: auto;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .catalog-sidebar-refined.active {
    transform: translateX(0);
  }
}
/* Product Grid - Mobile First (320px) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* 2 columns for 320px */
  gap: 12px;
  padding: 0 5px;
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    /* User requested 2 columns here */
    gap: 20px;
    padding: 0;
  }
}
@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(7, 1fr);
    /* High-density 7 columns */
    gap: 10px;
    /* Tighter gap */
  }
}
@media (min-width: 1440px) {
  .product-grid {
    grid-template-columns: repeat(8, 1fr);
    /* Ultra-density 8 columns */
    gap: 12px;
  }
}
.product-card {
  background: var(--white);
  padding: 0;
  /* Remove padding to make image flush */
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
  /* Ensure uniform height in grid row */
  contain: layout;
  cursor: pointer;
  font-family: "Inter", sans-serif !important;
  text-transform: capitalize;
}

.product-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  outline: none;
}

.product-card:hover {
  transform: translateY(-10px);
}

.badge-discount {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ef4444;
  /* Bright Red */
  color: #ffffff;
  /* White */
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-image {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #f1f5f9;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease-in-out;
}

/* Lazy loading states */
img[loading=lazy]:not(.lazy-loaded) {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
.product-info {
  padding: 6px 8px;
  /* Tighter padding */
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 1px;
}

.category {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-spec {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 38px;
  font-weight: 500;
}

.product-stock-status {
  font-size: 11px;
  margin-bottom: 2px;
  font-weight: 600;
}

.text-success {
  color: #22c55e;
}

.text-danger {
  color: #ef4444;
}

.btn-lihat-produk {
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  margin-top: auto;
  transition: all 0.2s;
}

.btn-lihat-produk:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
}

.product-card h3 {
  font-size: 13px;
  /* Slightly smaller for density */
  line-height: 1.3;
  margin: 0 0 2px;
  /* 2-line truncation for better context in dense grid */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 34px;
  /* Fixed height for 2 lines */
  color: var(--dark);
  font-weight: 500;
}

.price-box {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 25px;
  /* Compact height */
}

.price-old,
.price-spacer {
  height: 18px;
  /* Fixed height to prevent shifting */
  font-size: 13px;
  line-height: 18px;
}

.price-old {
  text-decoration: line-through;
  color: var(--gray);
  opacity: 0.7;
}

.price-new {
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: baseline;
  line-height: normal;
  gap: 2px;
}

.price-new .currency {
  font-size: 11px;
  /* Smaller currency for density */
  font-weight: 700;
}

.price-new .amount {
  font-size: 15px;
  /* Compact amount */
  font-weight: 800;
}

.price-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 4px;
  color: var(--gray);
  font-weight: 400;
}

.currency {
  font-size: 12px;
  margin-right: 3px;
  font-weight: 700;
}

.amount {
  font-size: 16px;
  font-weight: 700;
}

.btn-add {
  width: 100%;
  height: 44px;
  /* Fixed height for consistency */
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--cta);
  color: var(--primary);
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: auto;
}

/* Removing legacy hover conflict */
/* Hover effects only for devices that support hover (prevents sticky hover on touch) */
@media (hover: hover) {
  .product-card:hover .btn-add {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
  }
  .btn:hover,
  .btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
  }
}
/* Footer */
footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 0 20px;
  font-family: var(--font-body);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.footer-logo {
  font-size: 24px;
  color: var(--white);
  font-family: var(--font-heading);
  margin: 0;
}

.footer-logo span:not(.dot-separator) {
  color: var(--cta);
}

/* --- JIIN 2.0 NEXUS FOOTER --- */
footer {
  background: #0f172a;
  /* Premium Navy Dark */
  color: #94a3b8;
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-nexus-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (min-width: 992px) {
  .footer-nexus-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
    gap: 30px;
    align-items: start;
  }
}
.brand-block-nexus .footer-logo {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 15px;
}

.brand-block-nexus .footer-logo span {
  color: var(--primary);
}

.footer-slogan {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #64748b;
}

.footer-social-nexus {
  display: flex;
  gap: 12px;
}

.footer-social-nexus a {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social-nexus a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.footer-block h4 {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.footer-links-nexus {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-nexus li {
  margin-bottom: 10px;
}

.footer-links-nexus li::before {
  display: none;
}

.footer-links-nexus a {
  font-size: 14px;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.2s;
}

.footer-links-nexus a:hover {
  color: var(--primary);
  padding-left: 5px;
}

/* Legal Badge Nexus */
.legal-badge-nexus {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 12px;
}

.nib-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--primary);
}

.nib-value {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  font-family: "Inter", sans-serif;
}

.company-name-nexus {
  font-size: 13px;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 15px;
}

/* Payment & Contact Area */
.payment-methods-nexus {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
}

.payment-badge-nexus {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-contact-nexus {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item-nexus {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #cbd5e1;
}

.contact-item-nexus i {
  color: var(--primary);
  width: 16px;
}

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin: 30px 0;
}

.footer-copyright {
  text-align: center;
  font-size: 12px;
  color: #64748b;
}

.footer-copyright strong {
  color: #94a3b8;
}

@media (max-width: 991px) {
  footer {
    padding-bottom: 100px;
    /* Space for mobile nav */
  }
  .footer-nexus-grid {
    text-align: left;
  }
  .footer-divider {
    margin: 20px 0;
  }
}
/* Cart & Badge */
.cart-btn {
  position: relative;
  text-decoration: none;
  font-size: 20px;
  margin-left: 20px !important;
}

.badge-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--secondary);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
}

/* Cart Page */
.cart-section {
  padding: 100px 0;
}

/* Cart Container - Mobile First (320px) */
.cart-container {
  display: grid;
  grid-template-columns: 1fr;
  /* Stacked for 320px */
  gap: 20px;
}

@media (min-width: 768px) {
  .cart-container {
    grid-template-columns: 2fr 1fr;
    gap: 40px;
  }
}
.cart-item {
  display: flex;
  align-items: center;
  background: var(--white);
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.item-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  margin-right: 20px;
}

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

.item-details {
  flex: 1;
}

.item-details h3 {
  font-size: 16px;
  margin-bottom: 5px;
}

.item-total {
  font-weight: 700;
  color: var(--primary);
  margin: 0 20px;
}

.btn-remove {
  color: var(--secondary-dark);
  text-decoration: none;
  font-size: 24px;
  line-height: 1;
}

.cart-summary {
  background: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  height: fit-content;
}

.cart-summary h3 {
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  color: var(--gray);
}

.summary-row.total {
  font-weight: 700;
  color: var(--dark);
  font-size: 18px;
  margin-top: 20px;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 20px;
}

.btn-text {
  display: block;
  text-align: center;
  margin-top: 15px;
  color: var(--gray);
  font-size: 14px;
  text-decoration: none;
}

/* Quantity Controls in Cart */
.qty-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.qty-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #f5f3ff;
}

.qty-input {
  width: 50px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  text-align: center;
  font-weight: 600;
  -moz-appearance: textfield;
  appearance: none;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Checkout */
.checkout-section {
  padding: 80px 0;
  min-height: 80vh;
  /* Ensure full page feel */
}

/* Checkout - Mobile First (320px) */
.checkout-container {
  display: grid;
  grid-template-columns: 1fr;
  /* Stacked for 320px */
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .checkout-container {
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: start;
    /* For sticky summary */
  }
}
.checkout-form-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

/* Form Row - Mobile First (320px) */
.form-row {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .form-row {
    flex-direction: row;
  }
}
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: #f8fafc;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: var(--white);
  outline: none;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
  /* Ring effect */
}

.form-group small {
  display: block;
  margin-top: 6px;
  color: var(--gray);
  font-size: 13px;
}

.checkout-summary {
  background: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  position: sticky;
  top: 100px;
  /* Sticky below navbar */
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.summary-items {
  margin-bottom: 20px;
  border-bottom: 2px dashed #e2e8f0;
  padding-bottom: 20px;
}

.summary-item-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--dark);
}

.summary-item-row span:first-child {
  color: var(--gray);
}

.summary-row.total {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  color: var(--dark);
  font-size: 18px;
  /* Slightly smaller for 320px */
  margin-top: 10px;
}

@media (min-width: 768px) {
  .summary-row.total {
    font-size: 20px;
  }
}
/* Empty Cart State */
.empty-cart-state {
  text-align: center;
  padding: 80px 20px;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  max-width: 600px;
  margin: 40px auto;
}

.empty-cart-icon {
  font-size: 80px;
  color: #e2e8f0;
  margin-bottom: 24px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}
.empty-cart-state h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--dark);
}

.empty-cart-state p {
  color: var(--gray);
  margin-bottom: 32px;
}

/* Mobile Media Queries */
@media (max-width: 768px) {
  .checkout-container {
    grid-template-columns: 1fr;
  }
  .checkout-summary {
    position: static;
    order: -1;
    margin-bottom: 20px;
  }
  .checkout-form-card {
    padding: 24px;
  }
  /* Enforced 2 columns for products on mobile */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 5px;
  }
  .product-meta {
    display: none;
    /* Minimalist: Hide rating/sold on mobile */
  }
  .product-card h3 {
    font-size: 13px;
    height: 38px;
    margin-bottom: 5px;
  }
  .price-box {
    min-height: 40px;
    margin-bottom: 10px;
  }
  .price-old,
  .price-spacer {
    height: 16px;
    font-size: 11px;
    line-height: 16px;
  }
  .currency {
    font-size: 11px;
  }
  .amount {
    font-size: 16px;
  }
  .btn-add {
    padding: 12px;
    font-size: 13px;
    border-radius: 6px;
  }
  /* Mobile Bottom Nav */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 8px 0;
    justify-content: space-around;
    align-items: center;
  }
  .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--gray);
    font-size: 11px;
    /* Slight increase */
    font-weight: 600;
    flex: 1;
    min-height: 44px;
    /* Proper hit area */
    justify-content: center;
  }
  .nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
  }
  .nav-item.active,
  .nav-item:hover {
    color: var(--primary);
  }
  /* Active indicator circle */
  .nav-item.active i {
    background: #f5f3ff;
    padding: 5px;
    border-radius: 50%;
    transform: translateY(-2px);
    transition: all 0.3s ease;
  }
  .cart-icon-wrapper {
    position: relative;
  }
  .cart-count-mobile {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--secondary);
    color: var(--white);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
  }
  .whatsapp-item i {
    color: #25D366;
  }
  /* Adjust Footer for Bottom Nav */
  /* Catalog Layout & Sidebar */
  .sidebar-link {
    display: block;
    padding: 10px 15px;
    border-radius: 8px;
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    margin-bottom: 5px;
  }
  .sidebar-link:hover {
    background: #f8fafc;
    color: var(--primary);
  }
  .sidebar-link.active {
    background: #f5f3ff;
    color: var(--primary);
  }
}
@media (max-width: 768px) and (max-width: 992px) {
  .catalog-sidebar-sticky {
    display: none;
  }
}
@media (max-width: 768px) {
  /* Flash Sale Responsive Fix */
}
@media (max-width: 768px) and (max-width: 480px) {
  .fs-header h3 {
    font-size: 16px;
  }
  .fs-timer {
    font-size: 14px;
  }
  .flash-sale-section .container {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}
@media (max-width: 768px) {
  .navbar .container {
    padding: 0 15px;
  }
  .nav-links {
    display: none;
    /* Hide desktop links on mobile, use bottom nav */
  }
  .hero-content h1 {
    font-size: 24px;
  }
}
@media (max-width: 768px) {
  /* Mobile Sidebar Drawer */
  .catalog-sidebar-refined {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--white);
    z-index: 10001;
    padding: 25px;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
  }
  .catalog-sidebar-refined.active {
    transform: translateX(0);
  }
  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  .sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  .mobile-only {
    display: flex !important;
  }
  .sidebar-header.mobile-only {
    display: flex !important;
  }
  .desktop-only {
    display: none !important;
  }
  .hero-content p {
    font-size: 14px;
  }
  .header-mobile-actions {
    display: flex !important;
    align-items: center;
    gap: 15px;
  }
}
/* Final closing for max-width: 768px */
.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

/* Hide Mobile Nav on Desktop */
@media (min-width: 769px) {
  .mobile-bottom-nav {
    display: none;
  }
}
/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity 0.3s ease;
  overscroll-behavior: contain;
  will-change: opacity;
}

.modal-content {
  background-color: var(--white);
  margin: 5% auto;
  padding: 0;
  border-radius: 0 0 20px 20px;
  width: 90%;
  max-width: 600px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: modalFadeIn 0.4s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.close-modal {
  position: absolute;
  right: 20px;
  top: 15px;
  color: var(--gray);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  transition: color 0.3s;
}

.close-modal:hover {
  color: var(--secondary-dark);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr;
  /* Stacked for 320px */
  gap: 0;
}

@media (min-width: 768px) {
  .modal-body {
    grid-template-columns: 1fr 1fr;
  }
}
.modal-image {
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.modal-info {
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.modal-info h2 {
  font-size: 28px;
  margin: 10px 0 15px;
  color: var(--dark);
}

.product-description {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 30px;
  flex-grow: 1;
}

.modal-info .price-box {
  margin-bottom: 25px;
}

.modal-info .price-new .amount {
  font-size: 32px;
}

/* Clickable product cards */
.product-image,
.product-card h3 {
  cursor: pointer;
}

@media (max-width: 768px) {
  .modal-content {
    margin: 10% auto;
    width: 95%;
  }
  .modal-image {
    aspect-ratio: 1/1;
  }
  .modal-info {
    padding: 25px;
  }
  .modal-info h2 {
    font-size: 20px;
  }
}
/* WhatsApp Share Buttons */
.product-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-share-wa {
  background: #25D366;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.btn-share-wa:hover {
  background: #128C7E;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.5);
}

.btn-share-wa i {
  margin: 0;
}

.btn-add {
  flex: 1;
}

/* Modal Share Button */
.btn-share-wa-modal {
  position: absolute;
  top: 15px;
  right: 60px;
  background: #25D366;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
  z-index: 11;
}

.btn-share-wa-modal:hover {
  background: #128C7E;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.5);
}

.footer-links h4 {
  color: var(--cta);
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.footer-links a:hover {
  color: var(--cta) !important;
}

/* =========================================
   Order Tracking Page
   ========================================= */
.tracking-wrapper {
  max-width: 700px;
  margin: 60px auto;
  padding: 0 20px;
}

.tracking-header {
  text-align: center;
  margin-bottom: 40px;
}

.tracking-header h1 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 10px;
  font-weight: 800;
}

.tracking-header p {
  color: var(--gray);
  font-size: 1rem;
}

.tracking-search-box {
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  margin-bottom: 30px;
  border: 1px solid #f1f5f9;
}

.tracking-form {
  display: flex;
  gap: 12px;
}

.tracking-input {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s ease;
  background-color: #f8fafc;
}

.tracking-input:focus {
  border-color: var(--primary);
  background-color: white;
  outline: none;
  box-shadow: 0 0 0 3px rgba(75, 54, 33, 0.1);
}

.btn-track {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0 28px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 1rem;
}

.btn-track:hover {
  background: var(--primary-hover);
}

.error-message {
  background: #FEF2F2;
  color: #991B1B;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #FECACA;
  margin-bottom: 30px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Order Result Card - Flat & Contrast */
.order-result {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border: 1px solid #f1f5f9;
}

.order-header {
  background: #F8FAFC;
  padding: 24px 30px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.order-id h2 {
  font-size: 1.25rem;
  color: var(--dark);
  margin-bottom: 4px;
  font-family: var(--font-body);
  font-weight: 700;
}

.order-date {
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-badge {
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.status-pending {
  background: #FEF9C3;
  color: #854D0E;
}

.status-processing {
  background: #E0F2FE;
  color: #075985;
}

.status-shipped {
  background: #DBEAFE;
  color: #1E40AF;
}

.status-completed {
  background: #DCFCE7;
  color: #166534;
}

.status-cancelled {
  background: #FEE2E2;
  color: #991B1B;
}

.order-body {
  padding: 30px;
}

/* Timeline Modern */
.timeline {
  position: relative;
  margin: 40px 10px;
}

.timeline-track {
  background: #E2E8F0;
  height: 6px;
  border-radius: 99px;
  position: relative;
  z-index: 1;
}

.timeline-progress {
  background: var(--success);
  height: 100%;
  border-radius: 99px;
  transition: width 1s ease;
}

.timeline-points {
  display: flex;
  justify-content: space-between;
  position: absolute;
  top: -7px;
  width: 100%;
  z-index: 2;
}

.point {
  width: 20px;
  height: 20px;
  background: #E2E8F0;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 0 0 1px #CBD5E1;
  position: relative;
  transition: all 0.3s ease;
}

.point.active {
  background: var(--success);
  box-shadow: 0 0 0 1px var(--success);
  transform: scale(1.1);
}

.point-label {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: #94A3B8;
  white-space: nowrap;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.point.active .point-label {
  color: var(--dark);
}

/* Admin Cancelled Badges & Sub-statuses */
.status-admin_cancelled,
.status-admin_cancelled_fraud,
.status-admin_cancelled_safety,
.status-admin_cancelled_system,
.status-admin_cancelled_death,
.status-admin_cancelled_fm {
  background: #fee2e2 !important;
  color: #991b1b !important;
  border: 1px solid #fecaca;
}

/* Modern Table */
.order-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 40px;
}

.order-table th {
  text-align: left;
  padding: 12px 0;
  border-bottom: 2px solid #e2e8f0;
  color: #64748b;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.order-table td {
  padding: 16px 0;
  border-bottom: 1px solid #f1f5f9;
  color: var(--dark);
  font-size: 0.95rem;
}

.order-table tfoot td {
  border-bottom: none;
  padding-top: 20px;
  font-weight: 700;
  font-size: 1.1rem;
}

.shipping-info {
  background: #F8FAFC;
  padding: 24px;
  border-radius: 12px;
  margin-top: 30px;
  border: 1px solid #f1f5f9;
}

.shipping-info h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.shipping-info p {
  color: #475569;
  margin-bottom: 4px;
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .tracking-form {
    flex-direction: column;
  }
  .btn-track {
    padding: 14px;
    width: 100%;
  }
  .order-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .status-badge {
    align-self: flex-start;
  }
  .point-label {
    font-size: 0.65rem;
  }
  .tracking-wrapper {
    margin: 20px auto;
  }
}
/* ==========================================
   Product Detail Modal (Revised Split Layout)
   ========================================== */
/* Revised Product Modal - User Requested Fix */
.product-modal-content {
  width: 90%;
  max-width: 1000px;
  padding: 0;
  /* Reset padding for split layout */
  border-radius: 16px;
  overflow: hidden;
  margin: 5% auto;
  /* Center on desktop */
}

/* Desktop: 1000px limit */
@media (min-width: 1024px) {
  .product-modal-content {
    width: 80%;
    max-width: 1000px;
  }
}
/* Mobile: Full Screen Modal */
@media (max-width: 768px) {
  .product-modal-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
  }
}
.modal-body-split {
  display: flex;
  flex-direction: column;
  /* Stacked for 320px */
  width: 100%;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  .modal-body-split {
    flex-direction: row;
    min-height: auto;
  }
}
/* Left: Gallery */
.modal-gallery {
  width: 100%;
  /* Full width for 320px */
  background: #f8fafc;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  border-bottom: 1px solid #e2e8f0;
}

@media (min-width: 768px) {
  .modal-gallery {
    flex: 1 1 0;
    width: 50%;
    padding: 20px;
    border-right: 1px solid #e2e8f0;
    border-bottom: none;
  }
}
.gallery-main {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  min-height: 350px;
}

.gallery-main img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.gallery-prev,
.gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  transition: all 0.2s;
}

.gallery-prev:hover,
.gallery-next:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
  left: 10px;
}

.gallery-next {
  right: 10px;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 5px;
  flex-wrap: wrap;
}

.gallery-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

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

.gallery-thumb.active {
  border-color: var(--primary);
  transform: scale(1.05);
}

/* Right: Details */
.modal-details {
  width: 100%;
  /* Full width for 320px */
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

@media (min-width: 768px) {
  .modal-details {
    flex: 1 1 0;
    width: 50%;
    padding: 30px;
    overflow-y: auto;
  }
}
.modal-title-ref {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--dark);
  line-height: 1.2;
}

.modal-details h2 {
  font-size: 1.8rem;
  color: var(--dark);
  line-height: 1.2;
}

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

.current-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

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

.discount-badge {
  background: #ffedd5;
  color: #f97316;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.meta-section {
  display: flex;
  gap: 20px;
  padding: 15px 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

.meta-item {
  font-size: 0.9rem;
  color: #64748b;
}

.meta-item .label {
  font-weight: 600;
  color: var(--dark);
}

#modalDescription {
  color: #475569;
  line-height: 1.6;
  font-size: 0.95rem;
}

.variant-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

.variant-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
}

.variant-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.variant-btn {
  padding: 10px 20px;
  border: 1px solid #e2e8f0;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  min-width: 60px;
  min-height: 44px;
  /* Mobile hit area spec */
  display: flex;
  align-items: center;
  justify-content: center;
}

.variant-btn:hover:not(.out-of-stock) {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.variant-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.3);
}

.variant-btn.out-of-stock {
  opacity: 0.4;
  background: #f1f5f9;
  cursor: not-allowed;
  text-decoration: line-through;
  filter: grayscale(1);
  color: #94a3b8;
}

.modal-actions {
  margin-top: auto;
  display: flex;
  gap: 12px;
  align-items: center;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.quantity-selector button {
  width: 40px;
  height: 48px;
  border: none;
  background: #f8fafc;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.2s;
}

.quantity-selector button:hover {
  background: #f1f5f9;
}

.quantity-selector input {
  width: 50px;
  height: 48px;
  border: none;
  text-align: center;
  font-weight: 600;
}

.btn-whatsapp {
  flex: 2;
  background: #22c55e;
  color: white;
  padding: 14px 20px;
  border-radius: 8px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  transition: all 0.2s;
}

/* Modal Actions */
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}

.quantity-selector {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  padding: 2px;
  border-radius: 8px;
  width: fit-content;
}

.btn-cart-modal {
  flex: 1;
  min-width: 200px;
  padding: 16px;
  background: var(--cta);
  color: var(--primary);
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.1rem;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.btn-cart-modal:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.btn-cart-modal i {
  font-size: 1.2rem;
}

/* Responsive Modal */
@media (max-width: 576px) {
  .modal-details {
    padding: 15px;
  }
  .modal-details h2,
  .modal-title-ref {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
  .variant-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
  .modal-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .quantity-selector {
    justify-content: center;
    width: 100%;
  }
  .quantity-selector button,
  .quantity-selector input {
    height: 40px;
  }
  .btn-whatsapp,
  .btn-cart-modal {
    padding: 12px;
    font-size: 0.95rem;
  }
}
/* Badge Animation */
.badge-animate {
  animation: badgePop 0.3s ease-out;
}

@keyframes badgePop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.4);
  }
  100% {
    transform: scale(1);
  }
}
/* Product Card Button Consistency */
.product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card .product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 15px;
}

.product-card .price-box {
  margin-top: auto;
  /* Pushes price and button to bottom in cards */
}

/* Cart Page Mobile Fixes */
@media (max-width: 768px) {
  .cart-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .cart-item {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 15px;
    position: relative;
    align-items: flex-start;
  }
  .item-image {
    width: 70px;
    height: 70px;
    margin-right: 15px;
    flex-shrink: 0;
  }
  .item-details {
    flex: 1;
    min-width: 180px;
  }
  .item-details h3 {
    font-size: 15px;
    margin-bottom: 5px;
    padding-right: 25px;
  }
  .item-total {
    width: 100%;
    margin: 15px 0 0;
    text-align: right;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    font-size: 1rem;
    font-weight: 700;
  }
  .item-actions {
    position: absolute;
    top: 15px;
    right: 15px;
  }
  .qty-controls {
    margin-top: 10px;
  }
  .cart-summary {
    position: static;
    width: 100%;
  }
}
/* Toast Notifications */
@media (max-width: 768px) {
  .toast-notification {
    bottom: 90px;
    /* Clear bottom nav */
  }
}
.toast-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.toast-link {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}

.toast-notification.fade-out {
  opacity: 0;
  transform: translate(-50%, 20px);
}

.cart-success {
  background: #22c55e !important;
  border-color: #22c55e !important;
  transform: scale(1.05);
  pointer-events: none;
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
.urgent-stock {
  color: #f97316 !important;
  /* Urgent Orange */
  font-weight: 700 !important;
  animation: pulseSubtle 2s infinite;
}

@keyframes pulseSubtle {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
  }
}
.cart-bounce {
  animation: cartBounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes cartBounce {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}
/* Stock Urgency & Status */
.urgent-stock {
  color: #e11d48;
  /* Rose 600 */
  font-weight: 800;
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}
.variant-btn.out-of-stock {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #f1f5f9;
  color: #94a3b8;
  text-decoration: line-through;
  border-color: #e2e8f0;
}

.variant-btn.out-of-stock:hover {
  background-color: #f1f5f9;
  color: #94a3b8;
  border-color: #e2e8f0;
}

/* ==========================================
   Elite Phase: Premium Components
   ========================================== */
/* Features Section */
.features-section {
  padding: 60px 0;
  background: #ffffff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-item {
  text-align: center;
  padding: 40px 30px;
  border-radius: 20px;
  background: #f8fafc;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid #f1f5f9;
}

.feature-item:hover {
  transform: translateY(-10px);
  background: white;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  border-color: var(--cta);
}

.feature-icon {
  font-size: 45px;
  color: var(--primary);
  margin-bottom: 25px;
  display: inline-block;
  transition: transform 0.3s;
}

.feature-item:hover .feature-icon {
  transform: scale(1.1);
}

.feature-item h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.feature-item p {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.6;
}

/* Testimonials */
.testimonials-section {
  padding: 100px 0;
  background: #f8fafc;
  position: relative;
  overflow: hidden;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: white;
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  position: relative;
  border: 1px solid #f1f5f9;
}

.quote-icon {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 50px;
  color: rgba(0, 0, 0, 0.03);
  font-family: serif;
}

.testimonial-text {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-avatar {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.user-details h4 {
  font-size: 1rem;
  margin: 0;
}

.user-details span {
  font-size: 0.85rem;
  color: var(--gray);
}

/* FAQ */
.faq-section {
  padding: 100px 0;
  background: white;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  transition: all 0.3s;
}

.faq-question {
  padding: 22px 30px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--dark);
}

.faq-answer {
  padding: 0 30px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  color: #475569;
  line-height: 1.7;
}

.faq-item.active {
  background: white;
  border-color: var(--primary);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.faq-item.active .faq-answer {
  padding-bottom: 30px;
  max-height: 300px;
}

.faq-icon {
  transition: transform 0.3s;
  color: var(--gray);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

/* Floating WhatsApp */
.floating-wa {
  position: fixed;
  right: 30px;
  z-index: 1000;
}

@media (max-width: 768px) {
  .floating-wa {
    bottom: 90px;
    /* Adjusted to clear bottom nav */
  }
}
.wa-btn {
  background: #25d366;
  color: white;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 35px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  transition: all 0.3s;
  text-decoration: none;
  position: relative;
}

@media (hover: hover) {
  .wa-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
  }
}
.wa-tooltip {
  position: absolute;
  right: 80px;
  background: white;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  pointer-events: none;
  /* Prevent tooltip from being hovered directly */
}

@media (max-width: 480px) {
  .wa-tooltip {
    right: auto;
    left: -120%;
    /* Adjust for very small screens */
  }
}
@media (hover: hover) {
  .wa-btn:hover .wa-tooltip {
    opacity: 1;
    visibility: visible;
  }
}
/* Payment Badges */
.payment-methods {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 25px;
  opacity: 0.8;
}

.payment-badge {
  height: 30px;
  filter: brightness(0) invert(1);
  /* For dark footer */
  opacity: 0.7;
}

/* Scroll Animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Touch Target Optimization & Mobile Refinements */
@media (max-width: 768px) {
  /* Ensure minimum touch target size */
  button,
  input[type=submit],
  input[type=button],
  .btn,
  .btn-add,
  .nav-item,
  a.btn-primary,
  .qty-btn {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
  }
  /* Ensure inputs are easily tappable */
  input[type=text],
  input[type=number],
  input[type=email],
  input[type=password],
  select,
  textarea {
    min-height: 44px;
    font-size: 16px !important;
    /* Prevent zoom on iOS */
  }
  /* Adjust spacing for larger targets */
  .qty-controls {
    gap: 15px;
  }
  /* Active State for Bottom Nav */
  .nav-item.active {
    color: var(--primary);
  }
  .nav-item.active i {
    color: var(--primary);
    transform: translateY(-2px);
  }
  /* Active State Feedback for Touch */
  .btn:active,
  .btn-primary:active,
  .btn-add:active,
  .qty-btn:active,
  .nav-item:active {
    opacity: 0.7;
    transform: scale(0.96);
    transition: transform 0.1s ease;
  }
}
/* =========================================
   Advanced Mobile Interactions
   ========================================= */
/* Pull to Refresh Indicator */
.ptr-element {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #f8f9fa;
  z-index: 999;
  will-change: transform;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.ptr-element .ptr-icon {
  font-size: 24px;
  color: var(--primary);
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}

.ptr-element.refreshing .ptr-icon {
  animation: ptr-spin 1s linear infinite;
}

@keyframes ptr-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
/* Skeleton Loading */
.skeleton {
  background: #e0e0e0;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.skeleton::after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: translateX(-100%);
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  100% {
    transform: translateX(100%);
  }
}
.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
  width: 80%;
}

.skeleton-text.short {
  width: 50%;
}

.skeleton-img {
  width: 100%;
  height: 200px;
  /* Adjust based on context */
  display: block;
}

/* FIX: Mobile "Tambah ke Keranjang" Button Overflow */
@media (max-width: 480px) {
  .btn-add {
    font-size: 13px !important;
    padding: 5px 10px !important;
    white-space: nowrap;
    gap: 5px !important;
    height: 44px !important;
  }
  .btn-add i {
    font-size: 14px;
    margin-bottom: 0 !important;
  }
}
/* Responsive Media Containers */
.responsive-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
}

.responsive-media iframe,
.responsive-media video,
.responsive-media embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--border-radius);
}

/* =========================================
   Auth & Profile Standardizations
   ========================================= */
.auth-section {
  padding: 60px 0;
  background: #f8fafc;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.auth-container {
  max-width: 500px;
  margin: 0 auto;
}

.auth-card {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-header h2 {
  font-size: 28px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 8px;
}

.auth-header p {
  color: #64748b;
}

.auth-error {
  background: #fee2e2;
  color: #ef4444;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  text-align: center;
  border: 1px solid #fecaca;
}

.auth-form-group {
  margin-bottom: 20px;
}

.auth-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #475569;
}

.auth-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  outline: none;
  transition: all 0.2s;
  background: #fff;
}

.auth-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(75, 54, 33, 0.1);
}

.auth-footer {
  margin-top: 30px;
  text-align: center;
  font-size: 14px;
  color: #64748b;
}

.auth-footer a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

/* Profile Specific */
.profile-section {
  padding: 40px 20px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  background: #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #64748b;
}

.profile-info h1 {
  font-size: 24px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 5px;
}

.profile-info p {
  color: #64748b;
}

.profile-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.loyalty-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: white;
  border-radius: 16px;
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.loyalty-content {
  position: relative;
  z-index: 2;
}

.loyalty-stats {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
}

.loyalty-points span:first-child {
  display: block;
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 5px;
}

.loyalty-points span:last-child {
  font-size: 36px;
  font-weight: 800;
}

.loyalty-tier {
  background: rgba(255, 255, 255, 0.1);
  padding: 5px 15px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.loyalty-tier i {
  color: #fcd34d;
}

.loyalty-benefit {
  font-size: 14px;
  opacity: 0.8;
}

.loyalty-decor {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.order-history-header {
  font-size: 20px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-history-header i {
  color: #64748b;
}

.empty-state {
  text-align: center;
  padding: 40px;
  background: #f8fafc;
  border-radius: 12px;
  border: 2px dashed #e2e8f0;
}

.empty-state i {
  font-size: 40px;
  color: #cbd5e1;
  margin-bottom: 15px;
}

.order-item-card {
  background: white;
  border: 1px solid #f1f5f9;
  padding: 20px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.order-info-main .order-num {
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 5px;
}

.order-info-main .order-date {
  font-size: 13px;
  color: #64748b;
}

.order-status-badge {
  display: inline-block;
  background: #eff6ff;
  color: #2563eb;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 8px;
}

.order-price-box {
  text-align: right;
}

.order-total {
  font-weight: 800;
  color: #1e293b;
  font-size: 18px;
}

.btn-detail-link {
  font-size: 13px;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  display: block;
  margin-top: 5px;
}

.settings-panel h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 20px;
}

.profile-menu-item {
  padding: 15px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: #475569;
}

.profile-menu-item:hover {
  background: #f8fafc;
}

.privacy-box {
  margin-top: 20px;
  padding-top: 20px;
}

.privacy-box h4 {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
}

.privacy-box p {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 15px;
}

.btn-danger-outline {
  width: 100%;
  border: 1px solid #ef4444;
  color: #ef4444;
  background: white;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* --- ACCESSIBILITY & UTILITIES --- */
@media (forced-colors: active) {
  :focus-visible {
    outline: 3px solid CanvasText;
  }
}
/* Print Styles */
@media print {
  .navbar,
  .footer,
  .mobile-bottom-nav,
  .btn-primary,
  .whatsapp-widget {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
  .container {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
  }
}
@media (max-width: 768px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}
/* --- MOBILE OPTIMIZATIONS & FIXES --- */
/* Fix Sticky Footer Functionality */
.sticky-cart-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: white;
  padding: 15px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
  /* Hidden by default on desktop */
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 768px) {
  .sticky-cart-footer {
    display: flex;
  }
  /* Ensure content isn't hidden behind sticky footer */
  body {
    padding-bottom: 90px !important;
  }
  /* Improve Search Bar on Mobile */
  .search-container {
    padding: 0 10px;
    margin-top: 15px;
  }
  .search-box input {
    font-size: 16px;
    /* Prevent iOS zoom */
  }
}
/* Variant Buttons Styling */
.btn-variant {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid #e2e8f0;
  background: white;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 8px;
  margin-bottom: 8px;
}

.btn-variant:hover {
  border-color: var(--primary);
  background: #f8fafc;
}

.btn-variant.active {
  border-color: var(--primary);
  background: #eff6ff;
  color: var(--primary);
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.1);
}

.btn-variant.disabled-variant,
.btn-variant:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f1f5f9;
  border-color: #f1f5f9;
  color: #94a3b8;
}

/* CTA Buttons Fixes */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  /* Ensure it's not hidden */
  visibility: visible !important;
  opacity: 1 !important;
}

/* Mobile Filter Button Floating */
.mobile-filter-trigger {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1050;
  cursor: pointer;
}

@media (max-width: 992px) {
  .mobile-filter-trigger {
    display: flex;
  }
}
/* Overlay for Sidebar */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* --- NEW MOBILE PRODUCT DETAIL DESIGN --- */
/* 1. Header & Meta */
.brand-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  display: block;
}

.rating-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 15px;
}

.rating-summary i {
  color: #f59e0b;
}

/* 2. Seller Info Box */
.seller-info-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 20px;
}

.seller-name {
  font-weight: 700;
  color: #1e293b;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.seller-name i {
  color: var(--primary);
}

.seller-address {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

/* 3. SKU & System Info */
.product-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
}

.meta-item label {
  font-size: 11px;
  color: #94a3b8;
  display: block;
  margin-bottom: 2px;
}

.meta-item span {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

/* 4. Variant Grid System */
.variant-grid-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

@media (max-width: 480px) {
  .variant-grid-selector {
    grid-template-columns: repeat(2, 1fr);
  }
}
.btn-variant-modern {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  height: 100%;
}

.btn-variant-modern:hover {
  border-color: var(--primary);
}

.btn-variant-modern.active {
  border-color: var(--primary);
  background: #eff6ff;
  box-shadow: 0 0 0 1px var(--primary);
}

.btn-variant-modern .v-name {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 2px;
}

.btn-variant-modern .v-stock {
  font-size: 11px;
  color: #64748b;
}

.btn-variant-modern.disabled {
  background: #f1f5f9;
  opacity: 0.6;
  cursor: not-allowed;
  border-color: #f1f5f9;
}

/* 5. Modern Tabs */
.pdp-tabs {
  display: flex;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 20px;
  overflow-x: auto;
}

.pdp-tab-btn {
  padding: 12px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  white-space: nowrap;
}

.pdp-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-panel.active {
  display: block;
}

/* 6. Quantity Row */
.qty-stock-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

/* 7. Tokopedia-Style PDP Enhancements */
.pdp-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}

.pdp-main-price {
  font-size: 28px;
  font-weight: 800;
  color: #1e293b;
}

.pdp-strike-price {
  font-size: 14px;
  color: #94a3b8;
  text-decoration: line-through;
  margin-top: 8px;
}

.pdp-discount-tag {
  font-size: 12px;
  font-weight: 800;
  color: #ef4444;
  margin-top: 8px;
}

.pdp-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 12px;
}

.pdp-title-row h1 {
  font-size: 16px;
  font-weight: 500;
  color: #334155;
  line-height: 1.4;
  margin: 0;
  flex: 1;
}

.pdp-wishlist-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.pdp-wishlist-btn.active {
  color: #ef4444;
}

.pdp-meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.pdp-badge {
  background: #f1f5f9;
  color: #64748b;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.pdp-social-proof {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 20px;
}

.pdp-social-proof i {
  color: #f59e0b;
}

.pdp-social-proof .separator {
  color: #e2e8f0;
}

/* Tokopedia-Style Variant Section */
.variant-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-top: 15px;
  border-top: 1px solid #f1f5f9;
}

.variant-section-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.variant-section-header .variant-count {
  color: #64748b;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.variant-card-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 15px;
  scrollbar-width: none;
}

.variant-card-container::-webkit-scrollbar {
  display: none;
}

.variant-card-modern {
  flex: 0 0 auto;
  width: 130px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
}

.variant-card-modern:hover {
  border-color: var(--primary);
}

.variant-card-modern.active {
  border-color: var(--primary);
  background: #eff6ff;
  box-shadow: 0 0 0 1px var(--primary);
}

.variant-card-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
}

.variant-card-label {
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.variant-card-modern.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f1f5f9;
}

/* 8. Dual Action Buttons Styling */
.btn-outline-primary {
  background: white;
  color: var(--primary);
  border: 1px solid var(--primary);
  transition: all 0.2s;
}

.btn-outline-primary:hover {
  background: #eff6ff;
}

@media (max-width: 992px) {
  .detail-sticky {
    display: flex !important;
    position: fixed;
    bottom: 0px;
    left: 0;
    width: 100%;
    background: white;
    z-index: 1000;
    border-top: 1px solid #e2e8f0;
    padding: 10px 15px;
    gap: 10px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
  }
  .detail-sticky .pdp-wishlist-btn {
    flex: 0 0 44px;
    height: 44px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
  }
  .detail-sticky button {
    flex: 1;
    height: 44px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    border: none;
    cursor: pointer;
  }
}
/* --- JIIN 2.0 RESPONSIVE UTILITIES --- */
.desktop-only {
  display: none !important;
}

@media (min-width: 992px) {
  .desktop-only {
    display: block !important;
  }
}
@media (min-width: 992px) {
  .desktop-only-flex {
    display: flex !important;
  }
}
.mobile-only {
  display: block !important;
}

@media (min-width: 992px) {
  .mobile-only {
    display: none !important;
  }
}
/* --- JIIN 2.0 NEXUS CORE --- */
.card-nexus {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid #f1f5f9;
  padding: 24px;
}

.input-nexus {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: #1e293b;
  transition: all 0.2s;
  outline: none;
}

.input-nexus:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.checkout-section-title {
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkout-section-title i {
  color: var(--primary);
}

/*# sourceMappingURL=style.css.map */
