/* ============================================================
   MINH ANH - KHO HÀNG ONLINE GIÁ TỐT
   Inspired by Pully Lingerie's clean airy boutique aesthetic
   harmonized with Minh Anh's Sky Blue, Sage Green & Warm Amber logo
   ============================================================ */

:root {
  --primary: #2B5B4C;         /* Deep botanical sage-teal (buttons, prices, active pills) */
  --primary-hover: #20473B;
  --accent-orange: #E07A22;   /* Warm amber from Minh Anh 'MA' logo */
  --accent-sky: #B2E2F8;      /* Soft sky blue from Minh Anh logo */
  --accent-sky-soft: #E9F5FC;
  --bg-page: #F4F8FB;         /* Airy pale ice-blue canvas (echoing Pully Lingerie) */
  --bg-white: #FFFFFF;
  --bg-footer: #FBF8F4;       /* Warm soft linen footer */
  --text-main: #1F2933;
  --text-muted: #5F6C7B;
  --border-light: #E2EBF2;
  --shadow-sm: 0 4px 16px rgba(31, 41, 51, 0.05);
  --shadow-md: 0 10px 30px rgba(31, 41, 51, 0.08);
  --shadow-lg: 0 18px 48px rgba(15, 23, 42, 0.16);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font-family: inherit; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- ANNOUNCEMENT BAR ---------- */
.announcement-bar {
  background: var(--primary);
  color: #fff;
  font-size: 12.5px;
  text-align: center;
  padding: 8px 12px;
  letter-spacing: 0.2px;
}
.announcement-bar strong { color: #FFE3B3; font-weight: 600; }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-sky);
  box-shadow: 0 2px 8px rgba(43, 91, 76, 0.12);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--primary);
}

.brand-sub {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.9px;
  color: var(--accent-orange);
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-main);
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-hotline { color: var(--primary); font-weight: 600; }

.header-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--accent-sky-soft);
  border: 1px solid var(--accent-sky);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  transition: all 0.2s;
}

.header-cart-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.cart-icon-wrap {
  position: relative;
  display: inline-flex;
}

.cart-badge {
  position: absolute;
  top: -7px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent-orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  padding: 6px;
  cursor: pointer;
}

/* ---------- HERO BANNER ---------- */
.hero-section {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #EFEAE3;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(255, 255, 255, 0.92) 0%, rgba(244, 248, 251, 0.78) 44%, rgba(255, 255, 255, 0.08) 100%);
}

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

.hero-text-box {
  max-width: 560px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--accent-orange);
  margin-bottom: 14px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.8vw, 54px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 1px;
  color: var(--primary);
  margin: 0 0 16px;
}

.hero-subtitle {
  font-size: 16px;
  color: #3D4B56;
  margin: 0 0 28px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
  padding: 12px 26px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-pill { border-radius: 999px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
}

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

.btn-zalo {
  background: #0068FF;
  color: #fff;
  border-color: #0068FF;
}
.btn-zalo:hover { background: #0055D4; }

/* ---------- TRUST / POLICY BAR ---------- */
.trust-section {
  position: relative;
  z-index: 5;
  margin-top: -54px;
  margin-bottom: 24px;
}

.trust-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  padding: 24px 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-sky-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-main);
}

.trust-desc {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ---------- SECTIONS & HEADINGS ---------- */
.section {
  padding: 46px 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 30px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: 2.2px;
  color: var(--text-main);
  margin: 0 0 8px;
}

.botanical-divider {
  display: flex;
  justify-content: center;
}

/* ---------- BULK DISCOUNT BANNER ---------- */
.bulk-banner-section {
  padding: 8px 0 18px;
}

.bulk-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #EAF5FC 100%);
  border: 1px solid var(--accent-sky);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-sm);
}

.bulk-pill-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  background: var(--accent-orange);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.bulk-title {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--primary);
  margin: 0 0 6px;
}

.bulk-desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
  max-width: 520px;
}

.bulk-tiers {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.tier-box {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  text-align: center;
  min-width: 126px;
}

.tier-box.tier-highlight {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.tier-qty {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  opacity: 0.85;
}

.tier-pct {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-orange);
  margin: 2px 0;
}

.tier-highlight .tier-pct { color: #FFE3B3; }

.tier-sub {
  display: block;
  font-size: 11px;
  opacity: 0.78;
}

/* ---------- CATEGORY TABS & SEARCH ---------- */
.catalog-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.cat-tab {
  background: #fff;
  color: var(--text-main);
  border: 1px solid #D3DFE8;
  padding: 9px 22px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
}

.cat-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.cat-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(43, 91, 76, 0.22);
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 420px;
  display: flex;
  align-items: center;
}

.search-box svg {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 10px 38px 10px 42px;
  border-radius: 999px;
  border: 1px solid #D3DFE8;
  background: #fff;
  font-size: 13.5px;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(43, 91, 76, 0.1);
}

.search-clear {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  font-size: 19px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

/* ---------- PRODUCT GRID & CARDS (Pully Lingerie Style) ---------- */
.product-grid {
  display: grid;
  gap: 18px;
}

.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

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

.product-thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, #F8FBFE 0%, #EDF4FA 100%);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid #EEF4F9;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  filter: drop-shadow(0 4px 10px rgba(15, 23, 42, 0.08));
  transition: transform 0.35s ease;
}

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

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent-orange);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

.product-discount-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: #D93829;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
}

.quick-add-btn {
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(43, 91, 76, 0.3);
  transition: transform 0.18s, background 0.18s;
}

.quick-add-btn:hover {
  background: var(--accent-orange);
  transform: scale(1.08);
}

.product-body {
  padding: 13px 12px 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.product-title {
  margin: 0 0 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}

.product-prices {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
}

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

.price-original {
  font-size: 12px;
  color: #9AA5B1;
  text-decoration: line-through;
}

.load-more-wrap {
  text-align: center;
  margin-top: 32px;
}

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

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--bg-footer);
  border-top: 1px solid #EAE2D9;
  padding-top: 54px;
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 44px;
  padding-bottom: 44px;
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.footer-logo-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--accent-sky);
  object-fit: cover;
}

.footer-brand-name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--primary);
  letter-spacing: 1px;
}

.footer-brand-sub {
  margin: 2px 0 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-orange);
}

.footer-slogan {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

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

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-main);
}

.footer-contact-list svg {
  color: var(--primary);
  flex-shrink: 0;
}

.footer-form-title {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: 21px;
  color: var(--text-main);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid #E2D9CE;
  background: #fff;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
}

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

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

.form-note {
  font-size: 12.5px;
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid #EAE2D9;
  padding: 16px 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-entry-link {
  color: var(--primary);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(43, 91, 76, 0.08);
}
.admin-entry-link:hover { background: rgba(43, 91, 76, 0.16); }

/* ---------- FLOATING CONTROLS (Clean Non-Overlapping Corners) ---------- */
.floating-contact-dock {
  position: fixed;
  left: 16px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dock-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s;
  font-size: 12px;
  font-weight: 700;
}

.dock-btn:hover { transform: scale(1.1); }
.dock-phone { background: var(--primary); }
.dock-zalo { background: #0068FF; }
.dock-messenger { background: #0084FF; }

.floating-cart-tab {
  position: fixed;
  right: 18px;
  bottom: 76px;
  z-index: 90;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(43, 91, 76, 0.3);
  transition: background 0.2s, transform 0.2s;
}

.floating-cart-tab:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.floating-cart-count {
  font-size: 12px;
  font-weight: 700;
  background: var(--accent-orange);
  color: #fff;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.scroll-top-btn {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 89;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- MODALS (Quick View & Checkout) ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(14px);
  transition: transform 0.22s ease;
}

.modal-overlay.open .modal-dialog { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: #fff;
  font-size: 22px;
  line-height: 1;
  color: var(--text-main);
  cursor: pointer;
  z-index: 5;
}

.quick-view-dialog {
  max-width: 820px;
  padding: 28px;
}

.qv-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  align-items: start;
}

.qv-img-box {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 460px;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(180deg, #F8FBFE 0%, #EDF4FA 100%);
  border: 1px solid var(--border-light);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qv-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.qv-sku-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px 9px;
  border-radius: 6px;
}

.qv-cat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-orange);
  text-transform: uppercase;
}

.qv-title {
  margin: 6px 0 10px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
}

.qv-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}

.qv-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.qv-original-price {
  font-size: 14px;
  color: #9AA5B1;
  text-decoration: line-through;
}

.qv-save-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: #D93829;
  background: #FEECEC;
  padding: 2px 8px;
  border-radius: 6px;
}

.qv-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.qv-bulk-hint {
  background: var(--accent-sky-soft);
  border: 1px solid var(--accent-sky);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 12.5px;
  color: var(--primary);
  margin-bottom: 16px;
}

.qv-option-group { margin-bottom: 14px; }

.qv-label {
  display: block;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 7px;
}
.qv-label strong { color: var(--text-main); }

.qv-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.opt-pill {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #CBD5E1;
  background: #fff;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.16s;
}

.opt-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #CBD5E1;
  border-radius: 999px;
  overflow: hidden;
}

.qty-stepper button {
  width: 36px;
  height: 36px;
  border: none;
  background: #F8FAFC;
  font-size: 17px;
  cursor: pointer;
}

.qty-stepper input {
  width: 46px;
  height: 36px;
  border: none;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  outline: none;
}

.qv-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

/* ---------- CART DRAWER ---------- */
.drawer-overlay, .mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}

.drawer-overlay.open, .mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100vw, 420px);
  background: #fff;
  z-index: 160;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(15, 23, 42, 0.14);
  transform: translateX(100%);
  transition: transform 0.26s ease;
}

.cart-drawer.open { transform: translateX(0); }

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

.cart-drawer-header h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.6px;
}

.icon-close-btn {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}

.cart-promo-progress {
  background: var(--accent-sky-soft);
  padding: 10px 18px;
  font-size: 12.5px;
  color: var(--primary);
  border-bottom: 1px solid var(--accent-sky);
}

.cart-items-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
}

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

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

.cart-item-img {
  width: 68px;
  height: 68px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

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

.cart-item-name {
  font-size: 13.5px;
  font-weight: 600;
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-variant {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 7px;
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.mini-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #CBD5E1;
  border-radius: 999px;
}

.mini-qty button {
  width: 26px;
  height: 26px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 15px;
}

.mini-qty span {
  min-width: 22px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
}

.cart-remove-btn {
  background: none;
  border: none;
  color: #9AA5B1;
  cursor: pointer;
  font-size: 18px;
  align-self: flex-start;
  padding: 0 4px;
}
.cart-remove-btn:hover { color: #D93829; }

.cart-drawer-footer {
  padding: 16px 24px 22px;
  border-top: 1px solid var(--border-light);
  background: #FAFCFE;
}

.cart-summary-rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
  font-size: 13.5px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
}

.discount-row { color: var(--accent-orange); font-weight: 600; }

.total-row {
  padding-top: 8px;
  border-top: 1px dashed #CBD5E1;
  font-size: 15px;
}
.total-row strong { font-size: 18px; color: var(--primary); }

/* ---------- CHECKOUT MODAL ---------- */
.checkout-dialog {
  max-width: 560px;
  padding: 28px;
}

.checkout-title {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 25px;
  color: var(--primary);
}

.checkout-sub {
  margin: 0 0 18px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.checkout-order-mini {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}

.field-group { margin-bottom: 12px; }
.field-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 5px;
}

.checkout-form input[type="text"],
.checkout-form input[type="tel"] {
  width: 100%;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid #CBD5E1;
  font-size: 13.5px;
  outline: none;
}

.checkout-form input:focus { border-color: var(--primary); }

.payment-method-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0 18px;
}

.radio-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  cursor: pointer;
}

.checkout-success { text-align: center; }
.success-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #E6F6EE;
  color: var(--primary);
  font-size: 28px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.order-receipt-box {
  text-align: left;
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 12.5px;
  white-space: pre-wrap;
  max-height: 200px;
  overflow-y: auto;
  margin: 14px 0 18px;
  font-family: var(--font-sans);
}

.success-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- MOBILE NAV DRAWER ---------- */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  background: #fff;
  z-index: 160;
  padding: 20px;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
}

.mobile-nav-drawer.open { transform: translateX(0); }

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
}

.mobile-link {
  padding: 13px 6px;
  border-bottom: 1px solid #F1F5F9;
  font-size: 14.5px;
  font-weight: 500;
}

.mobile-link-admin { color: var(--primary); font-weight: 600; }

/* ---------- TOAST ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1F2933;
  color: #fff;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
  box-shadow: var(--shadow-md);
}

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

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .grid-5 { grid-template-columns: repeat(4, 1fr); }
  .bulk-card { flex-direction: column; align-items: flex-start; }
  .bulk-tiers { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .header-cart-label { display: none; }
  .header-cart-btn { padding: 8px 12px; }
  .trust-card { grid-template-columns: repeat(2, 1fr); }
  .grid-4, .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

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

@media (max-width: 600px) {
  .announcement-bar { font-size: 11px; }
  .header-inner { height: 64px; }
  .logo-img { width: 42px; height: 42px; }
  .brand-name { font-size: 17px; }
  .brand-sub { font-size: 9px; }
  .hero-section { min-height: 400px; }
  .hero-content { padding: 42px 16px 80px; }
  .trust-card { grid-template-columns: 1fr; padding: 18px; gap: 14px; }
  .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .bulk-tiers { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .qv-actions { grid-template-columns: 1fr; }
  .floating-contact-dock { left: 10px; top: auto; bottom: 20px; transform: none; }
  .dock-btn { width: 40px; height: 40px; }
}
