* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --primary-solid: #667eea;
  --primary-dark: #5568d3;
  --secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --background: #f8fafc;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-light: #64748b;
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 16px;
  --radius-sm: 8px;
}

/* Темная тема */
[data-theme="dark"] {
  --primary: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --primary-solid: #8b5cf6;
  --primary-dark: #7c3aed;
  --secondary: linear-gradient(135deg, #f472b6 0%, #fb7185 100%);
  --success: #34d399;
  --danger: #f87171;
  --warning: #fbbf24;
  --background: #000000;
  --card-bg: #0a0a0a;
  --border: #1a1a1a;
  --text: #ffffff;
  --text-light: #a0a0a0;
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.8), 0 1px 2px 0 rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.9), 0 4px 6px -2px rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] body {
  background: #000000 !important;
  color: #ffffff !important;
}

/* Секции поиска и фильтров */
[data-theme="dark"] .search-section,
[data-theme="dark"] .filters {
  background: #0a0a0a;
  border-bottom-color: #1a1a1a;
}

/* Все инпуты и селекты */
[data-theme="dark"] .search-section input,
[data-theme="dark"] .filter-group select,
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .promo-section input {
  background: #000000 !important;
  border-color: #1a1a1a !important;
  color: #ffffff !important;
}

[data-theme="dark"] .search-section input::placeholder,
[data-theme="dark"] .form-group input::placeholder {
  color: #666666;
}

/* Карточки товаров */
[data-theme="dark"] .product-card {
  background: #0a0a0a !important;
  border-color: #1a1a1a;
}

[data-theme="dark"] .product-card:hover {
  background: #111111 !important;
  border-color: #8b5cf6;
}

[data-theme="dark"] .product-brand,
[data-theme="dark"] .product-flavor,
[data-theme="dark"] .product-volume {
  color: #ffffff;
}

[data-theme="dark"] .product-flavor,
[data-theme="dark"] .product-volume {
  color: #a0a0a0;
}

/* Модальные окна */
[data-theme="dark"] .modal-content {
  background: #0a0a0a !important;
}

[data-theme="dark"] .modal-header {
  background: #0a0a0a !important;
  border-bottom-color: #1a1a1a;
}

[data-theme="dark"] .modal-header h2 {
  color: #ffffff;
}

/* Корзина */
[data-theme="dark"] .cart-total {
  background: #000000 !important;
  border-top-color: #1a1a1a;
}

[data-theme="dark"] .cart-item {
  background: #000000 !important;
  color: #ffffff;
}

[data-theme="dark"] .cart-item:hover {
  background: #111111 !important;
}

[data-theme="dark"] .cart-item-name {
  color: #ffffff;
}

[data-theme="dark"] .cart-item-details {
  color: #a0a0a0;
}

[data-theme="dark"] .quantity-controls {
  background: #0a0a0a;
}

[data-theme="dark"] .quantity-value {
  color: #ffffff;
}

/* Формы и радио кнопки */
[data-theme="dark"] .radio-label {
  background: #000000 !important;
  border-color: #1a1a1a;
  color: #ffffff;
}

[data-theme="dark"] .radio-label:hover {
  background: #111111 !important;
  border-color: #8b5cf6;
}

[data-theme="dark"] .radio-label:has(input:checked) {
  background: rgba(139, 92, 246, 0.15) !important;
  border-color: #8b5cf6;
}

[data-theme="dark"] .radio-label span {
  color: #ffffff;
}

/* Info box */
[data-theme="dark"] .info-box {
  background: rgba(139, 92, 246, 0.15);
  border-left-color: #8b5cf6;
  color: #ffffff;
}

/* Close button */
[data-theme="dark"] .close-btn {
  background: #1a1a1a;
  color: #a0a0a0;
}

[data-theme="dark"] .close-btn:hover {
  background: #f87171;
  color: #ffffff;
}

/* Лейблы */
[data-theme="dark"] .form-group label,
[data-theme="dark"] .filter-group label,
[data-theme="dark"] .form-section h3 {
  color: #ffffff;
}

/* Empty state */
[data-theme="dark"] .empty-state-text {
  color: #a0a0a0;
}

/* Total lines */
[data-theme="dark"] .total-line {
  color: #ffffff;
}

/* Loading */
[data-theme="dark"] .loading {
  color: #a0a0a0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.app {
  max-width: 100%;
  padding-bottom: env(safe-area-inset-bottom, 80px);
  min-height: 100vh;
}

/* === HEADER === */
.header {
  background: var(--primary);
  color: white;
  padding: 24px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header h1 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
}

.cart-button {
  position: relative;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cart-button:hover {
  transform: scale(1.1) rotate(5deg);
  background: rgba(255, 255, 255, 0.35);
}

.cart-button:active {
  transform: scale(0.95);
}

.theme-toggle {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(-15deg);
  background: rgba(255, 255, 255, 0.35);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-icon {
  transition: transform 0.3s ease;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger);
  color: white;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
  animation: bounce 0.5s ease;
}

@keyframes bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* === SEARCH === */
.search-section {
  padding: 20px;
  background: white;
  border-bottom: 1px solid var(--border);
}

.search-section input {
  width: 100%;
  padding: 14px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 16px;
  transition: all 0.3s ease;
  background: var(--background);
}

.search-section input:focus {
  outline: none;
  border-color: var(--primary-solid);
  background: white;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.search-section input::placeholder {
  color: var(--text-light);
}

/* === FILTERS === */
.filters {
  padding: 20px;
  background: white;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.filter-group select {
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text);
}

.filter-group select:focus {
  outline: none;
  border-color: var(--primary-solid);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* === PRODUCTS GRID === */
.products-grid {
  padding: 24px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}

.product-card {
  background: white;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-solid);
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-image {
  width: 100%;
  height: 130px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.product-image::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.product-type {
  display: inline-block;
  padding: 6px 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-brand {
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 6px;
  color: var(--text);
}

.product-flavor {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 6px;
}

.product-volume {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.product-price {
  font-size: 20px;
  font-weight: 800;
  background: var(--primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.add-to-cart {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.add-to-cart:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.add-to-cart:active {
  transform: scale(0.95);
}

.add-to-cart.in-cart {
  background: var(--success);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* === MODAL === */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: 24px;
  width: 92%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
  border-radius: 24px 24px 0 0;
}

.modal-header h2 {
  font-size: 24px;
  font-weight: 800;
}

.close-btn {
  background: var(--background);
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close-btn:hover {
  background: var(--danger);
  color: white;
  transform: rotate(90deg);
}

/* === CART === */
.cart-items {
  padding: 20px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--background);
  border-radius: var(--radius);
  margin-bottom: 12px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.cart-item:hover {
  border-color: var(--primary-solid);
  transform: translateX(4px);
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: 700;
  margin-bottom: 4px;
  font-size: 16px;
}

.cart-item-details {
  font-size: 13px;
  color: var(--text-light);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border-radius: var(--radius-sm);
  padding: 6px;
  box-shadow: var(--shadow);
}

.quantity-btn {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-btn:hover {
  transform: scale(1.1);
}

.quantity-btn:active {
  transform: scale(0.9);
}

.quantity-value {
  font-weight: 700;
  min-width: 28px;
  text-align: center;
  font-size: 16px;
}

.cart-item-price {
  font-weight: 800;
  background: var(--primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 18px;
  min-width: 80px;
  text-align: right;
}

.remove-btn {
  background: var(--danger);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.remove-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.cart-total {
  padding: 24px;
  border-top: 2px solid var(--border);
  background: var(--background);
}

.promo-section {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.promo-section input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
}

.promo-section input:focus {
  outline: none;
  border-color: var(--primary-solid);
}

.promo-section button {
  padding: 12px 24px;
  background: var(--secondary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.promo-section button:hover {
  transform: scale(1.05);
}

.total-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 16px;
}

.total-final {
  font-size: 24px;
  font-weight: 800;
  padding-top: 16px;
  border-top: 2px solid var(--border);
  background: var(--primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.checkout-btn {
  width: 100%;
  padding: 18px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 16px;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.5);
}

.checkout-btn:active {
  transform: translateY(0);
}

/* === CHECKOUT FORM === */
.checkout-form {
  padding: 24px;
}

.form-section {
  margin-bottom: 28px;
}

.form-section h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
}

.radio-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.radio-label {
  flex: 1;
  min-width: 140px;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
}

.radio-label:hover {
  border-color: var(--primary-solid);
  background: rgba(102, 126, 234, 0.05);
}

.radio-label:has(input:checked) {
  border-color: var(--primary-solid);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.radio-label input {
  width: 20px;
  height: 20px;
}

.radio-label span {
  font-weight: 600;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-solid);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.info-box {
  padding: 14px 18px;
  background: rgba(102, 126, 234, 0.1);
  border-left: 4px solid var(--primary-solid);
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-top: 12px;
}

.submit-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 24px;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5);
}

/* === UTILITY === */
.loading {
  text-align: center;
  padding: 60px 20px;
  font-size: 18px;
  color: var(--text-light);
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state-icon {
  font-size: 72px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-light);
}

/* === RESPONSIVE === */
@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
    padding: 20px 16px;
  }

  .header h1 {
    font-size: 24px;
  }

  .cart-button {
    width: 52px;
    height: 52px;
  }

  .modal-content {
    width: 96%;
    border-radius: 20px;
  }
}

/* === PRODUCT MODAL === */
.product-modal .modal-content {
  max-width: 500px;
  padding: 0;
}

.product-modal-content {
  display: flex;
  flex-direction: column;
}

.product-modal-body {
  padding: 24px;
  max-height: 70vh;
  overflow-y: auto;
}

.product-modal-image {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.product-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.product-modal-info {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border);
}

.product-modal-type {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(102, 126, 234, 0.1);
  color: var(--primary-solid);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.product-modal-info h3 {
  font-size: 24px;
  font-weight: 900;
  margin: 12px 0;
  color: var(--text);
}

.product-modal-volume {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.product-modal-price-display {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
}

.product-modal-base-price {
  font-size: 18px;
  color: var(--text-light);
  text-decoration: line-through;
  display: none;
}

.product-modal-base-price.has-markup {
  display: inline-block;
}

.product-modal-final-price {
  font-size: 32px;
  font-weight: 900;
  color: var(--primary-solid);
}

/* === PRODUCT VARIANTS === */
.product-variants {
  margin-bottom: 24px;
}

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

.variant-group label {
  display: block;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
  color: var(--text);
}

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

.variant-btn {
  flex: 1;
  min-width: 100px;
  padding: 12px 20px;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.variant-btn:hover {
  border-color: var(--primary-solid);
  background: rgba(102, 126, 234, 0.05);
}

.variant-btn.active {
  background: var(--primary-solid);
  color: white;
  border-color: var(--primary-solid);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.variant-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: var(--bg-secondary);
  border-color: var(--border);
}

/* === QUANTITY CONTROLS LARGE === */
.product-modal-quantity {
  margin-bottom: 24px;
}

.product-modal-quantity label {
  display: block;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
  color: var(--text);
}

.quantity-controls-large {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  max-width: 200px;
  margin: 0 auto;
}

.quantity-btn-large {
  width: 48px;
  height: 48px;
  background: var(--primary-solid);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.quantity-btn-large:hover {
  background: #5568d3;
  transform: scale(1.05);
}

.quantity-btn-large:active {
  transform: scale(0.95);
}

.quantity-input-large {
  flex: 1;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  border: none;
  background: transparent;
  color: var(--text);
  width: 60px;
}

.quantity-input-large:focus {
  outline: none;
}

.stock-info-modal {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
}

.stock-info-modal.low-stock {
  color: #f59e0b;
  font-weight: 700;
}

/* === ADD TO CART LARGE BUTTON === */
.add-to-cart-large {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.add-to-cart-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5);
}

.add-to-cart-large:active {
  transform: translateY(0);
}

.add-to-cart-large:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #94a3b8;
}

/* === RESPONSIVE FOR MODAL === */
@media (max-width: 480px) {
  .product-modal-content {
    width: 100%;
    max-height: 90vh;
  }

  .product-modal-body {
    max-height: 75vh;
  }

  .product-modal-image {
    height: 160px;
    font-size: 60px;
  }

  .product-modal-info h3 {
    font-size: 20px;
  }

  .product-modal-final-price {
    font-size: 28px;
  }

  .variant-btn {
    min-width: 80px;
    padding: 10px 16px;
    font-size: 14px;
  }

  .quantity-controls-large {
    max-width: 180px;
  }

  .quantity-btn-large {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
}

/* === REMOVE + BUTTON FROM PRODUCT CARDS === */
.product-card .add-to-cart {
  display: none;
}

.product-card {
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(102, 126, 234, 0.25);
}

/* === CART ITEM VARIANTS === */
.cart-item-variants {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
  font-style: italic;
}
