/* ========================================
   PYROPLZEN.CZ - Modern E-Shop Design
   ======================================== */

:root {
  /* Brand Colors */
  --primary: #10b981;
  --primary-light: #34d399;
  --primary-dark: #059669;
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --accent-2: #fbbf24;
  
  /* Backgrounds - Dark Theme (default) */
  --bg-dark: #0a0f1a;
  --bg-card: #111827;
  --bg-card-hover: #1f2937;
  --bg-elevated: #1a2332;
  --bg-glass: rgba(255, 255, 255, 0.03);
  --card: #111827;
  --bg: #0a0f1a;
  
  /* Text */
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --muted: #9ca3af;
  
  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.1);
  
  /* Effects */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(16, 185, 129, 0.15);
  
  /* Layout */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius: 16px;
  --max-width: 1400px;
  --header-height: 72px;
  
  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Logo filter for light/dark mode */
  --logo-filter: none;
  --logo-invert: 0;
}

/* ========================================
   Light Theme
   ======================================== */
[data-theme="light"] {
  /* Backgrounds - Light Theme */
  --bg-dark: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-elevated: #f8fafc;
  --bg-glass: rgba(0, 0, 0, 0.02);
  --card: #ffffff;
  --bg: #f1f5f9;
  
  /* Text - Light Theme */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --muted: #64748b;
  
  /* Borders - Light Theme */
  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-light: rgba(0, 0, 0, 0.1);
  
  /* Effects - Light Theme */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 40px rgba(16, 185, 129, 0.1);
  
  /* Logo filter for light mode */
  --logo-filter: brightness(0.2);
  --logo-invert: 0;
}

/* ========================================
   Base & Reset
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.modern-body {
  background: var(--bg-dark);
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(16, 185, 129, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(245, 158, 11, 0.05), transparent);
  color: var(--text-primary);
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Light theme body background */
[data-theme="light"] body.modern-body {
  background: var(--bg-dark);
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(16, 185, 129, 0.05), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(245, 158, 11, 0.03), transparent);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }

p {
  margin: 0 0 1em;
  color: var(--text-secondary);
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary);
}

/* ========================================
   Modern Header
   ======================================== */
.modern-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 26, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  height: var(--header-height);
  transition: background 0.3s ease;
}

/* Light theme header */
[data-theme="light"] .modern-header {
  background: rgba(248, 250, 252, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.logo-area a {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 48px;
  width: auto;
  transition: transform 0.3s var(--ease-out);
}

.logo-img:hover {
  transform: scale(1.05);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  justify-content: flex-end;
}

/* Search Form */
.search-form {
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  max-width: 320px;
  flex: 1;
}

.search-form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.search-input {
  flex: 1;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-button {
  padding: 12px 20px;
  background: var(--primary);
  color: white;
  border: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-button:hover {
  background: var(--primary-dark);
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  color: var(--text-secondary);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.main-nav a.active {
  color: var(--primary);
  background: rgba(16, 185, 129, 0.1);
}

/* Cart Chip */
.cart-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg);
  color: white;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.cart-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.cart-chip #cart-count {
  background: white;
  color: var(--primary-dark);
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}

/* ========================================
   Site Content
   ======================================== */
.site-content {
  padding: 40px 24px 80px;
  min-height: calc(100vh - var(--header-height) - 200px);
}

/* ========================================
   Secondary Navigation Bar
   ======================================== */
.nav-secondary {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.nav-secondary .btn {
  padding: 10px 20px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-secondary .btn:hover {
  background: var(--bg-glass);
  border-color: var(--border-light);
  color: var(--text-primary);
}

.nav-secondary .btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ========================================
   Filter Bar
   ======================================== */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  border: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.filter-bar select,
.filter-bar input[type="number"] {
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  transition: all 0.2s ease;
  min-width: 140px;
}

.filter-bar select:focus,
.filter-bar input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.filter-bar select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.filter-label:hover {
  background: var(--bg-glass);
  color: var(--text-primary);
}

.filter-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.filter-spacer {
  flex: 1;
}

/* ========================================
   Buttons
   ======================================== */
.btn-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}

.btn-modern:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35);
  color: white;
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #d97706);
  border: none;
  color: white;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.25);
}

.btn-accent:hover {
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.35);
  color: white;
}

/* ========================================
   Product Grid
   ======================================== */
.products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.products-count {
  color: var(--text-muted);
  font-size: 14px;
}

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.grid-4 {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Featured Sections (Novinky, Slevy)
   ======================================== */
.featured-section {
  margin-bottom: 48px;
}

.featured-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.featured-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.featured-icon {
  font-size: 1.5rem;
}

.products-count {
  color: var(--text-muted);
  font-size: 14px;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

@media (max-width: 768px) {
  .featured-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .featured-title {
    font-size: 1.4rem;
  }
}

/* ========================================
   Product Card
   ======================================== */
.product-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.4s var(--ease-out);
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-light);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.product-card .image {
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}

.product-card .image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.5s var(--ease-out);
}

.product-card:hover .image img {
  transform: scale(1.08);
}

/* Product Badges */
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.badge-new {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
}

.badge-sale {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

/* Product Text Content */
.product-card .text {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.product-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Price & Actions */
.product-card .price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.product-card .price {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.product-card .price small {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.product-card .add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.product-card .add-btn:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.product-card .card-actions {
  display: flex;
  gap: 8px;
}

.product-card .card-actions a {
  flex: 1;
  padding: 10px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  transition: all 0.2s ease;
}

.product-card .card-actions a:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-light);
}

/* ========================================
   Messages / Alerts
   ======================================== */
.shop-message {
  padding: 16px 24px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  border: 1px solid transparent;
}

.shop-message.info {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.shop-message.success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--primary-light);
}

.shop-message.warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.2);
  color: var(--accent-light);
}

/* ========================================
   Product Detail Page
   ======================================== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.product-detail .left-column {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.product-detail .left-column img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.product-detail .right-column h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.product-detail .right-column .price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 24px;
}

.product-detail table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
}

.product-detail table td {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 14px;
}

/* ========================================
   Footer
   ======================================== */
.modern-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
  margin-top: 80px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-left {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-right {
  display: flex;
  gap: 24px;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-right a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer-right a:hover {
  color: var(--primary);
}

/* ========================================
   Mini Cart Modal
   ======================================== */
.mini-cart-modal {
  position: fixed;
  right: 24px;
  top: calc(var(--header-height) + 12px);
  width: 400px;
  max-width: calc(100vw - 48px);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transform: translateY(-20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease-out);
}

.mini-cart-modal[aria-hidden="false"] {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.mini-cart-panel {
  padding: 20px;
}

.mini-cart-panel h3 {
  margin: 0 0 16px;
  font-size: 18px;
}

.mini-cart-close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 32px;
  height: 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mini-cart-close:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.mini-cart-items {
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.mini-cart-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  align-items: center;
  animation: fadeInItem 0.2s ease;
}

@keyframes fadeInItem {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mini-cart-item img {
  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.mini-cart-item .meta {
  flex: 1;
}

.mini-cart-item .meta strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.mini-cart-item .meta span {
  color: var(--text-muted);
  font-size: 13px;
}

.mini-cart-name {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}

.mini-cart-price {
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
}

.mini-cart-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

/* ========================================
   Quantity Control (shared between cart page and modal)
   ======================================== */
.qty-control {
  display: flex;
  align-items: center;
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.qty-btn:active {
  background: rgba(255, 255, 255, 0.15);
}

/* Mini cart quantity input */
.mini-cart-qty {
  width: 48px;
  height: 32px;
  padding: 4px;
  border: none;
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}

.mini-cart-qty::-webkit-outer-spin-button,
.mini-cart-qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

.mini-cart-qty:focus {
  outline: none;
  background: rgba(255, 107, 53, 0.05);
}

/* Cart page quantity input */
.cart-qty-input {
  width: 50px;
  height: 36px;
  border: none;
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text);
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  -moz-appearance: textfield;
  appearance: textfield;
}

.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
}

.cart-qty-input:focus {
  outline: none;
  background: rgba(255, 107, 53, 0.05);
}

/* Mini cart remove button */
.mini-cart-item .mini-remove {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mini-cart-item .mini-remove:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
  color: #ef4444;
}

.mini-cart-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.mini-cart-footer #mini-cart-total {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

/* ========================================
   Toast Notifications
   ======================================== */
.app-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 16px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  color: var(--text-primary);
  font-size: 14px;
  z-index: 10000;
  transition: all 0.3s var(--ease-out);
}

/* ========================================
   Animations
   ======================================== */
.flying-clone {
  position: fixed;
  z-index: 120000;
  pointer-events: none;
  transition: transform 0.6s var(--ease-out), opacity 0.4s ease;
}

.cart-row {
  transition: transform 0.25s ease, opacity 0.25s ease, background-color 0.25s ease;
}

.cart-row.row-updated {
  transform: translateX(4px);
  background-color: rgba(16, 185, 129, 0.05);
}

.cart-row.row-removed {
  opacity: 0;
  transform: translateX(100px);
}

/* Skeleton Loading */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-card-hover) 50%, var(--bg-elevated) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* Page Title */
.page-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 32px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}

.empty-state svg {
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
  opacity: 0.5;
}

.empty-state h3 {
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
  .header-controls {
    gap: 12px;
  }
  
  .main-nav {
    display: none;
  }
  
  .search-form {
    max-width: 200px;
  }
  
  .product-detail {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .product-detail .left-column {
    position: static;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }
  
  .container {
    padding: 0 16px;
  }
  
  .site-content {
    padding: 24px 16px 60px;
  }
  
  .filter-bar {
    padding: 16px;
    gap: 12px;
  }
  
  .filter-bar select,
  .filter-bar input[type="number"] {
    min-width: 100px;
    padding: 10px 12px;
  }
  
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }
  
  .product-card .text {
    padding: 16px;
  }
  
  .product-card .price {
    font-size: 20px;
  }
  
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .page-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr;
  }
  
  .search-form {
    display: none;
  }
  
  .cart-chip {
    padding: 8px 14px;
    font-size: 13px;
  }
  
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-bar select,
  .filter-bar input[type="number"] {
    width: 100%;
  }
}

/* ========================================
   Hamburger Menu
   ======================================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation */
@media (max-width: 1024px) {
  .hamburger {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 2rem;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s var(--ease-out);
  }
  
  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .nav-menu a {
    display: block;
    padding: 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.2s ease;
  }
  
  .nav-menu a:hover,
  .nav-menu a.active {
    color: var(--primary);
    padding-left: 0.5rem;
  }
  
  .cart-chip span:not(#cart-count) {
    display: none;
  }
}

/* ========================================
   Theme Toggle Switch
   ======================================== */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-secondary);
}

.theme-toggle:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  color: var(--text-primary);
  transform: scale(1.05);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.theme-toggle:hover svg {
  transform: rotate(15deg);
}

/* Sun icon (shown in dark mode) */
.theme-toggle .icon-sun {
  display: block;
}
.theme-toggle .icon-moon {
  display: none;
}

/* Moon icon (shown in light mode) */
[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}
[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

/* Light theme specific adjustments */
[data-theme="light"] .gradient-text {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .hero-firework svg {
  filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.3));
}

[data-theme="light"] .hero-firework svg line,
[data-theme="light"] .hero-firework svg circle,
[data-theme="light"] .hero-firework svg path {
  stroke: var(--primary);
  fill: var(--primary);
}

[data-theme="light"] .hero-glow {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15), transparent 70%);
}

[data-theme="light"] .about-logo {
  filter: none;
  opacity: 1;
}

[data-theme="light"] .hamburger span {
  background: var(--text-primary);
}

/* Light theme - fix white/light colored text */
[data-theme="light"] .about-notice p {
  color: var(--text-secondary);
}

[data-theme="light"] .hours-notice {
  color: var(--text-secondary);
}

[data-theme="light"] .hours-row {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .hours-row:hover {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .hours-row.highlight {
  background: rgba(16, 185, 129, 0.1);
}

[data-theme="light"] .btn-hero-secondary {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: var(--text-primary);
}

[data-theme="light"] .btn-hero-secondary:hover {
  background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .feature-card {
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .info-card {
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .cta-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

[data-theme="light"] .cta-card h2,
[data-theme="light"] .cta-card p {
  color: white;
}

[data-theme="light"] .card-label {
  color: var(--primary-dark);
}

/* Light theme - Contact page fixes */
[data-theme="light"] .contact-card,
[data-theme="light"] .contact-method,
[data-theme="light"] .notice-card,
[data-theme="light"] .hours-card,
[data-theme="light"] .map-card {
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .notice-card {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
}

[data-theme="light"] .notice-card p {
  color: var(--text-primary);
}

[data-theme="light"] .hours-item {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .hours-item:hover {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .hours-item.highlight {
  background: rgba(16, 185, 129, 0.1);
}

/* Light theme - Product cards */
[data-theme="light"] .product-card {
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .product-card .image {
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
}

/* Light theme - Mini cart */
[data-theme="light"] .mini-cart-modal {
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
}

[data-theme="light"] .mini-cart-item {
  background: var(--bg-elevated);
}

/* Light theme - Filter bar */
[data-theme="light"] .filter-bar {
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .filter-bar select,
[data-theme="light"] .filter-bar input[type="number"] {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

/* Light theme - Footer */
[data-theme="light"] .modern-footer {
  background: var(--bg-card);
}

/* Light theme - Navigation */
[data-theme="light"] .nav-menu a {
  color: var(--text-secondary);
}

[data-theme="light"] .nav-menu a:hover,
[data-theme="light"] .nav-menu a.active {
  color: var(--primary-dark);
}

/* Light theme - Search form */
[data-theme="light"] .search-form {
  background: var(--bg-elevated);
  border-color: var(--border-light);
}

[data-theme="light"] .search-input {
  color: var(--text-primary);
}

[data-theme="light"] .search-input::placeholder {
  color: var(--text-muted);
}
