*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  min-height: 100vh;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  font-weight: 600;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

table {
  border-collapse: collapse;
}

/* Header styles */
/* Base Styles & Variables */
  :root {
    --color-primary: #2d2d7f;
    --color-secondary: #ff4d4d;
    --color-accent: #00e6cc;
    --color-dark: #121212;
    --color-light: #f8f9fc;
    --color-gray: #888;
    --color-gray-light: #e5e5e5;
    
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    --shadow-small: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-large: 0 8px 24px rgba(0, 0, 0, 0.12);
    
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
  }

  /* Header Container */
  .header {
    position: sticky;
    top: 0;
    width: 100%;
    background: var(--color-light);
    z-index: 100;
    box-shadow: var(--shadow-small);
    font-family: var(--font-primary);
  }

  .header-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    gap: 2rem;
  }

  /* Logo Styles */
  .logo-container {
    position: relative;
  }

  .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--color-primary);
    transition: transform var(--transition-medium);
  }

  .logo:hover {
    transform: translateY(-2px);
  }

  .logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    border-radius: 50%;
    color: white;
  }

  .logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
  }

  /* Desktop Navigation */
  .desktop-nav {
    justify-self: center;
    width: 100%;
    max-width: 800px;
  }

  .nav-list {
    display: flex;
    justify-content: space-between;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .nav-item {
    position: relative;
  }

  .nav-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--color-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
    position: relative;
  }

  .nav-link:hover {
    color: var(--color-primary);
  }

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    transition: width var(--transition-medium), left var(--transition-medium);
  }

  .nav-link:hover::after {
    width: 80%;
    left: 10%;
  }

  .nav-link.active {
    color: var(--color-primary);
    font-weight: 600;
  }

  .nav-link.active::after {
    width: 80%;
    left: 10%;
    background: var(--color-accent);
  }

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

  .cart-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--color-light);
    border: 1px solid var(--color-gray-light);
    border-radius: var(--border-radius-md);
    color: var(--color-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition-medium);
  }

  .cart-button:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
  }

  /* Mobile Toggle Button */
  .mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
  }

  .toggle-line {
    width: 100%;
    height: 2px;
    background-color: var(--color-dark);
    transition: all var(--transition-medium);
  }

  /* Mobile Menu */
  .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-light);
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform var(--transition-medium);
    overflow-y: auto;
  }

  .mobile-menu.active {
    transform: translateX(0);
  }

  .mobile-menu-container {
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    height: 100%;
  }

  .close-menu {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--color-dark);
    cursor: pointer;
    padding: 0.5rem;
  }

  .mobile-logo {
    margin: 2rem 0;
    text-align: center;
  }

  .mobile-logo a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--color-primary);
  }

  .mobile-nav {
    margin: 2rem 0;
  }

  .mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .mobile-nav-item {
    border-bottom: 1px solid var(--color-gray-light);
  }

  .mobile-nav-link {
    display: block;
    padding: 1rem 0;
    color: var(--color-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color var(--transition-fast);
  }

  .mobile-nav-link.active {
    color: var(--color-primary);
    font-weight: 600;
  }

  .mobile-actions {
    margin-top: auto;
    padding: 1rem 0;
  }

  .mobile-cart-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background var(--transition-fast);
  }

  .mobile-cart-button:hover {
    background: var(--color-secondary);
  }

  /* Responsive Styles */
  @media (max-width: 1024px) {
    .header-container {
      gap: 1rem;
    }
    
    .nav-link {
      padding: 0.5rem;
      font-size: 0.85rem;
    }
  }

  @media (max-width: 768px) {
    .header-container {
      grid-template-columns: auto auto;
    }
    
    .desktop-nav {
      display: none;
    }
    
    .mobile-toggle {
      display: flex;
    }
    
    .cart-text {
      display: none;
    }
    
    .cart-button {
      padding: 0.5rem;
    }
  }

  @media (min-width: 769px) {
    .mobile-menu {
      display: none;
    }
  }

/* Footer styles */
.footer-main {
    width: 100%;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
    color: #e6e6ff;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    overflow: hidden;
  }

  .footer-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(122, 122, 255, 0.5), transparent);
  }

  .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    position: relative;
  }

  .footer-section {
    position: relative;
  }

  .footer-section::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1.5rem;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #7373ff, transparent);
    border-radius: 3px;
  }

  .footer-heading {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ffffff;
    position: relative;
    letter-spacing: 0.5px;
  }

  .footer-text {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #b8b8d9;
  }

  .footer-contact-info {
    margin-top: 1.5rem;
  }

  .footer-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: #b8b8d9;
  }

  .footer-contact-item i {
    margin-right: 0.8rem;
    color: #7373ff;
    font-size: 1rem;
  }

  .footer-nav-list,
  .footer-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .footer-nav-item,
  .footer-category-item {
    margin-bottom: 0.8rem;
  }

  .footer-link {
    color: #b8b8d9;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
  }

  .footer-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #7373ff;
    transition: width 0.3s ease;
  }

  .footer-link:hover {
    color: #ffffff;
    transform: translateX(5px);
  }

  .footer-link:hover::before {
    width: 100%;
  }

  .footer-newsletter-form {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
  }

  .footer-newsletter-input {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    color: #b8b8d9;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
    cursor: text;
  }

  .footer-newsletter-button {
    background-color: #7373ff;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
  }

  .footer-newsletter-button:hover {
    background-color: #5c5cff;
    box-shadow: 0 0 15px rgba(115, 115, 255, 0.5);
    transform: translateY(-2px);
  }

  .footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .footer-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
  }

  .footer-social-icon i {
    color: #b8b8d9;
    font-size: 1rem;
    transition: all 0.3s ease;
  }

  .footer-social-icon:hover {
    background-color: #7373ff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(115, 115, 255, 0.4);
  }

  .footer-social-icon:hover i {
    color: #ffffff;
  }

  .footer-bottom {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 1.5rem 0;
    margin-top: 2rem;
  }

  .footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .footer-legal {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-legal-link {
    color: #9999cc;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
  }

  .footer-legal-link:hover {
    color: #ffffff;
  }

  .footer-copyright {
    color: #7777aa;
    font-size: 0.85rem;
    text-align: center;
  }

  /* Responsive Styles */
  @media (max-width: 1024px) {
    .footer-container {
      grid-template-columns: repeat(2, 1fr);
      gap: 2.5rem;
    }
  }

  @media (max-width: 768px) {
    .footer-container {
      grid-template-columns: 1fr;
      gap: 2.5rem;
      padding: 3rem 1.5rem 1.5rem;
    }

    .footer-section::after {
      width: 100px;
    }

    .footer-bottom-container {
      padding: 0 1.5rem;
    }

    .footer-legal {
      gap: 1rem;
    }
  }

  @media (max-width: 480px) {
    .footer-container {
      padding: 2.5rem 1rem 1rem;
    }

    .footer-heading {
      font-size: 1.1rem;
    }

    .footer-text, 
    .footer-contact-item, 
    .footer-link {
      font-size: 0.85rem;
    }

    .footer-legal-link,
    .footer-copyright {
      font-size: 0.8rem;
    }

    .footer-social {
      gap: 0.8rem;
    }

    .footer-social-icon {
      width: 32px;
      height: 32px;
    }
  }

/* Cookie Banner styles */
#zgoda-ciasteczek-baner {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background-color: #1a1a1a !important;
    color: #f5f5f5;
    z-index: 9999 !important;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2) !important;
    font-family: 'Roboto', 'Arial', sans-serif;
  }

  .mh-cookie-container {
    max-width: 1200px !important;
    margin: 0 auto;
    padding: 20px !important;
    display: flex !important;
    flex-direction: column;
  }

  .mh-cookie-text {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 20px !important;
  }

  .mh-privacy-link {
    color: #5d9cec;
    text-decoration: underline;
  }

  .mh-privacy-link:hover {
    color: #7fb1f5;
  }

  .mh-cookie-buttons {
    display: flex !important;
    gap: 15px;
    justify-content: flex-end;
  }

  .mh-cookie-btn {
    padding: 10px 20px !important;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
  }

  .mh-cookie-reject {
    background-color: #4a4a4a !important;
    color: #ffffff;
  }

  .mh-cookie-reject:hover {
    background-color: #616161 !important;
  }

  .mh-cookie-accept {
    background-color: #5d9cec !important;
    color: #ffffff;
  }

  .mh-cookie-accept:hover {
    background-color: #4a89dc !important;
  }

  @media (max-width: 768px) {
    .mh-cookie-container {
      padding: 15px !important;
    }
    
    .mh-cookie-buttons {
      flex-direction: column;
      width: 100% !important;
    }
    
    .mh-cookie-btn {
      width: 100% !important;
      margin-bottom: 10px !important;
    }
  }

  @media (min-width: 769px) {
    .mh-cookie-container {
      flex-direction: row !important;
      align-items: center;
      justify-content: space-between;
    }
    
    .mh-cookie-text {
      margin-bottom: 0 !important;
      margin-right: 20px;
      flex: 1;
    }
    
    .mh-cookie-buttons {
      flex-shrink: 0;
    }
  }