/*
Theme Name: Cvećara Lešće
Theme URI: https://cvecezagroblje.com
Author: Custom Theme
Description: WordPress tema za cvećaru za groblje i sahrane, sa WooCommerce podrškom.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: cvecara-lesce
Tags: woocommerce, shop, funeral, flowers
*/

/* =========================================================
   CSS VARIABLES
   ========================================================= */
:root {
  --g-dark:         #1a2520;
  --g-green:        #2C4A3E;
  --g-green-light:  #3a6054;
  --g-gold:         #C9A96E;
  --g-gold-dark:    #a8844a;
  --g-cream:        #F5F0E8;
  --g-border:       #d4c9b8;
  --g-text:         #2D2D2D;
  --g-text-muted:   #6b6560;
  --g-footer:       #111810;
  --g-burgundy:     #6B2737;
  --g-white:        #ffffff;
}

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

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

body {
  font-family: 'Source Sans 3', Georgia, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  color: var(--g-text);
  background: var(--g-white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--g-text); text-decoration: none; transition: color 0.2s, opacity 0.2s; }
a:hover { opacity: 0.85; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  line-height: 1.3;
  color: var(--g-text);
}

h1 { font-size: clamp(26px, 4vw, 38px); }
h2 { font-size: clamp(22px, 3vw, 30px); }
h3 { font-size: clamp(18px, 2.5vw, 24px); }
h4 { font-size: 20px; }
h5 { font-size: 17px; }
h6 { font-size: 15px; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

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

.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* =========================================================
   HEADER — TOP BAR
   ========================================================= */
.site-header {
  background: var(--g-white);
  border-bottom: 1px solid var(--g-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo */
.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.site-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.site-logo-svg {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.site-title-wrap { line-height: 1.25; }

.site-title {
  display: block;
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1.5px;
  color: var(--g-text);
}

.site-tagline {
  display: block;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--g-text-muted);
}

/* Header icons */
.header-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--g-text);
  transition: color 0.2s;
}

.header-icon:hover { color: var(--g-gold); }
.header-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.cart-icon-wrap {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -7px;
  right: -7px;
  background: var(--g-gold);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: sans-serif;
}

.cart-count:empty, .cart-count.zero { display: none; }

/* =========================================================
   NAVIGATION
   ========================================================= */
.site-nav-wrap {
  background: var(--g-green);
}

.site-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
}

.main-navigation {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  flex: 1;
}

.main-navigation li a {
  display: block;
  padding: 13px 14px;
  color: rgba(255,255,255,0.85);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 400;
  transition: color 0.2s;
  white-space: nowrap;
}

.main-navigation li a:hover,
.main-navigation li.current-menu-item > a,
.main-navigation li.current_page_item > a,
.main-navigation li.current-menu-ancestor > a {
  color: var(--g-gold);
  opacity: 1;
}

.nav-phone-btn a {
  background: var(--g-gold) !important;
  color: white !important;
  padding: 13px 20px !important;
  font-weight: 600 !important;
  font-size: 12px !important;
}

.nav-phone-btn a:hover { background: var(--g-gold-dark) !important; opacity: 1; }

/* Hamburger / X toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  color: white;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 1100;
  position: relative;
}

.menu-toggle svg { width: 26px; height: 26px; fill: none; stroke: white; stroke-width: 2; stroke-linecap: round; }

/* Mobile menu overlay backdrop */
.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1050;
}
.menu-overlay.open { display: block; }

/* =========================================================
   FLOATING BUTTONS
   ========================================================= */
.floating-buttons {
  position: fixed;
  bottom: 0;
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding-bottom: 16px;
}

.floating-radno {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(20, 30, 24, 0.95);
  color: #ccc;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 400;
  backdrop-filter: blur(4px);
}

.floating-radno svg { width: 14px; height: 14px; fill: none; stroke: var(--g-gold); stroke-width: 2; stroke-linecap: round; flex-shrink: 0; }

.floating-tel {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--g-dark);
  color: white;
  padding: 10px 18px;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.floating-tel:hover { background: var(--g-green); color: white; opacity: 1; }
.floating-tel svg { width: 16px; height: 16px; fill: none; stroke: white; stroke-width: 2; stroke-linecap: round; flex-shrink: 0; }

/* =========================================================
   CART DRAWER
   ========================================================= */
.cart-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 9998;
}

.cart-drawer-overlay.open { display: block; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: -340px;
  width: 320px;
  height: 100%;
  background: white;
  border-left: 1px solid var(--g-border);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
  box-shadow: -4px 0 20px rgba(0,0,0,0.12);
}

.cart-drawer.open { right: 0; }

.cart-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--g-border);
  flex-shrink: 0;
}

.cart-drawer-head h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--g-text);
  font-family: Georgia, serif;
}

.cart-drawer-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--g-text-muted);
  line-height: 1;
  padding: 0 4px;
  cursor: pointer;
}

.cart-drawer-close:hover { color: var(--g-text); }

.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px;
}

.cart-drawer-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--g-border);
  align-items: center;
}

.cart-drawer-thumb {
  width: 60px;
  height: 60px;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--g-border);
  flex-shrink: 0;
}

.cart-drawer-thumb img { width: 100%; height: 100%; object-fit: cover; }

.cart-drawer-info { flex: 1; }
.cart-drawer-info .item-name { font-size: 13px; font-weight: 600; color: var(--g-text); display: block; margin-bottom: 4px; }
.cart-drawer-info .item-price { font-size: 12px; color: var(--g-text-muted); }

.cart-drawer-remove {
  background: none;
  border: none;
  color: #bbb;
  cursor: pointer;
  font-size: 18px;
  padding: 2px;
  flex-shrink: 0;
}

.cart-drawer-remove:hover { color: var(--g-burgundy); }

.cart-drawer-footer {
  padding: 20px;
  border-top: 1px solid var(--g-border);
  flex-shrink: 0;
}

.cart-drawer-total {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  color: var(--g-text);
  margin-bottom: 16px;
}

.btn-drawer-cart {
  display: block;
  width: 100%;
  background: var(--g-dark);
  color: white;
  text-align: center;
  padding: 13px;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  border: none;
  border-radius: 2px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-drawer-cart:hover { background: var(--g-green); color: white; opacity: 1; }

.btn-drawer-checkout {
  display: block;
  width: 100%;
  background: var(--g-green);
  color: white;
  text-align: center;
  padding: 13px;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-drawer-checkout:hover { background: var(--g-green-light); color: white; opacity: 1; }

.cart-drawer-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--g-text-muted);
  font-size: 14px;
}

/* =========================================================
   BUTTONS (global)
   ========================================================= */
.btn {
  display: inline-block;
  padding: 11px 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-align: center;
  font-family: inherit;
  text-decoration: none;
}

.btn-primary {
  background: var(--g-green);
  color: white;
}
.btn-primary:hover { background: var(--g-green-light); color: white; opacity: 1; }

.btn-gold {
  background: var(--g-gold);
  color: white;
}
.btn-gold:hover { background: var(--g-gold-dark); color: white; opacity: 1; }

.btn-outline {
  background: white;
  color: var(--g-text);
  border: 1px solid var(--g-border);
}
.btn-outline:hover { border-color: var(--g-gold); color: var(--g-gold-dark); opacity: 1; }

.btn-dark {
  background: var(--g-dark);
  color: white;
}
.btn-dark:hover { background: var(--g-green); color: white; opacity: 1; }

/* =========================================================
   HERO / PAGE HEADER
   ========================================================= */
.page-hero {
  background: var(--g-white);
  padding: 52px 24px 40px;
  text-align: center;
  border-bottom: 1px solid var(--g-border);
}

.page-hero h1 {
  font-weight: 300;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.page-hero p {
  color: var(--g-text-muted);
  font-size: 15px;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.8;
}

/* =========================================================
   CATEGORY CARDS (homepage)
   ========================================================= */
.categories-section {
  background: var(--g-white);
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--g-border);
}

.section-title {
  text-align: center;
  font-weight: 300;
  letter-spacing: 1px;
  margin-bottom: 28px;
  color: var(--g-text);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.category-card {
  background: var(--g-cream);
  border: 1px solid var(--g-border);
  border-radius: 3px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.2s;
  display: block;
}

.category-card:hover { border-color: var(--g-gold); opacity: 1; }

.category-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}

.category-card .cat-label {
  display: block;
  padding: 10px 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--g-text);
  text-align: center;
  background: var(--g-white);
  border-top: 1px solid var(--g-border);
}

/* =========================================================
   ABOUT SECTION (homepage)
   ========================================================= */
.about-section {
  background: var(--g-cream);
  padding: 56px 0;
  text-align: center;
}

.about-section h2 { font-weight: 300; margin-bottom: 18px; font-family: Georgia, serif; }
.about-section p { color: var(--g-text-muted); max-width: 720px; margin: 0 auto 12px; font-size: 15px; line-height: 1.8; }

/* =========================================================
   LOKACIJE (homepage)
   ========================================================= */
.lokacije-section {
  background: var(--g-white);
  padding: 48px 0;
  border-top: 1px solid var(--g-border);
}

.lokacije-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.lokacija-item {
  border: 1px solid var(--g-border);
  padding: 12px 8px;
  text-align: center;
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--g-text-muted);
  font-weight: 600;
  border-radius: 2px;
  background: var(--g-cream);
}

/* =========================================================
   PRODUCTS GRID (homepage featured + shop)
   ========================================================= */
.products-section {
  padding: 56px 0;
  background: var(--g-cream);
}

.products-section.bg-white { background: var(--g-white); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.product-card {
  background: var(--g-white);
  border: 1px solid var(--g-border);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.product-card:hover { border-color: var(--g-gold); }

.product-card-image {
  display: block;
  height: 200px;
  overflow: hidden;
}

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

.product-card:hover .product-card-image img { transform: scale(1.04); }

.product-card-body {
  padding: 14px;
  background: #f5f3ef;
}

.product-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.product-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--g-text);
}

.product-card-price {
  font-size: 14px;
  color: var(--g-green);
  font-weight: 600;
}

.product-card-actions { display: flex; flex-direction: column; gap: 6px; }

.btn-add-to-cart {
  width: 100%;
  background: var(--g-green);
  color: white;
  border: none;
  padding: 9px 12px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  font-family: inherit;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background 0.2s;
  text-decoration: none;
}

.btn-add-to-cart:hover { background: var(--g-green-light); color: white; opacity: 1; }
.btn-add-to-cart svg { width: 14px; height: 14px; fill: none; stroke: white; stroke-width: 2; stroke-linecap: round; flex-shrink: 0; }

.btn-call-order {
  width: 100%;
  background: var(--g-white);
  color: var(--g-text);
  border: 1px solid var(--g-border);
  padding: 8px 12px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  font-family: inherit;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
}

.btn-call-order:hover { border-color: var(--g-gold); color: var(--g-gold-dark); opacity: 1; }
.btn-call-order svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; flex-shrink: 0; }

/* =========================================================
   DOSTAVA SECTION (homepage)
   ========================================================= */
.dostava-section {
  background: var(--g-white);
  padding: 56px 0;
  border-top: 1px solid var(--g-border);
}

.dostava-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.dostava-text h2 { font-weight: 300; margin-bottom: 18px; }
.dostava-text p { color: var(--g-text-muted); font-size: 15px; line-height: 1.8; margin-bottom: 12px; }

.dostava-img { border-radius: 4px; overflow: hidden; border: 1px solid var(--g-border); }
.dostava-img img { width: 100%; height: 320px; object-fit: cover; }

/* =========================================================
   ODRZAVANJE SECTION (homepage)
   ========================================================= */
.odrzavanje-section {
  background: var(--g-cream);
  padding: 56px 0;
  text-align: center;
  border-top: 1px solid var(--g-border);
}

.odrzavanje-section h2 { font-weight: 300; margin-bottom: 14px; }
.odrzavanje-section p { color: var(--g-text-muted); max-width: 680px; margin: 0 auto 24px; font-size: 15px; line-height: 1.8; }

.usluge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 28px;
}

.usluga-item {
  border: 1px solid var(--g-border);
  padding: 16px 12px;
  text-align: center;
  border-radius: 3px;
  background: var(--g-white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--g-text);
}

/* =========================================================
   SINGLE PRODUCT PAGE
   ========================================================= */
.single-product-page {
  padding: 48px 0 64px;
  background: var(--g-white);
}

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

.single-product-gallery {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--g-border);
}

.single-product-gallery img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.single-product-info h1 {
  font-size: 30px;
  font-weight: 400;
  margin-bottom: 12px;
  font-family: Georgia, serif;
}

.single-product-price {
  font-size: 26px;
  color: var(--g-green);
  font-weight: 600;
  margin-bottom: 20px;
}

.delivery-note {
  background: var(--g-cream);
  border-left: 3px solid var(--g-gold);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--g-text-muted);
  margin-bottom: 22px;
  border-radius: 2px;
  line-height: 1.5;
}

.product-quantity-wrap {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.qty-input {
  width: 68px;
  text-align: center;
  border: 1px solid var(--g-border);
  padding: 10px 8px;
  font-size: 16px;
  border-radius: 2px;
  font-family: inherit;
}

.qty-input:focus { outline: none; border-color: var(--g-green); }

.btn-add-to-cart-single {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--g-green);
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  font-family: inherit;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-add-to-cart-single:hover { background: var(--g-green-light); }
.btn-add-to-cart-single svg { width: 16px; height: 16px; fill: none; stroke: white; stroke-width: 2; stroke-linecap: round; }

.product-meta {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--g-border);
}

.product-meta p {
  font-size: 13px;
  color: var(--g-text-muted);
  margin-bottom: 5px;
}

.product-meta strong { color: var(--g-text); }

.product-description {
  margin-top: 28px;
  background: var(--g-cream);
  padding: 20px;
  border-radius: 3px;
}

.product-description h3 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  color: var(--g-text);
  font-family: inherit;
}

.product-description p { font-size: 14px; color: var(--g-text-muted); line-height: 1.8; }

/* =========================================================
   SHOP PAGE (archive)
   ========================================================= */
.shop-page {
  padding: 48px 0 64px;
  background: var(--g-white);
}

.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--g-border);
}

.shop-header h1 { font-size: 28px; font-weight: 300; margin: 0; }

.shop-result-count {
  font-size: 13px;
  color: var(--g-text-muted);
}

/* =========================================================
   CART PAGE
   ========================================================= */
.cart-page {
  padding: 48px 0 64px;
  background: var(--g-white);
}

.cart-page h1 { font-size: 28px; font-weight: 300; margin-bottom: 28px; }

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

.cart-table-wrap {
  border: 1px solid var(--g-border);
  border-radius: 3px;
  overflow: hidden;
}

.cart-table-head {
  display: grid;
  grid-template-columns: 3fr 1fr 1fr 44px;
  background: var(--g-cream);
  padding: 12px 18px;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--g-text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--g-border);
}

.cart-table-row {
  display: grid;
  grid-template-columns: 3fr 1fr 1fr 44px;
  padding: 16px 18px;
  align-items: center;
  border-bottom: 1px solid var(--g-border);
}

.cart-table-row:last-child { border-bottom: none; }

.cart-product-cell {
  display: flex;
  gap: 14px;
  align-items: center;
}

.cart-thumb {
  width: 60px;
  height: 60px;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--g-border);
  flex-shrink: 0;
}

.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }

.cart-product-name { font-size: 14px; font-weight: 600; color: var(--g-text); display: block; margin-bottom: 3px; }
.cart-product-desc { font-size: 12px; color: var(--g-text-muted); }

.cart-price-cell {
  font-size: 14px;
  color: var(--g-green);
  font-weight: 600;
}

.cart-qty-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  background: var(--g-cream);
  border: 1px solid var(--g-border);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  font-family: inherit;
  transition: background 0.15s;
}

.qty-btn:hover { background: var(--g-border); }

.qty-num { font-size: 14px; min-width: 24px; text-align: center; }

.cart-remove-btn {
  background: none;
  border: none;
  color: #bbb;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 2px;
  transition: color 0.2s;
}

.cart-remove-btn:hover { color: var(--g-burgundy); }

/* Cart Summary box */
.cart-summary-box {
  background: var(--g-cream);
  border: 1px solid var(--g-border);
  border-radius: 3px;
  padding: 22px;
}

.cart-summary-box h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: var(--g-text);
  font-family: inherit;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--g-text-muted);
  margin-bottom: 10px;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 700;
  color: var(--g-text);
  border-top: 1px solid var(--g-border);
  padding-top: 14px;
  margin-top: 8px;
}

.btn-to-checkout {
  display: block;
  width: 100%;
  background: var(--g-gold);
  color: white;
  text-align: center;
  padding: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  margin-top: 18px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
  text-decoration: none;
}

.btn-to-checkout:hover { background: var(--g-gold-dark); color: white; opacity: 1; }

/* =========================================================
   CHECKOUT PAGE
   ========================================================= */
.checkout-page {
  padding: 48px 0 64px;
  background: var(--g-white);
}

.checkout-page h1 { font-size: 28px; font-weight: 300; margin-bottom: 28px; }

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
  width: 100%;
}

/* Checkout page — override container max-width to go wider */
.checkout-page {
  padding: 48px 0 64px;
  background: var(--g-white);
}

.checkout-page > .container,
.woocommerce-checkout-page > .container {
  max-width: 100%;
  padding: 0 40px;
}

.checkout-form-section label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--g-text);
  margin-bottom: 7px;
}

.checkout-form-section .required { color: var(--g-burgundy); }

.checkout-form-section input[type="text"],
.checkout-form-section input[type="tel"],
.checkout-form-section input[type="email"],
.checkout-form-section textarea {
  width: 100%;
  border: 1px solid var(--g-border);
  padding: 11px 15px;
  font-size: 15px;
  border-radius: 2px;
  margin-bottom: 18px;
  background: white;
  color: var(--g-text);
  font-family: inherit;
  transition: border-color 0.2s;
}

.checkout-form-section input:focus,
.checkout-form-section textarea:focus {
  outline: none;
  border-color: var(--g-green);
}

.checkout-form-section .form-row { margin-bottom: 0; }
.checkout-form-section .form-row label { margin-bottom: 6px; }

.dostava-note-box {
  background: var(--g-cream);
  border-left: 3px solid var(--g-green);
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--g-text);
  margin-bottom: 20px;
  border-radius: 2px;
}

.checkout-radio-group { margin-bottom: 20px; }

.checkout-radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--g-text);
  cursor: pointer;
}

.checkout-radio-label input[type="radio"] { width: auto; margin: 0; }

/* Order summary sidebar */
.order-review-box {
  background: var(--g-cream);
  border: 1px solid var(--g-border);
  border-radius: 3px;
  padding: 22px;
  margin-bottom: 18px;
}

.order-review-box h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: var(--g-text);
  font-family: inherit;
}

.order-review-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--g-text-muted);
  margin-bottom: 10px;
}

.order-review-row.header { font-weight: 700; color: var(--g-text); margin-bottom: 6px; }
.order-review-divider { border: none; border-top: 1px solid var(--g-border); margin: 8px 0 14px; }

.order-review-total {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  color: var(--g-text);
  border-top: 1px solid var(--g-border);
  padding-top: 14px;
  margin-top: 8px;
}

/* Payment methods */
.payment-methods-box {
  background: var(--g-cream);
  border: 1px solid var(--g-border);
  border-radius: 3px;
  padding: 20px;
}

.payment-methods-box h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--g-text);
  font-family: inherit;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--g-text);
  cursor: pointer;
}

.payment-option input[type="radio"] { flex-shrink: 0; }

.payment-desc-text {
  background: white;
  border: 1px solid var(--g-border);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--g-text-muted);
  border-radius: 2px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.payment-logos {
  font-size: 11px;
  color: var(--g-text-muted);
  margin-top: 4px;
  padding-left: 24px;
  letter-spacing: 0.5px;
}

.btn-place-order {
  display: block;
  width: 100%;
  background: var(--g-green);
  color: white;
  text-align: center;
  padding: 15px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  margin-top: 18px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.btn-place-order:hover { background: var(--g-green-light); }

/* =========================================================
   BLOG / ARTICLES
   ========================================================= */
.blog-page {
  padding: 48px 0 64px;
  background: var(--g-white);
}

.blog-page h1 { text-align: center; font-weight: 300; margin-bottom: 36px; }

.blog-list { max-width: 780px; margin: 0 auto; }

.blog-list-item {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 24px;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--g-border);
}

.blog-list-item:last-child { border-bottom: none; margin-bottom: 0; }

.blog-list-thumb {
  height: 138px;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--g-border);
}

.blog-list-thumb img { width: 100%; height: 100%; object-fit: cover; }

.blog-list-body { }

.blog-list-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--g-text);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.45;
  font-family: inherit;
  display: block;
  text-decoration: none;
}

.blog-list-title:hover { color: var(--g-green); opacity: 1; }

.blog-list-excerpt {
  font-size: 14px;
  color: var(--g-text-muted);
  line-height: 1.75;
  margin-bottom: 12px;
}

.read-more-link {
  font-size: 13px;
  color: var(--g-green);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--g-gold);
  padding-bottom: 2px;
  transition: color 0.2s;
}

.read-more-link:hover { color: var(--g-gold-dark); opacity: 1; }

/* Single post */
.single-post-page {
  padding: 48px 0 64px;
  background: var(--g-white);
}

.single-post-inner {
  max-width: 780px;
  margin: 0 auto;
}

.single-post-inner h1 { font-size: 30px; font-weight: 400; margin-bottom: 28px; line-height: 1.35; }
.single-post-inner h2 { font-size: 22px; font-weight: 600; margin: 28px 0 12px; font-family: inherit; }
.single-post-inner p { font-size: 15px; color: var(--g-text-muted); line-height: 1.85; margin-bottom: 18px; }
.single-post-inner strong { color: var(--g-text); font-weight: 600; }

/* =========================================================
   ODRZAVANJE PAGE
   ========================================================= */
.odrzavanje-page {
  padding: 48px 0 64px;
  background: var(--g-white);
}

.odrzavanje-page h1 { text-align: center; font-weight: 300; margin-bottom: 12px; }
.odrzavanje-page .subtitle { text-align: center; max-width: 580px; margin: 0 auto 36px; color: var(--g-text-muted); font-size: 15px; line-height: 1.8; }

.before-after-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.ba-card {
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--g-border);
}

.ba-card img { width: 100%; height: 220px; object-fit: cover; display: block; }

.ba-label {
  background: var(--g-cream);
  padding: 10px 14px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--g-text-muted);
  border-top: 1px solid var(--g-border);
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-page {
  padding: 48px 0 64px;
  background: var(--g-white);
}

.contact-page h1 { text-align: center; font-weight: 300; margin-bottom: 36px; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-info h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  color: var(--g-text);
  font-family: inherit;
}

.contact-info p { font-size: 15px; color: var(--g-text-muted); margin-bottom: 12px; line-height: 1.6; }
.contact-info a { color: var(--g-green); font-weight: 600; text-decoration: none; }
.contact-info a:hover { color: var(--g-gold-dark); opacity: 1; }

.radno-box {
  background: var(--g-cream);
  border-left: 3px solid var(--g-gold);
  padding: 16px 18px;
  border-radius: 2px;
  margin-top: 16px;
}

.radno-box p { font-size: 14px; color: var(--g-text-muted); margin-bottom: 6px; }
.radno-box strong { color: var(--g-text); }

.map-embed {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--g-border);
}

.map-embed iframe { width: 100%; height: 260px; display: block; border: none; }

.napomena-box {
  margin-top: 14px;
  background: var(--g-cream);
  padding: 14px 16px;
  border-radius: 3px;
  border: 1px solid var(--g-border);
  font-size: 13px;
  color: var(--g-text-muted);
  line-height: 1.6;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--g-footer);
  color: #888;
  padding: 52px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-col h5 {
  color: white;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 600;
  font-family: inherit;
}

.footer-hr {
  width: 28px;
  height: 1px;
  background: var(--g-gold);
  margin-bottom: 16px;
}

.footer-col p,
.footer-col a {
  font-size: 13px;
  color: #777;
  display: block;
  margin-bottom: 7px;
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--g-gold); opacity: 1; }

.footer-legal {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 11px;
  color: #444;
  text-align: center;
  line-height: 1.7;
}

.footer-bottom {
  padding: 16px 0 20px;
  text-align: center;
  font-size: 11px;
  color: #444;
}

.footer-bottom a { color: #666; }
.footer-bottom a:hover { color: var(--g-gold); opacity: 1; }

/* =========================================================
   BREADCRUMBS
   ========================================================= */
.breadcrumbs {
  padding: 14px 0;
  font-size: 12px;
  color: var(--g-text-muted);
  border-bottom: 1px solid var(--g-border);
  background: var(--g-white);
}

.breadcrumbs a { color: var(--g-text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--g-green); opacity: 1; }
.breadcrumbs span { margin: 0 6px; }

/* =========================================================
   WOOCOMMERCE OVERRIDES
   ========================================================= */
.woocommerce ul.products { margin: 0; padding: 0; }
.woocommerce ul.products li.product { margin: 0; padding: 0; float: none; width: auto; }

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering { display: none; }

/* WC notices */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  padding: 14px 18px;
  margin-bottom: 20px;
  border-radius: 3px;
  font-size: 14px;
  list-style: none;
}

.woocommerce-message { background: #e8f5e9; border-left: 3px solid var(--g-green); color: #2e7d32; }
.woocommerce-error { background: #fce4e4; border-left: 3px solid var(--g-burgundy); color: var(--g-burgundy); }
.woocommerce-info { background: var(--g-cream); border-left: 3px solid var(--g-gold); color: var(--g-text); }

.woocommerce-message .button,
.woocommerce-error .button {
  float: right;
  background: var(--g-green);
  color: white;
  padding: 6px 14px;
  font-size: 11px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  text-decoration: none;
}

/* =========================================================
   PAGINATION
   ========================================================= */
.pagination-wrap {
  text-align: center;
  margin-top: 36px;
}

.page-numbers {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-numbers a,
.page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--g-border);
  border-radius: 2px;
  font-size: 13px;
  color: var(--g-text);
  text-decoration: none;
  transition: 0.2s;
}

.page-numbers a:hover { border-color: var(--g-gold); color: var(--g-gold-dark); opacity: 1; }
.page-numbers .current { background: var(--g-green); color: white; border-color: var(--g-green); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .dostava-inner { gap: 28px; }
}

@media (max-width: 768px) {
  .header-top { padding: 12px 16px; }

  /* Nav becomes a slide-in full-screen panel */
  .site-nav-wrap { position: relative; }
  .site-nav { padding: 0; }

  .main-navigation {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: -300px;
    width: 260px;
    height: 100%;
    background: #3d6b5a;
    z-index: 1060;
    overflow-y: auto;
    transition: left 0.28s ease;
    padding-top: 16px;
    box-shadow: 4px 0 20px rgba(0,0,0,0.2);
  }

  .main-navigation.open { left: 0; }

  /* X close button inside the panel (injected by JS) */
  .menu-panel-close {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 12px 18px 8px;
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    flex-shrink: 0;
  }

  .main-navigation li { width: 100%; }
  .main-navigation li a {
    padding: 13px 24px;
    font-size: 12px;
    letter-spacing: 1.5px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: block;
    color: rgba(255,255,255,0.88);
  }
  .main-navigation li a:hover { color: var(--g-gold); background: rgba(255,255,255,0.05); opacity: 1; }
  .main-navigation li.current-menu-item > a { color: var(--g-gold); }

  .nav-phone-btn { display: block; }
  .nav-phone-btn a {
    background: var(--g-gold) !important;
    color: white !important;
    margin: 16px 16px 0 !important;
    border-radius: 2px !important;
    text-align: center !important;
    padding: 12px 16px !important;
  }

  /* Hamburger visible */
  .menu-toggle { display: flex; margin-left: auto; }

  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .lokacije-grid { grid-template-columns: repeat(2, 1fr); }
  .usluge-grid { grid-template-columns: repeat(2, 1fr); }

  .dostava-inner { grid-template-columns: 1fr; }
  .dostava-img { order: -1; }

  .single-product-inner { grid-template-columns: 1fr; gap: 28px; }
  .single-product-gallery img { height: 300px; }

  .cart-layout { grid-template-columns: 1fr; }
  .cart-table-head { display: none; }
  .cart-table-row { grid-template-columns: 1fr; gap: 10px; padding: 16px; }

  .checkout-layout { grid-template-columns: 1fr; }

  .blog-list-item { grid-template-columns: 1fr; }
  .blog-list-thumb { height: 200px; }

  .contact-layout { grid-template-columns: 1fr; }
  .before-after-grid { grid-template-columns: 1fr; }

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

  .floating-buttons { right: 10px; }
  .floating-radno { display: none; }
}

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr; }
  .lokacije-grid { grid-template-columns: repeat(2, 1fr); }
  .usluge-grid { grid-template-columns: 1fr; }

  .page-hero { padding: 32px 16px 24px; }
  .page-hero h1 { font-size: 24px; }

  .site-title { font-size: 13px; }
  .site-tagline { display: none; }

  .cart-drawer { width: 100%; right: -100%; }

  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
}
