/* Global Accessibility Styles */
:root {
  --primary-color: #4a6cf7;
  --secondary-color: #f97316;
  --text-color: #333333;
  --bg-color: #ffffff;
  --light-bg: #f5f5f5;
  --border-color: #e2e8f0;
  --font-size-base: 16px;
  --focus-outline: 3px solid var(--primary-color);
}

/* High Contrast Mode */
.high-contrast-dark {
  --primary-color: #ffff00;
  --secondary-color: #ff9900;
  --text-color: #ffffff;
  --bg-color: #000000;
  --light-bg: #222222;
  --border-color: #666666;
}

.high-contrast-light {
  --primary-color: #0000ff;
  --secondary-color: #9900cc;
  --text-color: #000000;
  --bg-color: #ffffff;
  --light-bg: #f0f0f0;
  --border-color: #333333;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  transition: all 0.3s ease;
}

/* Font Size Controls */
.font-size-large {
  --font-size-base: 20px;
}

.font-size-larger {
  --font-size-base: 24px;
}

/* Focus Styles for Accessibility */
button:focus, a:focus, input:focus, select:focus, textarea:focus {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

.skip-to-content {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-to-content:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  padding: 16px;
  background: var(--primary-color);
  color: white;
  z-index: 9999;
}

/* Product Card Styles */
.product-card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover, .product-card:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Grid Layout */
@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Accessibility Navigation */
.a11y-nav {
  position: fixed;
  top: 0;
  right: 20px;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 0 0 8px 8px;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Custom Slider Thumb for Price Filter */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
}

/* Hero Section Animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-content {
  animation: fadeIn 1.5s ease-in-out;
}

/* Slider Animation */
@keyframes slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.auto-slider {
  overflow: hidden;
  white-space: nowrap;
}

.auto-slider-inner {
  display: inline-block;
  animation: slide 20s linear infinite;
}

