/* ==========================================================================
   NOMASOLE. E-Commerce Storefront Stylesheet
   Pixel-accurate reproduction of reference design + Modern Web Guidance standards
   ========================================================================== */

:root {
  --bg-page: #FFFFFF;
  --bg-surface: #F5F5F3;
  --bg-footer: #F7F6F3;
  --bg-stone: #E9E5DE;
  --text-primary: #141414;
  --text-secondary: #525252;
  --text-muted: #787878;
  --accent-bronze: #AD7A59;
  --accent-bronze-dark: #8E5F40;
  --accent-sale: #D9381E;
  --star-gold: #F59E0B;
  --border-light: #E6E4E0;
  --border-dark: #181818;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --container-max: 1240px;
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Montserrat', 'Plus Jakarta Sans', sans-serif;
  --font-script: 'Caveat', cursive;
  --shadow-soft: 0 8px 30px rgba(20, 20, 20, 0.06);
  --shadow-modal: 0 24px 60px rgba(0, 0, 0, 0.22);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-page);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

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

/* --------------------------------------------------------------------------
   1. Top Announcement Bar (#141414)
   -------------------------------------------------------------------------- */
.top-bar {
  background-color: #141414;
  color: #F5F5F3;
  font-size: 0.78rem;
  font-weight: 500;
  padding-block: 8px;
  letter-spacing: 0.01em;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
  flex-wrap: wrap;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #EDEDEB;
}

.top-bar-item svg {
  width: 15px;
  height: 15px;
  stroke: #D6A27E;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   2. Main Header / Sticky Navigation Bar
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow 0.2s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

.brand-logo {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #111111;
  text-transform: uppercase;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

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

.footer-logo-img {
  height: 32px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  display: block;
  margin-bottom: 8px;
}

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

.nav-link {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #262626;
  padding-block: 6px;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background-color: #141414;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

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

.nav-link.sale-link {
  color: var(--accent-sale);
  font-weight: 700;
}

.nav-link.sale-link::after {
  background-color: var(--accent-sale);
}

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

.icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #181818;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

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

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.badge-count {
  position: absolute;
  top: 2px;
  right: 1px;
  min-width: 17px;
  height: 17px;
  padding-inline: 4px;
  border-radius: 999px;
  background-color: var(--accent-bronze);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

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

/* --------------------------------------------------------------------------
   3. Hero Banner Section (Exact Match to Reference Design)
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  width: 100%;
  background-color: #DFDCD4;
  overflow: hidden;
}

.hero-slider-viewport {
  position: relative;
  max-width: 1440px;
  margin-inline: auto;
  min-height: 540px;
  display: flex;
  align-items: center;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  width: 100%;
  min-height: 540px;
}

.hero-bg-picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

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

/* Subtle left gradient so dark typography is 100% legible over stone steps */
.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(235, 232, 225, 0.92) 0%,
    rgba(235, 232, 225, 0.72) 34%,
    rgba(235, 232, 225, 0.08) 62%,
    rgba(235, 232, 225, 0.0) 100%
  );
  z-index: 2;
}

.hero-content-wrap {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 56px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #222222;
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #141414;
  margin-bottom: 18px;
  white-space: pre-line;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: #444444;
  line-height: 1.55;
  margin-bottom: 26px;
  white-space: pre-line;
}

.btn-primary-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #161616;
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 26px;
  border-radius: 5px;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

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

.hero-script-callout {
  font-family: var(--font-script);
  font-size: clamp(2.2rem, 3.5vw, 3.3rem);
  font-weight: 600;
  line-height: 0.92;
  color: var(--accent-bronze);
  transform: rotate(-10deg);
  text-align: center;
  white-space: pre-line;
  user-select: none;
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.65);
  margin-right: 12px;
  margin-top: -60px;
}

.hero-slider-controls {
  position: absolute;
  right: max(24px, calc((100% - var(--container-max)) / 2 + 24px));
  bottom: 28px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-arrows {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-arrow-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(20, 20, 20, 0.28);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.15s ease;
}

.hero-arrow-btn:hover {
  background: #141414;
  border-color: #141414;
}

.hero-slide-counter {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #FFFFFF;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

/* --------------------------------------------------------------------------
   4. 3-Column Category Feature Cards (DÉP NAM, DÉP NỮ, DÉP BÁNH MÌ)
   -------------------------------------------------------------------------- */
.category-highlights-section {
  padding-block: 36px 24px;
}

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

.cat-feature-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 3.1;
  background-color: #E7E3DC;
  cursor: pointer;
}

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

.cat-feature-card:hover img {
  transform: scale(1.05);
}

.cat-card-overlay {
  position: absolute;
  inset: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(
    135deg,
    rgba(244, 241, 234, 0.82) 0%,
    rgba(244, 241, 234, 0.32) 48%,
    rgba(0, 0, 0, 0.08) 100%
  );
}

.cat-card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #141414;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.cat-card-subtitle {
  font-size: 0.86rem;
  color: #383838;
  max-width: 160px;
  line-height: 1.38;
}

.btn-cat-white {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #FFFFFF;
  color: #141414;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 9px 16px;
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cat-feature-card:hover .btn-cat-white {
  background-color: #141414;
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   5. Featured Products Section (SẢN PHẨM NỔI BẬT)
   -------------------------------------------------------------------------- */
.section-block {
  padding-block: 28px 36px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: #141414;
}

.section-more-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333333;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.section-more-link:hover {
  color: var(--accent-bronze-dark);
  transform: translateX(2px);
}

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

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

.product-thumb-wrap {
  position: relative;
  background-color: #F4F4F2;
  border-radius: 6px;
  aspect-ratio: 4 / 3.1;
  overflow: hidden;
  margin-bottom: 12px;
  cursor: pointer;
}

.product-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  transition: transform 0.35s ease;
}

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

.wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #444444;
  transition: all 0.2s ease;
}

.wishlist-btn:hover,
.wishlist-btn.active {
  color: #E53935;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wishlist-btn.active svg {
  fill: #E53935;
  stroke: #E53935;
}

.product-badge-sale {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  background-color: #141414;
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
}

.product-quick-bar {
  position: absolute;
  inset-inline: 10px;
  bottom: 10px;
  z-index: 3;
  display: flex;
  gap: 6px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.btn-quick-action {
  flex: 1;
  background: rgba(20, 20, 20, 0.92);
  color: #FFFFFF;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 4px;
  text-align: center;
  transition: background 0.18s ease;
}

.btn-quick-action:hover {
  background: var(--accent-bronze-dark);
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-name {
  font-size: 0.92rem;
  font-weight: 500;
  color: #222222;
  cursor: pointer;
  transition: color 0.15s ease;
}

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

.product-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-price {
  font-size: 0.96rem;
  font-weight: 800;
  color: #141414;
}

.product-original-price {
  font-size: 0.8rem;
  color: #999999;
  text-decoration: line-through;
}

.product-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
}

.stars-gold {
  color: var(--star-gold);
  letter-spacing: 1px;
  font-size: 0.82rem;
}

.rating-meta {
  color: #6B6B6B;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   6. Mid-Page Promo Banner (ƯU ĐÃI ĐẶC BIỆT GIẢM ĐẾN 30%)
   -------------------------------------------------------------------------- */
.promo-banner-section {
  margin-block: 16px 32px;
}

.promo-banner-box {
  position: relative;
  max-width: 1440px;
  margin-inline: auto;
  min-height: 320px;
  background-color: #EAE5DC;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.promo-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.promo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(242, 239, 233, 0.96) 0%,
    rgba(242, 239, 233, 0.88) 38%,
    rgba(242, 239, 233, 0.15) 68%,
    rgba(242, 239, 233, 0.0) 100%
  );
}

.promo-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 42px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.promo-left {
  max-width: 420px;
}

.promo-eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #222222;
  margin-bottom: 4px;
}

.promo-heading {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  color: #141414;
}

.promo-discount-giant {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 6vw, 5.2rem);
  font-weight: 900;
  line-height: 0.95;
  color: var(--accent-bronze);
  letter-spacing: -0.03em;
  margin-block: 2px 8px;
}

.promo-subtext {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #333333;
  margin-bottom: 18px;
}

.promo-script-right {
  font-family: var(--font-script);
  font-size: clamp(2.1rem, 3.3vw, 3rem);
  color: #2B2B2B;
  transform: rotate(-8deg);
  text-align: center;
  line-height: 0.95;
  white-space: pre-line;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
  align-self: flex-end;
  margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   7. Full Interactive Product Catalog & Advanced Filter Section
   -------------------------------------------------------------------------- */
.catalog-section {
  padding-block: 28px 44px;
  border-top: 1px solid var(--border-light);
}

.catalog-filter-bar {
  background-color: var(--bg-surface);
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.filter-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.category-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cat-pill {
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background-color: #FFFFFF;
  color: #333333;
  border: 1px solid var(--border-light);
  transition: all 0.18s ease;
}

.cat-pill:hover,
.cat-pill.active {
  background-color: #141414;
  color: #FFFFFF;
  border-color: #141414;
}

.search-input-wrap {
  position: relative;
  min-width: 260px;
  flex: 1;
  max-width: 340px;
}

.search-input-wrap input {
  width: 100%;
  padding: 9px 14px 9px 36px;
  border-radius: 6px;
  border: 1px solid #D8D6D0;
  background-color: #FFFFFF;
  font-size: 0.85rem;
}

.search-input-wrap svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #777777;
}

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

.filter-select {
  padding: 7px 12px;
  border-radius: 6px;
  border: 1px solid #D8D6D0;
  background-color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 500;
  color: #222222;
}

.filter-reset-btn {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-bronze-dark);
  text-decoration: underline;
  margin-left: auto;
}

/* --------------------------------------------------------------------------
   8. Lookbook Section (LOOKBOOK - 4 Column Grid)
   -------------------------------------------------------------------------- */
.lookbook-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.lookbook-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 1 / 0.88;
  cursor: pointer;
  background-color: #D8D4CC;
}

.lookbook-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.lookbook-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.05) 55%);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.lookbook-caption {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.15;
  color: #FFFFFF;
  text-transform: uppercase;
  white-space: pre-line;
  letter-spacing: 0.03em;
}

.lookbook-line {
  width: 24px;
  height: 2px;
  background-color: #FFFFFF;
  margin-top: 8px;
  transition: width 0.25s ease;
}

.lookbook-card:hover .lookbook-line {
  width: 48px;
}

/* --------------------------------------------------------------------------
   9. Voucher Strip
   -------------------------------------------------------------------------- */
.voucher-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 12px;
}

.voucher-card {
  background: #FFFFFF;
  border: 1px dashed #C7B299;
  border-radius: 6px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.voucher-code-badge {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent-bronze-dark);
  background: #F9F3EE;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 3px;
}

.voucher-desc {
  font-size: 0.75rem;
  color: #555555;
  line-height: 1.3;
}

.btn-copy-voucher {
  background: #141414;
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   10. Footer (#F7F6F3 matching reference design)
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--bg-footer);
  border-top: 1px solid var(--border-light);
  padding-top: 48px;
  margin-top: 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
  gap: 36px;
  padding-bottom: 40px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 10px;
  margin-bottom: 18px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #141414;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  transition: background-color 0.2s ease;
}

.social-circle:hover {
  background-color: var(--accent-bronze);
}

.footer-col-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #141414;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links a,
.footer-links button {
  font-size: 0.82rem;
  color: #5A5A5A;
  text-align: left;
  transition: color 0.15s ease;
}

.footer-links a:hover,
.footer-links button:hover {
  color: #141414;
}

.newsletter-form {
  display: flex;
  margin-top: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #DFDDD8;
  border-right: none;
  border-radius: 4px 0 0 4px;
  background-color: #FFFFFF;
  font-size: 0.82rem;
}

.newsletter-form button {
  width: 42px;
  background-color: #141414;
  color: #FFFFFF;
  border-radius: 0 4px 4px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.newsletter-form button:hover {
  background-color: var(--accent-bronze-dark);
}

.footer-bottom {
  border-top: 1px solid #E5E3DD;
  padding-block: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: #777777;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* --------------------------------------------------------------------------
   11. Modern Native <dialog closedby="any"> Modals & Drawers
   -------------------------------------------------------------------------- */
dialog.sanda-dialog,
dialog.nomasole-dialog {
  margin: auto;
  border: none;
  border-radius: 10px;
  background: #FFFFFF;
  color: var(--text-primary);
  box-shadow: var(--shadow-modal);
  max-width: 920px;
  width: calc(100% - 32px);
  max-height: 90vh;
  overflow-y: auto;
  padding: 0;
}

dialog.sanda-dialog.drawer-right,
dialog.nomasole-dialog.drawer-right {
  margin: 0 0 0 auto;
  max-width: 480px;
  width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  border-radius: 0;
}

dialog.sanda-dialog::backdrop,
dialog.nomasole-dialog::backdrop {
  background-color: rgba(15, 15, 15, 0.55);
  backdrop-filter: blur(3px);
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #FFFFFF;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
}

.modal-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.modal-body {
  padding: 24px;
}

/* Product Detail Modal Layout */
.pdp-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 28px;
}

.pdp-main-img-box {
  background: #F4F4F2;
  border-radius: 8px;
  aspect-ratio: 4 / 3.2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 12px;
}

.pdp-main-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.pdp-thumb-item {
  width: 68px;
  height: 56px;
  border-radius: 6px;
  background: #F4F4F2;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
}

.pdp-thumb-item.active {
  border-color: #141414;
}

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

.swatch-list, .size-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.color-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 6px;
  border: 1.5px solid var(--border-light);
  font-size: 0.8rem;
  font-weight: 600;
  background: #FFFFFF;
}

.color-pill-btn.active {
  border-color: #141414;
  background: #F8F8F6;
}

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

.size-box-btn {
  min-width: 46px;
  height: 40px;
  padding-inline: 10px;
  border-radius: 6px;
  border: 1.5px solid var(--border-light);
  font-size: 0.84rem;
  font-weight: 700;
  background: #FFFFFF;
  transition: all 0.15s ease;
}

.size-box-btn.active {
  background: #141414;
  color: #FFFFFF;
  border-color: #141414;
}

.size-box-btn:disabled {
  opacity: 0.35;
  text-decoration: line-through;
  cursor: not-allowed;
}

/* Cart & Checkout Styles */
.freeship-progress-box {
  background: #F8F5F1;
  border: 1px solid #E5D9CD;
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 0.82rem;
}

.freeship-bar-track {
  height: 6px;
  background: #E2DBD3;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 6px;
}

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

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

.cart-item-thumb {
  width: 72px;
  height: 60px;
  background: #F4F4F2;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: 4px;
}

.qty-control button {
  width: 26px;
  height: 26px;
  font-weight: 700;
}

.qty-control span {
  min-width: 28px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #333333;
}

.form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #D5D3CE;
  border-radius: 6px;
  font-size: 0.85rem;
}

/* Responsive Data Table (Modern Web Guidance `responsive-table` compliance) */
.table-wrapper {
  overflow: auto;
  max-inline-size: 100%;
  max-block-size: min(500px, 80vh);
  container-type: inline-size;
  border: 1px solid var(--border-light);
  border-radius: 8px;
}

.table-wrapper table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.84rem;
}

.table-wrapper thead {
  position: sticky;
  inset-block-start: 0;
  z-index: 1;
  background: #F5F5F3;
}

.table-wrapper th,
.table-wrapper td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.table-wrapper tbody th {
  position: sticky;
  inset-inline-start: 0;
  background: #FFFFFF;
  font-weight: 700;
}

@container (width < 600px) {
  .table-wrapper table,
  .table-wrapper thead,
  .table-wrapper tbody,
  .table-wrapper tr,
  .table-wrapper th,
  .table-wrapper td {
    display: block;
  }

  .table-wrapper thead {
    display: none;
  }

  .table-wrapper tr {
    margin-block-end: 1rem;
    border: 1px solid #ccc;
  }

  .table-wrapper tbody th {
    position: sticky;
    inset-block-start: 0;
    z-index: 2;
    background: #eee;
  }

  .table-wrapper td:nth-child(2)::before {
    content: var(--label-2, "Thông tin") ": ";
    font-weight: 600;
  }

  .table-wrapper td:nth-child(3)::before {
    content: var(--label-3, "Chi tiết") ": ";
    font-weight: 600;
  }
}

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

.toast-msg {
  background: #141414;
  color: #FFFFFF;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  border-left: 4px solid var(--accent-bronze);
  animation: slideInUp 0.25s ease;
}

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

/* --------------------------------------------------------------------------
   12. Responsive Breakpoints (Tablet & Mobile)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .products-grid-4,
  .lookbook-grid-4,
  .voucher-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .main-nav {
    gap: 16px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-bar-inner {
    gap: 14px;
    font-size: 0.72rem;
  }
  .main-nav {
    display: none;
  }
  .main-nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    inset-inline: 0;
    background: #FFFFFF;
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .category-cards-grid {
    grid-template-columns: 1fr;
  }
  .hero-content-wrap,
  .promo-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .hero-script-callout {
    margin-top: 0;
    align-self: flex-end;
  }
  .pdp-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
