/* =========================================
   IJOMI — Main Stylesheet
   Brand: Red #ED1C24 / White / Dark #1a1a1a
   ========================================= */

/* ---- Skeleton shimmer animation ---- */
@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Header Search ---- */
.header-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search-input {
  width: 0;
  padding: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font);
  font-size: .9rem;
  color: var(--dark);
  transition: width .25s ease, padding .25s ease, border-color .25s ease;
  border-radius: 20px;
  border: 1.5px solid transparent;
}

.header-search-wrap.open .header-search-input {
  width: 200px;
  padding: 7px 36px 7px 14px;
  border-color: var(--gray-200);
  background: var(--gray-50);
}

.header-search-btn {
  /*position: absolute;*/
  right: 6px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  padding: 4px;
  transition: color .2s;
}

.header-search-btn:hover {
  color: var(--red);
}

/* dropdown kết quả */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  z-index: 500;
  overflow: hidden;
  display: none;
}

.search-dropdown.show {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background .15s;
  text-decoration: none;
  color: var(--dark);
}

.search-result-item:hover {
  background: var(--gray-50);
}

.search-result-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--gray-50);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-result-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.search-result-name {
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.3;
}

.search-result-price {
  font-size: .8rem;
  color: var(--red);
  font-weight: 700;
}

.search-no-result {
  padding: 20px;
  text-align: center;
  color: var(--gray-400);
  font-size: .88rem;
}

/* ---- Back to Top ---- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 80px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-red);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .3s, transform .3s;
  z-index: 400;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--red-dark);
}

/* ---- CSS Custom Properties ---- */
:root {
  --red: #ED1C24;
  --red-dark: #c0101a;
  --red-light: #ff4d53;
  --white: #ffffff;
  --black: #0d0d0d;
  --dark: #1a1a1a;
  --gray-900: #1f1f1f;
  --gray-800: #2d2d2d;
  --gray-600: #555555;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f8f9fa;
  --font: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
  --shadow: 0 4px 16px rgba(0, 0, 0, .10);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .16);
  --shadow-red: 0 8px 24px rgba(237, 28, 36, .30);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --header-h: 72px;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: var(--font);
  border: none;
  background: none;
}

input,
select,
textarea {
  font-family: var(--font);
}

/* ---- Container ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Typography ---- */
h1,
h2,
h3,
h4,
h5 {
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

.highlight {
  color: var(--red);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--red-dark);
  border-color: var(--red-dark);
  box-shadow: var(--shadow-red);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--red);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
}

.btn-white:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, .1);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

.btn-full {
  width: 100%;
}

/* ---- Section Spacing ---- */
.section {
  padding: 80px 0;
}

/* ---- Section Header ---- */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  color: var(--dark);
}

.section-subtitle {
  margin-top: 12px;
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

.section-eyebrow.white {
  color: rgba(255, 255, 255, .75);
}

/* ================================================
   HEADER
   ================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 20px;
}

.logo-link {
  flex-shrink: 0;
}

.logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.nav-link {
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--gray-800);
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--red);
  background: rgba(237, 28, 36, .06);
}

.nav-link.nav-cta {
  background: var(--red);
  color: var(--white);
  border-radius: 50px;
  padding: 8px 20px;
  margin-left: 8px;
}

.nav-link.nav-cta:hover {
  background: var(--red-dark);
  color: var(--white);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--red);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color var(--transition);
}

.header-phone:hover {
  color: var(--red-dark);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ================================================
   HERO
   ================================================ */
.hero {
  position: relative;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d0508 50%, #1a1a1a 100%);
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(237, 28, 36, .15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(237, 28, 36, .08) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 80px;
}

.hero-badge {
  display: inline-block;
  background: rgba(237, 28, 36, .15);
  border: 1px solid rgba(237, 28, 36, .3);
  color: var(--red-light);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.hero-title {
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-desc {
  color: rgba(255, 255, 255, .75);
  font-size: 1.05rem;
  max-width: 500px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-desc strong {
  color: var(--red-light);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 32px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat strong {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

.stat span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, .55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-shoe-card {
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  position: relative;
  min-width: 280px;
}

.shoe-badge-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 50px;
  white-space: nowrap;
}

.shoe-placeholder {
  padding: 16px 0;
  display: flex;
  justify-content: center;
}

.shoe-info {
  margin-top: 16px;
}

.shoe-name {
  display: block;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
}

.shoe-price {
  display: block;
  color: var(--red-light);
  font-size: 1.4rem;
  font-weight: 900;
  margin-top: 6px;
}

/* Hero Wave */
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  display: block;
}

/* ================================================
   USP STRIP
   ================================================ */
.usp-strip {
  background: var(--gray-50);
  padding: 28px 0;
  border-bottom: 1px solid var(--gray-200);
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.usp-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.usp-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.usp-item strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--dark);
}

.usp-item span {
  display: block;
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-top: 2px;
}

/* ================================================
   PRODUCTS SECTION
   ================================================ */
.products-section {
  background: var(--white);
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 9px 22px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--gray-100);
  border: 2px solid transparent;
  transition: var(--transition);
}

.filter-btn:hover {
  color: var(--red);
  background: rgba(237, 28, 36, .06);
}

.filter-btn.active {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Product Card */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-300, #d1d5db);
}

.product-img-wrap {
  position: relative;
  background: var(--gray-50);
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

/* Ảnh thật từ DB — hiển thị đầy đủ, không crop */
.product-real-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  /*padding: 12px;*/
  box-sizing: border-box;
}

/* SVG placeholder */
.product-img-placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  /*padding: 20px;*/
  box-sizing: border-box;
}

.product-img-placeholder.red {
  filter: drop-shadow(0 8px 20px rgba(237, 28, 36, .35));
}

.product-img-placeholder.dark {
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .3));
}

.product-img-placeholder.blue {
  filter: drop-shadow(0 8px 20px rgba(0, 51, 153, .35));
}

.product-img-placeholder.green {
  filter: drop-shadow(0 8px 20px rgba(0, 153, 51, .35));
}

.product-img-placeholder.yellow {
  filter: drop-shadow(0 8px 20px rgba(255, 215, 0, .4));
}

.product-img-placeholder.pink {
  filter: drop-shadow(0 8px 20px rgba(255, 105, 180, .4));
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  letter-spacing: 0.05em;
}

.product-badge.hot {
  background: var(--red);
  color: var(--white);
}

.product-badge.new {
  background: #10b981;
  color: var(--white);
}

.product-badge.sale {
  background: #f59e0b;
  color: var(--white);
}

.product-badge.limited {
  background: #8b5cf6;
  color: var(--white);
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-spec {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-bottom: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-cat {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(0.98rem * 1.4 * 2);
}

.product-rating {
  font-size: 0.8rem;
  color: #f59e0b;
  margin-bottom: 10px;
}

.product-rating span {
  color: var(--gray-400);
}

.product-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--red);
}

.product-btn {
  width: 100%;
  margin-top: auto;
}

.products-cta {
  text-align: center;
  margin-top: 40px;
}

/* ================================================
   ABOUT STRIP
   ================================================ */
.about-strip {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.about-strip-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-strip-text .section-title {
  text-align: left;
  margin-bottom: 16px;
}

.about-strip-text p {
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 20px;
}

.about-list {
  margin-bottom: 28px;
}

.about-list li {
  padding: 6px 0;
  font-weight: 500;
  color: var(--dark);
  font-size: 0.95rem;
}

.about-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 20px;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.about-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow);
}

.about-card.highlight-card {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.about-card-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.about-card strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.about-card span {
  font-size: 0.8rem;
  color: var(--gray-600);
}

.about-card.highlight-card span {
  color: rgba(255, 255, 255, .75);
}

/* ================================================
   SIZE GUIDE
   ================================================ */
.size-section {
  background: var(--white);
}

.size-guide-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.size-guide-info h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: var(--dark);
}

.size-guide-info ol {
  list-style: decimal;
  padding-left: 20px;
  color: var(--gray-600);
  line-height: 2;
  font-size: 0.95rem;
}

.size-note {
  margin-top: 20px;
  background: rgba(237, 28, 36, .06);
  border-left: 4px solid var(--red);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  color: var(--dark);
}

.size-table-wrap {
  overflow-x: auto;
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.size-table th {
  background: var(--red);
  color: var(--white);
  padding: 12px 16px;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.size-table th:first-child {
  border-radius: 8px 0 0 0;
}

.size-table th:last-child {
  border-radius: 0 8px 0 0;
}

.size-table td {
  padding: 11px 16px;
  text-align: center;
  border-bottom: 1px solid var(--gray-200);
  color: var(--dark);
  font-weight: 500;
}

.size-table tbody tr:hover {
  background: var(--gray-50);
}

.size-table tbody tr:last-child td {
  border-bottom: none;
}

/* ================================================
   DEALER SECTION
   ================================================ */
.dealer-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d0508 60%, #1a1a2e 100%);
  position: relative;
  overflow: hidden;
}

.dealer-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 70% at 20% 50%, rgba(237, 28, 36, .12) 0%, transparent 70%);
  pointer-events: none;
}

.dealer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.dealer-text .section-title {
  text-align: left;
  margin-bottom: 16px;
}

.white-text {
  color: rgba(255, 255, 255, .75);
  line-height: 1.7;
  margin-bottom: 24px;
}

.section-title.white {
  color: var(--white);
}

.dealer-benefits {
  margin-bottom: 0;
}

.dealer-benefits li {
  color: rgba(255, 255, 255, .85);
  padding: 6px 0;
  font-weight: 500;
  font-size: 0.95rem;
}

/* Dealer Form */
.dealer-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.form-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 24px;
  text-align: center;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--dark);
  background: var(--gray-50);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(237, 28, 36, .12);
  background: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-error {
  display: block;
  color: var(--red);
  font-size: 0.78rem;
  margin-top: 4px;
  min-height: 16px;
}

.form-disclaimer {
  text-align: center;
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-top: 12px;
  line-height: 1.5;
}

/* Form Success */
.form-success {
  text-align: center;
  padding: 40px 24px;
}

.success-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
}

.form-success h3 {
  color: #10b981;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.form-success p {
  color: var(--gray-600);
  margin-bottom: 24px;
}

/* ================================================
   TESTIMONIALS
   ================================================ */
.testimonials-section {
  background: var(--gray-50);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(237, 28, 36, .2);
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 1rem;
  margin-bottom: 14px;
}

.testimonial-card p {
  color: var(--gray-600);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}

.testimonial-card footer {
  font-size: 0.85rem;
  color: var(--gray-400);
}

.testimonial-card footer strong {
  color: var(--dark);
}

/* ================================================
   CTA SECTION
   ================================================ */
.cta-section {
  background: var(--red);
  padding: 72px 0;
  text-align: center;
}

.cta-inner h2 {
  color: var(--white);
  margin-bottom: 12px;
}

.cta-inner p {
  color: rgba(255, 255, 255, .8);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
  background: var(--gray-900);
  color: rgba(255, 255, 255, .7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-logo {
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .55);
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .7);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--red);
  color: var(--white);
}

.footer-links h4,
.footer-contact h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, .55);
  transition: color var(--transition);
}

.footer-links ul li a:hover {
  color: var(--red-light);
}

.footer-contact ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 10px;
}

.footer-contact ul li svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.footer-contact ul li a {
  color: rgba(255, 255, 255, .55);
  transition: color var(--transition);
}

.footer-contact ul li a:hover {
  color: var(--red-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, .35);
}

.footer-bottom a {
  color: rgba(255, 255, 255, .45);
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: var(--red-light);
}

/* ================================================
   FLOATING CTA
   ================================================ */
.floating-cta {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .25);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: pulse-btn 2.5s infinite;
}

.float-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(0, 0, 0, .3);
  animation: none;
}

.phone-btn {
  background: #25D366;
}

.order-btn {
  background: var(--red);
}

@keyframes pulse-btn {

  0%,
  100% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, .25), 0 0 0 0 rgba(237, 28, 36, .4);
  }

  50% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, .25), 0 0 0 10px rgba(237, 28, 36, 0);
  }
}

/* ================================================
   PAGES: PRODUCTS
   ================================================ */
.page-hero {
  background: linear-gradient(135deg, #1a1a1a, #2d0508);
  padding: 60px 0;
  text-align: center;
  color: var(--white);
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 12px;
}

.page-hero p {
  color: rgba(255, 255, 255, .7);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--gray-400);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--gray-400);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--red);
}

.breadcrumb .sep {
  color: var(--gray-600);
}

.page-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding: 48px 0;
}

/* Sidebar */
.sidebar-filter {
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.filter-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}

.filter-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--dark);
  transition: color var(--transition);
}

.filter-option:hover {
  color: var(--red);
}

.filter-option input[type="checkbox"] {
  accent-color: var(--red);
}

.sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 12px 16px;
  background: var(--gray-50);
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  flex-wrap: wrap;
  gap: 12px;
}

.sort-bar span {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.sort-select {
  padding: 6px 12px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--dark);
  background: var(--white);
  cursor: pointer;
}

.products-grid-full {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ================================================
   GUIDE PAGE
   ================================================ */
.guide-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  padding: 48px 0;
}

.guide-nav {
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.guide-nav-list {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}

.guide-nav-list a {
  display: block;
  padding: 13px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition);
}

.guide-nav-list a:last-child {
  border-bottom: none;
}

.guide-nav-list a:hover,
.guide-nav-list a.active {
  background: rgba(237, 28, 36, .06);
  color: var(--red);
  padding-left: 28px;
}

.guide-content h2 {
  font-size: 1.5rem;
  border-bottom: 2px solid var(--red);
  padding-bottom: 12px;
  margin-bottom: 20px;
  margin-top: 40px;
  color: var(--dark);
}

.guide-content h2:first-child {
  margin-top: 0;
}

.guide-content p,
.guide-content li {
  color: var(--gray-600);
  line-height: 1.75;
  font-size: 0.95rem;
}

.guide-content ul {
  list-style: disc;
  padding-left: 20px;
  margin: 12px 0;
}

.guide-content ol {
  list-style: decimal;
  padding-left: 20px;
  margin: 12px 0;
}

.guide-content li {
  margin-bottom: 8px;
}

.info-box {
  background: rgba(237, 28, 36, .05);
  border: 1px solid rgba(237, 28, 36, .2);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 20px 0;
}

.info-box strong {
  color: var(--red);
}

/* ================================================
   CONTACT PAGE
   ================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  padding: 64px 0;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(237, 28, 36, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
}

.contact-item span {
  font-size: 0.88rem;
  color: var(--gray-600);
}

.contact-item a {
  color: var(--red);
  font-weight: 600;
}

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

/* ================================================
   ABOUT PAGE
   ================================================ */
.about-hero {
  background: linear-gradient(135deg, #1a1a1a, #2d0508);
  padding: 80px 0;
  color: var(--white);
  text-align: center;
}

.about-hero h1 {
  color: var(--white);
  margin-bottom: 16px;
}

.about-hero p {
  color: rgba(255, 255, 255, .7);
  max-width: 600px;
  margin: 0 auto;
}

.mission-section {
  padding: 80px 0;
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.mission-text h2 {
  margin-bottom: 20px;
}

.mission-text p {
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 16px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.value-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.value-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.value-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--dark);
}

.value-card p {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ---- Focus-visible accessibility ---- */
.filter-btn:focus-visible,
.nav-link:focus-visible,
.size-chip:focus-visible,
.qty-btn:focus-visible,
.cart-toggle-btn:focus-visible,
.back-to-top:focus-visible,
.float-btn:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

/* ================================================
   RESPONSIVE
   ================================================ */

/* Tablet — header only */
@media (max-width: 900px) {

  /* Switch to hamburger menu earlier */
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease,
                visibility 0.35s ease,
                padding 0.35s ease;
    box-shadow: var(--shadow);
    z-index: 999;
  }

  .main-nav.open {
    max-height: 500px;
    visibility: visible;
    opacity: 1;
    padding: 16px 24px 24px;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-link {
    padding: 12px 16px;
    font-size: 1rem;
  }

  .nav-link.nav-cta {
    text-align: center;
    margin-left: 0;
    margin-top: 8px;
  }

  .hamburger {
    display: flex;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid-full {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .page-layout {
    grid-template-columns: 1fr;
  }

  .sidebar-filter {
    position: static;
  }

  .guide-layout {
    grid-template-columns: 1fr;
  }

  .usp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-strip-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .dealer-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .size-guide-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .mission-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .section {
    padding: 56px 0;
  }

  /* Header mobile — hamburger already shown via 900px breakpoint */
  .header-phone {
    display: none;
  }

  /* An search tren mobile de tranh tran header */
  #header-search-wrap {
    display: none;
  }

  /* Hero mobile */
  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 48px;
    padding-bottom: 80px;
  }

  .hero-visual {
    display: none;
  }

  .hero-stats {
    gap: 20px;
  }

  /* Products mobile */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .products-grid-full {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* Footer mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* Dealer form */
  .form-row {
    grid-template-columns: 1fr;
  }

  .dealer-form-wrap {
    padding: 24px;
  }

  /* About cards */
  .about-card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .products-grid-full {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .usp-grid {
    grid-template-columns: 1fr;
  }

  .about-card-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================
   UTILITY / ANIMATIONS
   ================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* ================================================
   CART SYSTEM
   ================================================ */

/* Cart toggle button in header */
.cart-toggle-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--dark);
  background: var(--gray-100);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.cart-toggle-btn:hover {
  background: rgba(237, 28, 36, .08);
  color: var(--red);
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--red);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 2px solid white;
  line-height: 1;
}

/* Cart Overlay */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 1099;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 100vw;
  height: 100dvh;
  background: var(--white);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 40px rgba(0, 0, 0, .18);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
  flex-shrink: 0;
}

.cart-drawer-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dark);
}

.cart-count-drawer {
  display: inline-block;
  background: var(--red);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 50px;
  margin-left: 6px;
}

.cart-drawer-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-100);
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.cart-drawer-close:hover {
  background: var(--gray-200);
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  scroll-behavior: smooth;
}

.cart-drawer-footer {
  padding: 16px 24px 24px;
  border-top: 1px solid var(--gray-200);
  flex-shrink: 0;
  background: var(--gray-50);
}

/* Cart Item */
.cart-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-200);
  align-items: flex-start;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-img {
  width: 72px;
  height: 56px;
  background: var(--gray-50);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  padding: 6px;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 4px;
}

.cart-item-meta {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--red);
}

.cart-item-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-400);
  padding: 4px;
  border-radius: 6px;
  display: flex;
  transition: color var(--transition);
}

.cart-item-remove:hover {
  color: var(--red);
}

/* Qty control */
.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--gray-100);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.qty-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  transition: background var(--transition);
}

.qty-btn:hover {
  background: var(--gray-200);
}

.qty-val {
  min-width: 28px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
}

/* Cart empty state */
.cart-empty {
  text-align: center;
  padding: 60px 20px;
}

.cart-empty-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
}

.cart-empty p {
  color: var(--gray-600);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

/* Cart summary */
.cart-summary {
  margin-bottom: 16px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.9rem;
}

.cart-summary-row strong {
  font-size: 1.05rem;
  color: var(--red);
}

.cart-summary-row.small {
  font-size: 0.8rem;
  color: var(--gray-400);
}

/* Toast notification */
.cart-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--dark);
  color: white;
  padding: 12px 20px;
  border-radius: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  z-index: 1300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
  max-width: 90vw;
  text-align: center;
}

.cart-toast span {
  font-size: 0.8rem;
  opacity: 0.7;
}

.cart-toast strong {
  font-size: 0.88rem;
}

.cart-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── SIZE PICKER MODAL ─── */
.size-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(3px);
}

.size-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.size-modal {
  background: white;
  border-radius: 24px 24px 0 0;
  padding: 28px 28px 40px;
  width: 100%;
  max-width: 480px;
  position: relative;
  transform: translateY(30px);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 92vh;
  overflow-y: auto;
}

.size-modal-overlay.open .size-modal {
  transform: translateY(0);
}

.size-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-100);
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  transition: var(--transition);
}

.size-modal-close:hover {
  background: var(--gray-200);
}

.size-modal-shoe {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.size-modal h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
  line-height: 1.3;
}

.size-modal-price {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--red);
  margin-bottom: 4px;
}

.size-modal-color {
  font-size: 0.82rem;
  color: var(--gray-400);
  margin-bottom: 20px;
}

.size-modal-section {
  margin-bottom: 20px;
}

.size-modal-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.size-link {
  font-size: 0.78rem;
  color: var(--red);
  font-weight: 500;
}

/* Size grid */
.size-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.size-chip {
  aspect-ratio: 1;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  background: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.size-chip:hover {
  border-color: var(--red);
  color: var(--red);
}

.size-chip.active {
  background: var(--red);
  border-color: var(--red);
  color: white;
  box-shadow: var(--shadow-red);
}

.size-modal-actions {
  margin-top: 4px;
}

/* Product button group (2 buttons) */
.product-btn-group {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
}

.product-btn-group .atc-btn {
  width: 46px;
  height: 46px;
  padding: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
}

.product-btn-group .buy-now-btn {
  flex: 1;
  height: 46px;
  padding: 0 16px;
  font-size: 0.9rem;
  justify-content: center;
  gap: 6px;
  border-radius: 14px;
}

/* ─── CHECKOUT PAGE ─── */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  padding: 48px 0 80px;
  align-items: start;
}

.checkout-form-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.checkout-form-card h2 {
  font-size: 1.3rem;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}

.order-summary-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.order-summary-card h3 {
  font-size: 1rem;
  font-weight: 800;
  padding: 20px 24px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.order-items {
  padding: 16px 24px;
  max-height: 320px;
  overflow-y: auto;
}

.order-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-200);
}

.order-item:last-child {
  border-bottom: none;
}

.order-item-img {
  width: 56px;
  height: 44px;
  background: var(--gray-50);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--gray-200);
  padding: 4px;
}

.order-item-info {
  flex: 1;
  min-width: 0;
}

.order-item-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
}

.order-item-meta {
  font-size: 0.75rem;
  color: var(--gray-400);
}

.order-item-price {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--red);
  flex-shrink: 0;
}

.order-totals {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.order-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  padding: 4px 0;
  color: var(--gray-600);
}

.order-total-row.grand {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dark);
  border-top: 1px solid var(--gray-200);
  margin-top: 8px;
  padding-top: 12px;
}

.order-total-row.grand span:last-child {
  color: var(--red);
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

.payment-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  font-weight: 600;
}

.payment-method:has(input:checked),
.payment-method.selected {
  border-color: var(--red);
  background: rgba(237, 28, 36, .04);
}

.payment-method input[type="radio"] {
  accent-color: var(--red);
}

.payment-icon {
  font-size: 1.4rem;
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 40px;
  justify-content: center;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-400);
}

.step.active {
  color: var(--red);
}

.step.done {
  color: #10b981;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
}

.step.active .step-num {
  background: var(--red);
  color: white;
}

.step.done .step-num {
  background: #10b981;
  color: white;
}

.step-line {
  width: 40px;
  height: 2px;
  background: var(--gray-200);
  margin: 0 4px;
}

/* Empty cart page */
.empty-cart-page {
  text-align: center;
  padding: 80px 20px;
}

.empty-cart-page .icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.empty-cart-page h2 {
  margin-bottom: 12px;
}

.empty-cart-page p {
  color: var(--gray-600);
  margin-bottom: 28px;
}

@media (max-width: 768px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .order-summary-card {
    position: static;
  }

  .cart-drawer {
    width: 100vw;
  }

  .size-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}