/* Kwiaciarenka.pl — CSS inspired by original 2005-2014 green/cream design */

:root {
  --cream: #fdfcf1;
  --yellow-light: #faf5cb;
  --green-dark: #336633;
  --green-text: #006633;
  --green-nav: #c6d580;
  --green-nav-hover: #adb96e;
  --red-price: #cc3300;
  --border: #999;
  --font-body: Georgia, 'Times New Roman', Times, serif;
  --font-nav: Verdana, Arial, Helvetica, sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--green-text);
  background-color: #e8e4d4;
  background-image: url('images/bg.gif');
  line-height: 1.6;
}

a {
  color: var(--green-dark);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  color: var(--green-nav-hover);
}

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

/* === LAYOUT === */
.site-wrapper {
  max-width: 960px;
  margin: 0 auto;
  background-color: var(--cream);
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* === HEADER === */
.site-header {
  position: relative;
}

.header-image {
  display: block;
  width: 100%;
  max-height: 140px;
  object-fit: cover;
}

.header-bar {
  height: 6px;
  background: linear-gradient(to right, var(--green-nav), var(--green-dark));
}

/* === NAVIGATION === */
.site-nav {
  background-color: var(--yellow-light);
  border-bottom: 2px solid var(--green-nav);
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.site-nav li {
  margin: 0;
}

.site-nav a {
  display: block;
  padding: 10px 16px;
  font-family: var(--font-nav);
  font-size: 0.85rem;
  font-weight: bold;
  font-style: italic;
  color: var(--green-dark);
  border-right: 1px solid rgba(51,102,51,0.2);
  transition: background 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  background-color: var(--green-nav);
  color: #fff;
  text-decoration: none;
}

.site-nav li:last-child a {
  border-right: none;
}

/* === MAIN CONTENT === */
.content-area {
  display: flex;
  gap: 0;
  min-height: 400px;
}

.sidebar {
  width: 200px;
  flex-shrink: 0;
  background-color: var(--yellow-light);
  padding: 20px 15px;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--green-dark);
  border-right: 1px solid #ddd;
}

.sidebar .quote {
  margin-bottom: 20px;
  line-height: 1.8;
  font-size: 0.85rem;
}

.sidebar .quote .author {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-weight: bold;
  color: #cc0000;
  font-size: 0.8rem;
}

.sidebar .gallery-thumb {
  display: block;
  width: 170px;
  margin: 10px auto;
  border: 8px solid #ccc;
  transition: border-color 0.3s;
}

.sidebar .gallery-thumb:hover {
  border-color: #666;
}

.main-content {
  flex: 1;
  padding: 25px 30px;
}

.main-content h1 {
  font-size: 1.6rem;
  color: var(--green-dark);
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--green-nav);
}

.main-content h2 {
  font-size: 1.3rem;
  color: var(--green-dark);
  margin: 20px 0 10px;
}

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

/* === PRODUCT GRID === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.product-card {
  text-align: center;
  padding: 10px;
  border: 1px solid #e0dcc0;
  border-radius: 4px;
  background: var(--cream);
  transition: box-shadow 0.2s;
}

.product-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.product-card img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border: 1px solid #ccc;
  margin-bottom: 8px;
}

.product-card .product-name {
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--green-dark);
  margin-bottom: 4px;
}

.product-card .product-price {
  font-size: 0.85rem;
  color: var(--red-price);
  font-weight: bold;
}

/* === CATEGORY CARDS === */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.category-card {
  display: block;
  padding: 20px;
  background: var(--yellow-light);
  border: 1px solid #e0dcc0;
  border-radius: 4px;
  text-align: center;
  transition: background 0.2s, box-shadow 0.2s;
}

.category-card:hover {
  background: var(--green-nav);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  text-decoration: none;
}

.category-card:hover .cat-name {
  color: #fff;
}

.category-card .cat-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.category-card .cat-name {
  font-size: 1rem;
  font-weight: bold;
  color: var(--green-dark);
}

/* === POEM / FEATURED === */
.poem-box {
  background: var(--yellow-light);
  padding: 20px 25px;
  border: 1px solid #e0dcc0;
  border-radius: 4px;
  margin: 20px 0;
  font-style: italic;
  line-height: 1.9;
  text-align: center;
}

.poem-box .poem-author {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-weight: bold;
  font-size: 0.9rem;
}

.featured-product {
  text-align: center;
  margin: 25px 0;
  padding: 20px;
  border: 1px solid #e0dcc0;
  border-radius: 4px;
}

.featured-product img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border: 2px solid #ccc;
  margin-bottom: 10px;
}

.featured-product .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green-nav-hover);
  margin-bottom: 6px;
}

/* === INFO PAGES === */
.info-content {
  max-width: 700px;
}

.info-content ul, .info-content ol {
  padding-left: 25px;
  margin-bottom: 15px;
}

.info-content li {
  margin-bottom: 6px;
}

.info-content .highlight-box {
  background: var(--yellow-light);
  padding: 15px 20px;
  border-left: 4px solid var(--green-nav);
  margin: 15px 0;
}

/* === FOOTER === */
.site-footer {
  background-color: var(--yellow-light);
  border-top: 2px solid var(--green-nav);
  padding: 20px 30px;
  text-align: center;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--green-dark);
}

.site-footer .footer-copy {
  margin-bottom: 6px;
}

.site-footer a {
  color: var(--green-dark);
  font-weight: bold;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .site-wrapper {
    margin: 0;
  }

  .content-area {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #ddd;
    padding: 15px;
  }

  .site-nav ul {
    flex-direction: column;
  }

  .site-nav a {
    border-right: none;
    border-bottom: 1px solid rgba(51,102,51,0.15);
    text-align: center;
  }

  .main-content {
    padding: 15px;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }
}

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