/* ==============================
   RESET & BASE
============================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --white:        #ffffff;
  --snow:         #fafafa;
  --mist:         #f3f1ee;
  --stone:        #e8e4df;
  --dusk:         #c9c3bb;
  --rust:         #b06040;
  --rust-soft:    #c87c5c;
  --rust-pale:    #f5ece7;
  --charcoal:     #2c2420;
  --warm-gray:    #6e5e54;
  --cool-gray:    #9c9088;
  --border:       #e0dbd5;

  --sans: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

html { scroll-behavior: smooth; }

body {
  background-color: #ede7de;
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ==============================
   SCROLL REVEAL
============================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ==============================
   HEADER — two-row stacked layout
============================== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.35);
  border-bottom: 1.5px solid var(--charcoal);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 48px 0;
}

.header-bottom {
  padding: 0 48px 14px;
  display: flex;
  justify-content: flex-end;
}

.logo {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--charcoal);
  line-height: 1;
  text-decoration: none;
}
.logo-z { color: var(--rust); }
.logo-home {
  font-weight: 300;
  font-size: 20px;
  letter-spacing: 2px;
  color: var(--warm-gray);
  margin-left: 2px;
}

.header-tagline {
  font-size: 11px;
  color: var(--cool-gray);
  letter-spacing: 1px;
  padding: 4px 0;
}

nav {
  display: flex;
  align-items: center;
}
nav a {
  margin-left: 24px;
  text-decoration: none;
  color: var(--warm-gray);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}
nav a:hover {
  color: var(--charcoal);
  border-bottom-color: var(--charcoal);
}
nav a.nav-active {
  color: var(--charcoal);
  border-bottom-color: var(--rust);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--charcoal);
}

/* ==============================
   HERO — left-heavy, ruled lines
============================== */
.hero {
  min-height: 86vh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 72px 48px 0;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding-top: 20px;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::after {
  content: '';
  display: block;
  height: 1px;
  width: 40px;
  background: var(--rust);
  opacity: 0.5;
}

.hero h1 {
  font-family: var(--sans);
  font-size: clamp(40px, 6vw, 86px);
  line-height: 1.0;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 22px;
  letter-spacing: -2px;
}

.hero h1 em {
  font-style: normal;
  color: var(--rust);
}

.hero-sub {
  font-size: 16px;
  color: var(--warm-gray);
  max-width: 420px;
  margin-bottom: 40px;
  line-height: 1.75;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  background: var(--charcoal);
  color: var(--white);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: 1.5px solid var(--charcoal);
  transition: background 0.2s, color 0.2s;
}
.btn-primary:hover {
  background: var(--rust);
  border-color: var(--rust);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  background: transparent;
  color: var(--charcoal);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: 1.5px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover {
  border-color: var(--charcoal);
}

/* Decorative right element */
.hero-pattern {
  position: absolute;
  right: 48px;
  top: 72px;
  bottom: 0;
  width: 340px;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}
.hero-pattern svg {
  width: 100%;
  height: 100%;
  color: var(--rust);
}

/* Logo frame — sits directly over the decorative grid pattern, logo fills it edge-to-edge */
.hero-logo-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54%;
  aspect-ratio: 1;
  border: 1.5px solid var(--charcoal);
  background: var(--snow);
  overflow: hidden;
  box-shadow: 0 20px 44px rgba(44, 36, 32, 0.14);
}

.hero-logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Shown automatically until images/logo.png is added */
.hero-logo-frame.img-missing img { display: none; }
.hero-logo-frame.img-missing::before {
  content: 'ZH';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -1px;
  color: var(--charcoal);
}

/* Stats as a ruled bottom strip */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1.5px solid var(--charcoal);
  margin-top: 56px;
  position: relative;
  z-index: 2;
}

.stat {
  padding: 24px 0;
  border-right: 1px solid var(--border);
  padding-right: 32px;
}
.stat:last-child { border-right: none; padding-right: 0; }
.stat:not(:first-child) { padding-left: 32px; }

.stat-num {
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 11px;
  color: var(--cool-gray);
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* ==============================
   LABELS
============================== */
.label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 12px;
}

/* ==============================
   ABOUT — mist bg, horizontal rule feel
============================== */
.section-about {
  padding: 96px 0;
  background: rgba(243, 241, 238, 0.2);
  border-top: 1.5px solid var(--charcoal);
  border-bottom: 1.5px solid var(--charcoal);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text h2 {
  font-family: var(--sans);
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--charcoal);
  letter-spacing: -1px;
}

.about-text p {
  color: var(--warm-gray);
  font-size: 15px;
  margin-bottom: 16px;
  max-width: 440px;
  line-height: 1.8;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1.5px solid var(--charcoal);
}

.highlight-card {
  background: var(--white);
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 24px 28px;
  transition: background 0.2s;
}
.highlight-card:last-child { border-bottom: none; }
.highlight-card:hover { background: var(--rust-pale); }

.highlight-icon {
  font-size: 15px;
  color: var(--rust);
  margin-bottom: 10px;
  display: block;
}

.highlight-card h3 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--charcoal);
  letter-spacing: 0;
}

.highlight-card p {
  font-size: 13px;
  color: var(--warm-gray);
  line-height: 1.6;
}

/* ==============================
   CATALOG OVERVIEW (index.html)
============================== */
.section-catalog {
  padding: 96px 0;
  background: transparent;
}

.catalog-header {
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.catalog-header h2 {
  font-family: var(--sans);
  font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: -1px;
  margin-bottom: 10px;
}

.catalog-header p {
  font-size: 14px;
  color: var(--warm-gray);
  max-width: 480px;
  line-height: 1.7;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: transparent;
  border: 1px solid var(--border);
}

.category-card {
  background: var(--white);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: background 0.2s;
}
.category-card:hover { background: var(--snow); }
.category-card:hover .category-card-img { filter: brightness(0.95); }

.category-card-img {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: var(--stone);
  transition: filter 0.25s;
}
.category-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.category-card:hover .category-card-img img { transform: scale(1.04); }

.category-card-img.img-missing img { display: none; }
.category-card-img.img-missing::before {
  content: 'Dodaj fotografiju';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--cool-gray);
}

.category-card-body {
  padding: 24px 26px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.category-card-count {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cool-gray);
  margin-bottom: 8px;
}

.category-card h3 {
  font-family: var(--sans);
  font-size: 21px;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.category-card p {
  font-size: 13px;
  color: var(--warm-gray);
  line-height: 1.65;
  margin-bottom: 20px;
  flex: 1;
}

.category-card-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--rust);
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.category-card:hover .category-card-link { gap: 10px; }

/* ==============================
   PAGE HERO (tepisi / posudje / dekoracija)
============================== */
.page-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--warm-gray);
  font-size: 12px;
  letter-spacing: 0.4px;
  margin-bottom: 26px;
  transition: color 0.18s;
}
.back-link::before { content: '←'; font-size: 14px; }
.back-link:hover { color: var(--rust); }

.page-hero h1 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(30px, 4.5vw, 56px);
  letter-spacing: -1.5px;
  line-height: 1.05;
  color: var(--charcoal);
  margin-bottom: 16px;
}
.page-hero h1 em {
  font-style: normal;
  color: var(--rust);
}

.page-desc {
  font-size: 15px;
  color: var(--warm-gray);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 28px;
}

.page-hero-meta {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.meta-item { display: flex; flex-direction: column; gap: 4px; }
.meta-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 700;
}
.meta-value {
  font-size: 14px;
  color: var(--charcoal);
  font-weight: 600;
}

/* ==============================
   PRODUCT GRID (category pages)
============================== */
.section-products { padding: 56px 0 96px; background: transparent; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  background: transparent;
  border: none;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(44, 36, 32, 0.05);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.product-card:hover {
  box-shadow: 0 8px 20px rgba(44, 36, 32, 0.1);
  transform: translateY(-2px);
}

.product-card:hover .product-img { filter: brightness(0.95); }
.product-card:hover .product-info { background: var(--snow); }

.product-img {
  height: 230px;
  position: relative;
  overflow: hidden;
  background: var(--mist);
  cursor: zoom-in;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.4s ease;
}

.product-img img { opacity: 1; z-index: 1; }
.product-img img:nth-of-type(2) { opacity: 0; z-index: 2; }
.product-card:hover .product-img img:nth-of-type(2) { opacity: 1; }

/* Opis materijala/uzorka koji iskrsne preko slike na hover */
.product-img-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background: linear-gradient(to top, rgba(44,36,32,0.7), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.product-card:hover .product-img-overlay { opacity: 1; }
.product-img-overlay p {
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.5;
}

.product-img::after {
  content: '⊕';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  font-size: 26px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  pointer-events: none;
  z-index: 4;
}
.product-card:hover .product-img::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Shown automatically if an <img src> is missing or fails to load */
.product-img.img-missing { cursor: default; }
.product-img.img-missing img { display: none; }
.product-img.img-missing::after { display: none; }
.product-img.img-missing .product-img-overlay { display: none; }
.product-img.img-missing::before {
  content: 'Dodaj fotografiju';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--cool-gray);
}

.product-info {
  padding: 16px 18px 18px;
  transition: background 0.2s;
}

.product-tag {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cool-gray);
  margin-bottom: 6px;
}

.product-info h3 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--charcoal);
  letter-spacing: -0.2px;
  line-height: 1.3;
}

.product-desc {
  font-size: 12px;
  color: var(--cool-gray);
  margin-bottom: 14px;
  line-height: 1.5;
}

.product-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.price {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: -0.5px;
}

.sizes { font-size: 11px; color: var(--cool-gray); }
.product-note { font-size: 11px; color: var(--cool-gray); }

.badge-new, .badge-sale {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  background: var(--rust-pale);
  color: var(--rust);
  border: 1px solid var(--rust-soft);
}

.catalog-note {
  margin-top: 24px;
  font-size: 12px;
  color: var(--cool-gray);
}

/* ==============================
   PAGE CTA (visit / contact band on category pages)
============================== */
.page-cta {
  padding: 56px 0;
  background: rgba(243, 241, 238, 0.2);
  border-top: 1.5px solid var(--charcoal);
  border-bottom: 1.5px solid var(--charcoal);
}

.page-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.page-cta h2 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: -0.8px;
  color: var(--charcoal);
  margin: 6px 0 6px;
}
.page-cta p { font-size: 13px; color: var(--warm-gray); }
.page-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ==============================
   LOKACIJA
============================== */
.section-location {
  padding: 96px 0;
  background: rgba(243, 241, 238, 0.2);
  border-top: 1.5px solid var(--charcoal);
  border-bottom: 1.5px solid var(--charcoal);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: stretch;
  min-height: 380px;
}

.location-info h2 {
  font-family: var(--sans);
  font-size: clamp(24px, 2.8vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 32px;
  color: var(--charcoal);
  letter-spacing: -1px;
}

.location-details {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.location-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.loc-icon {
  font-size: 15px;
  color: var(--rust);
  flex-shrink: 0;
  width: 18px;
  text-align: center;
  margin-top: 3px;
}

.location-row strong {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cool-gray);
  margin-bottom: 3px;
}

.location-row p {
  font-size: 14px;
  color: var(--charcoal);
  line-height: 1.6;
}

.map-frame {
  overflow: hidden;
  border: 1.5px solid var(--charcoal);
  min-height: 340px;
}
.map-frame iframe { display: block; }

/* ==============================
   KONTAKT
============================== */
.section-contact {
  padding: 96px 0;
  background: var(--charcoal);
}

.section-contact .label {
  color: var(--rust-soft);
  font-size: 22px;
  letter-spacing: 3px;
  font-weight: 700;
}

.contact-inner { max-width: 580px; }

.contact-inner h2 {
  font-family: var(--sans);
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.05;
  letter-spacing: -1.5px;
}

.section-contact .btn-primary {
  background: var(--rust);
  border-color: var(--rust);
}
.section-contact .btn-primary:hover {
  background: var(--rust-soft);
  border-color: var(--rust-soft);
}

.contact-list {
  list-style: none;
  margin: 36px 0 28px;
  padding: 0;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 18px;
  line-height: 1.9;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.contact-list li:last-child { border-bottom: none; }

.contact-icon {
  color: var(--rust-soft);
  flex-shrink: 0;
  transition: color 0.2s ease;
}
.contact-list li:hover .contact-icon { color: var(--rust); }

.contact-list-value {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}
.contact-list-value:hover,
.contact-list-value:visited,
.contact-list-value:active { color: var(--white); text-decoration: none; }
.contact-list-value:hover { color: var(--rust-soft); }

.contact-address {
  margin-top: 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.3px;
}

/* ==============================
   FOOTER
============================== */
footer {
  background: var(--charcoal);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: rgba(255,255,255,0.8);
}
.footer-logo span { font-weight: 300; letter-spacing: 2px; }

footer p {
  font-size: 12px;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.2px;
}
.footer-copy { font-size: 11px !important; }

/* ==============================
   LIGHTBOX (category pages, only used when a product has a real photo)
============================== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(24, 19, 16, 0.94);
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

.lb-close {
  position: absolute;
  top: 24px; right: 30px;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.lb-close:hover { opacity: 1; }

.lb-prev, .lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: #fff;
  cursor: pointer;
  background: rgba(255,255,255,0.12);
  border: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
}
.lb-prev { left: 24px; }
.lb-next { right: 24px; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.22); }

.lb-counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 1.5px;
}

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 900px) {
  .container { padding: 0 28px; }
  .header-top, .header-bottom { padding-left: 28px; padding-right: 28px; }
  .hero { padding: 60px 28px 0; }
  .hero-pattern { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .category-grid { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  .map-frame { min-height: 260px; }
  .page-cta-inner { flex-direction: column; align-items: flex-start; }
  footer { padding: 24px 28px; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .header-top { padding: 12px 18px 0; }
  .header-bottom { padding: 0 18px 12px; }
  .header-tagline { display: none; }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1.5px solid var(--charcoal);
    padding: 12px 18px 16px;
    flex-direction: column;
  }
  nav.open { display: flex; }
  nav a { margin: 8px 0; font-size: 14px; border-bottom: none; }
  .nav-toggle { display: block; }

  .hero { padding: 48px 18px 0; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .stat:last-child { grid-column: span 2; border-top: 1px solid var(--border); padding-top: 16px; }
  .stat:not(:first-child) { padding-left: 0; }
  .stat { padding-right: 0; border-right: none; }

  .section-about, .section-catalog,
  .section-location, .section-contact,
  .section-products { padding: 60px 0; }
  .page-hero { padding: 44px 0 32px; }
  .page-cta { padding: 40px 0; }

  .product-grid, .category-grid { grid-template-columns: 1fr 1fr; }
  footer { padding: 22px 18px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}

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

/* Cijene po dimenzijama: cijena lijevo, dimenzija desno (kompaktno) */
.product-footer.has-rows {
  display: block;
  padding-top: 8px;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 0;
  border-bottom: 1px dashed var(--border);
  line-height: 1.3;
}
.price-row:last-child { border-bottom: none; }

.row-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.2px;
}

.row-size {
  font-size: 11px;
  color: var(--warm-gray);
  text-align: right;
}

.product-desc { margin-bottom: 8px; }

/* Veće slike na karticama */
.product-img { height: 320px; }

@media (max-width: 640px) {
  .product-img { height: 240px; }
}

/* Velike sekcije sa proizvodima se ne smiju sakriti reveal efektom */
.section-products.reveal {
  opacity: 1;
  transform: none;
}

/* Na uređajima bez hover-a (telefoni) ne koristi hover efekte */
@media (hover: none) {
  .product-card:hover { transform: none; }
  .product-card:hover .product-img { filter: none; }
  .product-card:hover .product-img img:nth-of-type(2) { opacity: 0; }
  .product-card:hover .product-img-overlay { opacity: 0; }
  .product-card:hover .product-img::after { opacity: 0; }
}