/* === Reset i ogólne === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  overflow-x: hidden;
  color: #333;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* === Nagłówek === */
header {
  background-color: #111;
  color: white;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-left,
.header-center,
.header-right {
  flex: 1 1 300px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-center {
  justify-content: center;
}

.header-right {
  justify-content: flex-end;
  flex-wrap: wrap;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #f0c040;
}
footer {
  background-color: #111;
  color: #ddd;
  margin-top: 40px;
  padding: 30px 20px 10px;
  font-size: 14px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: space-between;
}

.footer-section h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #f0c040;
}

.footer-section p, .footer-section a {
  margin: 5px 0;
  color: #ddd;
  text-decoration: none;
}

.footer-section a:hover {
  color: #f0c040;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  margin-top: 20px;
  padding-top: 10px;
  font-size: 13px;
  color: #aaa;
}

/* === Dropdown Kategorie === */
.dropdown {
  position: relative;
}

.dropbtn {
  background-color: #333;
  color: white;
  padding: 10px 15px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 160px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 10;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-content a {
  padding: 10px;
  text-decoration: none;
  color: black;
  display: block;
  transition: background-color 0.2s ease;
}

.dropdown-content a:hover {
  background-color: #f0c040;
}

/* === Pasek wyszukiwania === */
.search-bar input {
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 16px;
  width: 300px;
  max-width: 100%;
}

/* === Lista produktów === */
#product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 20px auto;
  padding: 0 20px;
}

/* === Karty produktów === */
.product {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 420px;
  padding: 15px;
  border: 1px solid #ccc;
  background-color: white;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  border-radius: 6px;
}

.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 1;
}

.product img {
  border-radius: 4px;
  margin-bottom: 10px;
}

.product h2 {
  font-size: 18px;
  margin: 10px 0;
}

.product p {
  margin: 5px 0;
}

.description {
  font-size: 14px;
  color: #555;
}

.price {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.product button {
  background-color: #333;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.product button:hover {
  background-color: #555;
}

/* === Kategorie kolorystyczne === */
.product.biżuteria { border-color: #c0a0ff; }
.product.ubrania   { border-color: #a0d0ff; }
.product.akcesoria { border-color: #ffd080; }

/* === Licznik koszyka === */
#cart-count {
  background-color: #f0c040;
  color: black;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 12px;
  margin-left: 6px;
  font-size: 14px;
  min-width: 20px;
  text-align: center;
  display: inline-block;
  transition: transform 0.3s ease;
}

@keyframes bounce {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.4); }
  60%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}

#cart-count.animate {
  animation: bounce 0.4s ease;
}

.fly-to-cart {
  position: absolute;
  z-index: 1000;
  transition: all 0.8s ease-in-out;
  pointer-events: none;
  width: 50px;
  height: auto;
  border-radius: 4px;
}

/* === Koszyk === */
.cart-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.cart-items {
  flex: 1 1 700px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-product {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.cart-product img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
}

.cart-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-details h2 {
  font-size: 16px;
  margin-bottom: 5px;
}

.cart-details .description {
  font-size: 14px;
  color: #555;
}

.cart-details .price {
  font-weight: bold;
  font-size: 15px;
  margin: 10px 0;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-controls button {
  background-color: #333;
  color: white;
  border: none;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 16px;
}

/* === Podsumowanie koszyka === */
.cart-summary {
  flex: 0 0 300px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.cart-summary h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.cart-summary p {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
}

/* === Zamówienie === */
.checkout-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.checkout-left,
.checkout-right {
  flex: 1 1 400px;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.checkout-left form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.checkout-left label {
  font-size: 14px;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checkout-left input,
.checkout-left select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
}

.checkout-product {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  margin-bottom: 12px;
}

.checkout-product img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

.checkout-info h3 {
  font-size: 16px;
  margin: 0 0 4px;
}

.checkout-info p {
  margin: 2px 0;
  font-size: 14px;
  color: #444;
}

.checkout-summary {
  margin-top: 20px;
  padding: 16px;
  border-top: 2px solid #f0c040;
  background: #fafafa;
  border-radius: 6px;
}

.checkout-summary p {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  margin: 6px 0;
}

.checkout-summary .total {
  font-size: 18px;
  font-weight: bold;
  color: #111;
}

.checkout-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 15px;
}

/* === Przyciski uniwersalne === */
button,
.button {
  background-color: #f0c040;
  color: #111;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

button:hover,
.button:hover {
  background-color: #d9a030;
  transform: translateY(-2px);
}
.cart-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.cart-actions .button {
  width: 100%;
  text-align: center;
}

.quantity-controls button {
  width: 28px;
  height: 28px;
  font-size: 18px;
  font-weight: bold;
  background-color: #f0c040;
  color: #111;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.quantity-controls button:hover {
  background-color: #d9a030;
}
