/* ============================================================
   Floráza – design system
   Palette from floraza.sk brand assets
   ============================================================ */

:root {
  --green-900: #192c27;
  --green-800: #2e4e2a;
  --green-700: #41663c;
  --green-500: #5a8139;
  --green-100: #cfe0c6;
  --mint-100: #e6f0ee;
  --mint-50: #f2f7f6;
  --off-white: #fbfcfc;
  --white: #ffffff;
  --terracotta: #bc5d40;
  --terracotta-dark: #a34e35;
  --text: #434f58;
  --text-light: #7c8a91;
  --border: #e3ebea;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 6px 24px rgba(25, 44, 39, 0.08);
  --shadow-hover: 0 10px 32px rgba(25, 44, 39, 0.14);
  --font-head: "Sen", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--off-white);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--green-900);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--terracotta); }

img { max-width: 100%; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Announcement + header ---------- */

.announcement {
  background: var(--green-800);
  color: #eaf3e2;
  text-align: center;
  font-size: 0.85rem;
  padding: 7px 16px;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo img { display: block; }

.main-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--green-900);
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
}

.main-nav a:hover {
  background: var(--mint-100);
  color: var(--green-700);
}

.header-actions .cart-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-800);
  color: var(--white);
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  position: relative;
}

.header-actions .cart-link:hover { background: var(--green-700); color: var(--white); }

.cart-badge {
  position: absolute;
  top: -8px;
  right: -6px;
  background: var(--terracotta);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* ---------- Hero ---------- */

.hero {
  background: var(--green-800);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/flowers-pattern-white.svg");
  background-size: 420px;
  opacity: 0.07;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
}

.hero h1 {
  color: var(--white);
  font-size: 2.6rem;
  margin-bottom: 0.4em;
}

.hero .lead {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 28px;
  max-width: 46ch;
}

.hero .hero-logo img { height: 64px; margin-bottom: 20px; }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  border: 0;
  cursor: pointer;
  padding: 13px 26px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-size: 0.95rem;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(188, 93, 64, 0.35);
}

.btn-primary:hover { background: var(--terracotta-dark); color: var(--white); }

.btn-light {
  background: var(--white);
  color: var(--green-800);
}

.btn-light:hover { background: var(--mint-100); color: var(--green-800); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-ghost:hover { border-color: var(--white); color: var(--white); }

.btn-green {
  background: var(--green-700);
  color: var(--white);
}

.btn-green:hover { background: var(--green-800); color: var(--white); }

/* ---------- Sections ---------- */

.section { padding: 64px 0; }

.section-alt { background: var(--white); }

.section-dark {
  background: var(--green-800);
  color: var(--white);
}

.section-dark h2, .section-dark h3 { color: var(--white); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section-head .kicker {
  font-family: var(--font-head);
  color: var(--green-500);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  margin-bottom: 6px;
}

.section-head .more { font-weight: 600; }

/* ---------- Category cards ---------- */

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

.cat-card {
  background: var(--mint-100);
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.cat-card h3 { margin: 10px 0 4px; font-size: 1.02rem; }
.cat-card p { margin: 0; font-size: 0.85rem; color: var(--text-light); }

.cat-card .cat-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--green-700);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* ---------- Product grid / cards ---------- */

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

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.product-card .thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--mint-50);
}

.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .thumb img { transform: scale(1.05); }

.product-card .card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }

.product-card .name { font-weight: 600; color: var(--green-900); }

.product-card .price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
}

.price { font-family: var(--font-head); font-weight: 800; color: var(--green-800); font-size: 1.12rem; }

.price-old { color: var(--text-light); text-decoration: line-through; font-size: 0.9rem; }

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-rare { background: #fbe4dd; color: var(--terracotta-dark); }
.badge-new { background: var(--green-100); color: var(--green-700); }
.badge-sale { background: var(--terracotta); color: var(--white); }
.badge-stock { background: var(--mint-100); color: var(--green-700); }
.badge-stock-out { background: #eceff1; color: var(--text-light); }

.card-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; }

.card-actions { display: flex; gap: 8px; align-items: center; }

.card-actions .btn { padding: 9px 18px; font-size: 0.85rem; }

.qty-input {
  width: 62px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
}

/* ---------- Toolbar (filters) ---------- */

.toolbar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.toolbar .search-input {
  flex: 1;
  min-width: 200px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font: inherit;
}

.toolbar select {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font: inherit;
  background: var(--white);
}

.filters {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 24px;
}

.filters summary { cursor: pointer; font-family: var(--font-head); font-weight: 700; color: var(--green-900); }

.filters-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 12px; }

.filters .filter-group h4 { margin-bottom: 8px; }

.filters .filter-group label { display: block; font-size: 0.92rem; padding: 2px 0; cursor: pointer; }

.filters .filter-group label input { margin-right: 6px; }

/* ---------- Product detail ---------- */

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

.product-gallery .main-img {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
}

.product-gallery .main-img img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }

.product-info .price-row { font-size: 1.5rem; margin: 10px 0 16px; }
.product-info .price-row .price { font-size: 1.6rem; }

.param-table { width: 100%; border-collapse: collapse; margin: 18px 0; }

.param-table th, .param-table td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.param-table th { color: var(--green-900); font-weight: 600; width: 45%; }

.prose { max-width: 75ch; }
.prose h3 { margin-top: 1.4em; }

.purchase-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin: 18px 0;
}

.trust-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; font-size: 0.85rem; color: var(--text-light); }

.trust-row span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Cart & checkout ---------- */

.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }

.cart-table { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

.cart-item {
  display: grid;
  grid-template-columns: 84px 1fr auto auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.cart-item:last-child { border-bottom: 0; }

.cart-item img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--radius-sm); }

.summary {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 90px;
}

.summary h3 { margin-bottom: 14px; }

.summary .row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.95rem; }

.summary .row.total { border-top: 1px solid var(--border); margin-top: 10px; padding-top: 12px; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--green-900); }

.checkout-grid { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }

.form-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
}

.form-section h3 { margin-bottom: 14px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form-grid .full { grid-column: 1 / -1; }

.form-field label { display: block; font-weight: 600; font-size: 0.88rem; color: var(--green-900); margin-bottom: 5px; }

.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--white);
}

.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--green-100);
  border-color: var(--green-500);
}

.form-field .helptext { font-size: 0.8rem; color: var(--text-light); }

.form-field ul.errorlist { margin: 4px 0 0; padding: 0; list-style: none; color: var(--terracotta-dark); font-size: 0.85rem; }

.option-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.option-card:hover { border-color: var(--green-500); }

.option-card.selected { border-color: var(--green-700); background: var(--mint-50); }

.option-card input { accent-color: var(--green-700); }

.option-card .opt-name { font-weight: 600; color: var(--green-900); }
.option-card .opt-desc { font-size: 0.85rem; color: var(--text-light); }

.pickup-picker { display: none; margin-top: 10px; }

.pickup-picker.active { display: block; }

/* ---------- Modal (Packeta picker) ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(25, 44, 39, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-backdrop.active { display: flex; }

.modal {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 620px;
  width: 100%;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.modal-head h3 { margin: 0; }

.modal-close { background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--text); }

.modal-body { padding: 16px 20px; overflow-y: auto; flex: 1; }

.modal-body .branch {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.modal-body .branch:hover { border-color: var(--green-500); background: var(--mint-50); }

.modal-body .branch .b-name { font-weight: 600; color: var(--green-900); }
.modal-body .branch .b-addr { font-size: 0.85rem; color: var(--text-light); }

.demo-note { font-size: 0.8rem; color: var(--terracotta-dark); background: #fbe4dd; border-radius: var(--radius-sm); padding: 8px 12px; margin-bottom: 12px; }

/* ---------- Blog ---------- */

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

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.blog-card .thumb { aspect-ratio: 16/9; overflow: hidden; }
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .blog-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-card .meta { font-size: 0.8rem; color: var(--text-light); }

.blog-post { max-width: 780px; margin: 0 auto; }
.blog-post .hero-img { border-radius: var(--radius); margin-bottom: 24px; width: 100%; }
.blog-post .meta { color: var(--text-light); margin-bottom: 18px; }
.blog-post .content { font-size: 1.02rem; }
.blog-post .content h2 { margin-top: 1.6em; }
.blog-post .content ul, .blog-post .content ol { padding-left: 1.3em; }

/* ---------- Pages ---------- */

.page-wrap { max-width: 820px; margin: 0 auto; }
.page-wrap .content { font-size: 1.02rem; }
.page-wrap .content h2 { margin-top: 1.6em; }
.page-wrap .content ul { padding-left: 1.3em; }

/* ---------- Breadcrumbs ---------- */

.breadcrumbs { font-size: 0.88rem; color: var(--text-light); margin-bottom: 14px; }
.breadcrumbs a { color: var(--text-light); }
.breadcrumbs a:hover { color: var(--green-700); }

/* ---------- Messages ---------- */

.messages { margin-top: 18px; }

.message {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  font-weight: 500;
}

.message-success { background: var(--green-100); color: var(--green-800); }
.message-error { background: #fbe4dd; color: var(--terracotta-dark); }
.message-info { background: var(--mint-100); color: var(--green-800); }

/* ---------- Order ---------- */

.order-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  max-width: 760px;
  margin: 0 auto;
}

.order-card table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.order-card th, .order-card td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.order-card th { color: var(--green-900); }

.pill {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--mint-100);
  color: var(--green-700);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--green-900);
  color: #cfe0c6;
  margin-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 36px;
}

.footer-brand .footer-logo { height: 44px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-brand p { opacity: 0.85; max-width: 40ch; }
.payment-icons { margin-top: 16px; opacity: 0.9; }

.site-footer h4 { color: var(--white); margin-bottom: 12px; }

.footer-col a { display: block; color: #cfe0c6; padding: 4px 0; font-size: 0.95rem; }
.footer-col a:hover { color: var(--white); }
.footer-col p { margin: 4px 0; font-size: 0.95rem; opacity: 0.9; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 16px 0; }
.footer-bottom p { margin: 0; font-size: 0.85rem; opacity: 0.75; }

/* ---------- Pagination ---------- */

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }

.pagination a, .pagination .current {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  font-weight: 600;
  color: var(--green-800);
  padding: 0 14px;
}

.pagination .current { background: var(--green-800); color: var(--white); border-color: var(--green-800); }

/* ---------- Empty states ---------- */

.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

.empty .big { font-size: 3rem; margin-bottom: 10px; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; }
  .product-detail { grid-template-columns: 1fr; }
  .cart-layout, .checkout-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cart-item { grid-template-columns: 70px 1fr; }
  .cart-item .cart-qty, .cart-item .cart-line { grid-column: 2; }
}

@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; gap: 10px; }
  .main-nav { order: 3; width: 100%; justify-content: center; }
  .form-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
