/* =====================================================
   Plansheti.ge - Main Stylesheet
   Professional tablet & accessories e-commerce catalog
   Mobile-first responsive design
   ===================================================== */

/* ----- CSS Variables ----- */
:root {
  /* Colors */
  --color-primary: #1a365d;
  --color-primary-dark: #0f2544;
  --color-primary-light: #2c5282;
  --color-accent: #e53e3e;
  --color-accent-hover: #c53030;
  --color-success: #38a169;
  --color-warning: #dd6b20;
  --color-text: #2d3748;
  --color-text-light: #718096;
  --color-text-muted: #a0aec0;
  --color-bg: #f7fafc;
  --color-bg-white: #ffffff;
  --color-bg-light: #edf2f7;
  --color-border: #e2e8f0;
  --color-border-dark: #cbd5e0;
  
  /* Typography */
  --font-primary: 'Noto Sans Georgian', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* Layout */
  --max-width: 1280px;
  --header-height: 70px;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
}

/* ----- Reset & Base Styles ----- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-light);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, select {
  font-family: inherit;
  font-size: inherit;
}

/* ----- Utility Classes ----- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ----- Header & Navigation ----- */
.header {
  background-color: var(--color-bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--spacing-md);
}

/* Mobile: Logo left, hamburger right */
.header__container .menu-toggle {
  order: 3;
}

.header__container .header__logo {
  order: 1;
}

.header__container .header__right {
  order: 2;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-primary);
  flex-shrink: 0;
}

.header__logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

/* Right side header controls */
.header__right {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

/* Language Switcher with Flags */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--color-bg-light);
  padding: 4px;
  border-radius: var(--border-radius);
}

.lang-switcher--desktop {
  display: none;
}

.lang-switcher--mobile {
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 180px;
  margin: 0 auto;
}

.lang-switcher__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-light);
  transition: all var(--transition-fast);
}

.lang-switcher__btn:hover {
  color: var(--color-text);
  background-color: rgba(0, 0, 0, 0.03);
}

.lang-switcher__btn.active {
  background-color: var(--color-bg-white);
  color: var(--color-text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Mobile menu language switcher styling */
.lang-switcher--mobile .lang-switcher__btn {
  color: rgba(255, 255, 255, 0.85);
  padding: 7px 12px;
}

.lang-switcher--mobile .lang-switcher__btn:hover {
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
}

.lang-switcher--mobile .lang-switcher__btn.active {
  background-color: var(--color-bg-white);
  color: var(--color-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  font-weight: 600;
}

/* Flag images for language switcher */
.lang-switcher__flag {
  width: 24px;
  height: 16px;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}

/* Georgian flag */
.lang-switcher__flag--ka {
  background-image: url('https://i.ibb.co/pv51CFYN/flag-3.png');
}

/* USA flag */
.lang-switcher__flag--en {
  background-image: url('https://i.ibb.co/Z0GrT5Q/flag-2.png');
}

/* Main Navigation - Desktop */
.nav {
  display: none;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--color-bg-light);
  border-radius: var(--border-radius);
  padding: 4px;
}

.nav__link {
  display: flex;
  align-items: center;
  font-weight: 500;
  font-size: var(--font-size-sm);
  padding: 6px 14px;
  color: var(--color-text-light);
  background: transparent;
  border-radius: 4px;
  position: relative;
}

.nav__link.active {
  color: var(--color-primary);
  background-color: var(--color-bg-white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  font-weight: 600;
}

/* Modern Menu Toggle Button */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--border-radius);
  background-color: var(--color-bg-light);
  z-index: 1001;
  transition: all var(--transition-fast);
}

.menu-toggle:hover {
  background-color: var(--color-primary);
}

.menu-toggle:hover .menu-toggle__bar {
  background-color: white;
}

.menu-toggle__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 16px;
  position: relative;
}

.menu-toggle__bar {
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.menu-toggle__bar:nth-child(1) {
  top: 0;
}

.menu-toggle__bar:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.menu-toggle__bar:nth-child(3) {
  bottom: 0;
}

.menu-toggle.active {
  background-color: var(--color-primary);
}

.menu-toggle.active .menu-toggle__bar {
  background-color: white;
}

.menu-toggle.active .menu-toggle__bar:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.menu-toggle.active .menu-toggle__bar:nth-child(2) {
  opacity: 0;
  transform: translateY(-50%) scaleX(0);
}

.menu-toggle.active .menu-toggle__bar:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* Modern Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  padding: var(--spacing-2xl) var(--spacing-lg);
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 999;
  overflow-y: auto;
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-2xl);
}

.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: var(--font-size-lg);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav__link:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.mobile-nav__link.active {
  background-color: var(--color-bg-white);
  color: var(--color-primary);
  border-color: var(--color-bg-white);
  box-shadow: var(--shadow-md);
  font-weight: 600;
}

.mobile-nav__link.active:hover {
  background-color: var(--color-bg-white);
  color: var(--color-primary-dark);
}

/* ----- Main Content ----- */
main {
  flex: 1;
}

/* ----- Hero Section ----- */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: white;
  padding: var(--spacing-xl) 0;
}

/* Hero Categories */
.hero__categories {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  max-width: 800px;
  margin: 0 auto;
}

.hero-category {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  color: white;
  transition: all var(--transition-base);
}

.hero-category:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.hero-category__icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.hero-category__content {
  flex: 1;
  text-align: left;
}

.hero-category__title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.hero-category__desc {
  font-size: var(--font-size-sm);
  opacity: 0.85;
  margin-bottom: var(--spacing-sm);
}

.hero-category__link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: white;
  opacity: 0.9;
}

.hero-category__link:hover {
  opacity: 1;
  color: white;
}

/* ----- Featured Section ----- */
.featured-section {
  padding: var(--spacing-2xl) 0;
  background: linear-gradient(180deg, var(--color-bg-white) 0%, var(--color-bg) 100%);
}

.featured-section--alt {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-white) 100%);
}

.featured-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.featured-section__title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-primary-dark);
}

.featured-section__link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-primary);
}

.featured-section__link:hover {
  color: var(--color-primary-dark);
}

/* ----- Why Choose Us Section ----- */
.why-us {
  padding: var(--spacing-xl) 0;
  background: #1a365d;
}

.why-us__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  position: relative;
  z-index: 1;
}

.why-us__item {
  text-align: center;
  padding: var(--spacing-lg);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(10px);
  transition: all var(--transition-base);
}

.why-us__item:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
}

.why-us__icon {
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
}

.why-us__item-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: white;
  margin-bottom: var(--spacing-xs);
}

.why-us__item-desc {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

/* ----- Breadcrumbs ----- */
.breadcrumbs {
  padding: var(--spacing-md) 0;
  background-color: #e8eef6;
  border-bottom: 1px solid var(--color-border);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--font-size-sm);
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.breadcrumbs__item:not(:last-child)::after {
  content: '›';
  color: var(--color-text-muted);
}

.breadcrumbs__link {
  color: var(--color-text-light);
}

.breadcrumbs__link:hover {
  color: var(--color-primary);
}

.breadcrumbs__current {
  color: var(--color-text);
  font-weight: 500;
}

/* ----- Section Styles ----- */
.section {
  padding: var(--spacing-2xl) 0;
}

/* ----- Category Page Layout ----- */
.category-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
}

/* ----- Filters Sidebar ----- */
.filters-sidebar {
  background-color: #fafbfc;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  height: fit-content;
  overflow: hidden;
  border: 1px solid #e8eaed;
  transition: all 0.3s ease;
}

.filters__header {
  margin-bottom: 0;
}

/* Mobile: Collapsible filters toggle */
.filters__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--color-bg-white);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filters__toggle:hover {
  background: var(--color-bg-light);
}

.filters__toggle-content {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.filters__toggle-icon {
  font-size: 1.1rem;
}

.filters__toggle-text {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.filters__title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-text);
}

.filters__toggle-hint {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  font-weight: 400;
}

.filters__toggle-arrow {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-light);
  border-radius: 50%;
  font-size: var(--font-size-xs);
  color: var(--color-text-light);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.filters__toggle:hover .filters__toggle-arrow {
  background: var(--color-primary);
  color: white;
}

.filters-sidebar.collapsed .filters__toggle-arrow {
  transform: rotate(0deg);
}

.filters-sidebar:not(.collapsed) .filters__toggle-arrow {
  transform: rotate(180deg);
  background: var(--color-primary);
  color: white;
}

.filters-sidebar:not(.collapsed) .filters__toggle-hint {
  display: none;
}

.filters-sidebar.collapsed .filters__list {
  display: none;
}

.filters-sidebar:not(.collapsed) .filters__header {
  border-bottom: 1px solid var(--color-border);
}

.filters__list-footer {
  display: flex;
  justify-content: center;
  padding-top: 16px;
  margin-top: 0;
}

.filters__clear {
  font-size: 12px;
  color: #718096;
  cursor: pointer;
  padding: 8px 16px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.3px;
}

.filters__clear::before {
  content: '⟲';
  font-size: 15px;
  opacity: 0.7;
}

.filters__clear:hover {
  background: #f7fafc;
  color: #4a5568;
  border-color: #cbd5e0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.filters__clear:active {
  transform: scale(0.98);
}

.filters__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: var(--spacing-lg);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  padding-bottom: 16px;
  margin: 0;
  border-bottom: 1px solid #f0f1f3;
}

.filter-group:first-child {
  padding-top: 0;
}

.filter-group:last-child {
  border-bottom: none !important;
  padding-bottom: 0;
}

#price-group {
  border-bottom: none !important;
}

.filter-group__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
}

.filter-group__label {
  font-size: 13px;
  font-weight: 600;
  color: #4a5568;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-group__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.filter-group__reset {
  padding: 3px 7px;
  font-size: 10px;
  color: #a0aec0;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  border-radius: 4px;
  visibility: hidden;
}

.filter-group.has-active .filter-group__reset {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.filter-group__reset:hover {
  background: #fed7d7;
  color: #e53e3e;
}

/* Filter Buttons */
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.filter-btn {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #4a5568;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  position: relative;
}

.filter-btn__icon {
  font-size: 15px;
  line-height: 1;
  font-weight: 600;
  min-width: 18px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.25s ease;
}

.filter-btn--brand .filter-btn__icon {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-size: 16px;
  min-width: 24px;
}

.filter-btn--brand .filter-btn__icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.filter-btn:hover {
  border-color: #cbd5e0;
  background: #f7fafc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-btn.active {
  background: #1a365d;
  border-color: #1a365d;
  color: white;
  box-shadow: none;
}

.filter-btn.active .filter-btn__icon {
  opacity: 1;
}

.filter-btn.active .filter-btn__icon:not(:has(img)) {
  filter: brightness(0) invert(1);
}

.filter-btn.active img {
  filter: brightness(0) invert(1);
}

.filter-btn:active {
  transform: scale(0.98);
}

.filter-group__select,
.filter-group__input {
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  background-color: var(--color-bg-white);
  color: var(--color-text);
  transition: all var(--transition-fast);
  width: 100%;
  font-size: var(--font-size-base);
}

.filter-group__select:focus,
.filter-group__input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.price-range {
  display: flex;
  gap: 10px;
  align-items: center;
}

.price-range__input {
  flex: 1;
  min-width: 0;
  background: white;
  border: 1px solid #e2e8f0;
  transition: all 0.25s ease;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  color: #4a5568;
}

.price-range__input:hover {
  border-color: #cbd5e0;
}

.price-range__input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  outline: none;
}

.price-range__input::placeholder {
  color: #a0aec0;
}

.price-range__separator {
  color: #cbd5e0;
  font-weight: 400;
  font-size: 14px;
}

/* Products main area */
.products-main {
  min-width: 0;
}

/* ----- Product Grid ----- */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

.product-card {
  background: #fafbfc;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid #e8eaed;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.product-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.product-card__image {
  height: 280px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: var(--spacing-xl);
  padding-bottom: calc(var(--spacing-xl) + 20px);
  border-bottom: 1px solid #f0f1f3;
  overflow: visible;
}

.product-card__image-slider {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-card__image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.3s ease;
}

.product-card__image-dots {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.product-card__image-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  padding: 0;
}

.product-card__image-dot:hover {
  background: rgba(0, 0, 0, 0.4);
  transform: scale(1.2);
}

.product-card__image-dot.active {
  background: var(--color-primary);
  width: 18px;
  border-radius: 3px;
}

.product-card__icon {
  font-size: 5rem;
  opacity: 0.3;
}

.product-card__content {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: white;
}

.product-card__title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
  padding: var(--spacing-md) var(--spacing-lg);
  border-bottom: 1px solid #f0f1f3;
  line-height: 1.4;
}

.product-card__title a {
  color: inherit;
  text-decoration: none;
}

.product-card__title a:hover {
  color: var(--color-primary);
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: var(--spacing-md) var(--spacing-lg);
  gap: 8px;
  flex-wrap: wrap;
}

.product-card__price {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-primary-dark);
  flex: 1;
  min-width: 0;
}

.product-card__btn {
  padding: 7px 14px 7px 12px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: var(--font-size-xs);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.product-card__btn::after {
  content: '→';
  font-size: 16px;
  transition: transform 0.3s ease;
}

.product-card__btn:hover {
  background: var(--color-primary-dark);
  padding-right: 16px;
}

.product-card__btn:hover::after {
  transform: translateX(6px);
}

/* Results Count */
.results-count {
  font-size: 0.82rem;
  color: var(--color-text-light);
  padding: 0 0 4px;
}

/* No Results */
.no-results {
  text-align: center;
  padding: var(--spacing-3xl);
  color: var(--color-text-light);
}

.no-results__icon {
  font-size: 4rem;
  margin-bottom: var(--spacing-md);
}

.no-results__title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

/* ----- Product Detail Page ----- */
.product-detail {
  padding: var(--spacing-xl) 0;
}

.product-detail__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
}

.product-detail__gallery {
  background: var(--color-bg-white);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
}

.product-detail__main-image {
  width: 100%;
  height: 300px;
  background: white;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.product-detail__main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--spacing-md);
}

.product-detail__thumbnails {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.product-detail__thumbnail {
  width: 80px;
  height: 80px;
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: var(--spacing-xs);
  background: var(--color-bg-white);
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}

.product-detail__thumbnail:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.product-detail__thumbnail.active {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.product-detail__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-detail__image {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-border) 100%);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
}

.product-detail__info {
  background: var(--color-bg-white);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
}

.product-detail__brand {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--spacing-sm);
}

.product-detail__title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: var(--spacing-md);
  line-height: 1.3;
}

.product-detail__price {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
}

.product-detail__availability {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius);
  font-size: var(--font-size-sm);
  font-weight: 500;
  margin-bottom: var(--spacing-lg);
}

.product-detail__availability--in-stock {
  background-color: rgba(56, 161, 105, 0.1);
  color: var(--color-success);
}

.product-detail__availability--out-of-stock {
  background-color: rgba(160, 174, 192, 0.1);
  color: var(--color-text-muted);
}

.product-detail__condition-info {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.condition-badge {
  flex: 1;
  padding: var(--spacing-md);
  background: var(--color-bg-light);
  border-radius: var(--border-radius);
  text-align: center;
}

.condition-badge__label {
  display: block;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
}

.condition-badge__value {
  display: block;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-success);
}

.condition-badge:last-child .condition-badge__value {
  color: var(--color-primary);
}

.product-detail__specs {
  margin-bottom: var(--spacing-xl);
}

.product-detail__specs-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
}

.specs-list {
  display: grid;
  gap: var(--spacing-sm);
}

.specs-list__item {
  display: flex;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--color-border);
}

.specs-list__label {
  flex: 0 0 40%;
  font-weight: 500;
  color: var(--color-text-light);
}

.specs-list__value {
  flex: 1;
  color: var(--color-text);
}

.product-detail__actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: var(--font-size-base);
  transition: all var(--transition-base);
  cursor: pointer;
}

.btn--primary {
  background-color: var(--color-primary);
  color: white;
}

.btn--outline {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn--success {
  background-color: #25D366;
  color: white;
}

.btn--success:hover {
  background-color: #20BA5A;
}

.btn:disabled {
  background-color: var(--color-text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ----- Footer ----- */
.footer {
  background-color: var(--color-primary-dark);
  color: white;
  padding: var(--spacing-lg) 0;
  margin-top: auto;
}

.footer__bottom {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--font-size-sm);
}

/* ----- Responsive Styles ----- */

/* Tablet (768px+) */
@media (min-width: 768px) {
  .hero__categories {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .why-us__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .featured-section__title {
    font-size: var(--font-size-2xl);
  }
  
  .product-detail__image {
    height: 450px;
  }
  
  .product-detail__main-image {
    height: 450px;
  }
  
  .product-detail__thumbnail {
    width: 90px;
    height: 90px;
  }
  
  .product-detail__actions {
    flex-direction: row;
  }
  
  /* Simplified filters on tablet+ */
  .filters__toggle {
    display: none;
  }
  
  .filters__header {
    display: none;
  }
  
  /* Always show filters on tablet+ */
  .filters-sidebar.collapsed .filters__list {
    display: flex;
  }
  
  .filters__list-footer {
    display: none;
  }
  
  .filters__list {
    padding: var(--spacing-lg);
  }
  
  /* FAQ & WhatsApp - 2 columns on tablet+ */
  .faq-contact-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .nav {
    display: block;
  }
  
  .menu-toggle {
    display: none;
  }
  
  .mobile-nav {
    display: none;
  }
  
  .lang-switcher--desktop {
    display: flex;
  }
  
  .hero {
    padding: var(--spacing-2xl) 0;
  }
  
  .hero-category {
    padding: var(--spacing-xl);
  }
  
  .hero-category__icon {
    font-size: 3rem;
  }
  
  .why-us__grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Sidebar layout for category pages */
  .category-layout {
    grid-template-columns: 280px 1fr;
  }
  
  .filters-sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--spacing-lg));
  }
  
  /* Max 3 products per row */
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Hide toggle on desktop */
  .filters__toggle-icon {
    display: none;
  }
  
  .product-detail__container {
    grid-template-columns: 1fr 1fr;
  }
  
  .product-detail__image {
    height: 500px;
  }
  
  .product-detail__main-image {
    height: 500px;
  }
  
  .product-detail__thumbnail {
    width: 100px;
    height: 100px;
  }
  
  /* FAQ & WhatsApp Grid - 2 columns on desktop */
  .faq-contact-grid {
    gap: var(--spacing-xl);
  }
  
  .faq-contact__title {
    font-size: var(--font-size-xl);
  }
  
  .faq-column,
  .whatsapp-column {
    padding: var(--spacing-xl);
  }
  
  .whatsapp-icon {
    width: 80px;
    height: 80px;
  }
  
  .whatsapp-icon svg {
    width: 48px;
    height: 48px;
  }
  
  .whatsapp-card__title {
    font-size: var(--font-size-lg);
  }
  
  .whatsapp-card__text {
    font-size: var(--font-size-sm);
  }
  
  .whatsapp-btn {
    font-size: var(--font-size-base);
    padding: var(--spacing-md) var(--spacing-xl);
  }
}

/* Large Desktop (1280px+) - Keep 3 products per row */
@media (min-width: 1280px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ----- Animations ----- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn var(--transition-base) ease-out;
}

/* ----- Page-specific header styles ----- */
.page-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: white;
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.page-header__title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.page-header__subtitle {
  font-size: var(--font-size-base);
  opacity: 0.9;
}

@media (min-width: 768px) {
  .page-header {
    padding: var(--spacing-2xl) 0;
  }
  
  .page-header__title {
    font-size: var(--font-size-3xl);
  }
}

/* ----- FAQ & WhatsApp Contact Section ----- */
.faq-contact-section {
  padding: var(--spacing-2xl) 0;
  background: var(--color-bg-white);
}

.faq-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

.faq-contact__title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: var(--spacing-md);
}

/* FAQ Column */
.faq-column {
  background: var(--color-bg);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.faq-item {
  background: var(--color-bg-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--color-bg-white);
  border: none;
  text-align: left;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-icon {
  font-size: var(--font-size-xl);
  font-weight: 300;
  color: var(--color-primary);
  transition: transform var(--transition-base);
  flex-shrink: 0;
  margin-left: var(--spacing-md);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base) ease-out;
}

.faq-question[aria-expanded="true"] + .faq-answer {
  max-height: 500px;
  transition: max-height var(--transition-base) ease-in;
}

.faq-answer p {
  padding: 0 var(--spacing-lg) var(--spacing-lg) var(--spacing-lg);
  color: var(--color-text-light);
  line-height: 1.6;
  font-size: var(--font-size-sm);
}

/* WhatsApp Column */
.whatsapp-column {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  color: white;
}

.whatsapp-column .faq-contact__title {
  color: white;
}

.whatsapp-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  text-align: center;
}

.whatsapp-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--spacing-md);
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #25D366;
}

.whatsapp-icon svg {
  width: 36px;
  height: 36px;
}

.whatsapp-card__title {
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: white;
}

.whatsapp-card__text {
  font-size: var(--font-size-xs);
  line-height: 1.5;
  margin-bottom: var(--spacing-md);
  color: rgba(255, 255, 255, 0.9);
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-lg);
  background: white;
  color: #25D366;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: var(--font-size-sm);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--spacing-sm);
}

.whatsapp-btn:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: #128C7E;
}

.whatsapp-btn__icon {
  width: 20px;
  height: 20px;
}

.whatsapp-number {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.9);
}

.whatsapp-number a {
  color: white;
  font-weight: 600;
  font-size: var(--font-size-sm);
  text-decoration: none;
  margin-left: var(--spacing-xs);
  transition: opacity var(--transition-fast);
}

.whatsapp-number a:hover {
  opacity: 0.8;
  color: white;
}
