/* ============================================
   SZÍNPALETTA - Meleg, lágy színek
   ============================================ */
:root {
  --primary-orange: #FF8C42;
  --secondary-orange: #FFB366;
  --light-orange: #FFE5D4;
  --primary-blue: #4A90E2;
  --secondary-blue: #6BB6FF;
  --light-blue: #E3F2FD;
  --accent-coral: #FF6B6B;
  --accent-teal: #4ECDC4;
  --gradient-warm: linear-gradient(135deg, #FF8C42, #FFB366);
  --gradient-cool: linear-gradient(135deg, #4A90E2, #6BB6FF);
  --gradient-sunset: linear-gradient(135deg, #FF8C42, #FF6B6B, #4A90E2);
}

/* Top Info Bar */
.top-bar {
  background: var(--gradient-sunset);
  color: white;
  padding: 12px 0;
  font-size: 13px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 10px rgba(255, 140, 66, 0.2);
}

.top-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
}

.top-info {
  display: flex;
  gap: 30px;
  align-items: center;
}

.top-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  transition: all 0.3s;
}

.top-info-item:hover {
  transform: translateY(-2px);
}

.top-info-item i {
  opacity: 0.95;
  font-size: 14px;
  color: #FFE5D4;
}

.availability {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.availability-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4ECDC4;
  animation: pulse 2s infinite;
  box-shadow: 0 0 12px rgba(78, 205, 196, 0.8);
}

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

/* Navigation */
.nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(255, 140, 66, 0.15);
  position: sticky;
  top: 0;
  z-index: 10000;
  border-bottom: 3px solid transparent;
  border-image: var(--gradient-warm) 1;
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
}

.logo {
  font-size: 28px;
  font-weight: 900;
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  transition: all 0.3s;
}

.logo:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.logo i {
  font-size: 32px;
  color: #FF8C42;
  filter: drop-shadow(0 2px 8px rgba(255, 140, 66, 0.4));
}

.logo-img {
  height: 50px;
  width: auto;
  max-width: 250px;
  object-fit: contain;
  transition: all 0.3s;
  filter: drop-shadow(0 2px 8px rgba(255, 140, 66, 0.2));
}

.logo:hover .logo-img {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 12px rgba(255, 140, 66, 0.35));
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 35px;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  align-items: center;
  margin: 0;
}

.nav-links a {
  color: #2C3E50;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s;
  position: relative;
  padding: 12px 20px;
  border-radius: 12px;
}

.nav-links a:hover {
  color: #FF8C42;
  background: var(--light-orange);
  transform: translateY(-2px);
}

.nav-links a.active {
  color: white;
  background: var(--gradient-warm);
  box-shadow: 0 4px 15px rgba(255, 140, 66, 0.4);
}

.nav-links a::before {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 20px;
  right: 20px;
  height: 3px;
  background: var(--gradient-warm);
  transform: scaleX(0);
  transition: transform 0.3s;
  border-radius: 2px;
}

.nav-links a:hover::before {
  transform: scaleX(1);
}

.nav-links a.active::before {
  transform: scaleX(0);
}

/* Search Icon */
.search-icon {
  position: relative;
  cursor: pointer;
  background: var(--gradient-cool);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.search-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.45);
}

.search-icon i {
  font-size: 18px;
}

/* Cart Icon */
.cart-icon {
  position: relative;
  cursor: pointer;
  background: var(--gradient-warm);
  color: white;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: 0 6px 20px rgba(255, 140, 66, 0.4);
}

.cart-icon:hover {
  transform: translateY(-3px) rotate(5deg);
  box-shadow: 0 8px 30px rgba(255, 140, 66, 0.55);
}

.cart-icon i {
  font-size: 20px;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--accent-coral);
  color: white;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  border: 3px solid white;
  box-shadow: 0 3px 10px rgba(255, 107, 107, 0.5);
  animation: cartBadgePulse 2s infinite;
}

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

.mobile-cart-icon {
  display: none;
}

/* Cart Modal */
.cart-modal {
  position: fixed;
  top: 0;
  right: -500px;
  width: 500px;
  height: 100vh;
  background: white;
  box-shadow: -10px 0 40px rgba(255, 140, 66, 0.2);
  z-index: 2000;
  transition: right 0.4s;
  display: flex;
  flex-direction: column;
}

.cart-modal.open {
  right: 0;
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  display: none;
}

.cart-overlay.open {
  display: block;
}

.cart-header {
  padding: 30px;
  background: var(--gradient-sunset);
  color: white;
  position: relative;
}

.cart-header h2 {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 5px;
}

.cart-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: rgba(255, 255, 255, 0.25);
  color: white;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  transition: all 0.3s;
}

.cart-close:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: rotate(90deg);
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: linear-gradient(to bottom, var(--light-orange), white);
}

.cart-item {
  background: white;
  border: 2px solid var(--light-orange);
  border-radius: 16px;
  padding: 15px;
  margin-bottom: 15px;
  display: flex;
  gap: 15px;
  position: relative;
  transition: all 0.3s;
  box-shadow: 0 2px 10px rgba(255, 140, 66, 0.1);
}

.cart-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 140, 66, 0.2);
}

.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--light-orange);
}

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

.cart-item-name {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 5px;
  color: #2C3E50;
}

.cart-item-brand {
  font-size: 11px;
  color: #FF8C42;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 600;
}

.cart-item-price {
  font-size: 16px;
  font-weight: 800;
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cart-item-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.qty-btn {
  background: var(--gradient-cool);
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  transition: all 0.3s;
}

.qty-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.4);
}

.qty-display {
  font-weight: 700;
  min-width: 35px;
  text-align: center;
  color: #FF8C42;
  font-size: 16px;
}

.cart-item-remove {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--accent-coral);
  color: white;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s;
}

.cart-item-remove:hover {
  transform: scale(1.15) rotate(90deg);
  box-shadow: 0 2px 10px rgba(255, 107, 107, 0.5);
}

.installation-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  color: #4A90E2;
}

.cart-footer {
  padding: 25px;
  border-top: 3px solid var(--light-orange);
  background: linear-gradient(to top, var(--light-orange), white);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-size: 22px;
  font-weight: 900;
  color: #2C3E50;
}

.cart-total span:last-child {
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-checkout {
  background: var(--gradient-warm);
  color: white;
  width: 100%;
  padding: 18px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(255, 140, 66, 0.3);
}

.btn-checkout:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 140, 66, 0.5);
}

.empty-cart {
  text-align: center;
  padding: 60px 20px;
  color: #95a5a6;
}

.empty-cart i {
  font-size: 70px;
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.6;
  margin-bottom: 20px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: var(--gradient-warm);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 22px;
  padding: 10px;
  border-radius: 10px;
  transition: all 0.3s;
  box-shadow: 0 2px 10px rgba(255, 140, 66, 0.3);
}

.mobile-menu-toggle:hover {
  transform: scale(1.05);
}

.mobile-menu-toggle:active {
  transform: scale(0.95);
}

/* Mobile Sidebar Menu */
.mobile-sidebar {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100vh;
  background: white;
  box-shadow: 4px 0 30px rgba(255, 140, 66, 0.2);
  z-index: 10001;
  transition: left 0.4s ease;
  display: flex;
  flex-direction: column;
}

.mobile-sidebar.open {
  left: 0;
}

.mobile-sidebar-header {
  padding: 25px 20px;
  background: #397fd9;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-sidebar-logo {
  font-size: 22px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-sidebar-logo i {
  font-size: 26px;
}

.mobile-logo-text {
  color: white;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.mobile-logo-img {
  height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  display: none; /* Elrejtjük a képet */
}

.mobile-close {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s;
}

.mobile-close:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: rotate(90deg);
}

.mobile-nav-links {
  list-style: none;
  padding: 20px 0;
  flex: 1;
  overflow-y: auto;
  background: linear-gradient(to bottom, #fdfdfd, white);
}

.mobile-nav-links li {
  margin: 0;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 25px;
  color: #2C3E50;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s;
  border-left: 4px solid transparent;
}

.mobile-nav-links a i {
  width: 22px;
  text-align: center;
  opacity: 0.8;
  color: #FF8C42;
}

.mobile-nav-links a:hover {
  background: var(--light-orange);
  border-left-color: #FF8C42;
  transform: translateX(5px);
}

.mobile-nav-links a.active {
  background: linear-gradient(90deg, var(--light-orange), transparent);
  border-left-color: #FF8C42;
  color: #FF8C42;
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: none;
  transition: opacity 0.3s;
}

.mobile-overlay.open {
  display: block;
}

/* Search Modal Styles */
.new-search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  display: none;
}

.new-search-overlay.open {
  display: block;
}

.new-search-modal {
  position: fixed;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 700px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 50px rgba(255, 140, 66, 0.3);
  z-index: 9999;
  transition: top 0.4s ease;
  overflow: hidden;
}

.new-search-modal.open {
  top: 100px;
}

.new-search-header {
  padding: 25px 30px;
  background: var(--gradient-warm);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.new-search-header h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
}

.new-search-close {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s;
}

.new-search-close:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: rotate(90deg);
}

.new-search-body {
  padding: 25px 30px;
}

.new-search-input-wrapper {
  position: relative;
  margin-bottom: 20px;
}

.new-search-input-wrapper i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #FF8C42;
  font-size: 18px;
}

.new-search-input-wrapper input {
  width: 100%;
  padding: 16px 50px 16px 50px;
  border: 2px solid var(--light-orange);
  border-radius: 14px;
  font-size: 15px;
  transition: all 0.3s;
}

.new-search-input-wrapper input:focus {
  outline: none;
  border-color: #FF8C42;
  box-shadow: 0 0 0 4px rgba(255, 140, 66, 0.1);
}

.new-search-loader {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #FF8C42;
  display: none;
}

.new-search-results {
  max-height: 400px;
  overflow-y: auto;
}

.new-search-placeholder {
  text-align: center;
  padding: 40px 20px;
  color: #95a5a6;
}

.new-search-placeholder i {
  font-size: 50px;
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.5;
  margin-bottom: 15px;
}

/* Responsive Styles */

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
  .nav-inner {
    padding: 18px 25px;
    justify-content: center;
    position: relative;
  }

  .mobile-menu-toggle {
    position: absolute;
    left: 25px;
  }

  .logo {
    margin: 0 auto;
  }

  .logo-img {
    height: 45px;
    max-width: 220px;
  }

  .nav-right {
    gap: 25px;
    position: absolute;
    right: 25px;
  }

  .nav-links {
    gap: 6px;
  }

  .nav-links a {
    padding: 10px 16px;
    font-size: 14px;
  }
}

/* Medium screens */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-right {
    gap: 15px;
  }

  .logo-img {
    height: 42px;
    max-width: 200px;
  }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
  .top-bar {
    padding: 10px 0;
    z-index: 10000;
    position: relative;
  }

  .top-bar-inner {
    flex-direction: row;
    justify-content: space-between;
    gap: 15px;
    text-align: left;
    padding: 0 20px;
    flex-wrap: wrap;
  }

  .top-info {
    flex-direction: row;
    gap: 20px;
    font-size: 11px;
    flex: 1;
  }

  .top-info-item {
    font-size: 11px;
  }

  .top-info-item i {
    font-size: 11px;
  }

  .availability {
    font-size: 11px;
    padding: 5px 12px;
  }

  .mobile-menu-toggle {
    display: flex;
    position: absolute;
    left: 20px;
    z-index: 10002;
  }

  .nav-inner {
    padding: 15px 20px;
    gap: 0;
    justify-content: center;
    position: relative;
    z-index: 10000;
  }

  .logo {
    font-size: 20px;
    flex: 1;
    justify-content: center;
    margin: 0;
  }

  .logo i {
    font-size: 24px;
  }

  .logo-img {
    height: 40px;
    max-width: 180px;
  }

  .nav-right {
    display: none;
  }

  .mobile-cart-icon {
    display: flex;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
    position: absolute;
    right: 20px;
    z-index: 10002;
  }

  .mobile-logo-img {
    height: 35px;
    max-width: 160px;
    display: none;
  }

  .mobile-logo-text {
    font-size: 16px;
  }

  .cart-modal {
    width: 100%;
    right: -100%;
  }

  .cart-modal.open {
    right: 0;
  }

  .new-search-modal {
    width: 95%;
    top: -100%;
  }

  .new-search-modal.open {
    top: 80px;
  }
}

/* Small Mobile (≤480px) */
@media (max-width: 480px) {
  .top-info {
    gap: 10px;
    font-size: 10px;
  }

  .top-info-item {
    flex-direction: column;
    gap: 2px;
  }

  .availability {
    font-size: 10px;
    padding: 4px 10px;
  }

  .logo {
    font-size: 18px;
  }

  .logo i {
    font-size: 22px;
  }

  .logo-img {
    height: 35px;
    max-width: 150px;
  }

  .mobile-logo-img {
    height: 30px;
    max-width: 140px;
    display: none;
  }

  .mobile-logo-text {
    font-size: 14px;
  }

  .mobile-menu-toggle {
    font-size: 20px;
    padding: 8px;
  }

  .mobile-cart-icon {
    width: 44px;
    height: 44px;
  }
}