/* Shop Styles - Cyberpunk Theme Extension */

/* ===== NAVIGATION HEADER ===== */
.nav-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.nav-tab {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 24px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.nav-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-neon);
  opacity: 0;
  transition: opacity 0.3s;
}

.nav-tab:hover,
.nav-tab.active {
  background: rgba(0, 245, 255, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.2);
}

.nav-tab:hover::before,
.nav-tab.active::before {
  opacity: 1;
}

/* Cart icon in header */
.cart-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 20px;
  height: 20px;
  background: var(--accent-magenta);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 0 10px var(--accent-magenta);
  animation: pulse 2s infinite;
}

.cart-badge.empty {
  display: none;
}

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

/* ===== SHOP FILTERS ===== */
.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
  padding: 20px;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 150px;
}

.filter-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.filter-select,
.filter-input {
  padding: 10px 14px;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all 0.3s;
  outline: none;
  height: 42px;
  box-sizing: border-box;
}

.filter-select:focus,
.filter-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.2);
}

.filter-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.search-wrapper {
  flex: 1;
  min-width: 200px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.search-wrapper .filter-input {
  width: 100%;
  padding-left: 40px;
}

.search-icon {
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
}

/* Filter toggle button - hidden on desktop */
.filter-toggle-btn {
  display: none !important;
}

@media (max-width: 768px) {
  .filter-toggle-btn {
    display: flex !important;
  }
}

/* Active filter tags */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  align-items: center;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(0, 245, 255, 0.15);
  border: 1px solid var(--accent-cyan);
  border-radius: 16px;
  color: var(--accent-cyan);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-tag:hover {
  background: rgba(0, 245, 255, 0.25);
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.3);
}

.filter-tag .tag-close {
  font-size: 1rem;
  line-height: 1;
  opacity: 0.7;
}

.filter-tag:hover .tag-close {
  opacity: 1;
}

.filter-tag-clear {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-secondary);
}

.filter-tag-clear:hover {
  border-color: var(--accent-magenta);
  color: var(--accent-magenta);
  background: rgba(255, 0, 170, 0.1);
  box-shadow: none;
}

/* ===== PRODUCT GRID ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

/* ===== PRODUCT CARD ===== */
.product-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
  animation: cardAppear 0.6s ease-out backwards;
  display: flex;
  flex-direction: column;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-neon);
  opacity: 0;
  transition: opacity 0.3s;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 245, 255, 0.3);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(0, 245, 255, 0.1);
}

.product-card:hover::before {
  opacity: 1;
}

.product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-secondary);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  background: rgba(0, 245, 255, 0.9);
  color: var(--bg-primary);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
}

.product-badge.sale {
  background: var(--accent-magenta);
  color: white;
}

.product-badge.out-of-stock {
  background: rgba(136, 136, 160, 0.9);
}

.product-info {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-category {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.product-name {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.price-current {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-magenta);
}

.price-old {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: line-through;
}

.product-stock {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.product-stock.in-stock {
  color: #4ade80;
}

.product-stock.low-stock {
  color: #fbbf24;
}

.product-stock.out-of-stock {
  color: #f87171;
}

/* Add to cart button on card */
.add-to-cart-btn {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--accent-cyan);
  border-radius: 8px;
  color: var(--accent-cyan);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  margin-top: auto;
}

.add-to-cart-btn:hover:not(:disabled) {
  background: var(--accent-cyan);
  color: var(--bg-primary);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.4);
}

.add-to-cart-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ===== PRODUCT PAGE ===== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 1100px;
  margin: 0 auto;
}

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

.gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

/* Gallery navigation */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10;
}

.gallery-main:hover .gallery-nav {
  opacity: 1;
}

.gallery-nav:hover {
  background: rgba(0, 245, 255, 0.3);
  border-color: var(--accent-cyan);
}

.gallery-prev {
  left: 12px;
}

.gallery-next {
  right: 12px;
}

.gallery-nav:disabled {
  opacity: 0.3 !important;
  cursor: not-allowed;
}

.gallery-counter {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-family: var(--font-display);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-main:hover .gallery-counter {
  opacity: 1;
}

/* Mobile: always show navigation */
@media (max-width: 768px) {
  .gallery-nav {
    opacity: 1;
    width: 40px;
    height: 40px;
  }

  .gallery-prev {
    left: 8px;
  }

  .gallery-next {
    right: 8px;
  }

  .gallery-counter {
    opacity: 1;
  }
}

.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, 60px);
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-cyan) transparent;
}

.gallery-thumbnails::-webkit-scrollbar {
  width: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
  background: transparent;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
  background: var(--accent-cyan);
  border-radius: 3px;
}

.gallery-thumb {
  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s;
  box-sizing: border-box;
}

.gallery-thumb:hover,
.gallery-thumb.active {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.3);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-details {
  display: flex;
  flex-direction: column;
}

.product-details .product-category {
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.product-details .product-name {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  -webkit-line-clamp: unset;
}

.product-details .product-description {
  font-size: 1rem;
  margin-bottom: 24px;
  -webkit-line-clamp: unset;
}

.product-details .product-price {
  font-size: 2rem;
  margin-bottom: 24px;
}

.product-details .price-current {
  font-size: 2rem;
}

/* Variant selector */
.variant-selector {
  margin-bottom: 24px;
}

.variant-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.variant-option {
  padding: 10px 20px;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
}

.variant-option:hover,
.variant-option.selected {
  background: rgba(0, 245, 255, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.variant-option.out-of-stock {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Variant description */
.variant-description {
  margin-top: 20px;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: rgba(0, 245, 255, 0.08);
  border: 1px solid rgba(0, 245, 255, 0.2);
  border-left: 3px solid var(--accent-cyan);
  border-radius: 0 12px 12px 0;
  position: relative;
}

.variant-description::before {
  content: 'ℹ️ О варианте';
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.variant-description p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-primary);
}

/* Quantity selector */
.quantity-selector {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 24px;
}

.quantity-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.quantity-controls {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.qty-btn {
  width: 44px;
  height: 44px;
  background: var(--bg-secondary);
  border: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s;
}

.qty-btn:hover:not(:disabled) {
  background: var(--accent-cyan);
  color: var(--bg-primary);
}

.qty-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.qty-value {
  width: 50px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
}

/* Primary add to cart */
.btn-primary {
  padding: 16px 40px;
  background: var(--accent-cyan);
  border: none;
  border-radius: 8px;
  color: var(--bg-primary);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-magenta);
  box-shadow: 0 0 30px rgba(255, 0, 170, 0.5);
  transform: translateY(-2px);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ===== CART ===== */
.cart-container {
  max-width: 900px;
  margin: 0 auto;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.cart-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item-image {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.cart-item-name {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.cart-item-variant {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.cart-item-stock {
  font-size: 0.8rem;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.cart-item-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent-magenta);
  margin-top: auto;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
}

.remove-item {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  transition: color 0.3s;
}

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

/* Cart summary */
.cart-summary {
  padding: 30px;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-summary h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-row.total {
  border-bottom: none;
  margin-top: 10px;
  font-size: 1.2rem;
  font-weight: 700;
}

.summary-row.total .value {
  color: var(--accent-magenta);
  font-family: var(--font-display);
}

/* ===== CHECKOUT FORM ===== */
.checkout-form {
  margin-top: 40px;
  padding: 30px;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.checkout-form h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 24px;
  color: var(--text-primary);
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-label .required {
  color: var(--accent-magenta);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s;
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.2);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Empty cart */
.empty-cart {
  text-align: center;
  padding: 80px 20px;
}

.empty-cart-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
  color: var(--text-secondary);
  opacity: 0.3;
}

.empty-cart h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.empty-cart p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.btn-secondary {
  display: inline-block;
  padding: 14px 32px;
  background: transparent;
  border: 1px solid var(--accent-cyan);
  border-radius: 8px;
  color: var(--accent-cyan);
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: var(--accent-cyan);
  color: var(--bg-primary);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.4);
}

/* Order success */
.order-success {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid rgba(0, 245, 255, 0.3);
}

.order-success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  color: #4ade80;
}

.order-success h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.order-success p {
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.order-number {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--accent-cyan);
  margin: 20px 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Mobile: reorder product details so action items come before description */
  .product-details {
    display: flex;
    flex-direction: column;
  }

  .product-details .product-category { order: 1; }
  .product-details .product-name { order: 2; }
  .product-details .product-price { order: 3; margin-bottom: 16px; }
  .product-details .variant-selector { order: 4; }
  .product-details .variant-description { order: 5; }
  .product-details .product-stock { order: 6; }
  .product-details .quantity-selector { order: 7; }
  .product-details .btn-primary { order: 8; }
  .product-details #added-notification { order: 9; }
  .product-details .product-description {
    order: 10;
    margin-top: 24px;
    margin-bottom: 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .cart-item {
    flex-direction: column;
  }

  .cart-item-image {
    width: 100%;
    height: 200px;
  }

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

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .shop-filters {
    flex-direction: column;
    padding: 12px;
    gap: 12px;
  }

  /* Mobile: show only search by default */
  .shop-filters .search-wrapper {
    order: 1;
    min-width: 100%;
  }

  .shop-filters .filter-toggle-btn {
    order: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
  }

  .shop-filters .filter-toggle-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
  }

  .shop-filters .filter-toggle-btn.active {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
  }

  .shop-filters .filter-toggle-btn svg {
    transition: transform 0.2s;
  }

  .shop-filters .filter-toggle-btn.active svg {
    transform: rotate(180deg);
  }

  /* Hide filter groups by default on mobile */
  .shop-filters .filter-group {
    order: 3;
    width: 100%;
    display: none;
  }

  .shop-filters.filters-open .filter-group {
    display: flex;
  }

  /* Price filters full width on mobile */
  .shop-filters .filter-group:has(#min-price),
  .shop-filters .filter-group:has(#max-price) {
    width: 100% !important;
    min-width: 100% !important;
  }

  .shop-filters .filter-group .filter-input {
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .nav-tabs {
    gap: 10px;
  }

  .nav-tab {
    padding: 10px 16px;
    font-size: 0.8rem;
  }

}

/* ===== PREORDER STYLES ===== */
/* Override out-of-stock styles for preorder variants - make them look available */
.variant-option.preorder {
  opacity: 1 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  border-color: var(--accent-yellow, #fbbf24);
  color: var(--accent-yellow, #fbbf24);
  background: rgba(251, 191, 36, 0.1);
}

.variant-option.preorder:hover {
  background: rgba(251, 191, 36, 0.2);
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
}

.variant-option.preorder.selected {
  background: rgba(251, 191, 36, 0.25);
  border-color: var(--accent-yellow, #fbbf24);
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
}

.product-stock.preorder {
  color: var(--accent-yellow, #fbbf24);
}

.btn-primary.preorder-btn {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
}

.btn-primary.preorder-btn:hover {
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.6);
}

.cart-item.preorder-item {
  border-color: rgba(251, 191, 36, 0.3);
}

.cart-item-image {
  position: relative;
}

.preorder-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cart-item-preorder-note {
  color: var(--accent-yellow, #fbbf24);
  font-size: 0.8rem;
  margin-top: 4px;
}

/* ===== MAIN NAVIGATION ===== */
.logo-link {
  text-decoration: none;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 18px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-neon);
  opacity: 0;
  transition: opacity 0.3s;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(0, 245, 255, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.15);
}

.nav-link:hover::before,
.nav-link.active::before {
  opacity: 1;
}

.nav-link.cart-link {
  position: relative;
}

.nav-link .cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  background: var(--accent-magenta);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 0 8px var(--accent-magenta);
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  margin-bottom: 30px;
}

.breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-cyan);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.breadcrumb-link:hover {
  color: var(--accent-magenta);
}

.breadcrumb-link svg {
  transition: transform 0.3s;
}

.breadcrumb-link:hover svg {
  transform: translateX(-4px);
}

/* ===== FOOTER ===== */
.footer {
  margin-top: 80px;
  padding: 40px 0 20px;
  background: var(--bg-card);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent-cyan);
  letter-spacing: 0.1em;
}

.footer-desc {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #c8c8d8;
  line-height: 1.5;
}

.footer-legal {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #c0c0d0;
}

.footer p {
  color: #c8c8d8;
}

.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

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

.footer-contact {
  text-align: right;
}

.footer-contact .telegram-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-cyan);
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s;
}

.footer-contact .telegram-link:hover {
  color: var(--accent-magenta);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: #c0c0d0;
}

/* ===== RESPONSIVE NAVIGATION ===== */
@media (max-width: 768px) {
  .main-nav {
    gap: 6px;
  }

  .nav-link {
    padding: 8px 12px;
    font-size: 0.75rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-contact {
    text-align: center;
  }
}

/* ===== RELATED PRODUCTS SECTION ===== */
.related-products-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.related-products-section .section-title {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.related-products-section .title-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.related-products-section .title-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-cyan), transparent);
}

.related-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Desktop: show only 4 products (hide 5th and 6th) */
.related-products-grid > :nth-child(n+5) {
  display: none;
}

/* Skeleton loader for related products */
.related-skeleton-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.related-skeleton-card .skeleton-image {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(90deg, var(--bg-secondary) 25%, rgba(255, 255, 255, 0.05) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
}

.related-skeleton-card .skeleton-info {
  padding: 12px;
}

.related-skeleton-card .skeleton-title {
  height: 14px;
  background: linear-gradient(90deg, var(--bg-secondary) 25%, rgba(255, 255, 255, 0.05) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 8px;
}

.related-skeleton-card .skeleton-price {
  height: 18px;
  width: 60%;
  background: linear-gradient(90deg, var(--bg-secondary) 25%, rgba(255, 255, 255, 0.05) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: 4px;
}

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

/* Related product cards - smaller version */
.related-product-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  animation: cardAppear 0.6s ease-out backwards;
}

.related-product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-neon);
  opacity: 0;
  transition: opacity 0.3s;
}

.related-product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 245, 255, 0.3);
  box-shadow:
    0 15px 30px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(0, 245, 255, 0.1);
}

.related-product-card:hover::before {
  opacity: 1;
}

.related-product-card .product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-secondary);
}

.related-product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.related-product-card .product-info {
  padding: 12px;
}

.related-product-card .product-name {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-product-card .product-price {
  margin-bottom: 6px;
}

.related-product-card .price-current {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--accent-magenta);
}

.related-product-card .product-stock {
  font-size: 0.75rem;
}

.related-product-card .product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  background: rgba(0, 245, 255, 0.9);
  color: var(--bg-primary);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 3px;
}

/* Responsive related products */
@media (max-width: 1024px) and (min-width: 769px) {
  .related-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Tablet: show all 6 products */
  .related-products-grid > :nth-child(n+5) {
    display: block;
  }
}

@media (max-width: 768px) {
  .related-products-section {
    margin-top: 40px;
    padding-top: 30px;
  }

  .related-products-section .title-text {
    font-size: 1.2rem;
  }

  .related-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .related-product-card .product-info {
    padding: 10px;
  }

  .related-product-card .product-name {
    font-size: 0.8rem;
  }

  .related-product-card .price-current {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .related-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* ===== RECENTLY VIEWED SECTION ===== */
.recently-viewed {
  margin-bottom: 30px;
  padding: 20px;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.recently-viewed-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.recently-viewed-header svg {
  width: 18px;
  height: 18px;
  color: var(--accent-cyan);
}

.recently-viewed-items {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-cyan) transparent;
}

.recently-viewed-items::-webkit-scrollbar {
  height: 6px;
}

.recently-viewed-items::-webkit-scrollbar-track {
  background: transparent;
}

.recently-viewed-items::-webkit-scrollbar-thumb {
  background: var(--accent-cyan);
  border-radius: 3px;
}

.recent-item {
  flex: 0 0 80px;
  cursor: pointer;
  transition: transform 0.2s;
}

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

.recent-item img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.recent-item:hover img {
  border-color: var(--accent-cyan);
}

.recent-item-name {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-top: 6px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 80px;
}

.recent-item-price {
  font-size: 0.7rem;
  color: var(--accent-magenta);
  text-align: center;
  font-weight: 600;
}

/* ===== WISHLIST BUTTON ===== */
.wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 5;
}

.wishlist-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: var(--accent-magenta);
  color: var(--accent-magenta);
  transform: scale(1.1);
}

.wishlist-btn.active {
  background: var(--accent-magenta);
  border-color: var(--accent-magenta);
  color: white;
  box-shadow: 0 0 15px rgba(255, 0, 170, 0.5);
}

.wishlist-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s;
}

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

/* Wishlist filter chip */
.wishlist-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--accent-magenta);
  border-radius: 20px;
  color: var(--accent-magenta);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
}

.wishlist-filter-chip:hover {
  background: rgba(255, 0, 170, 0.15);
}

.wishlist-filter-chip.active {
  background: var(--accent-magenta);
  color: white;
  box-shadow: 0 0 15px rgba(255, 0, 170, 0.3);
}

.wishlist-filter-chip svg {
  width: 16px;
  height: 16px;
}

.wishlist-badge {
  background: white;
  color: var(--accent-magenta);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 4px;
}

.wishlist-filter-chip.active .wishlist-badge {
  background: white;
  color: var(--accent-magenta);
}
