*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050505;
  color: #f5f5f5;
  transition: background 0.35s ease, color 0.35s ease;
}

[data-theme] .header,
[data-theme] .footer,
[data-theme] .hero,
[data-theme] .hero-card,
[data-theme] .product-card,
[data-theme] .section-alt,
[data-theme] .about-item,
[data-theme] .info-block,
[data-theme] .auth-block,
[data-theme] .cart-item,
[data-theme] .cart-summary {
  transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

main {
  flex: 1;
}

[data-theme="gray"] body {
  background: #2d2d2d;
  color: #e8e8e8;
}

[data-theme="gray"] .header {
  background: rgba(45, 45, 45, 0.95);
  border-bottom-color: #404040;
}

[data-theme="gray"] .footer {
  background: #2d2d2d;
  border-top-color: #404040;
}

[data-theme="gray"] .footer p {
  color: #e8e8e8;
}

[data-theme="gray"] .hero {
  padding: 0;
  min-height: 700px;
  background: #2d2d2d url('images/main-bg.jpg?v=2') center/contain no-repeat;
  display: flex;
  align-items: center;
}

[data-theme="gray"] .section-alt,
[data-theme="gray"] .hero-card,
[data-theme="gray"] .product-card,
[data-theme="gray"] .about-item,
[data-theme="gray"] .info-block,
[data-theme="gray"] .auth-block,
[data-theme="gray"] .cart-item,
[data-theme="gray"] .cart-summary {
  background: rgba(255, 255, 255, 0.03) !important;
}

[data-theme="white"] body {
  background: #f5f5f5;
  color: #1a1a1a;
}

[data-theme="blue"] body {
  background: #1e3a8a;
  color: #e0e7ff;
}

[data-theme="purple"] body {
  background: #581c87;
  color: #f3e8ff;
}

[data-theme="green"] body {
  background: #14532d;
  color: #dcfce7;
}

[data-theme="red"] body {
  background: #7f1d1d;
  color: #fee2e2;
}

[data-theme="ocean"] body {
  background: #0c4a6e;
  color: #cffafe;
}

[data-theme="sunset"] body {
  background: #7c2d12;
  color: #fed7aa;
}

[data-theme="forest"] body {
  background: #365314;
  color: #ecfccb;
}

[data-theme="white"] .header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: #e0e0e0;
}

[data-theme="blue"] .header {
  background: rgba(30, 58, 138, 0.95);
  border-bottom-color: #1e40af;
}

[data-theme="purple"] .header {
  background: rgba(88, 28, 135, 0.95);
  border-bottom-color: #6b21a8;
}

[data-theme="green"] .header {
  background: rgba(20, 83, 45, 0.95);
  border-bottom-color: #166534;
}

[data-theme="red"] .header {
  background: rgba(127, 29, 29, 0.95);
  border-bottom-color: #991b1b;
}

[data-theme="ocean"] .header {
  background: rgba(12, 74, 110, 0.95);
  border-bottom-color: #0e7490;
}

[data-theme="sunset"] .header {
  background: rgba(124, 45, 18, 0.95);
  border-bottom-color: #9a3412;
}

[data-theme="forest"] .header {
  background: rgba(54, 83, 20, 0.95);
  border-bottom-color: #4d7c0f;
}

[data-theme="white"] .nav a {
  color: #333;
}

[data-theme="white"] .hero-text p,
[data-theme="white"] .section-subtitle,
[data-theme="white"] .product-category,
[data-theme="white"] .about-item p,
[data-theme="white"] .info-block ul,
[data-theme="white"] .modal-info p {
  color: #555 !important;
}

[data-theme="white"] .hero {
  padding: 0;
  min-height: 700px;
  background: #ffffff url('images/main-bg.jpg?v=2') center/contain no-repeat;
  display: flex;
  align-items: center;
}

[data-theme="white"] .hero-text h1 {
  color: #1a1a1a;
}

[data-theme="white"] .section h2 {
  color: #1a1a1a;
}

[data-theme="white"] .section-alt {
  background: #ebebeb !important;
}

[data-theme="blue"] .section-alt {
  background: #1e40af !important;
}

[data-theme="purple"] .section-alt {
  background: #6b21a8 !important;
}

[data-theme="green"] .section-alt {
  background: #166534 !important;
}

[data-theme="red"] .section-alt {
  background: #991b1b !important;
}

[data-theme="ocean"] .section-alt {
  background: #0e7490 !important;
}

[data-theme="sunset"] .section-alt {
  background: #9a3412 !important;
}

[data-theme="forest"] .section-alt {
  background: #4d7c0f !important;
}

[data-theme="gray"] .catalog-season-big-block {
  background: rgba(40, 40, 40, 0.98);
  border-color: #404040;
}
[data-theme="gray"] .catalog-season-big-block:hover {
  border-color: #2d27db;
}
[data-theme="gray"] .catalog-filter-btn {
  background: rgba(45, 45, 45, 0.9);
  border-color: #404040;
}
[data-theme="gray"] .catalog-filter-btn.active {
  border-color: #2d27db;
}
[data-theme="gray"] .catalog-size-block {
  background: rgba(50, 50, 50, 0.98) !important;
  border-color: #555 !important;
}

[data-theme="gray"] .catalog-size-block span.catalog-size-label {
  color: #fff !important;
}

[data-theme="gray"] .catalog-category-block {
  background: rgba(50, 50, 50, 0.98) !important;
  border-color: #555 !important;
  color: #fff !important;
}

[data-theme="white"] .catalog-season-big-block {
  background: rgba(245, 245, 245, 0.98);
  border-color: #ddd;
  color: #1a1a1a;
}
[data-theme="white"] .catalog-season-big-block:hover {
  border-color: #2d27db;
  background: rgba(45, 39, 219, 0.08);
}
[data-theme="white"] .catalog-filter-btn {
  background: rgba(255, 255, 255, 0.9);
  border-color: #ddd;
  color: #333;
}
[data-theme="white"] .catalog-filter-btn:hover,
[data-theme="white"] .catalog-filter-btn.active {
  border-color: #2d27db;
  background: rgba(45, 39, 219, 0.08);
  color: #1a1a1a;
}
[data-theme="white"] .catalog-size-block,
[data-theme="white"] .catalog-category-block {
  background: #fff !important;
  border-color: #ccc !important;
  border-width: 2px !important;
  color: #1a1a1a !important;
}

[data-theme="white"] .catalog-size-block span.catalog-size-label {
  color: #1a1a1a !important;
  text-shadow: none;
}

[data-theme="white"] .catalog-size-block:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

[data-theme="white"] .catalog-back-btn {
  border-color: #999;
  color: #333;
}

[data-theme="white"] .catalog-back-btn:hover {
  border-color: #2d27db;
}

[data-theme="white"] .hero-card,
[data-theme="white"] .product-card,
[data-theme="white"] .about-item,
[data-theme="white"] .info-block,
[data-theme="white"] .auth-block,
[data-theme="white"] .auth-form input,
[data-theme="white"] .cart-item,
[data-theme="white"] .cart-summary,
[data-theme="white"] .checkout-form input {
  background: #fff !important;
  border-color: transparent !important;
  color: #1a1a1a !important;
}

[data-theme="white"] .product-card h3,
[data-theme="white"] .modal-info h3,
[data-theme="white"] .checkout-form h3 {
  color: #1a1a1a !important;
}

[data-theme="white"] .secondary-btn {
  color: #333;
  border-color: #999;
}

[data-theme="white"] .secondary-btn:hover {
  border-color: #2d27db;
  color: #1a1a1a;
}

[data-theme="white"] .catalog-arrow {
  background: rgba(255, 255, 255, 0.9);
  border-color: #ddd;
  color: #333;
}

[data-theme="white"] .catalog-arrow:hover {
  background: #fff;
  border-color: #2d27db;
}

[data-theme="white"] .footer {
  background: #ebebeb;
  border-top-color: #ddd;
}

[data-theme="white"] .footer p {
  color: #333;
}

[data-theme="white"] .modal-content-grid,
[data-theme="white"] .modal-main-image {
  background: #fff !important;
  border-color: #ddd !important;
}

.theme-options {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 14px;
}


img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #202020;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  min-height: 48px;
}

.logo {
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 18px;
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
}

.logo:hover {
  opacity: 0.9;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  text-transform: uppercase;
}

.nav a {
  text-decoration: none;
  color: #e5e5e5;
  position: relative;
  padding: 6px 0;
  line-height: 1.45;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a svg {
  flex-shrink: 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: #2d27db;
  transition: width 0.2s ease;
}

.nav a:hover::after {
  width: 100%;
}

.header-admin .header-inner {
  flex-wrap: nowrap;
}
.admin-header-title {
  font-size: 15px;
  font-weight: 600;
  color: #e5e5e5;
  margin: 0 20px 0 0;
  flex-shrink: 0;
  white-space: nowrap;
}
.admin-subtitle {
  margin-top: 0;
}

.nav-cart-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #2d27db;
  border-radius: 999px;
  transition: transform 0.3s ease;
}

.cart-badge:empty,
.cart-badge[data-count="0"] {
  display: none;
}

/* Анімація додавання в кошик */
@keyframes cartBounce {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.3) translateY(-5px);
  }
  50% {
    transform: scale(1.1) translateY(-2px);
  }
  75% {
    transform: scale(1.2) translateY(-3px);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes flyToCart {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(var(--tx), var(--ty)) scale(0.5);
    opacity: 0.8;
  }
  100% {
    transform: translate(var(--tx), var(--ty)) scale(0.2);
    opacity: 0;
  }
}

.product-fly-animation {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  animation: flyToCart 0.8s ease-in-out forwards;
}

.product-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.hero {
  padding: 0;
  min-height: 700px;
  background: #f5f5f5 url('images/main-bg.jpg?v=2') center/contain no-repeat;
  display: flex;
  align-items: center;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  margin: 0 0 16px;
}

.hero-text p {
  margin: 0 0 24px;
  color: #b5b5b5;
  max-width: 460px;
}

.primary-btn,
.secondary-btn {
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
  padding: 12px 26px;
}

.primary-btn {
  background: linear-gradient(135deg, #2d27db, #1e1aa8);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.primary-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(45, 39, 219, 0.3);
}

.secondary-btn {
  background: transparent;
  color: #e5e5e5;
  border: 1px solid #333;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.secondary-btn:hover {
  border-color: #2d27db;
  transform: translateY(-1px);
}

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-card {
  width: 100%;
  max-width: 360px;
  border-radius: 24px;
  border: 1px solid #1b1b1b;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.03) 0, rgba(10, 10, 10, 0.96) 65%);
  padding: 22px 20px 24px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a5b4fc;
  background: rgba(45, 39, 219, 0.03);
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.hero-card h2 {
  margin: 16px 0 8px;
  font-size: 20px;
}

.hero-card p {
  margin: 0;
  color: #bfbfbf;
  font-size: 14px;
}

.section {
  padding: 64px 0;
}

.section-alt {
  background: #070707;
}

.section h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.section-subtitle {
  margin: 0 0 24px;
  color: #9b9b9b;
  font-size: 14px;
}

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-top: 16px;
}

.catalog-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.catalog-filter-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9b9b9b;
}

.catalog-filter-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  border-radius: 999px;
  border: 1px solid #2a2a2a;
  background: transparent;
  color: #e5e5e5;
  padding: 6px 14px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.filter-chip:hover {
  border-color: #2d27db;
  transform: scale(1.05);
}


.filter-chip-active {
  background: rgba(45, 39, 219, 0.16);
  border-color: #2d27db;
  color: #e6f0ff;
}

.catalog-steps {
  margin-top: 24px;
}

.catalog-back-btn {
  background: transparent;
  border: 1px solid #333;
  color: #e5e5e5;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  margin-bottom: 20px;
  transition: border-color 0.2s, color 0.2s;
}

.catalog-back-btn:hover {
  border-color: #2d27db;
  color: #fff;
}

/* Season selection — 3 великі блоки */
.catalog-season-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 32px;
  width: 100%;
  max-width: 1414px;
  margin: 0 auto;
}
.catalog-season-big-block {
  flex: 0 0 450px;
  width: 450px;
  max-width: 450px;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  border: 2px solid #333;
  border-radius: 20px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #e5e5e5;
  font: inherit;
  font-weight: 600;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
  background: #888;
}

/* Блок знижок */
.catalog-season-big-sale {
  flex: 0 0 450px;
  width: 450px;
  max-width: 450px;
  min-height: 500px;
  background: #1a1a1a;
}

.catalog-season-big-sale:hover {
  transform: translateY(-4px);
  border-color: #2d27db;
  box-shadow: 0 8px 24px rgba(45, 39, 219, 0.3);
}

.catalog-season-sale-img {
  filter: none;
}

.catalog-season-sale-icon {
  display: none;
}

[data-theme="white"] .catalog-season-big-sale {
  background: #ffffff;
}
.catalog-season-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.catalog-season-big-block:hover {
  transform: translateY(-4px);
  border-color: #2d27db;
  box-shadow: 0 8px 24px rgba(45, 39, 219, 0.3);
}
.catalog-season-block-line {
  display: block;
  font-size: 32px;
  line-height: 1.3;
  font-weight: 700;
  position: relative;
  z-index: 2;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}
  font-weight: 600;
}
.catalog-season-title {
  margin: 0 0 8px 0;
  font-size: 14px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.catalog-main-title {
  text-align: center;
  font-size: clamp(28px, 4vw, 36px);
  margin: -20px 0 16px 0;
}
.catalog-season-title-main {
  text-align: center;
  margin-top: 0;
  margin-bottom: 24px;
}

/* Filters: ВИРІБ + МАТЕРІАЛ */
.catalog-filters-new {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #222;
}
.catalog-filter-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.catalog-filter-group-title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.catalog-filter-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.catalog-filter-btn {
  padding: 10px 16px;
  border: 1px solid #333;
  border-radius: 10px;
  background: rgba(20, 20, 20, 0.9);
  color: #e5e5e5;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.catalog-filter-btn:hover {
  border-color: #2d27db;
  background: rgba(45, 39, 219, 0.08);
}
.catalog-filter-btn.active {
  border-color: #2d27db;
  background: rgba(45, 39, 219, 0.2);
  color: #fff;
}
.catalog-filter-sort {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}
.catalog-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 20px;
}
.catalog-products-grid .product-card {
  margin: 0;
}

.catalog-size-grid,
.catalog-category-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.catalog-size-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 2px solid #333;
  border-radius: 18px;
  background: rgba(30, 30, 30, 0.95);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.catalog-size-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  border-color: #2d27db;
}

.catalog-size-block-img-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  cursor: zoom-in;
}

.catalog-size-block-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-size-zoom-hint {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.2s;
}

.catalog-size-block-img-wrap:hover .catalog-size-zoom-hint {
  opacity: 1;
}

.catalog-size-block span.catalog-size-label {
  padding: 14px 20px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.catalog-category-block {
  display: block;
  width: 100%;
  padding: 20px 24px;
  border: 1px solid #242424;
  border-radius: 16px;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.04) 0, rgba(7, 7, 7, 0.98) 60%);
  color: #e5e5e5;
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.catalog-category-block:hover {
  transform: translateY(-2px);
  border-color: #2d27db;
  background: rgba(45, 39, 219, 0.1);
}

.catalog-empty {
  padding: 40px;
  text-align: center;
  color: #9b9b9b;
}

.catalog-slider-wrap {
  position: relative;
  margin-top: 20px;
}

.catalog-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #333;
  background: rgba(5, 5, 5, 0.9);
  color: #e5e5e5;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: border-color 0.2s, background 0.2s;
}

.catalog-arrow {
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.catalog-arrow:hover {
  border-color: #2d27db;
  background: rgba(45, 39, 219, 0.15);
  transform: translateY(-50%) scale(1.08);
}

.catalog-prev {
  left: -28px;
}

.catalog-next {
  right: -28px;
}

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 16px;
}
.catalog-filter-label {
  font-size: 13px;
  color: #9ca3af;
  margin: 0;
}
.catalog-sort-select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #333;
  background: #0f0f0f;
  color: #e5e5e5;
  font-size: 14px;
  min-width: 180px;
}
.catalog-price-input {
  width: 80px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #333;
  background: #0f0f0f;
  color: #e5e5e5;
  font-size: 14px;
}
.catalog-price-sep { color: #666; margin: 0 4px; }

.skeleton-card {
  flex: 0 0 280px;
  min-width: 280px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.skeleton {
  background: linear-gradient(90deg, #1a1a1a 25%, #252525 50%, #1a1a1a 75%);
  background-size: 200% 100%;
  animation: skeleton-shine 1.2s ease-in-out infinite;
  border-radius: 8px;
}
.skeleton-image {
  height: 170px;
  border-radius: 12px;
}
.skeleton-line {
  height: 14px;
  border-radius: 4px;
}
@keyframes skeleton-shine {
  to { background-position: 200% 0; }
}

.catalog-slider {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0 16px;
}

.catalog-slider::-webkit-scrollbar {
  height: 6px;
}

.catalog-slider::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 3px;
}

.catalog-slider::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}

.products {
  display: flex;
  gap: 24px;
  scroll-snap-align: start;
  padding: 0 4px;
}

.products .product-card {
  flex: 0 0 280px;
  min-width: 280px;
  scroll-snap-align: start;
}

.product-card {
  border-radius: 18px;
  border: none;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.05) 0, rgba(7, 7, 7, 0.98) 60%);
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

.product-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 32px rgba(45, 39, 219, 0.2);
}

.product-image {
  height: 320px;
  min-height: 320px;
  border-radius: 12px;
  margin-bottom: 2px;
  border: none;
  background: #ececec;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.product-image-clickable {
  cursor: pointer;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 2;
}

.product-badge-new {
  background: #2d27db;
  color: #fff;
}

.product-badge-hit {
  background: #f59e0b;
  color: #050505;
}

.product-badge-sale {
  background: #ef4444;
  color: #fff;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  border-radius: inherit;
  display: block;
}

.product-image-1 {
  background-image: linear-gradient(135deg, #171717, #262626);
}

.product-image-2 {
  background-image: linear-gradient(135deg, #111827, #020617);
}

.product-image-3 {
  background-image: linear-gradient(135deg, #101010, #1f2933);
}

.product-card h3 {
  margin: 0;
  font-size: 16px;
}

.product-category {
  margin: 0;
  font-size: 13px;
  color: #9b9b9b;
}

.product-price {
  margin: 2px 0 6px;
  font-weight: 600;
  color: #2d27db;
}

.product-price-old {
  text-decoration: line-through;
  color: #999;
  font-weight: 400;
  font-size: 0.9em;
  margin-right: 6px;
}

.product-price-new {
  color: #e53935;
  font-weight: 700;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.about-item {
  border-radius: 16px;
  border: 1px solid #252525;
  padding: 16px 16px 18px;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.03) 0, rgba(7, 7, 7, 0.98) 60%);
}

.about-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.about-item p {
  margin: 0;
  font-size: 14px;
  color: #b3b3b3;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 16px;
}

.info-block {
  border-radius: 16px;
  border: 1px solid #262626;
  padding: 16px 18px 18px;
  background: #050505;
}

.info-block h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.info-block ul {
  margin: 0;
  padding-left: 18px;
  color: #b5b5b5;
  font-size: 14px;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 16px;
}

.social-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
}

.social-list li + li {
  margin-top: 4px;
}

.social-list a {
  color: #2d27db;
  text-decoration: none;
  font-size: 14px;
}

.social-list a:hover {
  text-decoration: underline;
}

.footer {
  border-top: 1px solid #202020;
  background: #050505;
}

.footer-inner {
  padding: 16px 0 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #8b8b8b;
}

.footer-note {
  color: #666;
}

code {
  font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  background: #111;
  padding: 2px 5px;
  border-radius: 4px;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 20px;
}

.auth-grid-single {
  max-width: 420px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}

.auth-form input {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #27272a;
  background: #020617;
  color: #e5e5e5;
  font-size: 14px;
}

.auth-form input:focus {
  outline: none;
  border-color: #2d27db;
}

.auth-logout-btn {
  margin-top: 10px;
}

.auth-links {
  margin-top: 12px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-links a {
  color: #2d27db;
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}

.auth-block {
  display: none;
  max-width: 420px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  margin-left: auto;
  margin-right: auto;
  padding: 40px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .auth-block {
  background: rgba(30, 30, 30, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="gray"] .auth-block {
  background: rgba(40, 40, 40, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.auth-block-visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

#auth {
  min-height: 100vh;
  padding: 80px 0;
  background: #f3f4f6;
}

[data-theme="dark"] #auth {
  background: #0a0a0a;
}

[data-theme="gray"] #auth {
  background: #1a1a1a;
}

[data-theme="blue"] #auth {
  background: #1e3a8a;
}

[data-theme="purple"] #auth {
  background: #581c87;
}

[data-theme="green"] #auth {
  background: #14532d;
}

[data-theme="red"] #auth {
  background: #7f1d1d;
}

[data-theme="ocean"] #auth {
  background: #0c4a6e;
}

[data-theme="sunset"] #auth {
  background: #7c2d12;
}

[data-theme="forest"] #auth {
  background: #365314;
}

#auth .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#auth .container > h2,
#auth .container > .section-subtitle,
#auth #authStatus {
  text-align: center;
  width: 100%;
}

#auth .auth-block,
#auth .auth-block-visible {
  align-self: center;
  text-align: left;
}

.link-button {
  border: none;
  background: transparent;
  color: #2d27db;
  cursor: pointer;
  padding: 0;
  font-size: 14px;
}

.link-button:hover {
  text-decoration: underline;
}

.profile-reviews-block {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #333;
}

.profile-reviews-block h3 {
  margin: 0 0 14px;
  font-size: 16px;
}

.profile-reviews-block .auth-form {
  max-width: 100%;
}

.profile-orders-block,
.profile-addresses-block {
  margin-top: 24px;
}
.profile-orders-block h3,
.profile-addresses-block h3 {
  margin-bottom: 12px;
}
.order-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.order-history-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  border: 1px solid #2a2a2a;
}
.order-history-item a {
  color: #2d27db;
  text-decoration: none;
}
.order-history-item a:hover {
  text-decoration: underline;
}
.order-status {
  color: #9ca3af;
  font-size: 13px;
}
.order-history-empty {
  color: #9ca3af;
  font-size: 14px;
  margin: 0;
}
.saved-addresses-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.saved-address-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  border: 1px solid #2a2a2a;
}
.address-delete-btn {
  font-size: 13px;
  padding: 0;
}
.addresses-empty {
  color: #9ca3af;
  font-size: 14px;
  margin: 0 0 12px;
}
.address-form {
  max-width: 400px;
}
.cart-address-select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #333;
  background: #0f0f0f;
  color: #e5e5e5;
  font-size: 14px;
}

.account-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-top: 20px;
}
.account-main {
  flex: 1;
  min-width: 0;
}
.account-sidebar {
  width: 320px;
  flex-shrink: 0;
  display: none;
}
.account-layout.account-layout-profile .account-sidebar {
  display: block;
}
.account-sidebar-block {
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid #2a2a2a;
  border-radius: 12px;
}
.account-sidebar-block h3 {
  margin: 0 0 12px;
  font-size: 15px;
  color: #e5e5e5;
}
.account-sidebar-block .products.account-products {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.account-sidebar-block .product-card {
  flex: 0 0 auto;
  min-width: 0;
}
@media (max-width: 900px) {
  .account-layout {
    flex-direction: column;
  }
  .account-sidebar {
    width: 100%;
  }
}

.profile-reviews-block select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #27272a;
  background: #020617;
  color: #e5e5e5;
  font-size: 14px;
}

.profile-reviews-block textarea {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #27272a;
  background: #020617;
  color: #e5e5e5;
  font-size: 14px;
  resize: vertical;
  min-height: 80px;
}

.review-stars {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}

.review-star {
  background: none;
  border: none;
  padding: 0;
  font-size: 28px;
  color: #444;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s, transform 0.15s;
}

.review-star:hover,
.review-star.is-filled {
  color: #f59e0b;
}

.review-star:hover {
  transform: scale(1.15);
}

.review-form-status {
  margin-top: 10px;
  font-size: 14px;
}

[data-theme="white"] .profile-reviews-block {
  border-top-color: #ddd;
}

[data-theme="white"] .profile-reviews-block select,
[data-theme="white"] .profile-reviews-block textarea {
  background: #fff;
  border-color: #ddd;
  color: #1a1a1a;
}

[data-theme="white"] .review-star {
  color: #ccc;
}

[data-theme="white"] .review-star:hover,
[data-theme="white"] .review-star.is-filled {
  color: #f59e0b;
}

/* Account page 3-column grid */
.account-grid {
  display: grid;
  grid-template-columns: 380px 1fr 340px;
  gap: 24px;
  margin-top: 20px;
  align-items: start;
  position: relative;
}

.account-panel {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.account-panel.dragging {
  opacity: 0.7;
  cursor: grabbing !important;
  z-index: 1000;
  position: fixed !important;
  pointer-events: none;
  transform: scale(1.03);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.account-panel.drag-over {
  transform: translateX(10px);
}

.account-sidebar-left,
.account-sidebar-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 80px;
}

.account-sidebar-left h3,
.account-sidebar-right h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

/* Sidebar header with toggle */
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sidebar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-drag-handle,
.panel-drag-handle-main {
  cursor: grab;
  user-select: none;
}

.panel-drag-handle:active,
.panel-drag-handle-main:active {
  cursor: grabbing;
}

.panel-drag-handle-main {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #333;
  background: rgba(255, 255, 255, 0.03);
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

[data-theme="white"] .panel-drag-handle-main {
  background: #f9f9f9;
  border-color: #ddd;
  color: #666;
}

.panel-drag-handle-main:hover {
  border-color: #2d27db;
  background: rgba(45, 39, 219, 0.1);
  color: #2d27db;
}

.sidebar-drag-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #333;
  background: rgba(255, 255, 255, 0.03);
  color: #9ca3af;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

[data-theme="white"] .sidebar-drag-btn {
  background: #f9f9f9;
  border-color: #ddd;
  color: #666;
}

.sidebar-drag-btn:hover {
  border-color: #2d27db;
  background: rgba(45, 39, 219, 0.1);
  color: #2d27db;
}

.sidebar-drag-btn:active {
  cursor: grabbing;
}

.sidebar-toggle {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #333;
  background: rgba(255, 255, 255, 0.03);
  color: #e5e5e5;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

[data-theme="white"] .sidebar-toggle {
  background: #f9f9f9;
  border-color: #ddd;
  color: #333;
}

.sidebar-toggle:hover {
  border-color: #2d27db;
  background: rgba(45, 39, 219, 0.1);
}

.sidebar-toggle svg {
  transition: transform 0.3s ease;
}

.sidebar-toggle.collapsed svg {
  transform: rotate(180deg);
}

.sidebar-collapsible {
  max-height: 1000px;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 1;
}

.sidebar-collapsible.collapsed {
  max-height: 0;
  opacity: 0;
}

.account-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  position: relative;
}

/* Profile header */
.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #2a2a2a;
  border-radius: 16px;
}

[data-theme="white"] .profile-header {
  background: #fff;
  border-color: #e0e0e0;
}

[data-theme="gray"] .profile-header {
  background: rgba(255, 255, 255, 0.05);
  border-color: #404040;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2d27db, #1e1aa8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.profile-info {
  flex: 1;
  min-width: 0;
}

.profile-info h3 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
}

.profile-info p {
  margin: 0 0 10px;
  font-size: 14px;
  color: #9ca3af;
}

.profile-role-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  background: rgba(45, 39, 219, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(45, 39, 219, 0.3);
}

.profile-role-badge.admin {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.3);
}

/* Profile stats */
.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.profile-stat-card {
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.profile-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

[data-theme="white"] .profile-stat-card {
  background: #fff;
  border-color: #e0e0e0;
}

[data-theme="gray"] .profile-stat-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: #404040;
}

.profile-stat-value {
  font-size: 32px;
  font-weight: 700;
  color: #2d27db;
  margin-bottom: 6px;
  line-height: 1;
}

.profile-stat-label {
  font-size: 12px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* Profile meta */
.profile-meta {
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #2a2a2a;
  border-radius: 14px;
}

[data-theme="white"] .profile-meta {
  background: #fff;
  border-color: #e0e0e0;
}

[data-theme="gray"] .profile-meta {
  background: rgba(255, 255, 255, 0.05);
  border-color: #404040;
}

.profile-meta p {
  margin: 0 0 12px;
  font-size: 15px;
  color: #d1d1d1;
  line-height: 1.6;
}

[data-theme="white"] .profile-meta p {
  color: #333;
}

.profile-meta p:last-child {
  margin-bottom: 0;
}

.profile-meta strong {
  color: #9ca3af;
  font-weight: 600;
  margin-right: 8px;
}

/* View history list */
.view-history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 600px;
  overflow-y: auto;
  padding-right: 4px;
}

.view-history-list::-webkit-scrollbar {
  width: 6px;
}

.view-history-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.view-history-list::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 3px;
}

[data-theme="white"] .view-history-list::-webkit-scrollbar-track {
  background: #f0f0f0;
}

[data-theme="white"] .view-history-list::-webkit-scrollbar-thumb {
  background: #ccc;
}

.view-history-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

[data-theme="white"] .view-history-item {
  background: #fff;
  border-color: #e0e0e0;
}

[data-theme="gray"] .view-history-item {
  background: rgba(255, 255, 255, 0.05);
  border-color: #404040;
}

.view-history-item:hover {
  transform: translateY(-2px);
  border-color: #2d27db;
  box-shadow: 0 4px 12px rgba(45, 39, 219, 0.2);
}

.view-history-img {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
  background: #f5f5f5;
  flex-shrink: 0;
}

.view-history-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.view-history-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.view-history-price {
  font-size: 13px;
  color: #2d27db;
  font-weight: 600;
  margin: 0;
}

.view-history-time {
  font-size: 11px;
  color: #9ca3af;
}

/* Settings sections */
.settings-section {
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #2a2a2a;
  border-radius: 14px;
}

[data-theme="white"] .settings-section {
  background: #fff;
  border-color: #e0e0e0;
}

[data-theme="gray"] .settings-section {
  background: rgba(255, 255, 255, 0.05);
  border-color: #404040;
}

.settings-section h4 {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Theme selector */
.theme-selector {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 0 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.theme-selector::-webkit-scrollbar {
  height: 6px;
}

.theme-selector::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.theme-selector::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 3px;
}

[data-theme="white"] .theme-selector::-webkit-scrollbar-track {
  background: #f0f0f0;
}

[data-theme="white"] .theme-selector::-webkit-scrollbar-thumb {
  background: #ccc;
}

.theme-option-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 2px solid #333;
  border-radius: 12px;
  color: #e5e5e5;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  font-size: 13px;
  min-width: 80px;
  flex-shrink: 0;
  scroll-snap-align: start;
}

[data-theme="white"] .theme-option-btn {
  background: #f9f9f9;
  border-color: #ddd;
  color: #333;
}

[data-theme="gray"] .theme-option-btn {
  background: rgba(255, 255, 255, 0.03);
  border-color: #404040;
}

.theme-option-btn:hover {
  border-color: #2d27db;
  background: rgba(45, 39, 219, 0.08);
  transform: translateY(-2px);
}

.theme-option-btn.active {
  border-color: #2d27db;
  background: rgba(45, 39, 219, 0.15);
  box-shadow: 0 0 0 2px rgba(45, 39, 219, 0.2);
}

.theme-preview {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  border: 2px solid #444;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.theme-preview-white {
  background: linear-gradient(135deg, #ffffff 50%, #f5f5f5 50%);
  border-color: #ddd;
}

.theme-preview-gray {
  background: linear-gradient(135deg, #2d2d2d 50%, #404040 50%);
  border-color: #555;
}

.theme-preview-dark {
  background: linear-gradient(135deg, #050505 50%, #1a1a1a 50%);
  border-color: #333;
}

.theme-preview-blue {
  background: linear-gradient(135deg, #1e3a8a 50%, #3b82f6 50%);
  border-color: #2563eb;
}

.theme-preview-purple {
  background: linear-gradient(135deg, #581c87 50%, #a855f7 50%);
  border-color: #9333ea;
}

.theme-preview-green {
  background: linear-gradient(135deg, #14532d 50%, #22c55e 50%);
  border-color: #16a34a;
}

.theme-preview-red {
  background: linear-gradient(135deg, #7f1d1d 50%, #ef4444 50%);
  border-color: #dc2626;
}

.theme-preview-ocean {
  background: linear-gradient(135deg, #0c4a6e 50%, #06b6d4 50%);
  border-color: #0891b2;
}

.theme-preview-sunset {
  background: linear-gradient(135deg, #ea580c 50%, #fbbf24 50%);
  border-color: #f59e0b;
}

.theme-preview-forest {
  background: linear-gradient(135deg, #365314 50%, #84cc16 50%);
  border-color: #65a30d;
}

/* Settings toggles */
.settings-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  cursor: pointer;
}

.settings-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.settings-toggle span {
  color: #d1d1d1;
}

[data-theme="white"] .settings-toggle span {
  color: #333;
}

/* Admin quick link */
.admin-quick-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(45, 39, 219, 0.1);
  border: 1px solid rgba(45, 39, 219, 0.3);
  border-radius: 8px;
  color: #a5b4fc;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s;
}

.admin-quick-link:hover {
  background: rgba(45, 39, 219, 0.2);
  border-color: #2d27db;
}

/* Responsive */
@media (max-width: 1200px) {
  .account-grid {
    grid-template-columns: 260px 1fr 300px;
    gap: 20px;
  }
}

@media (max-width: 1024px) {
  .account-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .account-sidebar-left,
  .account-sidebar-right {
    position: static;
  }
  
  .panel-drag-handle,
  .panel-drag-handle-main,
  .sidebar-drag-btn {
    display: none;
  }
}

@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
  }
  
  .profile-stats {
    grid-template-columns: 1fr;
  }
  
  .account-grid {
    gap: 20px;
  }
  
  .panel-drag-handle-main {
    display: none;
  }
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.admin-stat-card {
  padding: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-stat-card-profit {
  background: rgba(45, 39, 219, 0.1);
  border-color: rgba(45, 39, 219, 0.3);
}

.admin-stat-card-profit .admin-stat-value {
  color: #6366f1;
}

.admin-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #e5e5e5;
}
.admin-stat-label {
  font-size: 13px;
  color: #9ca3af;
}
.admin-stat-popular {
  grid-column: 1 / -1;
  padding: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid #2a2a2a;
  border-radius: 12px;
}
.admin-stat-popular h4 {
  margin: 0 0 12px;
  font-size: 14px;
  color: #9ca3af;
}
.admin-popular-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-popular-item {
  font-size: 14px;
  color: #e5e5e5;
}
.admin-popular-item strong {
  color: #2d27db;
  margin-left: 6px;
}
.admin-stat-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  align-items: center;
}
.admin-stat-actions .admin-btn-danger {
  background: #7f1d1d;
  color: #fecaca;
  border: 1px solid #991b1b;
}
.admin-stat-actions .admin-btn-danger:hover {
  background: #991b1b;
}

.admin-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
  margin-top: 24px;
}

.admin-left h3,
.admin-right h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.admin-right {
  position: sticky;
  top: 80px;
}

.admin-promo-box {
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #333;
  background: rgba(255, 255, 255, 0.03);
}

.admin-section {
  margin-bottom: 32px;
}

.admin-section h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.admin-promo-list-title {
  margin: 16px 0 8px;
  font-size: 14px;
  color: #9b9b9b;
}

.admin-promo-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-promo-form label {
  font-size: 13px;
  color: #9b9b9b;
  margin-top: 4px;
}

.admin-promo-form label:first-of-type {
  margin-top: 0;
}

.admin-promo-form input,
.admin-promo-form select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #333;
  background: #0f0f0f;
  color: #e5e5e5;
  font-size: 14px;
}

.admin-promo-form button {
  margin-top: 8px;
}

.admin-form-message {
  margin: 8px 0 0;
  font-size: 14px;
}

.admin-promo-list {
  margin-top: 12px;
}

.admin-promo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 0;
  border-bottom: 1px solid #262626;
  font-size: 14px;
}

.admin-promo-item button {
  margin-left: auto;
}

.admin-empty {
  color: #9b9b9b;
  font-size: 14px;
  margin: 0;
}

.admin-table-wrapper {
  margin-top: 8px;
  overflow-x: auto;
}

@media (max-width: 900px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-right {
    position: static;
  }
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid #262626;
  padding: 8px 10px;
  text-align: left;
}

.admin-table th {
  color: #9ca3af;
  font-weight: 500;
}

.admin-btn {
  border-radius: 999px;
  border: 1px solid #374151;
  background: transparent;
  color: #e5e5e5;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}

.admin-btn-small + .admin-btn-small {
  margin-left: 6px;
}

.admin-btn:hover {
  border-color: #2d27db;
}

.admin-btn-danger {
  border-color: #f87171;
  color: #fecaca;
}

.admin-btn-danger:hover {
  border-color: #ef4444;
}

.cart-empty {
  margin-top: 20px;
  color: #9b9b9b;
}

.cart-empty a {
  color: #2d27db;
  text-decoration: none;
}

.cart-empty a:hover {
  text-decoration: underline;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 32px;
  margin-top: 24px;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #242424;
  background: rgba(255, 255, 255, 0.02);
}

.cart-item-image {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  background: #111;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  margin: 0 0 4px;
  font-size: 15px;
}

.cart-item-price {
  color: #2d27db;
  font-weight: 600;
  font-size: 14px;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-item-qty button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid #333;
  background: transparent;
  color: #e5e5e5;
  cursor: pointer;
  font-size: 16px;
}

.cart-item-qty button:hover {
  border-color: #2d27db;
}

.cart-item-remove {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 8px;
  border: 1px solid #444;
  background: transparent;
  color: #b5b5b5;
  cursor: pointer;
}

.cart-item-remove:hover {
  border-color: #f87171;
  color: #fca5a5;
}

.cart-summary {
  border-radius: 16px;
  border: 1px solid #242424;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  height: fit-content;
}

.cart-total {
  font-size: 18px;
  font-weight: 700;
  color: #2d27db;
  margin-bottom: 16px;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkout-form h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.checkout-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}

.checkout-form input {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #27272a;
  background: #0b0b0b;
  color: #e5e5e5;
  font-size: 14px;
}

.checkout-form button {
  margin-top: 8px;
}

.checkout-message {
  margin-top: 12px;
  font-size: 14px;
}

.checkout-message.success {
  color: #2d27db;
}

.checkout-message.error {
  color: #f87171;
}

.cart-promo-wrap {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.cart-promo-input {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #27272a;
  background: #0b0b0b;
  color: #e5e5e5;
  font-size: 14px;
}

.cart-promo-message {
  margin-top: 8px;
  font-size: 14px;
}

.cart-promo-message.success {
  color: #22c55e;
}

.cart-promo-message.error {
  color: #f87171;
}

@media (max-width: 768px) {
  .cart-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  
  .cart-promo-wrap {
    flex-direction: column !important;
    gap: 10px !important;
  }
  
  .cart-promo-input {
    width: 100% !important;
  }
  
  .cart-promo-wrap button {
    width: 100% !important;
  }
}

body.no-scroll {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  top: 57px;
  z-index: 40;
  visibility: hidden;
  opacity: 0;
  overflow-y: auto;
  transition: visibility 0.22s ease, opacity 0.22s ease;
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.75);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.modal.is-open .modal-backdrop {
  opacity: 1;
}

.modal-dialog {
  position: relative;
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 16px;
  transform: scale(0.96);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.modal.is-open .modal-dialog {
  transform: scale(1);
  opacity: 1;
}

/* Картка товару на весь екран (модалка та сторінка товару) */
.modal.is-open .modal-dialog,
.product-card-fullscreen .modal-dialog {
  max-width: 98%;
  width: 98%;
  height: auto;
  max-height: calc(100vh - 67px);
  min-height: unset;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.modal.is-open .modal-content-grid,
.product-card-fullscreen .modal-content-grid {
  flex: 1;
  min-height: 0;
  border-radius: 0;
  border: none;
  background: #050505;
  padding: 20px 24px 24px;
  gap: 24px;
  overflow: hidden;
}
body.product-page .modal.product-card-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 30;
  visibility: visible;
  opacity: 1;
  background: #050505;
}
body.product-page .modal.product-card-fullscreen .modal-dialog {
  min-height: 100vh;
  min-height: 100dvh;
}
.modal.is-open .modal-main-image,
.product-card-fullscreen .modal-main-image {
  min-height: 300px;
  height: auto;
  max-height: none;
}

/* щоб контент (карусель/кнопки) не вилазив за межі */
.modal.is-open .modal-info,
.product-card-fullscreen .modal-info {
  min-height: 0;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 24px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 900px) {
  .modal.is-open .modal-content-grid,
  .product-card-fullscreen .modal-content-grid {
    overflow-y: auto;
  }
  .modal.is-open .modal-info,
  .product-card-fullscreen .modal-info {
    overflow: visible;
  }
}

.modal-content-grid {
  position: relative;
  border-radius: 20px;
  border: 1px solid #2b2b2b;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.04) 0, #050505 60%);
  padding: 18px 18px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 18px;
  align-items: flex-start;
}

.modal-gallery-column {
  overflow-y: auto;
  max-height: calc(100vh - 120px);
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.modal-main-image {
  position: relative;
  border-radius: 16px;
  overflow: visible;
  border: 1px solid #1a1a1a;
  background: #0d0d0d;
  cursor: zoom-in;
  min-height: 400px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-bottom: 10px;
}

.modal-zoom-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s, border-color 0.2s;
}

.modal-zoom-btn:hover {
  background: rgba(45, 39, 219, 0.35);
  border-color: #2d27db;
}

.modal-main-image img {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: contain;
  object-position: center center;
  display: block;
}

@media (max-width: 768px) {
  .modal-main-image {
    min-height: unset !important;
    height: auto !important;
    background: transparent !important;
    overflow: visible !important;
  }
  .modal-main-image img {
    max-height: none !important;
    height: auto !important;
    width: 100% !important;
    object-fit: contain !important;
    object-position: center top !important;
    display: block !important;
  }
}

.modal-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 10px;
  padding: 0 4px;
  justify-content: flex-start;
  width: 100%;
}

.modal-thumb {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  min-width: 120px;
  min-height: 120px;
  border-radius: 8px;
  overflow: hidden;
  border: none;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.15s ease, transform 0.1s ease;
  background: #f5f5f5;
}

.modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.modal-thumb.is-active {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(45, 39, 219, 0.5), 0 0 0 2px #2d27db;
}

.modal-info h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

#modalDesc {
  font-size: 17px;
  line-height: 1.7;
  white-space: pre-line;
  margin-bottom: 16px;
  color: #d1d1d1;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 8px;
}

#modalDesc::-webkit-scrollbar {
  width: 6px;
}

#modalDesc::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 3px;
}

#modalDesc::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 3px;
}

.modal-back-link {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  margin: 0 0 6px;
}
.modal-back-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.modal-info p {
  margin: 0 0 12px;
  font-size: 17px;
  color: #d1d1d1;
  line-height: 1.6;
  white-space: pre-line;
}

.modal-price {
  font-weight: 600;
  color: #2d27db;
}

.modal-category {
  color: #9b9b9b;
}

/* Modal: attributes + variants */
.modal-attributes {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}
.modal-attr-row {
  font-size: 14px;
  color: #d1d1d1;
}
.modal-attr-row strong {
  color: #9b9b9b;
  font-weight: 700;
  margin-right: 6px;
}

/* Size Chart */
.modal-size-chart {
  margin-top: 16px;
  padding: 16px;
  background: rgba(30, 30, 30, 0.5);
  border-radius: 12px;
  border: 1px solid #333;
}

.modal-size-chart-title {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
}

.modal-size-chart-table {
  display: grid;
  gap: 8px;
}

.modal-size-row {
  padding: 8px 12px;
  background: rgba(40, 40, 40, 0.6);
  border-radius: 6px;
  font-size: 15px;
  color: #d1d1d1;
}

.modal-variants {
  margin-top: 20px;
  display: grid;
  gap: 16px;
}
.modal-variant-group-title {
  margin: 0 0 8px 0;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.modal-variant-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-size-btns {
  flex-wrap: wrap;
}
.modal-variant-btn {
  padding: 14px 24px;
  min-width: 100px;
  border: 1px solid #333;
  border-radius: 12px;
  background: rgba(20, 20, 20, 0.9);
  color: #e5e5e5;
  font-size: 15px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.modal-variant-btn:hover {
  border-color: #7b75e8;
  background: rgba(123, 117, 232, 0.08);
}
.modal-variant-btn.is-active {
  border-color: #7b75e8;
  background: rgba(123, 117, 232, 0.15);
  color: #fff;
}

.modal-reviews {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #2a2a2a;
}

.modal-reviews-title {
  margin: 0 0 10px;
  font-size: 14px;
  color: #9b9b9b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.modal-review-item {
  margin-bottom: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #222;
}

.modal-review-item:last-child {
  border-bottom: none;
}

.modal-review-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.modal-review-item strong {
  font-size: 13px;
}

.modal-review-date {
  font-size: 12px;
  color: #6b6b6b;
}

.modal-review-stars {
  margin: 4px 0 0;
  font-size: 14px;
  color: #f59e0b;
  letter-spacing: 1px;
}

.modal-review-text {
  margin: 6px 0 0;
  font-size: 14px;
  color: #d1d1d1;
  line-height: 1.45;
}

.modal-review-item p {
  margin: 6px 0 0;
  font-size: 14px;
  color: #d1d1d1;
  line-height: 1.45;
}

.modal-close {
  position: absolute;
  top: 4px;
  right: 24px;
  border: none;
  background: transparent;
  color: #d4d4d4;
  font-size: 26px;
  cursor: pointer;
}

.modal-close:hover {
  color: #ffffff;
}

.modal-share-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.modal-share-telegram {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.modal-related-wrap {
  margin-top: 8px;
  padding-top: 5px;
  border-top: none;
}
.modal-related-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary, #888);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-related-inline-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.modal-related-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin-top: 8px;
}
.modal-related-carousel::-webkit-scrollbar {
  height: 6px;
}
.modal-related-carousel::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 3px;
}
.modal-related-carousel::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 3px;
}
.related-card {
  flex: 0 0 160px;
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-radius: 12px;
  border: none;
  padding: 4px;
  background: transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.related-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 8px 24px rgba(45, 39, 219, 0.4);
}
.related-card-image {
  width: 100%;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
  transition: transform 0.3s ease;
}
.related-card:hover .related-card-image {
  transform: scale(1.1);
}
.related-card-image img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
  object-position: center;
  display: block;
}
.related-card-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.related-card-price {
  font-size: 12px;
  color: #2d27db;
  font-weight: 600;
}

.image-zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.image-zoom-overlay.is-open {
  display: flex;
}

.image-zoom-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  cursor: pointer;
}

.image-zoom-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
}
.image-zoom-wrap:active {
  cursor: grabbing;
}

.image-zoom-img {
  position: relative;
  z-index: 1;
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  border-radius: 8px;
  transform-origin: center center;
  transition: transform 0.15s ease-out;
  user-select: none;
  pointer-events: auto;
}

.image-zoom-controls {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.image-zoom-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.image-zoom-btn:hover {
  background: rgba(45, 39, 219, 0.4);
  border-color: #2d27db;
}

.image-zoom-scale {
  min-width: 48px;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.image-zoom-close {
  position: absolute;
  top: 16px;
  right: 24px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.image-zoom-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-image {
    order: -1;
  }

  .products .product-card {
    flex: 0 0 240px;
    min-width: 240px;
  }

  .catalog-prev {
    left: -8px;
  }

  .catalog-next {
    right: -8px;
  }

  .about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-grid,
  .contacts-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .modal-dialog {
    margin: 24px auto;
  }
  .modal.is-open .modal-dialog,
  .product-card-fullscreen .modal-dialog {
    margin: 0;
    padding: 16px;
  }
  .modal-content-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .catalog-season-grid {
    flex-direction: column;
    gap: 16px;
  }
  
  .catalog-season-big-block {
    min-height: 400px;
    max-height: 500px;
  }
  
  .catalog-season-big-left,
  .catalog-season-big-sale,
  .catalog-season-big-right {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
  }
  
  .catalog-season-bg-img {
    object-fit: cover;
    object-position: center;
  }
  
  .catalog-season-big-right {
    align-items: center;
  }
  .catalog-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .nav {
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .hero {
    padding-top: 56px;
  }

  .hero-card {
    max-width: 100%;
  }

  .products .product-card {
    flex: 0 0 260px;
    min-width: 260px;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.cart-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 14px;
  color: #e5e5e5;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: cart-toast-in 0.25s ease;
}

@keyframes cart-toast-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.cart-toast-undo {
  background: transparent;
  border: none;
  color: #2d27db;
  cursor: pointer;
  font-size: 14px;
  text-decoration: underline;
  padding: 0;
}

.cart-toast-undo:hover {
  color: #6b65f0;
}

.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #333;
  background: rgba(5, 5, 5, 0.9);
  color: #e5e5e5;
  font-size: 20px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: opacity 0.2s, transform 0.2s, border-color 0.2s;
}

.scroll-top-btn.is-visible {
  display: flex;
}

.scroll-top-btn:hover {
  border-color: #2d27db;
  transform: translateY(-2px);
}

[data-theme="white"] .scroll-top-btn {
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  border-color: #ddd;
}

[data-theme="white"] .scroll-top-btn:hover {
  border-color: #2d27db;
}

.welcome-popup {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 280px;
  max-width: calc(100vw - 48px);
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 16px;
  padding: 20px 20px 20px 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.welcome-popup.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.welcome-popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #9b9b9b;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.welcome-popup-close:hover {
  color: #e5e5e5;
  background: rgba(255, 255, 255, 0.08);
}

.welcome-popup-content {
  font-size: 14px;
  color: #e5e5e5;
  line-height: 1.5;
}

.welcome-popup-content p {
  margin: 0;
}

[data-theme="white"] .welcome-popup {
  background: #fff;
  border-color: #ddd;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

[data-theme="white"] .welcome-popup-content {
  color: #333;
}

[data-theme="white"] .welcome-popup-close {
  color: #666;
}

[data-theme="white"] .welcome-popup-close:hover {
  color: #333;
  background: rgba(0, 0, 0, 0.06);
}

/* FAQ */
.faq-list {
  margin-top: 20px;
}

.faq-item {
  border-radius: 12px;
  border: 1px solid #262626;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  margin-bottom: 8px;
}

.faq-question {
  width: 100%;
  padding: 14px 18px;
  text-align: left;
  background: transparent;
  border: none;
  color: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s;
}

.faq-question::after {
  content: "+";
  font-size: 18px;
  opacity: 0.7;
  transition: transform 0.2s;
}

.faq-item.is-open .faq-question::after {
  transform: rotate(45deg);
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.04);
}

.faq-answer {
  padding: 0 18px 0;
  max-height: 0;
  overflow: hidden;
  font-size: 14px;
  color: #9b9b9b;
  line-height: 1.5;
  transition: max-height 0.25s ease;
}

.faq-item.is-open .faq-answer {
  padding: 0 18px 14px;
  max-height: 200px;
}

/* Delivery calc */
.delivery-calc-wrap {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.delivery-city-input {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #333;
  background: #0a0a0a;
  color: #e5e5e5;
  font-size: 15px;
}

.delivery-city-input:focus {
  outline: none;
  border-color: #2d27db;
}

.delivery-calc-result {
  margin-top: 16px;
}

.delivery-calc-msg {
  color: #9b9b9b;
  font-size: 14px;
}

.delivery-calc-msg.ok {
  color: #22c55e;
}

/* Subscribe */
.subscribe-wrap {
  margin-top: 16px;
}

.subscribe-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.subscribe-form input {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #333;
  background: #0a0a0a;
  color: #e5e5e5;
  font-size: 15px;
}

.subscribe-telegram {
  margin-top: 12px;
  font-size: 14px;
  color: #9b9b9b;
}

.subscribe-telegram a {
  color: #2d27db;
  text-decoration: none;
}

.subscribe-telegram a:hover {
  text-decoration: underline;
}

/* Help float button */
.help-float-btn {
  position: fixed;
  bottom: 24px;
  left: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: #2d27db;
  color: #fff;
  text-decoration: none;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(45, 39, 219, 0.4);
  z-index: 100;
  transition: transform 0.2s, box-shadow 0.2s;
}

.help-float-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(45, 39, 219, 0.5);
}

.help-float-text {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.3s ease;
}

.help-float-btn:hover .help-float-text {
  max-width: 140px;
}

.help-float-icon {
  font-size: 18px;
}

/* Product stock */
.product-stock {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 2;
}

.product-stock-in {
  background: #22c55e;
  color: #050505;
}

.product-stock-low {
  background: #f59e0b;
  color: #050505;
}

.product-stock-order {
  background: #6b7280;
  color: #fff;
}

/* Product rating */
.product-rating-wrap {
  margin: 4px 0 0;
  font-size: 13px;
  color: #f59e0b;
}

.product-rating-wrap .product-reviews {
  color: #9b9b9b;
  font-weight: 400;
}

/* Wishlist button */
.wishlist-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s, transform 0.2s;
}

.wishlist-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

.wishlist-btn.is-active {
  color: #ef4444;
}

.product-share-btn {
  position: absolute;
  top: 8px;
  right: 50px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s, transform 0.2s;
}

.product-share-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

.share-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  background: #22c55e;
  color: #fff;
  border-radius: 10px;
  font-size: 14px;
  z-index: 1000;
  animation: share-toast-in 0.2s ease;
}

@keyframes share-toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.header-search-wrap {
  position: relative;
  flex: 1;
  max-width: 420px;
  margin: 0 16px;
}

.header-search-bar {
  display: flex;
  align-items: center;
  border-radius: 12px;
  border: 1px solid #333;
  background: #0f0f0f;
  overflow: hidden;
}

.header-search-category-wrap {
  display: flex;
  align-items: center;
  position: relative;
}

.header-search-category {
  padding: 10px 24px 10px 14px;
  background: transparent;
  border: none;
  color: #e5e5e5;
  font-size: 14px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  min-width: 120px;
}

.header-search-category option {
  background: #141414;
  color: #fff;
}

.header-search-category:hover,
.header-search-category:focus {
  color: #e5e5e5;
}

.header-search-chevron {
  position: absolute;
  right: 8px;
  pointer-events: none;
  font-size: 10px;
  opacity: 0.8;
  color: #9b9b9b;
}

.header-search-divider {
  width: 1px;
  height: 24px;
  background: #333;
  flex-shrink: 0;
}

.header-search-input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px 10px 14px;
  border: none;
  background: transparent;
  color: #e5e5e5;
  font-size: 14px;
}

.header-search-input::placeholder {
  color: #6b6b6b;
}

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

.header-search-btn {
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: #9b9b9b;
  font-size: 16px;
  cursor: pointer;
}

.header-search-btn:hover {
  color: #e5e5e5;
}

.header-search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  background: #141414;
  border: 1px solid #333;
  border-radius: 16px;
  max-height: 600px;
  overflow-y: auto;
  z-index: 100;
  display: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  color: #fff;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.header-search-dropdown[aria-hidden="false"],
.header-search-dropdown.is-open {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.search-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #333;
  font-weight: 600;
  font-size: 14px;
}

.search-close-btn {
  background: none;
  border: none;
  color: #888;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
}
.search-close-btn:hover {
  color: #fff;
}

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

.search-product-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #222;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.search-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(45, 39, 219, 0.3);
  border-color: #2d27db;
}

.search-product-image {
  position: relative;
  width: 100%;
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
  margin-bottom: 12px;
}
.search-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
  background: #2d27db;
  color: #fff;
}
.search-badge-new {
  background: #2d27db;
}
.search-badge-hit {
  background: #f59e0b;
}
.search-badge-sale {
  background: #ef4444;
}

.search-product-info {
  text-align: center;
}

.search-product-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 8px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-product-price {
  font-size: 15px;
  color: #2d27db;
  font-weight: 700;
  margin: 0;
}

.search-empty {
  padding: 40px 24px;
  text-align: center;
  color: #888;
  font-size: 15px;
}

.header-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #222;
  transition: background 0.15s;
}


.header-search-item:last-child {
  border-bottom: none;
}

.header-search-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.header-search-item-img {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a1a;
}

.header-search-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-search-item-title {
  font-size: 14px;
  flex: 1;
  min-width: 0;
}

.header-search-empty {
  padding: 14px;
  margin: 0;
  font-size: 14px;
  color: #9b9b9b;
}

[data-theme="white"] .header-search-bar {
  background: #fff;
  border-color: #ddd;
}

[data-theme="white"] .header-search-category,
[data-theme="white"] .header-search-btn {
  color: #555;
}

[data-theme="white"] .header-search-category:hover,
[data-theme="white"] .header-search-btn:hover {
  color: #1a1a1a;
}

[data-theme="white"] .header-search-input {
  color: #1a1a1a;
}

[data-theme="white"] .header-search-divider {
  background: #ddd;
}

[data-theme="gray"] .header-search-dropdown {
  background: #2d2d2d;
  border-color: #404040;
  color: #e8e8e8;
}

[data-theme="white"] .header-search-dropdown {
  background: #fff;
  border-color: #ddd;
  color: #1a1a1a;
}

[data-theme="white"] .header-search-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="white"] .header-search-empty {
  color: #666;
}

@media (max-width: 768px) {
  .header-search-wrap {
    max-width: 220px;
  }
  .header-search-category {
    min-width: 90px;
    padding-right: 20px;
    font-size: 13px;
  }
  .header-search-input {
    font-size: 13px;
  }
}

/* Track order result */
.track-result {
  margin-top: 20px;
}

.track-result-ok {
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #333;
  background: rgba(255, 255, 255, 0.03);
}

.track-result-ok p {
  margin: 8px 0;
  font-size: 14px;
}

.track-result-err,
.track-result-load {
  color: #f87171;
  font-size: 14px;
}

.track-status {
  color: #22c55e;
}

/* Contacts track link */
.contacts-track {
  margin-top: 16px;
  font-size: 14px;
}

.contacts-track a {
  color: #2d27db;
  text-decoration: none;
}

.contacts-track a:hover {
  text-decoration: underline;
}

#recent-views .products,
#wishlist-section .products {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 16px 0;
}

#recent-views .product-card,
#wishlist-section .product-card {
  flex: 0 0 280px;
}

.wishlist-empty {
  color: #9b9b9b;
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}

.wishlist-empty a {
  color: #2d27db;
  text-decoration: none;
}

.wishlist-empty a:hover {
  text-decoration: underline;
}

[data-theme="white"] .help-float-btn {
  background: #2d27db;
  color: #fff;
}

[data-theme="white"] .faq-item {
  border-color: #e0e0e0;
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="white"] .faq-answer {
  color: #555;
}

[data-theme="white"] .delivery-city-input,
[data-theme="white"] .subscribe-form input {
  background: #fff;
  border-color: #ddd;
  color: #1a1a1a;
}


/* White theme search styles */
[data-theme="white"] .header-search-dropdown {
  background: #fff;
  border-color: #ddd;
  color: #1a1a1a;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

[data-theme="white"] .search-results-header {
  border-bottom-color: #eee;
}

[data-theme="white"] .search-close-btn {
  color: #666;
}
[data-theme="white"] .search-close-btn:hover {
  color: #1a1a1a;
}

[data-theme="white"] .search-product-card {
  background: #f9f9f9;
  border-color: #e5e5e5;
}

[data-theme="white"] .search-product-card:hover {
  background: #fff;
  border-color: #2d27db;
}

[data-theme="white"] .search-empty {
  color: #666;
}

/* Gray theme search styles */
[data-theme="gray"] .header-search-dropdown {
  background: #2d2d2d;
  border-color: #404040;
}

[data-theme="gray"] .search-results-header {
  border-bottom-color: #404040;
}

[data-theme="gray"] .search-product-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: #404040;
}

[data-theme="gray"] .search-product-card:hover {
  border-color: #2d27db;
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

/* Tablets and small desktops */
@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }
  
  .product-card {
    max-width: 100%;
  }
}

/* Глобальне приховування чат віджетів ТІЛЬКИ на мобільній */
@media (max-width: 768px) {
  iframe[src*="tawk"],
  iframe[src*="messenger"],
  iframe[src*="chat"],
  iframe[title*="chat"],
  iframe[title*="Chat"],
  div[id*="chat"],
  div[id*="Chat"],
  div[class*="chat-widget"],
  div[class*="chat-button"],
  div[class*="livechat"],
  .chat-widget,
  .chat-button,
  #tawk-bubble,
  #tawk_,
  .tawk-min-container,
  .tawk-button,
  [id^="tawk"],
  [class^="tawk"],
  button[aria-label*="допомога"],
  button[aria-label*="Допомога"],
  button[title*="допомога"],
  button[title*="Допомога"],
  .welcome-popup,
  .welcome-popup.is-visible {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    left: -9999px !important;
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  /* Header */
  .header {
    position: sticky;
    top: 0;
    margin-bottom: 0;
    z-index: 100;
  }
  
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px;
  }
  
  .logo {
    font-size: 22px;
    text-align: center;
    margin-bottom: 0;
  }
  
  .header-search-wrap {
    width: 100%;
    max-width: 100%;
    order: 2;
  }
  
  .header-search-bar {
    width: 100%;
  }
  
  .header-search-category-wrap {
    min-width: 110px;
  }
  
  .header-search-category {
    font-size: 13px;
    padding-right: 26px;
  }
  
  .header-search-input {
    font-size: 14px;
  }
  
  .nav {
    order: 3;
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 6px;
    font-size: 11px;
  }
  
  .nav a {
    padding: 8px 6px;
    text-align: center;
    white-space: nowrap;
    flex: 1;
    flex-direction: column;
    gap: 4px;
  }
  
  .nav a svg {
    width: 18px;
    height: 18px;
  }
  
  .nav-text {
    display: block;
    font-size: 10px;
  }
  
  .nav-cart-link {
    position: relative;
  }
  
  /* Hero section - показуємо БЕЗ білих смуг */
  .hero {
    min-height: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    background: #f5f5f5 url('images/main-bg.jpg?v=2') center/contain no-repeat !important;
  }
  
  .hero-inner {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: auto !important;
    height: auto !important;
  }
  
  .hero-inner::before {
    content: '';
    display: block;
    padding-top: 40%;
  }
  
  .hero-content {
    display: none !important;
  }
  
  .hero-text {
    display: none !important;
  }
  
  .hero-image {
    display: none !important;
  }
  
  /* Catalog - прибираємо відступ зверху, починається одразу після hero */
  .catalog {
    padding: 0 0 40px 0 !important;
    margin: 0 !important;
  }
  
  .section {
    padding: 0 0 40px 0 !important;
  }
  
  /* Зменшуємо відступ зверху для секцій "ПРО НАС" та "ДОСТАВКА ТА ОПЛАТА" на мобільній */
  #about,
  #delivery {
    padding-top: 20px !important;
  }
  
  .section-title {
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
  }
  
  .section-subtitle {
    font-size: 18px;
    margin-bottom: 24px;
    text-align: center;
  }
  
  .catalog-season-grid {
    flex-direction: column;
    gap: 20px;
    padding: 0 16px;
  }
  
  .catalog-season-item {
    min-height: 350px;
    width: 100%;
  }
  
  .catalog-season-big-block {
    min-height: 350px;
  }
  
  .catalog-season-bg-img {
    object-fit: cover;
    object-position: center;
  }
  
  /* Product cards */
  .products {
    gap: 16px;
    padding: 0 16px;
  }
  
  .products .product-card {
    flex: 0 0 calc(50% - 8px);
    min-width: calc(50% - 8px);
    max-width: calc(50% - 8px);
  }
  
  .product-card {
    padding: 10px;
  }
  
  .product-image {
    height: 160px;
    border-radius: 12px;
  }
  
  .product-card h3 {
    font-size: 13px;
    margin-bottom: 6px;
    line-height: 1.3;
  }
  
  .product-price {
    font-size: 15px;
    margin-bottom: 8px;
  }
  
  .product-card-actions {
    flex-direction: column;
    gap: 6px;
  }
  
  .product-card-actions button {
    width: 100%;
    padding: 8px 12px;
    font-size: 12px;
  }
  
  /* Modal - повністю переробляємо для мобільних */
  .modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999 !important;
  }
  
  .modal-backdrop {
    background: #fff !important;
  }
  
  .modal-dialog {
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    overflow-y: auto !important;
    display: block !important;
  }
  
  .modal-content-grid {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    gap: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: #fff !important;
    min-height: 100vh !important;
  }
  
  /* Колонка з галереєю (фото + мініатюри) */
  .modal-gallery-column {
    order: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }
  
  /* Головне фото */
  .modal-main-image {
    width: 100% !important;
    height: auto !important;
    min-height: unset !important;
    max-height: none !important;
    padding: 8px !important;
    background: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    display: block !important;
    overflow: visible !important;
    position: relative !important;
  }
  
  .modal-main-image img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
  }
  
  .modal-zoom-btn {
    display: none !important;
  }
  
  /* Мініатюри ПІД головним фото, ЗЛІВА */
  .modal-gallery-column .modal-thumbs {
    display: flex !important;
    gap: 4px !important;
    overflow-x: hidden !important;
    padding: 4px !important;
    margin: 0 !important;
    background: #fff !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    width: 100% !important;
  }
  
  .modal-thumb {
    width: 80px !important;
    height: 80px !important;
    min-width: 80px !important;
    min-height: 80px !important;
    flex-shrink: 0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    border: none !important;
    cursor: pointer !important;
    background: #f5f5f5 !important;
  }
  
  .modal-thumb.is-active {
    box-shadow: 0 0 0 2px #2d27db !important;
  }
  
  .modal-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }
  
  /* Інфо блок */
  .modal-info {
    order: 2 !important;
    padding: 20px 16px !important;
    background: #fff !important;
  }
  
  .modal-info h3 {
    margin-top: 0 !important;
  }
  
  .modal-main-image img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
  }
  
  .modal-zoom-btn {
    display: none !important;
  }
  
  /* Інформація про товар */
  .modal-info {
    order: 2 !important;
    padding: 20px 16px !important;
    background: #fff !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  .modal-info p,
  .modal-info h3,
  .modal-desc {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
  }

  #modalDesc {
    white-space: pre-line !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
  }
  
  /* Мініатюри витягуємо з modal-info і ставимо після головного фото */
  .modal-info .modal-thumbs {
    order: -1 !important;
    position: relative !important;
    margin-left: -16px !important;
    margin-right: -16px !important;
    margin-top: -20px !important;
    margin-bottom: 20px !important;
  }
  
  .modal-info h3 {
    font-size: 20px !important;
    margin-bottom: 12px !important;
    color: #000 !important;
  }
  
  .modal-price {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #2d27db !important;
    margin-bottom: 16px !important;
  }
  
  #modalDesc {
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #333 !important;
    margin-bottom: 20px !important;
    max-height: none !important;
    white-space: pre-line !important;
  }
  
  /* Варіанти (розміри, кольори) */
  .modal-variants {
    margin: 20px 0 !important;
    display: block !important;
  }
  
  .modal-variant-group {
    margin-bottom: 20px !important;
  }
  
  .modal-variant-group-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    margin-bottom: 10px !important;
    color: #000 !important;
    display: block !important;
  }
  
  .modal-variant-btns {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .modal-size-btns {
    flex-wrap: wrap !important;
    overflow-x: visible !important;
  }
  
  .modal-variant-btn {
    padding: 10px 16px !important;
    min-width: 70px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
    border: 1px solid #ddd !important;
    background: #fff !important;
    color: #333 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .modal-variant-btn.is-active {
    background: #2d27db !important;
    color: #fff !important;
    border-color: #2d27db !important;
  }
  
  /* Атрибути (комплект) */
  .modal-attributes {
    margin: 20px 0 !important;
  }
  
  .modal-attributes h4 {
    font-size: 15px !important;
    font-weight: 600 !important;
    margin-bottom: 10px !important;
    color: #000 !important;
  }
  
  .modal-attributes-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }
  
  /* Кнопки */
  .modal-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: 20px !important;
    padding-bottom: 20px !important;
  }
  
  .modal-actions button {
    width: 100% !important;
    padding: 14px 20px !important;
    font-size: 16px !important;
    border-radius: 10px !important;
  }
  
  /* Ховаємо чат віджети */
  iframe[src*="tawk"],
  iframe[src*="messenger"],
  iframe[src*="chat"],
  div[id*="chat"],
  div[class*="chat-widget"],
  .chat-widget,
  #tawk-bubble,
  .tawk-min-container {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  
  /* Size chart */
  .modal-size-chart {
    padding: 12px;
  }
  
  .modal-size-chart-title {
    font-size: 14px;
  }
  
  .modal-size-row {
    font-size: 13px;
    padding: 6px 10px;
  }
  
  /* Buttons */
  .primary-btn,
  .secondary-btn {
    padding: 12px 18px;
    font-size: 14px;
  }
  
  /* Container */
  .container {
    padding: 0 16px;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
  
  /* Header */
  .header-inner {
    padding: 8px 12px;
    gap: 6px;
  }
  
  .logo {
    font-size: 20px;
  }
  
  .nav {
    font-size: 10px;
    gap: 4px;
  }
  
  .nav a {
    padding: 8px 4px;
    font-size: 10px;
  }
  
  .cart-badge {
    width: 18px;
    height: 18px;
    font-size: 11px;
  }
  
  /* Hero */
  .hero {
    min-height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    background: #f5f5f5 url('images/main-bg.jpg?v=2') center/contain no-repeat !important;
  }
  
  .hero-inner {
    padding: 0;
    margin: 0;
    min-height: auto;
    height: auto;
  }
  
  .hero-inner::before {
    content: '';
    display: block;
    padding-top: 40%;
  }
  
  .hero-content {
    display: none !important;
  }
  
  .hero-image {
    display: none !important;
  }
  
  /* Catalog */
  .catalog {
    padding: 32px 0;
    margin: 0;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .section-subtitle {
    font-size: 16px;
  }
  
  .catalog-season-grid {
    padding: 0 12px;
    gap: 16px;
  }
  
  .catalog-season-item {
    min-height: 320px;
  }
  
  .catalog-season-big-block {
    min-height: 320px;
  }
  
  /* Product cards - single column on very small screens */
  .products {
    padding: 0 12px;
  }
  
  .products .product-card {
    flex: 0 0 100%;
    min-width: 100%;
    max-width: 100%;
  }
  
  .product-image {
    height: 240px;
  }
  
  .product-card h3 {
    font-size: 15px;
  }
  
  .product-price {
    font-size: 17px;
  }
  
  /* Modal */
  .modal-dialog {
    width: 100%;
    max-width: 100%;
    margin: 0;
    max-height: 100vh;
    border-radius: 0;
  }
  
  .modal-content-grid {
    padding: 12px;
    gap: 16px;
  }
  
  .modal-main-image {
    height: 350px;
  }
  
  .modal-info {
    padding: 12px 0;
  }
  
  .modal-info h3 {
    font-size: 17px;
  }
  
  #modalDesc {
    font-size: 14px;
    line-height: 1.6;
    max-height: 180px;
  }
  
  .modal-variant-btn {
    padding: 9px 14px;
    min-width: 75px;
    font-size: 13px;
  }
  
  .modal-variant-btns {
    gap: 6px;
  }
  
  .modal-variant-group-title {
    font-size: 13px;
  }
  
  .modal-thumbs {
    gap: 6px;
    padding: 8px 0;
  }
  
  .modal-thumb {
    width: 65px;
    height: 65px;
  }
  
  /* Buttons */
  .primary-btn,
  .secondary-btn {
    padding: 11px 18px;
    font-size: 14px;
  }
}

/* Landscape orientation fixes */
@media (max-height: 600px) and (orientation: landscape) {
  .modal-dialog {
    max-height: 95vh;
    overflow-y: auto;
  }
  
  .modal-main-image {
    height: 200px;
  }
  
  #modalDesc {
    max-height: 150px;
  }
}


/* ============================================
   АНІМАЦІЇ ДЛЯ ПК ТА МОБІЛЬНОЇ ВЕРСІЇ
   ============================================ */

/* Keyframes для анімацій */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* ============================================
   АНІМАЦІЇ ДЛЯ ПК ВЕРСІЇ
   ============================================ */

@media (min-width: 769px) {
  /* Hero секція */
  .hero {
    animation: fadeIn 0.8s ease-out;
  }
  
  /* Каталог сезонів */
  .catalog-season-item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
  }
  
  .catalog-season-item:nth-child(1) {
    animation-delay: 0.1s;
  }
  
  .catalog-season-item:nth-child(2) {
    animation-delay: 0.2s;
  }
  
  /* Hover ефекти для карток товарів */
  .product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(45, 39, 219, 0.2);
  }
  
  /* Hover для кнопок */
  .primary-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  .primary-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
  }
  
  .primary-btn:hover::before {
    width: 300px;
    height: 300px;
  }
  
  /* Анімація для навігації */
  .nav a {
    transition: all 0.3s ease;
    position: relative;
  }
  
  .nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #2d27db;
    transform: translateX(-50%);
    transition: width 0.3s ease;
  }
  
  .nav a:hover::after {
    width: 80%;
  }
  
  /* Анімація для catalog blocks */
  .catalog-season-big-block {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .catalog-season-big-block:hover {
    transform: scale(1.02);
  }
  
  .catalog-season-big-block:active {
    transform: scale(0.98);
  }
  
  /* Анімація для фільтрів */
  .catalog-filter-btn {
    transition: all 0.3s ease;
  }
  
  .catalog-filter-btn:hover {
    transform: translateY(-2px);
  }
  
  /* Анімація для модального вікна */
  .modal {
    animation: fadeIn 0.3s ease-out;
  }
  
  .modal-content-grid {
    animation: scaleIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  /* Анімація для thumbnails */
  .modal-thumbnail {
    transition: all 0.3s ease;
  }
  
  .modal-thumbnail:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(45, 39, 219, 0.3);
  }
  
  /* Анімація для header при скролі */
  .header {
    transition: all 0.3s ease;
  }
}

/* ============================================
   АНІМАЦІЇ ДЛЯ МОБІЛЬНОЇ ВЕРСІЇ
   ============================================ */

@media (max-width: 768px) {
  /* Hero секція */
  .hero {
    animation: fadeIn 0.6s ease-out;
  }
  
  /* Каталог сезонів - швидші анімації */
  .catalog-season-item {
    animation: fadeInUp 0.4s ease-out;
    animation-fill-mode: both;
  }
  
  .catalog-season-item:nth-child(1) {
    animation-delay: 0.05s;
  }
  
  .catalog-season-item:nth-child(2) {
    animation-delay: 0.1s;
  }
  
  /* Легкі touch ефекти для карток */
  .product-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .product-card:active {
    transform: scale(0.98);
    box-shadow: 0 4px 16px rgba(45, 39, 219, 0.15);
  }
  
  /* Кнопки - швидкий відгук */
  .primary-btn,
  .secondary-btn {
    transition: all 0.2s ease;
  }
  
  .primary-btn:active,
  .secondary-btn:active {
    transform: scale(0.96);
  }
  
  /* Навігація */
  .nav a {
    transition: all 0.2s ease;
  }
  
  .nav a:active {
    transform: scale(0.95);
    opacity: 0.7;
  }
  
  /* Catalog blocks - швидкий відгук */
  .catalog-season-big-block {
    transition: all 0.2s ease;
  }
  
  .catalog-season-big-block:active {
    transform: scale(0.98);
    opacity: 0.9;
  }
  
  /* Фільтри */
  .catalog-filter-btn {
    transition: all 0.2s ease;
  }
  
  .catalog-filter-btn:active {
    transform: scale(0.95);
  }
  
  /* Модальне вікно - швидше відкриття */
  .modal {
    animation: fadeIn 0.2s ease-out;
  }
  
  .modal-content-grid {
    animation: slideInUp 0.3s ease-out;
  }
  
  @keyframes slideInUp {
    from {
      opacity: 0;
      transform: translateY(50px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Thumbnails - простий ефект */
  .modal-thumbnail {
    transition: opacity 0.2s ease;
  }
  
  .modal-thumbnail:active {
    opacity: 0.7;
  }
  
  /* Cart badge pulse при додаванні */
  .cart-badge.pulse {
    animation: pulse 0.4s ease-out;
  }
}

/* ============================================
   ЗАГАЛЬНІ ПЛАВНІ ПЕРЕХОДИ
   ============================================ */

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Всі інтерактивні елементи */
button,
a,
input,
select,
textarea {
  transition: all 0.2s ease;
}

/* Зображення */
img {
  transition: opacity 0.3s ease;
}

img:hover {
  opacity: 0.95;
}

/* Fade in для елементів при завантаженні */
.catalog-step-season,
.catalog-step-products {
  animation: fadeIn 0.5s ease-out;
}

/* Анімація для cart badge */
.cart-badge {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Анімація для search dropdown */
.header-search-dropdown {
  animation: fadeInUp 0.3s ease-out;
}

/* Анімація для wishlist heart */
.wishlist-btn {
  transition: all 0.3s ease;
}

.wishlist-btn:hover {
  transform: scale(1.1);
}

.wishlist-btn:active {
  transform: scale(0.9);
}

/* Анімація для color/size селекторів */
.modal-color-option,
.modal-size-option {
  transition: all 0.2s ease;
}

.modal-color-option:hover,
.modal-size-option:hover {
  transform: scale(1.05);
}

.modal-color-option:active,
.modal-size-option:active {
  transform: scale(0.95);
}


/* ============================================
   ПРОГРЕС БАР СКРОЛУ
   ============================================ */

.scroll-progress-bar {
  display: none; /* Прибрано прогрес бар */
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #2d27db, #1e1aa8, #2d27db);
  background-size: 200% 100%;
  z-index: 10000;
  transition: width 0.1s ease;
  animation: progressGradient 3s ease infinite;
}

@keyframes progressGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ============================================
   SKELETON LOADING
   ============================================ */

.skeleton-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding: 20px 0;
}

.skeleton-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
  animation: skeletonPulse 1.5s ease-in-out infinite;
}

.skeleton-image {
  width: 100%;
  height: 300px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  background-size: 200% 100%;
  border-radius: 8px;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
}

.skeleton-title {
  width: 70%;
  height: 20px;
  margin: 16px 0 8px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  background-size: 200% 100%;
  border-radius: 4px;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
}

.skeleton-price {
  width: 40%;
  height: 24px;
  margin-top: 8px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  background-size: 200% 100%;
  border-radius: 4px;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
  animation-delay: 0.2s;
}

@keyframes skeletonPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes skeletonShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

[data-theme="white"] .skeleton-card {
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="white"] .skeleton-image,
[data-theme="white"] .skeleton-title,
[data-theme="white"] .skeleton-price {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.05) 100%
  );
  background-size: 200% 100%;
}

/* ============================================
   СОРТУВАННЯ ТОВАРІВ
   ============================================ */

.catalog-sort-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.catalog-sort-label {
  font-size: 14px;
  font-weight: 600;
  color: #f5f5f5;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.catalog-sort-select {
  flex: 1;
  max-width: 250px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #f5f5f5;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.catalog-sort-select:hover {
  border-color: #2d27db;
  background: rgba(45, 39, 219, 0.1);
}

.catalog-sort-select:focus {
  border-color: #2d27db;
  box-shadow: 0 0 0 3px rgba(45, 39, 219, 0.2);
}

.catalog-sort-select option {
  background: #1a1a1a;
  color: #f5f5f5;
  padding: 10px;
}

[data-theme="white"] .catalog-sort-wrapper {
  background: rgba(0, 0, 0, 0.02);
  border-color: #ddd;
}

[data-theme="white"] .catalog-sort-label {
  color: #333;
}

[data-theme="white"] .catalog-sort-select {
  background: #fff;
  border-color: #ddd;
  color: #333;
}

[data-theme="white"] .catalog-sort-select:hover {
  border-color: #2d27db;
  background: rgba(45, 39, 219, 0.05);
}

[data-theme="white"] .catalog-sort-select option {
  background: #fff;
  color: #333;
}

/* ============================================
   ТАЙМЕР ЗНИЖОК
   ============================================ */

.discount-timer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: linear-gradient(135deg, #ff4757, #ff6348);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 8px;
  animation: timerPulse 2s ease-in-out infinite;
}

.discount-timer-icon {
  font-size: 14px;
}

.discount-timer-text {
  display: flex;
  gap: 6px;
}

.discount-timer-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 32px;
}

.discount-timer-value {
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.discount-timer-label {
  font-size: 9px;
  opacity: 0.9;
  margin-top: 2px;
}

@keyframes timerPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(255, 71, 87, 0);
  }
}

/* Бейдж знижки на картці товару */
.product-discount-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #ff4757, #ff6348);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  z-index: 2;
  animation: badgeBounce 0.5s ease-out;
}

@keyframes badgeBounce {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* ============================================
   МІКРО-АНІМАЦІЇ ДЛЯ ІКОНОК
   ============================================ */

/* Серце wishlist "б'ється" */
.nav a[href="/wishlist.html"] svg {
  transition: all 0.3s ease;
}

.nav a[href="/wishlist.html"]:hover svg {
  animation: heartBeat 0.8s ease-in-out;
}

@keyframes heartBeat {
  0%, 100% {
    transform: scale(1);
  }
  10%, 30% {
    transform: scale(0.9);
  }
  20%, 40%, 60%, 80% {
    transform: scale(1.1);
  }
  50%, 70% {
    transform: scale(1.05);
  }
}

/* Кошик "трясеться" */
.nav-cart-link svg {
  transition: all 0.3s ease;
}

.nav-cart-link.shake svg {
  animation: cartShake 0.5s ease-in-out;
}

@keyframes cartShake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-3px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(3px);
  }
}

/* Cart badge animation */
.cart-badge.cart-animate {
  animation: cartBadgePulse 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes cartBadgePulse {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.4) rotate(10deg);
    background: #22c55e;
  }
  50% {
    transform: scale(0.9) rotate(-10deg);
  }
  75% {
    transform: scale(1.3) rotate(5deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

/* Cart badge bounce (старий, залишаю для сумісності) */
.cart-badge.bounce {
  animation: cartBadgeBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes cartBadgeBounce {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.3) rotate(10deg);
  }
  50% {
    transform: scale(0.9) rotate(-10deg);
  }
  75% {
    transform: scale(1.2) rotate(5deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

/* Іконка користувача "махає" */
.nav a[href="/account.html"] svg {
  transition: all 0.3s ease;
  transform-origin: 70% 70%;
}

.nav a[href="/account.html"]:hover svg {
  animation: wave 0.6s ease-in-out;
}

@keyframes wave {
  0%, 100% {
    transform: rotate(0deg);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: rotate(14deg);
  }
  20%, 40%, 60%, 80% {
    transform: rotate(-8deg);
  }
}

/* Іконка пошуку "пульсує" */
.header-search-btn {
  transition: all 0.3s ease;
}

.header-search-btn:hover {
  animation: searchPulse 1s ease-in-out infinite;
}

@keyframes searchPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Адмін іконка "обертається" */
#topAdminLink svg {
  transition: all 0.3s ease;
}

#topAdminLink:hover svg {
  animation: adminRotate 0.6s ease-in-out;
}

@keyframes adminRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ============================================
   МОБІЛЬНА ВЕРСІЯ - АДАПТАЦІЯ
   ============================================ */

@media (max-width: 768px) {
  .scroll-progress-bar {
    height: 2px;
  }
  
  .catalog-sort-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  
  .catalog-sort-select {
    max-width: 100%;
  }
  
  .discount-timer {
    font-size: 10px;
    padding: 6px 10px;
  }
  
  .discount-timer-value {
    font-size: 14px;
  }
  
  .discount-timer-label {
    font-size: 8px;
  }
  
  .skeleton-wrapper {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
  }
  
  .skeleton-image {
    height: 200px;
  }
}


/* ============================================
   СТИЛІ ДЛЯ 4 БЛОКІВ "ПРО НАС"
   ============================================ */

/* ПК версія - 2 колонки (2x2) */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.about-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.about-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(45, 39, 219, 0.15);
  border-color: rgba(45, 39, 219, 0.3);
}

.about-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: #f5f5f5;
}

.about-item p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  color: #b5b5b5;
}

[data-theme="white"] .about-item {
  background: #fff;
  border-color: #e0e0e0;
}

[data-theme="white"] .about-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: #2d27db;
}

[data-theme="white"] .about-item h3 {
  color: #1a1a1a;
}

[data-theme="white"] .about-item p {
  color: #555;
}

[data-theme="gray"] .about-item {
  background: rgba(255, 255, 255, 0.03);
  border-color: #404040;
}

[data-theme="gray"] .about-item:hover {
  border-color: #2d27db;
}

/* Мобільна версія - 1 колонка */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .about-item {
    padding: 20px;
  }
  
  .about-item h3 {
    font-size: 16px;
  }
  
  .about-item p {
    font-size: 13px;
  }
}


/* ============================================
   ТАБЛИЦЯ РОЗМІРІВ
   ============================================ */

.sizes-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.sizes-table {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  overflow: hidden;
}

.sizes-table thead {
  background: rgba(45, 39, 219, 0.1);
}

.sizes-table th {
  padding: 16px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #f5f5f5;
  border-bottom: 2px solid rgba(45, 39, 219, 0.3);
}

.sizes-table th:nth-child(2) {
  padding-left: 40px;
}

.sizes-table td {
  padding: 16px;
  font-size: 15px;
  color: #e0e0e0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.sizes-table td:nth-child(2) {
  padding-left: 40px;
}

.sizes-table tbody tr:last-child td {
  border-bottom: none;
}

.sizes-table tbody tr:hover {
  background: rgba(45, 39, 219, 0.05);
}

[data-theme="white"] .sizes-table {
  background: #fff;
  border: 1px solid #e0e0e0;
}

[data-theme="white"] .sizes-table thead {
  background: #f5f5f5;
}

[data-theme="white"] .sizes-table th {
  color: #1a1a1a;
  border-bottom-color: #2d27db;
}

[data-theme="white"] .sizes-table td {
  color: #333;
  border-bottom-color: #e0e0e0;
}

[data-theme="white"] .sizes-table tbody tr:hover {
  background: rgba(45, 39, 219, 0.03);
}

/* Мобільна версія */
@media (max-width: 768px) {
  .sizes-info {
    margin-top: 24px !important;
    padding: 16px !important;
    font-size: 14px !important;
  }
  
  .sizes-info p {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
  
  .sizes-table th,
  .sizes-table td {
    padding: 12px 8px;
    font-size: 13px;
  }
  
  .sizes-table th {
    font-size: 12px;
  }
}


/* ============================================
   АНІМАЦІЯ ДЛЯ КНОПКИ "РОЗМІРИ"
   ============================================ */

/* Анімація лінійки - розтягування */
.nav-sizes-link svg {
  transition: all 0.3s ease;
}

.nav-sizes-link:hover svg {
  animation: rulerStretch 0.6s ease-in-out;
}

@keyframes rulerStretch {
  0%, 100% {
    transform: scaleX(1);
  }
  25% {
    transform: scaleX(1.2);
  }
  50% {
    transform: scaleX(0.9);
  }
  75% {
    transform: scaleX(1.1);
  }
}

/* Анімація для кружечків (міток на лінійці) */
.nav-sizes-link:hover svg circle {
  animation: markerPulse 0.6s ease-in-out;
}

@keyframes markerPulse {
  0%, 100% {
    r: 1;
    opacity: 1;
  }
  50% {
    r: 1.5;
    opacity: 0.7;
  }
}

/* Мобільна версія - touch ефект */
@media (max-width: 768px) {
  .nav-sizes-link:active svg {
    animation: rulerStretch 0.4s ease-in-out;
  }
  
  .nav-sizes-link:active svg circle {
    animation: markerPulse 0.4s ease-in-out;
  }
}

/* ===== ЛОАДЕР КАРТКИ ТОВАРУ ===== */
.product-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  visibility: hidden;
  transition: background 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.product-loader.is-active {
  visibility: visible;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: all;
}

.product-loader-spinner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  animation: loaderSpin 0.7s linear infinite;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.product-loader.is-active .product-loader-spinner {
  opacity: 1;
  transform: scale(1);
}

@keyframes loaderSpin {
  to { transform: rotate(360deg) scale(1); }
}

[data-theme="white"] .product-loader-spinner {
  border-color: rgba(0, 0, 0, 0.15);
  border-top-color: #2d27db;
}

/* ===== МОБІЛЬНА ШАПКА КАРТОЧКИ ТОВАРУ ===== */
.mobile-modal-header {
  display: none;
}

@media (max-width: 768px) {
  .mobile-modal-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    height: 52px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e5e5;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }

  .mobile-modal-logo {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a1a;
    text-decoration: none;
    letter-spacing: 0.05em;
  }

  .mobile-modal-nav {
    display: flex;
    align-items: center;
    gap: 18px;
  }

  .mobile-modal-nav a {
    color: #1a1a1a;
    text-decoration: none;
    position: relative;
    display: flex;
    align-items: center;
  }

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

  /* Зсуваємо модалку вниз під шапку на мобільних */
  .modal.is-open {
    top: 52px !important;
  }
}

/* ============================================
   СЕКЦІЯ ЗНИЖОК
   ============================================ */

.sale-section {
  padding: 40px 0;
}

.sale-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

.sale-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.sale-carousel::-webkit-scrollbar {
  height: 4px;
}

.sale-carousel::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
}

.sale-carousel::-webkit-scrollbar-thumb {
  background: rgba(45, 39, 219, 0.4);
  border-radius: 2px;
}

.sale-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(255,255,255,0.08);
}

.sale-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.sale-card-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}

.sale-card-body {
  padding: 12px;
}

.sale-card-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sale-card-prices {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sale-card-old-price {
  text-decoration: line-through;
  color: #999;
  font-size: 13px;
}

.sale-card-new-price {
  color: #e53935;
  font-weight: 700;
  font-size: 16px;
}

.sale-card-badge {
  display: inline-block;
  background: #e53935;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  margin-left: auto;
}

/* Білий режим */
[data-theme="white"] .sale-card {
  background: #fff;
  border-color: #e0e0e0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

[data-theme="white"] .sale-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

[data-theme="white"] .sale-card-title {
  color: #1a1a1a;
}

/* Мобільна версія */
@media (max-width: 768px) {
  .sale-section {
    padding: 20px 0;
  }

  .sale-title {
    font-size: 22px;
    margin-bottom: 16px;
  }

  .sale-card {
    flex: 0 0 160px;
  }

  .sale-card-body {
    padding: 8px;
  }

  .sale-card-title {
    font-size: 12px;
  }

  .sale-card-new-price {
    font-size: 14px;
  }
}


/* ===== СТИЛІ ДЛЯ КОШИКА ===== */
.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid #333;
  border-radius: 12px;
  background: rgba(30, 30, 30, 0.5);
  margin-bottom: 12px;
}

[data-theme="white"] .cart-item {
  background: #f9fafb;
  border-color: #e5e7eb;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s;
}

.cart-item-image:hover {
  transform: scale(1.05);
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-item-title {
  font-weight: 600;
  font-size: 16px;
  color: #e5e5e5;
}

[data-theme="white"] .cart-item-title {
  color: #1f2937;
}

.cart-item-price {
  color: #9ca3af;
  font-size: 14px;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-item-qty button {
  width: 32px;
  height: 32px;
  border: 1px solid #333;
  border-radius: 6px;
  background: rgba(45, 39, 219, 0.1);
  color: #e5e5e5;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
}

[data-theme="white"] .cart-item-qty button {
  border-color: #d1d5db;
  background: #fff;
  color: #1f2937;
}

.cart-item-qty button:hover {
  background: rgba(45, 39, 219, 0.2);
  border-color: #2d27db;
}

.cart-item-qty span {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
}

.cart-item-remove {
  padding: 8px 16px;
  border: 1px solid #dc2626;
  border-radius: 8px;
  background: rgba(220, 38, 38, 0.1);
  color: #ef4444;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.cart-item-remove:hover {
  background: rgba(220, 38, 38, 0.2);
}


/* ===== TELEGRAM КНОПКА ===== */
.telegram-float-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #0088cc, #229ED9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 136, 204, 0.4);
  transition: all 0.3s ease;
  z-index: 9999;
  animation: telegram-pulse 2s infinite;
}

.telegram-float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.6);
}

.telegram-float-btn:hover .telegram-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-10px);
}

.telegram-tooltip {
  position: absolute;
  right: 75px;
  background: white;
  color: #1f2937;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  line-height: 1.4;
}

.telegram-tooltip::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid white;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

@keyframes telegram-pulse {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(0, 136, 204, 0.7), 0 0 0 10px rgba(0, 136, 204, 0.1);
  }
}

/* Мобільна версія */
@media (max-width: 768px) {
  .telegram-float-btn {
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
  }
  
  .telegram-tooltip {
    right: auto;
    left: 50%;
    bottom: 70px;
    transform: translateX(-50%);
    text-align: center;
  }
  
  .telegram-float-btn:hover .telegram-tooltip {
    transform: translateX(-50%) translateY(-5px);
  }
  
  .telegram-tooltip::after {
    right: auto;
    left: 50%;
    top: auto;
    bottom: -8px;
    transform: translateX(-50%) rotate(90deg);
  }
}

/* Історія переглядів */
.view-history-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: rgba(30, 30, 30, 0.3);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}

[data-theme="white"] .view-history-item {
  background: #f9fafb;
}

.view-history-item:hover {
  background: rgba(45, 39, 219, 0.1);
  transform: translateX(4px);
}

.view-history-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.view-history-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.view-history-title {
  font-size: 14px;
  font-weight: 600;
  color: #e5e5e5;
}

[data-theme="white"] .view-history-title {
  color: #1f2937;
}

.view-history-price {
  font-size: 13px;
  color: #9ca3af;
}

.view-history-time {
  font-size: 12px;
  color: #6b7280;
}

/* Additional theme support for cards and blocks */
[data-theme="blue"] .profile-header,
[data-theme="blue"] .profile-stat-card,
[data-theme="blue"] .profile-meta,
[data-theme="blue"] .settings-section,
[data-theme="blue"] .view-history-item {
  background: rgba(59, 130, 246, 0.1);
  border-color: #1e40af;
}

[data-theme="purple"] .profile-header,
[data-theme="purple"] .profile-stat-card,
[data-theme="purple"] .profile-meta,
[data-theme="purple"] .settings-section,
[data-theme="purple"] .view-history-item {
  background: rgba(168, 85, 247, 0.1);
  border-color: #6b21a8;
}

[data-theme="green"] .profile-header,
[data-theme="green"] .profile-stat-card,
[data-theme="green"] .profile-meta,
[data-theme="green"] .settings-section,
[data-theme="green"] .view-history-item {
  background: rgba(34, 197, 94, 0.1);
  border-color: #166534;
}

[data-theme="red"] .profile-header,
[data-theme="red"] .profile-stat-card,
[data-theme="red"] .profile-meta,
[data-theme="red"] .settings-section,
[data-theme="red"] .view-history-item {
  background: rgba(239, 68, 68, 0.1);
  border-color: #991b1b;
}

[data-theme="ocean"] .profile-header,
[data-theme="ocean"] .profile-stat-card,
[data-theme="ocean"] .profile-meta,
[data-theme="ocean"] .settings-section,
[data-theme="ocean"] .view-history-item {
  background: rgba(6, 182, 212, 0.1);
  border-color: #0e7490;
}

[data-theme="sunset"] .profile-header,
[data-theme="sunset"] .profile-stat-card,
[data-theme="sunset"] .profile-meta,
[data-theme="sunset"] .settings-section,
[data-theme="sunset"] .view-history-item {
  background: rgba(251, 191, 36, 0.1);
  border-color: #9a3412;
}

[data-theme="forest"] .profile-header,
[data-theme="forest"] .profile-stat-card,
[data-theme="forest"] .profile-meta,
[data-theme="forest"] .settings-section,
[data-theme="forest"] .view-history-item {
  background: rgba(132, 204, 22, 0.1);
  border-color: #4d7c0f;
}

/* Theme buttons in new themes */
[data-theme="blue"] .theme-option-btn,
[data-theme="purple"] .theme-option-btn,
[data-theme="green"] .theme-option-btn,
[data-theme="red"] .theme-option-btn,
[data-theme="ocean"] .theme-option-btn,
[data-theme="sunset"] .theme-option-btn,
[data-theme="forest"] .theme-option-btn {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="blue"] .theme-option-btn:hover,
[data-theme="purple"] .theme-option-btn:hover,
[data-theme="green"] .theme-option-btn:hover,
[data-theme="red"] .theme-option-btn:hover,
[data-theme="ocean"] .theme-option-btn:hover,
[data-theme="sunset"] .theme-option-btn:hover,
[data-theme="forest"] .theme-option-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}


/* Simple profile info */
.profile-info-simple {
  margin: 20px 0;
}

.profile-info-simple p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

[data-theme="dark"] .profile-info-simple p,
[data-theme="gray"] .profile-info-simple p {
  color: #e5e5e5;
}

.profile-info-simple strong {
  font-weight: 600;
  color: #666;
  margin-right: 8px;
  min-width: 80px;
  display: inline-block;
}

[data-theme="dark"] .profile-info-simple strong,
[data-theme="gray"] .profile-info-simple strong {
  color: #9ca3af;
}

.profile-info-simple span {
  color: #1a1a1a;
}

[data-theme="dark"] .profile-info-simple span,
[data-theme="gray"] .profile-info-simple span {
  color: #fff;
}


/* Admin theme switcher */
.admin-theme-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 20px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="white"] .admin-theme-switcher {
  background: rgba(0, 0, 0, 0.03);
  border-color: #e0e0e0;
}

.theme-switcher-label {
  font-size: 12px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 4px;
}

[data-theme="white"] .theme-switcher-label {
  color: #666;
}

.theme-switch-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  color: #9ca3af;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
}

[data-theme="white"] .theme-switch-btn {
  background: rgba(0, 0, 0, 0.03);
  color: #666;
}

[data-theme="gray"] .theme-switch-btn {
  background: rgba(255, 255, 255, 0.05);
}

.theme-switch-btn:hover {
  border-color: #2d27db;
  background: rgba(45, 39, 219, 0.15);
  color: #2d27db;
  transform: scale(1.1);
}

.theme-switch-btn.active {
  border-color: #2d27db;
  background: rgba(45, 39, 219, 0.25);
  color: #2d27db;
  box-shadow: 0 0 0 2px rgba(45, 39, 219, 0.2);
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .admin-theme-switcher {
    margin: 8px 0;
    order: -1;
    flex-wrap: wrap;
  }
  
  .header-admin .header-inner {
    flex-wrap: wrap;
  }
}


/* Lavender theme - заспокійлива лавандова */
[data-theme="lavender"] body {
  background: #e6e6fa;
  color: #2d2d4d;
}

[data-theme="lavender"] .header {
  background: rgba(230, 230, 250, 0.95);
  border-bottom-color: #d0d0e8;
}

[data-theme="lavender"] .nav a {
  color: #4a4a6a;
}

[data-theme="lavender"] .section-alt {
  background: #f0f0fa !important;
}

[data-theme="lavender"] .hero {
  background: #e6e6fa url('images/main-bg.jpg?v=2') center/contain no-repeat;
}

[data-theme="lavender"] .hero-text h1,
[data-theme="lavender"] .section h2 {
  color: #2d2d4d;
}

[data-theme="lavender"] .hero-text p,
[data-theme="lavender"] .section-subtitle {
  color: #6a6a8a !important;
}

[data-theme="lavender"] .hero-card,
[data-theme="lavender"] .product-card,
[data-theme="lavender"] .about-item,
[data-theme="lavender"] .info-block,
[data-theme="lavender"] .auth-block,
[data-theme="lavender"] .cart-item,
[data-theme="lavender"] .cart-summary {
  background: #f8f8ff !important;
  border-color: #d8d8f0 !important;
  color: #2d2d4d !important;
}

[data-theme="lavender"] .product-card h3,
[data-theme="lavender"] .auth-block h3 {
  color: #2d2d4d !important;
}

[data-theme="lavender"] .footer {
  background: #e6e6fa;
  border-top-color: #d0d0e8;
}

[data-theme="lavender"] .footer p {
  color: #4a4a6a;
}

[data-theme="lavender"] #auth {
  background: #e6e6fa;
}

[data-theme="lavender"] .profile-info-simple p,
[data-theme="lavender"] .profile-info-simple span {
  color: #2d2d4d;
}

[data-theme="lavender"] .profile-info-simple strong {
  color: #6a6a8a;
}

/* Admin stats for lavender */
[data-theme="lavender"] .admin-stat-card,
[data-theme="lavender"] .admin-stat-popular,
[data-theme="lavender"] .admin-promo-box,
[data-theme="lavender"] .admin-section {
  background: #f8f8ff !important;
  border-color: #d8d8f0 !important;
}

[data-theme="lavender"] .admin-table th,
[data-theme="lavender"] .admin-table td {
  border-bottom-color: #d8d8f0;
  color: #2d2d4d;
}

[data-theme="lavender"] .admin-stat-value {
  color: #7b68ee;
}

[data-theme="lavender"] .admin-stat-label {
  color: #6a6a8a;
}

/* ============================================
   ORDER STATUS STYLES
   ============================================ */

.order-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.status-pending {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.status-sent {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-confirmed {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-rejected {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.admin-status-select {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #374151;
  background: #1a1a1a;
  color: #e5e5e5;
  font-size: 12px;
  cursor: pointer;
  margin-right: 6px;
}

.admin-status-select:hover {
  border-color: #2d27db;
}

/* ============================================
   ORDER DETAILS MODAL
   ============================================ */

.order-details-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.order-details-content {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 16px;
  padding: 32px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  color: #e5e5e5;
}

.order-details-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
}

.order-details-close:hover {
  color: #e5e5e5;
}

.order-details-content h3 {
  margin: 0 0 16px;
  font-size: 24px;
  color: #e5e5e5;
}

.order-details-content h4 {
  margin: 16px 0 8px;
  font-size: 16px;
  color: #e5e5e5;
}

.order-details-content p {
  margin: 8px 0;
  font-size: 14px;
  color: #d1d5db;
}

.order-details-content hr {
  border: none;
  border-top: 1px solid #333;
  margin: 16px 0;
}

.order-items-list {
  list-style: none;
  padding: 0;
  margin: 8px 0;
}

.order-items-list li {
  padding: 8px 0;
  border-bottom: 1px solid #262626;
  font-size: 14px;
  color: #d1d5db;
}

.order-items-list li:last-child {
  border-bottom: none;
}

.order-total {
  font-size: 18px;
  color: #2d27db;
  margin-top: 16px;
}

/* Theme overrides for order modal */
[data-theme="white"] .order-details-content {
  background: #ffffff;
  border-color: #e5e7eb;
  color: #1f2937;
}

[data-theme="white"] .order-details-content h3,
[data-theme="white"] .order-details-content h4 {
  color: #1f2937;
}

[data-theme="white"] .order-details-content p,
[data-theme="white"] .order-items-list li {
  color: #4b5563;
}

[data-theme="white"] .order-details-content hr {
  border-top-color: #e5e7eb;
}

[data-theme="white"] .order-details-close {
  color: #6b7280;
}

[data-theme="white"] .order-details-close:hover {
  color: #1f2937;
}

[data-theme="lavender"] .order-details-content {
  background: #f5f5ff;
  border-color: #d8d8f0;
  color: #2d2d4d;
}

[data-theme="lavender"] .order-details-content h3,
[data-theme="lavender"] .order-details-content h4 {
  color: #2d2d4d;
}

[data-theme="lavender"] .order-details-content p,
[data-theme="lavender"] .order-items-list li {
  color: #4a4a6a;
}

[data-theme="lavender"] .order-details-content hr {
  border-top-color: #d8d8f0;
}

[data-theme="lavender"] .order-details-close {
  color: #7b68ee;
}

[data-theme="lavender"] .order-details-close:hover {
  color: #2d2d4d;
}

/* ============================================
   ADMIN ADD ORDER FORM
   ============================================ */

.admin-add-order-form {
  background: #1f1f1f;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
}

.admin-add-order-form form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: #9ca3af;
}

.form-group input,
.form-group textarea {
  padding: 10px 14px;
  border: 1px solid #333;
  border-radius: 8px;
  background: #1a1a1a;
  color: #e5e5e5;
  font-size: 14px;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2d27db;
}

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

.admin-form-message {
  margin-top: 12px;
  font-size: 14px;
  text-align: center;
}

.admin-form-message.success {
  color: #22c55e;
}

.admin-form-message.error {
  color: #ef4444;
}

/* White theme */
[data-theme="white"] .admin-add-order-form {
  background: #f9fafb;
  border-color: #e5e7eb;
}

[data-theme="white"] .form-group input,
[data-theme="white"] .form-group textarea {
  background: #ffffff;
  border-color: #d1d5db;
  color: #1f2937;
}

[data-theme="white"] .form-group label {
  color: #6b7280;
}

/* Lavender theme */
[data-theme="lavender"] .admin-add-order-form {
  background: #f5f5ff;
  border-color: #d8d8f0;
}

[data-theme="lavender"] .form-group input,
[data-theme="lavender"] .form-group textarea {
  background: #ffffff;
  border-color: #d8d8f0;
  color: #2d2d4d;
}

[data-theme="lavender"] .form-group label {
  color: #7b68ee;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */

.cart-toast-notification {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #22c55e;
  color: white;
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: none;
  white-space: nowrap;
}

.cart-toast-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Мобільна версія */
@media (max-width: 768px) {
  .cart-toast-notification {
    bottom: 100px;
    font-size: 15px;
    padding: 14px 28px;
  }
}

/* Темні теми */
[data-theme="dark"] .cart-toast-notification,
[data-theme="gray"] .cart-toast-notification {
  background: #22c55e;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.4);
}

[data-theme="white"] .cart-toast-notification {
  background: #16a34a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
