/* Mielczewski.pl - Static Homepage */
:root {
  --color-primary: #1a1a2e;
  --color-accent: #c9a96e;
  --color-text: #333;
  --color-light: #f8f8f8;
  --color-white: #fff;
  --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  color: var(--color-text);
  line-height: 1.6;
  background: var(--color-white);
}

/* ── HEADER / NAV ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(26,26,46,0.95);
  backdrop-filter: blur(8px);
  padding: 0.6rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header .logo img {
  height: 48px;
  width: auto;
}

.site-header nav ul {
  list-style: none;
  display: flex;
  gap: 1.8rem;
}

.site-header nav a {
  color: var(--color-white);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.site-header nav a:hover {
  color: var(--color-accent);
}

/* ── HERO SLIDER ── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
  background: var(--color-primary);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active { opacity: 1; }

.hero-slide img {
  max-width: 80%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 8px;
}

.hero-slide .slide-title {
  color: var(--color-white);
  font-size: 2rem;
  font-weight: 700;
  margin-top: 1.2rem;
  text-align: center;
}

.hero-slide .slide-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 2rem;
  background: var(--color-accent);
  color: var(--color-white);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.2s;
}

.hero-slide .slide-link:hover {
  background: #b8923d;
}

.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
}

.hero-dots .dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s;
}

.hero-dots .dot.active { background: var(--color-accent); }

/* ── FEATURES BAR ── */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 3rem 2rem;
  background: var(--color-light);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 140px;
}

.feature-item img {
  width: 56px;
  height: 56px;
  margin-bottom: 0.6rem;
}

.feature-item span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* ── GALLERY ── */
.gallery-section {
  padding: 4rem 2rem;
  text-align: center;
}

.gallery-section h2 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s;
  cursor: pointer;
}

.gallery-grid img:hover {
  transform: scale(1.03);
}

/* ── ABOUT ── */
.about-section {
  padding: 4rem 2rem;
  background: var(--color-light);
}

.about-section .container {
  max-width: 900px;
  margin: 0 auto;
}

.about-section h2 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.about-section p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
}

/* ── CONTACT / FOOTER ── */
.contact-section {
  padding: 4rem 2rem;
  background: var(--color-primary);
  color: var(--color-white);
}

.contact-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--color-accent);
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.contact-block h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: var(--color-accent);
}

.contact-block p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.contact-block a {
  color: var(--color-accent);
  text-decoration: none;
}

.contact-block a:hover {
  text-decoration: underline;
}

.site-footer {
  text-align: center;
  padding: 1.5rem;
  background: #111;
  color: #888;
  font-size: 0.85rem;
}

/* ── PRODUCT CATALOG ── */
.catalog-page {
  padding: 6rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.catalog-page h1 {
  font-size: 2.2rem;
  color: var(--color-primary);
  margin-bottom: 2rem;
  text-align: center;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.product-card {
  display: block;
  background: var(--color-white);
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text);
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.product-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.product-card h3 {
  padding: 1rem 1rem 0.3rem;
  font-size: 1rem;
  color: var(--color-primary);
}

.product-card .price {
  padding: 0 1rem 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-accent);
}

/* ── PRODUCT DETAIL ── */
.product-detail {
  padding: 6rem 2rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.product-gallery {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #f5f5f5;
}

.product-gallery-slide {
  display: none;
}

.product-gallery-slide.active {
  display: block;
}

.product-gallery-slide img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
}

.gallery-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
}

.gallery-dots .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(0,0,0,0.3);
  cursor: pointer;
  transition: background 0.3s;
}

.gallery-dots .dot.active { background: var(--color-accent); }

.product-info h1 {
  font-size: 1.8rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.product-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.product-sku {
  font-size: 0.9rem;
  color: #888;
}

.product-content {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
}

.product-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
}

.product-description {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.product-description-section {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.product-description-section:nth-child(even) {
  flex-direction: row-reverse;
}

.product-description-image img {
  max-width: 400px;
  width: 100%;
  border-radius: 8px;
}

.product-description-text {
  flex: 1;
}

.product-description-text h2 {
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 0.8rem;
}

/* ── BLOG ── */
.blog-listing {
  padding: 6rem 2rem 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.blog-listing h1 {
  font-size: 2.2rem;
  color: var(--color-primary);
  margin-bottom: 2rem;
  text-align: center;
}

.blog-card {
  background: var(--color-white);
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  transition: box-shadow 0.2s;
}

.blog-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.blog-card h2 {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.blog-card h2 a {
  color: var(--color-primary);
  text-decoration: none;
}

.blog-card h2 a:hover {
  color: var(--color-accent);
}

.blog-card time {
  font-size: 0.85rem;
  color: #888;
}

.blog-card p {
  margin-top: 0.5rem;
  color: #555;
  line-height: 1.6;
}

.article-page {
  padding: 6rem 2rem 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.article-page h1 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.article-page time {
  font-size: 0.9rem;
  color: #888;
  display: block;
  margin-bottom: 2rem;
}

.article-content {
  line-height: 1.8;
  color: #444;
}

.article-content h2, .article-content h3 {
  color: var(--color-primary);
  margin: 1.5rem 0 0.8rem;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
}

.article-content a {
  color: var(--color-accent);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
  }
  .site-header nav ul {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero-slide .slide-title { font-size: 1.4rem; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .gallery-grid img { height: 200px; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .product-description-section,
  .product-description-section:nth-child(even) { flex-direction: column; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
