* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}


html.theme-transition body,
html.theme-transition body *,
html.theme-transition body *::before,
html.theme-transition body *::after{
  transition:
    background-color .18s ease,
    color .18s ease,
    border-color .18s ease,
    fill .18s ease,
    stroke .18s ease !important;
}

html,
body{
  background: #fff;
}

html.dark,
html.dark body{
  background: #0b1020;
}

html{
  background: #fff;
  color-scheme: light;
}

html.dark{
  background: #0b1020;
  color-scheme: dark;
}

body{
  background: #fff;
}

html.dark body{
  background: #0b1020;
}

/* === Header === */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: white;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo{
  display:flex;
  align-items:center;
  gap: .85rem;
  font-weight: 800;
  text-decoration:none;
  line-height: 1;
}

.logo-icon{
  width: 2.75rem;
  height: 2.75rem;
  border-radius: .9rem;
  padding: .55rem;

  display: grid;
  place-items: center;

  background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
  box-shadow:
    0 .9rem 2rem rgba(2,6,23,.16),
    inset 0 0 0 1px rgba(255,255,255,.18);
}

.logo-icon__img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display:block;
  /* якщо png темний/неідеальний — прибери filter */
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.18));
}

.logo-text{
  font-size: 1.65rem;      /* трохи більше */
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-badge{
  margin-left: .2rem;
  padding: .32rem .6rem;
  border-radius: 9999px;
  font-size: .78rem;
  font-weight: 650;

  background: linear-gradient(90deg, #ede9fe, #ddd6fe);
  color: #4f46e5;
  box-shadow: inset 0 0 0 1px rgba(79,70,229,.12);
}

/* Navigation Links */
.nav-links {
  display: flex;
  gap: 0.5rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: #374151;
  transition: all 0.3s;
}

.nav-link:hover {
  background: #f3f4f6;
}

.nav-link.active {
  background: linear-gradient(90deg,#5b4df7,#8b3dff);
  color: white;
  font-weight: 500;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: #f3f4f6;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: background 0.3s, transform 0.2s;
}

.cart{
  position: relative;
}

.cart-badge{
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;

  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.3rem;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;

  background: linear-gradient(135deg, #ef4444, #ec4899);
  color: #fff;

  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;

  box-shadow:
    0 0.25rem 0.75rem rgba(239,68,68,0.35),
    0 0 0 0.125rem #fff;

  pointer-events: none;
  user-select: none;
}

.cart:hover {
  background: #e0e7ff;
  transform: translateY(-2px);
}

.cart-icon {
  position: absolute;
  width: 20px;
  height: 20px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* default — black */
.cart-icon--black {
  opacity: 1;
  transform: scale(1);
}

.cart-icon--white {
  opacity: 0;
  transform: scale(0.7);
}

/* dark theme */
body.dark .cart-icon--black {
  opacity: 0;
  transform: scale(0.7);
}

body.dark .cart-icon--white {
  opacity: 1;
  transform: scale(1);
}


.theme-toggle {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 44px;
  height: 44px;

  padding: 0;
  border: none;
  border-radius: 9999px;

  background: #f3f4f6;
  cursor: pointer;

  transition: background 0.3s, transform 0.2s;
}

.theme-toggle:hover {
  background: #e0e7ff;
  transform: translateY(-2px);
}

.theme-icon {
  position: absolute;
  width: 20px;
  height: 20px;

  opacity: 0;
  transform: scale(0.7) rotate(-20deg);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* За замовчуванням — місяць */
.theme-icon--moon {
  opacity: 1;
  transform: scale(1) rotate(0);
}

/* Темна тема */
body.dark .theme-icon--moon {
  opacity: 0;
  transform: scale(0.7) rotate(20deg);
}

body.dark .theme-icon--sun {
  opacity: 1;
  transform: scale(1) rotate(0);
}


/* Account Icon */
.account {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: #f3f4f6;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: background 0.3s, transform 0.2s;
}

.account:hover {
  background: #e0e7ff;
  transform: translateY(-2px);
}

.account-icon {
  position: absolute;
  width: 20px;
  height: 20px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* за замовчуванням — чорна */
.account-icon--black {
  opacity: 1;
  transform: scale(1);
}

.account-icon--white {
  opacity: 0;
  transform: scale(0.7);
}

/* dark theme */
body.dark .account-icon--black {
  opacity: 0;
  transform: scale(0.7);
}

body.dark .account-icon--white {
  opacity: 1;
  transform: scale(1);
}



/* Dark theme styles */
body.dark {
  background: #1f2937;
  color: #f9fafb;
}

body.dark .header {
  background: #111827;
  border-bottom: 1px solid #374151;
}

body.dark .nav-link {
  color: #d1d5db;
}

body.dark .nav-link.active {
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  color: white;
}

body.dark .cart,
body.dark .theme-toggle,
body.dark .account {
  background: #374151;
  color: #f9fafb;
}

body.dark .cart:hover,
body.dark .theme-toggle:hover,
body.dark .account:hover {
  background: #4b5563;
}



/* === Footer === */
.footer {
  background: #111827; /* dark gray */
  color: #d1d5db; /* gray-300 */
  padding: 3rem 0;
  font-family: sans-serif;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Company Info */
.footer-company .footer-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  margin-bottom: 1rem;
}

.footer-company .footer-text {
  font-size: 0.875rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  gap: 0.5rem;
}

.social-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1f2937; /* gray-800 */
  border-radius: 0.5rem;
  color: white;
  text-decoration: none;
  transition: background 0.3s;
}

.social-icon:hover {
  background: #374151; /* gray-700 */
}

/* Footer Sections */
.footer-section h3 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: white;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid #1f2937; /* gray-800 */
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}
