/* Podstawowy reset i styl ogólny */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f9f9f9;
    margin: 0;
    padding: 0 1rem;
  }
  
  /* Styl nagłówka */
  header {
    text-align: center;
    padding: 2rem 1rem;
  }
  header h1 {
    margin-bottom: 0.5rem;
  }
  header p {
    font-size: 1rem;
    color: #555;
  }
  
  /* Styl sekcji */
  section {
    margin: 2rem 0;
  }
  section h2 {
    margin-bottom: 0.5rem;
    color: #222;
  }
  .info-block {
    background: #e8f4fd;
    border-left: 4px solid #2196F3;
    padding: 1rem;
    margin-bottom: 1rem;
    color: #333;
  }
  
  /* Interaktywne elementy w sekcji */
  .interactive-item, .media-item, .cart-actions, .form-group {
    margin: 1rem 0;
    display: flex;
    align-items: center;
  }
  .interactive-item button,
  .cart-actions button,
  .form-group button {
    margin-right: 0.5rem;
  }
  .interactive-item a {
    margin-right: 0.5rem;
    color: #337ab7;
    text-decoration: none;
  }
  .interactive-item a:hover {
    text-decoration: underline;
  }
  
  /* Styl produktów e-commerce */
  .products {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }
  .product {
    background: #fff;
    border: 1px solid #ddd;
    padding: 1rem;
    flex: 1 1 200px;
    text-align: center;
    border-radius: 4px;
    transition: transform 0.2s;
  }
  .product:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  .product img {
    max-width: 100%;
    height: auto;
  }
  .product h3 {
    margin: 0.5rem 0;
  }
  .price {
    color: #555;
    margin-bottom: 0.5rem;
  }
  .add-to-cart {
    background: #4CAF50;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.3s;
  }
  .add-to-cart:hover {
    background: #45a049;
  }
  
  /* Styl koszyka i przycisku zakupu */
  .cart-actions {
    margin-top: 1rem;
    display: flex;
    align-items: center;
  }
  #cart-summary {
    margin-right: 1rem;
    font-weight: bold;
  }
  #purchase-button {
    background: #2196F3;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.3s;
  }
  #purchase-button:disabled {
    background: #b0c4de;
    cursor: not-allowed;
  }
  #purchase-button:hover:not(:disabled) {
    background: #1976D2;
  }
  
  /* Styl mediów */
  .media-item video {
    max-width: 100%;
    outline: none;
  }
  .media-item {
    display: flex;
    align-items: center;
  }
  .media-item video {
    margin-right: 0.5rem;
  }
  
  /* Styl formularzy (newsletter i wyszukiwarka) */
  .form-group {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }
  .form-group label {
    margin-right: 0.5rem;
  }
  .form-group input {
    padding: 0.3rem 0.5rem;
    margin-right: 0.5rem;
    flex: 1 1 200px;
    border: 1px solid #ccc;
    border-radius: 3px;
  }
  .form-group button {
    background: #2196F3;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.3s;
  }
  .form-group button:hover {
    background: #1976D2;
  }
  
  /* Tooltip */
  .tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
    /* Ustawiamy margines, aby ikona nie była zbyt blisko innych elementów */
    margin-left: 0.3rem;
  }
  .tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: left;
    padding: 0.5rem;
    border-radius: 4px;
    position: absolute;
    z-index: 10;
    bottom: 125%; /* Pokaż nad ikoną info */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9rem;
  }
  .tooltip .tooltiptext::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
  }
  .tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
  }
  
  /* Panel debugowania */
  #debug-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 150px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-family: monospace;
    font-size: 0.9rem;
    overflow-y: auto;
    padding: 0.5rem;
  }
  #debug-panel h3 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    text-align: center;
  }
  #debug-log p {
    margin: 0.2rem 0;
    border-top: 1px solid #555;
    padding-top: 0.2rem;
  }
  #debug-log p:first-child {
    border-top: none;
    padding-top: 0;
  }
  
  /* Responsywność */
  @media (max-width: 600px) {
    .products {
      flex-direction: column;
    }
    .cart-actions {
      flex-direction: column;
      align-items: flex-start;
    }
    #cart-summary {
      margin-bottom: 0.5rem;
    }
    .media-item {
      flex-direction: column;
      align-items: flex-start;
    }
    .media-item video {
      margin: 0 0 0.5rem 0;
    }
    .form-group {
      flex-direction: column;
      align-items: flex-start;
    }
    .form-group label {
      margin-bottom: 0.3rem;
    }
    .form-group input, .form-group button {
      margin: 0.2rem 0 0.2rem 0;
      width: 100%;
      max-width: none;
    }
  }
  