/* Viva Fiori - Czekoladowe Kwiaty Kraków */

:root {
  --accent: #8B4513;
  --accent-light: #A0522D;
  --accent-dark: #6B3410;
  --pink: #D4617B;
  --pink-light: #F0D1D8;
  --bg: #FFF9F5;
  --bg-card: #FFFFFF;
  --text: #3A2A1A;
  --text-light: #6B5B4B;
  --border: #E8DDD3;
  --shadow: rgba(139, 69, 19, 0.08);
}

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

body {
  font-family: 'Lato', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--accent-light);
}

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

/* === HEADER === */

header {
  background: #FFF;
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px var(--shadow);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--accent-dark);
}

.logo img {
  height: 50px;
  width: auto;
  border-radius: 4px;
}

.logo span {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

nav {
  display: flex;
  gap: 4px;
}

nav a {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text);
  transition: background 0.2s, color 0.2s;
}

nav a:hover, nav a.active {
  background: var(--pink-light);
  color: var(--accent-dark);
}

/* === HERO === */

.hero {
  position: relative;
  max-height: 480px;
  overflow: hidden;
}

.hero-slider img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 40px 40px;
  background: linear-gradient(transparent, rgba(60, 30, 10, 0.75));
  color: #FFF;
  text-align: center;
}

.hero-overlay h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-overlay p {
  font-size: 1.15rem;
  font-weight: 300;
  opacity: 0.95;
}

/* === SECTIONS === */

.categories-grid, .products-grid, .content-section, .about-section, .product-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px;
}

.categories-grid h2, .products-grid h2, .content-section h2, .about-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 35px;
  color: var(--accent-dark);
}

.page-header {
  background: var(--accent-dark);
  color: #FFF;
  padding: 40px 20px;
  text-align: center;
}

.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 600;
}

/* === GRID (categories + products) === */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.category-card, .product-card {
  background: var(--bg-card);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: var(--text);
  display: block;
}

.category-card:hover, .product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(139, 69, 19, 0.15);
}

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

.card-text {
  padding: 16px;
}

.card-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  margin-bottom: 6px;
  color: var(--accent-dark);
}

.card-text p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.5;
}

.product-card h3 {
  padding: 12px 16px;
  font-size: 0.95rem;
  text-align: center;
  color: var(--text);
}

/* === PRODUCT DETAIL === */

.product-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.product-image {
  max-width: 500px;
}

.product-image img {
  border-radius: 10px;
  box-shadow: 0 4px 16px var(--shadow);
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  background: #FFF;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

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

.product-info h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--accent-dark);
  margin-bottom: 16px;
}

.product-info .description {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.product-info .price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pink);
  margin-bottom: 20px;
}

.product-info .contact-info {
  background: var(--pink-light);
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--accent-dark);
}

/* === ABOUT === */

.about-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-inner p {
  margin-bottom: 14px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-light);
}

/* === CONTENT (regulamin, info pages) === */

.content-inner {
  max-width: 800px;
  margin: 0 auto;
}

.content-inner h2 {
  text-align: left;
  font-size: 1.4rem;
  margin: 30px 0 12px;
}

.content-inner p {
  margin-bottom: 12px;
  line-height: 1.7;
}

/* === FOOTER === */

footer {
  background: var(--accent-dark);
  color: #E8DDD3;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-col h4 {
  font-family: 'Playfair Display', serif;
  color: #FFF;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 6px;
}

.footer-col ul a {
  color: #D4C4B4;
  font-size: 0.9rem;
}

.footer-col ul a:hover {
  color: #FFF;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #D4C4B4;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  padding: 16px 20px;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: #A89888;
}

/* === RESPONSIVE === */

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    height: auto;
    padding: 12px 16px;
    gap: 8px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
  }

  nav a {
    padding: 6px 10px;
    font-size: 0.85rem;
  }

  .hero-slider img {
    height: 280px;
  }

  .hero-overlay h1 {
    font-size: 1.8rem;
  }

  .hero-overlay p {
    font-size: 0.95rem;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .product-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .categories-grid, .products-grid, .content-section, .about-section, .product-detail {
    padding: 30px 16px;
  }
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .logo span {
    font-size: 1.3rem;
  }
}
