* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {

  font-family:
    "Inter",
    "Segoe UI",
    Arial,
    sans-serif;

  background: #f4f7fb;

  color: #1f2937;
}

/* -------------------- */
/* HOMEPAGE             */
/* -------------------- */

.homepage {

  background:
    linear-gradient(
      180deg,
      #f8fbff 0%,
      #eef5ff 100%
    );
}

.homepage .container {

  max-width: 1400px;

  margin: 0 auto;

  padding: 50px;
}

.homepage .top-section {

  text-align: center;

  margin-bottom: 50px;
}

.homepage .top-section h1 {

  font-size: 52px;

  font-weight: 800;

  margin-bottom: 15px;

  color: #111827;
}

.homepage .top-section p {

  font-size: 18px;

  color: #6b7280;

  margin-bottom: 30px;
}

.homepage #productSearch {

  width: 100%;

  max-width: 500px;

  padding: 16px 20px;

  border-radius: 18px;

  border: 1px solid #d1d5db;

  font-size: 15px;

  outline: none;

  transition: 0.2s ease;

  background: white;
}

.homepage #productSearch:focus {

  border-color: #2563eb;

  box-shadow:
    0 0 0 4px rgba(37,99,235,0.1);
}

.homepage .products-grid {

  display: grid;

  grid-template-columns:
    repeat(auto-fill, minmax(300px, 1fr));

  gap: 30px;
}

.homepage .product-tile {

  background: white;

  border-radius: 28px;

  overflow: hidden;

  text-decoration: none;

  color: #111827;

  border: 1px solid #e5e7eb;

  box-shadow:
    0 8px 25px rgba(0,0,0,0.05);

  transition: 0.25s ease;

  display: block;
}

.homepage .product-tile:hover {

  transform: translateY(-6px);

  box-shadow:
    0 18px 35px rgba(0,0,0,0.10);
}

/* HOMEPAGE IMAGE (cover zostaje dla estetyki kafelków) */
.homepage .product-tile img {

  width: 100%;

  height: 260px;

  object-fit: cover;

  object-position: center;

  display: block;
}

.homepage .home-tile-content {

  padding: 24px;
}

.homepage .home-tile-content h3 {

  font-size: 22px;

  margin-bottom: 10px;

  font-weight: 700;
}

.homepage .home-tile-content p {

  color: #6b7280;

  line-height: 1.6;

  font-size: 15px;
}

.homepage .home-tile-top {

  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 10px;
}

.homepage .new-badge {

  background: #ef4444;

  color: white;

  padding: 7px 12px;

  border-radius: 999px;

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 0.5px;
}

/* -------------------- */
/* PRODUCT PAGE         */
/* -------------------- */

.product-page {

  max-width: 1300px;

  margin: 0 auto;

  padding: 50px;
}

.back-button {

  display: inline-block;

  margin-bottom: 25px;

  text-decoration: none;

  color: #2563eb;

  font-weight: 700;

  transition: 0.2s ease;
}

.back-button:hover {

  opacity: 0.7;
}

.product-card {

  background: white;

  border-radius: 32px;

  overflow: hidden;

  box-shadow:
    0 10px 35px rgba(0,0,0,0.06);
}

.product-top {

  display: grid;

  grid-template-columns:
    380px 1fr;

  gap: 40px;

  padding: 40px;

  align-items: center;
}

/* 🔥 CONTAIN VERSION (pełny obraz bez ucięcia) */
.product-image {

  width: 100%;

  aspect-ratio: 4 / 5;

  overflow: hidden;

  border-radius: 24px;

  display: flex;

  align-items: center;

  justify-content: center;
}

.product-image img {

  width: 100%;

  height: 100%;

  object-fit: contain;

  object-position: center;

  display: block;
}

/* BADGES */

.badges {

  display: flex;

  align-items: center;

  gap: 12px;

  margin-bottom: 14px;
}

.badge {

  background: #dcfce7;

  padding: 10px 16px;

  border-radius: 999px;

  font-size: 15px;

  font-weight: 700;
}

.badge1 {

  background: #2563eb;

  color: white;

  padding: 10px 16px;

  border-radius: 999px;

  font-size: 13px;

  font-weight: 700;
}

.product-info h1 {

  font-size: 42px;

  margin-bottom: 20px;

  color: #111827;
}

.description {

  line-height: 1.8;

  color: #4b5563;

  margin-bottom: 30px;

  font-size: 16px;
}

.info-grid {

  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 16px;
}

.info-box {

  background: #f8fafc;

  padding: 20px;

  border-radius: 18px;
}

.info-box strong {

  display: block;

  margin-bottom: 8px;
}

/* FAQ */

.faq-section {

  padding: 40px;

  border-top: 1px solid #e5e7eb;
}

.faq-section h2 {

  font-size: 32px;

  margin-bottom: 25px;
}

#faqSearch {

  width: 100%;

  padding: 16px 20px;

  border-radius: 18px;

  border: 1px solid #d1d5db;

  margin-bottom: 30px;

  font-size: 15px;

  outline: none;
}

#faqSearch:focus {

  border-color: #2563eb;

  box-shadow:
    0 0 0 4px rgba(37,99,235,0.1);
}

.faq-item {

  border: 1px solid #e5e7eb;

  border-radius: 18px;

  overflow: hidden;

  margin-bottom: 16px;
}

.faq-question {

  width: 100%;

  border: none;

  background: #f8fafc;

  padding: 22px 24px;

  text-align: left;

  cursor: pointer;

  font-size: 16px;

  font-weight: 700;

  color: #111827;

  transition: 0.2s ease;
}

.faq-question:hover {

  background: #e0f2fe;
}

.faq-answer {

  display: none;

  padding: 24px;

  background: white;

  line-height: 1.7;

  color: #4b5563;
}