/* ============================================
   FIREFIGHTER STORE - Modern Light Theme
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #D32F2F;
  --primary-dark: #B71C1C;
  --primary-light: #FFCDD2;
  --secondary: #FFC107;
  --secondary-dark: #FF8F00;
  --accent: #1565C0;
  --text-primary: #212121;
  --text-secondary: #616161;
  --text-light: #9E9E9E;
  --bg-white: #FFFFFF;
  --bg-light: #FAFAFA;
  --bg-gray: #F5F5F5;
  --border: #E0E0E0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
  --max-width: 1280px;
}

/* --- Logo FOUC prevention ---
   Hide the default logo brand text until customize-loader has had a chance to
   apply the admin-provided siteName. Without JS the class .bw-js never gets
   added and the text stays visible (good for noscript + SEO). */
html.bw-js:not(.bw-ready) .logo .logo-brand {
  opacity: 0;
}
.logo .logo-brand {
  transition: opacity 0.12s ease-out;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
  transition: all var(--transition);
}

input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  transition: border-color var(--transition);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
}

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

/* --- Top Bar --- */
.top-bar {
  background: var(--text-primary);
  color: #fff;
  font-size: 0.8rem;
  padding: 8px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar a {
  color: #ccc;
}

.top-bar a:hover {
  color: var(--secondary);
}

/* --- Header --- */
.header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}

.logo svg {
  width: 40px;
  height: 40px;
}

.logo span {
  color: var(--text-primary);
}

/* Search */
.search-bar {
  flex: 1;
  max-width: 500px;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 12px 48px 12px 20px;
  border-radius: 50px;
  background: var(--bg-gray);
  border: 1.5px solid transparent;
  font-size: 0.95rem;
}

.search-bar input:focus {
  border-color: var(--primary);
  background: var(--bg-white);
}

.search-bar button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-bar button:hover {
  background: var(--primary-dark);
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-actions a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  position: relative;
}

.nav-actions a:hover {
  color: var(--primary);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Main Nav */
.main-nav {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}

.main-nav ul {
  display: flex;
  gap: 0;
  justify-content: center;
}

.main-nav li a {
  display: block;
  padding: 14px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  transition: color var(--transition);
}

.main-nav li a:hover,
.main-nav li a.active {
  color: var(--primary);
}

.main-nav li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
  transition: width var(--transition);
}

.main-nav li a:hover::after,
.main-nav li a.active::after {
  width: 60%;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  font-size: 1.5rem;
  color: var(--text-primary);
}

/* --- Hero Section --- */
.hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(255,193,7,0.18), transparent 45%),
    radial-gradient(circle at 10% 85%, rgba(211,47,47,0.10), transparent 50%),
    linear-gradient(135deg, #FFFFFF 0%, #FFF8F0 55%, #FFF3E0 100%);
  padding: 96px 0 88px;
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(211,47,47,0.08), transparent 70%);
  top: -120px;
  right: -80px;
  animation: heroFloat 9s ease-in-out infinite;
}

.hero::after {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255,193,7,0.12), transparent 70%);
  bottom: -80px;
  left: 10%;
  animation: heroFloat 11s ease-in-out -3s infinite;
}

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

.hero .container {
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
  animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(211,47,47,0.08);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 22px;
  letter-spacing: 0.3px;
  border: 1px solid rgba(211,47,47,0.18);
}

.hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(211,47,47,0.18);
  animation: heroBadgePulse 1.8s ease-in-out infinite;
}

@keyframes heroBadgePulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(211,47,47,0.18); }
  50%      { box-shadow: 0 0 0 7px rgba(211,47,47,0.05); }
}

.hero h1 {
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  color: var(--text-primary);
}

.hero h1 .highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero h1 .highlight::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 10px;
  background: rgba(255,193,7,0.45);
  z-index: -1;
  border-radius: 4px;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 500px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 36px;
}

.hero-trust {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-trust-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-trust-item strong {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.hero-trust-item span {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-trust-stars {
  color: var(--secondary-dark);
  font-size: 1rem;
  margin-bottom: 2px;
  letter-spacing: 1px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
  animation: heroFadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.hero-image::before {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(255,255,255,0.9), rgba(255,255,255,0) 65%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.hero-image img {
  max-height: 460px;
  object-fit: contain;
  filter: drop-shadow(0 25px 50px rgba(211,47,47,0.25));
  position: relative;
  z-index: 1;
  animation: heroImgFloat 6s ease-in-out infinite;
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(211,47,47,0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: var(--bg-gray);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  background: var(--primary);
  color: white;
}

/* --- Section Titles --- */
.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-title p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.section-title .underline {
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 4px;
  margin: 16px auto 0;
}

/* --- Features Strip --- */
.features-strip {
  background: var(--bg-white);
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}

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

.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  cursor: default;
}

.feature-item:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
}

.feature-icon {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, rgba(211,47,47,0.12), rgba(255,193,7,0.12));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}

.feature-item:hover .feature-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  transform: scale(1.05) rotate(-3deg);
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  color: var(--primary);
  transition: color var(--transition);
}

.feature-item:hover .feature-icon svg {
  color: #fff;
  stroke: #fff;
}

.feature-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.feature-item p {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* --- Categories --- */
.categories {
  padding: 80px 0;
  background: var(--bg-light);
}

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

.category-card {
  position: relative;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: left;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: block;
  aspect-ratio: 4 / 5;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(211,47,47,0.18);
}

.category-card .cat-img {
  position: absolute;
  inset: 0;
  background: var(--bg-gray);
  overflow: hidden;
}

.category-card .cat-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.25) 45%, transparent 75%);
  transition: opacity var(--transition);
  z-index: 1;
}

.category-card:hover .cat-img::after {
  background: linear-gradient(to top, rgba(211,47,47,0.85) 0%, rgba(0,0,0,0.35) 45%, transparent 75%);
}

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

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

.category-card h3 {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.category-card h3::after {
  content: "→";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.25);
  font-size: 1rem;
  transition: all var(--transition);
}

.category-card:hover h3::after {
  background: #fff;
  color: var(--primary);
  transform: translateX(4px);
}

/* --- Product Grid --- */
.products-section {
  padding: 80px 0;
}

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.products-header h2 {
  font-size: 2rem;
  font-weight: 800;
}

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

.product-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  border: 1px solid var(--border);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.1);
  border-color: transparent;
}

.product-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
  white-space: nowrap;
}

.badge-new {
  background: var(--primary);
}

.badge-sale {
  background: linear-gradient(135deg, #E53935, var(--primary));
}

.badge-hot {
  background: linear-gradient(135deg, #FF6F00, #D84315);
}

.badge-hot::before {
  content: "★";
  font-size: 0.8rem;
  line-height: 1;
}

.product-image {
  position: relative;
  height: 280px;
  background: var(--bg-gray);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  /* .product-image is an <a> link wrapping the image — reset defaults */
  text-decoration: none;
  color: inherit;
}

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

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

.product-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 14px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.25));
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

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

.product-info {
  padding: 20px;
}

.product-category {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.product-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-name a:hover {
  color: var(--primary);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
}

.stars {
  color: var(--secondary);
  font-size: 0.85rem;
}

.rating-count {
  font-size: 0.8rem;
  color: var(--text-light);
}

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

.price-current {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
}

.price-old {
  font-size: 0.9rem;
  color: var(--text-light);
  text-decoration: line-through;
}

/* --- Collection landing page --- */
.collection-hero {
  padding: 56px 0 40px;
  background: linear-gradient(135deg, #fff4f0, #ffe8df);
  background-size: cover;
  background-position: center;
  color: var(--text-primary);
}
.collection-hero.has-banner {
  color: #fff;
  padding: 80px 0;
}
.collection-hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin: 12px 0 10px;
}
.collection-hero .collection-subtitle {
  font-size: 1.05rem;
  max-width: 700px;
  line-height: 1.55;
  opacity: 0.9;
}
.collection-hero .breadcrumb a {
  color: inherit;
  opacity: 0.9;
}
.collection-layout {
  padding: 32px 0 64px;
}

/* --- Featured Collections block (homepage) --- */
.featured-collections {
  padding: 64px 0;
  background: var(--bg-white);
}
.featured-collections .section-title {
  text-align: center;
  margin-bottom: 32px;
}
.featured-collections .section-title h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.featured-collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.collection-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: #1a1a1a;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.collection-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.collection-card .coll-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.collection-card:hover .coll-bg { transform: scale(1.06); }
.collection-card .coll-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.75));
}
.collection-card .coll-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px;
  z-index: 2;
}
.collection-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.collection-card .coll-desc {
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.collection-card .coll-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  opacity: 0.95;
}

/* --- Product Filter (products page) --- */
.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 40px 0 80px;
}

/* "Filters" toggle button is mobile-only (shown by the @media query below) */
.mobile-filter-toggle { display: none; }

.sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.filter-group {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
}

.filter-group h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.filter-group label:hover {
  color: var(--primary);
}

.filter-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.price-range {
  display: flex;
  gap: 12px;
  align-items: center;
}

.price-range input {
  width: 100%;
  padding: 10px;
}

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

.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
}

.color-swatch:hover,
.color-swatch.active {
  border-color: var(--primary);
  transform: scale(1.15);
}

.size-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.size-btn {
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.size-btn:hover,
.size-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* Sort bar */
.sort-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: var(--bg-gray);
  border-radius: var(--radius-md);
}

.sort-bar .result-count {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.sort-bar select {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-white);
}

/* --- Product Detail --- */
.product-detail {
  padding: 40px 0 80px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: 100px;
}

.main-image {
  position: relative;
  width: 100%;
  aspect-ratio: 700 / 741;  /* matches the native aspect of scraped shirt mockups */
  /* No max-height — allow the box to honor the aspect ratio so the full shirt
     (collar + hem) is always visible. A hard max-height squashed the box wider
     than tall on bigger viewports, and object-fit:cover then cropped the top
     and bottom of the shirt. */
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #ffffff;
  margin-bottom: 16px;
}

.main-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;     /* never crop — letterbox if aspect drifts */
  background: #ffffff;
}

/* Side thumbnails (front / back switcher on product detail) */
.product-gallery {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 100%;
  min-width: 0;
  width: 100%;        /* don't let the flex children force container bigger */
}
.product-gallery .gallery-main {
  flex: 1 1 0;        /* 0 basis so flex distributes by available space, not content */
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.product-gallery .gallery-main .main-image {
  max-width: 100%;
}
.side-thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.side-thumb {
  width: 60px;
  height: 60px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  overflow: hidden;
  background: #fff;
}
.side-thumb.active {
  border-color: var(--primary);
}
.side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f5f5f5;
}

/* Color tint overlay system */
.color-tint-overlay {
  position: absolute;
  inset: 0;
  mix-blend-mode: color;
  pointer-events: none;
  background: transparent;
  transition: background 0.3s ease, opacity 0.3s ease;
  z-index: 1;
}
.brightness-overlay {
  position: absolute;
  inset: 0;
  mix-blend-mode: soft-light;
  pointer-events: none;
  background: transparent;
  transition: background 0.3s ease;
  z-index: 2;
}

.thumb-images {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.thumb-images::-webkit-scrollbar {
  height: 4px;
}
.thumb-images::-webkit-scrollbar-track {
  background: transparent;
}
.thumb-images::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.thumb-wrap {
  position: relative;
  width: 60px;
  height: 60px;
  min-width: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color var(--transition);
  flex-shrink: 0;
}
.thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb-wrap .thumb-tint {
  border-radius: 0;
}
.thumb-wrap .thumb-bright {
  border-radius: 0;
}
.thumb-wrap:hover,
.thumb-wrap.active {
  border-color: var(--primary);
}

/* Legacy thumb image styles for non-tinted products */
.thumb-images > img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color var(--transition);
}

.thumb-images > img:hover,
.thumb-images > img.active {
  border-color: var(--primary);
}

/* Card tint overlays */
.product-image {
  position: relative;
}
.product-image .card-tint,
.product-image .card-bright {
  border-radius: 0;
}

/* Variant count badge on product cards */
.variant-count-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-gray);
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 4px;
}

/* ---- PRODUCT TYPE Selector ---- */
.product-type-section {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 12px;
  background: #fafafa;
}
.product-type-section h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.pt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.pt-header h4 { margin-bottom: 0; }
.pt-scroll-btns {
  display: inline-flex;
  gap: 6px;
}
.pt-scroll-btns button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
}
.pt-scroll-btns button:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.pt-thumbs-wrap {
  position: relative;
  padding-bottom: 10px;
}
.pt-thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(96px, 1fr);
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 10px;
  /* hide scrollbar but allow wheel scroll */
  scrollbar-width: thin;
}
.pt-thumbs::-webkit-scrollbar { height: 4px; }
.pt-thumbs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.pt-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  min-width: 84px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.pt-thumb:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.pt-thumb.active {
  border-color: var(--primary);
  border-width: 2px;
  box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.15);
}
.pt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f3f4f6;
  display: block;
  flex: 1 1 auto;
  min-height: 0;
}
.pt-thumb .pt-thumb-label {
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  padding: 4px 2px;
  color: var(--text-secondary);
  background: #fff;
  border-top: 1px solid var(--border);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pt-thumb.active .pt-thumb-label {
  color: var(--primary);
  font-weight: 700;
}
.pt-progress {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}
.pt-progress-bar {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.pt-label {
  margin-top: 10px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}
.pt-price {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 2px;
}
.variant-selector-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}
.variant-thumbs-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  flex: 1;
  padding: 4px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.variant-thumbs-scroll::-webkit-scrollbar {
  height: 3px;
}
.variant-thumbs-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}
.variant-thumb {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
}
.variant-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.variant-thumb:hover {
  border-color: #999;
}
.variant-thumb.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(185, 28, 28, 0.2);
}
.variant-scroll-btn {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}
.variant-scroll-btn:hover {
  background: var(--bg-gray);
  color: var(--text-primary);
}
.variant-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
#variant-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}
#variant-price {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.product-detail-info h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.detail-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
}

.detail-price .old-price {
  font-size: 1.2rem;
  color: var(--text-light);
  text-decoration: line-through;
  margin-left: 12px;
  font-weight: 500;
}

.detail-description-wrap {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.detail-description {
  color: var(--text-secondary);
  line-height: 1.7;
  /* Clamp to 3 lines by default. When .expanded is added on the wrapper,
     the clamp is released and the full text is shown. */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.detail-description-wrap.expanded .detail-description {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.detail-desc-toggle {
  background: none;
  border: none;
  padding: 6px 0 0;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.detail-desc-toggle:hover {
  text-decoration: underline;
}

.detail-options {
  margin-bottom: 28px;
}

.detail-options h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
}

.quantity-selector button {
  width: 44px;
  height: 44px;
  background: var(--bg-gray);
  border: 1.5px solid var(--border);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-selector button:first-child {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.quantity-selector button:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.quantity-selector input {
  width: 60px;
  height: 44px;
  text-align: center;
  border-radius: 0;
  border-left: none;
  border-right: none;
  font-weight: 700;
}

.detail-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}

.detail-meta {
  padding: 20px;
  background: var(--bg-gray);
  border-radius: var(--radius-md);
}

.detail-meta p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.detail-meta p:last-child {
  border-bottom: none;
}

.detail-meta strong {
  color: var(--text-primary);
}

/* --- Cart --- */
.cart-section {
  padding: 40px 0 80px;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
}

.cart-table th {
  text-align: left;
  padding: 16px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  border-bottom: 2px solid var(--border);
}

.cart-table td {
  padding: 20px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.cart-product {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-product img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.cart-product-name {
  font-weight: 600;
}

.cart-product-variant {
  font-size: 0.85rem;
  color: var(--text-light);
}

.cart-remove {
  color: var(--text-light);
  background: none;
  font-size: 0.85rem;
}

.cart-remove:hover {
  color: var(--primary);
}

.cart-summary-section {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 32px;
}

.cart-summary {
  background: var(--bg-gray);
  border-radius: var(--radius-md);
  padding: 32px;
}

.cart-summary h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.summary-row.total {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  border-top: 2px solid var(--border);
  margin-top: 12px;
  padding-top: 16px;
}

/* --- Checkout --- */
.checkout-section {
  padding: 40px 0 80px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
}

.checkout-form h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  margin-top: 32px;
}

.checkout-form h3:first-child {
  margin-top: 0;
}

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

.form-row.full {
  grid-template-columns: 1fr;
}

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

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
}

/* --- Newsletter --- */
.newsletter {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 70px 0;
  color: white;
  text-align: center;
}

.newsletter h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.newsletter p {
  opacity: 0.85;
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 0;
}

.newsletter-form input {
  flex: 1;
  border-radius: 50px 0 0 50px;
  border: none;
  padding: 14px 24px;
}

.newsletter-form button {
  padding: 14px 32px;
  background: var(--secondary);
  color: var(--text-primary);
  font-weight: 700;
  border-radius: 0 50px 50px 0;
}

.newsletter-form button:hover {
  background: var(--secondary-dark);
}

/* --- Footer --- */
.footer {
  background: var(--text-primary);
  color: #ccc;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-about .logo {
  color: white;
  margin-bottom: 16px;
}

.footer-about .logo .highlight {
  color: var(--primary);
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  transition: all var(--transition);
}

.social-links a:hover {
  background: var(--primary);
  color: white;
}

.footer h4 {
  color: white;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul li a {
  font-size: 0.9rem;
  color: #999;
  transition: color var(--transition);
}

.footer ul li a:hover {
  color: var(--secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: #777;
}

/* --- Page Header (breadcrumb) --- */
.page-header {
  background: var(--bg-gray);
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

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

.breadcrumb .sep {
  color: var(--border);
}

.page-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
}

/* --- Tabs --- */
.tabs {
  margin-top: 60px;
}

.tab-nav {
  display: flex;
  border-bottom: 2px solid var(--border);
  gap: 0;
}

.tab-btn {
  padding: 14px 28px;
  background: none;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-light);
  position: relative;
}

.tab-btn.active {
  color: var(--primary);
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
  transform: scaleX(0);
  transition: transform var(--transition);
}

.tab-btn.active::after {
  transform: scaleX(1);
}

.tab-content {
  padding: 32px 0;
  display: none;
}

.tab-content.active {
  display: block;
}

/* --- Toast / Notification --- */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--text-primary);
  color: white;
  padding: 16px 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(120%);
  transition: transform 0.4s ease;
  z-index: 9999;
}

.toast.show {
  transform: translateY(0);
}

.toast .toast-icon {
  width: 24px;
  height: 24px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Empty Cart --- */
.empty-cart {
  text-align: center;
  padding: 80px 20px;
}

.empty-cart svg {
  width: 100px;
  height: 100px;
  color: var(--text-light);
  margin-bottom: 24px;
}

.empty-cart h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.empty-cart p {
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* --- Pagination --- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination button {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  font-weight: 600;
  color: var(--text-secondary);
}

.pagination button.active,
.pagination button:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .shop-layout {
    grid-template-columns: 240px 1fr;
  }
}

@media (max-width: 768px) {
  /* ---- Global density ---- */
  html { font-size: 15px; }
  .container { padding: 0 16px; }

  /* ---- Top bar (minimal on mobile) ---- */
  .top-bar {
    font-size: 0.72rem;
    padding: 6px 0;
  }
  .top-bar .container {
    flex-direction: column;
    gap: 2px;
    align-items: center;
    text-align: center;
  }
  .top-bar div:last-child { font-size: 0.7rem; }

  /* ---- Header: logo + cart + hamburger in one tight row ---- */
  .header .container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    padding: 10px 16px;
    align-items: center;
    min-height: 56px;
  }
  .header .logo {
    font-size: 1rem;
    gap: 6px;
  }
  .header .logo svg { width: 28px; height: 28px; }
  .header .search-bar { display: none; }
  .header .nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
  }
  .header .nav-actions > a {
    font-size: 0;  /* hide text label */
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  .header .nav-actions > a svg { width: 22px; height: 22px; }
  /* Hide Account + Wishlist, keep only Cart on mobile */
  .header .nav-actions > a:not([href*="cart"]):not([href*="Cart"]) {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 0;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
  }
  .cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    padding: 0 5px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  /* ---- Main nav (mobile drawer-style) ---- */
  .main-nav {
    border-top: 1px solid var(--border);
    background: #fff;
  }
  .main-nav ul {
    display: none;
    flex-direction: column;
    padding: 0;
  }
  .main-nav ul.open {
    display: flex;
  }
  .main-nav li a {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    display: block;
  }
  .main-nav li a.active {
    background: var(--bg-light);
    color: var(--primary);
  }

  /* ---- Hero ---- */
  .hero {
    padding: 40px 0 48px;
  }
  .hero .container {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
  .hero-content { animation-duration: 0.5s; }
  .hero h1 {
    font-size: 2rem;
    line-height: 1.15;
  }
  .hero p {
    font-size: 1rem;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-buttons {
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
  }
  .hero-trust {
    justify-content: center;
    gap: 20px;
  }
  .hero-trust-item strong { font-size: 1.1rem; }
  .hero-image {
    order: -1;
  }
  .hero-image img {
    max-height: 280px;
  }

  /* ---- Hero slider ---- */
  .hero-slider {
    max-height: 300px;
  }
  .hero-arrow {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }

  /* ---- Page header ---- */
  .page-header {
    padding: 28px 0 20px;
  }
  .page-header h1 {
    font-size: 1.6rem;
  }
  .breadcrumb {
    font-size: 0.78rem;
  }

  /* ---- Features strip ---- */
  .features-strip { padding: 24px 0; }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .feature-item {
    flex-direction: column;
    text-align: center;
    padding: 14px 10px;
    gap: 10px;
  }
  .feature-item h4 { font-size: 0.82rem; }
  .feature-item p { font-size: 0.72rem; }

  /* ---- Categories / products grids ---- */
  .categories, .products-section { padding: 40px 0; }
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .category-card {
    aspect-ratio: 3 / 4;
  }
  .category-card h3 {
    font-size: 1rem;
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
  .category-card h3::after {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }
  .section-title h2 { font-size: 1.5rem; }
  .section-title p { font-size: 0.9rem; }
  .products-header h2 { font-size: 1.4rem; }

  /* Product card tweaks */
  .product-image { height: 200px; }
  .product-info { padding: 12px; }
  .product-name { font-size: 0.88rem; }
  .product-category { font-size: 0.7rem; }
  .price-current { font-size: 1rem; }
  .price-old { font-size: 0.85rem; }
  .product-badge {
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    font-size: 0.62rem;
  }
  /* Always show actions on mobile (no hover). Sized smaller so the action row
     doesn't cover the shirt design on narrow phones. */
  .product-actions {
    transform: translateY(0);
    opacity: 1;
    background: rgba(0,0,0,0.15);
    padding: 6px;
    gap: 4px;
  }
  .product-actions .btn-sm {
    padding: 5px 9px;
    font-size: 0.72rem;
    border-radius: 999px;
    min-height: 0;
  }
  .product-actions .btn-sm svg { width: 14px; height: 14px; }
  .product-actions .btn-icon { width: 30px; height: 30px; }
  .product-actions .btn-icon svg { width: 15px; height: 15px; }

  /* ---- Shop layout (products page) ---- */
  .shop-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  /* Sidebar is collapsed by default on mobile; "Filters" button toggles it.
     We use max-height so CSS transitions smoothly. */
  .sidebar {
    position: static;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .sidebar.open {
    max-height: 2000px;  /* large enough to fit all filters */
    padding: 4px 0 0;
  }
  .filter-group { margin-bottom: 12px; padding: 16px; }
  .filter-group h3 { font-size: 0.88rem; margin-bottom: 8px; }

  /* Mobile "Filters" toggle button (inserted by JS on first products page load) */
  .mobile-filter-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    width: 100%;
    justify-content: center;
  }
  .mobile-filter-toggle.open {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
  }

  .sort-bar {
    flex-wrap: wrap;
    gap: 10px;
  }

  /* ---- Product detail ---- */
  .product-detail { padding: 20px 0; }
  .product-detail-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .product-gallery {
    position: static;
    justify-content: center;
  }
  /* Hide side thumbnail strip on mobile and let the main image fill the width */
  .side-thumbs { display: none; }
  .product-gallery .gallery-main {
    max-width: 100%;
    width: 100%;
  }
  .main-image {
    max-height: none;
  }
  .detail-info h1 { font-size: 1.4rem; }
  .detail-price { font-size: 1.3rem; }
  .size-options { flex-wrap: wrap; gap: 6px; }
  .size-btn { min-width: 44px; min-height: 44px; }
  .color-swatch { width: 32px; height: 32px; }
  .detail-options { margin-bottom: 14px; }

  /* Product Type (variants) */
  .product-type-section {
    padding: 12px 14px;
  }
  .pt-thumb { min-width: 72px; }
  .pt-thumb .pt-thumb-label { font-size: 9px; }

  /* ---- Cart page ---- */
  .cart-table { font-size: 0.85rem; }
  .cart-table th,
  .cart-table td {
    padding: 10px 8px;
  }
  .cart-table img {
    width: 52px !important;
    height: 52px !important;
  }
  .cart-product-name { font-size: 0.85rem; }
  .cart-product-variant { font-size: 0.72rem; }
  .cart-summary-section {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cart-summary { padding: 20px 18px; }
  .cart-summary h3 { font-size: 1.1rem; }
  /* Collapse cart columns on very small screens — see 480px breakpoint */

  /* ---- Checkout ---- */
  .checkout-section { padding: 24px 0; }
  .checkout-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .checkout-form h3 { font-size: 1rem; margin-top: 16px; }
  .form-row.full { grid-template-columns: 1fr; }

  /* ---- Footer ---- */
  .footer { padding: 40px 0 0; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: left;
  }
  .footer-grid > div h4 { font-size: 0.95rem; margin-bottom: 12px; }
  .footer-grid > div ul { margin-bottom: 0; }
  .footer-grid > div li { padding: 4px 0; }

  /* ---- Newsletter ---- */
  .newsletter { padding: 40px 0; }
  .newsletter h2 { font-size: 1.4rem; }
  .newsletter-form {
    flex-direction: column;
    gap: 10px;
  }
  .newsletter-form input {
    border-radius: 50px;
    text-align: center;
  }
  .newsletter-form button {
    border-radius: 50px;
    width: 100%;
  }

  /* ---- Forms & inputs sizing (touch) ---- */
  input, select, textarea, button, .btn {
    font-size: 16px !important;   /* prevents iOS zoom on focus */
  }
  .btn { padding: 12px 22px; min-height: 44px; }
  .btn-sm { padding: 10px 18px; font-size: 0.88rem !important; }

  /* ---- Cart slide (mobile: full-width) ---- */
  .cart-slide__panel {
    max-width: 100%;
  }

  /* ---- Toast / modal positioning ---- */
  .toast {
    bottom: 16px;
    right: 12px;
    left: 12px;
    font-size: 0.88rem;
    padding: 12px 18px;
  }

  /* ---- Featured section ---- */
  .products-section { padding: 32px 0; }
}

@media (max-width: 480px) {
  html { font-size: 14.5px; }
  .container { padding: 0 14px; }

  /* ---- Hero even tighter ---- */
  .hero { padding: 32px 0 40px; }
  .hero h1 { font-size: 1.7rem; }
  .hero p { font-size: 0.95rem; }
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero-buttons .btn { width: 100%; }
  .hero-trust {
    gap: 14px;
  }
  .hero-trust-item strong { font-size: 1rem; }
  .hero-trust-item span { font-size: 0.68rem; }

  /* ---- Keep 2-column product grid (not 1-column — looks like mobile apps) ---- */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .product-image { height: 170px; }
  .product-info { padding: 10px; }
  .product-name { font-size: 0.82rem; }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .category-card h3 { font-size: 0.88rem; }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  /* ---- Form rows collapse ---- */
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* ---- Cart table: show items as cards (hide table headers) ---- */
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td {
    display: block;
    width: 100%;
  }
  .cart-table tr {
    position: relative;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .cart-table td {
    padding: 4px 0 !important;
    border: 0 !important;
  }
  .cart-table td:nth-child(2)::before { content: 'Price: '; font-weight: 600; color: var(--text-secondary); }
  .cart-table td:nth-child(4)::before { content: 'Total: '; font-weight: 600; color: var(--text-secondary); }
  .cart-table td:last-child {
    position: absolute;
    top: 12px;
    right: 0;
    width: auto;
    text-align: right;
    padding: 0 !important;
  }

  /* ---- Checkout payment icons ---- */
  #paymentMethodsCheckout label span:last-child {
    display: none !important;  /* hide the card-logo SVGs, too cramped */
  }

  /* ---- Product detail ---- */
  .detail-info h1 { font-size: 1.25rem; }
  .product-type-section .pt-header h4 { font-size: 0.78rem; }

  /* ---- Page header ---- */
  .page-header h1 { font-size: 1.4rem; }

  /* ---- About / FAQ / policy tighter paragraphs ---- */
  .about-hero h2 { font-size: 1.2rem; }
  .policy-h3 { font-size: 1.05rem; }
  .faq summary { padding: 14px 16px; font-size: 0.9rem; }
}

/* ---- Prevent horizontal scroll on any device ---- */
html, body { overflow-x: hidden; }
img, video { max-width: 100%; height: auto; }

/* --- Utility --- */
/* --- Card Color Swatches --- */
.product-colors {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.card-color-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
}

.card-color-swatch:hover {
  transform: scale(1.2);
}

.card-color-swatch.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px white, 0 0 0 4px var(--primary);
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

/* --- Content Pages (Contact / FAQ / Return Policy) --- */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 880px) {
  .info-grid { grid-template-columns: 1fr; gap: 32px; }
}

.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.info-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.info-card:last-child {
  border-bottom: 0;
}

.info-card .info-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.info-card a {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.info-card a:hover {
  text-decoration: underline;
}

.info-card p {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-top: 2px;
  line-height: 1.5;
}

/* FAQ accordion */
.faq-group {
  margin-bottom: 40px;
}

.faq-group-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.faq {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  transition: all var(--transition);
}

.faq[open] {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  user-select: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform var(--transition);
  flex-shrink: 0;
  line-height: 1;
}

.faq[open] summary::after {
  content: "−";
}

.faq > div {
  padding: 0 20px 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.92rem;
}

.faq > div a {
  color: var(--primary);
  text-decoration: underline;
}

/* Return policy styles */
.policy-hero {
  display: flex;
  gap: 20px;
  align-items: center;
  background: linear-gradient(135deg, #FFF8F0 0%, #FFE8D6 100%);
  padding: 28px;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  border: 1px solid var(--primary-light);
}

.policy-hero__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.policy-hero h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.policy-hero p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 40px;
}

@media (max-width: 640px) {
  .policy-grid { grid-template-columns: repeat(2, 1fr); }
  .policy-hero { flex-direction: column; text-align: center; }
}

.policy-pill {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  text-align: center;
}

.policy-pill strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 4px;
  line-height: 1;
}

.policy-pill span {
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.policy-h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 32px 0 12px;
  padding-left: 14px;
  border-left: 4px solid var(--primary);
}

.policy-list {
  padding-left: 20px;
  margin-bottom: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.policy-list li {
  list-style: disc;
  margin-bottom: 4px;
}

.policy-list a {
  color: var(--primary);
  text-decoration: underline;
}

.policy-list li strong {
  color: var(--text-primary);
}

/* --- Admin-authored page content (/<slug>.html with custom HTML from admin) --- */
.bw-admin-page {
  line-height: 1.75;
  color: var(--text-primary);
}

.bw-admin-page h2 {
  font-size: 1.7rem;
  font-weight: 800;
  margin: 32px 0 14px;
  letter-spacing: -0.01em;
}

.bw-admin-page h2:first-child {
  margin-top: 0;
}

.bw-admin-page h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 28px 0 10px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
}

.bw-admin-page h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 22px 0 8px;
}

.bw-admin-page p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.bw-admin-page ul,
.bw-admin-page ol {
  margin: 0 0 18px 22px;
  color: var(--text-secondary);
}

.bw-admin-page ul li,
.bw-admin-page ol li {
  list-style: disc;
  margin-bottom: 6px;
}

.bw-admin-page ol li {
  list-style: decimal;
}

.bw-admin-page a {
  color: var(--primary);
  text-decoration: underline;
}

.bw-admin-page a:hover {
  color: var(--primary-dark);
}

.bw-admin-page strong {
  color: var(--text-primary);
  font-weight: 700;
}

.bw-admin-page img {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: 16px 0;
}

.bw-admin-page blockquote {
  border-left: 4px solid var(--primary);
  padding: 8px 0 8px 18px;
  margin: 18px 0;
  color: var(--text-secondary);
  font-style: italic;
  background: var(--bg-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.bw-admin-page hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 28px 0;
}

/* --- Size Guide Page --- */
.size-hero {
  display: flex;
  gap: 20px;
  align-items: center;
  background: linear-gradient(135deg, #FFF8F0 0%, #FFE8D6 100%);
  padding: 26px;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  border: 1px solid var(--primary-light);
}

.size-hero__icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.size-hero h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.size-hero p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (max-width: 560px) {
  .size-hero { flex-direction: column; text-align: center; }
}

.measure-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

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

.measure-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.measure-card__num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.measure-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.measure-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.size-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 24px 0 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}

.size-tab {
  background: var(--bg-light);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

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

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

.size-panel h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.size-fit {
  color: var(--text-light);
  font-size: 0.88rem;
  margin-bottom: 18px;
  font-style: italic;
}

.size-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: #fff;
}

.size-table thead {
  background: var(--bg-light);
}

.size-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border);
}

.size-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.size-table tbody tr:last-child td {
  border-bottom: 0;
}

.size-table tbody tr:hover td {
  background: var(--bg-light);
}

.size-table td:first-child {
  font-weight: 700;
  color: var(--text-primary);
}

.size-footer-cta {
  margin-top: 40px;
  padding: 24px 28px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.size-footer-cta strong {
  font-size: 1.05rem;
  display: block;
  margin-bottom: 2px;
}

.size-footer-cta p {
  font-size: 0.88rem;
  opacity: 0.92;
}

.size-footer-cta .btn-primary {
  background: #fff;
  color: var(--primary);
}

.size-footer-cta .btn-primary:hover {
  background: var(--secondary);
  color: var(--text-primary);
}

/* --- Track Order Page --- */
.track-hero {
  display: flex;
  gap: 20px;
  align-items: center;
  background: linear-gradient(135deg, #FFF8F0 0%, #FFE8D6 100%);
  padding: 26px;
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
  border: 1px solid var(--primary-light);
}

.track-hero__icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.track-hero h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.track-hero p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (max-width: 560px) {
  .track-hero { flex-direction: column; text-align: center; }
}

.track-error {
  margin-top: 12px;
  padding: 12px 14px;
  background: #FFEBEE;
  color: #C62828;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  border: 1px solid #FFCDD2;
}

.track-error a {
  color: #C62828;
  text-decoration: underline;
}

.track-hint {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: center;
}

.track-hint a {
  color: var(--primary);
  text-decoration: underline;
}

.track-legend {
  margin-top: 36px;
}

.track-legend__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.track-legend__item {
  background: var(--bg-light);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.track-legend__item strong {
  margin-right: 4px;
  color: var(--text-primary);
}

.track-legend__item span:last-child {
  flex: 1 1 100%;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.track-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #999;
  flex-shrink: 0;
}

.track-dot--pending    { background: #F9A825; }
.track-dot--processing { background: #1976D2; }
.track-dot--shipped    { background: #00897B; }
.track-dot--delivered  { background: #2E7D32; }
.track-dot--cancelled  { background: #C62828; }

/* Result card */
.track-result__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.track-result__order {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}

.track-result__date {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 2px;
}

.track-result__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-light);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.track-result__status--cancelled {
  background: #FFEBEE;
  color: #C62828;
}

.track-result__desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.track-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 20px 0 24px;
  padding: 14px 8px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
}

.track-step {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 70px;
}

.track-step__bar {
  flex: 1 1 auto;
  height: 3px;
  background: var(--border);
  margin-top: 18px;
  position: relative;
  min-width: 16px;
}

.track-step__dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.track-step__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
}

.track-step--active .track-step__dot {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.track-step--active .track-step__label {
  color: var(--primary);
}

.track-step--current .track-step__dot {
  box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.2);
  animation: trackPulse 1.8s ease-in-out infinite;
}

@keyframes trackPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.2); }
  50%      { box-shadow: 0 0 0 7px rgba(211, 47, 47, 0.05); }
}

.track-result__tracking {
  padding: 12px 14px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.88rem;
}

.track-result__tracking code {
  background: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.88rem;
  border: 1px solid var(--border);
}

.track-result__items {
  margin-bottom: 18px;
}

.track-result__items h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.track-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.track-item:last-child {
  border-bottom: 0;
}

.track-item__meta {
  color: var(--text-light);
  font-size: 0.82rem;
  font-weight: 400;
}

.track-item__qty {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.track-item__price {
  font-weight: 700;
  color: var(--primary);
  min-width: 60px;
  text-align: right;
}

.track-result__total {
  text-align: right;
  padding: 12px 0;
  font-size: 1rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  margin-bottom: 18px;
}

.track-result__total strong {
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 800;
  margin-left: 6px;
}

/* --- About Us Page --- */
.about-hero {
  background:
    radial-gradient(circle at 90% 15%, rgba(255,193,7,0.14), transparent 45%),
    radial-gradient(circle at 10% 85%, rgba(211,47,47,0.08), transparent 45%),
    linear-gradient(135deg, #FFFFFF 0%, #FFF8F0 100%);
  padding: 72px 0;
}

.about-hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 880px) {
  .about-hero__grid { grid-template-columns: 1fr; gap: 32px; }
}

.about-hero__badge {
  display: inline-block;
  background: rgba(211,47,47,0.1);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 7px 16px;
  border-radius: 50px;
  margin-bottom: 18px;
  letter-spacing: 0.3px;
  border: 1px solid rgba(211,47,47,0.2);
}

.about-hero h2 {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.about-hero p {
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 1.02rem;
  margin-bottom: 16px;
  max-width: 560px;
}

.about-hero__cta {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.about-hero__image {
  display: flex;
  justify-content: center;
}

.about-hero__image img {
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
  filter: drop-shadow(0 25px 50px rgba(211,47,47,0.2));
}

/* Stats */
.about-stats {
  padding: 48px 24px;
}

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

@media (max-width: 640px) {
  .about-stats__grid { grid-template-columns: repeat(2, 1fr); }
}

.about-stat {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: all var(--transition);
}

.about-stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.about-stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  line-height: 1;
}

.about-stat span {
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Values */
.about-values {
  padding: 56px 24px;
}

.about-values__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 8px;
}

@media (max-width: 960px) {
  .about-values__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .about-values__grid { grid-template-columns: 1fr; }
}

.about-value {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  transition: all var(--transition);
}

.about-value:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.about-value__icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(211,47,47,0.12), rgba(255,193,7,0.12));
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  transition: all var(--transition);
}

.about-value:hover .about-value__icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  transform: scale(1.05);
}

.about-value h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.about-value p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Timeline */
.about-timeline {
  padding: 40px 24px 64px;
  max-width: 840px;
}

.about-timeline__list {
  position: relative;
  padding-left: 28px;
}

.about-timeline__list::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), rgba(211,47,47,0.2));
}

.about-timeline__item {
  position: relative;
  padding: 0 0 28px 22px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  align-items: start;
}

.about-timeline__item:last-child {
  padding-bottom: 0;
}

.about-timeline__item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(211,47,47,0.2);
}

.about-timeline__year {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.5px;
  padding-top: 4px;
}

.about-timeline__item h4 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.about-timeline__item p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

@media (max-width: 520px) {
  .about-timeline__item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* CTA band */
.about-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}

.about-cta h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.about-cta p {
  font-size: 1.05rem;
  opacity: 0.92;
  margin-bottom: 28px;
}

.about-cta__buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.about-cta .btn-primary:hover {
  background: var(--secondary);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
}

.about-cta .btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}

.about-cta .btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  color: #fff;
}

/* --- Cart Slide (side drawer) --- */
.cart-slide {
  position: fixed;
  inset: 0;
  z-index: 10200;
  display: none;
}

.cart-slide.open {
  display: block;
}

.cart-slide__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cart-slide.open .cart-slide__backdrop {
  opacity: 1;
}

.cart-slide__panel {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 100%;
  max-width: 440px;
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.15);
}

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

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

.cart-slide__head h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
}

.cart-slide__close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-gray);
  color: var(--text-secondary);
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
}

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

.cart-slide__ship {
  padding: 12px 22px 0;
  flex-shrink: 0;
}

.cart-slide__ship-msg {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.cart-slide__ship-msg--ok {
  color: #2e7d32;
}

.cart-slide__ship-msg strong {
  color: var(--primary);
}

.cart-slide__ship-msg--ok strong {
  color: #2e7d32;
}

.cart-slide__ship-bar {
  height: 6px;
  background: var(--bg-gray);
  border-radius: 999px;
  overflow: hidden;
}

.cart-slide__ship-bar > div {
  height: 100%;
  background: var(--primary);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.cart-slide__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px 22px 24px;
}

.cart-slide__empty {
  text-align: center;
  padding: 40px 10px;
  color: var(--text-secondary);
}

.cart-slide__empty svg {
  color: var(--text-light);
  margin-bottom: 16px;
}

.cart-slide__empty h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.cart-slide__empty p {
  font-size: 0.9rem;
  margin-bottom: 20px;
}

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

.cart-slide__item:last-child {
  border-bottom: 0;
}

.cart-slide__item > img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg-light);
  flex-shrink: 0;
}

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

.cart-slide__item-name {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding-right: 24px;
}

.cart-slide__item-meta {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cart-slide__item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cart-slide__item-row strong {
  color: var(--primary);
  font-weight: 800;
}

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

.cart-slide__qty button {
  width: 30px;
  height: 30px;
  background: #fff;
  color: var(--text-primary);
  font-size: 1rem;
  border: 0;
  cursor: pointer;
}

.cart-slide__qty button:hover {
  background: var(--bg-gray);
}

.cart-slide__qty span {
  min-width: 30px;
  text-align: center;
  font-weight: 600;
  font-size: 0.88rem;
}

.cart-slide__remove {
  position: absolute;
  top: 14px;
  right: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: transparent;
  color: var(--text-light);
  font-size: 18px;
  line-height: 1;
  border: 0;
  cursor: pointer;
}

.cart-slide__remove:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.cart-slide__foot {
  flex-shrink: 0;
  padding: 16px 22px 22px;
  border-top: 1px solid var(--border);
  background: #fff;
}

.cart-slide__summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1rem;
  margin-bottom: 12px;
}

.cart-slide__summary strong {
  font-size: 1.25rem;
  color: var(--text-primary);
}

.cart-slide__view {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  text-decoration: underline;
}

.cart-slide__view:hover {
  color: var(--primary);
}

.cart-slide__checkout {
  width: 100%;
  justify-content: center;
}

@media (max-width: 480px) {
  .cart-slide__panel {
    max-width: 100%;
  }
}

/* --- Hero Slider --- */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 460px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  z-index: 1;
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: drop-shadow(0 25px 50px rgba(211,47,47,0.15));
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-primary);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all var(--transition);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-arrow:hover {
  background: #fff;
  color: var(--primary);
  transform: translateY(-50%) scale(1.08);
}

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

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 3;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.hero-dot:hover {
  background: #fff;
}

.hero-dot.active {
  width: 28px;
  border-radius: 5px;
  background: var(--primary);
}

@media (max-width: 768px) {
  .hero-slider { max-height: 320px; }
  .hero-arrow { width: 36px; height: 36px; font-size: 22px; }
}

/* --- Quick Add Modal --- */
.qa-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.qa-modal.open {
  display: flex;
  animation: qaFadeIn 0.2s ease;
}

@keyframes qaFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.qa-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.55);
  backdrop-filter: blur(4px);
}

.qa-dialog {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow: auto;
  animation: qaSlideUp 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes qaSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.qa-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-gray);
  color: var(--text-secondary);
  font-size: 22px;
  line-height: 1;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qa-close:hover {
  background: var(--primary);
  color: #fff;
}

.qa-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  padding: 28px;
}

.qa-image {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.qa-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qa-info {
  display: flex;
  flex-direction: column;
}

.qa-title {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 10px;
  padding-right: 36px;
}

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

.qa-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
}

.qa-old-price {
  font-size: 0.95rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.qa-section {
  margin-bottom: 16px;
}

.qa-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.qa-label strong {
  color: var(--text-primary);
  text-transform: none;
  font-weight: 700;
  letter-spacing: 0;
}

.qa-required {
  color: var(--primary);
  text-transform: none;
  font-weight: 700;
}

.qa-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.qa-size {
  min-width: 48px;
  height: 40px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  background: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: all var(--transition);
}

.qa-size:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.qa-size.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.qa-shake {
  animation: qaShake 0.4s ease;
}

@keyframes qaShake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-6px); }
  75%      { transform: translateX(6px); }
}

.qa-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.qa-color {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1.5px var(--border);
  cursor: pointer;
  padding: 0;
  transition: all var(--transition);
}

.qa-color:hover {
  transform: scale(1.1);
}

.qa-color.active {
  box-shadow: 0 0 0 2px var(--primary);
}

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

.qa-qty button {
  width: 40px;
  height: 40px;
  background: #fff;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.qa-qty button:hover {
  background: var(--bg-gray);
}

.qa-qty input {
  width: 56px;
  height: 40px;
  border: none;
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  text-align: center;
  font-weight: 600;
  padding: 0;
  border-radius: 0;
}

.qa-qty input::-webkit-outer-spin-button,
.qa-qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qa-actions {
  margin-top: auto;
  display: flex;
  gap: 12px;
  align-items: center;
  padding-top: 16px;
}

.qa-add-btn {
  flex: 1;
}

@media (max-width: 600px) {
  .qa-dialog {
    max-height: 95vh;
  }
  .qa-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }
  .qa-image {
    max-width: 200px;
    margin: 0 auto;
  }
  .qa-title {
    font-size: 1.15rem;
  }
}
