/* ==========================================================================
   BEAUTY 01 — COSMETICS COMMERCE (Inspired by Lam Thảo Cosmetics)
   Design System: Rose Gold & Vibrant Coral, Clean White, Luxury Typography
   ========================================================================== */

:root {
  --rose: #ff4b72;
  --rose-dark: #e02852;
  --rose-deep: #b31b3e;
  --rose-light: #fff0f3;
  --rose-soft: #ffe4e9;
  --rose-gradient: linear-gradient(135deg, #ff6584 0%, #ff3366 100%);
  --rose-glow: rgba(255, 75, 114, 0.28);
  
  --coral: #ff7675;
  --coral-soft: #fff5f5;
  
  --gold: #d4a853;
  --gold-light: #fef8eb;
  --gold-gradient: linear-gradient(135deg, #f7d070 0%, #d4a853 100%);
  
  --ink: #1e2029;
  --ink-soft: #3d4152;
  --muted: #7d8293;
  --border: #f0e6e8;
  --border-strong: #e2d5d8;
  
  --page-bg: #fdf9f9;
  --card-bg: #ffffff;
  --dark-bg: #14161f;
  
  --mint: #00b894;
  --mint-soft: #e6faf5;
  --amber: #f39c12;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 999px;
  
  --shadow-sm: 0 4px 12px rgba(255, 75, 114, 0.06);
  --shadow-md: 0 10px 24px rgba(255, 75, 114, 0.1);
  --shadow-lg: 0 20px 48px rgba(30, 32, 41, 0.12);
  --shadow-floating: 0 24px 60px rgba(224, 40, 82, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  margin: 0;
  padding: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: "DM Sans", "Be Vietnam Pro", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 10px;
}

.wrap {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   TOP ANNOUNCEMENT BAR
   ========================================================================== */
.announcement {
  background: linear-gradient(90deg, #008f8a, #0da487, #008f8a);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  text-align: center;
  letter-spacing: 0.02em;
}

.announcement span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.announcement span::before {
  content: "✦";
  font-size: 10px;
  opacity: 0.8;
}

/* ==========================================================================
   SITE HEADER & MEGA NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 42px;
  width: auto;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  display: block;
}

.brand:hover .brand-logo-img {
  transform: scale(1.03);
}

.brand-text {
  display: none !important;
}

/* Smart Search Bar */
.search-bar-wrap {
  flex: 1;
  max-width: 540px;
  position: relative;
}

.search-form {
  display: flex;
  align-items: center;
  background: #f7f3f4;
  border: 1.5px solid transparent;
  border-radius: var(--radius-full);
  padding: 4px 6px 4px 18px;
  transition: all 0.2s ease;
}

.search-form:focus-within {
  background: #fff;
  border-color: var(--rose);
  box-shadow: 0 0 0 4px var(--rose-glow);
}

.search-form input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 13.5px;
  color: var(--ink);
}

.search-form input::placeholder {
  color: var(--muted);
}

.search-submit-btn {
  background: var(--rose-gradient);
  color: #fff;
  border: 0;
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: transform 0.18s ease;
}

.search-submit-btn:hover {
  transform: scale(1.03);
}

/* Quick keywords below search */
.search-keywords {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
  scrollbar-width: none;
}

.search-keywords a {
  color: var(--ink-soft);
  background: rgba(255, 75, 114, 0.08);
  padding: 1px 8px;
  border-radius: 999px;
  font-weight: 500;
}

.search-keywords a:hover {
  color: var(--rose);
}

/* Live Search Dropdown Component */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  border: 1px solid var(--border);
  z-index: 1200;
  display: none;
  padding: 16px;
  max-height: 480px;
  overflow-y: auto;
}

.search-dropdown.is-open {
  display: block;
  animation: dropdownFade 0.2s ease-out;
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.search-dropdown-section {
  margin-bottom: 14px;
}

.search-dropdown-section:last-child {
  margin-bottom: 0;
}

.search-section-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.search-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.search-tag-pill {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  border: 1px solid transparent;
}

.search-tag-pill:hover {
  background: #ffeef2;
  border-color: var(--rose);
  color: var(--rose);
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.15s ease;
  border: 1px solid transparent;
}

.search-result-item:hover {
  background: #fff6f8;
  border-color: var(--border);
}

.search-result-thumb {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
  background: #f7f3f4;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-brand {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  display: block;
}

.search-result-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin: 1px 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-price-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-result-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--rose-deep);
}

.search-result-old-price {
  font-size: 11px;
  color: var(--muted);
  text-decoration: line-through;
}

.search-result-tag {
  background: #ffeef2;
  color: var(--rose-dark);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: auto;
  flex-shrink: 0;
}

.search-empty-state {
  text-align: center;
  padding: 24px 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.search-clear-btn {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
  padding: 4px 6px;
  display: none;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-action-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Compact Showroom Button */
.store-btn,
.store-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap !important;
  transition: all 0.2s ease;
}

.store-btn:hover,
.store-pill:hover {
  border-color: var(--rose);
  color: var(--rose);
  background: #fff0f3;
}

.header-btn {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color 0.18s ease;
  position: relative;
}

.header-btn:hover {
  color: var(--rose);
}

/* Notification Bell & Dropdown */
.notif-btn {
  background: #ffffff;
  border: 1px solid var(--border-strong);
  color: var(--ink);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  padding: 0;
}

.notif-btn:hover,
.notif-btn.is-active {
  border-color: var(--rose);
  color: var(--rose);
  background: #fff0f3;
}

.notif-btn .action-icon {
  font-size: 16px;
  line-height: 1;
}

.notif-badge-count {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--rose);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(255, 75, 114, 0.35);
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: -50px;
  width: 340px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  border: 1px solid #ffd0dc;
  z-index: 1250;
  display: none;
  padding: 14px 16px;
  animation: dropdownFade 0.22s ease-out;
}

.notif-dropdown.is-open {
  display: block;
}

.notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 10px;
}

.notif-head-title {
  font-size: 13px;
  font-weight: 800;
  color: #1e293b;
}

.notif-mark-read {
  background: none;
  border: 0;
  font-size: 11.5px;
  color: var(--rose-deep);
  font-weight: 700;
  cursor: pointer;
  padding: 2px 4px;
}

.notif-mark-read:hover {
  text-decoration: underline;
}

.notif-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 340px;
  overflow-y: auto;
}

.notif-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px;
  border-radius: 10px;
  background: #fafaf9;
  border: 1px solid #f1f5f9;
  transition: all 0.18s ease;
}

.notif-item.is-unread {
  background: #fff5f7;
  border-color: #ffd8e2;
}

.notif-icon-bubble {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  background: #e2e8f0;
}

.notif-icon-bubble.shipping {
  background: #e6fffa;
  border: 1px solid #b2f5ea;
}

.notif-icon-bubble.voucher {
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
}

.notif-icon-bubble.deal {
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.notif-info {
  flex: 1;
  min-width: 0;
}

.notif-item-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.35;
}

.notif-item-desc {
  font-size: 11.5px;
  color: #64748b;
  margin: 2px 0 6px;
  line-height: 1.35;
}

.notif-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.notif-time {
  font-size: 10.5px;
  color: #94a3b8;
  font-weight: 600;
}

.notif-cta-btn,
.notif-cta-link {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--rose-gradient);
  color: #fff;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.notif-foot {
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid #f1f5f9;
  text-align: center;
}

.notif-foot-link {
  background: none;
  border: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--rose-deep);
  cursor: pointer;
}

.notif-foot-link:hover {
  text-decoration: underline;
}

/* User Auth Button & Dropdown */
.auth-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px 0 6px;
  border-radius: 999px;
  background: #fff0f3;
  border: 1px solid #ffd3de;
  color: var(--rose-deep);
  white-space: nowrap !important;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 700;
  font-size: 13px;
  position: relative;
}

.auth-user-btn:hover {
  background: #ffe4eb;
  border-color: var(--rose);
}

.auth-avatar-pill {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--rose-gradient);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 800;
  flex-shrink: 0;
}

.auth-avatar-pill .auth-icon {
  display: none;
  font-size: 13px;
}

.auth-avatar-pill .avatar-initial {
  display: block;
  line-height: 1;
}

.auth-user-btn:not(.is-logged-in) .auth-avatar-pill {
  background: #f1f5f9;
  color: #64748b;
}

.auth-user-btn:not(.is-logged-in) .auth-avatar-pill .auth-icon {
  display: block;
}

.auth-user-btn:not(.is-logged-in) .auth-avatar-pill .avatar-initial {
  display: none;
}

.auth-user-btn .auth-btn-label {
  font-weight: 700;
  white-space: nowrap !important;
}

.auth-chevron {
  font-size: 11px;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.auth-user-btn.is-active .auth-chevron {
  transform: rotate(180deg);
}

/* Profile Quick Dropdown */
.profile-quick-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 270px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  border: 1px solid #ffd0dc;
  z-index: 1250;
  display: none;
  padding: 12px;
  animation: dropdownFade 0.22s ease-out;
}

.profile-quick-dropdown.is-open {
  display: block;
}

.profile-dropdown-user {
  background: linear-gradient(135deg, #fff0f3, #ffe4eb);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.profile-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--rose-gradient);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.profile-user-meta {
  flex: 1;
  min-width: 0;
}

.profile-user-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-user-tier {
  font-size: 11px;
  color: var(--rose-deep);
  font-weight: 600;
}

.profile-dropdown-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  background: none;
  border: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.profile-menu-item:hover {
  background: #fff0f3;
  color: var(--rose-deep);
}

.profile-menu-badge {
  margin-left: auto;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
}

.profile-live-tag {
  margin-left: auto;
  background: #10b981;
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  animation: pulseDot 1.5s infinite;
}

.profile-menu-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 4px 0;
}

.profile-menu-item.text-danger {
  color: #e11d48;
}

.profile-menu-item.text-danger:hover {
  background: #fff1f2;
}

.badge-count {
  position: absolute;
  top: -2px;
  right: 0;
  background: var(--rose);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
}

.cart-btn-primary {
  background: var(--rose-gradient);
  color: #fff !important;
  border-radius: var(--radius-full);
  padding: 8px 18px;
  box-shadow: 0 4px 16px var(--rose-glow);
}

.cart-btn-primary:hover {
  transform: translateY(-1px);
}

.cart-btn-primary .badge-count {
  position: static;
  background: #fff;
  color: var(--rose);
  border: 0;
  width: auto;
  height: auto;
  padding: 1px 7px;
  border-radius: 999px;
  margin-left: 4px;
}

/* Mobile Toggle */
.mobile-menu-toggle,
.hamburger-btn {
  display: none;
  background: transparent;
  border: 1.5px solid var(--border-strong);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 18px;
  cursor: pointer;
  color: var(--ink);
}

/* Main Nav Bar (Lam Thảo Cosmetics Style) */
.main-nav-bar {
  background: linear-gradient(90deg, #ff4b72, #f02d5e);
  box-shadow: 0 4px 12px rgba(240, 45, 94, 0.16);
  position: relative;
  z-index: 90;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow: visible;
  padding: 0;
  margin: 0;
  list-style: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a,
.main-nav .nav-item-btn {
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: background 0.18s ease;
}

.main-nav a:hover,
.main-nav .nav-item-btn:hover,
.main-nav a[aria-current="page"] {
  background: rgba(0, 0, 0, 0.14);
  color: #fff;
}

.nav-mega-btn {
  background: rgba(0, 0, 0, 0.18) !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em;
}

/* Multipage Nav Dropdown Menus (Lam Thảo style) */
.nav-dropdown-item {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-toggle::after {
  content: '▾';
  font-size: 11px;
  opacity: 0.85;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: #ffffff;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
  border: 1px solid var(--border);
  border-top: 3px solid var(--rose);
  padding: 8px 0;
  margin: 0;
  list-style: none;
  display: none;
  z-index: 1050;
}

.nav-dropdown-item:hover .nav-dropdown-menu,
.nav-dropdown-item:focus-within .nav-dropdown-menu {
  display: block;
  animation: dropdownFade 0.2s ease-out;
}

.nav-dropdown-menu li {
  margin: 0;
  padding: 0;
}

.nav-dropdown-menu li a {
  display: block;
  padding: 10px 18px;
  color: #1e293b;
  font-size: 13.5px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.16s ease;
  background: transparent;
}

.nav-dropdown-menu li a:hover {
  background: #fff0f3;
  color: var(--rose);
  padding-left: 24px;
}

/* Mega Menu Dropdown */
.mega-menu-wrapper {
  position: relative;
}

.mega-menu-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 760px;
  background: #ffffff;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border);
  border-top: 3px solid var(--rose);
  z-index: 1100;
  display: none;
  grid-template-columns: 240px 1fr;
  overflow: hidden;
}

.mega-menu-wrapper:hover .mega-menu-dropdown,
.mega-menu-dropdown.is-open {
  display: grid;
  animation: dropdownFade 0.2s ease-out;
}

.mega-categories-list {
  background: #fbf7f8;
  border-right: 1px solid var(--border);
  padding: 10px 0;
  margin: 0;
  list-style: none;
}

.mega-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s ease;
}

.mega-cat-item:hover,
.mega-cat-item.is-active {
  background: #ffffff;
  color: var(--rose);
  font-weight: 700;
  padding-left: 22px;
}

.mega-subcategories-panel {
  padding: 20px 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.mega-sub-group h4 {
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--rose-dark);
  letter-spacing: 0.05em;
  margin: 0 0 8px;
  border-bottom: 1.5px solid var(--border);
  padding-bottom: 4px;
}

.mega-sub-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mega-sub-group a {
  font-size: 13px !important;
  color: var(--ink-soft) !important;
  text-decoration: none !important;
  padding: 2px 0 !important;
  text-transform: none !important;
  font-weight: 500 !important;
}

.mega-sub-group a:hover {
  color: var(--rose) !important;
  background: transparent !important;
  padding-left: 4px !important;
}

/* ==========================================================================
   HERO BANNER & FLASH BENEFIT CAROUSEL
   ========================================================================== */
.hero {
  padding: 24px 0 32px;
  background: linear-gradient(180deg, #fff 0%, #fff7f9 100%);
}

.hero-carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  background: #fff;
}

.hero-slides {
  position: relative;
}

.hero-slide {
  display: none;
  position: relative;
  min-height: 440px;
  background: linear-gradient(135deg, #ffeef2 0%, #fff6f8 50%, #fef3f5 100%);
}

.hero-slide.is-active {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  animation: heroFade 0.4s ease forwards;
}

@keyframes heroFade {
  from { opacity: 0; transform: scale(0.99); }
  to { opacity: 1; transform: scale(1); }
}

.hero-copy {
  padding: 44px 48px;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--rose-light);
  border: 1px solid var(--rose);
  color: var(--rose-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.hero-copy h1,
.hero-copy h2 {
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 14px;
}

.hero-copy h1 em,
.hero-copy h2 em {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  background: var(--rose-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy p {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 48ch;
  line-height: 1.6;
  margin: 0 0 24px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--rose-gradient);
  color: #fff !important;
  box-shadow: 0 8px 24px var(--rose-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 75, 114, 0.35);
}

.btn-secondary {
  background: #fff;
  border-color: var(--border-strong);
  color: var(--ink) !important;
}

.btn-secondary:hover {
  border-color: var(--rose);
  color: var(--rose) !important;
}

.hero-visual {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 460px;
}

.hero-badge-float {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-left: 4px solid var(--rose);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: 13px;
  font-weight: 700;
}

.hero-badge-float span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

/* Hero Carousel Controls */
.hero-ctrl {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 18px;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.hero-ctrl:hover {
  background: var(--rose);
  color: #fff;
  border-color: var(--rose);
}

.hero-prev { left: 16px; }
.hero-next { right: 16px; }

.hero-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.hero-dot {
  width: 24px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 75, 114, 0.25);
  cursor: pointer;
  transition: all 0.25s ease;
}

.hero-dot.is-active {
  background: var(--rose);
  width: 36px;
}

/* Trust Pillar Strip */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.trust-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.trust-item:hover {
  transform: translateY(-2px);
  border-color: var(--rose);
}

.trust-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--rose-light);
  color: var(--rose);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

.trust-item strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.trust-item span {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}

/* ==========================================================================
   FLASH SALE GIỜ VÀNG
   ========================================================================== */
.flash-sale-section {
  padding: 44px 0;
  background: linear-gradient(135deg, #fff5f7 0%, #fff 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.flash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.flash-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.flash-flame {
  font-size: 26px;
  animation: flamePulse 1.2s infinite alternate;
}

@keyframes flamePulse {
  from { transform: scale(1); }
  to { transform: scale(1.18); }
}

.flash-title-wrap h2 {
  font-size: 24px;
  margin: 0;
  color: var(--rose-deep);
}

.countdown-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--dark-bg);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}

.countdown-box b {
  background: var(--rose);
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

/* Product Cards Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--rose);
  box-shadow: var(--shadow-md);
}

.product-thumb {
  position: relative;
  overflow: hidden;
  background: #fbf8f8;
  aspect-ratio: 1 / 1;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .product-thumb img {
  transform: scale(1.05);
}

.discount-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--rose);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 2;
}

.discount-tag.hot {
  background: linear-gradient(135deg, #ff4757, #ff6b81);
}

.discount-tag.new {
  background: var(--mint);
}

.wish-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 16px;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  transition: all 0.2s ease;
}

.wish-btn:hover,
.wish-btn.is-active {
  color: var(--rose);
  background: #fff;
  transform: scale(1.1);
}

.product-meta {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.product-brand {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0;
}

.product-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--amber);
  margin: 2px 0;
}

.product-rating span {
  color: var(--muted);
  font-size: 11.5px;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
}

.product-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--rose-deep);
}

.product-origin-price {
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
}

/* Progress bar for flash deals */
.flash-progress {
  margin-top: 8px;
  background: #b88a99;
  border-radius: 999px;
  height: 18px;
  position: relative;
  overflow: hidden;
}

.flash-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #ff7675, #ff4b72);
  border-radius: 999px;
}

.flash-progress-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 3px rgba(88, 12, 36, 0.85), 0 0 6px rgba(88, 12, 36, 0.45);
}

/* Product Card Actions Row (Xem chi tiết + Thêm giỏ) */
.card-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.btn-detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 10px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-strong);
  background: #ffffff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
}

.btn-detail-link:hover {
  border-color: var(--rose);
  color: var(--rose);
  background: #fff5f7;
}

.add-cart-btn {
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--rose);
  background: var(--rose-gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 3px 10px var(--rose-glow);
  white-space: nowrap;
}

.add-cart-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(255, 75, 114, 0.4);
}

/* ==========================================================================
   DANH MỤC THEO NHU CẦU DA
   ========================================================================== */
.categories-section {
  padding: 48px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
}

.section-kicker {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rose);
  margin-bottom: 6px;
}

.section-head h2 {
  font-size: clamp(24px, 2.5vw, 32px);
  margin: 0 0 8px;
}

.section-head p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 14px;
}

.cat-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: all 0.22s ease;
}

.cat-item:hover {
  transform: translateY(-4px);
  border-color: var(--rose);
  box-shadow: var(--shadow-md);
}

.cat-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--rose-light);
  color: var(--rose);
  display: grid;
  place-items: center;
  font-size: 22px;
  transition: transform 0.25s ease;
}

.cat-item:hover .cat-icon-circle {
  transform: scale(1.12) rotate(6deg);
  background: var(--rose);
  color: #fff;
}

.cat-item strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.cat-item small {
  font-size: 11px;
  color: var(--muted);
}

/* ==========================================================================
   ROUTINE FINDER THEO LOẠI DA (LAM THẢO SPECIAL FEATURE)
   ========================================================================== */
.routine-section {
  padding: 56px 0;
  background: linear-gradient(180deg, #fff7f9 0%, #fff 100%);
  border-top: 1px solid var(--border);
}

.routine-card {
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  box-shadow: var(--shadow-md);
}

.routine-tabs,
.category-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.routine-tab-btn {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-strong);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s ease;
}

.routine-tab-btn:hover {
  border-color: var(--rose);
  color: var(--rose);
}

.routine-tab-btn.is-active {
  background: var(--rose-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px var(--rose-glow);
}

.routine-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 28px;
}

.routine-step-card {
  background: var(--rose-light);
  border: 1px solid rgba(255, 75, 114, 0.18);
  border-radius: var(--radius-md);
  padding: 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--rose);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.routine-step-card h4 {
  font-size: 16px;
  margin: 4px 0 0;
  color: var(--ink);
}

.routine-step-card p {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
}

.routine-step-card strong {
  color: var(--rose-deep);
  font-size: 15px;
  margin-top: auto;
  padding-top: 8px;
}

.routine-combo-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: #fdf5f7;
  border: 1px dashed var(--rose);
  border-radius: var(--radius-md);
  padding: 18px 24px;
}

.combo-price-info strong {
  font-size: 18px;
  color: var(--rose-deep);
}

.combo-price-info span {
  font-size: 13px;
  color: var(--muted);
  margin-left: 8px;
}

/* ==========================================================================
   BRANDS SHOWCASE (TOP THƯƠNG HIỆU CHÍNH HÃNG)
   ========================================================================== */
.brands-section {
  padding: 48px 0;
}

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

.brand-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.brand-card:hover {
  transform: translateY(-3px);
  border-color: var(--rose);
}

.brand-card b {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.brand-card small {
  font-size: 11.5px;
  color: var(--muted);
}

/* ==========================================================================
   BEAUTY EDITORIAL & COMMUNITY REVIEWS
   ========================================================================== */
.reviews-section {
  padding: 56px 0;
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.review-card {
  background: #faf8f8;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--rose-soft);
  color: var(--rose);
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 16px;
}

.review-card-head strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
}

.review-card-head span {
  font-size: 11.5px;
  color: var(--muted);
}

.review-stars {
  color: var(--amber);
  font-size: 13px;
}

.review-quote {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}

.review-badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  color: var(--mint);
  background: var(--mint-soft);
  padding: 3px 8px;
  border-radius: 4px;
}

/* ==========================================================================
   MAGAZINE & BEAUTY TIPS
   ========================================================================== */
.magazine-section {
  padding: 52px 0;
}

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

.magazine-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease;
}

.magazine-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.magazine-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.magazine-meta {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.magazine-tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--rose);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.magazine-meta h3 {
  font-size: 16px;
  line-height: 1.35;
  margin: 0;
}

.magazine-meta p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   STORE SYSTEM & POLICIES
   ========================================================================== */
.stores-section {
  padding: 48px 0;
  background: linear-gradient(180deg, #fff 0%, #fff7f9 100%);
  border-top: 1px solid var(--border);
}

.stores-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.store-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.store-card h3 {
  font-size: 15px;
  color: var(--rose-deep);
  margin: 0;
}

.store-card p {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}

/* ==========================================================================
   FOOTER (100% White & Soft Pink Luxury Aesthetic — Lam Thảo Style)
   ========================================================================== */
footer,
.site-footer {
  background: #fff8fa;
  color: #374151;
  border-top: 2px solid #ffd8e2;
  padding: 56px 0 28px;
  font-size: 13.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr 1.15fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-brand .brand-logo-img {
  height: 44px;
  width: auto;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 14px;
}

.footer-brand p {
  color: #64748b;
  margin: 12px 0 16px;
  line-height: 1.65;
  font-size: 13px;
}

.footer-contacts p {
  margin: 6px 0;
  font-size: 13px;
  color: #475569;
}

.footer-contacts a {
  color: var(--rose);
  text-decoration: none;
  font-weight: 600;
}

.footer-contacts a:hover {
  text-decoration: underline;
}

.footer-col h3,
.footer-col h4 {
  color: var(--rose-deep);
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #4b5563;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.16s ease;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--rose);
  transform: translateX(4px);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-form p {
  color: #64748b;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.newsletter-input-group {
  display: flex;
  gap: 8px;
}

.newsletter-input-group input {
  flex: 1;
  background: #ffffff;
  border: 1px solid #ffd0db;
  border-radius: var(--radius-full);
  padding: 10px 16px;
  color: #1e293b;
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
}

.newsletter-input-group input:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(255, 75, 114, 0.12);
}

.newsletter-input-group button {
  background: var(--rose-gradient);
  color: #fff;
  border: 0;
  border-radius: var(--radius-full);
  padding: 0 20px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 75, 114, 0.24);
  transition: opacity 0.2s ease;
}

.newsletter-input-group button:hover {
  opacity: 0.92;
}

.footer-bottom {
  border-top: 1px solid #ffdce5;
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  color: #64748b;
  font-size: 12.5px;
}

/* ==========================================================================
   POPUP SIÊU ĐẸP (EXCLUSIVE FLASH VOUCHER POPUP)
   ========================================================================== */
.beauty-popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 17, 23, 0.65);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.beauty-popup-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.beauty-popup {
  background: #fff;
  width: min(520px, 100%);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-floating);
  border: 2px solid var(--rose-soft);
  transform: scale(0.92) translateY(14px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.beauty-popup-backdrop.is-open .beauty-popup {
  transform: scale(1) translateY(0);
}

.popup-banner {
  background: linear-gradient(135deg, #ff4b72 0%, #ff6b8b 50%, #f02d5e 100%);
  color: #fff;
  padding: 30px 28px 24px;
  text-align: center;
  position: relative;
}

.popup-sparkle {
  font-size: 32px;
  display: block;
  margin-bottom: 6px;
  animation: sparkleRotate 3s infinite linear;
}

@keyframes sparkleRotate {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(18deg) scale(1.1); }
  100% { transform: rotate(0deg); }
}

.popup-banner h3 {
  color: #fff;
  font-size: 22px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.popup-banner p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-size: 13.5px;
}

.popup-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 0;
  color: #fff;
  font-size: 18px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.popup-close-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}

.popup-body {
  padding: 26px 28px 28px;
  text-align: center;
}

.coupon-box {
  background: var(--rose-light);
  border: 2px dashed var(--rose);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.coupon-code-wrap {
  text-align: left;
}

.coupon-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
}

.coupon-code {
  font-size: 20px;
  font-weight: 800;
  color: var(--rose-deep);
  letter-spacing: 0.08em;
}

.copy-coupon-btn {
  background: var(--rose-gradient);
  color: #fff;
  border: 0;
  border-radius: var(--radius-full);
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease;
  white-space: nowrap;
}

.copy-coupon-btn:hover {
  transform: scale(1.05);
}

.popup-timer {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}

.popup-timer strong {
  color: var(--rose);
}

.popup-claim-form {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.popup-claim-form input {
  flex: 1;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-full);
  padding: 11px 18px;
  font-size: 13.5px;
  outline: none;
}

.popup-claim-form input:focus {
  border-color: var(--rose);
}

.popup-claim-btn {
  background: var(--dark-bg);
  color: #fff;
  border: 0;
  border-radius: var(--radius-full);
  padding: 0 22px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.popup-claim-btn:hover {
  background: var(--rose);
}

.popup-skip-link {
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
}

.popup-skip-link:hover {
  color: var(--ink);
}

/* Floating Voucher Pill (Opens popup) */
.floating-voucher-pill {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 990;
  background: var(--rose-gradient);
  color: #fff;
  border: 2px solid #fff;
  border-radius: var(--radius-full);
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: var(--shadow-floating);
  cursor: pointer;
  transition: transform 0.2s ease;
  animation: bounceGlow 3s infinite;
}

.floating-voucher-pill:hover {
  transform: scale(1.06);
}

@keyframes bounceGlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ==========================================================================
   CART DRAWER & FLOATING CHAT
   ========================================================================== */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: min(400px, 100%);
  height: 100%;
  background: #fff;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.16);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.is-open {
  right: 0;
}

.drawer-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-head h2 {
  font-size: 18px;
  margin: 0;
}

.drawer-close-btn {
  background: transparent;
  border: 0;
  font-size: 24px;
  cursor: pointer;
  color: var(--muted);
}

.cart-freeship-bar {
  background: var(--rose-light);
  padding: 10px 20px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--rose-deep);
  border-bottom: 1px solid var(--border);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  background: #fbf8f8;
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cart-item-info h4 {
  font-size: 13.5px;
  margin: 0;
  line-height: 1.3;
}

.cart-item-info span {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--rose-deep);
}

.cart-item-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 12px;
}

.cart-item-qty button {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
  background: #fff;
  cursor: pointer;
}

.cart-foot {
  padding: 20px 22px;
  border-top: 1px solid var(--border);
  background: #faf8f8;
}

.cart-foot-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  margin-bottom: 14px;
}

.cart-foot-total b {
  font-size: 20px;
  color: var(--rose-deep);
}

.cart-empty {
  padding: 44px 20px;
  text-align: center;
  color: var(--muted);
}

.cart-empty span {
  font-size: 40px;
  display: block;
  margin-bottom: 8px;
}

/* Chat Widget */
#site-chat {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 990;
}

.chat-panel {
  position: absolute;
  bottom: 64px;
  right: 0;
  width: 280px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  font-size: 13.5px;
}

.chat-toggle {
  background: var(--dark-bg);
  color: #fff;
  border: 2px solid #fff;
  border-radius: var(--radius-full);
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.chat-toggle:hover {
  background: var(--rose);
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(30, 32, 41, 0.95);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  z-index: 2100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-lg);
}

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

/* ==========================================================================
   PRODUCT DETAIL PAGE SPECIFICS
   ========================================================================== */
.breadcrumbs {
  padding: 16px 0;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--ink-soft);
}

.breadcrumbs a:hover {
  color: var(--rose);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  margin-bottom: 56px;
  align-items: start;
}

.detail-gallery {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 1 / 1;
}

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

.gallery-thumbs {
  display: flex;
  gap: 10px;
}

.gallery-thumb-btn {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s ease;
}

.gallery-thumb-btn.is-active,
.gallery-thumb-btn:hover {
  border-color: var(--rose);
}

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

.detail-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-brand-badge {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rose);
}

.detail-info h1 {
  font-size: clamp(24px, 2.8vw, 34px);
  margin: 0;
  line-height: 1.25;
}

.detail-rating-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--muted);
}

.detail-rating-row b {
  color: var(--amber);
}

.detail-price-card {
  background: var(--rose-light);
  border: 1px solid rgba(255, 75, 114, 0.2);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.detail-current-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--rose-deep);
}

.detail-old-price {
  font-size: 16px;
  color: var(--muted);
  text-decoration: line-through;
}

.detail-discount-pill {
  background: var(--rose);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}

.detail-specs-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-variant-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-variant-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

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

.variant-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-strong);
  background: #fff;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.variant-btn.is-active,
.variant-btn:hover {
  border-color: var(--rose);
  color: var(--rose);
  background: var(--rose-light);
}

.detail-buy-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.qty-counter {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-full);
  background: #fff;
  overflow: hidden;
}

.qty-counter button {
  width: 38px;
  height: 42px;
  background: transparent;
  border: 0;
  font-size: 16px;
  cursor: pointer;
}

.qty-counter span {
  width: 32px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
}

.detail-buy-row .btn {
  flex: 1;
  padding: 13px 24px;
}

.detail-wish-btn {
  position: static !important;
  flex-shrink: 0 !important;
}

.trust-badges-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-top: 10px;
}

.trust-badge-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 600;
}

.product-tabs-section {
  padding: 32px 0 56px;
  border-top: 1px solid var(--border);
}

.product-tabs-nav {
  display: flex;
  gap: 12px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.product-tab-btn {
  padding: 12px 22px;
  background: transparent;
  border: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.product-tab-btn.is-active {
  color: var(--rose);
}

.product-tab-btn.is-active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--rose);
}

.product-tab-panel {
  display: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  line-height: 1.7;
}

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

/* ==========================================================================
   FAST CHECKOUT ORDER MODAL (Workspace & CRM Order Capture)
   ========================================================================== */
.checkout-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  z-index: 1500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.checkout-modal-backdrop.is-open {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.checkout-modal,
.checkout-modal-dialog {
  background: #ffffff;
  border-radius: 20px;
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  position: relative;
  border: 1px solid var(--border);
}

.checkout-head,
.checkout-modal-head {
  padding: 18px 24px;
  background: linear-gradient(135deg, #fff0f3, #ffe6eb);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkout-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--rose-deep);
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkout-close-btn {
  background: #ffffff;
  border: 1px solid var(--border);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: all 0.18s ease;
}

.checkout-close-btn:hover {
  color: var(--rose);
  border-color: var(--rose);
}

.checkout-body {
  padding: 24px;
}

.checkout-order-summary {
  background: #fbf7f8;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.checkout-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.checkout-summary-row.total-row {
  font-size: 16px;
  font-weight: 800;
  color: var(--rose-deep);
  border-top: 1px dashed var(--border);
  padding-top: 8px;
  margin-top: 8px;
  margin-bottom: 0;
}

.checkout-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkout-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.checkout-form-group.col-span-2 {
  grid-column: span 2;
}

.checkout-form-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.checkout-form-group input,
.checkout-form-group select,
.checkout-form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.checkout-form-group input:focus,
.checkout-form-group select:focus,
.checkout-form-group textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px var(--rose-glow);
}

.payment-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.payment-card-label {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  transition: all 0.2s ease;
}

.payment-card-label:has(input:checked) {
  border-color: var(--rose);
  background: #fff6f8;
  color: var(--rose-dark);
  font-weight: 700;
}

.checkout-submit-btn {
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-full);
  background: var(--rose-gradient);
  color: #fff;
  border: 0;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 18px;
  box-shadow: 0 8px 24px var(--rose-glow);
  transition: all 0.2s ease;
}

.checkout-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 75, 114, 0.4);
}

.order-success-screen {
  text-align: center;
  padding: 24px 16px;
  display: none;
}

.order-success-icon {
  width: 64px;
  height: 64px;
  background: #e6f9f0;
  color: var(--mint);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 30px;
  margin: 0 auto 16px;
  border: 2px solid #b7eed3;
}

.order-success-screen .checkout-close-btn {
  background: var(--rose-gradient) !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 12px 32px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: inline-block !important;
  box-shadow: 0 4px 14px rgba(255, 75, 114, 0.3) !important;
  transition: transform 0.18s ease, opacity 0.18s ease !important;
}

.order-success-screen .checkout-close-btn:hover {
  opacity: 0.92 !important;
  transform: translateY(-2px) !important;
}

/* ==========================================================================
   CONTACT PAGE STYLING (contact.html)
   ========================================================================== */
.contact-hero {
  padding: 44px 0 32px;
  background: linear-gradient(180deg, #fff 0%, #fff7f9 100%);
  text-align: center;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 14px;
}

.breadcrumb-nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.breadcrumb-nav a:hover {
  color: var(--rose);
}

.contact-hero h1 {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--ink);
}

.contact-hero h1 em {
  font-family: var(--font-title);
  font-style: italic;
  background: var(--rose-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-hero p {
  font-size: 15.5px;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 auto;
  line-height: 1.6;
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 28px 0 44px;
}

.contact-info-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: all 0.22s ease;
  position: relative;
  overflow: hidden;
}

.contact-info-card:hover {
  transform: translateY(-4px);
  border-color: var(--rose);
  box-shadow: var(--shadow-md);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fff0f3;
  color: var(--rose);
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 16px;
  border: 1px solid #fedde4;
}

.contact-info-card h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--ink);
}

.contact-info-card p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 14px;
}

.contact-card-link {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--rose-deep);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.contact-card-link:hover {
  text-decoration: underline;
}

/* Contact Main Section (Form & Map) */
.contact-main-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 32px;
  margin-bottom: 60px;
}

.contact-form-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.contact-form-card h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--ink);
}

.contact-form-card p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 24px;
}

.contact-form-card .form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.contact-form-card .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.contact-form-card label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}

.contact-form-card input,
.contact-form-card select,
.contact-form-card textarea {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
  background: #fff;
}

.contact-form-card input:focus,
.contact-form-card select:focus,
.contact-form-card textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px var(--rose-glow);
}

.contact-submit-btn {
  width: 100%;
  padding: 13px 24px;
  border-radius: var(--radius-full);
  background: var(--rose-gradient);
  color: #fff;
  border: 0;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 20px var(--rose-glow);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.contact-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 75, 114, 0.4);
}

.contact-side-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.map-card-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.map-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: #fff9fa;
}

.map-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.map-iframe-wrap {
  width: 100%;
  height: 280px;
  background: #f0e6e8;
  position: relative;
}

.map-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* FAQ Accordion */
.faq-section {
  padding: 44px 0;
  background: #fff7f9;
  border-top: 1px solid var(--border);
}

.faq-list {
  max-width: 800px;
  margin: 28px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-question {
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: 0;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-answer {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  display: none;
}

.faq-item.is-open .faq-answer {
  display: block;
}

.faq-item.is-open .faq-question {
  color: var(--rose-deep);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET EXCELLENCE)
   ========================================================================== */
@media (max-width: 1024px) {
  .cat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .brands-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .mega-menu-dropdown {
    width: 680px;
  }
}

@media (max-width: 768px) {
  .wrap {
    padding: 0 12px;
  }

  /* Sleek single-row announcement banner on mobile */
  .announcement {
    font-size: 11px;
    padding: 7px 12px;
    gap: 14px;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
  }

  .announcement::-webkit-scrollbar {
    display: none;
  }

  .announcement span:nth-child(n+3) {
    display: none; /* Hide phone & address on mobile header to save space */
  }

  .header-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 0;
  }

  .header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 55%;
  }

  .brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 0;
  }

  .brand-logo-img {
    height: 32px;
    max-width: 130px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
  }

  .brand-text b,
  .brand b {
    font-size: 15px;
  }

  .brand-text small,
  .brand small {
    font-size: 8px;
  }

  .mobile-menu-toggle,
  .hamburger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0;
    border-radius: 8px;
    background: #fff0f3;
    color: var(--rose-deep);
    border: 1px solid #ffd3de;
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: auto;
  }

  .store-pill,
  .store-btn {
    display: none !important;
  }

  /* User Auth button on mobile: compact 36px round button with green online dot when logged in */
  .auth-user-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    background: #fff0f3 !important;
    border: 1px solid #ffd3de !important;
    position: relative !important;
  }

  .auth-user-btn .auth-btn-label,
  .auth-user-btn .auth-chevron {
    display: none !important; /* Never push or wrap on mobile header */
  }

  .auth-user-btn .auth-avatar-pill {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .auth-user-btn.is-logged-in {
    border-color: var(--rose) !important;
    background: #ffe8ee !important;
  }

  .auth-user-btn.is-logged-in::after {
    content: "";
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    border: 1.5px solid #fff;
  }

  /* Notification Bell on mobile */
  .notif-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
  }

  .notif-dropdown {
    position: fixed;
    top: 68px;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: 380px;
    margin: 0 auto;
    z-index: 1500;
  }

  .profile-quick-dropdown {
    position: fixed;
    top: 68px;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: 320px;
    margin: 0 auto;
    z-index: 1500;
  }

  /* Wishlist button on mobile */
  .wish-header-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: #fff0f3;
    color: var(--rose-deep);
    border: 1px solid #ffd3de;
    flex-shrink: 0;
    position: relative;
  }

  .wish-header-btn span:first-child {
    font-size: 16px;
    line-height: 1;
  }

  .wish-header-btn .badge-count {
    top: -2px;
    right: -2px;
    width: 17px;
    height: 17px;
    font-size: 9.5px;
  }

  /* Cart button on mobile */
  .cart-btn-primary {
    height: 36px;
    padding: 0 12px;
    font-size: 12px;
    gap: 5px;
    border-radius: 999px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .cart-btn-primary .badge-count {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }

  .main-nav-bar {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid var(--rose);
    padding: 10px 0;
  }

  .main-nav-bar.is-open {
    display: block;
  }

  .main-nav {
    flex-direction: column;
    align-items: stretch;
    padding: 6px 16px;
    gap: 2px;
  }

  .main-nav a,
  .main-nav .nav-item-btn {
    padding: 10px 14px;
    color: var(--ink);
  }

  .main-nav a:hover,
  .main-nav .nav-item-btn:hover {
    background: #fff0f3;
    color: var(--rose);
  }

  .nav-mega-btn {
    background: #ffeef2 !important;
    color: var(--rose-dark) !important;
  }

  .mega-menu-dropdown {
    position: static;
    width: 100%;
    box-shadow: none;
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0;
    grid-template-columns: 1fr;
  }

  .mega-subcategories-panel {
    grid-template-columns: 1fr;
    padding: 14px 16px;
  }

  /* Search full row under top items */
  .search-bar-wrap {
    display: block !important;
    width: 100%;
    order: 3;
    max-width: 100%;
    margin-top: 2px;
  }

  .search-form {
    padding: 3px 4px 3px 14px;
    height: 38px;
    background: #fff;
    border: 1.5px solid var(--border-strong);
    border-radius: 999px;
  }

  .search-form input {
    font-size: 12.5px;
  }

  .search-submit-btn {
    padding: 0 14px;
    height: 30px;
    font-size: 12px;
    border-radius: 999px;
  }

  .search-keywords {
    display: none !important;
  }

  .hero-slide.is-active {
    grid-template-columns: 1fr;
  }

  /* Hide hero arrow controls on mobile so they don't cover text/buttons */
  .hero-ctrl {
    display: none !important;
  }

  .hero-copy {
    padding: 20px 14px 22px;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 21px;
    line-height: 1.3;
    margin-bottom: 8px;
  }

  .hero-desc {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 14px;
  }

  .hero-btn {
    width: 100%;
    justify-content: center;
    padding: 11px 16px;
    font-size: 13px;
  }

  .hero-dots {
    bottom: 8px;
  }

  .hero-visual {
    height: 220px;
  }

  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .trust-item {
    padding: 10px 12px;
  }

  /* Category tabs on mobile - horizontal scrollable strip */
  .category-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 4px 0 10px;
    gap: 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .category-tabs::-webkit-scrollbar {
    display: none;
  }

  .category-tabs .routine-tab-btn {
    white-space: nowrap;
    padding: 7px 14px;
    font-size: 12px;
    flex-shrink: 0;
  }

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

  .product-meta {
    padding: 10px 10px 12px;
    gap: 4px;
  }

  .product-brand {
    font-size: 10px;
  }

  .product-title {
    font-size: 12.5px;
    min-height: 34px;
    line-height: 1.35;
  }

  .product-price {
    font-size: 14.5px;
  }

  .product-origin-price {
    font-size: 11px;
  }

  /* Action buttons row on mobile */
  .card-actions-row {
    grid-template-columns: 1fr;
    gap: 5px;
    margin-top: 8px;
  }

  .btn-detail-link,
  .product-card .add-cart-btn {
    padding: 7px 6px;
    font-size: 11px;
    min-height: 32px;
  }

  .cat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .routine-steps-grid,
  .reviews-grid,
  .magazine-grid,
  .stores-grid,
  .contact-cards-grid,
  .contact-main-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-form-card .form-row-2,
  .checkout-form-grid {
    grid-template-columns: 1fr;
  }

  .routine-card {
    padding: 20px 14px;
  }

  .brands-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Floating Voucher & Chat on Mobile: Compact 44px Icon Circles */
  .floating-voucher-pill {
    bottom: 16px;
    left: 12px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    box-shadow: 0 4px 16px rgba(255, 75, 114, 0.4);
    z-index: 990;
  }

  .floating-voucher-pill .floating-btn-label {
    display: none !important;
  }

  .floating-voucher-pill span:first-child {
    font-size: 20px;
    margin: 0;
  }

  #site-chat {
    bottom: 16px;
    right: 12px;
    z-index: 990;
  }

  .chat-toggle {
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.35);
  }

  .chat-toggle .floating-btn-label {
    display: none !important;
  }

  .chat-toggle span:first-child {
    font-size: 20px;
    margin: 0;
  }
}


/* ==========================================================================
   CUSTOMER AUTH & PROFILE MODAL
   ========================================================================== */
.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  z-index: 1300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.auth-modal-backdrop.is-open {
  display: flex;
  animation: authFadeIn 0.2s ease-out;
}

@keyframes authFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.auth-modal-dialog {
  background: #ffffff;
  border-radius: 22px;
  width: min(480px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  border: 1px solid #ffd8e2;
  position: relative;
}

.auth-modal-head,
.auth-modal-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ffe5ec;
  padding: 16px 52px 16px 20px;
  background: #fffbfc;
  border-radius: 22px 22px 0 0;
  min-height: 60px;
}

.auth-tabs-nav {
  display: flex;
  background: #fff0f3;
  border: 1px solid #ffd3de;
  border-radius: 999px;
  padding: 4px;
  width: 100%;
  max-width: 320px;
  gap: 4px;
}

.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: 0;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap !important;
  text-align: center;
  line-height: 1.2;
}

.auth-tab-btn.is-active {
  background: var(--rose-gradient);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(255, 75, 114, 0.26);
}

.auth-tab-btn:hover:not(.is-active) {
  color: var(--rose-deep);
}

.auth-modal-profile-head {
  text-align: center;
  width: 100%;
}

.auth-modal-title {
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.auth-modal-title b {
  color: var(--rose-deep);
}

.auth-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  padding: 0;
  z-index: 10;
}

.auth-close-btn:hover {
  background: #ffeef2;
  border-color: #ffd0dc;
  color: var(--rose);
}

.auth-modal-body {
  padding: 24px;
}

.auth-welcome-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff8fa;
  border: 1px solid #ffe0e8;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
}

.auth-welcome-icon {
  font-size: 24px;
}

.auth-welcome-banner h4 {
  font-size: 15px;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 2px;
}

.auth-welcome-banner p {
  font-size: 12.5px;
  color: #64748b;
  margin: 0;
}

.auth-field-group {
  margin-bottom: 14px;
}

.auth-field-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.auth-field-group input,
.auth-field-group select,
.auth-field-group textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  transition: all 0.18s ease;
  background: #fbfcfe;
}

.auth-field-group input:focus,
.auth-field-group select:focus,
.auth-field-group textarea:focus {
  border-color: var(--rose);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 75, 114, 0.12);
}

.auth-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-form-grid .col-span-2 {
  grid-column: span 2;
}

.auth-remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  margin: 14px 0 18px;
}

.remember-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  cursor: pointer;
}

.forgot-pass-link {
  color: var(--rose);
  text-decoration: none;
  font-weight: 600;
}

.forgot-pass-link:hover {
  text-decoration: underline;
}

.auth-btn-full {
  width: 100%;
  padding: 12px;
  font-size: 14.5px;
  font-weight: 800;
  border-radius: 10px;
}

.auth-switch-prompt {
  text-align: center;
  font-size: 13px;
  color: #64748b;
  margin-top: 16px;
}

.auth-switch-link {
  background: transparent;
  border: 0;
  color: var(--rose);
  font-weight: 700;
  cursor: pointer;
  padding: 0 4px;
  text-decoration: underline;
}

/* Customer Profile & Orders inside Auth Modal */
.profile-card {
  background: #fffafc;
  border: 1px solid #ffd8e2;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 20px;
}

.profile-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #ffd4e0;
}

.profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff4d79, #e11d48);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 10px rgba(225, 29, 72, 0.25);
}

.profile-name-display {
  font-size: 17px;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 4px;
}

.profile-badges-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge-tier {
  background: #fef3c7;
  color: #92400e;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #fde68a;
}

.badge-points {
  background: #fff0f3;
  color: var(--rose-deep);
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #ffd0dc;
}

.profile-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 13px;
}

.profile-details-grid .col-span-2 {
  grid-column: span 2;
}

.profile-details-grid small {
  color: #64748b;
  font-weight: 600;
  display: block;
  font-size: 11.5px;
}

.profile-details-grid p {
  margin: 2px 0 0;
  font-weight: 600;
  color: #1e293b;
}

.orders-history-box {
  margin-bottom: 20px;
}

.orders-history-title {
  font-size: 14px;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 10px;
}

.order-history-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.order-history-item:hover {
  border-color: #ffd0dc;
}

.order-history-info b {
  color: var(--rose);
}

.order-history-status {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: #ecfdf5;
  color: #065f46;
}

.profile-actions-row {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .auth-modal-dialog {
    border-radius: 18px;
    margin: 8px;
    max-height: 92vh;
  }
  .auth-modal-head {
    padding: 12px 46px 12px 14px;
    min-height: 54px;
  }
  .auth-tabs-nav {
    max-width: 100%;
    gap: 3px;
    padding: 3px;
  }
  .auth-tab-btn {
    font-size: 12px;
    padding: 7px 10px;
    white-space: nowrap !important;
  }
  .auth-close-btn {
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
  .auth-modal-body {
    padding: 16px 14px;
  }
  .auth-form-grid {
    grid-template-columns: 1fr;
  }
  .auth-form-grid .col-span-2 {
    grid-column: span 1;
  }
  .profile-details-grid {
    grid-template-columns: 1fr;
  }
  .profile-details-grid .col-span-2 {
    grid-column: span 1;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .nav-dropdown-menu {
    position: static;
    min-width: 100%;
    box-shadow: none;
    border-radius: 8px;
    background: #fff8fa;
    border: 1px solid #ffd0dc;
  }
}

/* ==========================================================================
   MULTIPAGE SUB-PAGES (ABOUT, BLOG, POLICY)
   ========================================================================== */
.page-hero {
  background: linear-gradient(180deg, #fff4f7 0%, #ffffff 100%);
  padding: 48px 0 36px;
  border-bottom: 1px solid #ffd8e2;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 700;
  color: var(--ink);
  margin: 12px 0 10px;
}

.page-hero h1 em {
  color: var(--rose);
  font-style: italic;
}

.page-hero p {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

.subpage-container {
  padding: 50px 0 70px;
}

/* About Page Sections */
.about-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.about-section-grid.is-reversed {
  direction: rtl;
}

.about-section-grid.is-reversed > * {
  direction: ltr;
}

.about-text-col h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--ink);
  margin: 0 0 16px;
  line-height: 1.3;
}

.about-text-col h2 span {
  color: var(--rose);
}

.about-text-col p {
  font-size: 14.5px;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 16px;
}

.about-image-card {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  border: 3px solid #fff;
}

.about-image-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.pillar-feature-card {
  background: #ffffff;
  border: 1px solid #ffd8e2;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(255, 75, 114, 0.06);
  transition: transform 0.2s ease;
}

.pillar-feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--rose);
}

/* Policy Page Layout */
.policy-main-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: start;
}

.policy-nav-card {
  background: #ffffff;
  border: 1px solid #ffd8e2;
  border-radius: 16px;
  padding: 16px;
  position: sticky;
  top: 90px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.policy-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.policy-nav-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #334155;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.16s ease;
}

.policy-nav-list a:hover,
.policy-nav-list a.is-active {
  background: #fff0f3;
  color: var(--rose);
}

.policy-block-card {
  background: #ffffff;
  border: 1px solid #ffd8e2;
  border-radius: 18px;
  padding: 32px;
  margin-bottom: 28px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.policy-block-card h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--rose-deep);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.policy-block-card p {
  font-size: 14px;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 14px;
}

.policy-points-list {
  margin: 16px 0;
  padding-left: 20px;
  color: #334155;
  font-size: 14px;
  line-height: 1.8;
}

.policy-points-list li {
  margin-bottom: 8px;
}

/* Blog Magazine Grid */
.blog-feed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 36px;
}

.blog-item-card {
  background: #ffffff;
  border: 1px solid #ffd8e2;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
}

.blog-item-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(255, 75, 114, 0.12);
  border-color: var(--rose);
}

.blog-thumb-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.blog-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.blog-item-card:hover .blog-thumb-wrap img {
  transform: scale(1.05);
}

.blog-item-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(4px);
  color: var(--rose);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}

.blog-item-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-item-date {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 6px;
}

.blog-item-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 10px;
  line-height: 1.4;
}

.blog-item-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
  margin: 0 0 16px;
  flex: 1;
}

.blog-read-more {
  color: var(--rose);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.blog-read-more:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .about-section-grid,
  .policy-main-grid,
  .blog-feed-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .about-section-grid.is-reversed {
    direction: ltr;
  }

  .about-image-card,
  .about-text-col {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .about-image-card img {
    max-width: 100%;
    height: 260px;
  }
}


/* ==========================================================================
   ADVANCED VOUCHER ENGINE, WISHLIST DRAWER, SHOPEE-TIER PROFILE & DRIVER TRACKING
   ========================================================================== */

/* 1. Cart & Checkout Coupon System */
.cart-coupon-box {
  padding: 12px 18px;
  background: #fff8fa;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.coupon-input-wrap {
  display: flex;
  gap: 8px;
}

.coupon-input {
  flex: 1;
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 12.5px;
  outline: none;
  text-transform: uppercase;
  background: #fff;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #1e293b;
}

.coupon-input:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 2px rgba(255, 75, 114, 0.12);
}

.coupon-apply-btn {
  background: var(--rose-gradient);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}

.coupon-apply-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.applied-coupon-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ecfdf5;
  border: 1px dashed #10b981;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  color: #065f46;
  margin-top: 8px;
}

.applied-coupon-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.coupon-remove-btn {
  background: transparent;
  border: 0;
  color: #94a3b8;
  font-size: 14px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.coupon-remove-btn:hover {
  color: #ef4444;
  background: #fee2e2;
}

.cart-foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  margin-bottom: 6px;
  color: var(--ink-soft);
}

.cart-foot-row.discount-row {
  color: var(--rose);
  font-weight: 700;
}

/* 2. Wishlist Drawer */
.wishlist-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: min(400px, 100%);
  height: 100%;
  background: #fff;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.16);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.wishlist-drawer.is-open {
  right: 0;
}

.wishlist-items-container {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wishlist-item {
  display: flex;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  position: relative;
  align-items: center;
}

.wishlist-thumb-link {
  display: block;
  flex-shrink: 0;
}

.wishlist-thumb-link:hover .wishlist-item-img {
  opacity: 0.9;
  transform: scale(1.04);
}

.wishlist-title-link {
  color: var(--ink);
  transition: color 0.15s ease;
}

.wishlist-title-link:hover {
  color: var(--rose);
}

.wishlist-item-img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  background: #fbf8f8;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.wishlist-item-info {
  flex: 1;
}

.wishlist-item-info h4 {
  font-size: 13px;
  margin: 0 0 4px;
  line-height: 1.3;
}

.wishlist-item-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--rose-deep);
}

.wishlist-item-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.wishlist-add-cart-btn {
  background: var(--rose-light);
  color: var(--rose-deep);
  border: 1px solid #ffd0dc;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.wishlist-add-cart-btn:hover {
  background: var(--rose);
  color: #fff;
}

.wishlist-del-btn {
  background: transparent;
  border: 0;
  color: #94a3b8;
  font-size: 14px;
  cursor: pointer;
}

.wishlist-del-btn:hover {
  color: #ef4444;
}

.wishlist-empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
}

.wishlist-empty span {
  font-size: 44px;
  display: block;
  margin-bottom: 10px;
  color: var(--rose);
  opacity: 0.7;
}

/* 3. Shopee-Tier Profile Sub-tabs, Form, and Order Management */
.profile-subnav {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid #f1f5f9;
  margin-bottom: 16px;
}

.profile-subnav-btn {
  background: transparent;
  border: 0;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.profile-subnav-btn.is-active {
  color: var(--rose);
}

.profile-subnav-btn.is-active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--rose-gradient);
  border-radius: 2px;
}

.profile-edit-toggle-btn {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.profile-edit-toggle-btn:hover {
  border-color: var(--rose);
  color: var(--rose);
}

.order-status-filter-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 14px;
  scrollbar-width: none;
}

.order-status-filter-bar::-webkit-scrollbar {
  display: none;
}

.order-status-pill {
  white-space: nowrap;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.order-status-pill.is-active {
  background: #fff0f3;
  border-color: #ffd0dc;
  color: var(--rose-deep);
}

.shopee-order-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.shopee-order-card:hover {
  border-color: #ffd0dc;
  box-shadow: 0 4px 14px rgba(255, 75, 114, 0.08);
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 12.5px;
}

.order-card-status-badge {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.status-badge-shipping {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.status-badge-pending {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.status-badge-delivered {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.status-badge-cancelled {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.order-card-products {
  padding: 10px 0;
}

.order-product-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}

.order-product-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  background: #f8fafc;
}

.order-product-meta {
  flex: 1;
}

.order-product-name {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.order-product-sub {
  font-size: 11.5px;
  color: #64748b;
}

.order-product-price {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

.order-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
  gap: 10px;
}

.order-total-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--rose-deep);
}

.order-action-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.order-btn-sm {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  transition: all 0.15s ease;
}

.order-btn-sm:hover {
  border-color: var(--rose);
  color: var(--rose);
}

.order-btn-sm.btn-track {
  background: #008f8a;
  color: #fff;
  border-color: #008f8a;
}

.order-btn-sm.btn-track:hover {
  background: #0da487;
}

.order-btn-sm.btn-rebuy {
  background: var(--rose-gradient);
  color: #fff;
  border: 0;
}

/* 4. Live Driver Tracking Modal */
.driver-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1700;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.driver-modal-backdrop.is-open {
  display: flex;
}

.driver-modal-dialog {
  background: #fff;
  border-radius: 18px;
  width: min(540px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
  animation: popIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.driver-modal-head {
  background: linear-gradient(135deg, #0da487, #008f8a);
  color: #fff;
  padding: 16px 20px;
  border-radius: 18px 18px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.driver-modal-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.driver-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 0;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.driver-modal-body {
  padding: 20px;
}

.driver-eta-banner {
  background: #e6fffa;
  border: 1px solid #b2f5ea;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.driver-eta-text b {
  color: #0d9488;
  font-size: 16px;
}

.driver-profile-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.driver-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.driver-avatar-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #0da487;
  display: block;
}

.driver-badge-live {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: #10b981;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  animation: pulseDot 1.5s infinite;
}

.driver-details-wrap {
  flex: 1;
}

.driver-name {
  font-size: 15px;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 2px;
}

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

.driver-call-btn {
  background: #10b981;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.delivery-stepped-timeline {
  position: relative;
  padding-left: 28px;
  margin-bottom: 16px;
}

.delivery-stepped-timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: #cbd5e1;
}

.timeline-step {
  position: relative;
  margin-bottom: 16px;
  font-size: 13px;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.timeline-step::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #94a3b8;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #cbd5e1;
}

.timeline-step.is-done::before {
  background: #10b981;
  box-shadow: 0 0 0 2px #a7f3d0;
}

.timeline-step.is-active::before {
  background: #0da487;
  box-shadow: 0 0 0 3px rgba(13, 164, 135, 0.3);
  animation: pulseDot 1.5s infinite;
}

.timeline-step-time {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
}

.timeline-step-title {
  font-weight: 700;
  color: #1e293b;
}

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

.driver-radar-box {
  background: #0f172a;
  border-radius: 12px;
  padding: 16px;
  color: #fff;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.radar-pulse-ring {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid rgba(13, 164, 135, 0.6);
  margin: 0 auto 10px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: radarSweep 3s infinite linear;
}

@keyframes radarSweep {
  0% { transform: scale(0.8); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 0.4; }
  100% { transform: scale(0.8); opacity: 0.8; }
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ==========================================================================
   BACK TO TOP FLOATING BUTTON
   ========================================================================== */
.back-to-top-btn {
  position: fixed;
  bottom: 84px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #ffd0dc;
  color: #ff4b72;
  box-shadow: 0 6px 20px rgba(255, 75, 114, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.back-to-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background: #ff4b72;
  color: #ffffff;
  border-color: #ff4b72;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(255, 75, 114, 0.35);
}

@media (max-width: 768px) {
  .back-to-top-btn {
    bottom: 74px;
    right: 14px;
    width: 40px;
    height: 40px;
  }
}

/* ==========================================================================
   WELCOME GREETING TOAST / FLOATING WELCOME POPUP
   ========================================================================== */
.user-welcome-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: 380px;
  width: calc(100% - 48px);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border: 1.5px solid #ffd0dc;
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 16px 40px rgba(255, 75, 114, 0.18), 0 2px 8px rgba(0, 0, 0, 0.04);
  z-index: 1200;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  animation: slideUpToast 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpToast {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.welcome-toast-glow {
  position: absolute;
  inset: -1px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 75, 114, 0.15), rgba(255, 182, 193, 0.05));
  pointer-events: none;
}

.welcome-toast-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff0f3;
  border: 1px solid #ffd3de;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.welcome-toast-body {
  flex: 1;
  min-width: 0;
}

.welcome-toast-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.35;
}

.welcome-toast-desc {
  font-size: 12px;
  color: #64748b;
  margin: 3px 0 10px;
  line-height: 1.4;
}

.welcome-toast-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.welcome-track-btn {
  background: #0da487;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.welcome-track-btn:hover {
  background: #0b8e74;
}

.welcome-dismiss-btn {
  background: #f1f5f9;
  color: #64748b;
  border: 0;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.welcome-dismiss-btn:hover {
  background: #e2e8f0;
  color: #334155;
}

.welcome-close-btn {
  background: none;
  border: 0;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.welcome-close-btn:hover {
  color: #334155;
}

@media (max-width: 768px) {
  .user-welcome-toast {
    bottom: 80px;
    left: 12px;
    right: 12px;
    max-width: none;
    width: auto;
    padding: 12px 14px;
  }
}

/* =====================================================================
   DEDICATED CUSTOMER PROFILE & DASHBOARD PAGE (account.html)
   ===================================================================== */
.breadcrumbs-container {
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  padding: 12px 0;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  flex-wrap: wrap;
}

.breadcrumb-nav a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s ease;
}

.breadcrumb-nav a:hover {
  color: var(--rose);
}

.breadcrumb-sep {
  color: #cbd5e1;
  font-size: 12px;
  user-select: none;
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 600;
}

/* Role-Aware Luxury Hero Banner */
.profile-hero-banner {
  background: linear-gradient(135deg, #fff0f5 0%, #ffe4ec 45%, #ffd1dc 100%);
  border-bottom: 1px solid #ffd8e2;
  padding: 28px 0 24px;
  position: relative;
  overflow: hidden;
}

.profile-hero-banner::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 77, 121, 0.15), transparent 70%);
  pointer-events: none;
}

.profile-hero-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.hero-role-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hero-role-pill.vip-pill {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.2);
}

.hero-role-pill.affiliate-pill {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
}

.hero-role-pill.seller-pill {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.2);
}

.hero-role-pill.shipper-pill {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.profile-hero-title {
  font-size: 24px;
  font-weight: 800;
  color: #881337;
  margin: 0 0 6px;
  letter-spacing: -0.3px;
}

.profile-hero-subtitle {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
  max-width: 720px;
  line-height: 1.5;
}

.account-page-main {
  background: #fbf9fa;
  padding: 32px 0 70px;
  min-height: 70vh;
}

.account-page-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  min-width: 0;
  max-width: 100%;
}

/* Left Sidebar */
.account-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  max-width: 100%;
}

.account-user-card {
  background: #ffffff;
  border: 1px solid #ffe3ec;
  border-radius: 20px;
  padding: 24px 20px 20px;
  text-align: center;
  box-shadow: 0 6px 22px rgba(255, 77, 121, 0.06);
}

.account-avatar-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 12px;
}

.account-avatar-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff4d79, #e11d48);
  color: #ffffff;
  font-size: 32px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.25);
  border: 4px solid #ffffff;
}

.avatar-camera-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #ffd8e2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: transform 0.15s ease;
}

.avatar-camera-btn:hover {
  transform: scale(1.1);
  background: #fff0f5;
}

.avatar-vip-crown {
  position: absolute;
  top: -8px;
  left: -2px;
  font-size: 22px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.account-user-header-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.account-verified-badge {
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 1px 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
}

.account-member-id {
  font-size: 11.5px;
  color: #64748b;
  margin: 0 0 10px;
}

.account-avatar-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
}

.account-avatar-large {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff4d79, #e11d48);
  color: #ffffff;
  font-size: 28px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.25);
  border: 3px solid #ffffff;
}

.account-avatar-crown {
  position: absolute;
  top: -8px;
  right: -4px;
  font-size: 20px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.account-avatar-med {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff4d79, #e11d48);
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(225, 29, 72, 0.2);
}

.account-user-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 4px;
}

.account-badges-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.account-points-pill {
  background: #fdf2f8;
  color: #9d174d;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid #fbcfe8;
}

.account-tier-progress {
  background: #fffafc;
  border: 1px dashed #ffd8e2;
  border-radius: 12px;
  padding: 12px;
  text-align: left;
}

.tier-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  margin-bottom: 6px;
  color: var(--ink-soft);
}

.tier-progress-track {
  height: 6px;
  background: #ffe3ec;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}

.tier-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #ff4d79, #f43f5e);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.tier-progress-hint {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}

/* Quick Stats Row */
.account-quick-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #ffe8ef;
}

.quick-stat-card {
  background: #fffafc;
  border: 1px solid #ffe4eb;
  border-radius: 12px;
  padding: 10px 4px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--rose);
  box-shadow: 0 4px 12px rgba(255, 77, 121, 0.12);
  background: #fff5f8;
}

.quick-stat-card.highlight {
  background: #fdf4ff;
  border-color: #f0abfc;
}

.quick-stat-card.highlight .stat-value {
  color: #9333ea;
}

.stat-icon {
  font-size: 16px;
  display: block;
  margin-bottom: 2px;
}

.stat-value {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  display: block;
}

.stat-label {
  font-size: 10.5px;
  color: #64748b;
  display: block;
  margin-top: 2px;
}

/* Nav Menu */
.account-nav-list {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.account-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
  text-align: left;
}

.account-nav-item:hover {
  background: #fff5f8;
  color: var(--rose-deep);
}

.account-nav-item.is-active {
  background: #fff0f5;
  color: var(--rose-deep);
  font-weight: 800;
  box-shadow: inset 3px 0 0 var(--rose);
}

.nav-item-icon {
  font-size: 16px;
  width: 20px;
  display: inline-flex;
  justify-content: center;
}

.nav-item-text {
  flex: 1;
}

.account-nav-badge {
  background: #64748b;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}

.account-nav-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 6px 0;
}

.account-nav-item.text-danger {
  color: #ef4444;
}

.account-nav-item.text-danger:hover {
  background: #fef2f2;
  color: #dc2626;
}

/* Sidebar Support Box */
.account-sidebar-support {
  background: #ffffff;
  border: 1px solid #ffe8ef;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 2px 10px rgba(255, 77, 121, 0.04);
}

.support-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--rose-deep);
  margin: 0 0 6px;
}

.support-text {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
  margin: 0 0 12px;
}

.support-contact-item {
  font-size: 12px;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.4;
}

.support-contact-item a {
  color: var(--rose);
  font-weight: 700;
}

/* Right Content */
.account-content {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  min-height: 520px;
}

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

.account-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 24px;
  gap: 16px;
}

.account-panel-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 4px;
}

.account-panel-desc {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
}

/* Profile Display */
.account-info-box {
  background: #fffafc;
  border: 1px solid #ffd8e2;
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 24px;
}

.profile-card-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px dashed #ffd4e0;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 14px;
}

.profile-card-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-summary-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  color: var(--ink-soft);
  text-align: right;
}

.account-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 20px;
}

.account-detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.account-detail-item.col-span-2 {
  grid-column: span 2;
}

.detail-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.detail-value {
  font-size: 14px;
  color: var(--ink);
  font-weight: 700;
}

/* Address Cards */
.address-cards-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.address-card {
  background: #ffffff;
  border: 1.5px solid #ffe3ec;
  border-radius: 16px;
  padding: 20px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(255, 77, 121, 0.05);
  position: relative;
}

.address-card.is-default {
  border-color: var(--rose);
  background: linear-gradient(180deg, #fffafd 0%, #ffffff 100%);
  box-shadow: 0 6px 20px rgba(255, 77, 121, 0.1);
}

.address-card:hover {
  border-color: #ff99b3;
  box-shadow: 0 8px 24px rgba(255, 77, 121, 0.12);
  transform: translateY(-1px);
}

.address-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.address-user-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  color: var(--ink);
}

.address-user-title strong {
  font-weight: 800;
  color: var(--ink);
}

.address-phone-text {
  background: #fff0f5;
  color: var(--rose-deep);
  font-weight: 700;
  font-size: 13px;
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid #ffd4e0;
}

.address-badges {
  display: flex;
  gap: 6px;
  align-items: center;
}

.badge-address-tag {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  letter-spacing: 0.02em;
}

.badge-address-tag.default {
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(255, 77, 121, 0.35);
}

.badge-address-tag.office {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.badge-address-tag.home {
  background: #faf5ff;
  color: #7c3aed;
  border: 1px solid #e9d5ff;
}

.address-card-body {
  margin-bottom: 16px;
  padding-left: 2px;
}

.address-full-text {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 6px;
  line-height: 1.55;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.address-note {
  font-size: 12.5px;
  color: #059669;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ecfdf5;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #a7f3d0;
}

.address-card-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 12px;
  border-top: 1px solid #f8fafc;
}

.btn-address-action {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-address-action:hover {
  border-color: var(--rose);
  color: var(--rose);
  background: #fff5f8;
}

.btn-address-action.btn-delete-addr:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: #fef2f2;
}

.btn-address-action.is-default-badge {
  background: #fff1f2;
  border-color: #fecdd3;
  color: var(--rose-deep);
  cursor: default;
  font-weight: 700;
}

/* Role Switcher Component */
.role-switcher-container {
  margin: 14px 0 6px;
}

.role-switcher-bar {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 1.5px solid #ffd4e2;
  border-radius: 999px;
  padding: 4px;
  gap: 6px;
  box-shadow: 0 4px 18px rgba(255, 77, 121, 0.12);
}

.role-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.75);
  color: #1e293b;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.role-switch-btn:hover {
  background: #ffffff;
  color: var(--rose-deep);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.role-switch-btn.is-active[data-role-view="customer"] {
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(255, 77, 121, 0.4);
}

.role-switch-btn.is-active[data-role-view="affiliate"] {
  background: linear-gradient(135deg, #8b5cf6, #d946ef);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(139, 92, 246, 0.4);
}

.role-switch-btn.is-active[data-role-view="seller"] {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.4);
}

.role-switch-btn.is-active[data-role-view="shipper"] {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.4);
}

/* Hero Theme Variants */
.profile-hero-banner.role-affiliate {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  border-bottom-color: #e9d5ff;
}

.profile-hero-banner.role-seller {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-bottom-color: #a7f3d0;
}

.profile-hero-banner.role-shipper {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-bottom-color: #bfdbfe;
}

/* Seller Operations Dashboard */
.seller-store-card {
  background: #ffffff;
  border: 1.5px solid #a7f3d0;
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.08);
}

.seller-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.seller-kpi-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  transition: all 0.2s ease;
}

.seller-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.seller-kpi-card.highlight {
  border-color: #a7f3d0;
  background: #f0fdf4;
}

.seller-kpi-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}

.seller-kpi-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 600;
}

.seller-products-table-wrap {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow-x: auto;
  margin-bottom: 24px;
}

.seller-products-table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}

.seller-products-table th {
  background: #f8fafc;
  padding: 12px 16px;
  font-weight: 700;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.seller-products-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

/* Shipper Operations Dashboard */
.shipper-status-card {
  background: #ffffff;
  border: 1.5px solid #bfdbfe;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
}

.shipper-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.shipper-kpi-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}

.shipper-kpi-card.highlight {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.shipper-run-sheet-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.shipper-run-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
  transition: all 0.2s ease;
}

.shipper-run-card.is-active {
  border-color: #3b82f6;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.12);
}

.shipper-run-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.shipper-run-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #e2e8f0;
  flex-wrap: wrap;
}

.btn-shipper-action {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-shipper-action.call {
  background: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}

.btn-shipper-action.map {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
}

.btn-shipper-action.pod {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(16, 185, 129, 0.3);
}

.btn-shipper-action.done {
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  color: #ffffff;
}

/* Interactive Modals (Address, Seller, PoD) */
.dialog-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  z-index: 1500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.dialog-modal-dialog {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  border: 1px solid #ffd4e2;
  position: relative;
  animation: dialogModalSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dialogModalSlide {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dialog-modal-header {
  padding: 18px 22px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  position: relative;
}

.dialog-modal-header .auth-close-btn {
  position: static;
  flex-shrink: 0;
}

.dialog-modal-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dialog-modal-body {
  padding: 22px;
}

.dialog-modal-footer {
  padding: 16px 22px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: #fafafb;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.radio-pills-row {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.radio-pill-label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #475569;
}

.radio-pill-label input {
  display: none;
}

.radio-pill-label:has(input:checked) {
  border-color: var(--rose);
  background: #fff0f5;
  color: var(--rose-deep);
}

/* Voucher Wallet Cards */
.voucher-wallet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.wallet-voucher-card {
  display: flex;
  background: #ffffff;
  border: 1px dashed #ffb3c6;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  position: relative;
  transition: all 0.2s ease;
}

.wallet-voucher-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 77, 121, 0.1);
  border-color: var(--rose);
}

.voucher-left {
  width: 110px;
  background: linear-gradient(145deg, #fff0f5, #ffe4ec);
  border-right: 1px dashed #ffb3c6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 8px;
  text-align: center;
  position: relative;
}

.voucher-tag-ribbon {
  font-size: 9.5px;
  font-weight: 800;
  background: var(--rose);
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.voucher-discount-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--rose-deep);
  line-height: 1.2;
}

.voucher-type-text {
  font-size: 9.5px;
  font-weight: 700;
  color: #9d174d;
  margin-top: 4px;
}

.voucher-right {
  flex: 1;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.voucher-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 4px;
  line-height: 1.35;
}

.voucher-desc {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 10px;
  line-height: 1.4;
}

.voucher-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.voucher-expiry {
  font-size: 11px;
  color: #64748b;
}

.btn-copy-voucher {
  background: #fff1f4;
  border: 1px solid #ffd0dc;
  color: var(--rose-deep);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-copy-voucher:hover {
  background: var(--rose);
  color: #ffffff;
  border-color: var(--rose);
}

/* Switch Toggle Slider */
.switch-toggle-label {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch-toggle-label input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  transition: .3s;
  border-radius: 24px;
}

.switch-toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.switch-toggle-label input:checked + .switch-toggle-slider {
  background-color: var(--rose);
}

.switch-toggle-label input:checked + .switch-toggle-slider:before {
  transform: translateX(20px);
}

/* Guest View */
.account-guest-card {
  max-width: 500px;
  margin: 30px auto;
  background: #ffffff;
  border: 1px solid #ffe3ec;
  border-radius: 24px;
  padding: 36px 30px;
  box-shadow: 0 10px 30px rgba(255, 77, 121, 0.08);
  text-align: center;
}

.account-guest-head {
  margin-bottom: 24px;
}

.guest-auth-tabs {
  display: flex;
  background: #fff0f5;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 20px;
  gap: 4px;
}

.guest-auth-tab {
  flex: 1;
  background: none;
  border: 0;
  padding: 10px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.guest-auth-tab.is-active {
  background: #ffffff;
  color: var(--rose-deep);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* Nav Menu Badges */
.account-nav-badge.hot-badge {
  background: linear-gradient(135deg, #ff4d79, #e11d48);
  font-size: 10px;
  padding: 2px 7px;
}

.account-nav-item.highlight-tab {
  background: #fdf2f8;
  color: #9d174d;
}

/* Purchased Products List (Shopee-Tier) */
.purchased-products-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.purchased-item-card {
  background: #ffffff;
  border: 1px solid #ffe8ef;
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
  transition: all 0.2s ease;
}

.purchased-item-card:hover {
  border-color: #ffccd9;
  box-shadow: 0 4px 16px rgba(255, 77, 121, 0.08);
}

.purchased-thumb {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.purchased-info {
  flex: 1;
  min-width: 0;
}

.purchased-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.purchased-brand-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--rose-deep);
  background: #fff0f5;
  border: 1px solid #ffd8e2;
  padding: 1px 7px;
  border-radius: 6px;
}

.purchased-date-text {
  font-size: 11.5px;
  color: #64748b;
}

.purchased-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
  line-height: 1.4;
}

.purchased-desc {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 6px;
}

.purchased-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.purchased-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--rose-deep);
}

.purchased-original-price {
  font-size: 12.5px;
  color: #94a3b8;
  text-decoration: line-through;
}

.purchased-count-badge {
  font-size: 11px;
  background: #f1f5f9;
  color: #475569;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 600;
}

.purchased-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.purchased-actions .btn {
  white-space: nowrap;
}

.btn.is-reviewed {
  background: #f1f5f9;
  color: #059669;
  border-color: #cbd5e1;
  cursor: default;
}

/* Affiliate Marketing (Inspired by admin-e-commerce-hub) */
.affiliate-hero-card {
  background: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 50%, #f3e8ff 100%);
  border: 1px solid #e9d5ff;
  border-radius: 18px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 18px rgba(147, 51, 234, 0.06);
}

.affiliate-badge-glow {
  font-size: 11px;
  font-weight: 800;
  color: #7e22ce;
  background: #ffffff;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 8px;
  border: 1px solid #d8b4fe;
}

.affiliate-title {
  font-size: 18px;
  font-weight: 800;
  color: #581c87;
  margin: 0 0 8px;
}

.affiliate-desc {
  font-size: 13px;
  color: #6b21a8;
  margin: 0;
  line-height: 1.5;
  max-width: 600px;
}

.affiliate-hero-stat {
  text-align: center;
  background: #ffffff;
  border: 2px solid #d8b4fe;
  border-radius: 16px;
  padding: 16px 22px;
  box-shadow: 0 4px 14px rgba(126, 34, 206, 0.1);
  flex-shrink: 0;
}

.affiliate-rate-number {
  font-size: 32px;
  font-weight: 900;
  color: #7e22ce;
  display: block;
  line-height: 1;
}

.affiliate-rate-label {
  font-size: 10px;
  font-weight: 800;
  color: #a855f7;
  letter-spacing: 0.5px;
  margin-top: 4px;
  display: block;
}

.referral-box-card {
  background: #ffffff;
  border: 1px solid #ffe3ec;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.referral-box-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
}

.referral-input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.referral-link-field {
  flex: 1;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-family: monospace;
  color: #334155;
  font-weight: 600;
}

.referral-share-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.share-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.share-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.share-btn:hover {
  background: #e2e8f0;
}

.affiliate-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.aff-stat-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.aff-stat-card.highlight {
  background: #fff5f8;
  border-color: #fbcfe8;
}

.aff-stat-card.success {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.aff-stat-icon {
  font-size: 20px;
  margin-bottom: 4px;
  display: block;
}

.aff-stat-value {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 2px;
}

.aff-stat-label {
  font-size: 11.5px;
  color: #64748b;
}

.bank-account-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}

.bank-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.bank-logo-badge {
  background: #007337;
  color: #ffffff;
  font-weight: 900;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 8px;
  letter-spacing: 0.5px;
}

.bank-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.bank-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bank-label {
  font-size: 11.5px;
  color: #64748b;
}

.bank-value {
  font-size: 13.5px;
  color: var(--ink);
}

.affiliate-table-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.affiliate-table-head {
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
}

.affiliate-table-wrapper {
  overflow-x: auto;
}

.affiliate-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.affiliate-history-table th {
  background: #f8fafc;
  padding: 12px 16px;
  font-weight: 700;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.affiliate-history-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--ink);
  white-space: nowrap;
}

.aff-status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  display: inline-block;
}

.aff-status-badge.approved {
  background: #dbeafe;
  color: #1e40af;
}

.aff-status-badge.paid {
  background: #dcfce7;
  color: #15803d;
}

/* Seller Application */
.seller-banner-card {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #a7f3d0;
  border-radius: 18px;
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.seller-banner-icon {
  font-size: 36px;
  flex-shrink: 0;
}

.seller-banner-title {
  font-size: 17px;
  font-weight: 800;
  color: #065f46;
  margin: 0 0 6px;
}

.seller-banner-desc {
  font-size: 13px;
  color: #047857;
  margin: 0 0 10px;
  line-height: 1.5;
}

.seller-perks-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 700;
  color: #065f46;
}

.seller-form-wrap {
  background: #ffffff;
  border: 1px solid #ffe8ef;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.02);
}

.seller-categories-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.seller-chk-label {
  font-size: 13px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.seller-terms-box {
  margin-top: 18px;
  padding: 14px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.seller-terms-label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12.5px;
  color: #475569;
  line-height: 1.45;
  cursor: pointer;
}

/* Star Rating Selector */
.star-rating-selector {
  display: inline-flex;
  gap: 6px;
}

.star-item {
  color: #cbd5e1;
  transition: color 0.15s ease;
}

.star-item.is-active {
  color: #f59e0b;
}

/* Responsive */
@media (max-width: 900px) {
  .profile-hero-banner {
    padding: 20px 0;
  }

  .profile-hero-title {
    font-size: 20px;
  }

  .account-page-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .account-sidebar {
    position: static;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .account-user-card {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 18px 14px;
    margin: 0;
  }

  .account-avatar-wrapper {
    margin: 0 auto 12px;
  }

  .account-quick-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .quick-stat-card {
    padding: 10px 4px;
    min-width: 0;
    box-sizing: border-box;
  }

  .quick-stat-card .stat-value {
    font-size: 13.5px;
  }

  .quick-stat-card .stat-label {
    font-size: 10px;
  }

  .account-nav-list {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 8px 6px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: sticky;
    top: 60px;
    z-index: 20;
    background: #ffffff;
    border: 1px solid #ffe8ef;
    border-radius: 12px;
  }

  .account-nav-list::-webkit-scrollbar {
    display: none;
  }

  .account-nav-item {
    white-space: nowrap;
    padding: 8px 14px;
    font-size: 12.5px;
    width: auto;
    flex-shrink: 0;
    background: #f8fafc;
    border-radius: 999px;
    border: 1px solid #f1f5f9;
  }

  .account-nav-item.is-active {
    background: var(--rose);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(255, 77, 121, 0.3);
    border-color: var(--rose);
  }

  .account-nav-item.is-active .nav-item-icon {
    color: #ffffff;
  }

  .account-nav-item.is-active .account-nav-badge {
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
  }

  .account-nav-divider {
    display: none;
  }

  .account-sidebar-support {
    display: none;
  }

  .account-content {
    padding: 18px 14px;
    border-radius: 16px;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .account-tab-panel {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .account-details-grid {
    grid-template-columns: 1fr;
  }

  .account-detail-item.col-span-2 {
    grid-column: span 1;
  }

  .affiliate-hero-card {
    flex-direction: column;
    text-align: center;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .referral-box-card,
  .bank-account-card,
  .affiliate-table-card,
  .seller-banner-card,
  .seller-form-wrap,
  .purchased-item-card {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .referral-input-group {
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
  }

  .referral-link-field {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .purchased-item-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .account-panel-head {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .account-panel-head .btn {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 12px 18px !important;
    font-size: 14px !important;
    border-radius: 12px !important;
  }

  .account-panel-title {
    font-size: 20px !important;
    line-height: 1.35 !important;
  }

  .account-panel-desc {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  .role-switcher-bar {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
    border-radius: 16px !important;
    padding: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .role-switch-btn {
    padding: 8px 10px !important;
    font-size: 12px !important;
    justify-content: center !important;
  }

  .account-avatar-med,
  .account-avatar-large,
  .account-avatar-circle {
    flex-shrink: 0 !important;
  }

  .profile-card-banner {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .profile-summary-stat {
    text-align: left !important;
    width: 100% !important;
    padding-top: 10px !important;
    border-top: 1px dashed #ffe0ea !important;
  }

  .address-card-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
  }

  .address-card-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 14px !important;
  }

  .btn-address-action {
    flex: 1 1 auto !important;
    min-height: 36px !important;
    white-space: nowrap !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 7px 10px !important;
    font-size: 12px !important;
    box-sizing: border-box !important;
  }

  .order-status-filter-bar {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    overflow-x: visible !important;
    padding-bottom: 4px !important;
  }

  .order-status-pill {
    flex: 1 1 auto !important;
    padding: 6px 10px !important;
    font-size: 12px !important;
    text-align: center !important;
    justify-content: center !important;
  }

  .voucher-wallet-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .wallet-voucher-card {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .voucher-left {
    width: 86px !important;
    padding: 10px 6px !important;
    flex-shrink: 0 !important;
  }

  .voucher-right {
    padding: 12px !important;
    min-width: 0 !important;
  }

  .voucher-footer {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
  }

  .btn-copy-voucher {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  #account-tab-vouchers .cart-coupon-box {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 12px !important;
    border-radius: 12px !important;
  }

  #account-tab-vouchers #wallet-coupon-input {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 12px !important;
    border: 1.5px solid #ffd4e0 !important;
    border-radius: 8px !important;
    font-size: 12.5px !important;
  }

  #account-tab-vouchers #wallet-coupon-apply-btn {
    width: 100% !important;
    justify-content: center !important;
  }

  .bank-card-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .bank-card-header .btn {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .seller-products-table-wrap,
  .affiliate-table-wrapper {
    overflow-x: visible !important;
    border: 0 !important;
    background: transparent !important;
  }

  .seller-products-table,
  .affiliate-history-table {
    min-width: 0 !important;
    width: 100% !important;
    display: block !important;
  }

  .seller-products-table thead,
  .affiliate-history-table thead {
    display: none !important;
  }

  .seller-products-table tbody,
  .affiliate-history-table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .seller-products-table tr,
  .affiliate-history-table tr {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 8px 10px !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 14px !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }

  .seller-products-table td,
  .affiliate-history-table td {
    display: block !important;
    padding: 0 !important;
    border: 0 !important;
    white-space: normal !important;
    min-width: 0 !important;
    word-break: break-word !important;
  }

  .seller-products-table td:first-child {
    grid-column: 1 / -1 !important;
    padding-bottom: 10px !important;
    border-bottom: 1px dashed #e2e8f0 !important;
  }

  .seller-products-table td:nth-child(3),
  .seller-products-table td:nth-child(6) {
    text-align: right !important;
  }

  .affiliate-history-table td:nth-child(2),
  .affiliate-history-table td:nth-child(7) {
    text-align: right !important;
  }

  .affiliate-history-table td:nth-child(4) {
    grid-column: 1 / -1 !important;
    font-weight: 700 !important;
    color: var(--ink) !important;
    padding: 6px 0 !important;
    border-top: 1px dashed #f1f5f9 !important;
    border-bottom: 1px dashed #f1f5f9 !important;
  }

  .driver-profile-box {
    flex-wrap: wrap !important;
    gap: 12px !important;
  }

  .driver-details-wrap {
    flex: 1 1 calc(100% - 76px) !important;
    min-width: 0 !important;
  }

  .driver-call-btn {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 10px 16px !important;
    box-sizing: border-box !important;
  }

  .seller-kpi-grid,
  .shipper-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .shipper-run-head {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .shipper-run-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .btn-shipper-action {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 9px 6px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }

  .purchased-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .purchased-actions .btn {
    width: 100% !important;
    min-width: 0 !important;
    padding: 9px 6px !important;
    font-size: 12px !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  .product-tabs-nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    border-bottom: 0 !important;
  }

  .product-tab-btn {
    padding: 10px 8px !important;
    font-size: 12.5px !important;
    border: 1.5px solid var(--border) !important;
    border-radius: 10px !important;
    text-align: center !important;
    background: #ffffff !important;
    white-space: normal !important;
    line-height: 1.3 !important;
  }

  .product-tab-btn.is-active {
    background: #fff0f5 !important;
    border-color: var(--rose) !important;
    color: var(--rose-deep) !important;
  }

  .product-tab-btn.is-active::after {
    display: none !important;
  }

  .product-tab-panel {
    padding: 18px 16px !important;
  }

  .countdown-box {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 14px !important;
    padding: 8px 10px !important;
    gap: 4px !important;
  }

  .countdown-box > span {
    width: 100% !important;
    text-align: center !important;
    font-size: 11px !important;
    margin-bottom: 2px !important;
    opacity: 0.9 !important;
  }

  .back-to-top-btn {
    bottom: 64px !important;
    right: 10px !important;
    width: 34px !important;
    height: 34px !important;
    font-size: 12px !important;
  }

  .workspace-sync-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 12px;
    gap: 8px;
  }

  .ws-sync-links {
    width: 100%;
    justify-content: flex-start;
  }

  .ws-jump-pill {
    flex: 1 1 auto;
    text-align: center;
    justify-content: center;
  }
}

/* Product SKU + ID Badges & Platform Workspace Sync Bar */
.product-sku-line {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 1px 0 3px;
}

.sku-pill,
.id-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.sku-pill {
  background: #fff0f5;
  color: var(--rose-deep);
  border: 1px solid #ffd4e2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.id-pill {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.workspace-sync-bar {
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid #ffd4e2;
  border-radius: 14px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: 0 4px 14px rgba(255, 77, 121, 0.08);
}

.ws-sync-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink);
  font-weight: 600;
}

.ws-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  flex-shrink: 0;
}

.ws-sync-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ws-jump-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ws-jump-pill:hover {
  border-color: var(--rose);
  color: var(--rose-deep);
  background: #fff5f8;
}

.ws-jump-pill.highlight {
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  color: #ffffff;
  border-color: transparent;
}

.ws-jump-pill.highlight:hover {
  opacity: 0.92;
  color: #ffffff;
}
