/* Čistionica — zajednički stilovi (reset, tipografija, responzivnost) */

:root {
  --font-head: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --brand: #2E6F95;
  --brand-dark: #1B4A66;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #ffffff; font-family: var(--font-body); color: #1B1F23; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.photo-box {
  overflow: hidden;
  background: #eef4f8;
}
.photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive grids */
@media (max-width: 900px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr) !important; }
  .cols-5 { grid-template-columns: repeat(2, 1fr) !important; }
  .cols-3 { grid-template-columns: repeat(2, 1fr) !important; }
  .shop-layout { grid-template-columns: 1fr !important; }
  .shop-layout .cart-sidebar { position: static !important; top: auto !important; }
}
@media (max-width: 760px) {
  .split-2 { grid-template-columns: 1fr !important; }
  .split-2 > .photo-box { order: -1 !important; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 28px 20px !important; }
}
@media (max-width: 560px) {
  .cols-2, .cols-3, .cols-4, .cols-5 { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr !important; }
  .cta-banner { padding: 32px 24px !important; text-align: center; justify-content: center !important; }
  .cta-banner > div:first-child { text-align: center; }
}

/* Cookie banner */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: #1B1F23; color: #fff; padding: 16px 24px;
  display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
#cookie-banner p { margin: 0; font-size: 13.5px; color: #c7ced4; max-width: 640px; }
#cookie-banner a { color: #8fc6e6; }
#cookie-accept {
  background: var(--brand); color: #fff; border: none; padding: 10px 22px; border-radius: 100px;
  font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
}

/* Forms */
.form-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-field input, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #DCE3E8; border-radius: 10px;
  font-size: 14px; font-family: var(--font-body);
}
.form-field textarea { resize: vertical; }
.btn-submit {
  background: var(--brand); color: #fff; border: none; padding: 14px; border-radius: 10px;
  font-weight: 700; font-size: 14.5px; cursor: pointer;
}
.btn-submit:hover { background: var(--brand-dark); }
.form-msg { display: none; padding: 14px 16px; border-radius: 10px; font-size: 13.5px; line-height: 1.6; margin-bottom: 16px; }
.form-msg.ok { display: block; background: #E9F6EC; color: #1e6b31; border: 1px solid #bfe6c9; }
.form-msg.err { display: block; background: #FBEAEA; color: #8a2020; border: 1px solid #f0c4c4; }

/* Shop */
.qty-btn { width: 22px; height: 22px; border-radius: 6px; border: 1px solid #DCE3E8; background: #fff; cursor: pointer; font-size: 13px; }
.remove-btn { margin-left: 8px; font-size: 11.5px; color: #a34141; background: none; border: none; cursor: pointer; }
.add-btn { background: var(--brand); color: #fff; border: none; padding: 8px 14px; border-radius: 8px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.add-btn:hover, .checkout-btn:hover { background: var(--brand-dark); }
.checkout-btn { width: 100%; background: var(--brand); color: #fff; border: none; padding: 13px; border-radius: 10px; font-weight: 700; font-size: 14.5px; cursor: pointer; }

/* Modal */
.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(27,31,35,0.5); z-index: 200;
  align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal-box { background: #fff; border-radius: 20px; padding: 40px; max-width: 420px; text-align: center; }

@media print {
  #cookie-banner, header, footer { display: none !important; }
}
