/* =============================================
   EMBROIDERY SHOP - MAIN STYLESHEET
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
  --primary: #4C414F;
  --primary-light: #6B5E70;
  --secondary: #F5F5F5;
  --accent: #FF6B6B;
  --accent-hover: #e85555;
  --text-dark: #1A1A1A;
  --text-light: #ffffff;
  --text-muted: #888;
  --bg-light: #ffffff;
  --bg-off: #F9F7F8;
  --bg-card: #ffffff;
  --border: rgba(76, 65, 79, 0.12);
  --shadow-sm: 0 2px 12px rgba(76, 65, 79, 0.08);
  --shadow-md: 0 8px 32px rgba(76, 65, 79, 0.15);
  --shadow-lg: 0 20px 60px rgba(76, 65, 79, 0.2);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 72px;
  --font-heading: 'Montserrat', sans-serif;
  --font-serif: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;
}

[data-theme="dark"] {
  --primary: #8B7A90;
  --primary-light: #A693AB;
  --secondary: #1A1720;
  --text-dark: #F0EDF2;
  --text-light: #F0EDF2;
  --text-muted: #9B8FA0;
  --bg-light: #120F15;
  --bg-off: #1A1720;
  --bg-card: #211C27;
  --border: rgba(139, 122, 144, 0.2);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Utility to prevent layout flash during mode/dir toggles */
.no-transition,
.no-transition * {
  transition: none !important;
  animation: none !important;
}

[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .header-nav {
  flex-direction: row-reverse;
}

[dir="rtl"] .utility-menu {
  flex-direction: row-reverse;
}

[dir="rtl"] .hero-content {
  text-align: right;
}

[dir="rtl"] .dropdown {
  left: auto;
  right: 0;
}

[dir="rtl"] .product-badge {
  left: auto;
  right: 12px;
}

[dir="rtl"] .hamburger {
  margin-left: 0;
  margin-right: auto;
}

[dir="rtl"] .footer-links a:hover {
  padding-left: 0;
  padding-right: 4px;
}

[dir="rtl"] .toast-container {
  right: auto;
  left: 24px;
}

[dir="rtl"] .cart-drawer {
  right: auto;
  left: 0;
  transform: translateX(-100%);
}

[dir="rtl"] .cart-drawer.open {
  transform: translateX(0);
}

[dir="rtl"] .modal-close {
  right: auto;
  left: 16px;
}

[dir="rtl"] .back-to-top {
  right: auto;
  left: 24px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

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

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

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

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}

h4 {
  font-size: 1.2rem;
}

.section-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 500px;
  line-height: 1.7;
}

/* Product Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--font-heading);
}

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

.badge-accent {
  background: var(--accent);
  color: white;
}

.badge-outline {
  border: 1.5px solid var(--border);
  color: var(--text-muted);
}

/* Product detail specific refinements */
.product-detail-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.product-info-tabs {
  margin-top: 32px;
  border-top: 1px solid var(--border);
}

.product-info-tabs .faq-item {
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}

.product-info-tabs .faq-question {
  padding: 16px 0;
  font-size: 0.88rem;
}

.product-info-tabs .faq-answer {
  padding: 0 0 16px;
  font-size: 0.82rem;
}

/* =============================================
   LAYOUT
   ============================================= */
.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
}

section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 50px;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.cont-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 50px;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  margin-top: 2em;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}

.btn:hover::before {
  transform: translateX(0);
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 107, 107, 0.5);
}

.btn-outline {
  border-color: var(--text-dark);
  color: var(--text-dark);
}

.btn-outline:hover {
  background: var(--text-dark);
  color: var(--text-light);
  transform: translateY(-2px);
}

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

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
}

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

.btn-dark:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
  backdrop-filter: blur(20px);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.92);
}

[data-theme="dark"] .site-header.scrolled {
  background: rgba(18, 15, 21, 0.92);
}

.site-header .container {
  width: 100%;
  max-width: 100%;
  height: 100%;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 0 40px;
}

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

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  line-height: 1.1;
}

.logo-text span {
  display: block;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links>li {
  position: relative;
}

.nav-links>li>a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dark);
  border-radius: 8px;
  transition: all var(--transition);
}

.nav-links>li>a:hover,
.nav-links>li>a.active {
  color: var(--accent);
  background: rgba(255, 107, 107, 0.08);
}

.nav-arrow {
  font-size: 0.6rem;
  transition: transform var(--transition);
}

.nav-links>li:hover>a .nav-arrow {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  min-width: 180px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition);
  z-index: 100;
}

.nav-links>li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  border-radius: 8px;
  transition: all var(--transition);
}

.dropdown a:hover {
  background: var(--bg-off);
  color: var(--accent);
  padding-left: 20px;
}

.utility-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.util-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--bg-off);
  border: 1px solid var(--border);
  transition: all var(--transition);
  cursor: pointer;
}

.util-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: scale(1.05);
}

.btn-login {
  padding: 8px 20px;
  width: auto;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--primary);
  color: white;
  border-radius: 8px;
}

.btn-login:hover {
  background: var(--accent);
  transform: scale(1.02);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 10px;
  background: var(--bg-off);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  transform: translateY(-120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav-links {
  padding: 0 24px;
}

.mobile-nav-links li a {
  display: block;
  padding: 14px 0;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.mobile-nav-links li a:hover {
  color: var(--accent);
  padding-left: 8px;
}

.mobile-sub {
  padding-left: 16px;
}

.mobile-sub a {
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.03em !important;
  color: var(--text-muted) !important;
  text-transform: none !important;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 75vh;
  padding: 50px 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(76, 65, 79, 0.88) 0%, rgba(18, 15, 21, 0.72) 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(255, 107, 107, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(76, 65, 79, 0.3) 0%, transparent 40%);
}

.hero-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  position: relative;
  z-index: 2;
}

.hero-content {
  color: white;
  max-width: 650px;
  flex: 1;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 107, 107, 0.2);
  border: 1px solid rgba(255, 107, 107, 0.4);
  color: #FFB3B3;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  animation: fadeInDown 0.8s ease both;
}

.hero-title {
  color: white;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title .accent {
  color: var(--accent);
}

.hero-title .serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.hero-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 520px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-image-wrap {
  flex: 1;
  max-width: 520px;
  position: relative;
  animation: fadeInRight 1s ease 0.4s both;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 30px;
}

.hero-image-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-image-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.hero-image-wrap:hover img {
  transform: scale(1.05);
}

.hero-image-badge {
  position: absolute;
  top: -20px;
  left: -20px;
  background: var(--accent);
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.8rem;
  box-shadow: var(--shadow-md);
  z-index: 3;
}

.hero-stats {
  position: relative;
  margin-top: 0;
  width: 100%;
  justify-content: flex-end;
  z-index: 2;
  display: flex;
  gap: 2px;
  animation: fadeInRight 0.8s ease 0.8s both;
}

.stat-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 20px 28px;
  text-align: center;
}

.stat-card:first-child {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.stat-card:last-child {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: white;
  line-height: 1;
}

.stat-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.hero-scroll .scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
}

/* =============================================
   CATEGORY GRID
   ============================================= */
.categories {
  background: var(--bg-off);
}

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

.cat-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
}

.cat-card-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.cat-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 15, 21, 0.8) 0%, rgba(18, 15, 21, 0.1) 60%);
}

.cat-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 24px;
  transform: translateY(10px);
  transition: transform var(--transition);
}

.cat-card:hover .cat-card-content {
  transform: translateY(0);
}

.cat-emoji {
  font-size: 2rem;
  margin-bottom: 8px;
  display: block;
}

.cat-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.cat-count {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.05em;
}

.cat-arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  opacity: 0;
  transform: scale(0.8);
  transition: all var(--transition);
}

.cat-card:hover .cat-arrow {
  opacity: 1;
  transform: scale(1);
}

/* =============================================
   PRODUCT CARDS
   ============================================= */
.featured {
  background: var(--bg-light);
}

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

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.product-img-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-off);
}

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

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

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: white;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

.product-actions {
  position: absolute;
  bottom: -50px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  transition: bottom var(--transition);
}

.product-card:hover .product-actions {
  bottom: 12px;
}

.product-action-btn {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all var(--transition);
}

.btn-quick-view {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-dark);
  backdrop-filter: blur(10px);
}

.btn-quick-add {
  background: var(--accent);
  color: white;
}

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

.btn-quick-view:hover {
  background: white;
}

.product-info {
  padding: 16px 20px 20px;
}

.product-category {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.product-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

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

.price-current {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
}

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

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.stars {
  color: #FFB800;
  font-size: 0.75rem;
}

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

/* =============================================
   CUSTOMIZATION SECTION
   ============================================= */
.customization {
  background: linear-gradient(135deg, var(--primary) 0%, #2a1f2e 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.customization::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(255, 107, 107, 0.1);
  pointer-events: none;
}

.custom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.custom-content .section-label {
  color: #FFB3B3;
}

.custom-content h2 {
  color: white;
}

.custom-content .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
  max-width: 100%;
}

.custom-steps {
  margin: 36px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.custom-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: all var(--transition);
}

.custom-step:hover .step-num {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.step-text h4 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.step-text p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.custom-ui-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.custom-ui-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: white;
  font-size: 1rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.upload-zone {
  border: 2px dashed rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 20px;
}

.upload-zone:hover {
  border-color: var(--accent);
  background: rgba(255, 107, 107, 0.06);
}

.upload-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.upload-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.upload-hint {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.78rem;
}

.color-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.color-swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 1em;
}

.swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform var(--transition);
  border: 2px solid transparent;
}

.swatch:hover,
.swatch.active {
  transform: scale(1.2);
  border-color: white;
}

/* =============================================
   HOW IT WORKS
   ============================================= */
.how-it-works {
  background: var(--bg-off);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 48px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(to right, var(--accent), var(--primary));
  opacity: 0.3;
  z-index: 0;
}

.step-item {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-icon-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  position: relative;
  overflow: visible;
}

.step-image-box {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
}

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

.step-item:hover .step-img {
  transform: scale(1.1) rotate(2deg);
}

.step-item:hover .step-icon-wrap {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.08) rotate(-3deg);
}

.step-icon-wrap .step-number {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials {
  background: var(--bg-light);
}

.testimonials-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
}

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

.testimonial-card::before {
  content: '"';
  font-family: var(--font-serif);
  font-size: 5rem;
  color: var(--accent);
  opacity: 0.15;
  position: absolute;
  top: 8px;
  left: 24px;
  line-height: 1;
}

.testimonial-stars {
  color: #FFB800;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.testimonial-text {
  color: var(--text-dark);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: white;
  font-family: var(--font-heading);
  flex-shrink: 0;
  overflow: hidden;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-name {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
}

.author-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.testimonial-tag {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 10px;
  background: rgba(255, 107, 107, 0.1);
  color: var(--accent);
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
}

/* =============================================
   BRANDS
   ============================================= */
.brands {
  background: var(--bg-off);
  padding: 48px 0;
}

.brands-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.brands-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.brands-logos {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.brand-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--brand-color, var(--text-muted));
  letter-spacing: 0.05em;
  transition: all var(--transition);
  opacity: 0.8;
  cursor: default;
}

.brand-logo:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.brand-zara {
  --brand-color: #000000;
}

.brand-myntra {
  --brand-color: #ec3d97;
}

/* Myntra Pink */
.brand-fabindia {
  --brand-color: #800000;
}

/* Fabindia Maroon */
.brand-bewakoof {
  --brand-color: #fdd835;
}

/* Bewakoof Yellow */
.brand-westside {
  --brand-color: #e53935;
}

/* Westside Red */
.brand-roadster {
  --brand-color: #8d6e63;
}

/* Roadster Brown */

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner {
  background: var(--accent);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-text h2 {
  color: white;
  font-size: 2.2rem;
}

.cta-text p {
  color: rgba(255, 255, 255, 0.85);
  margin-top: 8px;
  font-size: 1rem;
}

/* =============================================
   PAGE HERO
   ============================================= */
.page-hero {
  background: var(--primary);
  padding: 60px 0 40px;
  color: white;
  text-align: center;
}

.page-hero h1 {
  color: white;
  margin-bottom: 12px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a:hover {
  color: white;
}

/* =============================================
   SHOP PAGE
   ============================================= */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding: 48px 0;
  align-items: start;
}

.filter-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.filter-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-clear {
  font-size: 0.72rem;
  color: var(--accent);
  cursor: pointer;
  font-weight: 600;
}

.filter-section {
  margin-bottom: 28px;
}

.filter-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

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

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-dark);
  transition: color var(--transition);
}

.filter-option:hover {
  color: var(--accent);
}

.filter-checkbox {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: var(--bg-card);
  flex-shrink: 0;
  cursor: pointer;
  appearance: none;
  transition: all var(--transition);
}

.filter-checkbox:checked {
  background: var(--accent);
  border-color: var(--accent);
}

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

.color-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform var(--transition);
  border: 2px solid transparent;
}

.color-dot:hover,
.color-dot.active {
  transform: scale(1.15);
  border-color: var(--text-dark);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.price-range {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.shop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.results-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.sort-select {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-dark);
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
}

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

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.page-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-dark);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.page-btn:hover,
.page-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* =============================================
   PRODUCT DETAIL
   ============================================= */
.product-detail {
  padding: 48px 0 80px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg-off);
  position: relative;
  margin-bottom: 16px;
  cursor: zoom-in;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-main:hover img {
  transform: scale(1.06);
}

.gallery-zoom-hint {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.72rem;
  backdrop-filter: blur(4px);
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery-thumb {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg-off);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
}

.gallery-thumb.active,
.gallery-thumb:hover {
  border-color: var(--accent);
}

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

.product-detail-category {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.product-detail-name {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.product-detail-price {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.detail-price {
  font-size: 2rem;
  font-weight: 900;
  font-family: var(--font-heading);
  color: var(--text-dark);
}

.detail-price-old {
  font-size: 1.2rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.detail-discount {
  background: var(--accent);
  color: white;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
}

.product-detail-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.rating-stars {
  color: #FFB800;
  font-size: 1rem;
}

.rating-score {
  font-weight: 700;
  font-size: 0.9rem;
}

.rating-count-link {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.rating-count-link a {
  color: var(--accent);
  text-decoration: underline;
}

.customization-panel {
  background: var(--bg-off);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 24px 0;
}

.custom-panel-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.option-row {
  margin-bottom: 20px;
}

.option-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 10px;
  display: block;
}

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

.size-btn {
  padding: 8px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  background: var(--bg-card);
  color: var(--text-dark);
  cursor: pointer;
  transition: all var(--transition);
}

.size-btn:hover,
.size-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 107, 107, 0.06);
}

.mini-upload {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 12px;
}

.mini-upload:hover {
  border-color: var(--accent);
  background: rgba(255, 107, 107, 0.04);
}

.mini-upload-icon {
  font-size: 1.5rem;
}

.mini-upload-text {
  font-size: 0.85rem;
  font-weight: 600;
}

.mini-upload-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.text-input-field {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text-dark);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
}

.text-input-field:focus {
  border-color: var(--accent);
}

.cart-section {
  display: flex;
  gap: 12px;
  margin: 24px 0;
}

.qty-picker {
  display: flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.qty-btn {
  width: 44px;
  height: 52px;
  font-size: 1.2rem;
  color: var(--text-dark);
  background: var(--bg-off);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.qty-value {
  width: 48px;
  height: 52px;
  text-align: center;
  border: none;
  outline: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  background: var(--bg-card);
  color: var(--text-dark);
}

.btn-add-cart {
  flex: 1;
  height: 52px;
  background: var(--primary);
  color: white;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-add-cart:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn-wishlist {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: var(--bg-card);
  color: var(--text-dark);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.btn-wishlist:hover {
  border-color: #FF6B6B;
  color: #FF6B6B;
  background: rgba(255, 107, 107, 0.08);
}

.delivery-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--bg-off);
  border-radius: var(--radius-md);
}

.delivery-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
}

.delivery-icon {
  font-size: 1.1rem;
}

.delivery-text strong {
  font-weight: 700;
}

.delivery-text span {
  color: var(--text-muted);
}

/* =============================================
   CUSTOM DESIGN PAGE
   ============================================= */
.custom-design-page {
  padding: 48px 0 80px;
}

.design-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 56px;
  flex-wrap: wrap;
  gap: 8px;
}

.stepper-item {
  display: flex;
  align-items: center;
}

.stepper-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 50px;
  transition: all var(--transition);
  cursor: pointer;
}

.stepper-step.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.stepper-step.done {
  background: rgba(76, 65, 79, 0.1);
  border-color: var(--primary);
}

.stepper-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  font-family: var(--font-heading);
  flex-shrink: 0;
}

.stepper-step.active .stepper-num {
  background: var(--accent);
  color: white;
}

.stepper-step.done .stepper-num {
  background: var(--primary);
  color: white;
}

.stepper-label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stepper-connector {
  width: 40px;
  height: 2px;
  background: var(--border);
  flex-shrink: 0;
}

.stepper-connector.done {
  background: var(--primary);
}

.design-step-panel {
  display: none;
}

.design-step-panel.active {
  display: block;
  animation: fadeInUp 0.4s ease both;
}

.product-selector-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.product-selector-item {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 12px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}

.product-selector-item:hover,
.product-selector-item.active {
  border-color: var(--accent);
  background: rgba(255, 107, 107, 0.04);
}

.product-selector-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.product-selector-name {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.big-upload-zone {
  border: 3px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 64px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg-off);
}

.big-upload-zone:hover {
  border-color: var(--accent);
  background: rgba(255, 107, 107, 0.04);
}

.big-upload-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  display: block;
}

.big-upload-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.big-upload-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.upload-formats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.format-tag {
  padding: 4px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
}

.placement-editor {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
}

.placement-canvas {
  background: var(--bg-off);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.placement-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.control-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.step-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

/* =============================================
   BULK ORDERS
   ============================================= */
.bulk-page {
  padding: 64px 0;
}

.bulk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.bulk-benefits {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.benefit-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.benefit-text h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.benefit-text p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.bulk-pricing-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.price-tier {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  transition: all var(--transition);
}

.price-tier:hover,
.price-tier.featured {
  border-color: var(--accent);
  background: rgba(255, 107, 107, 0.04);
}

.tier-qty {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.tier-discount {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
}

.tier-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.quote-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  margin-bottom: 24px;
}

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

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

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark);
}

.form-input {
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--bg-off);
  color: var(--text-dark);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
}

.form-input:focus {
  border-color: var(--accent);
  background: var(--bg-card);
}

textarea.form-input {
  min-height: 100px;
  resize: vertical;
}

/* =============================================
   ABOUT PAGE
   ============================================= */
.about-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #2a1f2e 100%);
  padding: 100px 0;
  color: white;
  text-align: center;
}

.about-hero h1 {
  color: white;
  margin-bottom: 16px;
}

.about-hero p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ─── ABOUT STORY — Redesigned ─────────────────── */
.about-story {
  padding: 96px 0 80px;
  background: var(--bg-light);
}

/* ── Centered intro heading ── */
.story-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.story-intro h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  line-height: 1.2;
  margin-top: 10px;
  color: var(--text-dark);
}

/* ── Top split row ── */
.story-top {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: stretch;
  margin-bottom: 64px;
}

/* Left: main image with badge */
.story-main-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 420px;
  background: var(--bg-off);
  box-shadow: var(--shadow-lg);
}

.story-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.story-main-img:hover img {
  transform: scale(1.04);
}

/* Founding year badge over image */
.story-img-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(14, 8, 18, 0.82);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: 14px;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sib-year {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.sib-label {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* Right: quote + founder + text */
.story-quote-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}

/* Pull quote */
.story-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.5;
  margin: 0;
  padding-left: 24px;
  border-left: 4px solid var(--accent);
  position: relative;
}

/* Founder row */
.story-founder {
  display: flex;
  align-items: center;
  gap: 14px;
}

.founder-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(255, 107, 107, 0.3);
}

.story-founder strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--text-dark);
}

.story-founder span {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Paragraph stack */
.story-para-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.story-para-stack p {
  font-size: 0.93rem;
  line-height: 1.88;
  color: var(--text-muted);
  margin: 0;
}

/* ── Value pillars row ── */
.story-values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.sv-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.sv-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 107, 107, 0.3);
}

/* Top accent bar */
.sv-accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #d94f4f);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sv-card:hover .sv-accent-bar {
  transform: scaleX(1);
}

.sv-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-off);
}

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

.sv-card:hover .sv-icon img {
  transform: scale(1.1);
}

.sv-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.sv-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.68;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .story-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .story-main-img {
    min-height: 360px;
  }

  .story-values {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .story-values {
    grid-template-columns: 1fr;
  }

  .about-story {
    padding: 56px 0 48px;
  }

  .story-intro {
    margin-bottom: 40px;
  }

  .story-top {
    margin-bottom: 40px;
  }

  .story-main-img {
    min-height: 260px;
  }

  .story-quote {
    font-size: 1.2rem;
    padding-left: 16px;
  }
}

.about-stats {
  background: var(--bg-off);
  padding: 64px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-big-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-big-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.process-section {
  padding: 80px 0;
}

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

.process-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: all var(--transition);
}

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

.process-img-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-off);
  border: 4px solid var(--border);
  transition: border-color var(--transition), transform var(--transition);
}

.process-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.process-card:hover .process-img-wrap {
  border-color: var(--accent);
  transform: scale(1.05);
}

.process-title {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 8px;
}

.process-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =============================================
   REVIEWS PAGE
   ============================================= */
.reviews-page {
  padding: 48px 0 80px;
}

.reviews-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: center;
}

.reviews-score-big {
  text-align: center;
}

.big-score {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1;
}

.big-stars {
  font-size: 1.4rem;
  color: #FFB800;
  margin: 8px 0;
}

.total-reviews {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breakdown-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.breakdown-stars {
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 50px;
}

.breakdown-bar {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.breakdown-fill {
  height: 100%;
  background: #FFB800;
  border-radius: 4px;
}

.breakdown-pct {
  font-size: 0.78rem;
  color: var(--text-muted);
  min-width: 36px;
}

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

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}

.review-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.review-photo,
.review-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.review-card:hover .review-img {
  transform: scale(1.1);
}

.review-rating {
  color: #FFB800;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.review-text {
  font-size: 0.88rem;
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 16px;
}

.review-author-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: white;
  font-family: var(--font-heading);
}

.review-name {
  font-weight: 700;
  font-size: 0.88rem;
}

.review-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.review-product {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-page {
  padding: 48px 0 80px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all var(--transition);
}

.contact-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--accent);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 107, 107, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-detail h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-detail p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-detail a {
  color: var(--accent);
  font-weight: 600;
}

.whatsapp-cta {
  background: linear-gradient(135deg, #25D366, #1aad52);
  color: white;
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  text-decoration: none;
  transition: all var(--transition);
}

.whatsapp-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.wa-icon {
  font-size: 2rem;
}

.wa-text strong {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  color: white;
}

.wa-text span {
  font-size: 0.82rem;
  opacity: 0.85;
  color: white;
}

.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.map-wrap {
  margin-top: 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 200px;
  background: var(--bg-off);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  border: 1px solid var(--border);
}

/* =============================================
   EXTRA PAGES
   ============================================= */
.extra-page {
  padding: 48px 0 80px;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}

.faq-question {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--accent);
}

.faq-icon {
  font-size: 1.2rem;
  color: var(--accent);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 24px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.size-table th {
  padding: 12px 16px;
  background: var(--primary);
  color: white;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
}

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

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

.policy-content {
  max-width: 800px;
  margin: 0 auto;
}

.policy-content h3 {
  margin: 36px 0 12px;
  font-size: 1.2rem;
}

.policy-content p,
.policy-content li {
  color: var(--text-muted);
  line-height: 1.9;
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.policy-content ul {
  padding-left: 20px;
  list-style: disc;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: #0e0b12;
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 0;
}

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

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

.footer-logo .logo-icon {
  width: 36px;
  height: 36px;
}

.footer-logo .logo-text {
  color: white;
}

.footer-desc {
  font-size: 0.85rem;
  line-height: 1.8;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.social-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  transform: translateY(-2px);
}

.footer-col h5 {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  transition: all var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
  color: white;
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.stagger-1 {
  transition-delay: 0.1s;
}

.stagger-2 {
  transition-delay: 0.2s;
}

.stagger-3 {
  transition-delay: 0.3s;
}

.stagger-4 {
  transition-delay: 0.4s;
}

/* =============================================
   KEYFRAMES
   ============================================= */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-8px);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes slideInToast {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============================================
   TOAST & MODALS & MISC
   ============================================= */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  animation: slideInToast 0.4s ease;
  min-width: 280px;
}

.toast.success {
  border-left: 3px solid #22c55e;
}

.toast.error {
  border-left: 3px solid var(--accent);
}

.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  border: none;
  z-index: 900;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent);
  transform: translateY(-4px);
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  backdrop-filter: blur(4px);
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  height: 100vh;
  background: var(--bg-light);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

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

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

.cart-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
}

.cart-close {
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-muted);
}

.cart-close:hover {
  color: var(--text-dark);
}

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

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

.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--bg-off);
  flex-shrink: 0;
}

.cart-item-name {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.cart-item-custom {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.cart-item-price {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--accent);
}

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 90%;
  max-width: 440px;
  position: relative;
  transform: scale(0.9);
  transition: transform var(--transition);
  border: 1px solid var(--border);
}

.modal-overlay.open .modal {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-off);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition);
}

.modal-close:hover {
  background: var(--text-dark);
  color: white;
}

.modal-title {
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.modal-subtitle {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 32px;
}

.modal-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--border);
}

.modal-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.modal-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.modal-form {
  display: none;
}

.modal-form.active {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-track {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .custom-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-flex {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-image-wrap {
    justify-content: center;
    margin: 0 auto;
  }

  .testimonials-track {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid::before {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .shop-layout {
    grid-template-columns: 1fr;
  }

  .filter-sidebar {
    position: static;
  }

  .bulk-grid {
    grid-template-columns: 1fr;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .product-gallery {
    position: static;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .product-selector-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .placement-editor {
    grid-template-columns: 1fr;
  }

  /* Header Responsive Layout (360px - 1024px) */
  .header-inner {
    justify-content: space-between;
    gap: 16px;
    padding: 0 16px;
  }

  .site-logo {
    margin-inline-end: auto;
    flex-shrink: 1;
    min-width: 0;
  }

  .header-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .utility-menu .btn-login {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  section {
    padding: 56px 0;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-stats {
    display: none;
  }

  .hero-content {
    text-align: center;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-desc {
    text-align: center;
    margin: 0 auto 36px;
  }

  .hero-label {
    margin: 0 auto 24px;
  }

  .hero-image-wrap {
    max-width: 320px;
  }

  .hero-image-badge {
    padding: 8px 14px;
    font-size: 0.7rem;
    top: -10px;
    left: -10px;
  }

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

  .products-track {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .testimonials-track {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .brands-inner {
    justify-content: center;
    flex-direction: column;
    gap: 20px;
  }

  .reviews-summary {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

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

  .cart-drawer {
    width: 100%;
  }

  .modal {
    padding: 28px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .bulk-pricing-tiers {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .team-values {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .products-track {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .product-selector-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 420px) {
  .header-inner {
    gap: 8px;
    padding: 0 12px;
  }

  .logo-text {
    font-size: 0.9rem;
  }

  .logo-text span {
    font-size: 0.55rem;
  }

  .site-logo {
    gap: 8px;
    flex-shrink: 1;
    min-width: 0;
    max-width: 130px;
  }

  .logo-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .util-btn {
    width: 34px;
    height: 34px;
  }

  .hamburger {
    width: 34px;
    height: 34px;
  }
}

/* FIX: login/register panel flex layout */
#login-form,
#register-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#register-form[style*="display:none"] {
  display: none !important;
}

/* =============================================
   CUSTOM DESIGN WIZARD
   ============================================= */
/* ── Page Hero (Unified) ── */
.page-hero {
  position: relative;
  padding: 120px 0;
  background-color: var(--primary);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  text-align: center;
  overflow: hidden;
  margin-bottom: 0;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(26, 26, 26, 0.5), rgba(26, 26, 26, 0.75));
  z-index: 1;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #FFE259 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent);
  /* fallback */
  display: inline-block;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.page-hero p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.95;
  line-height: 1.6;
}

.page-hero .section-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 12px;
}

.page-hero .breadcrumb {
  margin-bottom: 24px;
  font-size: 0.85rem;
  opacity: 0.8;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.page-hero .breadcrumb a {
  color: white;
  text-decoration: none;
  transition: opacity var(--transition);
}

.page-hero .breadcrumb a:hover {
  opacity: 1;
  color: var(--accent);
}

.page-hero .breadcrumb span {
  opacity: 0.6;
}

.design-wizard {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  margin-top: -60px;
  position: relative;
  z-index: 10;
}

.wizard-steps {
  display: flex;
  background: var(--bg-off);
  border-bottom: 1px solid var(--border);
}

.wizard-step {
  flex: 1;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.5;
  transition: all var(--transition);
  border-right: 1px solid var(--border);
}

.wizard-step:last-child {
  border-right: none;
}

.wizard-step.active {
  opacity: 1;
  background: var(--bg-light);
}

.wizard-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
}

.wizard-step.active .wizard-step-num {
  background: var(--accent);
}

.wizard-step-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.wizard-body {
  padding: 40px;
}

.wizard-panel {
  display: none;
}

.wizard-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.product-grid-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.product-pick-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}

.product-pick-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.product-pick-card.active {
  border-color: var(--accent);
  background: rgba(255, 107, 107, 0.05);
}

.pick-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.product-pick-card span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
}

.pick-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pick-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 48px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg-off);
}

.upload-zone:hover {
  border-color: var(--accent);
  background: rgba(255, 107, 107, 0.02);
}

.upload-zone-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.color-swatches,
.thread-colors,
.size-swatches {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

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

.color-swatch.active,
.thread-color.active {
  border-color: var(--text-dark);
  transform: scale(1.1);
}

.size-swatch {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  transition: all var(--transition);
}

.size-swatch.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 107, 107, 0.05);
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 4px;
}

.qty-btn {
  width: 36px;
  height: 36px;
  background: var(--bg-off);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-dark);
}

.qty-control .qty-input {
  width: 60px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
  background: var(--bg-light);
  color: var(--text-dark);
}

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

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.value-image-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  border: 2px solid white;
  transition: all var(--transition);
}

.value-card:hover .value-image-wrap {
  transform: scale(1.1) rotate(2deg);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
  border-color: var(--accent);
}

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

.value-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

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

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

  .product-grid-picker {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  .product-grid-picker {
    grid-template-columns: repeat(2, 1fr);
  }

  .design-wizard {
    margin-top: 0;
  }

  .wizard-steps {
    flex-direction: column;
  }

  .wizard-step {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============================================
   HOMEPAGE V2 — Portfolio + Designer Tool
   Appended to existing style.css
   ============================================= */

/* ─── V2 HERO ─────────────────────────────── */
.v2-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #1a0f1e;
}

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

.v2-hero-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v2-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 120px 0 80px;
}

.v2-hero-content {
  color: white;
}

.v2-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 107, 107, 0.15);
  border: 1px solid rgba(255, 107, 107, 0.35);
  color: #ffb3b3;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
  font-family: var(--font-heading);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: dotPulse 2s ease infinite;
}

@keyframes dotPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.5);
    opacity: 0.6;
  }
}

.v2-hero-title {
  font-size: clamp(2.4rem, 4.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 20px;
  color: white;
}

.v2-hero-title .serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.v2-hero-title .accent-text {
  color: var(--accent);
}

.v2-hero-desc {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 460px;
  margin-bottom: 32px;
}

.v2-hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.v2-hero-trust {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.trust-num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: white;
  line-height: 1;
}

.trust-lbl {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.trust-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.15);
}

/* Hero Portfolio Cards */
.v2-hero-cards {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-port-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: transform 0.35s ease, border-color 0.35s;
  position: relative;
}

.hero-port-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 107, 0.35);
}

.hero-port-card--main {
  padding: 0;
}

.hero-port-card--secondary {
  padding: 0;
  opacity: 0.72;
}

.hpc-label {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--accent);
  color: white;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 50px;
  font-family: var(--font-heading);
  letter-spacing: 0.08em;
}

.hpc-label--before {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.hpc-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.hero-port-card--secondary .hpc-img-wrap {
  height: 120px;
}

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

.hero-port-card:hover .hpc-img-wrap img {
  transform: scale(1.06);
}

.hpc-img-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.5);
  gap: 6px;
  z-index: 0;
}

.hpc-img-fallback span {
  font-size: 0.78rem;
  font-family: var(--font-heading);
  color: rgba(255, 255, 255, 0.4);
}

.hpc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-heading);
  font-weight: 600;
}

.hpc-tag {
  background: rgba(255, 107, 107, 0.2);
  color: #ffb3b3;
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 50px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.hpc-tag--muted {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.4);
}

.hero-port-arrow {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  filter: drop-shadow(0 4px 12px rgba(255, 107, 107, 0.4));
}

/* ─── PORTFOLIO SECTION ────────────────────── */
.v2-portfolio {
  background: var(--bg-light);
}

/* Filter Buttons */
.port-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}

.port-filter-btn {
  padding: 9px 22px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-card);
  cursor: pointer;
  transition: all var(--transition);
}

.port-filter-btn:hover,
.port-filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 107, 107, 0.3);
}

/* Portfolio Grid */
.port-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.port-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.port-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 107, 107, 0.3);
}

.port-card[style*="display:none"] {
  display: none !important;
}

/* Before/After Slider */
.ba-wrap {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
}

.ba-panel {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.ba-after {
  clip-path: inset(0 0 0 50%);
  transition: clip-path 0.4s ease;
}

.ba-wrap:hover .ba-after,
.ba-wrap.revealed .ba-after {
  clip-path: inset(0 0% 0 0);
}

.ba-badge {
  position: absolute;
  top: 12px;
  z-index: 3;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 50px;
  font-family: var(--font-heading);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ba-before .ba-badge {
  left: 12px;
  background: rgba(0, 0, 0, 0.5);
  color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
}

.ba-after .ba-badge {
  right: 12px;
  background: var(--accent);
  color: white;
}

.ba-badge--before {
  background: rgba(0, 0, 0, 0.45) !important;
  color: rgba(255, 255, 255, 0.8) !important;
}

.ba-badge--after {
  background: var(--accent) !important;
  color: white !important;
}

.ba-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ba-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.ba-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 2.8rem;
  color: var(--text-muted);
  z-index: 1;
}

.ba-placeholder span {
  font-size: 0.8rem;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
}

.ba-placeholder--after {
  color: rgba(255, 255, 255, 0.6);
}

.ba-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: white;
  transform: translateX(-50%);
  z-index: 4;
  box-shadow: 0 0 12px rgba(255, 107, 107, 0.5);
  transition: left 0.05s;
  cursor: ew-resize;
}

.ba-slider-handle::before,
.ba-slider-handle::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  top: 50%;
  margin-top: -16px;
}

.ba-slider-handle::after {
  content: '⇄';
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--accent);
  line-height: 32px;
  text-align: center;
}

.ba-wrap:hover .ba-slider-handle {
  background: var(--accent);
  box-shadow: 0 0 16px rgba(255, 107, 107, 0.6);
}

.port-card-info {
  padding: 16px 20px 20px;
}

.port-card-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.port-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.port-tag {
  font-size: 0.68rem;
  font-weight: 700;
  font-family: var(--font-heading);
  padding: 2px 10px;
  border-radius: 50px;
  letter-spacing: 0.06em;
  background: var(--bg-off);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.port-tag--cat {
  background: rgba(255, 107, 107, 0.1);
  color: var(--accent);
  border-color: rgba(255, 107, 107, 0.2);
}

/* ─── STATS BAR ────────────────────────────── */
.v2-stats-bar {
  background: linear-gradient(135deg, #1a0f1e, #4C414F);
  padding: 40px 0;
}

.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.v2-stat {
  text-align: center;
  padding: 12px 36px;
}

.v2-stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: white;
  line-height: 1;
  margin-bottom: 6px;
}

.v2-stat-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: var(--font-heading);
  font-weight: 600;
}

.stats-divider {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.12);
}

/* ─── DESIGNER TOOL ────────────────────────── */
.v2-designer {
  background: var(--bg-off);
  padding: 100px 0;
}

.designer-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 48px;
  align-items: start;
  position: relative;
}

/* Controls */
.designer-controls {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.dsgn-step {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.dsgn-step:last-child {
  border-bottom: none;
}

.dsgn-step-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.dsgn-step-num {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.dsgn-step-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.dsgn-step-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Product Picker */
.product-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.ppick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--bg-off);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ppick-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ppick-btn.active {
  border-color: var(--accent);
  background: white;
  color: var(--accent);
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.15);
}

.ppick-icon {
  font-size: 1.8rem;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ppick-btn.active .ppick-icon {
  transform: scale(1.1);
}

/* Color Swatches */
.color-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.c-swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}

.c-swatch:hover {
  transform: scale(1.18);
}

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

.c-swatch.active::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 900;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.selected-swatch-name {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
}

.selected-swatch-name strong {
  color: var(--text-dark);
}

/* Text Input */
.dsgn-text-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--bg-off);
  color: var(--text-dark);
  font-size: 0.95rem;
  font-family: var(--font-heading);
  font-weight: 600;
  outline: none;
  transition: border-color var(--transition);
  letter-spacing: 0.03em;
}

.dsgn-text-input:focus {
  border-color: var(--accent);
  background: var(--bg-card);
}

.dsgn-char-count {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 6px;
  text-align: right;
  font-family: var(--font-heading);
}

/* Font Picker */
.font-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.font-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--bg-off);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.font-btn span {
  font-size: 1.3rem;
  line-height: 1;
  display: block;
}

.font-btn:hover,
.font-btn.active {
  border-color: var(--accent);
  background: rgba(255, 107, 107, 0.06);
  color: var(--accent);
}

/* Upload Zone */
.dsgn-upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg-off);
}

.dsgn-upload-zone:hover,
.dsgn-upload-zone.drag-over {
  border-color: var(--accent);
  background: rgba(255, 107, 107, 0.04);
}

.dsgn-upload-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.dsgn-upload-icon {
  font-size: 1.8rem;
}

.dsgn-upload-text {
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--text-dark);
}

.dsgn-upload-text u {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.dsgn-upload-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* CTA row */
.dsgn-cta-row {
  padding: 20px 24px;
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--border);
  background: var(--bg-off);
}

.dsgn-quote-btn {
  flex: 1;
  justify-content: center;
}

.dsgn-reset-btn {
  flex-shrink: 0;
  padding: 14px 18px;
}

/* ─── PREVIEW ──────────────────────────────── */
.designer-preview {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.preview-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.preview-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--bg-off);
}

.prev-tab {
  flex: 1;
  padding: 12px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: all var(--transition);
  background: none;
}

.prev-tab:hover,
.prev-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: var(--bg-card);
}

.preview-canvas {
  position: relative;
  background: radial-gradient(circle at center, #ffffff 0%, #f0f0f5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding: 40px;
  transition: background 0.5s ease;
  overflow: hidden;
}

[data-theme="dark"] .preview-canvas {
  background: radial-gradient(circle at center, #2a2a35 0%, #1a1a20 100%);
}

.preview-canvas::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239C92AC' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.garment-svg {
  width: 100%;
  max-width: 340px;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.15));
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}

.garment-svg path,
.garment-svg rect {
  transition: fill 0.4s ease, d 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.emb-text-elem {
  transition: all 0.3s ease;
}

.preview-label {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
  backdrop-filter: blur(4px);
}

.preview-product-label {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: var(--accent);
  color: white;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
}

/* Preview Summary */
.preview-summary {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-off);
}

.ps-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.ps-key {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ps-val {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-dark);
  font-size: 0.82rem;
}

.ps-row--price {
  padding-top: 10px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.ps-price {
  font-size: 1.15rem;
  color: var(--accent);
  font-weight: 800;
}

/* Quote Confirm */
.dsgn-quote-confirm {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(26, 15, 30, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.dsgn-confirm-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: popIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.88);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.dsgn-confirm-inner h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.dsgn-confirm-inner p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

/* ─── TEMPLATES ────────────────────────────── */
.v2-templates {
  background: var(--bg-light);
}

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

.tmpl-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.tmpl-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 56px rgba(76, 65, 79, 0.18);
  border-color: rgba(255, 107, 107, 0.35);
}

/* ── Preview area (real image version) ── */
.tmpl-preview {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  background: #1a1a1a;
}

.tmpl-preview--img {
  padding: 0;
}

.tmpl-real-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tmpl-card:hover .tmpl-real-img {
  transform: scale(1.07);
}

/* Gradient overlay so the badge is readable */
.tmpl-preview--img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.08) 0%,
      rgba(0, 0, 0, 0.38) 100%);
  pointer-events: none;
  transition: background 0.3s ease;
}

.tmpl-card:hover .tmpl-preview--img::after {
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.04) 0%,
      rgba(255, 107, 107, 0.22) 100%);
}

/* Category badge on the image */
.tmpl-img-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(255, 107, 107, 0.92);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
  backdrop-filter: blur(4px);
}

/* Old SVG mock (hidden now) */
.tmpl-garment-mock {
  display: none;
}

.tmpl-info {
  padding: 18px 20px 22px;
}

.tmpl-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.tmpl-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.tmpl-use-btn {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

.tmpl-use-btn:hover {
  color: var(--accent-hover);
  gap: 8px;
  letter-spacing: 0.1em;
}

/* ─── PROCESS V2 ───────────────────────────── */
.v2-process {
  background: var(--bg-off);
}

.v2-process-inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: start;
}

.v2-process-text {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.v2-process-steps {
  display: flex;
  flex-direction: column;
}

.v2-proc-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.v2-proc-num {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(76, 65, 79, 0.3);
}

.v2-proc-content {
  flex: 1;
  padding-bottom: 8px;
}

.v2-proc-content h4 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.v2-proc-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.v2-proc-line {
  width: 2px;
  height: 36px;
  background: linear-gradient(to bottom, var(--primary), rgba(76, 65, 79, 0.2));
  margin-left: 23px;
  margin-top: 0;
  margin-bottom: 0;
}

/* ─── DARK MODE ADJUSTMENTS ────────────────── */
[data-theme="dark"] .v2-hero {
  background: #0d0a12;
}

[data-theme="dark"] .v2-stats-bar {
  background: linear-gradient(135deg, #0d0a12, #211c27);
}

[data-theme="dark"] .port-filter-btn {
  background: var(--bg-card);
}

[data-theme="dark"] .preview-canvas {
  background: linear-gradient(135deg, #1a1720, #2a1f2e);
}

[data-theme="dark"] .designer-controls,
[data-theme="dark"] .preview-wrap {
  background: var(--bg-card);
  border-color: var(--border);
}

[data-theme="dark"] .tmpl-use-btn:hover {
  color: #ff9b9b;
}

[data-theme="dark"] .v2-proc-num {
  background: var(--primary-light);
  box-shadow: 0 4px 14px rgba(139, 122, 144, 0.3);
}

/* ─── RESPONSIVE ───────────────────────────── */
@media (max-width: 1100px) {
  .designer-layout {
    grid-template-columns: 1fr;
  }

  .designer-preview {
    position: static;
    order: -1;
  }

  .v2-process-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .v2-process-text {
    position: static;
  }

  .templates-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  .v2-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 100px 0 60px;
  }

  .v2-hero-cards {
    display: none;
  }

  .port-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .templates-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    gap: 0;
  }

  .v2-stat {
    padding: 12px 20px;
  }

  .stats-divider {
    display: none;
  }

  .product-picker {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

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

  .v2-hero-trust {
    gap: 14px;
  }

  .ba-wrap {
    height: 200px;
  }

  .dsgn-cta-row {
    flex-direction: column;
  }

  .dsgn-reset-btn {
    width: 100%;
    justify-content: center;
  }
}

/* =============================================
   V3 HERO — Unique Typographic + Canvas Hero
   Replaces v2-hero section completely.
   All other sections unchanged.
   ============================================= */

/* ─── Reset old v2-hero if it leaks ─────────── */
.v2-hero {
  display: none !important;
}

/* ─── Section shell ─────────────────────────── */
.v3-hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  background: #0e0812;
  /* deep near-black with purple tint */
  overflow: hidden;
  isolation: isolate;
}

/* ─── Animated thread canvas ─────────────────── */
.v3-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.65;
}

/* ─── Grain / noise overlay ──────────────────── */
.v3-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='512' height='512' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ─── Marquee bands ──────────────────────────── */
.v3-marquee-band {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 5;
  overflow: hidden;
  padding: 0;
  border-top: 1px solid rgba(255, 107, 107, 0.15);
  border-bottom: 1px solid rgba(255, 107, 107, 0.15);
}

.v3-marquee-band--top {
  top: 72px;
  /* sits just under the fixed header */
  background: rgba(255, 107, 107, 0.06);
}

.v3-marquee-band--bot {
  bottom: 0;
  background: rgba(76, 65, 79, 0.35);
}

.v3-marquee-track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: marqueeScroll 28s linear infinite;
  width: max-content;
  padding: 10px 0;
}

.v3-marquee-track--rev {
  animation-direction: reverse;
  animation-duration: 22s;
}

.v3-marquee-track span {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  padding: 0 28px;
}

.v3-marquee-track .v3-mx {
  color: var(--accent);
  opacity: 0.7;
  padding: 0 4px;
  letter-spacing: 0;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ─── Hero body ─── */
.v3-hero-body {
  position: relative;
  z-index: 4;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 100px;
}

/* ─── Centered layout ─── */
.v3-hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

/* ─── Spotlight glow behind headline ─── */
.v3-hero-spotlight {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(255, 107, 107, 0.13) 0%, rgba(76, 65, 79, 0.07) 50%, transparent 75%);
  z-index: 2;
  pointer-events: none;
}

/* ─── Decorative dashed stitch lines ─── */
.v3-stitch-deco {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  z-index: 2;
  pointer-events: none;
  background-image: repeating-linear-gradient(to bottom,
      rgba(255, 107, 107, 0.22) 0px,
      rgba(255, 107, 107, 0.22) 8px,
      transparent 8px,
      transparent 16px);
}

.v3-stitch-deco--left {
  left: 8%;
}

.v3-stitch-deco--right {
  right: 8%;
}

/* ─── Two-column grid (REPLACED) ─── */
.v3-hero-grid {
  display: none;
}

/* ════════════════════════════════════════════════
   EYEBROW
════════════════════════════════════════════════ */
.v3-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.28);
  color: rgba(255, 180, 160, 0.9);
  padding: 7px 18px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 32px;
  animation: fadeSlideUp 0.7s ease 0.1s both;
}

.v3-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: dotPulse2 2.2s ease infinite;
  flex-shrink: 0;
}

@keyframes dotPulse2 {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.5);
  }

  50% {
    transform: scale(1.3);
    box-shadow: 0 0 0 5px rgba(255, 107, 107, 0);
  }
}

/* ════════════════════════════════════════════════
   HEADLINE — centered, larger scale
════════════════════════════════════════════════ */
.v3-hero-h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
}

.v3-h1-row {
  display: block;
  overflow: hidden;
  line-height: 1.02;
}

.v3-h1-row--1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  animation: fadeSlideUp 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.v3-h1-row--2 {
  animation: fadeSlideUp 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.38s both;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.v3-h1-word {
  font-family: var(--font-heading);
  font-size: clamp(3.6rem, 7vw, 7.5rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.04em;
  line-height: 1;
}

.v3-h1-accent {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5.5vw, 6rem);
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}

.v3-h1-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(3.4rem, 6.5vw, 7rem);
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.v3-h1-outline {
  font-family: var(--font-heading);
  font-size: clamp(3.2rem, 6.5vw, 7rem);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 107, 107, 0.7);
  letter-spacing: -0.03em;
  line-height: 1;
}

[data-theme="dark"] .v3-h1-outline {
  -webkit-text-stroke-color: rgba(255, 130, 130, 0.6);
}

/* Sub-headline */
.v3-hero-sub {
  font-family: var(--font-body);
  font-size: 1.08rem;
  line-height: 1.82;
  color: rgba(255, 255, 255, 0.58);
  max-width: 520px;
  margin-bottom: 40px;
  animation: fadeSlideUp 0.75s ease 0.52s both;
}

/* ── CTA buttons ── */
.v3-hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 52px;
  animation: fadeSlideUp 0.75s ease 0.64s both;
}

/* Primary button */
.v3-btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  border-radius: 50px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent), #d94f4f);
  box-shadow: 0 6px 28px rgba(255, 107, 107, 0.45);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.v3-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(255, 107, 107, 0.55);
}

.v3-btn-primary:hover .v3-btn-shimmer {
  left: 130%;
}

.v3-btn-inner {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 15px 32px;
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: white;
  position: relative;
  z-index: 1;
}

.v3-btn-shimmer {
  position: absolute;
  top: 0;
  left: -60%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

/* Ghost button */
.v3-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 26px;
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.25s ease;
  background: rgba(255, 255, 255, 0.04);
}

.v3-btn-ghost:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  gap: 12px;
}

/* ════════════════════════════════════════════════
   STATS BAR
════════════════════════════════════════════════ */
.v3-stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 56px;
  animation: fadeSlideUp 0.75s ease 0.76s both;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px 36px;
  backdrop-filter: blur(10px);
  width: 100%;
  max-width: 640px;
}

.v3-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 100px;
}

.v3-stat-num {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 900;
  color: white;
  line-height: 1;
}

.v3-stat-lbl {
  font-family: var(--font-heading);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.v3-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  margin: 0 8px;
}

/* ════════════════════════════════════════════════
   SHOWCASE IMAGE CARD
════════════════════════════════════════════════ */
.v3-hero-showcase {
  position: relative;
  width: 100%;
  max-width: 860px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 107, 107, 0.1);
  animation: fadeSlideUp 0.9s ease 0.9s both;
  background: #0e0812;
}

.v3-showcase-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.v3-hero-showcase:hover .v3-showcase-img {
  transform: scale(1.03);
}

.v3-showcase-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      transparent 40%,
      rgba(14, 8, 18, 0.5) 100%);
  pointer-events: none;
}

/* Floating info badges over showcase */
.v3-badge-float {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(14, 8, 18, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 16px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  animation: badgeFloat 6s ease-in-out infinite;
}

.v3-badge-float--tl {
  top: 20px;
  left: 24px;
  border-color: rgba(255, 107, 107, 0.25);
  animation-delay: 0s;
}

.v3-badge-float--tr {
  top: 20px;
  right: 24px;
  animation-delay: 1.5s;
}

@keyframes badgeFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.v3-bf-icon {
  font-size: 1.25rem;
}

.v3-bf-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.v3-bf-text strong {
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 700;
  color: white;
}

.v3-bf-text span {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.42);
  letter-spacing: 0.05em;
}

/* Swatch strip at bottom of showcase */
.v3-swatch-strip {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 8, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 8px 16px;
  backdrop-filter: blur(10px);
}

.v3-sw {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  cursor: default;
  transition: transform 0.2s ease;
  display: inline-block;
}

.v3-sw:hover {
  transform: scale(1.3);
}

/* ─── Old split layout styles (hidden / unused) ─── */
.v3-hero-left,
.v3-hero-right,
.v3-garment-stage,
.v3-hero-garment,
.v3-swatch-float,
.v3-spool-badge,
.v3-quality-badge,
.v3-delivery-badge,
.v3-stat-pills,
.v3-stat-pill,
.v3-sp-num,
.v3-sp-lbl,
.v3-sp-dot {
  display: none !important;
}

/* ─── Scroll cue ─── */
.v3-scroll-cue {
  position: absolute;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.3);
  animation: scrollCuePulse 2.4s ease infinite;
}

.v3-sc-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(255, 107, 107, 0.5), transparent);
}

@keyframes scrollCuePulse {

  0%,
  100% {
    opacity: 0.4;
    transform: translateX(-50%) translateY(0);
  }

  50% {
    opacity: 0.8;
    transform: translateX(-50%) translateY(5px);
  }
}

/* ─── Dark mode tweaks ─── */
[data-theme="dark"] .v3-hero {
  background: #070511;
}

[data-theme="dark"] .v3-hero-canvas {
  opacity: 0.5;
}

[data-theme="dark"] .v3-badge-float {
  background: rgba(10, 6, 14, 0.9);
}

/* ─── Responsive ─── */
@media (max-width: 960px) {
  .v3-hero-body {
    padding: 48px 0 90px;
  }

  .v3-stats-bar {
    padding: 16px 20px;
  }

  .v3-stat-num {
    font-size: 1.4rem;
  }

  .v3-showcase-img {
    height: 320px;
  }

  .v3-stitch-deco {
    display: none;
  }
}

@media (max-width: 600px) {
  .v3-hero-body {
    padding: 36px 0 80px;
  }

  .v3-h1-row--1 {
    flex-wrap: wrap;
    gap: 8px;
  }

  .v3-stats-bar {
    gap: 8px;
    padding: 14px 16px;
  }

  .v3-stat-divider {
    display: none;
  }

  .v3-stat-item {
    min-width: 70px;
  }

  .v3-hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .v3-btn-primary,
  .v3-btn-ghost {
    width: 100%;
    justify-content: center;
  }

  .v3-showcase-img {
    height: 220px;
  }

  .v3-badge-float--tr {
    display: none;
  }

  .v3-marquee-band--top {
    display: none;
  }

  .v3-hero-spotlight {
    width: 320px;
    height: 280px;
  }
}

/* =============================================
   HOME ABOUT SECTION
   ============================================= */
.home-about {
  background: var(--bg-off);
  padding: 50px 0;
}

.home-about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

/* ── Visual / Left ── */
.ha-visual {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.ha-img-stack {
  position: relative;
  width: 100%;
  max-width: 580px;
  height: 340px;
}

/* Main card */
.ha-card--main {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, var(--primary), #1a0f1e);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.ha-card--main::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 20 Q10 5 20 20 Q30 35 40 20' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 40px 40px;
}

.ha-card-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.ha-icon-big {
  font-size: 4rem;
  filter: drop-shadow(0 4px 16px rgba(255, 107, 107, 0.4));
}

.ha-card-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ha-stat-num {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 900;
  color: white;
  line-height: 1;
}

.ha-stat-lbl {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

/* Floating stat cards */
.ha-card--float {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-md);
  z-index: 2;
  backdrop-filter: blur(8px);
}

.ha-card--tl {
  top: -18px;
  left: -18px;
}

.ha-card--br {
  bottom: -18px;
  right: -18px;
}

.ha-float-num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.ha-float-lbl {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Feature pills row */
.ha-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ha-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 7px 14px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.04em;
  transition: all var(--transition);
  white-space: nowrap;
}

.ha-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ── Content / Right ── */
.ha-title {
  margin-bottom: 16px !important;
}

.ha-lead {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 32px;
  max-width: 520px;
}

.ha-values {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.ha-value-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.ha-value-item:hover {
  border-color: var(--accent);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

[dir="rtl"] .ha-value-item:hover {
  transform: translateX(-4px);
}

.ha-value-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.ha-value-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.ha-value-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.ha-cta {
  margin-top: 4px;
}

/* Dark mode */
[data-theme="dark"] .ha-card--main {
  background: linear-gradient(145deg, #2a1f35, #1a0f1e);
}

/* =============================================
   HOME FAQ SECTION
   ============================================= */
.home-faq {
  background: var(--bg-light);
  padding: 100px 0;
}

/* Dark variant used in index2.html */
.home-faq--dark {
  background: var(--bg-off);
}

.home-faq-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 72px;
  align-items: start;
}

/* ── Left column ── */
.hfaq-title {
  margin-bottom: 16px !important;
}

.hfaq-sub {
  margin-bottom: 0 !important;
}

.hfaq-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.hfaq-contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}

.hfaq-contact-item:hover {
  border-color: var(--accent);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

[dir="rtl"] .hfaq-contact-item:hover {
  transform: translateX(-4px);
}

.hfaq-ci-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.hfaq-ci-label {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.hfaq-ci-val {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* ── Right: accordion overrides ── */
.home-faq-list {
  max-width: 100% !important;
}

.home-faq-list .faq-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 0;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.home-faq-list .faq-item.open {
  border-color: var(--accent);
  box-shadow: 0 2px 16px rgba(255, 107, 107, 0.1);
}

.home-faq-list .faq-question {
  padding: 18px 22px;
  font-size: 0.9rem;
}

.home-faq-list .faq-answer {
  padding: 0 22px;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.home-faq-list .faq-item.open .faq-answer {
  padding-bottom: 18px;
}

/* Number accent on each FAQ item */
.home-faq-list .faq-item {
  counter-increment: faq-counter;
  position: relative;
}

.home-faq-list .faq-question::before {
  content: counter(faq-counter, decimal-leading-zero);
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-right: 12px;
  opacity: 0.7;
  flex-shrink: 0;
}

.home-faq-list {
  counter-reset: faq-counter;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .home-about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .ha-img-stack {
    max-width: 100%;
  }

  .home-faq-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .home-about {
    padding: 72px 0;
  }

  .home-faq {
    padding: 72px 0;
  }

  .ha-img-stack {
    height: 280px;
  }

  .ha-card--tl {
    top: -12px;
    left: -12px;
  }

  .ha-card--br {
    bottom: -12px;
    right: -12px;
  }

  .ha-pills {
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .ha-img-stack {
    height: 240px;
  }

  .hfaq-contact {
    gap: 8px;
  }
}

/* =============================================
   AUTH PAGES — LOGIN & SIGNUP
   Shared colors, fonts & variables from site
   ============================================= */

/* ── Auth page layout shell ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  background: var(--bg-light);
  transition: background var(--transition), color var(--transition);
}

/* ── Left decorative panel ── */
.auth-panel-left {
  position: relative;
  width: 46%;
  flex-shrink: 0;
  background: linear-gradient(145deg, #1a0f1e 0%, #2e1a32 40%, #4C414F 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  overflow: hidden;
  isolation: isolate;
}

/* Decorative thread canvas sits behind content */
.auth-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

/* Grain texture */
.auth-panel-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='512' height='512' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
  opacity: 0.035;
  z-index: 1;
  pointer-events: none;
}

/* Radial spotlight */
.auth-panel-left::after {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(255, 107, 107, 0.18) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.auth-left-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 52px;
  text-decoration: none;
}

.auth-brand-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 6px 24px rgba(255, 107, 107, 0.4);
  flex-shrink: 0;
}

.auth-brand-text {
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: white;
  line-height: 1.2;
}

.auth-brand-text span {
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

.auth-panel-headline {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: white;
  margin-bottom: 18px;
}

.auth-panel-headline em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 180, 160, 0.95);
  font-size: 110%;
}

.auth-panel-sub {
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.8;
  max-width: 320px;
  margin: 0 auto 44px;
}

/* Trust badges */
.auth-trust-badges {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.auth-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 16px;
  backdrop-filter: blur(8px);
  transition: background var(--transition);
  text-align: left;
}

.auth-trust-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.ati-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  width: 34px;
  text-align: center;
}

.ati-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.02em;
}

.ati-text span {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.4;
}

/* Dashed stitch decorations */
.auth-stitch-v {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  z-index: 1;
  pointer-events: none;
  background-image: repeating-linear-gradient(to bottom,
      rgba(255, 107, 107, 0.25) 0px,
      rgba(255, 107, 107, 0.25) 7px,
      transparent 7px,
      transparent 14px);
}

.auth-stitch-v--l {
  left: 14%;
}

.auth-stitch-v--r {
  right: 14%;
}

/* ── Right form panel ── */
.auth-panel-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  background: var(--bg-light);
  transition: background var(--transition);
  overflow-y: auto;
  position: relative;
}

/* Utility controls top-right */
.auth-util-bar {
  position: absolute;
  top: 20px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

[dir="rtl"] .auth-util-bar {
  right: auto;
  left: 24px;
}

.auth-util-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-off);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
}

.auth-util-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: scale(1.08);
}

.auth-util-btn.rtl-active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* Form container */
.auth-form-wrap {
  width: 100%;
  max-width: 420px;
}

/* Header */
.auth-form-header {
  margin-bottom: 32px;
}

.auth-form-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.25);
  color: var(--accent);
  padding: 5px 14px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.auth-form-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 8px;
}

.auth-form-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.auth-form-sub a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
}

.auth-form-sub a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Social buttons */
.auth-social-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-dark);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.auth-social-btn:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--text-dark);
}

.auth-social-btn svg {
  flex-shrink: 0;
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Field groups ── */
.auth-field {
  margin-bottom: 18px;
  position: relative;
}

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

.auth-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.auth-label-text {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark);
  transition: color var(--transition);
}

.auth-label-link {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
}

.auth-label-link:hover {
  color: var(--accent-hover);
}

/* Input wrapper for icon support */
.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
  z-index: 1;
  transition: color var(--transition);
  display: flex;
  align-items: center;
}

[dir="rtl"] .auth-input-icon {
  left: auto;
  right: 14px;
}

.auth-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--bg-off);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  -webkit-appearance: none;
}

[dir="rtl"] .auth-input {
  padding: 12px 42px 12px 14px;
}

.auth-input:focus {
  border-color: var(--accent);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1);
}

.auth-input:focus+.auth-input-icon,
.auth-input-wrap:focus-within .auth-input-icon {
  color: var(--accent);
}

/* Input validation states */
.auth-field.valid .auth-input {
  border-color: #22c55e;
}

.auth-field.invalid .auth-input {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

/* Password toggle */
.auth-pwd-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1rem;
  padding: 4px;
  border-radius: 4px;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  line-height: 1;
  z-index: 2;
}

[dir="rtl"] .auth-pwd-toggle {
  right: auto;
  left: 14px;
}

.auth-pwd-toggle:hover {
  color: var(--accent);
}

/* Validation message */
.auth-field-msg {
  font-size: 0.7rem;
  margin-top: 5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 16px;
  transition: all var(--transition);
  font-family: var(--font-heading);
  letter-spacing: 0.03em;
}

.auth-field-msg.error {
  color: #ef4444;
}

.auth-field-msg.success {
  color: #22c55e;
}

.auth-field-msg.hidden {
  visibility: hidden;
}

/* Password strength meter */
.auth-strength-bar {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}

.auth-strength-seg {
  flex: 1;
  height: 4px;
  border-radius: 50px;
  background: var(--border);
  transition: background 0.4s ease;
}

.auth-strength-seg.weak {
  background: #ef4444;
}

.auth-strength-seg.fair {
  background: #f59e0b;
}

.auth-strength-seg.good {
  background: #22c55e;
}

.auth-strength-seg.strong {
  background: #16a34a;
}

.auth-strength-label {
  font-size: 0.68rem;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 5px;
  transition: color var(--transition);
}

.auth-strength-label.weak {
  color: #ef4444;
}

.auth-strength-label.fair {
  color: #f59e0b;
}

.auth-strength-label.good {
  color: #22c55e;
}

.auth-strength-label.strong {
  color: #16a34a;
}

/* Terms checkbox */
.auth-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.auth-checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
}

.auth-checkbox-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.auth-checkbox-label a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.auth-checkbox-label a:hover {
  text-decoration: underline;
}

/* Remember me row */
.auth-remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-remember-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
}

.auth-remember-left input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
  border-radius: 4px;
}

/* Submit button */
.auth-submit-btn {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--accent), #d94f4f);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 6px 24px rgba(255, 107, 107, 0.35);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.auth-submit-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.55s ease;
}

.auth-submit-btn:hover::before {
  transform: translateX(100%);
}

.auth-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(255, 107, 107, 0.45);
}

.auth-submit-btn:active {
  transform: translateY(0);
}

.auth-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.auth-submit-btn .btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: authSpin 0.7s linear infinite;
  display: none;
  flex-shrink: 0;
}

.auth-submit-btn.loading .btn-spinner {
  display: block;
}

.auth-submit-btn.loading .btn-label {
  opacity: 0.7;
}

@keyframes authSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Back to site link */
.auth-back-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color var(--transition);
}

.auth-back-link:hover {
  color: var(--accent);
}

/* Success screen */
.auth-success-screen {
  display: none;
  text-align: center;
  padding: 20px 0;
  animation: fadeSlideUp 0.5s ease;
}

.auth-success-screen.visible {
  display: block;
}

.auth-success-icon {
  width: 72px;
  height: 72px;
  background: rgba(34, 197, 94, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 20px;
  animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes successPop {
  from {
    transform: scale(0);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.auth-success-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.auth-success-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Progress indicator (signup steps) */
.auth-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
}

.auth-step {
  display: flex;
  align-items: center;
  gap: 0;
}

.auth-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-off);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-muted);
  transition: all var(--transition);
  position: relative;
  z-index: 1;
}

.auth-step-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.18);
}

.auth-step-dot.done {
  background: #22c55e;
  border-color: #22c55e;
  color: white;
}

.auth-step-line {
  width: 48px;
  height: 2px;
  background: var(--border);
  transition: background 0.4s ease;
}

.auth-step-line.done {
  background: #22c55e;
}

/* Step panels */
.auth-step-panel {
  display: none;
}

.auth-step-panel.active {
  display: block;
  animation: fadeSlideUp 0.35s ease;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Toast (auth page) */
.auth-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

[dir="rtl"] .auth-toast-container {
  right: auto;
  left: 24px;
}

.auth-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 18px;
  box-shadow: var(--shadow-lg);
  font-size: 0.82rem;
  font-weight: 500;
  animation: toastSlide 0.3s ease;
  min-width: 260px;
  max-width: 340px;
  pointer-events: all;
  font-family: var(--font-body);
}

.auth-toast.success {
  border-left: 4px solid #22c55e;
}

.auth-toast.error {
  border-left: 4px solid #ef4444;
}

.auth-toast.info {
  border-left: 4px solid var(--accent);
}

@keyframes toastSlide {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── Dark mode specifics ── */
[data-theme="dark"] .auth-panel-right {
  background: var(--bg-light);
}

[data-theme="dark"] .auth-input {
  background: var(--bg-off);
  color: var(--text-dark);
}

[data-theme="dark"] .auth-social-btn {
  background: var(--bg-card);
  color: var(--text-dark);
}

[data-theme="dark"] .auth-submit-btn {
  box-shadow: 0 6px 28px rgba(255, 107, 107, 0.3);
}

/* ── RTL specifics ── */
[dir="rtl"] .auth-trust-item {
  text-align: right;
}

[dir="rtl"] .auth-brand-text {
  text-align: right;
}

[dir="rtl"] .auth-field-msg {
  flex-direction: row-reverse;
}

[dir="rtl"] .auth-checkbox-row {
  flex-direction: row-reverse;
}

[dir="rtl"] .auth-social-btn {
  flex-direction: row-reverse;
}

[dir="rtl"] .auth-remember-row {
  flex-direction: row-reverse;
}

[dir="rtl"] .auth-remember-left {
  flex-direction: row-reverse;
}

[dir="rtl"] .auth-back-link {
  flex-direction: row-reverse;
}

[dir="rtl"] .auth-steps {
  flex-direction: row-reverse;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .auth-panel-left {
    display: none;
  }

  .auth-panel-right {
    padding: 56px 28px 40px;
  }

  .auth-util-bar {
    top: 16px;
    right: 16px;
  }

  [dir="rtl"] .auth-util-bar {
    right: auto;
    left: 16px;
  }
}

@media (max-width: 480px) {
  .auth-panel-right {
    padding: 56px 20px 32px;
  }

  .auth-social-row {
    grid-template-columns: 1fr;
  }

  .auth-field-row {
    grid-template-columns: 1fr;
  }

  .auth-form-title {
    font-size: 1.6rem;
  }

  .auth-step-line {
    width: 32px;
  }
}

@media (max-width: 360px) {
  .auth-steps {
    gap: 0;
  }

  .auth-step-dot {
    width: 24px;
    height: 24px;
    font-size: 0.62rem;
  }
}

/* ── Account type selector cards (signup step 3) ── */
.account-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.account-type-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 20px 14px;
  border: 2px solid var(--border);
  border-radius: 14px;
  background: var(--bg-off);
  cursor: pointer;
  transition: all var(--transition);
  overflow: hidden;
}

.account-type-card:hover {
  border-color: var(--accent);
  background: rgba(255, 107, 107, 0.04);
  transform: translateY(-2px);
}

.account-type-card.selected {
  border-color: var(--accent);
  background: rgba(255, 107, 107, 0.07);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.14);
}

.atc-icon {
  font-size: 1.8rem;
}

.atc-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text-dark);
}

.atc-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.atc-check {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: all var(--transition);
  font-weight: 800;
}

.account-type-card.selected .atc-check {
  opacity: 1;
  transform: scale(1);
}

/* ── Back step button ── */
.auth-back-step-btn {
  padding: 13px 20px;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.auth-back-step-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 107, 107, 0.05);
}

@media (max-width: 400px) {
  .account-type-grid {
    grid-template-columns: 1fr;
  }
}

/* FIX: Align CTA buttons properly on smaller mobile screens (360px to 500px) */
@media (max-width: 500px) {
  .cta-inner>div[style*="display:flex"] {
    flex-direction: column;
    width: 100%;
    gap: 16px !important;
  }

  .cta-inner>div[style*="display:flex"] .btn {
    width: 100%;
    margin: 0;
    justify-content: center;
    text-align: center;
  }
}