body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #fff8e8; /* Żółte tło */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
}

/* Pasek nawigacji */
.navbar {
    width: 100%;
    background-color: #585858;
    padding: 20px 0;
    display: flex;
    justify-content: center; /* Wyśrodkowanie poziome */
    align-items: center;     /* Wyśrodkowanie pionowe */
    box-sizing: border-box;
}

.back-link {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: 0.3s;
}

.back-link:hover {
    color: #00a3e0;
}

.product-card {
    width: 80%;
    max-width: 1000px;
    margin-top: 40px;
}

.top-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000;
    border-radius: 40px;
    padding: 40px;
    color: white;
    flex-wrap: wrap;
}

.product-image img {
    border: 4px solid black;
    border-radius: 20px;
    width: 250px;
    height: 180px;
    object-fit: cover;
    background-color: white;
}

.product-info {
    flex: 1;
    text-align: center;
}

.product-name {
    font-size: 2rem;
    margin: 10px 0;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.order-btn {
    background-color: #00a3e0;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.order-btn:hover {
    background-color: #008cc0;
}

.product-description {
    background-color: #000;
    color: white;
    border-radius: 50px;
    padding: 40px;
    margin-top: 30px;
}

.product-description h2 {
    margin-top: 0;
}

.product-description p {
    line-height: 1.6;
}
.tabs {
  display: flex;
  position: relative;
  background-color: #000;
  box-shadow: 0 0 1px 0 rgba(24, 94, 224, 0.15), 0 6px 12px 0 rgba(24, 94, 224, 0.15);
  padding: 0.75rem;
  border-radius: 99px;
}

.tabs * {
  z-index: 2;
}

.container input[type="radio"] {
  display: none;
}

.tab {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  width: 75px;
  font-size: .8rem;
  color: white;
  font-weight: 500;
  border-radius: 99px;
  cursor: pointer;
  transition: color 0.15s ease-in;
}

.notification {
  display: flex;
  align-items: center;
  justify-content: center;
  width: .8rem;
  height: .8rem;
  position: absolute;
  top: 10px;
  left: 30%;
  font-size: 10px;
  margin-left: 0.75rem;
  border-radius: 50%;
  margin: 0px;
  background-color: #e6eef9;
  transition: 0.15s ease-in;
}

.container input[type="radio"]:checked + label {
  color: black;
}

.container input[type="radio"]:checked + label > .notification {
  background-color: white;
  color: #fff;
  margin: 0px;
}

.container input[id="radio-1"]:checked ~ .glider {
  transform: translateX(0);
}

.container input[id="radio-2"]:checked ~ .glider {
  transform: translateX(100%);
}

.container input[id="radio-3"]:checked ~ .glider {
  transform: translateX(200%);
}

.glider {
  position: absolute;
  display: flex;
  height: 30px;
  width: 75px;
  background-color: #e6eef9;
  z-index: 1;
  border-radius: 99px;
  transition: 0.25s ease-out;
}
.image-slider {
    position: relative;
    width: 250px;
    height: 180px;
    overflow: hidden;
    border-radius: 20px;
    border: 4px solid black;
}

.slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease-in-out;
}

.slides img {
    width: 250px;
    height: 180px;
    object-fit: contain;
    background: #000; /* albo białe tło */
}


.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 28px;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 10px;
}

.slide-btn:hover {
    background: rgba(0,0,0,0.7);
}

.prev { left: 5px; }
.next { right: 5px; }
/* Responsywność */
@media (max-width: 768px) {
    .top-section {
        flex-direction: column;
        text-align: center;
    }
    
    .tabs {
        transform: scale(0.95); /* 🔥 powiększony panel */
        margin-top: 15px;
        margin-bottom: 15px;
    }

    .tab {
        font-size: 1rem;
        width: 90px;
    }

    .glider {
        width: 90px;
    }

    .product-image img {
        margin-bottom: 20px;
    }

    .product-info {
        width: 100%;
    }

    .product-card {
        width: 95%;
    }
}
