/* ==========================================================================
   Stranica proizvoda (Figma: 03 Product)
   ========================================================================== */
.hc-product__crumbs { padding-top: 24px; padding-bottom: 24px; }
.hc-product__main { display: grid; grid-template-columns: minmax(0, 712px) minmax(0, 520px); justify-content: space-between; gap: 64px; align-items: start; }

/* Galerija */
.hc-gallery { display: flex; gap: 16px; position: sticky; top: 104px; }
.admin-bar .hc-gallery { top: 136px; }
.hc-gallery__thumbs { display: flex; flex-direction: column; gap: 12px; width: 96px; margin: 0; padding: 0; list-style: none; flex: none; }
.hc-gallery__thumbs li { margin: 0; }
.hc-gallery__thumb { display: block; width: 96px; height: 120px; padding: 0; overflow: hidden; border: 1.5px solid transparent; border-radius: 10px; background: var(--hc-card); cursor: pointer; transition: border-color .2s; }
.hc-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.hc-gallery__thumb:hover { border-color: var(--hc-line); }
.hc-gallery__thumb.is-active { border-color: var(--hc-ink); }
.hc-gallery__main { position: relative; flex: 1; aspect-ratio: 600 / 760; overflow: hidden; border-radius: 16px; background: var(--hc-card); }
.hc-gallery__slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.hc-gallery__slide.is-active { opacity: 1; visibility: visible; }
.hc-gallery__slide img { width: 100%; height: 100%; object-fit: contain; }
.hc-gallery__badges { position: absolute; top: 20px; left: 20px; display: flex; gap: 6px; }
.hc-gallery__count { position: absolute; left: 20px; bottom: 24px; padding: 8px 14px; border-radius: 999px; background: var(--hc-white); font-size: 12px; font-weight: 600; line-height: 1; }
.hc-gallery__arrows { position: absolute; right: 20px; bottom: 20px; display: flex; gap: 8px; }
.hc-round { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--hc-line); border-radius: 999px; background: var(--hc-white); color: var(--hc-ink); cursor: pointer; transition: border-color .2s; }
.hc-round:hover { border-color: var(--hc-ink); }

/* Opis i kupovina */
.hc-summary { display: flex; flex-direction: column; gap: 28px; }
.hc-summary__head { display: flex; flex-direction: column; gap: 12px; padding-bottom: 28px; border-bottom: 1px solid var(--hc-line); }
.hc .hc-summary__cat { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--hc-mute); }
.hc .hc-summary__title { margin: 0; font-size: 44px; font-weight: 800; line-height: 46px; letter-spacing: -.045em; }
.hc-summary__price { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 0; }
.hc-price { font-size: 26px; font-weight: 600; line-height: 1.2; }
.hc-price del { font-size: 18px; font-weight: 400; color: var(--hc-mute); }
.hc-price ins { text-decoration: none; }
.hc-summary__price small { font-size: 13px; color: var(--hc-mute); }
.hc-summary__lead { font-size: 15px; line-height: 24px; color: var(--hc-ink-2); }
.hc-summary__lead p { margin: 0; }

/* Varijacije */
#top.hc form.cart { margin: 0; padding: 0; border: 0; background: none; }
#top.hc table.variations { width: 100%; margin: 0 0 24px; border: 0; background: none; border-collapse: collapse; }
#top.hc table.variations tbody, #top.hc table.variations tr, #top.hc table.variations th, #top.hc table.variations td { display: block; padding: 0; border: 0; background: none; text-align: left; }
#top.hc table.variations tr + tr { margin-top: 24px; }
#top.hc table.variations th.label { margin-bottom: 12px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.hc table.variations th.label label { font-weight: 600; }
.hc-select-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.hc-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.hc-opt { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; height: 48px; padding: 0 18px; border: 1px solid var(--hc-line); border-radius: 10px; background: var(--hc-white); color: var(--hc-ink); font: 500 14px/1 var(--hc-font); cursor: pointer; transition: border-color .2s, background .2s; }
.hc-opt:hover { border-color: var(--hc-ink); }
.hc-opt.is-selected { background: var(--hc-ink); border-color: var(--hc-ink); color: var(--hc-white); }
.hc-opt.is-disabled, .hc-opt[disabled] { color: #bdbdb8; text-decoration: line-through; cursor: not-allowed; }
.hc-opts--size .hc-opt { flex: 1 1 0; min-width: 52px; padding: 0 8px; }
.hc-opts--pill .hc-opt { border-radius: 999px; padding: 0 22px; }
.hc-opts--colour .hc-opt { min-width: 0; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1.5px solid transparent; }
.hc-opts--colour .hc-opt .hc-swatch { width: 30px; height: 30px; }
.hc-opts--colour .hc-opt.is-selected { background: none; border-color: var(--hc-ink); }

#top.hc .single_variation_wrap { margin: 0; padding: 0; width: auto; }
.hc .single_variation_wrap .woocommerce-variation-price { display: none; }
.hc .woocommerce-variation-availability p { margin: 0 0 12px; font-size: 13px; color: var(--hc-ink-2); }
.hc .woocommerce-variation-description { display: none; }
.hc .woocommerce-variation-add-to-cart, .hc form.cart:not(.variations_form) { display: flex; gap: 10px; align-items: center; margin: 0; }
#top.hc .single_add_to_cart_button { display: inline-flex; flex: 1; min-height: 56px; margin: 0; }
.hc .single_add_to_cart_button.disabled { opacity: .45; cursor: not-allowed; }

.hc-note { margin: 0; padding: 16px 20px; border-radius: 12px; background: var(--hc-soft); font-size: 14px; }

/* Dostava */
.hc-delivery { margin: 0; padding: 0; list-style: none; border: 1px solid var(--hc-line); border-radius: 16px; }
.hc-delivery li { display: flex; align-items: center; gap: 14px; margin: 0; padding: 14px 18px; }
.hc-delivery li + li { border-top: 1px solid var(--hc-line); }
.hc-delivery span { display: flex; flex-direction: column; gap: 2px; }
.hc-delivery strong { font-size: 14px; font-weight: 600; }
.hc-delivery small { font-size: 13px; color: var(--hc-mute); }

/* Complete the look */
.hc-look { padding-top: 120px; padding-bottom: 120px; }
.hc-look .hc-head-row { margin-bottom: 40px; }

@media (max-width: 1100px) {
	.hc-product__main { grid-template-columns: 1fr; }
	.hc-gallery { position: static; }
}
@media (max-width: 767px) {
	.hc-gallery { flex-direction: column-reverse; margin: 0 calc(var(--hc-gutter) * -1); }
	.hc-gallery__main { border-radius: 0; }
	.hc-gallery__thumbs { flex-direction: row; width: auto; padding: 0 var(--hc-gutter); overflow-x: auto; }
	.hc-gallery__thumb { width: 64px; height: 80px; }
	.hc .hc-summary__title { font-size: 34px; line-height: 38px; }
	.hc-look { padding-top: 72px; padding-bottom: 72px; }
}
.hc-product__main > * { min-width: 0; }
@media (max-width: 767px) {
	.hc-opts--size .hc-opt { flex: 1 0 calc(25% - 6px); }
}

/* ---------- Special size ---------- */
.hc-special { margin: -8px 0 24px; }
#top.hc .hc-special__toggle { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0; padding: 14px 16px; border: 0; border-radius: 12px; background: var(--hc-lime-soft); color: var(--hc-ink); text-align: left; cursor: pointer; font-family: var(--hc-font); }
.hc-special__toggle > span { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.hc-special__toggle strong { font-size: 14px; font-weight: 600; }
.hc-special__toggle small { font-size: 13px; color: var(--hc-ink-2); }
.hc-special__toggle .hc-ico--chev-down { transition: transform .2s; }
.hc-special.is-open .hc-special__toggle { border-radius: 12px 12px 0 0; }
.hc-special.is-open .hc-special__toggle .hc-ico--chev-down { transform: rotate(180deg); }
.hc-special__panel { padding: 4px 16px 16px; border-radius: 0 0 12px 12px; background: var(--hc-lime-soft); }
.hc-special__intro { margin: 0 0 14px; font-size: 13px; line-height: 20px; color: var(--hc-ink-2); }
.hc-special__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hc-special__field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 500; color: var(--hc-ink-2); }
.hc-special__field--wide { margin-top: 10px; }
.hc-special__input { display: flex; align-items: center; height: 44px; padding: 0 12px; border: 1px solid var(--hc-line); border-radius: 10px; background: var(--hc-white); }
.hc-special__input:focus-within { border-color: var(--hc-ink); }
#top.hc .hc-special__input input { flex: 1; min-width: 0; height: 42px; margin: 0; padding: 0; border: 0; background: none; font: 500 15px/1 var(--hc-font); color: var(--hc-ink); box-shadow: none; -moz-appearance: textfield; }
#top.hc .hc-special__input input::-webkit-inner-spin-button { -webkit-appearance: none; }
.hc-special__input em { font-style: normal; font-size: 12px; color: var(--hc-mute); }
#top.hc .hc-special textarea { width: 100%; margin: 0; padding: 10px 12px; border: 1px solid var(--hc-line); border-radius: 10px; background: var(--hc-white); font: 400 14px/1.4 var(--hc-font); color: var(--hc-ink); box-shadow: none; resize: vertical; box-sizing: border-box; }
#top.hc .hc-special__cancel { margin: 12px 0 0; padding: 0; border: 0; background: none; font: 500 13px/1.3 var(--hc-font); color: var(--hc-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hc-opts.is-special .hc-opt { opacity: .35; }
.hc-opts.is-special .hc-opt.is-selected { background: var(--hc-white); border-color: var(--hc-line); color: var(--hc-ink); }
@media (max-width: 480px) { .hc-special__grid { grid-template-columns: 1fr 1fr; } }
/* Special size: zaobljen je ceo okvir, delovi su bez sopstvenog zaobljenja (nema "rupica" na spoju) */
.hc-special { border-radius: 12px; background: var(--hc-lime-soft); overflow: hidden; }
#top.hc .hc-special__toggle, #top.hc .hc-special.is-open .hc-special__toggle { border-radius: 0; background: transparent; outline-offset: -3px; }
.hc-special__panel { border-radius: 0; background: transparent; }
.hc-special { scroll-margin-top: 140px; }

/* Centriranje na širokim ekranima */
#top.hc .hc-product .hc-wrap { margin-left: auto; margin-right: auto; }

/* Galerija: okvir tačno u razmeri fotografija (700x951), slika popunjava ceo okvir */
.hc-gallery__main { aspect-ratio: 700 / 951; }
.hc-gallery__slide img { object-fit: cover; }
.hc-gallery__thumb { height: 130px; }
.hc-gallery__thumb img { object-fit: cover; }
@media (max-width: 767px) { .hc-gallery__thumb { width: 64px; height: 87px; } }
/* Proizvod sa jednom slikom (bez sličica): ista veličina kao kod ostalih, centrirana u koloni */
.hc-gallery:not(:has(.hc-gallery__thumbs)) .hc-gallery__main { flex: 0 1 600px; margin: 0; }
@media (max-width: 767px) { .hc-gallery:not(:has(.hc-gallery__thumbs)) .hc-gallery__main { flex-basis: auto; width: 100%; } }

/* Bez vidljive trake za skrolovanje kod vodoravnih lista */
.hc-gallery__thumbs, .hc-pills, .hc-toolbar__filters { scrollbar-width: none; -ms-overflow-style: none; }
.hc-gallery__thumbs::-webkit-scrollbar, .hc-pills::-webkit-scrollbar, .hc-toolbar__filters::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* Izbor varijacije: naziv atributa sa velikim početnim slovom (WooCommerce ispisuje "style"), skriveni select iste širine */
#top .variations th.label { width: 77px; text-align: center; text-transform: capitalize; }
#top .variations .label label { text-align: right; }
#top .variations select { min-width: 100px; }
#top form.cart .variations select { width: 100%; float: left; }
/* Količina i dugme u formi proizvoda (raspored kao ranije: polje 130 px, razmak 3%) */
#top div form.cart div.quantity { float: left; margin: 0 3% 5px 0; min-width: 130px; }
#top form.cart .button { float: left; vertical-align: middle; margin: 2px 0; }
#top div.variations_button .button { margin: 0; min-width: 130px; }
