/* =================================================================
   ABklime — WooCommerce stilovi
   (Default WC CSS je skinut — sve dolje su NAŠE klase/stilovi.)
   ================================================================= */

/* ---- Baza koju je WC default obezbjeđivao (sad mi) ---- */
/* Skriveni accessibility tekst */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; padding: 0; overflow: hidden;
  position: absolute !important; word-wrap: normal !important;
}
/* Zvjezdice za ocjene — bez zavisnosti od WC 'star' fonta */
.woocommerce-product-rating { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 0.9rem; }
.woocommerce-product-rating .woocommerce-review-link { color: var(--c-muted); }
.star-rating {
  display: inline-block; position: relative; overflow: hidden;
  width: 5.6em; height: 1.1em; line-height: 1.1; font-size: 1rem; flex: none;
  font-family: var(--f-sans); letter-spacing: 2px;
}
.star-rating::before { content: "★★★★★"; color: var(--c-line); position: absolute; left: 0; top: 0; }
.star-rating span { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; }
.star-rating span::before { content: "★★★★★"; color: #f5b301; }
/* AJAX loading overlay (add-to-cart, cart update) */
.blockUI.blockOverlay { position: relative; }
.blockUI.blockOverlay::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 28px; height: 28px;
  margin: -14px 0 0 -14px; border: 3px solid var(--c-line); border-top-color: var(--c-brand);
  border-radius: 50%; animation: abk-spin 0.7s linear infinite;
}
@keyframes abk-spin { to { transform: rotate(360deg); } }

.woocommerce-breadcrumb { color: var(--c-muted); font-size: 0.9rem; margin-bottom: 22px; }
.woocommerce-breadcrumb a { color: var(--c-brand-deep); }

/* Shop layout shell */
.woo-shell { width: 100%; }

/* Page heading */
.woocommerce-products-header__title, .page-title {
  font-size: clamp(1.8rem, 5vw, 2.6rem); margin-bottom: 8px;
}
.term-description, .woocommerce-products-header { margin-bottom: 24px; }

/* Result count + ordering */
.woocommerce-result-count { color: var(--c-muted); font-size: 0.9rem; }
.woocommerce-ordering select {
  font-family: inherit; padding: 10px 14px; border-radius: var(--r-pill);
  border: 1.5px solid var(--c-line); background: #fff; color: var(--c-ink); font-weight: 600;
}

/* ---- Product loop grid ---- */
.woocommerce ul.products, ul.products {
  display: grid !important; gap: var(--gap); margin: 0 0 40px !important; padding: 0; list-style: none;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 600px) { .woocommerce ul.products, ul.products { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .woocommerce ul.products.columns-4 { grid-template-columns: repeat(4, 1fr); } }

/* Kartica proizvoda (.prod-card markup i na shopu i na početnoj) */
.woocommerce ul.products li.product, ul.products li.product {
  width: auto !important; margin: 0 !important; float: none !important;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg);
  overflow: hidden; transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  display: flex; flex-direction: column; text-align: left; position: relative; padding: 0;
}
.woocommerce ul.products li.product:hover, ul.products li.product:hover {
  transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: transparent;
}
/* "added to cart" link ispod ikone — diskretno */
.woocommerce ul.products li.product .added_to_cart {
  display: block; margin: 0 16px 14px; font-size: 0.82rem; font-weight: 700; color: var(--c-brand-deep); text-align: center;
}

.woocommerce span.onsale, .onsale {
  background: var(--c-accent) !important; color: #042e3a !important; border-radius: var(--r-pill) !important;
  font-weight: 800 !important; min-height: auto; min-width: auto; padding: 5px 12px; line-height: 1;
  position: absolute; top: 12px; left: 12px; margin: 0;
}

/* ---- Single product (ABklime custom layout) ---- */
.abk-product { display: block; }
/* Neutrališi WooCommerce default layout (float + 48% širina) — mi koristimo CSS grid.
   Bez ovoga summary div ostaje zakucan na 48% ćelije i pravi prazninu desno. */
.abk-product .abk-product-media,
.abk-product .abk-product-summary { width: auto !important; float: none !important; margin: 0 !important; }
.abk-product-top { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; margin-bottom: 8px; }
.abk-product-media { position: relative; min-width: 0; }
.abk-product-summary { align-self: start; min-width: 0; }
.abk-product-bottom { margin-top: clamp(40px, 6vw, 72px); }
@media (min-width: 860px) {
  /* Slika manja, info kolona šira i raširena (kao na referenci ~42% : 58%) */
  .abk-product-top { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 44px; }
  /* Galerija ostaje u vidu dok skrolaš desnu kolonu (premium pattern) */
  .abk-product-media { position: sticky; top: 96px; align-self: start; }
}
@media (min-width: 1200px) {
  .abk-product-top { gap: 56px; }
}

/* Summary polish */
.abk-product-summary { display: flex; flex-direction: column; }
.abk-product-summary .abk-install-badge { align-self: flex-start; margin: 0 0 16px; }
.abk-product-summary .product_title { font-size: clamp(1.55rem, 3.2vw, 2.15rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 14px; }
.abk-product-summary p.price, .abk-product-summary span.price {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px;
  color: var(--c-ink) !important; font-weight: 800 !important; font-size: 2.1rem !important; line-height: 1; margin: 0 0 6px !important;
}
.abk-product-summary p.price .woocommerce-Price-currencySymbol { font-size: 0.6em; font-weight: 700; color: var(--c-ink-soft); }
.abk-product-summary p.price del { font-size: 1.05rem; font-weight: 600; color: var(--c-muted); opacity: 1; }
.abk-product-summary p.price ins { text-decoration: none; }
.abk-price-note { font-size: 0.85rem; color: var(--c-muted); margin: 0 0 18px; }
.abk-price-note strong { color: var(--c-brand-deep); font-weight: 700; }
.abk-product-summary .woocommerce-product-details__short-description {
  color: var(--c-ink-soft); font-size: 1.02rem; line-height: 1.6;
  margin: 0 0 22px; padding-bottom: 22px; border-bottom: 1px solid var(--c-line);
}
.abk-product-summary .woocommerce-product-details__short-description p:last-child { margin-bottom: 0; }
.abk-product-summary form.cart { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; margin: 0 0 14px; }
.abk-product-summary .quantity input.qty { width: 76px; padding: 0 12px; height: 54px; border: 1.5px solid var(--c-line); border-radius: var(--r-sm); text-align: center; font-weight: 700; font-size: 1.05rem; }
.abk-product-summary form.cart .single_add_to_cart_button { flex: 1; min-width: 200px; height: 54px; padding: 0 28px !important; font-size: 1.05rem; }
.abk-quote-btn { display: flex !important; width: 100%; margin: 0 0 4px; padding: 14px 24px !important; font-size: 0.98rem; }
.abk-quote-btn svg { width: 20px; height: 20px; }

/* Trust traka */
.abk-trust { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--c-line); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.abk-trust li { display: flex; align-items: center; gap: 11px; }
.abk-trust__ic { width: 38px; height: 38px; border-radius: 10px; background: var(--c-accent-soft); color: var(--c-brand-deep); display: grid; place-items: center; flex: none; }
.abk-trust__ic svg { width: 20px; height: 20px; }
.abk-trust strong { display: block; font-size: 0.92rem; color: var(--c-ink); }
.abk-trust span span, .abk-trust li > span:last-child { font-size: 0.82rem; color: var(--c-muted); line-height: 1.3; }
.abk-trust li > span:last-child { display: flex; flex-direction: column; }

/* Kontakt prečice */
.abk-single-contact { margin-top: 20px; padding: 16px 18px; background: var(--c-bg-soft); border-radius: var(--r-md); }
.abk-single-contact > span { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 12px; }
.abk-single-contact__btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- ABklime custom galerija ---- */
.abk-gallery { position: relative; }
.abk-gallery__main {
  margin: 0; border-radius: var(--r-lg); overflow: hidden;
  background: #fff; position: relative; aspect-ratio: 1/1;
  display: grid; place-items: center; border: 1px solid var(--c-line);
  box-shadow: var(--sh-sm); cursor: zoom-in;
  transition: box-shadow var(--t), border-color var(--t);
}
.abk-gallery__main:hover { box-shadow: var(--sh-md); border-color: var(--c-accent-soft); }
.abk-gallery__main a { display: block; width: 100%; height: 100%; }
.abk-gallery__img {
  width: 100%; height: 100%; object-fit: contain; padding: clamp(14px, 2vw, 22px);
  transition: opacity var(--t), transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.abk-gallery__main:hover .abk-gallery__img { transform: scale(1.04); }
.abk-gallery__zoom {
  position: absolute; top: 14px; right: 14px; width: 42px; height: 42px;
  border-radius: 50%; background: rgba(255,255,255,0.94);
  display: grid; place-items: center; font-size: 1.15rem; color: var(--c-brand-deep);
  box-shadow: var(--sh-sm); pointer-events: none; opacity: 0.85; transform: scale(0.9);
  transition: opacity var(--t), transform var(--t), background var(--t);
}
.abk-gallery__main:hover .abk-gallery__zoom { opacity: 1; transform: scale(1); background: #fff; color: var(--c-brand); }
.abk-gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.abk-gallery__thumb {
  padding: 0; border: 1.5px solid var(--c-line); border-radius: 12px; overflow: hidden;
  cursor: pointer; background: #fff; aspect-ratio: 1/1;
  transition: border-color var(--t), box-shadow var(--t), opacity var(--t); opacity: 0.7;
}
.abk-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8px; display: block; }
.abk-gallery__thumb:hover { opacity: 1; border-color: var(--c-accent); }
.abk-gallery__thumb.is-active { opacity: 1; border-color: var(--c-brand); box-shadow: 0 0 0 3px var(--c-accent-soft); }
.abk-gallery__thumb:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
@media (max-width: 859px) { .abk-gallery { position: static; } }

.single-product div.product .woocommerce-product-gallery { margin: 0; position: sticky; top: 88px; }
.single-product div.product .woocommerce-product-gallery__wrapper { border-radius: var(--r-lg); overflow: hidden; background: var(--c-bg-soft); margin: 0; }
.single-product div.product .woocommerce-product-gallery__image img { border-radius: var(--r-lg); }
.single-product div.product .woocommerce-product-gallery .flex-viewport { border-radius: var(--r-lg); overflow: hidden; }
/* Thumbnail navigacija */
.single-product .flex-control-thumbs { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px 0 0 !important; padding: 0; list-style: none; }
.single-product .flex-control-thumbs li { margin: 0; width: auto; float: none; }
.single-product .flex-control-thumbs li img { border-radius: 12px; border: 2px solid transparent; cursor: pointer; opacity: 0.55; transition: var(--t); width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.single-product .flex-control-thumbs li img.flex-active, .single-product .flex-control-thumbs li img:hover { opacity: 1; border-color: var(--c-brand); }
/* Zoom lupa */
.single-product .woocommerce-product-gallery__trigger { top: 14px; right: 14px; }
@media (max-width: 859px) { .single-product div.product .woocommerce-product-gallery { position: static; } }
.single-product div.product .product_title { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 12px; }
.single-product div.product p.price, .single-product div.product span.price {
  color: var(--c-ink) !important; font-weight: 800 !important; font-size: 1.8rem !important; margin-bottom: 16px;
}
.single-product .woocommerce-product-details__short-description { color: var(--c-ink-soft); }

.single-product div.product form.cart { margin: 24px 0; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.single-product div.product .quantity input.qty {
  width: 72px; padding: 14px; border: 1.5px solid var(--c-line); border-radius: var(--r-sm); text-align: center; font-weight: 700;
}
.single-product div.product form.cart .button, .woocommerce #respond input#submit, .woocommerce a.button:not(.prod-card__add), .woocommerce button.button.alt {
  background: linear-gradient(135deg, var(--c-brand), var(--c-brand-deep)) !important; color: #fff !important;
  border-radius: var(--r-pill) !important; font-weight: 700 !important; padding: 15px 30px !important;
  box-shadow: var(--sh-brand); border: none; transition: var(--t);
}
.woocommerce a.button:not(.prod-card__add):hover, .woocommerce button.button.alt:hover, .single-product div.product form.cart .button:hover { transform: translateY(-2px); }

.single-product .product_meta { font-size: 0.9rem; color: var(--c-muted); border-top: 1px solid var(--c-line); padding-top: 16px; margin-top: 8px; }

/* Dugme "Traži ponudu za ugradnju" ispod add-to-cart */
.abk-quote-btn { margin-top: 14px; }
.abk-quote-btn svg { width: 20px; height: 20px; }

/* "Uračunata ugradnja" badge */
.abk-install-badge {
  display: inline-flex; align-items: center; gap: 8px; background: var(--c-accent-soft); color: var(--c-brand-deep);
  padding: 10px 16px; border-radius: var(--r-pill); font-weight: 700; font-size: 0.9rem; margin: 0 0 18px;
}
.abk-install-badge svg { width: 18px; height: 18px; }

/* Tabs — segmented control (puna širina, ispod gornje 2-kolone sekcije) */
.abk-product-bottom > .woocommerce-tabs { padding-top: clamp(32px, 5vw, 48px); border-top: 1px solid var(--c-line); }
.woocommerce-tabs { grid-column: 1 / -1; margin-top: 0; }
.woocommerce-tabs ul.tabs {
  border: none; list-style: none; padding: 6px; margin: 0 0 4px; display: inline-flex; gap: 6px; flex-wrap: wrap;
  background: var(--c-bg-soft); border-radius: var(--r-pill);
}
.woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce-tabs ul.tabs li {
  border: none !important; border-radius: var(--r-pill) !important; background: transparent !important;
  padding: 0; margin: 0; transition: background var(--t);
}
.woocommerce-tabs ul.tabs li.active { background: #fff !important; box-shadow: var(--sh-sm); }
.woocommerce-tabs ul.tabs li a { color: var(--c-ink-soft) !important; font-weight: 700; padding: 10px 22px !important; font-size: 0.95rem; transition: color var(--t); }
.woocommerce-tabs ul.tabs li:hover a, .woocommerce-tabs ul.tabs li.active a { color: var(--c-brand-deep) !important; }
.woocommerce-tabs ul.tabs li::before, .woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce-Tabs-panel { padding-top: 30px; max-width: none; }
.woocommerce-Tabs-panel > :first-child { margin-top: 0; }
.woocommerce-Tabs-panel h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); letter-spacing: -0.02em; margin: 34px 0 14px; }
.woocommerce-Tabs-panel h3 { font-size: 1.15rem; margin: 26px 0 10px; }
.woocommerce-Tabs-panel p { color: var(--c-ink-soft); line-height: 1.75; margin-bottom: 14px; max-width: 78ch; }
.woocommerce-Tabs-panel a { color: var(--c-brand-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--c-accent-soft); }
.woocommerce-Tabs-panel a:hover { color: var(--c-brand); text-decoration-color: var(--c-brand); }
/* Liste u opisu — brendirani markeri umjesto sirovih disc bulleta */
.woocommerce-Tabs-panel ul, .woocommerce-Tabs-panel ol { margin: 0 0 18px; padding: 0; list-style: none; max-width: 78ch; }
.woocommerce-Tabs-panel ul li { position: relative; padding: 7px 0 7px 28px; color: var(--c-ink-soft); line-height: 1.6; border-bottom: 1px solid var(--c-line); }
.woocommerce-Tabs-panel ul li:last-child { border-bottom: none; }
.woocommerce-Tabs-panel ul li::before {
  content: ""; position: absolute; left: 6px; top: 0.95em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent);
  box-shadow: 0 0 0 4px var(--c-accent-soft);
}
.woocommerce-Tabs-panel ul li strong { color: var(--c-ink); font-weight: 700; }
.woocommerce-Tabs-panel ol { list-style: decimal; padding-left: 22px; }
.woocommerce-Tabs-panel ol li { padding: 5px 0; color: var(--c-ink-soft); }
/* Specifikacije tabela */
.woocommerce-product-attributes.shop_attributes { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--c-line); border-radius: var(--r-md); overflow: hidden; }
.woocommerce-product-attributes.shop_attributes tr:nth-child(even) { background: var(--c-bg-soft); }
.woocommerce-product-attributes.shop_attributes tr:hover { background: var(--c-bg-tint); }
.woocommerce-product-attributes.shop_attributes th, .woocommerce-product-attributes.shop_attributes td { padding: 13px 18px; text-align: left; border: none; border-bottom: 1px solid var(--c-line); font-size: 0.95rem; }
.woocommerce-product-attributes.shop_attributes tr:last-child th, .woocommerce-product-attributes.shop_attributes tr:last-child td { border-bottom: none; }
.woocommerce-product-attributes.shop_attributes th { width: 42%; font-weight: 700; color: var(--c-ink); background: transparent; }
.woocommerce-product-attributes.shop_attributes td { color: var(--c-ink-soft); }
.woocommerce-product-attributes.shop_attributes td p { margin: 0; }

/* Related / Upsells */
.related.products, .upsells.products {
  grid-column: 1 / -1; margin-top: clamp(40px, 6vw, 64px);
  padding-top: clamp(32px, 5vw, 48px); border-top: 1px solid var(--c-line);
}
.related.products > h2, .upsells.products > h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); letter-spacing: -0.02em; margin-bottom: 24px; }
.related.products, .upsells.products { width: 100%; }
/* Related uvijek lijevo poravnat, 3 kolone (ne tijesnih 4) */
.related.products ul.products, .upsells.products ul.products {
  width: 100%; justify-content: start; grid-template-columns: 1fr 1fr !important;
}
@media (min-width: 768px) { .related.products ul.products, .upsells.products ul.products { grid-template-columns: repeat(3, 1fr) !important; } }

/* ---- Mobilni single product ---- */
@media (max-width: 600px) {
  .abk-product-top { gap: 28px; }
  .abk-gallery__img { padding: 16px; }
  .abk-gallery__zoom { width: 36px; height: 36px; }
  .abk-product-summary p.price, .abk-product-summary span.price { font-size: 1.8rem !important; }
  .abk-product-summary form.cart { gap: 10px; }
  .abk-product-summary form.cart .single_add_to_cart_button { min-width: 0; flex: 1; padding: 0 18px !important; }
  .abk-trust { gap: 14px; padding-top: 16px; margin-top: 18px; }
  .abk-trust__ic { width: 34px; height: 34px; }
  .abk-single-contact { padding: 14px 16px; }
  .abk-single-contact__btns { flex-direction: column; }
  .abk-single-contact__btns .contact-chip { justify-content: center; width: 100%; }
  .woocommerce-tabs ul.tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; scrollbar-width: none; }
  .woocommerce-tabs ul.tabs::-webkit-scrollbar { display: none; }
  .woocommerce-tabs ul.tabs li { flex: none; }
  .woocommerce-product-attributes.shop_attributes th { width: 48%; }
  .woocommerce-product-attributes.shop_attributes th, .woocommerce-product-attributes.shop_attributes td { padding: 11px 14px; font-size: 0.9rem; }
}
@media (max-width: 380px) { .abk-trust { grid-template-columns: 1fr; } }

/* =================================================================
   Korpa i Checkout (WC default stilovi su skinuti — ovo je naše)
   ================================================================= */
/* Tabela (korpa + pregled narudžbe) */
.woocommerce table.shop_table {
  width: 100%; border-collapse: separate; border-spacing: 0; background: #fff;
  border: 1px solid var(--c-line); border-radius: var(--r-md); overflow: hidden;
}
.woocommerce table.shop_table th { background: var(--c-bg-soft); font-weight: 700; color: var(--c-ink); padding: 14px 16px; text-align: left; font-size: 0.9rem; }
.woocommerce table.shop_table td { padding: 16px; border-top: 1px solid var(--c-line); vertical-align: middle; color: var(--c-ink-soft); }
.woocommerce table.cart img { width: 64px; height: 64px; object-fit: contain; border-radius: var(--r-sm); border: 1px solid var(--c-line); background: #fff; }
.woocommerce table.cart .product-name a { color: var(--c-ink); font-weight: 700; }
.woocommerce table.cart .product-name a:hover { color: var(--c-brand-deep); }
.woocommerce .product-remove a.remove {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--c-bg-tint); color: var(--c-brand-deep) !important; font-size: 18px; line-height: 1; text-decoration: none;
}
.woocommerce .product-remove a.remove:hover { background: #ffe0e0; color: #c0392b !important; }
.woocommerce .quantity input.qty { width: 72px; height: 46px; text-align: center; border: 1.5px solid var(--c-line); border-radius: var(--r-sm); font-weight: 700; }

/* Akcije ispod korpe (kupon + ažuriraj) */
.woocommerce .cart .actions { padding: 16px; }
.woocommerce .cart .actions .coupon { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.woocommerce .cart .actions .coupon .input-text { height: 48px; padding: 0 14px; border: 1.5px solid var(--c-line); border-radius: var(--r-sm); min-width: 160px; }

/* Totali (kartica) */
.cart-collaterals { margin-top: 28px; display: grid; gap: 24px; }
@media (min-width: 860px) { .woocommerce-cart .cart-collaterals { grid-template-columns: 1fr minmax(340px, 420px); justify-content: end; } }
.cart_totals { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--sh-sm); }
.cart_totals h2 { font-size: 1.3rem; margin-bottom: 16px; }
.cart_totals table, .cart_totals table.shop_table { border: none; border-radius: 0; }
.cart_totals table th, .cart_totals table td { padding: 12px 0; border: none; border-bottom: 1px solid var(--c-line); background: transparent; }
.cart_totals tr.order-total th, .cart_totals tr.order-total td { border-bottom: none; font-size: 1.2rem; font-weight: 800; color: var(--c-ink); padding-top: 16px; }
.cart_totals .wc-proceed-to-checkout { padding-top: 18px; }
.cart_totals .wc-proceed-to-checkout .button { width: 100%; text-align: center; }

/* Prazna korpa — sakrij default WC tekst, prikaži samo našu karticu */
.woocommerce p.cart-empty, .wc-empty-cart-message, .woocommerce-cart .cart-empty { display: none !important; }
.abk-cart-empty {
  max-width: 600px; margin: 0 auto; text-align: center;
  padding: clamp(32px, 5vw, 52px) clamp(24px, 4vw, 40px);
  background: linear-gradient(180deg, #ffffff 0%, var(--c-bg-soft) 100%);
  border: 1px solid var(--c-line); border-radius: var(--r-xl); box-shadow: var(--sh-md);
}
.abk-cart-empty__ic {
  width: 84px; height: 84px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--c-accent-soft), #fff); color: var(--c-brand-deep); box-shadow: var(--sh-sm);
}
.abk-cart-empty__ic svg { width: 38px; height: 38px; }
.abk-cart-empty h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 10px; }
.abk-cart-empty p { color: var(--c-ink-soft); font-size: 1.05rem; line-height: 1.65; margin: 0 auto 26px; max-width: 46ch; }
.abk-cart-empty__btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.abk-cart-empty__chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }

/* Polja forme (checkout / nalog) */
.woocommerce form .form-row { margin-bottom: 14px; display: block; }
.woocommerce form .form-row label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--c-ink); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce-checkout select, .woocommerce .select2-container .select2-selection {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--c-line); border-radius: var(--r-sm); font-family: inherit; font-size: 1rem; background: #fff;
}
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus, .woocommerce-checkout select:focus { outline: 3px solid var(--c-accent); outline-offset: 1px; border-color: var(--c-brand); }

/* Checkout raspored */
@media (min-width: 900px) {
  form.checkout.woocommerce-checkout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: start; }
  form.checkout #customer_details { grid-column: 1; }
  form.checkout #order_review_heading, form.checkout #order_review { grid-column: 2; }
  form.checkout #order_review { position: sticky; top: 20px; }
}
.woocommerce-checkout h3, .woocommerce-checkout #order_review_heading { font-size: 1.25rem; margin: 0 0 16px; }
.woocommerce-checkout #order_review { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); overflow: hidden; }
.woocommerce-checkout #order_review .shop_table { border: none; border-radius: 0; }
.woocommerce-checkout #payment { background: var(--c-bg-soft); border-top: 1px solid var(--c-line); padding: 20px; }
.woocommerce-checkout #payment ul.payment_methods { list-style: none; margin: 0 0 14px; padding: 0; }
.woocommerce-checkout #payment ul.payment_methods li { padding: 8px 0; }
.woocommerce-checkout #payment .payment_box { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-sm); padding: 12px 14px; font-size: 0.9rem; color: var(--c-ink-soft); margin-top: 8px; }
.woocommerce-checkout #payment .place-order { margin-top: 14px; }
.woocommerce-checkout #payment .place-order .button { width: 100%; text-align: center; }

/* Moj nalog */
@media (min-width: 768px) { .woocommerce-account .woocommerce { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; } }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.woocommerce-MyAccount-navigation a { display: block; padding: 12px 16px; border-radius: var(--r-sm); font-weight: 600; color: var(--c-ink); }
.woocommerce-MyAccount-navigation .is-active a, .woocommerce-MyAccount-navigation a:hover { background: var(--c-bg-tint); color: var(--c-brand-deep); }

/* =================================================================
   Shop layout + Filteri
   ================================================================= */
.shop-layout { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
@media (min-width: 900px) { .shop-layout { grid-template-columns: 280px 1fr; gap: 36px; } }

.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--c-line);
}

/* Sidebar */
.shop-filters {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg);
  padding: 22px; box-shadow: var(--sh-sm); position: sticky; top: 88px;
}
.filter-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.filter-head strong { font-size: 1.15rem; }
.filter-clear { font-size: 0.85rem; font-weight: 700; color: var(--c-muted); }
.filter-clear:hover { color: var(--c-brand-deep); }

.filter-group { padding: 16px 0; border-top: 1px solid var(--c-line); }
.filter-group:first-of-type { border-top: none; padding-top: 0; }
.filter-title { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-muted); margin-bottom: 12px; }

/* Kategorije */
.filter-cats, .filter-subcats { list-style: none; margin: 0; padding: 0; }
.filter-cats > li > a {
  display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: var(--r-sm);
  font-weight: 700; color: var(--c-ink); font-size: 0.95rem;
}
.filter-cats > li > a:hover, .filter-cats a.is-active { background: var(--c-bg-tint); color: var(--c-brand-deep); }
.filter-cats span { font-size: 0.78rem; color: var(--c-muted); font-weight: 600; }
.filter-subcats { margin: 2px 0 6px 10px; padding-left: 10px; border-left: 1.5px solid var(--c-line); }
.filter-subcats a { display: flex; justify-content: space-between; padding: 6px 10px; border-radius: var(--r-sm); font-size: 0.9rem; color: var(--c-ink-soft); font-weight: 600; }
.filter-subcats a:hover, .filter-subcats a.is-active { background: var(--c-bg-tint); color: var(--c-brand-deep); }

/* Checkbox opcije */
.filter-options { display: grid; gap: 4px; }
.filter-check { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: var(--r-sm); cursor: pointer; transition: background var(--t); }
.filter-check:hover { background: var(--c-bg-soft); }
.filter-check input { position: absolute; opacity: 0; pointer-events: none; }
.filter-check__box {
  width: 22px; height: 22px; border: 1.5px solid var(--c-line); border-radius: 7px; flex: none;
  display: grid; place-items: center; background: #fff; transition: var(--t); color: #fff;
}
.filter-check__box svg { width: 14px; height: 14px; opacity: 0; transition: opacity var(--t); }
.filter-check input:checked + .filter-check__box { background: var(--c-brand); border-color: var(--c-brand); }
.filter-check input:checked + .filter-check__box svg { opacity: 1; }
.filter-check input:focus-visible + .filter-check__box { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.filter-check__label { font-size: 0.94rem; font-weight: 600; color: var(--c-ink); flex: 1; }
.filter-check__count { font-size: 0.78rem; color: var(--c-muted); font-weight: 600; }
.shop-filters .btn { margin-top: 18px; }

/* Aktivni filteri (chips) */
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.active-filter-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: var(--r-pill);
  background: var(--c-accent-soft); color: var(--c-brand-deep); font-weight: 700; font-size: 0.85rem;
}
.active-filter-chip a { color: var(--c-brand-deep); display: grid; place-items: center; }
.active-filter-chip a svg { width: 14px; height: 14px; }

/* Mobilni toggle + off-canvas panel */
.filters-mobile-toggle { display: none; margin-bottom: 18px; }
@media (max-width: 899px) {
  .filters-mobile-toggle { display: inline-flex; width: 100%; justify-content: center; }
  .shop-filters {
    display: block; position: fixed; inset: 0 0 0 auto;
    width: min(86vw, 360px); max-height: none; height: 100%;
    border-radius: 0; z-index: 200; transform: translateX(100%);
    transition: transform var(--t); box-shadow: var(--sh-lg); overflow-y: auto;
  }
  body.filters-open .shop-filters { transform: translateX(0); }
  body.filters-open::after { content: ""; position: fixed; inset: 0; z-index: 199; background: rgba(4,59,94,0.45); backdrop-filter: blur(2px); }
  body.filters-open { overflow: hidden; }
  .shop-filters .filter-head { position: sticky; top: 0; background: #fff; z-index: 1; margin: -24px -22px 8px; padding: 18px 22px; }
}

.shop-empty { text-align: center; padding: 60px 20px; }
.shop-empty svg { width: 56px; height: 56px; color: var(--c-brand); margin: 0 auto 16px; }
.shop-empty h3 { margin-bottom: 6px; }
.shop-empty p { color: var(--c-ink-soft); margin-bottom: 18px; }

/* Messages */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  border-radius: var(--r-md); border-top: none !important; padding: 16px 20px 16px 48px;
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--c-brand); }
