/* Reset i zmienne kolorów */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --primary-color: #0077b6;
  --secondary-color: #00b4d8;
  --accent-color: #90e0ef;
  --text-color: #023047;
  --bg-light: #f8f9fa;
  --bg-dark: #023047;
  --font-base: 'Montserrat', sans-serif;
}
html, body {
  overflow-x: hidden;
}
body {
  font-family: var(--font-base);
  color: var(--text-color);
  background-color: var(--bg-light);
  line-height: 1.6;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
/* HEADER */
.header {
  background: #fff;
  padding: 1rem 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}
.search-form {
  display: flex;
  border: 1px solid var(--accent-color);
  border-radius: 5px;
  overflow: hidden;
  background: #fff;
}
.search-form input {
  padding: 0.5rem;
  border: none;
  outline: none;
  width: 200px;
}
.search-form button {
  background: var(--primary-color);
  border: none;
  padding: 0 0.75rem;
  cursor: pointer;
  color: #fff;
}
.user-cart a {
  margin-left: 1rem;
  color: var(--text-color);
  font-size: 1.25rem;
  text-decoration: none;
  position: relative;
}
.cart-count {
  position: absolute;
  top: -5px;
  right: -10px;
  background: var(--accent-color);
  color: var(--bg-dark);
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.75rem;
}
/* NAWIGACJA */
.nav-main {
  margin-top: 0.5rem;
}
.nav-list {
  display: flex;
  list-style: none;
  justify-content: center;
}
.nav-list li {
  margin: 0 1rem;
}
.nav-list a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  padding: 0.5rem;
  transition: color 0.3s;
}
.nav-list a:hover {
  color: var(--primary-color);
}
/* HERO */
.hero {
  position: relative;
  height: 70vh;
  display: flex;
  align-items: center;
  color: #fff;
  text-align: center;
}
.hero-content {
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.3);
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.btn-primary {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 0.75rem 1.5rem;
  margin-bottom: 20px;
  margin-left: 5px;
  margin-right: 5px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}
/* SEKCJE */
section {
  padding: 4rem 0;
}
h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  position: relative;
}
h2::after {
  content: '';
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}
/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
/* KARTY */
.card,
.product-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}
.card:hover,
.product-card:hover {
  transform: translateY(-5px);
}
.card img,
.product-card img {
  width: 100%;
  display: block;
  height: 200px;
  object-fit: cover;
}
.card h3,
.product-card h3 {
  margin: 1rem 0;
  font-size: 1.25rem;
}
.price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin: 0.5rem 0;
}
.product-card .btn-primary {
  margin-top: auto;
}
.btn-secondary {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 2px solid var(--primary-color);
  border-radius: 50px;
  margin-left: 5px;
  margin-bottom: 25px;
  margin-right: 5px;
}
.btn-secondary:hover {
  background: var(--primary-color);
  color: #fff;
}
/* PROMOCJE */
.promo-banner {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}
.promo-banner img {
  width: 100%;
  display: block;
  transition: transform 0.5s;
}
.promo-banner:hover img {
  transform: scale(1.1);
}
.promo-text {
  position: absolute;
  top: 50%; left: 10%;
  transform: translateY(-50%);
  color: #fff;
}
/* NEWSLETTER */
.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.newsletter-form input {
  padding: 0.75rem;
  width: 300px;
  max-width: 100%;
  border: 1px solid #ccc;
  border-radius: 5px;
  outline: none;
}
.newsletter-form button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 5px;
  background: var(--secondary-color);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}
/* STOPKA */
.footer {
  background: var(--bg-dark);
  color: #fff;
  padding: 3rem 0;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}
.footer-column {
  flex: 1 1 200px;
}
.footer-column h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.footer-column ul {
  list-style: none;
}
.footer-column a {
  color: #fff;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}
.footer-column a:hover {
  color: var(--accent-color);
}
.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
}
/* Promocyjne ceny */
/* Cenówki z promocją: stara+badge w wierszu, nowa pod spodem */
.product-card .price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.product-card .price-top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.product-card .old-price {
  text-decoration: line-through;
  color: red;
}

.product-card .discount {
  background: var(--accent-color);
  color: #fff;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

.product-card .promo-price {
  color: var(--secondary-color);
  font-weight: 700;
}

.product-card .normal-price {
  color: var(--text-color);
  font-weight: 700;
}
.detail-left li {
  margin-bottom: 1rem;
}

.detail-left strong {
  display: block;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}


@media (max-width: 768px) {
  .detail-left li {
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-left strong {
    flex: 1 1 100%;
    margin-bottom: 0.25rem;
  }
}


/* RESPONSYWNOŚĆ */
@media (max-width: 768px) {
  .header-top {
    flex-direction: column;
    gap: 1rem;
  }
  .nav-list {
    flex-wrap: wrap;
  }
	.product-card {
		width: 80%;
		margin: 0 auto; /* centrowanie w poziomie */	
	}  
.header {
  position: relative;
}  
}
