/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Caveat&family=Lobster&family=Montserrat:wght@400;600;700&family=Oswald:wght@400;600;700&family=Pacifico&family=Permanent+Marker&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&family=Press+Start+2P&family=Righteous&family=Roboto:wght@400;500;700&display=swap');

/* While a customizer element is being dragged, disable text selection
   and any touch panning on the entire document. This is what stops the
   page from auto-scrolling along with the cursor: browsers only
   auto-scroll to extend a text selection, and touch panning normally
   keeps working even with touch-action set on the drag layer alone. */
body.customizer-dragging,
body.customizer-dragging * {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
}
body.customizer-dragging {
  touch-action: none !important;
  overscroll-behavior: none;
}

:root {
  /* Surfaces */
  --bg-primary: #FFF6F8;
  --bg-secondary: #FFFFFF;

  /* Pink — one working hue, three weights. Nothing else. */
  --primary: #FF4D74;
  --primary-hover: #E8365F;
  --primary-light: #FFE8EE;
  --primary-dark: #C22E51;

  /* Ink */
  --text-main: #1A1318;
  --text-secondary: #4A3A42;
  --text-muted: #8A7580;

  /* One border tone, one card tone, used everywhere instead of ad-hoc rgba() */
  --border-color: #F3D9DF;
  --card-bg: #FFFFFF;

  /* One shadow scale */
  --shadow-sm: 0 2px 8px rgba(26, 19, 24, 0.06);
  --shadow-md: 0 8px 20px rgba(26, 19, 24, 0.08);
  --shadow-lg: 0 16px 40px rgba(26, 19, 24, 0.10);

  /* One radius language: sharp corners everywhere, true circles only for dots/spinners/avatars */
  --radius: 3px;
  --radius-lg: 6px;

  --transition: all 0.15s ease;
}

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

html {
  scroll-behavior: smooth;
  overflow-anchor: none;
  max-width: 100%;
  overflow-x: clip;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

/* No animated background blobs */

/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar {
  background: var(--text-main);
  color: #FFFFFF;
  text-align: center;
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  font-weight: 600;
  position: relative;
  z-index: 101;
  border-bottom: 1.5px solid var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
}

.announcement-bar .promo-badge {
  background: var(--primary);
  color: #FFFFFF;
  padding: 0.15rem 0.6rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin: 0 4px;
  border-radius: var(--radius);
  box-shadow: 0 0 10px rgba(255, 107, 138, 0.4);
}

/* ===== HEADER ===== */
header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-dark);
  text-decoration: none;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.logo span {
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--primary-dark);
  border-radius: var(--radius);
  flex-shrink: 0;
}

.brand-mark img {
  height: 22px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  padding: 0.5rem 1rem;
  transition: var(--transition);
  font-size: 0.9rem;
  border-radius: var(--radius);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--primary-light);
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 107, 138, 0.35);
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 107, 138, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 232, 238, 0.6);
  color: var(--primary-dark);
  border: 1px solid var(--border-color);
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  backdrop-filter: blur(8px);
  font-family: inherit;
}

.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.8rem;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  text-align: center;
  padding: 8rem 1.5rem;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--bg-primary) 100%);
  isolation: isolate;
  border: none;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.hero::before {
  display: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 0.4rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

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

  50% {
    opacity: 0.5;
    transform: scale(1.4);
  }
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.hero h1 em {
  font-style: italic;
  background: linear-gradient(120deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-cta-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== MARQUEE / TRUST STRIP ===== */
.marquee-strip {
  overflow: hidden;
  background: #1A1318;
  color: #fff;
  padding: 0.8rem 0;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  position: relative;
  z-index: 10;
  margin-top: -1px;
}

.marquee-inner {
  display: flex;
  width: max-content;
  animation: scrollMarquee 30s linear infinite;
}

.marquee-inner span {
  white-space: nowrap;
  padding: 0 2rem;
}

.marquee-inner span::after {
  content: '✦';
  margin-left: 2rem;
  color: var(--primary);
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }

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

/* ===== CATALOG / COLLECTION ===== */
.section-header {
  text-align: center;
  padding: 4rem 1.5rem 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.section-header .section-tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 0.8rem;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.8rem;
}

.section-header p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.catalog-grid {
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.product-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  cursor: pointer;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.product-card:hover::before {
  opacity: 1;
}

.product-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius);
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 5;
}

.catalog-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.product-card-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.4rem;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.product-type {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.3rem;
}

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

.product-gst {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.product-card-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: var(--bg-primary);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.product-card-image .skeleton-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

.product-card-image img {
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 11;
}

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

.product-card-body {
  padding: 1.5rem;
}

.product-card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.product-card-body .product-type {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.product-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.3rem;
}

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

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

.price-discount {
  font-size: 0.75rem;
  font-weight: 700;
  background: #e8f5e9;
  color: #2e7d32;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius);
}

.product-card-actions {
  display: flex;
  gap: 0.6rem;
}

.product-card-actions .btn-primary,
.product-card-actions .btn-secondary {
  flex: 1;
  padding: 0.6rem;
  font-size: 0.8rem;
}

.gst-notice {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  font-weight: 500;
}

/* ===== SHILLONG STORY SECTION ===== */
.story-section {
  max-width: 1100px;
  margin: 2rem auto 4rem;
  padding: 0 1.5rem;
}

.story-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: stretch;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.story-card-image {
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
}

.story-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.story-card-content {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-card-content .section-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 1rem;
}

.story-card-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.story-card-content p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.story-features {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.story-feature-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.story-feature-item .feature-icon {
  width: 32px;
  height: 32px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

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

  .story-card-image {
    height: 280px;
  }

  .story-card-content {
    padding: 2rem 1.5rem;
  }
}

/* ===== CUSTOMIZER SECTION ===== */
.customizer-section {
  max-width: 1200px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
  width: 100%;
}

.customizer-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

/* Left Column: T-Shirt Viewer */
.viewer-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--bg-primary);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  padding: 2rem;
  min-height: 520px;
}

.product-stage {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 22 / 27;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.tshirt-mockup-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  overflow: hidden;
}

.tshirt-mockup-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.4s ease;
}

.sennovar-logo-overlay {
  position: absolute;
  pointer-events: none;
  z-index: 5;
  transition: all 0.3s ease;
}

/* Printable/Editable Zones */
.print-zone {
  position: absolute;
  border: 1.5px dashed transparent;
  box-sizing: border-box;
  display: none; /* hidden by default, shown via JS */
  z-index: 2;
  cursor: grab;
  border-radius: var(--radius);
  overflow: hidden;
}

.print-zone.active-zone {
  border-style: solid;
  border-width: 2px;
  z-index: 4;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.print-zone:active {
  cursor: grabbing;
}

.print-zone canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Henley Front Zones */
#zone-left-chest {
  left: 36.4%;
  top: 23%;
  width: 13.1%;
  height: 9.8%;
  border-color: rgba(0, 122, 255, 0.65); /* Blue dashed border */
}
#zone-left-chest.active-zone {
  border-color: rgba(0, 122, 255, 1);
}

#zone-right-chest {
  left: 50.5%;
  top: 23%;
  width: 13.1%;
  height: 9.8%;
  border-color: rgba(255, 59, 48, 0.65); /* Red dashed border */
}
#zone-right-chest.active-zone {
  border-color: rgba(255, 59, 48, 1);
}

#zone-lower-front {
  left: 33%;
  top: 38%;
  width: 34%;
  height: 46%;
  border-color: rgba(52, 199, 89, 0.65); /* Green dashed border */
}
#zone-lower-front.active-zone {
  border-color: rgba(52, 199, 89, 1);
}

/* Boxy Fit Front Zone */
#zone-front {
  left: 28%;
  top: 22%;
  width: 44%;
  height: 58%;
  border-color: rgba(255, 59, 48, 0.65); /* Red dashed border */
}
#zone-front.active-zone {
  border-color: rgba(255, 59, 48, 1);
}

/* Sleeve Zones */
#zone-left-sleeve {
  left: 8%;
  top: 25%;
  width: 15%;
  height: 11.2%;
  border-color: rgba(175, 82, 222, 0.65); /* Purple dashed border */
}
#zone-left-sleeve.active-zone {
  border-color: rgba(175, 82, 222, 1);
}

#zone-right-sleeve {
  left: 77%;
  top: 25%;
  width: 15%;
  height: 11.2%;
  border-color: rgba(175, 82, 222, 0.65); /* Purple dashed border */
}
#zone-right-sleeve.active-zone {
  border-color: rgba(175, 82, 222, 1);
}

/* Back Zone (Shared) */
#zone-back {
  left: 28%;
  top: 22%;
  width: 44%;
  height: 58%;
  border-color: rgba(0, 122, 255, 0.65); /* Blue dashed border */
}
#zone-back.active-zone {
  border-color: rgba(0, 122, 255, 1);
}

.design-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

#admin-canvas-front,
#admin-canvas-back {
  width: 100%;
  height: 100%;
  display: block;
}

.view-indicator {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  background: rgba(255, 255, 255, 0.85);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid var(--border-color);
  z-index: 10;
  backdrop-filter: blur(8px);
}

/* Right Column: Controls */
.controls-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.controls-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.controls-header .controls-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.price-block {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.price-block .price-main {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.price-block .price-was {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-block .price-tag {
  font-size: 0.7rem;
  font-weight: 700;
  background: #e8f5e9;
  color: #2e7d32;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius);
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.control-label {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.control-label .side-badge {
  font-size: 0.7rem;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius);
  font-weight: 700;
}

/* Color Circles */
.color-picker {
  display: flex;
  gap: 0.7rem;
}

.color-option {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), var(--shadow-sm);
  transition: var(--transition);
}

.color-option:hover {
  transform: scale(1.12);
}

.color-option.active {
  box-shadow: 0 0 0 2.5px var(--primary), var(--shadow-md);
  transform: scale(1.15);
}

/* Size Buttons */
.size-picker {
  display: flex;
  gap: 0.6rem;
}

.size-option {
  flex: 1;
  text-align: center;
  padding: 0.55rem 0;
  border: 1px solid var(--border-color);
  background: #fff;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.85rem;
  font-family: inherit;
}

.size-option:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
}

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

/* View Tabs */
.view-tabs {
  display: flex;
  background: var(--primary-light);
  padding: 0.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}

.view-tab {
  flex: 1;
  text-align: center;
  padding: 0.55rem 0;
  border-radius: var(--radius);
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
  font-family: inherit;
}

.view-tab.active {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

/* Upload Zone */
.upload-zone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  background: rgba(255, 245, 247, 0.5);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.upload-zone:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.upload-zone-content svg {
  width: 36px;
  height: 36px;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.upload-zone-content p {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.upload-zone-content span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* Sliders */
.slider-container {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.range-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 5px;
  background: var(--border-color);
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(255, 107, 138, 0.3);
}

.slider-value {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-dark);
  min-width: 32px;
  text-align: right;
}

.design-actions {
  display: flex;
  gap: 0.6rem;
}

.btn-danger-outline {
  border: 1px solid var(--border-color);
  background: #fff;
  color: #ef4444;
  border-radius: var(--radius);
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
}

.btn-danger-outline:hover {
  background: #fef2f2;
  border-color: #ef4444;
}

/* ===== MODALS ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.open {
  opacity: 1;
  pointer-events: all;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 19, 24, 0.45);
  backdrop-filter: blur(10px);
}

.modal-content {
  background: #fff;
  border-radius: var(--radius);
  width: 92%;
  max-width: 600px;
  z-index: 10001;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 800;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.modal-close:hover {
  color: var(--primary);
}

.modal-body {
  padding: 1.5rem 2rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  max-height: calc(90vh - 140px);
}

.modal-footer {
  padding: 1rem 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  background: var(--bg-primary);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  flex-shrink: 0;
}

/* ===== FORM STYLES ===== */
.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9rem;
  transition: var(--transition);
  background: var(--bg-primary);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

/* Order Summary */
.order-summary-box {
  background: var(--primary-light);
  border: 1px dashed var(--primary);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.2rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.summary-thumb {
  width: 55px;
  height: 55px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.summary-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.summary-details h4 {
  font-size: 0.9rem;
  font-weight: 700;
}

.summary-details p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== FOOTER ===== */
footer {
  margin-top: auto;
  background: var(--text-main);
  color: #fff;
  padding: 3rem 5% 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 0.8rem;
  display: inline-block;
}

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

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-links h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
  color: var(--primary);
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.3rem 0;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--text-main);
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(20px);
  animation: slideUpToast 0.3s forwards, fadeOutToast 0.3s 2.7s forwards;
}

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

@keyframes fadeOutToast {
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

/* ===== ADMIN STYLES ===== */
.admin-login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 1.5rem;
}

.login-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.login-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.login-card p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.admin-dashboard {
  max-width: 1280px;
  margin: 2rem auto 5rem;
  padding: 0 1.5rem;
  width: 100%;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.dashboard-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 800;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  padding: 1.3rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  width: 46px;
  height: 46px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
}

.stat-info h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.stat-info p {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.orders-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.orders-card-header {
  padding: 1.3rem 1.8rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.orders-card-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 800;
}

.search-filter-box {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.table-responsive {
  overflow-x: auto;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.orders-table th {
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.9rem 1.3rem;
  border-bottom: 1px solid var(--border-color);
}

.orders-table td {
  padding: 1rem 1.3rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
  vertical-align: middle;
}

.orders-table tr:last-child td {
  border-bottom: none;
}

.orders-table tr:hover td {
  background-color: var(--bg-primary);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-pending {
  background: #FFF3CD;
  color: #856404;
}

.badge-processing {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.badge-completed {
  background: #D4EDDA;
  color: #155724;
}

.badge-cancelled {
  background: #F8D7DA;
  color: #721C24;
}

.admin-order-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

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

.detail-info-pane h4 {
  font-size: 1rem;
  font-weight: 800;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.4rem;
  margin-bottom: 0.8rem;
}

.detail-row {
  display: flex;
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
}

.detail-label {
  width: 110px;
  font-weight: 700;
  color: var(--text-muted);
}

.detail-value {
  flex: 1;
  color: var(--text-main);
}

.admin-tshirt-previews {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.admin-preview-box {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 0.5rem;
  text-align: center;
}

.admin-preview-box p {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.admin-preview-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--bg-primary);
  border-radius: var(--radius);
}

.admin-raw-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.8rem;
}

.admin-raw-link-btn {
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  text-align: center;
}

.admin-artwork-viewer[hidden] { display: none; }
.admin-artwork-viewer { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 1rem; }
.admin-artwork-viewer-backdrop { position: absolute; inset: 0; border: 0; background: rgba(0, 0, 0, 0.78); cursor: zoom-out; }
.admin-artwork-viewer-panel { position: relative; z-index: 1; width: min(100%, 1100px); max-height: calc(100vh - 2rem); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.admin-artwork-viewer-header { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 1rem; border-bottom: 1px solid var(--border-color); }
.admin-artwork-viewer-header h3 { font-size: 1rem; }
#admin-artwork-viewer-image { display: block; max-width: 100%; width: auto; max-height: calc(100vh - 10rem); margin: auto; object-fit: contain; background: var(--bg-primary); }
.admin-artwork-viewer-footer { display: flex; justify-content: flex-end; padding: 0.75rem 1rem; border-top: 1px solid var(--border-color); }
.admin-open-mockup-btn { width: 100%; margin-bottom: 0.5rem; font-size: 0.72rem; padding: 0.4rem 0.6rem; }
.admin-preview-box:fullscreen { width: 100vw; height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; padding: 1rem; background: #fff; }
.admin-preview-box:fullscreen .product-stage { flex: 0 0 auto; align-self: center; width: min(60vw, 620px); max-width: 90vw !important; height: auto; max-height: calc(100vh - 9rem); aspect-ratio: 22 / 27; }
.admin-preview-box:fullscreen .admin-open-mockup-btn { width: auto; margin: 0; }

.no-orders-msg {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  header {
    padding: 0.65rem 0.75rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    overflow: hidden;
  }

  .logo {
    align-self: center;
    font-size: 1.25rem;
    letter-spacing: 2px;
  }

  .nav-links {
    width: 100%;
    min-width: 0;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.3rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a,
  .nav-links .cart-nav-btn,
  .nav-links .account-nav {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .nav-links a {
    font-size: 0.76rem;
    padding: 0.4rem 0.55rem;
  }

  .cart-nav-btn {
    padding: 0.4rem 0.55rem;
    font-size: 0.76rem;
    gap: 0.3rem;
  }

  .cart-badge {
    width: 16px;
    height: 16px;
    font-size: 0.65rem;
  }

  .hero {
    padding: 4rem 1rem 2.5rem;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
  }

  .catalog-layout {
    padding: 0 1rem;
  }

  .product-card-image {
    height: 160px;
    padding: 0.75rem;
  }

  .product-card-info {
    padding: 0.9rem;
  }

  .product-card-info h3 {
    font-size: 0.9rem;
    min-height: 2.4em;
  }

  .product-type {
    font-size: 0.66rem;
    margin-bottom: 0.5rem;
  }

  .product-price {
    font-size: 1.05rem;
  }

  .product-gst {
    font-size: 0.62rem;
  }
}

@media (max-width: 380px) {
  header {
    padding-inline: 0.55rem;
  }

  .logo {
    font-size: 1.1rem;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .brand-mark img {
    height: 18px;
  }

  .nav-links a,
  .cart-nav-btn {
    font-size: 0.7rem;
    padding: 0.36rem 0.45rem;
  }

  .catalog-grid {
    gap: 0.6rem;
    padding: 0 0.75rem;
  }

  .product-card-image {
    height: 130px;
  }
}

/* ===== FORM HEIGHT FLEX FIX ===== */
#order-form {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* ===== CART NAVIGATION ICON ===== */
.cart-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.85rem;
  position: relative;
}

@media (hover: hover) and (pointer: fine) {
  .cart-nav-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
  }

  .cart-nav-btn:hover .cart-badge {
    background: #fff;
    color: var(--primary-dark);
  }
}

.cart-badge {
  background: var(--primary-dark);
  color: #fff;
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

/* ===== CART DRAWER / LIST ===== */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 0.8rem;
  position: relative;
}

.cart-item-img {
  width: 55px;
  height: 55px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--border-color);
  object-fit: contain;
  padding: 2px;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
}

.cart-item-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.cart-item-price {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--primary-dark);
  margin-top: 0.2rem;
}

.cart-item-qty-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.cart-qty-btn {
  width: 22px;
  height: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-main);
  transition: var(--transition);
}

.cart-qty-btn:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-color: var(--primary);
}

.cart-item-qty {
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 15px;
  text-align: center;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border-radius: var(--radius);
  align-self: flex-start;
}

.cart-item-remove:hover {
  background: #fef2f2;
}

.cart-empty-message {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid var(--border-color);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-main);
}

/* ===== SKELETON LOADING STYLES ===== */
@keyframes skeleton-shine {
  0% {
    background-position: -1000px 0;
  }

  100% {
    background-position: 1000px 0;
  }
}

.skeleton-loader {
  background: linear-gradient(90deg,
      #e0e0e0 25%,
      #f0f0f0 50%,
      #e0e0e0 75%);
  background-size: 1000px 100%;
  animation: skeleton-shine 2s infinite;
  border-radius: var(--radius);
}

.skeleton-image {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(90deg,
      #e8e8e8 25%,
      #f5f5f5 50%,
      #e8e8e8 75%);
  background-size: 1000px 100%;
  animation: skeleton-shine 2s infinite;
  border-radius: var(--radius);
}

.skeleton-image.hidden {
  display: none;
  animation: none;
}

.skeleton-text {
  width: 100%;
  height: 1rem;
  margin: 0.5rem 0;
  background: linear-gradient(90deg,
      #e0e0e0 25%,
      #f0f0f0 50%,
      #e0e0e0 75%);
  background-size: 1000px 100%;
  animation: skeleton-shine 2s infinite;
  border-radius: var(--radius);
}

.skeleton-text.short {
  width: 60%;
}

.skeleton-text.medium {
  width: 80%;
}

img.loading {
  opacity: 0.5;
}

img.loaded {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* ===== PRODUCT DETAIL DIALOG ===== */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
}

@media (max-width: 768px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-gallery-main {
  width: 100%;
  aspect-ratio: 4/5;
  background: #fdf5f6;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  overflow: hidden;
  position: relative;
}

.detail-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.detail-gallery-toggles {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
}

.gallery-toggle-btn {
  background: rgba(255, 232, 238, 0.6);
  color: var(--primary-dark);
  border: 1px solid var(--border-color);
  padding: 0.4rem 1rem;
  font-weight: 700;
  font-size: 0.75rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-toggle-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.detail-info-pane {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-rating-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.rating-stars {
  color: #fbbf24;
  font-size: 1.1rem;
}

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

.rating-badge {
  font-size: 0.75rem;
  background: #e8f5e9;
  color: #2e7d32;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius);
}

.detail-desc-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.detail-reviews-section {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.detail-reviews-title {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 0.8rem;
  letter-spacing: 0.5px;
}

.review-item {
  margin-bottom: 0.8rem;
  font-size: 0.8rem;
  line-height: 1.5;
}

.review-header {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.2rem;
}

.review-comment {
  color: var(--text-muted);
  font-style: italic;
}

/* ===== LOADING / SPINNER ===== */
.pincode-loading-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 107, 138, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spinSpinner 0.8s linear infinite;
  margin-left: 0.5rem;
  vertical-align: middle;
}

@keyframes spinSpinner {
  to {
    transform: rotate(360deg);
  }
}

/* ===== ADMIN TABS ===== */
.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.admin-tab {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transition: all 0.2s ease;
  position: relative;
  z-index: 2;
}

.admin-tab:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.admin-tab.active {
  color: var(--primary-dark);
  background: var(--primary-light);
  border-bottom: 2px solid var(--primary);
}

.admin-tab-content {
  display: none;
  position: relative;
  z-index: 1;
}

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

/* ===== PRODUCTS GRID ===== */
.products-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  position: relative;
  z-index: 1;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.product-item-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-item-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--bg-primary);
}

.product-item-info h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.product-item-info .product-category {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-item-info .product-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-top: 0.25rem;
}

.product-item-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.product-item-actions button {
  flex: 1;
  padding: 0.5rem;
  font-size: 0.85rem;
}

/* ===== CATEGORIES LIST ===== */
.categories-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  position: relative;
  z-index: 1;
}

.categories-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
  min-height: 100px;
}

.category-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-item h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.category-item .subcategories {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.category-item .subcategory-tag {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.category-item-actions {
  display: flex;
  gap: 0.5rem;
}

.category-item-actions button {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

/* ===== CATALOG LAYOUT (sidebar + grid) ===== */
.catalog-layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.catalog-layout .catalog-grid {
  max-width: none;
  margin: 0;
  padding: 0;
  overflow-anchor: none;
  grid-template-columns: repeat(2, 1fr);
  align-items: stretch;
}

@media (min-width: 1400px) {
  .catalog-layout .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ----- Sidebar ----- */
.filter-sidebar {
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  scrollbar-width: thin;
}

.filter-sidebar-head {
  display: none;
  align-items: center;
  justify-content: space-between;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.filter-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
}

.filter-group {
  margin-bottom: 2rem;
}

.filter-group-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--text-main);
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-color);
}

.filter-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0.5rem 0.4rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius);
  transition: all 0.15s ease;
}

.filter-option::before {
  content: '';
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  background: #fff;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

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

.filter-option:hover::before {
  border-color: var(--primary);
}

.filter-option.active {
  color: var(--text-main);
  font-weight: 700;
}

.filter-option.active::before {
  border-color: var(--primary);
  border-width: 4px;
  background: #fff;
}

.filter-clear-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 0.65rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.filter-clear-btn:hover {
  border-color: var(--text-main);
  color: var(--text-main);
  background: var(--bg-primary);
}

/* ----- Empty state when no products match filters ----- */
.catalog-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1.5rem;
  color: var(--text-muted);
}

.catalog-empty-state .empty-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.catalog-empty-state h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.catalog-empty-state p {
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

/* ----- Toolbar (mobile filter trigger + sort) ----- */
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.mobile-filter-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
}

.sort-select-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sort-select-wrap select {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 0.5rem 0.7rem;
  cursor: pointer;
}

.filter-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 19, 24, 0.45);
  z-index: 199;
}

.filter-overlay.open {
  display: block;
}

@media (max-width: 900px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .filter-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 84%;
    max-width: 320px;
    z-index: 200;
    border-radius: 0;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    box-shadow: var(--shadow-lg);
  }

  .filter-sidebar.open {
    transform: translateX(0);
  }

  .filter-sidebar-head {
    display: flex;
  }

  .mobile-filter-toggle {
    display: inline-flex;
  }

  .catalog-toolbar {
    justify-content: space-between;
  }
}

/* ===== SILK SCREEN LOADER STYLES ===== */
.silk-screen-loader-container {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 350px;
  width: 100%;
}

.silk-screen-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.silk-screen-mesh {
  position: relative;
  width: 130px;
  height: 150px;
  border: 4px solid var(--text-secondary);
  border-radius: var(--radius);
  background: rgba(255, 232, 238, 0.4);
  background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
  background-size: 4px 4px;
  overflow: hidden;
  box-shadow: var(--shadow-md), inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.silk-screen-shirt-outline {
  position: absolute;
  top: 35px;
  left: 25px;
  width: 80px;
  height: 80px;
}

.shirt-svg {
  width: 100%;
  height: 100%;
}

/* Base shirt outline style */
.shirt-path-bg {
  stroke: var(--text-muted);
  stroke-width: 2.5;
  stroke-dasharray: 4, 4;
  fill: none;
}

/* Revealed ink shirt style */
.silk-screen-ink-reveal {
  position: absolute;
  top: 35px;
  left: 25px;
  width: 80px;
  height: 0;
  /* Animated from 0 to 80px */
  overflow: hidden;
  animation: ink-reveal-height 1.8s infinite ease-in-out;
}

.shirt-path-ink {
  stroke: var(--primary);
  stroke-width: 3;
  fill: rgba(255, 107, 138, 0.15);
}

.silk-screen-squeegee {
  position: absolute;
  left: -2px;
  width: calc(100% + 4px);
  height: 10px;
  background: linear-gradient(to bottom, var(--text-secondary) 0%, var(--text-main) 30%, var(--text-main) 70%, var(--primary) 100%);
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  animation: squeegee-sweep-down 1.8s infinite ease-in-out;
  z-index: 10;
}

.silk-screen-text-container {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.silk-screen-text {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary-dark);
  text-transform: uppercase;
  animation: pulse-text 1.5s infinite ease-in-out;
}

.silk-screen-subtext {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* Animations */
@keyframes squeegee-sweep-down {
  0% {
    top: 25px;
  }

  15% {
    top: 25px;
  }

  65% {
    top: 120px;
  }

  85% {
    top: 120px;
  }

  100% {
    top: 25px;
  }
}

@keyframes ink-reveal-height {
  0% {
    height: 0;
  }

  15% {
    height: 0;
  }

  65% {
    height: 80px;
  }

  85% {
    height: 80px;
  }

  100% {
    height: 0;
  }
}

@keyframes pulse-text {

  0%,
  100% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
    color: var(--primary);
  }
}

.catalog-grid.loading-active .catalog-card {
  display: none !important;
}

/* ===== MOBILE CUSTOMIZER: SIDE-BY-SIDE LAYOUT (placed last to win the cascade) ===== */
@media (max-width: 992px) {
  .customizer-section {
    padding: 0 0.75rem;
  }

  .customizer-container {
    grid-template-columns: 36% 1fr;
    gap: 1rem;
    padding: 1rem 0.75rem;
    align-items: start;
  }

  .viewer-column {
    position: sticky;
    top: 64px;
    min-height: unset;
    padding: 0.5rem;
  }

  .product-stage {
    max-width: 100%;
  }

  .controls-column {
    gap: 1.1rem;
  }

  .controls-header h2 {
    font-size: 1.15rem;
  }

  .controls-header .controls-subtitle {
    font-size: 0.7rem;
    margin-bottom: 0.4rem;
  }

  .price-block .price-main {
    font-size: 1.25rem;
  }

  .price-block .price-was {
    font-size: 0.82rem;
  }

  .price-block .price-tag {
    font-size: 0.6rem;
    padding: 0.15rem 0.4rem;
  }

  .control-label {
    font-size: 0.7rem;
  }

  .color-picker {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .color-option {
    width: 28px;
    height: 28px;
  }

  .size-picker {
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .size-option {
    flex: 1 1 42px;
    padding: 0.4rem 0;
    font-size: 0.75rem;
  }

  .view-tab {
    padding: 0.45rem 0;
    font-size: 0.75rem;
  }

  .upload-zone {
    padding: 1rem 0.75rem;
  }

  .upload-zone-content svg {
    width: 26px;
    height: 26px;
  }

  .upload-zone-content p {
    font-size: 0.75rem;
  }

  .upload-zone-content span {
    font-size: 0.62rem;
  }

  .view-indicator {
    top: 0.6rem;
    left: 0.6rem;
    font-size: 0.6rem;
    padding: 0.25rem 0.6rem;
    letter-spacing: 0.5px;
  }
}

/* ===== MOBILE CUSTOMIZER: STACK ON PHONES (the 992px query above still splits 36%/64%,
   which is too narrow for real phone widths and forces every control to wrap) ===== */
@media (max-width: 640px) {
  .customizer-container {
    grid-template-columns: 1fr;
  }

  .viewer-column {
    position: static;
    top: auto;
  }

  .size-picker {
    flex-wrap: nowrap;
  }

  .size-option {
    flex: 1 1 0;
    padding: 0.5rem 0;
    font-size: 0.8rem;
  }
}

/* ===== ACCOUNT NAV (header login/account button + dropdown) ===== */
.account-nav {
  position: relative;
}

.account-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  min-width: 200px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  z-index: 200;
  flex-direction: column;
}

.account-dropdown-menu.open {
  display: flex;
}

.account-dropdown-name {
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text-main);
  padding: 0.5rem 0.7rem 0.6rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0.3rem;
  word-break: break-word;
}

.account-dropdown-menu a,
.account-dropdown-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.account-dropdown-menu a:hover,
.account-dropdown-menu button:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.account-dropdown-menu button {
  color: var(--primary-dark);
  border-top: 1px dashed var(--border-color);
  margin-top: 0.2rem;
}

/* ===== ACCOUNT & TRACKING PAGES ===== */
.account-page-wrap,
.tracking-page-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 5% 5rem;
  width: 100%;
  flex: 1;
}

.account-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.account-card h2,
.account-card h3 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 0.8rem;
}

.account-profile-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

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

.account-profile-info .account-name {
  font-weight: 800;
  font-size: 1.1rem;
}

.account-profile-info .account-email {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.account-actions-row {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.btn-danger-outline {
  background: #fff;
  color: #c0392b;
  border: 1px solid #f1c0c0;
  padding: 0.7rem 1.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-danger-outline:hover {
  background: #c0392b;
  color: #fff;
  border-color: #c0392b;
}

.order-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem 1.2rem;
  margin-bottom: 0.9rem;
  transition: var(--transition);
}

.order-card:hover {
  box-shadow: var(--shadow-sm);
}

.order-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.order-card-id {
  font-weight: 800;
  font-size: 0.95rem;
}

.order-card-date {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.order-status-badge {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--primary-light);
  color: var(--primary-dark);
}

.order-status-badge.status-completed {
  background: #e3f7e9;
  color: #1e8449;
}

.order-status-badge.status-cancelled {
  background: #fbe4e4;
  color: #c0392b;
}

.order-card-items {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0.5rem 0;
}

.order-product-list {
  display: grid;
  gap: 0.65rem;
  margin: 0.75rem 0;
}

.order-product-item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.order-product-thumb {
  width: 76px;
  height: 88px;
  flex: 0 0 76px;
  display: block;
  object-fit: contain;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
}

.order-product-thumb-empty {
  display: grid;
  place-items: center;
  padding: 0.35rem;
  color: var(--text-muted);
  font-size: 0.68rem;
  text-align: center;
}

.order-product-info { min-width: 0; }
.order-product-info strong { display: block; font-size: 0.85rem; }
.order-product-info p { margin-top: 0.2rem; color: var(--text-muted); font-size: 0.76rem; line-height: 1.4; }
.order-product-info span { display: block; margin-top: 0.3rem; font-weight: 800; font-size: 0.8rem; }

.order-card-payment {
  color: var(--text-muted);
  font-size: 0.76rem;
  margin: -0.15rem 0 0.65rem;
}

.order-card-update {
  margin-top: 0.65rem;
  padding: 0.6rem 0.7rem;
  border-left: 3px solid var(--primary);
  background: var(--primary-light);
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.45;
}

.order-card-update span { color: var(--text-muted); font-weight: 600; }

.order-card-history {
  margin-top: 0.65rem;
  font-size: 0.78rem;
}

.order-card-history summary {
  color: var(--primary-dark);
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.order-card-history-list {
  margin: 0.7rem 0 0 0.15rem;
  padding-left: 0.85rem;
  border-left: 1px solid var(--border-color);
}

.order-card-history-event {
  position: relative;
  padding: 0 0 0.75rem 0.15rem;
  color: var(--text-secondary);
}

.order-card-history-event:last-child { padding-bottom: 0; }

.order-card-history-dot {
  position: absolute;
  left: -1.22rem;
  top: 0.22rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
  box-shadow: 0 0 0 3px var(--bg-primary);
}

.order-card-history-event.latest .order-card-history-dot { background: var(--primary); }

.order-card-history-event time {
  margin-left: 0.45rem;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.order-card-history-event p { margin-top: 0.12rem; line-height: 1.4; }

.order-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--border-color);
}

.order-card-total {
  font-weight: 800;
}

.account-empty-state,
.tracking-empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

.tracking-search-row {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.tracking-search-row .form-control {
  flex: 1;
}

.tracking-timeline {
  display: flex;
  justify-content: space-between;
  margin: 2rem 0 1rem;
  position: relative;
}

.tracking-step {
  flex: 1;
  text-align: center;
  position: relative;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.tracking-step .tracking-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  margin: 0 auto 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  position: relative;
  z-index: 2;
}

.tracking-step::before {
  content: '';
  position: absolute;
  top: 11px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--border-color);
  z-index: 1;
}

.tracking-step:first-child::before {
  display: none;
}

.tracking-step.done {
  color: var(--primary-dark);
}

.tracking-step.done .tracking-dot {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.tracking-step.done::before {
  background: var(--primary);
}

.tracking-step.cancelled .tracking-dot {
  background: #c0392b;
  border-color: #c0392b;
  color: #fff;
}

.tracking-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-style: italic;
  margin-top: 1rem;
}

.tracking-history {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.tracking-history h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.9rem;
}

.tracking-history-item {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 0.7rem;
  position: relative;
  padding-bottom: 1rem;
}

.tracking-history-item:last-child {
  padding-bottom: 0;
}

.tracking-history-marker {
  width: 10px;
  height: 10px;
  margin-top: 0.28rem;
  border-radius: 50%;
  background: var(--border-color);
  box-shadow: 0 0 0 3px var(--bg-primary);
}

.tracking-history-item.latest .tracking-history-marker {
  background: var(--primary);
}

.tracking-history-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.tracking-history-head time,
.tracking-history-item p {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.tracking-history-item p {
  margin-top: 0.15rem;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .tracking-timeline {
    flex-direction: column;
    gap: 1.2rem;
    align-items: flex-start;
  }

  .tracking-step {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-align: left;
  }

/* ===== PASSWORD RESET ===== */
.reset-page {
  min-height: 100vh;
  background: #f8f6f3;
}

.reset-header {
  min-height: 72px;
  padding: 0.8rem clamp(1rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.9);
}

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

.reset-back-link {
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 700;
}

.reset-back-link:hover { color: var(--primary-dark); }

.reset-shell {
  width: min(1080px, calc(100% - 2rem));
  min-height: calc(100vh - 138px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  align-items: center;
  gap: clamp(2rem, 8vw, 8rem);
  padding: clamp(2rem, 7vw, 5.5rem) 0;
}

.reset-intro { max-width: 430px; }

.reset-eyebrow {
  margin-bottom: 0.65rem;
  color: var(--primary-dark);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.reset-intro h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.35rem, 5vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.reset-intro > p:not(.reset-eyebrow) {
  margin-top: 1.2rem;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.reset-intro-note {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.65rem 0.8rem;
  border-left: 3px solid var(--primary);
  color: var(--text-secondary);
  background: var(--primary-light);
  font-size: 0.78rem;
  line-height: 1.45;
}

.reset-card {
  padding: clamp(1.5rem, 5vw, 2.6rem);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(35, 29, 26, 0.08);
}

.reset-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--primary-light);
  font-size: 1.15rem;
}

.reset-card h2,
.reset-card h3 { margin: 0; }

.reset-card h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  letter-spacing: -0.035em;
}

.reset-subtitle {
  margin: 0.65rem 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.reset-loading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.reset-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: reset-spin 0.75s linear infinite;
}

@keyframes reset-spin { to { transform: rotate(360deg); } }

.reset-email-chip {
  margin-bottom: 1.2rem;
  padding: 0.65rem 0.75rem;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  font-size: 0.78rem;
  line-height: 1.45;
}

.reset-email-chip strong { overflow-wrap: anywhere; }
.reset-form .form-group { margin-bottom: 1rem; }
.reset-form small { display: block; margin-top: 0.4rem; color: var(--text-muted); font-size: 0.72rem; }
.reset-form .btn-primary { width: 100%; padding: 0.8rem; }

.reset-error {
  margin: -0.25rem 0 0.75rem;
  color: #b42318;
  font-size: 0.78rem;
}

.reset-state { font-size: 0.9rem; }
.reset-state h3 { font-size: 1.1rem; }
.reset-state p { margin: 0.55rem 0 1.25rem; color: var(--text-secondary); line-height: 1.55; }
.reset-state-error h3 { color: #b42318; }
.reset-state-success h3 { color: #167947; }

.reset-footer {
  padding: 1.25rem 1rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.75rem;
}

@media (max-width: 760px) {
  .reset-shell { grid-template-columns: 1fr; min-height: auto; gap: 1.8rem; padding: 2.25rem 0; }
  .reset-intro { max-width: none; }
  .reset-intro h1 { font-size: 2.45rem; }
}

@media (max-width: 420px) {
  .reset-header { min-height: 62px; padding-inline: 1rem; }
  .reset-header .logo { font-size: 1rem; }
  .reset-header .brand-mark { width: 28px; height: 28px; }
  .reset-back-link { font-size: 0.76rem; }
  .reset-shell { width: min(100% - 1.25rem, 1080px); }
}

  .tracking-step .tracking-dot {
    margin: 0;
  }

  .tracking-step::before {
    display: none;
  }
}

/* ===== CUSTOMIZER DRAG FIX =====
   Stops the page from auto-scrolling while dragging a design element
   (text/image) on touch devices, and prevents accidental text/image
   selection from hijacking the drag on desktop. */
.tshirt-mockup-wrapper,
#dynamic-print-zones-container,
#dynamic-print-zones-container > div,
#dynamic-print-zones-container canvas {
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}