/* =================== RESET PODSTAWOWY =================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #f8f5f2;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

/* =================== NAGŁÓWEK I LOGO =================== */
header {
  width: 100%;
  background-color: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between; /* logo lewa, ikony prawa */
  align-items: center;
  padding: 15px 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 90px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.logo h1 {
  font-size: 1.4rem;
  color: #b56b4e;
  font-weight: 600;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-icons button {
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  padding: 0;
}

.hamburger span {
  display: block;
  height: 3px;
  background-color: #b56b4e;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* =================== MENU WYSUWANE =================== */
.side-menu {
  position: fixed;
  top: 0;
  right: -90%;
  width: 90%;
  height: 100%;
  background-color: #fff;
  box-shadow: -3px 0 15px rgba(0,0,0,0.1);
  transition: right 0.3s ease;
  z-index: 200;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
}

.side-menu.active {
  right: 0;
}

.menu-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.menu-logo img {
  width: 100px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.menu-search-wrapper {
  position: relative;
  width: 100%;
}

.menu-search-wrapper .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  font-size: 1rem;
  pointer-events: none;
}

.menu-search {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.side-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding-left: 0;
  margin-top: 20px;
  width: 100%;
}

.side-menu ul li a {
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  color: #333;
  padding-left: 20px;
  display: block;
  transition: color 0.2s ease;
}

.side-menu ul li a:hover {
  color: #b56b4e;
}

/* =================== HERO SECTION =================== */
.hero {
  padding: 60px 20px;
  text-align: center;
  background: linear-gradient(to bottom, #fff, #f8f5f2);
}

.hero h2 {
  font-size: 2rem;
  color: #333;
}

.hero p {
  font-size: 1.1rem;
  margin: 10px 0 25px;
}

.hero button {
  background-color: #b56b4e;
  color: white;
  padding: 12px 26px;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.hero button:hover {
  background-color: #a15d44;
}

/* =================== PRODUKTY =================== */
.products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  padding: 40px 20px;
}

.product-card {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.product-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.product-card h3 {
  font-size: 1.3rem;
  color: #333;
  margin: 15px 0 5px;
}

.product-card p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 10px;
}

.product-card .price {
  color: #b56b4e;
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.product-card button {
  background-color: #b56b4e;
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 10px 22px;
  margin-bottom: 15px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.product-card button:hover {
  background-color: #a15d44;
}

/* =================== STRONA POJEDYNCZEGO PRODUKTU =================== */
.product-single {
  padding: 40px 20px;
  display: flex;
  justify-content: center;
}

.product-single-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
  width: 100%;
  max-width: 900px;
}

.product-image {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.main-image-wrapper {
  position: relative;
  width: 100%;
}

.main-image-wrapper img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  display: block;
}

.sale-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #b56b4e;
  color: #fff;
  padding: 5px 10px;
  font-weight: bold;
  font-size: 0.9rem;
  border-radius: 5px;
  z-index: 10;
}

.zoom-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,0.8);
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.product-thumbnails {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
}

.product-thumbnails img {
  width: calc((100% - 20px)/3);
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.3s;
}

.product-thumbnails img:hover,
.product-thumbnails img.active {
  border-color: #b56b4e;
}

.product-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.product-details h1 {
  font-size: 1.8rem;
  color: #333;
}

.price-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.price {
  font-weight: bold;
  font-size: 1.5rem;
  color: #b56b4e;
}

.old-price {
  font-size: 1rem;
  color: #999;
  text-decoration: line-through;
}

.product-features p {
  margin-bottom: 8px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.product-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.product-actions input[type="number"] {
  width: 70px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.product-actions button {
  background-color: #b56b4e;
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 10px 22px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.product-actions button:hover {
  background-color: #a15d44;
}

@media(min-width: 768px) {
  .product-single-container {
    flex-direction: row;
    gap: 60px;
    align-items: flex-start;
  }

  .product-image,
  .product-details {
    width: 50%;
  }
}

/* =================== KONTAKT =================== */
.contact {
  padding: 50px 20px;
  background-color: #fff;
  border-top: 1px solid #eee;
  text-align: center;
}

.contact h2 {
  margin-bottom: 20px;
  color: #333;
}

.contact form {
  max-width: 450px;
  margin: 0 auto;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.contact button {
  background-color: #b56b4e;
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 12px 25px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact button:hover {
  background-color: #a15d44;
}

/* =================== STOPKA =================== */
footer {
  text-align: center;
  padding: 20px;
  background-color: #fff;
  border-top: 1px solid #eee;
  font-size: 0.9rem;
  color: #777;
}

footer .social-icons {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

footer .social-icons a {
  color: #b56b4e;
  font-size: 20px;
  transition: color 0.3s;
}

footer .social-icons a:hover {
  color: #a15d44;
}

/* =================== DESKTOP =================== */
@media (min-width: 768px) {
  .products {
    grid-template-columns: repeat(2, 1fr);
    padding: 60px 80px;
  }

  .hero h2 {
    font-size: 2.5rem;
  }

  header .logo h1 {
    font-size: 1.6rem;
  }
}



/* --- SKŁAD ZESTAWU --- */
.product-composition {
  margin-top: 50px;
}

.product-composition h2 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  color: #333;
}

.composition-elements {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.composition-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  padding: 18px 22px;
  transition: transform 0.25s ease;
}

.composition-item:hover {
  transform: translateY(-3px);
}

.composition-item h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  color: #444;
  margin-bottom: 5px;
}

.composition-item h3 i {
  font-size: 22px;
  color: #d27f57;
}

.composition-item p {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

/* =================== OPINIE =================== */
.reviews-section {
  margin-top: 60px;
  text-align: center;
  background: #fff;
  padding: 40px 20px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.reviews-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 10px;
}

.rating-summary {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
}

.rating-stars {
  font-size: 22px;
  color: gold;
}

.rating-score {
  font-size: 18px;
  color: #333;
}

#review-container {
  margin: 0 auto;
  transition: opacity 0.5s ease;
  opacity: 1;
  max-width: 400px;
  min-height: 180px; /* ustaw na podstawie najwyższej opinii */
}



.review-card {
  background: #fafafa;
  padding: 20px 25px;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.review-name {
  font-weight: 600;
  font-size: 16px;
}

.review-verified {
  font-size: 12px;
  color: #888;
}

.review-stars {
  font-size: 18px;
  color: gold;
}

.review-text {
  font-size: 15px;
  line-height: 1.5;
  color: #333;
}




/* === KOSZYK: kontener i nagłówek === */
.cart-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.cart-header {
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h1 {
  font-size: 24px;
  font-weight: 600;
  color: #333;
}

.cart-count {
  color: #666;
  font-size: 16px;
}

/* === GŁÓWNY UKŁAD: lista produktów + sidebar === */
.cart-content {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
  align-items: start;
}

/* === KARTY PRODUKTÓW W KOSZYKU (nowy wygląd) === */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cart-item {
  display: flex;
  align-items: center;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  gap: 18px;
}

.cart-item-image {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  background: #f8f5f2;
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-item-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.cart-item-meta {
  font-size: 13px;
  color: #666;
}

.cart-item-price {
  font-size: 16px;
  font-weight: 700;
  color: #b56b4e;
}

/* akcje: ilość + usuń */
.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 140px;
}

.quantity-controls {
  display: inline-flex;
  align-items: center;
  background: #f8f5f2;
  border-radius: 999px;
  padding: 4px 6px;
  gap: 8px;
}

.quantity-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #b56b4e;
  font-size: 18px;
  cursor: pointer;
  border-radius: 6px;
}

.quantity-btn:active {
  transform: scale(0.98);
}

.quantity-value {
  min-width: 28px;
  text-align: center;
  font-weight: 600;
}

.remove-item {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 18px;
}

.remove-item:hover {
  color: #e74c3c;
}

/* === SIDEBAR: wybór dostawy i podsumowanie === */
.cart-sidebar {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* DOSTAWA */
.delivery-options {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.delivery-options h2 {
  margin: 0 0 12px;
  font-size: 18px;
  color: #333;
}

.delivery-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Struktura: label > input + .delivery-content */
.delivery-method {
  display: block;
  cursor: pointer;
}

/* układ kafla metody dostawy */
.delivery-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 2px solid #eee;
  border-radius: 12px;
  transition: all 0.18s ease;
  background: white;
}

/* ukryj standardowy radio */
.delivery-method input[type="radio"] {
  display: none;
}

/* styl kafla gdy wybrany */
.delivery-method input[type="radio"]:checked + .delivery-content {
  border-color: #b56b4e;
  background: #fff6f2;
  box-shadow: 0 4px 10px rgba(181,107,78,0.06);
}

.delivery-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f8f5f2;
  flex-shrink: 0;
}

.delivery-icon i {
  color: #b56b4e;
  font-size: 20px;
}

.delivery-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 12px;
}

.delivery-name {
  font-weight: 600;
  color: #333;
}

.delivery-price {
  color: #b56b4e;
  font-weight: 700;
}

/* Kontener wyboru paczkomatu */
#inpost-container {
  margin-top: 12px;
  display: none; /* pokazywane JS-em */
}

.selected-parcel {
  background: #f8f5f2;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  color: #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.change-parcel-btn {
  padding: 8px 14px;
  background: #b56b4e;
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.change-parcel-btn:hover {
  background: #a15d44;
}

/* PODSUMOWANIE */
.cart-summary-box {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.cart-summary-box h2 {
  margin: 0 0 12px;
  font-size: 18px;
  color: #333;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #666;
  font-size: 15px;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eee;
  font-size: 16px;
}

.checkout-btn {
  width: 100%;
  margin-top: 14px;
  padding: 12px 14px;
  background: #b56b4e;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}

.checkout-btn:hover {
  background: #a15d44;
}

/* BENEFITY */
.shipping-benefits {
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.benefit-item {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f1efee;
}

.benefit-item:last-child {
  border-bottom: none;
}

.benefit-item i {
  color: #b56b4e;
  font-size: 18px;
}

/* === MODAL MAPY PACZKOMATÓW === */
.parcel-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1200;
  justify-content: center;
  align-items: center;
}

.parcel-modal.active {
  display: flex;
}

.parcel-modal-content {
  width: 94%;
  max-width: 900px;
  height: 82vh;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.parcel-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
}

.parcel-modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: #333;
}

.close-modal {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

#easypack-map {
  flex: 1;
  min-height: 200px;
}

/* === MODAL POTWIERDZENIA DODANIA DO KOSZYKA (product page) === */
.cart-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1300;
  justify-content: center;
  align-items: center;
}

.cart-modal.active {
  display: flex;
}

.cart-modal-content {
  width: 92%;
  max-width: 420px;
  background: #fff;
  border-radius: 12px;
  padding: 22px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.cart-modal-header i {
  color: #b56b4e;
  font-size: 44px;
  margin-bottom: 8px;
}

.cart-modal-header h3 {
  margin: 0 0 12px;
  font-size: 18px;
  color: #333;
}

.cart-modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 12px;
}

.cart-modal-buttons button {
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

#continue-shopping {
  background: #f3f1ef;
  color: #333;
}

#go-to-cart {
  background: #b56b4e;
  color: #fff;
}

/* === PUSTY KOSZYK === */
.empty-cart {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.continue-shopping-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 16px;
  background: #b56b4e;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
}

/* === RESPONSYWNOŚĆ === */
@media (max-width: 980px) {
  .cart-content {
    grid-template-columns: 1fr;
  }

  .cart-sidebar {
    position: static;
  }

  .cart-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .cart-item-actions {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 10px;
  }
}

@media (max-width: 420px) {
  .delivery-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .change-parcel-btn {
    width: 100%;
    justify-content: center;
  }
}


















