/* CSS Variables for Premium Dark/Light Themes */
:root {
  /* HSL Tailored Colors */
  --bg-color: #f7f7fa;
  --panel-bg: rgba(255, 255, 255, 0.75);
  --panel-border: rgba(0, 0, 0, 0.08);
  --text-primary: #1e1e24;
  --text-secondary: #6e6e73;
  --accent-color: #dc9814;
  --accent-hover: #b87c0a;
  --accent-soft: rgba(220, 152, 20, 0.1);
  --card-bg: #ffffff;
  --image-bg: #f5f5f7;
  --shadow-light: 0 8px 30px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.12);
  --header-height: 70px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-family: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
}



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

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
  padding-bottom: 70px; /* Space for mobile bottom nav */
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Grid & Layout Utilities */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  font-family: inherit;
}

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

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

.btn-block {
  display: flex;
  width: 100%;
}

/* Sticky Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: var(--panel-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--panel-border);
  transition: background-color 0.3s ease;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.5px;
}

.logo-bold {
  font-weight: 700;
  color: var(--accent-color);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
}

.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

@media (max-width: 1100px) {
  .main-nav ul {
    gap: 14px;
  }
  .main-nav a {
    font-size: 14px;
  }
}

@media (max-width: 950px) {
  .main-nav ul {
    gap: 8px;
  }
  .main-nav a {
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
}

.header-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.action-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
}

.action-btn:hover {
  background-color: var(--panel-border);
}

.cart-btn {
  position: relative;
}

.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--accent-color);
  color: white;
  font-size: 11px;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(25%, -25%);
}

/* Theme Switcher Sun/Moon visibility */
.sun-icon {
  stroke: var(--text-primary);
}

/* Hero Slider */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  margin-bottom: 40px;
}

.slider-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.slide {
  min-width: 100%;
  position: relative;
  display: none;
}

.slide.active {
  display: block;
}

.slide a {
  display: block;
  width: 100%;
  line-height: 0;
}

.slide picture img {
  width: 100%;
  height: auto;
  display: block;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.3);
  color: white;
  border: none;
  font-size: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.slider-arrow:hover {
  background: rgba(0, 0, 0, 0.6);
}

.slider-arrow.prev {
  left: 20px;
}

.slider-arrow.next {
  right: 20px;
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.3s;
}

.slider-dots .dot.active {
  background: white;
}

@media (max-width: 768px) {
  .hero-slider {
    border-radius: 0;
    margin-bottom: 20px;
  }
  .slider-arrow {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
  .slider-arrow.prev {
    left: 10px;
  }
  .slider-arrow.next {
    right: 10px;
  }
  .slider-dots {
    bottom: 10px;
  }
}

/* Category Tiles */
.section-title {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 24px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 50px;
}

.category-tile {
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.tile-img-wrap {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background-color: #ffffff; /* Always white to blend JPG backgrounds */
  border-radius: 50%; /* Circular badge */
  padding: 10px;
  border: 1px solid var(--panel-border);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.tile-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply; /* Blend white background of icon JPGs */
}

.category-tile span {
  font-size: 15px;
  font-weight: 500;
}

/* Product Cards */
.product-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--panel-border);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.product-card-image-wrap {
  position: relative;
  height: 220px; /* Adjusted height for premium nested look */
  margin: 12px; /* Margin to create a nested border-radius card */
  border-radius: var(--radius-sm); /* Nested border-radius */
  background-color: #ffffff; /* Always white to blend JPG backgrounds */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background-color 0.3s ease;
  border: 1px solid var(--panel-border);
}

.product-card-img, .product-card-img-hover {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  mix-blend-mode: multiply; /* Enable multiply blending in all modes */
}

.product-card-img-hover {
  position: absolute;
  opacity: 0;
}

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

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

.product-card-info {
  padding: 0 16px 16px 16px; /* Adjusted padding for nested card proportions */
}

.product-card-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
  height: 48px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card-price {
  font-size: 18px;
  font-weight: 600;
  color: var(--accent-color);
}

/* Catalog Page */
.catalog-main {
  padding: 40px 20px;
}

.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 16px;
  margin-bottom: 30px;
}

.catalog-title {
  font-size: 32px;
  font-weight: 600;
}

.catalog-count {
  color: var(--text-secondary);
  font-size: 15px;
}

/* Product Detail Page */
.product-main {
  padding: 40px 20px;
}

.product-gallery-info-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

@media (max-width: 768px) {
  .product-gallery-info-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gallery-main-image-wrap {
  background-color: var(--card-bg); /* Dynamic background color */
  border-radius: var(--radius-md);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 480px;
  border: 1px solid var(--panel-border);
}

.gallery-main-image-wrap img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  mix-blend-mode: multiply; /* Blends white backgrounds dynamically */
}

.gallery-thumbnails {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.thumb-wrap {
  width: 80px;
  height: 80px;
  background-color: var(--card-bg); /* Dynamic background color */
  border-radius: var(--radius-sm);
  padding: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s ease;
}

.thumb-wrap.active {
  border-color: var(--accent-color);
}

.thumb-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply; /* Blends white backgrounds dynamically */
}

.product-info-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-info-panel .product-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
}

.product-sku {
  color: var(--text-secondary);
  font-size: 14px;
}

.product-price-row {
  font-size: 30px;
  font-weight: 700;
  color: var(--accent-color);
  margin: 10px 0;
}

/* Price Notice Block */
.price-notice-block {
  background-color: var(--accent-soft);
  border-left: 4px solid var(--accent-color);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.price-notice-block p {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.4;
}

/* Variation Selectors */
.variation-select-group {
  margin-top: 10px;
}

.variation-select-group h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.variation-buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.variation-btn {
  background-color: var(--card-bg);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.variation-btn.active {
  border-color: var(--accent-color);
  background-color: var(--accent-soft);
  color: var(--accent-color);
  font-weight: 600;
}

/* Buy buttons */
.buy-actions-wrapper {
  margin-top: 15px;
}

/* Quick Contacts */
.quick-contacts-panel {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--panel-border);
}

.quick-contacts-panel p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.contacts-row {
  display: flex;
  gap: 12px;
}

.contact-btn {
  flex: 1;
  text-align: center;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  color: white;
  transition: opacity 0.2s ease;
}

.contact-btn:hover {
  opacity: 0.9;
}

.tg-btn {
  background-color: #24A1DE;
}

.wa-btn {
  background-color: #25D366;
}

.vk-btn {
  background-color: #4C75A3;
}

/* Description Section */
.product-description-section {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--panel-border);
}

.product-description-section h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
}

.product-description-content {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
}

.product-description-content p {
  margin-bottom: 16px;
}

.product-description-content h3,
.product-description-content h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 12px 0;
  color: var(--text-primary);
}

.product-description-content ul,
.product-description-content ol {
  margin-left: 20px;
  margin-bottom: 16px;
}

.product-description-content li {
  margin-bottom: 8px;
}

/* Specifications Table */
.product-specifications-section {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--panel-border);
}

.product-specifications-section h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
}

.specs-table-wrapper table,
.product-specifications-section table,
.product-description-content table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.specs-table-wrapper tr,
.product-specifications-section tr,
.product-description-content tr {
  border-bottom: 1px solid var(--panel-border);
  transition: background-color 0.2s ease;
}

.specs-table-wrapper tr:last-child,
.product-specifications-section tr:last-child,
.product-description-content tr:last-child {
  border-bottom: none;
}

/* Force dark mode compatibility for legacy inline styles */
.specs-table-wrapper table,
.specs-table-wrapper tr,
.specs-table-wrapper td,
.product-specifications-section table,
.product-specifications-section tr,
.product-specifications-section td,
.product-description-content table,
.product-description-content tr,
.product-description-content td {
  background-color: transparent !important;
  color: inherit !important;
}

/* Zebra striping for tables */
.specs-table-wrapper tr:nth-child(even),
.product-specifications-section tr:nth-child(even),
.product-description-content tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.02) !important;
}



/* Row hover highlights */
.specs-table-wrapper tr:hover,
.product-specifications-section tr:hover,
.product-description-content tr:hover {
  background-color: rgba(0, 0, 0, 0.04) !important;
}



.specs-table-wrapper td,
.product-specifications-section td,
.product-description-content td {
  padding: 14px 20px;
  font-size: 15px;
  line-height: 1.5;
  border: none !important;
}

.specs-table-wrapper th,
.product-specifications-section th,
.product-description-content th {
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  background-color: rgba(0, 0, 0, 0.03) !important;
  color: var(--text-primary) !important;
  border-bottom: 1px solid var(--panel-border) !important;
}



.specs-table-wrapper td:first-child,
.product-specifications-section td:first-child,
.product-description-content td:first-child,
.c-specification__name-td,
.c-specification__name {
  font-weight: 600 !important;
  color: var(--text-secondary) !important;
  width: 30%;
}

/* Footer styling */
.main-footer {
  background-color: var(--card-bg);
  border-top: 1px solid var(--panel-border);
  padding: 60px 0 20px;
  margin-top: 80px;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
}

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

.footer-col h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-col p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 15px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid var(--panel-border);
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
}

/* Mobile Bottom Nav Bar */
.mobile-nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: var(--panel-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--panel-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
}

@media (min-width: 769px) {
  .mobile-nav-bar {
    display: none;
  }
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  gap: 4px;
  font-family: inherit;
}

.mobile-nav-item svg {
  color: inherit;
}

.mobile-nav-item span {
  font-size: 11px;
  font-weight: 500;
}

.mobile-nav-item.active, .mobile-nav-item:hover {
  color: var(--accent-color);
}

.mobile-cart-btn {
  position: relative;
}

/* Drawer / Slider panel cart */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: -450px;
  width: 450px;
  max-width: 100%;
  height: 100%;
  background-color: var(--card-bg);
  z-index: 201;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.active {
  right: 0;
}

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

.cart-drawer-header h2 {
  font-size: 20px;
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  font-size: 32px;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 4px;
}

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

.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.cart-item-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  background-color: var(--card-bg); /* Dynamic background color */
  border-radius: var(--radius-sm);
  padding: 5px;
  mix-blend-mode: multiply; /* Blends white backgrounds dynamically */
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

.cart-item-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-item-price {
  font-weight: 600;
  color: var(--accent-color);
}

.cart-item-quantity-controls {
  display: flex;
  align-items: center;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-btn {
  background: none;
  border: none;
  width: 28px;
  height: 28px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-primary);
}

.qty-btn:hover {
  background-color: var(--panel-border);
}

.qty-val {
  padding: 0 10px;
  font-size: 14px;
  font-weight: 500;
}

.cart-empty-message {
  margin: auto;
  color: var(--text-secondary);
  font-size: 15px;
}

.cart-drawer-footer {
  padding: 24px;
  border-top: 1px solid var(--panel-border);
  background-color: var(--panel-bg);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%);
  width: 500px;
  max-width: 90%;
  background-color: var(--card-bg);
  z-index: 301;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.active {
  transform: translate(-50%, -50%);
  opacity: 1;
  visibility: visible;
}

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

.modal-header h2 {
  font-size: 20px;
  font-weight: 600;
}

.modal-body {
  padding: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--panel-border);
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s ease;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
}

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

/* Search Overlay */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  z-index: 250;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  overflow-y: auto;
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-overlay-header {
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--panel-border);
  padding: 15px 0;
  position: sticky;
  top: 0;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-input-wrapper input {
  flex: 1;
  border: none;
  background: none;
  font-size: 22px;
  font-weight: 500;
  color: var(--text-primary);
  font-family: inherit;
}

.search-input-wrapper input:focus {
  outline: none;
}

.search-results-container {
  padding-top: 40px;
  padding-bottom: 40px;
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* All Categories Index Page */
.categories-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.category-index-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.category-index-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-color);
  box-shadow: var(--shadow-sm);
}

.category-index-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.category-index-count {
  font-size: 14px;
  color: var(--text-muted);
}

.nav-highlight {
  font-weight: 600;
  color: var(--accent-color) !important;
}

/* Hide product specifications tables */
.c-specification__table,
.specs-table-wrapper {
  display: none !important;
}
