:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --surface-alt: #f3efe9;
  --border: #e6dfd5;
  --border-strong: #d3c9ba;
  --ink: #171614;
  --ink-soft: #5f5a52;
  --ink-muted: #8b8479;
  --accent: #9a714f;
  --accent-dark: #7c583b;
  --danger: #b33a3a;
  --success: #2b6f4c;
  --warning: #b57b1f;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 10px rgba(23, 22, 20, 0.04);
  --shadow-md: 0 12px 32px rgba(23, 22, 20, 0.09);
  --shadow-lg: 0 24px 64px rgba(23, 22, 20, 0.16);
  --font-sans: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --transition: 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.hidden {
  display: none !important;
}

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

/* ==================== ANNOUNCEMENT BAR ==================== */
.announcement-bar {
  background: var(--ink);
  color: #efeae2;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  padding: 9px 0;
}

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.announcement-inner .dot {
  opacity: 0.45;
}

.copy-code-btn {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px dashed rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  padding: 1px 7px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.copy-code-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* ==================== HEADER ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

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

.brand-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}

.brand-main {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1;
  white-space: nowrap;
}

.brand-sub {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--accent);
  text-transform: uppercase;
}

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

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 0;
  position: relative;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--ink);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--ink);
}

.nav-link.active::after, .nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link-sale {
  color: var(--danger);
}

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

.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}

.icon-btn:hover {
  background: var(--surface-alt);
}

.badge-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-pill {
  margin-left: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  transition: var(--transition);
}

.admin-pill:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.mobile-menu-btn {
  display: none;
}

.search-drawer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 14px 0;
}

.search-drawer-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-muted);
}

.search-drawer-inner input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  background: transparent;
  color: var(--ink);
}

.btn-text {
  background: none;
  border: none;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 500;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: #2f2c27;
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--ink);
  background: var(--surface-alt);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
  backdrop-filter: blur(8px);
}

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

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}

.btn-full {
  width: 100%;
}

/* ==================== HERO ==================== */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #211e1a;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(20, 18, 15, 0.76) 0%,
    rgba(20, 18, 15, 0.48) 46%,
    rgba(20, 18, 15, 0.12) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 76px 24px;
}

.hero-copy {
  max-width: 560px;
  color: #fff;
}

.eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #e6d5c3;
  margin-bottom: 14px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(44px, 5.5vw, 68px);
  font-weight: 600;
  line-height: 1.04;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

.hero-title em {
  font-style: italic;
  font-weight: 500;
  color: #f0dfd0;
}

.hero-desc {
  font-size: 15.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
  margin: 0 0 28px;
}

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

.hero-actions .btn-primary {
  background: #fff;
  color: var(--ink);
}

.hero-actions .btn-primary:hover {
  background: #f0e8dd;
}

.hero-metrics {
  display: flex;
  gap: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-metrics strong {
  display: block;
  font-size: 18px;
  font-weight: 600;
}

.hero-metrics span {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.72);
}

/* ==================== SECTIONS ==================== */
.section {
  padding: 72px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.section-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.6vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

.link-arrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color var(--transition);
}

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

/* ==================== CATEGORY SPOTLIGHT ==================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.category-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  cursor: pointer;
  background: var(--surface-alt);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.category-card:hover img {
  transform: scale(1.06);
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, rgba(23, 22, 20, 0) 42%, rgba(23, 22, 20, 0.72) 100%);
  color: #fff;
}

.cat-count {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.category-card-overlay h3 {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
  margin: 4px 0 8px;
}

.cat-cta {
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0.92;
}

/* ==================== CATALOG & FILTERS ==================== */
.catalog-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.catalog-result-meta {
  font-size: 13.5px;
  color: var(--ink-muted);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-tab:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.search-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink-muted);
}

.search-inline input {
  border: none;
  outline: none;
  background: transparent;
  width: 170px;
  font-size: 13.5px;
  color: var(--ink);
}

.select-input {
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 13.5px;
  cursor: pointer;
}

/* ==================== PRODUCT GRID & CARDS ==================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 20px;
}

.product-card {
  display: flex;
  flex-direction: column;
  group: true;
}

.product-media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--surface-alt);
  margin-bottom: 13px;
  cursor: pointer;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.p-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.p-badge-new { background: var(--ink); color: #fff; }
.p-badge-sale { background: var(--danger); color: #fff; }
.p-badge-bestseller { background: var(--accent); color: #fff; }
.p-badge-out { background: #6b655d; color: #fff; }

.wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.wishlist-btn:hover, .wishlist-btn.active {
  background: #fff;
  color: var(--danger);
  transform: scale(1.06);
}

.wishlist-btn.active svg {
  fill: var(--danger);
}

.quick-add-bar {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  opacity: 0;
  transform: translateY(8px);
  transition: var(--transition);
}

.product-card:hover .quick-add-bar {
  opacity: 1;
  transform: translateY(0);
}

.quick-add-btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: var(--radius-sm);
  background: rgba(23, 22, 20, 0.9);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background var(--transition);
}

.quick-add-btn:hover {
  background: var(--ink);
}

.product-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.product-name {
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 8px;
  line-height: 1.38;
  cursor: pointer;
  transition: color var(--transition);
}

.product-name:hover {
  color: var(--accent-dark);
}

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

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

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

.price-discount {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--danger);
}

.swatch-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.swatch-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.18);
}

.empty-state {
  text-align: center;
  padding: 56px 20px;
  color: var(--ink-soft);
}

/* ==================== PROMO COUPONS ==================== */
.promo-card {
  background: linear-gradient(135deg, #1d1b18 0%, #302821 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
  align-items: center;
}

.promo-copy h2 {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 600;
  margin: 6px 0 12px;
  line-height: 1.15;
}

.promo-copy p {
  color: rgba(255, 255, 255, 0.76);
  margin: 0;
  font-size: 14.5px;
}

.coupon-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.coupon-ticket {
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.34);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: var(--transition);
}

.coupon-ticket:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.coupon-ticket-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  color: #f4dfca;
  margin-bottom: 6px;
}

.coupon-ticket-desc {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.45;
}

/* ==================== PILLARS ==================== */
.pillars-section {
  padding-top: 24px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pillar-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 22px;
}

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--surface-alt);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.pillar-item h4 {
  margin: 0 0 6px;
  font-size: 15.5px;
  font-weight: 600;
}

.pillar-item p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* ==================== FOOTER ==================== */
.site-footer {
  background: #171614;
  color: #dcd5cb;
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-logo .brand-main { color: #fff; }

.footer-brand p {
  font-size: 14px;
  color: #aaa296;
  margin: 14px 0;
}

.footer-contact {
  color: #e6dfd5 !important;
}

.site-footer h5 {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 16px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.site-footer a:hover, .footer-link-btn:hover {
  color: #fff;
}

.footer-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  cursor: pointer;
  font-size: 14px;
}

.footer-address {
  font-size: 13.5px;
  line-height: 1.8;
  color: #aaa296;
  margin: 0;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: #8c847a;
}

/* ==================== MODALS & DRAWERS ==================== */
.modal-backdrop, .drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(18, 16, 14, 0.56);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.drawer-backdrop {
  justify-content: flex-end;
  padding: 0;
}

.modal-dialog {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
  font-size: 16px;
}

.modal-close:hover {
  background: var(--ink);
  color: #fff;
}

/* Product Detail Modal */
.product-modal-dialog {
  max-width: 920px;
}

.product-modal-body {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
}

.pm-media {
  background: var(--surface-alt);
  min-height: 460px;
}

.pm-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pm-info {
  padding: 36px 34px;
  display: flex;
  flex-direction: column;
}

.pm-sku {
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.pm-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 12px;
}

.pm-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.pm-price .price-current { font-size: 24px; }

.pm-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 14px;
  line-height: 1.65;
}

.pm-material {
  font-size: 13px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.option-block {
  margin-bottom: 18px;
}

.option-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 8px;
}

.color-pills, .size-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}

.color-pill.selected {
  border-color: var(--ink);
  background: var(--surface-alt);
  font-weight: 600;
}

.size-pill {
  min-width: 46px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.size-pill.selected {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.pm-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-stepper button {
  width: 36px;
  height: 44px;
  border: none;
  background: var(--bg);
  cursor: pointer;
  font-size: 16px;
}

.qty-stepper span {
  min-width: 38px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}

/* Cart Drawer */
.drawer-panel {
  width: 100%;
  max-width: 440px;
  height: 100%;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.16);
}

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

.drawer-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.freeship-bar {
  padding: 12px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
}

.freeship-track {
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 7px;
}

.freeship-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.35s ease;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 24px;
}

.cart-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item img {
  width: 74px;
  height: 96px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
}

.cart-item-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px;
}

.cart-item-meta {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

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

.mini-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
}

.mini-qty button {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  cursor: pointer;
}

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

.remove-item-btn {
  border: none;
  background: none;
  color: var(--ink-muted);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}

.remove-item-btn:hover { color: var(--danger); }

.drawer-footer {
  padding: 18px 24px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.coupon-box {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.coupon-box input {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 13.5px;
  text-transform: uppercase;
}

.coupon-feedback {
  font-size: 12.5px;
  margin-bottom: 10px;
}

.coupon-feedback.ok { color: var(--success); }
.coupon-feedback.err { color: var(--danger); }

.summary-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 16px;
  font-size: 14px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
}

.summary-total {
  padding-top: 10px;
  border-top: 1px solid var(--border-strong);
  color: var(--ink);
  font-size: 16.5px;
}

.text-success { color: var(--success); }

/* Checkout Modal */
.checkout-modal-dialog {
  max-width: 960px;
  padding: 36px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 36px;
}

.checkout-left h2, .lookup-modal-dialog h2 {
  font-family: var(--font-serif);
  font-size: 32px;
  margin: 4px 0 20px;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}

.form-group input, .form-group select, .form-group textarea {
  padding: 10px 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  outline: none;
  transition: border-color var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--ink);
  background: var(--surface);
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payment-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  cursor: pointer;
}

.payment-card input { margin-top: 3px; }
.payment-card strong { display: block; font-size: 14px; }
.payment-card span { font-size: 12.5px; color: var(--ink-muted); }

.checkout-right {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  align-self: start;
}

.checkout-right h3 {
  margin: 0 0 16px;
  font-size: 17px;
}

.checkout-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 16px;
}

.co-item {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13.5px;
}

.co-item img {
  width: 50px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
}

.form-error {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: #fdecec;
  color: var(--danger);
  font-size: 13.5px;
}

/* Order Success */
.checkout-success {
  text-align: center;
  padding: 24px 16px;
  max-width: 560px;
  margin: 0 auto;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e5f5ec;
  color: var(--success);
  font-size: 32px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.order-code-box {
  margin: 20px 0;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px dashed var(--border-strong);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-code-box strong {
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
}

.success-details {
  text-align: left;
  background: var(--bg);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  margin-bottom: 22px;
}

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

/* Order Lookup & Size Guide */
.lookup-modal-dialog {
  max-width: 680px;
  padding: 34px;
}

.modal-sub {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

.lookup-form {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.lookup-form input {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}

.lookup-order-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 14px;
  background: var(--bg);
}

.lookup-order-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.status-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.status-pending { background: #fff4df; color: #9a6700; }
.status-confirmed { background: #e3f0ff; color: #1956a8; }
.status-shipping { background: #efe6ff; color: #673ab7; }
.status-delivered { background: #e4f5ec; color: #1f6e43; }
.status-cancelled { background: #fdecec; color: #b33a3a; }

.size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.size-table th, .size-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.size-table th {
  background: var(--bg);
  font-weight: 600;
}

/* Floating Chat Widget */
.floating-chat {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.chat-fab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  transition: transform var(--transition), box-shadow var(--transition);
}

.chat-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.chat-zalo {
  background: #0068ff;
}

.chat-fab-badge {
  background: rgba(255, 255, 255, 0.22);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
}

.chat-messenger {
  background: linear-gradient(135deg, #0084ff 0%, #a033ff 55%, #ff5280 100%);
}

/* Toast */
.toast-container {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  box-shadow: var(--shadow-md);
  animation: toastIn 0.25s ease;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .mobile-menu-btn { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 12px;
    align-items: flex-start;
  }
  .main-nav.open { display: flex; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { aspect-ratio: 16 / 10; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 14px; }
  .promo-card { grid-template-columns: 1fr; padding: 28px; }
  .product-modal-body { grid-template-columns: 1fr; }
  .pm-media { min-height: 300px; max-height: 380px; }
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-modal-dialog { padding: 22px; }
  .form-row { grid-template-columns: 1fr; }
  .hide-mobile { display: none; }
}

@media (max-width: 520px) {
  .container { padding: 0 16px; }
  .admin-pill { display: none; }
  .pillars-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-metrics { gap: 18px; }
}
