/* === RIGO Wallcovering — Clean Industrial Design System === */

:root {
  /* Color Palette — Industrial Light */
  --color-bg: #ffffff;
  --color-surface: #f4f6f8;
  --color-surface-hover: #e8ecf0;
  --color-border: #dce1e6;
  --color-text: #1a1a2e;
  --color-text-muted: #5a6a7a;
  --color-accent: #002855;
  --color-accent-light: #0066a1;
  --color-accent-dark: #001a3a;
  --color-white: #ffffff;
  --color-danger: #c0392b;
  --color-success: #27ae60;

  /* Typography */
  --font-heading: 'IBM Plex Sans', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;
  --space-3xl: 7rem;
  --space-4xl: 9rem;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;

  /* Shadows — subtle and clean */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.10);

  /* Border radius — crisp */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-xl: 8px;
}

/* === Dark Theme — Collection & Detail Pages === */
.dark-theme {
  --color-bg: #0f0f0f;
  --color-surface: #1a1a1a;
  --color-surface-hover: #252525;
  --color-border: #2a2a2a;
  --color-text: #f0f0f0;
  --color-text-muted: #999999;
  --color-accent: #ffffff;
  --color-accent-light: #cccccc;
  --color-accent-dark: #ffffff;
  --color-white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  background-color: #0f0f0f;
  color: #f0f0f0;
  min-height: 100vh;
}

.dark-theme .section-header h2 {
  color: #ffffff;
}

.dark-theme .section-header p {
  color: #999999;
}

/* Product grid within dark theme */
.dark-theme .product-grid {
  display: grid;
  gap: 24px;
  padding: 0;
}

.dark-theme .product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.dark-theme .product-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.dark-theme .product-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }

.dark-theme .product-card {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  transition: border-color 0.2s, transform 0.2s;
}


.dark-theme .product-card-img {
  aspect-ratio: 1;
  overflow: hidden;
}

.dark-theme .product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.4);
  transform-origin: center;
}

.dark-theme .product-card-body {
  padding: 12px 16px;
}

.dark-theme .product-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: #f0f0f0;
  margin-bottom: 2px;
}

.dark-theme .item-code {
  font-size: 0.8rem;
  color: #888;
  letter-spacing: 0.5px;
}

.dark-theme .status {
  font-size: 0.75rem;
  color: #c0392b;
  font-weight: 600;
  text-transform: uppercase;
}

/* Search/sort controls in dark theme */
.dark-theme .collection-controls input,
.dark-theme .collection-controls select {
  background: #1a1a1a !important;
  color: #f0f0f0 !important;
  border-color: #2a2a2a !important;
}

.dark-theme .collection-controls input::placeholder {
  color: #666;
}

/* Detail page in dark theme */
.dark-theme .detail-hero {
  background: transparent;
}

.dark-theme .detail-info h1 {
  color: #ffffff;
}

.dark-theme .breadcrumb a {
  color: #999;
}

.dark-theme .detail-specs-table h3 {
  color: #f0f0f0;
  border-bottom-color: #2a2a2a !important;
}

.dark-theme .detail-specs-table table td {
  color: #ccc;
}

.dark-theme .btn-primary {
  background: #ffffff;
  color: #0f0f0f;
  border-color: #ffffff;
}

.dark-theme .btn-primary:hover {
  background: #e0e0e0;
}

.dark-theme .btn-outline {
  color: #ffffff;
  border-color: #555;
}

.dark-theme .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dark-theme .colorway-gallery a {
  color: #ccc;
}

.dark-theme .colorway-gallery a:hover {
  color: #fff;
}

.dark-theme .magnify-hint {
  color: #888;
}

.dark-theme .spec-custom {
  color: #888;
}

@media (max-width: 768px) {
  .dark-theme .product-grid.cols-3,
  .dark-theme .product-grid.cols-4,
  .dark-theme .product-grid.cols-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === Dark Header — when body has .dark-page class === */
body.dark-page header {
  background: rgba(15, 15, 15, 0.97);
  border-bottom-color: #2a2a2a;
}

body.dark-page .nav-menu > li > a {
  color: #e0e0e0;
}

body.dark-page .nav-menu > li > a:hover {
  color: #ffffff;
}

body.dark-page .logo img {
  filter: brightness(0) invert(1);
}

body.dark-page .nav-dropdown {
  background: #1a1a1a;
  border-color: #2a2a2a;
}

body.dark-page .nav-dropdown li a {
  color: #ccc;
}

body.dark-page .nav-dropdown li a:hover {
  color: #fff;
  background: #252525;
}

body.dark-page .cart-link {
  color: #e0e0e0 !important;
}

/* === Collection Hero Banner === */
.collection-hero {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
  margin-bottom: var(--space-xl);
}

.collection-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

.collection-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-lg);
}

.collection-hero-overlay h1 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-family: var(--font-heading);
}

.collection-hero-overlay p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .collection-hero { height: 220px; }
  .collection-hero-overlay h1 { font-size: 1.4rem; letter-spacing: 3px; }
}

/* === Collections Showcase Grid === */
.collections-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding-bottom: var(--space-2xl);
}

.showcase-card {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  text-decoration: none;
  border: 1px solid #2a2a2a;
  transition: border-color 0.3s, transform 0.3s;
}

.showcase-card:hover {
  border-color: #555;
  transform: translateY(-3px);
}

.showcase-card-img {
  width: 100%;
  height: 100%;
}

.showcase-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: brightness(0.5);
}

.showcase-card:hover .showcase-card-img img {
  filter: brightness(0.6);
}

.showcase-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.showcase-card-overlay h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 2px;
  text-transform: capitalize;
  margin: 0 0 4px 0;
  font-family: var(--font-heading);
}

.showcase-card-count {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 1px;
}

.showcase-card-arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s, transform 0.3s;
}

.showcase-card:hover .showcase-card-arrow {
  color: #ffffff;
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .collections-showcase {
    grid-template-columns: 1fr;
  }
  .showcase-card-overlay h3 {
    font-size: 1.4rem;
    letter-spacing: 2px;
  }
}
/* === Visual Motion & Animations === */

/* Scroll-reveal base state */
.reveal {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

.reveal.reveal-up {
  transform: translateY(30px);
}

.reveal.reveal-left {
  transform: translateX(-40px);
}

.reveal.reveal-right {
  transform: translateX(40px);
}

.reveal.reveal-scale {
  transform: scale(0.92);
}

/* Revealed state */
.reveal.revealed {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* Legacy support */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-up.visible,
.fade-in-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Header shrink on scroll */
header {
  transition: height 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.header-scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header-scrolled .header-inner {
  height: 60px !important;
  transition: height 0.3s ease;
}

.header-scrolled .logo img {
  height: 42px !important;
  transition: height 0.3s ease;
}

/* Enhanced card hover effects */
.feature-card {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.collection-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.collection-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
}

.collection-card img {
  transition: transform 0.6s ease;
}

.collection-card:hover img {
  transform: scale(1.08);
}

/* Button transitions */
.btn {
  transition: background 0.25s ease, color 0.25s ease,
              border-color 0.25s ease, box-shadow 0.25s ease,
              transform 0.2s ease;
}

.btn:hover {
  box-shadow: 0 4px 16px rgba(0, 40, 85, 0.2);
}

.btn:active {
  transform: scale(0.97) !important;
}

/* Subtle underline animation for nav links */
.nav-menu > li > a {
  position: relative;
}

.nav-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-menu > li > a:hover::after {
  width: 100%;
  left: 0;
}

body.dark-page .nav-menu > li > a::after {
  background: #ffffff;
}

/* Ambient float keyframe for decorative elements */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Divider line animation */
hr {
  position: relative;
  overflow: hidden;
}

hr::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 40, 85, 0.3), transparent);
  animation: shimmer 4s infinite linear;
}

/* Form input focus animation */
.form-control {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  border-color: var(--color-accent-light) !important;
  box-shadow: 0 0 0 3px rgba(0, 102, 161, 0.12);
  outline: none;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .fade-in-up { 
    opacity: 1;
    transform: none;
    transition: none;
  }
  .collection-card img,
  .showcase-card-img img {
    transition: none;
  }
  hr::after {
    animation: none;
  }
}

/* === Reset & Base === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-accent-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

/* === Container === */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* === Header / Nav === */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo img {
  height: 55px;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2px;
}

.nav-menu>li {
  position: relative;
}

.nav-menu>li>a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: var(--space-sm) var(--space-sm);
  color: var(--color-text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.nav-menu>li>a:hover,
.nav-menu>li>a.active {
  color: var(--color-accent);
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-sm) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-lg);
  list-style: none;
}

.nav-menu>li:hover>.nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: var(--space-sm) var(--space-lg);
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  transition: all var(--transition-fast);
}

.nav-dropdown a:hover {
  color: var(--color-accent);
  background: var(--color-surface);
}

/* Dropdown arrow */
.nav-arrow {
  font-size: 0.6em;
  transition: transform var(--transition-fast);
}

.nav-menu>li:hover .nav-arrow {
  transform: rotate(180deg);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 0.95rem;
  cursor: pointer;
  padding: var(--space-sm);
}

/* === Hero Section === */
.hero {
  position: relative;
  height: 85vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity var(--transition-slow);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(0, 0, 0, 0.6) 0%,
      rgba(0, 0, 0, 0.2) 50%,
      transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero-content h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--color-white);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.hero-content p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-accent-light);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

/* White outline button for use on dark backgrounds */
.btn-outline-white {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-white:hover {
  background: var(--color-white);
  color: var(--color-accent);
}

/* === Product Grid === */
.section {
  padding: var(--space-2xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

.product-grid {
  display: grid;
  gap: var(--space-lg);
}

.product-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.product-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.product-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.product-card-img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.4);
  transform-origin: center;
}

/* Showcase cards (Collections page, Homepage) */
.showcase-card {
  display: block;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.showcase-card-img {
  position: relative;
  overflow: hidden;
}

.showcase-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.4);
  transform-origin: center;
  display: block;
}

.product-card-body {
  padding: var(--space-md);
}

.product-card-body h3 {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.product-card-body .item-code {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
}

.product-card-body .status {
  font-size: 0.75rem;
  color: var(--color-danger);
  font-weight: 600;
}

/* === Detail Page === */
.detail-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-top: 80px;
  padding-top: var(--space-xl);
  direction: rtl;
}

.detail-hero>* {
  direction: ltr;
}

.detail-gallery {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.detail-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-md);
}

/* Magnifier */
.img-magnifier-container {
  position: relative;
  overflow: hidden;
}

.img-magnifier-container > img {
  width: 110%;
  margin-left: -5%;
  display: block;
}

.img-magnifier-glass {
  position: absolute;
  border: 2px solid var(--color-accent);
  border-radius: 4px;
  cursor: none;
  width: 200px;
  height: 200px;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.magnify-hint {
  position: absolute;
  bottom: 16px;
  right: 16px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  pointer-events: none;
  transition: opacity var(--transition-base);
  z-index: 5;
}

.img-magnifier-container:hover .magnify-hint {
  opacity: 0;
}

.detail-info h1 {
  font-size: 1.6rem;
  margin-bottom: var(--space-sm);
}

.detail-info .item-code {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
}

.detail-info .breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.detail-info .breadcrumb a {
  color: var(--color-accent-light);
}

/* Cert icons */
.detail-icons {
  display: flex;
  gap: 12px;
  margin: var(--space-md) 0 var(--space-lg);
}

.detail-icons a {
  display: inline-block;
  width: 32px;
  height: 32px;
}

.detail-icons img {
  width: 32px;
  height: 32px;
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

.detail-icons a:hover img {
  opacity: 1;
}

/* Specs + Thumbnail row */
.detail-specs-row {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.detail-specs {
  flex: 1;
}

.spec-line {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.spec-label {
  color: var(--color-text-muted);
  margin-right: 12px;
}

.spec-value {
  color: var(--color-text);
  font-weight: 500;
}

.spec-custom {
  margin-top: var(--space-md);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-thumb {
  margin-top: var(--space-md);
  width: 100px;
  cursor: pointer;
}

.detail-thumb img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.detail-thumb:hover img {
  border-color: var(--color-accent);
  transform: scale(1.05);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  cursor: default;
}

.lightbox.active {
  display: flex;
}

.lightbox-inner {
  position: relative;
  background: transparent;
  border: 2px solid #333;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.lightbox-inner img {
  display: block;
  width: 576px;
  height: 576px;
  object-fit: none;
  object-position: center;
  transform: scale(1.1);
  transform-origin: center;
  border-radius: 6px;
}

.lightbox-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 32px;
  height: 32px;
  background: #333;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 1;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: #c0392b;
}

.lightbox-label {
  text-align: center;
  margin-top: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.04em;
}

/* Action Buttons */
.detail-buttons {
  display: flex;
  gap: 16px;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.detail-buttons .btn {
  padding: 14px 32px;
  font-size: 0.85rem;
}

/* Colorway Gallery */
.colorway-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: var(--space-md);
}

.colorway-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
  text-decoration: none;
  color: var(--color-text);
  transition: transform var(--transition-fast);
}

.colorway-item:hover {
  transform: translateY(-2px);
}

.colorway-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  transition: border-color var(--transition-fast);
}

.colorway-item:hover img {
  border-color: var(--color-accent);
}

.colorway-item span {
  margin-top: 4px;
  font-size: 0.65rem;
  color: var(--color-text-muted);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Related products */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-md);
}

/* === About Section (Homepage) === */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about-text h2 {
  font-size: 1.4rem;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.about-text p {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.about-image {
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* === Collections Preview === */
.collections-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.collection-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
}

.collection-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  transition: transform var(--transition-slow);
}


.collection-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-lg);
  transition: background var(--transition-base);
}

.collection-card:hover .collection-card-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.05) 100%);
}

.collection-card-overlay h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-white);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  text-transform: capitalize;
}

/* === Footer === */
footer {
  background: var(--color-accent);
  border-top: none;
  padding: var(--space-2xl) 0 var(--space-lg);
  color: var(--color-white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: var(--space-md);
}

.footer-col h4 {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: var(--space-sm);
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.social-links {
  display: flex;
  gap: var(--space-md);
}

.social-links a {
  color: rgba(255, 255, 255, 0.6);
}

.social-links a:hover {
  color: var(--color-white);
}

/* === Static Content Pages === */
.content-page {
  margin-top: 80px;
  padding: var(--space-xl) 0;
  min-height: 60vh;
}

.content-page h1 {
  font-size: 1.6rem;
  margin-bottom: var(--space-lg);
  color: var(--color-text);
}

.content-page p {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-md);
  max-width: 75ch;
}

.page-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
}

.lead {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.content-block h3 {
  color: var(--color-accent);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  font-size: 1.05rem;
}

.content-block p {
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* === Admin === */
.admin-layout {
  margin-top: 80px;
  padding: var(--space-xl) 0;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.admin-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  background: var(--color-surface);
}

.admin-table tr:hover {
  background: var(--color-surface-hover);
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.badge-active {
  background: rgba(39, 174, 96, 0.12);
  color: var(--color-success);
}

.badge-inactive {
  background: rgba(192, 57, 43, 0.12);
  color: var(--color-danger);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent-light);
  box-shadow: 0 0 0 3px rgba(0, 102, 161, 0.1);
}

/* === Responsive === */
@media (max-width: 1024px) {
  .product-grid.cols-4 {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .detail-hero {
    grid-template-columns: 1fr;
  }

  .about-section {
    grid-template-columns: 1fr;
  }

  .collections-preview {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  .product-grid.cols-3,
  .product-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-menu {
    display: none;
  }

  .nav-menu.show {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-md);
    box-shadow: var(--shadow-lg);
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    height: 60vh;
    min-height: 400px;
  }

  .hero-content h1 {
    font-size: 1.4rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
  }

  .collections-preview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {

  .product-grid.cols-3,
  .product-grid.cols-4 {
    grid-template-columns: 1fr;
  }
}

/* === Cart === */
.cart-link {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -12px;
  background: var(--color-accent-light);
  color: var(--color-white);
  font-size: 0.65rem;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-popup {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9998;
  transition: top 0.4s ease;
}

.cart-popup.active {
  top: 90px;
}

.cart-popup-inner {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  min-width: 320px;
  max-width: 420px;
}

.cart-popup-msg {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text);
  margin-bottom: 16px;
  line-height: 1.5;
}

.cart-popup-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-sm {
  padding: 6px 16px;
  font-size: 0.8rem;
}

/* Cart Table */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-lg);
}

.cart-table th {
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  padding: 12px 8px;
  border-bottom: 2px solid var(--color-border);
}

.cart-table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
  color: var(--color-text);
}

.cart-table a {
  color: var(--color-accent-light);
  text-decoration: none;
}

.cart-table a:hover {
  text-decoration: underline;
}

.cart-remove {
  color: var(--color-text-muted) !important;
  font-size: 0.92rem;
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

.cart-remove:hover {
  opacity: 1;
  color: var(--color-danger) !important;
  text-decoration: none !important;
}

/* === Sales & Marketing Components === */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin: var(--space-xl) 0;
}

.feature-card {
  background: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent-light);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 1.6rem;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  background: rgba(0, 40, 85, 0.06);
  width: 80px;
  height: 80px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto var(--space-md);
}

.hero-large {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  position: relative;
  color: var(--color-white);
  margin-top: 80px;
}

.hero-large-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 40, 85, 0.5), rgba(0, 40, 85, 0.85));
}

.hero-large-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: var(--space-lg);
}

.hero-large h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: var(--space-md);
  color: var(--color-white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-large p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-xl);
}

/* Process Timeline */
.process-timeline {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-xl) 0;
}

.process-step {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s ease-out;
  align-items: flex-start;
}

.process-step.visible {
  opacity: 1;
  transform: translateX(0);
}

.step-number {
  font-size: 2.4rem;
  font-weight: 600;
  color: rgba(0, 40, 85, 0.08);
  line-height: 1;
  min-width: 80px;
  text-align: right;
}

.step-content h3 {
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
  font-size: 0.95rem;
}

/* Accordion */
details.spec-details {
  margin-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

details.spec-details summary {
  padding: var(--space-md) 0;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text);
  transition: color var(--transition-fast);
}

details.spec-details summary:hover {
  color: var(--color-accent-light);
}

details.spec-details summary::-webkit-details-marker {
  display: none;
}

details.spec-details summary::after {
  content: '+';
  font-size: 0.95rem;
  color: var(--color-accent);
  font-weight: 300;
}

details.spec-details[open] summary::after {
  content: '-';
}

.spec-content {
  padding-bottom: var(--space-lg);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Crossfade container for About page */
.crossfade-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.crossfade-container .crossfade-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: crossfade 12s infinite;
}

.crossfade-container .crossfade-img:nth-child(1) {
  animation-delay: 0s;
}

.crossfade-container .crossfade-img:nth-child(2) {
  animation-delay: 4s;
}

.crossfade-container .crossfade-img:nth-child(3) {
  animation-delay: 8s;
}

@keyframes crossfade {
  0% {
    opacity: 0;
  }

  8% {
    opacity: 1;
  }

  33% {
    opacity: 1;
  }

  42% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

/* === Filter Sidebar (Browse Page) === */
.filter-sidebar {
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.filter-sidebar::-webkit-scrollbar { width: 4px; }
.filter-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

.filter-search input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  color: #fff;
  font-size: 0.85rem;
  margin-bottom: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-search input:focus {
  outline: none;
  border-color: var(--color-accent-light);
  box-shadow: 0 0 0 3px rgba(0,102,161,0.15);
}

.filter-search input::placeholder { color: rgba(255,255,255,0.35); }

.filter-group {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.filter-group-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 0;
  cursor: pointer;
  transition: color 0.2s;
}

.filter-group-toggle:hover { color: var(--color-accent-light); }

.filter-group-toggle svg {
  transition: transform 0.25s;
}

.filter-group[data-open="false"] .filter-group-toggle svg {
  transform: rotate(-90deg);
}

.filter-group-body {
  padding-top: 8px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  cursor: pointer;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

.filter-option:hover { color: #fff; }

.filter-option input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.filter-option input[type="checkbox"]:checked {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.filter-option input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 10px;
  font-weight: bold;
}

.filter-label { flex: 1; }

.filter-count {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  min-width: 20px;
  text-align: right;
}

/* Color Chips */
.color-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.color-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 6px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  transition: all 0.2s;
}

.color-chip:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}

.color-chip.active {
  background: rgba(0,102,161,0.2);
  border-color: var(--color-accent);
  color: #fff;
}

.color-chip-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  flex-shrink: 0;
}

.color-chip-label { font-weight: 500; }

/* Active Filter Tags */
.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: rgba(0,102,161,0.2);
  border: 1px solid rgba(0,102,161,0.3);
  border-radius: 12px;
  font-size: 0.7rem;
  color: var(--color-accent-light);
  cursor: pointer;
  transition: background 0.2s;
}

.filter-tag:hover {
  background: rgba(0,102,161,0.35);
}

/* Product color label */
.product-color {
  display: block;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.colorway-count {
  display: inline-block;
  font-size: 0.65rem;
  color: var(--color-accent-light);
  margin-top: 6px;
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 900px) {
  .filter-sidebar {
    position: static;
    max-height: none;
  }

  .filter-product-grid {
    grid-template-columns: 1fr !important;
  }

  .filter-sidebar {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--space-md);
    margin-bottom: var(--space-md);
  }
}

@media (max-width: 768px) {
  .detail-buttons {
    flex-direction: column !important;
  }

  .detail-buttons .btn {
    width: 100%;
    text-align: center;
  }

  .magnify-hint {
    display: none !important;
  }

  .detail-hero {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
}