:root {
  /* Layout */
  --container: 1850px;
  --gap: 10px;

  /* Z-Index Scale - Optimized and consolidated */
  --z-base: 1;
  --z-content: 2;
  --z-elevated: 3;
  --z-sticky: 100;
  --z-dropdown: 1000;
  --z-modal: 2000;
  --z-overlay: 9998;
  --z-popup: 9999;
  --z-toast: 10000;

  /* Color System - Consolidated and optimized */
  --bg: #0d0d0d;
  --text: #fff;
  --muted: #8a8a8a;
  --border: #7c7c7c;
  --accent: #ff4444;

  /* Derived colors - using CSS calc for better performance */
  --background: var(--bg);
  --headerBackground: #131313;
  --card-background: var(--bg);

  /* Hero gradient - simplified */
  --hero-gradient-start: var(--background);
  --hero-gradient-end: var(--background);
  --hero-gradient-checkpoint-1: rgba(255, 255, 255, 0.8);
  --hero-gradient-checkpoint-2: rgba(255, 255, 255, 0.1);
  --hero-gradient-checkpoint-3: rgba(255, 255, 255, 0.1);
  --hero-gradient-checkpoint-4: rgba(255, 255, 255, 0.8);

  /* Interactive elements - consolidated */
  --size-option-bg: transparent;
  --size-option-text: var(--text);
  --size-option-border: var(--border);
  --size-option-hover-bg: var(--text);
  --size-option-hover-text: var(--bg);
  --size-option-hover-border: var(--text);

  color-scheme: dark light;
}

/* Light theme - Optimized */
[data-theme="light"] {
  --bg: #fcfcfc;
  --text: #0b0b0b;
  --muted: #6a6a6a;
  --border: #e7e7e7;
  --accent: #ff4444;

  /* Derived colors automatically update via CSS variables */
  --background: var(--bg);
  --headerBackground: #131313; /* Keep header dark in light theme */
  --card-background: #f8f8f8;
}

html,
body {
  background: var(--bg);
  color: var(--text);
  margin: 0;
  font-family: "Figtree", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  overflow-x: hidden;
}
body.nav-open {
  overflow: hidden;
}

.training-division {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.training-division-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-base);
}

.training-division-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.training-division-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.2) 100%
  );
  z-index: var(--z-content);
}

.training-division-content {
  position: relative;
  z-index: var(--z-elevated);
  width: 100%;
  padding: 80px 0;
}

.training-division-text {
  max-width: 600px;
  margin-left: 0;
}

.training-division-heading {
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 900;
  line-height: 0.9;
  margin: 0 0 24px 0;
  letter-spacing: -0.02em;
  color: #fff;
  text-transform: uppercase;
}

.training-division-subheading {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  margin: 0 0 40px 0;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.training-division-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.training-division-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  max-width: fit-content;
}

.training-division-button.button--primary {
  background: #fff;
  color: #0d0d0d;
  border: 1px solid #fff;
}

.training-division-button.button--primary:hover {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}

.training-division-button.button--outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.training-division-button.button--outline:hover {
  background: #fff;
  color: #0d0d0d;
  border: 1px solid #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
  .training-division {
    min-height: 60vh;
  }

  .training-division-content {
    padding: 60px 0;
  }

  .training-division-text {
    text-align: center;
    margin: 0 auto;
  }

  .training-division-actions {
    justify-content: center;
  }

  .training-division-button {
    flex: 1;
  }
}

/* Featured Products Actions */
.featured-products-actions {
  text-align: center;
  margin-top: 48px;
}

.featured-products-view-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 48px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  color: var(--text);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
  min-width: 180px;
}

.featured-products-view-all:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* Product Loop Actions - Center the VIEW ALL button */
.product-loop-actions {
  display: flex;
  justify-content: center;
  margin: 60px 0 0 0;
}

.product-loop-actions .button {
  min-width: 80px;
  text-align: center;
}

/* Light mode overrides based on user preference */
@media (prefers-color-scheme: light) {
  :root {
    --container: 1850px;
    --bg: #ffffff;
    --background: #ffffff;
    --text: #0b0b0b;
    --muted: #606060;
    --border: #e7e7e7;
    --accent: #ff4444;
    --card-background: #f8f8f8;
    --white: #ffffff;
  }

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

  /* Buttons */
  .button,
  .search-submit,
  .button--primary {
    background: #0d0d0d;
    color: #fff;
  }
  .button:hover,
  .search-submit:hover,
  .button--primary:hover {
    background: #111;
  }
  .button--secondary {
    background: #fff;
    color: #0d0d0d;
    border: 1px solid #0d0d0d;
  }
  .button--secondary:hover {
    background: #0d0d0d;
    color: #fff;
  }
  .button--outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--text);
  }
  .button--outline:hover {
    background: var(--text);
    color: var(--background);
  }

  /* Inputs */
  .search-field {
    background: #f5f5f5;
    border: 1px solid #e1e1e1;
  }

  /* Tiles label visibility remains white over images */
  .tiles-3 .tile .tile-label {
    color: #fff;
  }

  /* Disable hero gradient overlay in light mode */
  .hero::after {
    display: none;
  }
}

/* Dark mode overrides based on user preference */
@media (prefers-color-scheme: dark) {
  .container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gap);
  }
}

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

/* Responsive container padding */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 0 12px;
  }
}

/* ========================================
   SINGLE PAGE LAYOUT
   ======================================== */

/* Single page content max width - only affects content, not header/footer */
body.page .site-content .container,
body.single .site-content .container {
  max-width: 1440px;
}

article {
  padding: 0 0 60px 0;
}

/* Responsive behavior for single pages */
@media (max-width: 1440px) {
  body.page .site-content .container,
  body.single .site-content .container {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  body.page .site-content .container,
  body.single .site-content .container {
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  body.page .site-content .container,
  body.single .site-content .container {
    padding: 0 16px;
  }
}

@media (max-width: 360px) {
  body.page .site-content .container,
  body.single .site-content .container {
    padding: 0 12px;
  }
}

/* ========================================
   BUTTON COMPONENTS
   ======================================== */
.button,
.search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #0d0d0d;
  border: 0;
  padding: 8px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all 0.3s ease;
}

.button:hover,
.search-submit:hover {
  background: #f0f0f0;
}

/* Button Styles */
.button--primary {
  background: #fff;
  color: #0d0d0d;
}

.button--primary:hover {
  background: #f0f0f0;
}

.button--secondary {
  background: #0d0d0d;
  color: #fff;
  border: 1px solid #fff;
}

.button--secondary:hover {
  background: #fff;
  color: #0d0d0d;
}

.button--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
}

.button--outline:hover {
  background: var(--text);
  color: var(--background);
}

/* Button Sizes */
.button--small {
  padding: 8px 16px;
  font-size: 12px;
}

.button--medium {
  padding: 12px 24px;
  font-size: 14px;
}

.button--large {
  padding: 16px 32px;
  font-size: 16px;
}

/* ========================================
   SECTION COMPONENTS
   ======================================== */
.section-header {
  margin-bottom: 32px;
}

.section-header--center {
  text-align: center;
}

.section-header--right {
  text-align: right;
}

.section-title {
  margin: 24px 0 10px 0;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.02em;
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}
[data-behavior="click"] {
  position: relative;
}

/* Empty Cart Styles */
.woocommerce-mini-cart__empty-message {
  text-align: center;
  padding: 40px 0;
  font-size: 16px;
  color: var(--muted);
}

.widget_shopping_cart_content > .buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.widget_shopping_cart_content .button.wc-backward {
  background: var(--text);
  color: var(--bg);
  text-align: center;
  padding: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Cross Sells in Mini Cart */
.cross-sells {
  margin-top: 40px;
}

.cross-sells h2 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  color: var(--muted);
  margin-bottom: 24px;
}

.cross-sells ul.products {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 16px;
}

.cross-sells ul.products li.product {
  flex: 0 0 45%;
  scroll-snap-align: start;
  text-align: center;
}

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Hero Media Container - Responsive images */
.hero-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

/* Hero Video Background */
.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  opacity: 0;
  transition: opacity 0.5s ease;
  /* Ensure videos don't block initial page load */
  visibility: hidden;
}

.hero-video.loaded {
  opacity: 1;
  visibility: visible;
}

.hero-video--desktop {
  display: block;
}

.hero-video--mobile {
  display: none;
}

/* Hide fallback image when video is playing */
.hero-media.video-playing .hero-fallback-image {
  opacity: 0;
}

.hero-fallback-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  transition: opacity 0.5s ease;
  /* Ensure fallback images are always visible initially */
  opacity: 1;
}

/* Mobile responsive video */
@media (max-width: 768px) {
  .hero-video--desktop {
    display: none;
  }

  .hero-video--mobile {
    display: block;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: var(--z-base);
}

/* Hero Bottom Gradient */
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to bottom, transparent 0%, var(--bg) 100%);
  z-index: var(--z-base);
  pointer-events: none;
}

/* Hero Content - Natural Flow */
.hero-content {
  position: relative;
  z-index: var(--z-content);
  width: 100%;
  display: flex;
  align-items: flex-end;
}

.hero-content .container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 80px 24px;
}

/* Hero Text Positioning */
.hero-text {
  max-width: 800px;
  margin-left: 0;
}

/* Hero Typography */
.hero-heading {
  margin: 0 0 10px 0;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-transform: uppercase;
}

.hero-subheading {
  margin: 0 0 24px 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
  opacity: 0.9;
}

.hero-cta {
  margin-top: 32px;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  padding: 16px 32px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

/* Color Themes - Force white text for all hero headings and subheadings */
.hero-text--light .hero-heading,
.hero-text--light .hero-subheading,
.hero-text--dark .hero-heading,
.hero-text--dark .hero-subheading {
  color: #fff !important;
}

/* Ensure all hero headings and subheadings are always white */
.hero-heading,
.hero-subheading {
  color: #fff !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    min-height: 90vh;
    height: 100vh;
  }

  .hero-content .container {
    padding: 0 16px 60px 16px;
  }

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

  .hero-heading {
    font-size: 36px;
  }

  .hero-subheading {
    font-size: 12px;
  }
}
/* ========================================
   FEATURED PRODUCTS SECTION
   ======================================== */
.featured-products {
  contain: layout style paint;
  padding: 80px 0;
  background: var(--bg);
}

.featured-products .section-header {
  margin-bottom: 48px;
}

.featured-products .section-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
  margin: 0;
  text-transform: uppercase;
  text-align: center;
}

/* Responsive Design for Featured Products */
@media (max-width: 768px) {
  .featured-products .container {
    padding: 0 20px;
  }

  .featured-products .section-title {
    font-size: 22px;
    margin-bottom: 6px;
  }

  .featured-products .section-header {
    margin-bottom: 32px;
  }
}

@media (max-width: 480px) {
  .featured-products .container {
    padding: 0 16px;
  }

  .featured-products .section-title {
    font-size: 18px;
    letter-spacing: 0.06em;
  }

  .featured-products .section-header {
    margin-bottom: 24px;
  }
}

@media (max-width: 360px) {
  .featured-products {
    padding: 24px 0;
  }

  .featured-products .container {
    padding: 0 12px;
  }

  .featured-products .section-title {
    font-size: 16px;
  }

  .featured-products .section-header {
    margin-bottom: 20px;
  }
}
.tiles-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  padding: 60px 0 60px 0;
}
.tiles-3 .tile {
  position: relative;
  border: 1px solid var(--border);
}
.tiles-3 .tile img {
  width: 100%;
  height: 800px;
  object-fit: cover;
  display: block;
}
.tiles-3 .tile .tile-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 5%;
  font-weight: 800;
  font-size: 48px;
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
  z-index: var(--z-content);
  transition: opacity 0.3s ease;
}

.tiles-3 .tile-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: var(--z-elevated);
}

.tiles-3 .tile:hover .tile-overlay {
  opacity: 1;
  visibility: visible;
}

.tiles-3 .tile:hover .tile-label {
  opacity: 0;
}

.tiles-3 .tile-content {
  text-align: center;
  padding: 24px;
  max-width: 500px;
}

.tiles-3 .tile-description {
  color: #fff;
  font-size: 24px;
  font-weight: 400;
  margin: 0 0 24px 0;
}

.tiles-3 .tile-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  background: #fff;
  color: #0d0d0d;
  border: 1px solid #fff;
  transition: all 0.2s ease;
  min-width: 140px;
}

.tiles-3 .tile-button:hover {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}
@media (max-width: 1024px) {
  .tiles-3 {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}
@media (max-width: 640px) {
  .tiles-3 {
    display: flex;
    gap: 16px;
    padding: 40px 0 40px 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    margin-left: 15px;
  }

  .tiles-3 .tile {
    flex: 0 0 calc(85% - 10px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .tiles-3 .tile:first-child {
    margin-left: 0;
  }

  .tiles-3 .tile:last-child {
    margin-right: 10px;
  }

  .tiles-3 .tile img {
    width: 100%;
    height: 500px;
    object-fit: cover;
  }

  .tiles-3 .tile .tile-label {
    display: none;
  }

  .tiles-3 .tile-content {
    padding: 0px 16px 25px 16px;
    max-width: 240px;
  }

  .tiles-3 .tile-description {
    font-size: 14px;
    margin: 0 0 16px 0;
  }

  .tiles-3 .tile-button {
    padding: 10px 20px;
    font-size: 11px;
    min-width: 120px;
  }

  /* Hide scrollbar but keep functionality */
  .tiles-3::-webkit-scrollbar {
    display: none;
  }

  .tiles-3 {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
}

/* Mobile styles - show overlay by default */
@media (max-width: 768px) {
  .tiles-3 .tile-overlay {
    opacity: 1;
    visibility: visible;
    background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
  }

  .tiles-3 .tile-label {
    opacity: 0;
  }

  .tiles-3 .tile:hover .tile-label {
    opacity: 0;
  }
}

/* Touch device styles - show overlay on tap */
@media (hover: none) and (pointer: coarse) {
  .tiles-3 .tile-overlay {
    opacity: 1;
    visibility: visible;
    background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
  }

  .tiles-3 .tile-label {
    opacity: 0.8;
  }

  .tiles-3 .tile:hover .tile-label {
    opacity: 0.8;
  }
}

/* ============================================================================
   SHOP CATEGORIES GRID
   ============================================================================ */

.shop-categories .section-header {
  margin-bottom: 48px;
}

.shop-categories .section-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #1a1a1a;
  margin: 0;
}

.category-grid {
  position: relative;
  margin: 80px 0 40px 0;
}

.category-grid-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px; /* Remove gaps to match example */
}

.category-tile {
  position: relative;
  overflow: hidden;
  border-radius: 0; /* Remove border radius to match example */
  background: #0d0d0d; /* Dark background like the example */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border);
}

.category-tile-inner {
  position: relative;
  height: 600px;
  display: flex;
  flex-direction: column;
}

.category-tile-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-base);
}

.category-tile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.category-tile-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  opacity: 1;
  visibility: visible;
  z-index: var(--z-content);
  padding: 24px;
}

.category-tile-content {
  text-align: left;
  padding: 0;
  max-width: none;
  width: 100%;
}

.category-tile-parent {
  font-size: 12px;
  font-weight: 500;
  margin: 0 0 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
  color: rgba(255, 255, 255, 0.9);
}

.category-tile-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 0px 0;
  color: #fff;
  text-transform: uppercase;
}

.category-tile-title a {
  color: inherit;
  text-decoration: none;
}

/* Subcategory styling */
.category-tile--subcategory .category-tile-title {
  font-size: 36px;
}

.category-tile--subcategory .category-tile-parent {
  font-size: 11px;
  margin-bottom: 2px;
}

.category-tile-count {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 16px 0;
  letter-spacing: 0.02em;
}

.category-tile-description {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 24px 0;
  letter-spacing: 0.01em;
}

.category-tile-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 0;
  transition: all 0.2s ease;
  min-width: 120px;
  margin-top: 16px;
}

.category-tile-button:hover {
  background: transparent;
  color: var(--bg);
  border-color: var(--bg);
}

/* Dark theme compatibility */
@media (prefers-color-scheme: dark) {
  .category-tile-button {
    color: var(--text, #fff);
    border-color: var(--text, #fff);
  }

  .category-tile-button:hover {
    background: var(--text, #fff);
    color: var(--background, #0d0d0d);
    border-color: var(--text, #fff);
  }
}

[data-theme="dark"] .category-tile-button {
  color: var(--text, #fff);
  border-color: var(--text, #fff);
}

[data-theme="dark"] .category-tile-button:hover {
  background: var(--text, #fff);
  color: var(--background, #0d0d0d);
  border-color: var(--text, #fff);
}

/* Remove default category name overlay since content is always visible */

/* Responsive Design */
@media (max-width: 1200px) {
  .category-grid-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .shop-categories .section-title {
    font-size: 32px;
  }

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

  .category-tile-inner {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .shop-categories .section-header {
    margin-bottom: 32px;
  }

  .shop-categories .section-title {
    font-size: 28px;
  }

  .category-grid-content {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 0 20px 0 0;
    margin: 0 -20px 0 0;
  }

  .category-tile {
    flex: 0 0 calc(80% - 12px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .category-tile:first-child {
    margin-left: 0;
  }

  .category-tile:last-child {
    margin-right: 20px;
  }

  .category-tile-inner {
    height: 400px;
  }

  .category-tile-title {
    font-size: 28px;
  }

  .category-tile--subcategory .category-tile-title {
    font-size: 28px;
  }

  .category-tile-description {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .category-tile-button {
    min-width: 120px;
  }

  /* Hide scrollbar but keep functionality */
  .category-grid-content::-webkit-scrollbar {
    display: none;
  }

  .category-grid-content {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
}

@media (max-width: 480px) {
  .category-tile {
    flex: 0 0 calc(90% - 10px);
  }

  .category-tile-inner {
    height: 600px;
  }
}

/* Touch device styles - overlay is always visible */
@media (hover: none) and (pointer: coarse) {
  .category-tile-overlay {
    opacity: 1;
    visibility: visible;
  }
}

/* Swatches */
.pf-swatches {
  display: flex;
  gap: 8px;
  margin: 12px 0;
  flex-wrap: wrap;
}
.pf-swatch {
  background: #1a1a1a;
  color: #fff;
  border: 1px solid #2a2a2a;
  padding: 6px 10px;
  cursor: pointer;
}
.pf-swatch.active {
  background: #fff;
  color: #0d0d0d;
}

/* Gift Card amount swatches - only for Gift Card products */
/* Target the specific attribute used by the gift card amount select:
   <select name="attribute_gift-card-amount" ...> */
.pf-swatches[data-attr="attribute_gift-card-amount"] {
  gap: 16px;
  margin-top: 16px;
  border: 1px solid var(--border);
  padding: 8px;
}

.reset_variations, .woocommerce-variation-price {
  display: none !important;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--text);
  letter-spacing: 0.03em;
}

.pf-swatches[data-attr="attribute_gift-card-amount"] .pf-swatch {
  background: var(--card-background, var(--bg));
  color: var(--text);
  padding: 12px 20px;
  border: none;
  font-size: 12px;
  min-width: 105px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.pf-swatches[data-attr="attribute_gift-card-amount"] .pf-swatch:hover {
  background: var(--text);
  color: var(--bg);
}

.pf-swatches[data-attr="attribute_gift-card-amount"] .pf-swatch.active {
  background: var(--text);
  color: var(--bg);
}

/* Gift Card Amount label positioning - move label above values */
table.variations tbody tr.pf-gift-card-amount-row {
  display: block;
}

table.variations tbody tr.pf-gift-card-amount-row td.label {
  display: block;
  width: 100%;
  padding-bottom: 8px;
  padding-right: 0;
}

table.variations tbody tr.pf-gift-card-amount-row td.value {
  display: block;
  width: 100%;
  padding-left: 0;
}

/* Fallback using :has() selector for browsers that support it but JS hasn't run yet */
table.variations tbody tr:has(td.value .pf-swatches[data-attr="attribute_gift-card-amount"]) {
  display: block;
}

table.variations tbody tr:has(td.value .pf-swatches[data-attr="attribute_gift-card-amount"]) td.label {
  display: block;
  width: 100%;
  padding-bottom: 8px;
  padding-right: 0;
  text-transform: uppercase;
  font-size: 12px;
}

table.variations tbody tr:has(td.value .pf-swatches[data-attr="attribute_gift-card-amount"]) td.value {
  display: block;
  width: 100%;
  padding-left: 0;
}

/* Product Showcase Responsive Design */
.product-showcase {
  contain: layout style paint;
  padding: 80px 0;
}

.product-showcase .section-header {
  margin-bottom: 48px;
}

.product-showcase .section-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
  margin: 0;
  text-transform: uppercase;
  text-align: center;
}

@media (max-width: 768px) {
  .product-showcase .container {
    padding: 0 20px;
  }

  .product-showcase .section-title {
    font-size: 22px;
  }

  .product-showcase .section-header {
    margin-bottom: 32px;
  }
}

@media (max-width: 480px) {
  .product-showcase .container {
    padding: 0 16px;
  }

  .product-showcase .section-title {
    font-size: 18px;
  }

  .product-showcase .section-header {
    margin-bottom: 24px;
  }
}

@media (max-width: 360px) {
  .product-showcase .container {
    padding: 0 12px;
  }

  .product-showcase .section-title {
    font-size: 16px;
  }

  .product-showcase .section-header {
    margin-bottom: 20px;
  }
}

/* Third Product Loop */
.third-product-loop {
  contain: layout style paint;
  padding: 80px 0;
}

.third-product-loop .section-header {
  margin-bottom: 48px;
}

.third-product-loop .section-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
  margin: 0;
  text-transform: uppercase;
  text-align: center;
}

@media (max-width: 768px) {
  .third-product-loop .container {
    padding: 0 20px;
  }

  .third-product-loop .section-title {
    font-size: 22px;
  }

  .third-product-loop .section-header {
    margin-bottom: 32px;
  }
}

@media (max-width: 480px) {
  .third-product-loop .container {
    padding: 0 16px;
  }

  .third-product-loop .section-title {
    font-size: 18px;
  }

  .third-product-loop .section-header {
    margin-bottom: 24px;
  }
}

@media (max-width: 360px) {
  .third-product-loop .container {
    padding: 0 12px;
  }

  .third-product-loop .section-title {
    font-size: 16px;
  }

  .third-product-loop .section-header {
    margin-bottom: 20px;
  }
}

/* Toast Notification Animations */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

@keyframes scaleIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes slideOutLeft {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-100%);
    opacity: 0;
  }
}

@keyframes slideOutUp {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(-100%);
    opacity: 0;
  }
}

@keyframes slideOutDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

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

@keyframes scaleOut {
  from {
    transform: scale(1);
    opacity: 1;
  }
  to {
    transform: scale(0.8);
    opacity: 0;
  }
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast-container.position-top-right {
  top: 65px;
  right: 15px;
  align-items: flex-end;
}

.toast-container.position-top-left {
  top: 20px;
  left: 20px;
  align-items: flex-start;
}

.toast-container.position-bottom-right {
  bottom: 20px;
  right: 20px;
  align-items: flex-end;
}

.toast-container.position-bottom-left {
  bottom: 20px;
  left: 20px;
  align-items: flex-start;
}

.toast-container.position-top-center {
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.toast-container.position-bottom-center {
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.toast-notification {
  position: relative;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  max-width: 340px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(-6px);
  transition: all 0.3s ease;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast-notification.toast-success {
  background: #4caf50;
  color: #ffffff;
}

.toast-notification.toast-error {
  background: #f44336;
  color: #ffffff;
}

.toast-notification.toast-warning {
  background: #ff9800;
  color: #ffffff;
}

.toast-notification.toast-info {
  background: #2196f3;
  color: #ffffff;
}

.toast-message {
  display: inline-block;
  flex: 1;
}

.toast-count {
  margin-left: 8px;
  font-weight: 700;
  opacity: 0.9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .toast-container {
    top: 60px !important;
    right: 10px !important;
    left: 10px !important;
  }

  .toast-notification {
    max-width: 100%;
    font-size: 13px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .toast-notification {
    transform: none;
    transition: opacity 0.2s ease;
  }
}
