/* ==========================================================================
   Prodavnica + kartica proizvoda (Figma: 02 Shop, Product card)
   Učitava se na prodavnici, kategorijama, pretrazi, naslovnoj i proizvodu.
   ========================================================================== */
.hc-mute { color: var(--hc-mute); }
.hc-badge--red { background: var(--hc-red); color: var(--hc-white); }
.hc-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; font-size: 13px; color: var(--hc-mute); }
.hc-crumbs span[aria-hidden] { color: #c8c8c3; }
.hc-crumbs [aria-current] { color: var(--hc-ink); }
.hc-crumbs a:hover { color: var(--hc-ink); }

.hc-shop__intro { padding-top: 24px; padding-bottom: 32px; }
.hc-shop__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: 24px; }
.hc .hc-shop__title h1 { margin: 0; font-size: 56px; font-weight: 800; line-height: 58px; letter-spacing: -.03em; }
.hc-shop__count { margin-left: 6px; font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--hc-mute); }
.hc-shop__desc { max-width: 560px; margin-top: 12px; font-size: 16px; line-height: 25px; color: var(--hc-ink-2); }
.hc-shop__desc p { margin: 0; }
.hc-shop__search { display: flex; align-items: center; gap: 10px; width: 320px; height: 48px; padding: 0 20px; border: 1px solid var(--hc-line); border-radius: 999px; color: var(--hc-mute); box-sizing: border-box; flex: none; }
.hc-shop__search:focus-within { border-color: var(--hc-ink); }
#top .hc-shop__search input[type="search"] { flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0; background: none; font-size: 14px; color: var(--hc-ink); box-shadow: none; }
#top .hc-shop__search input[type="search"]:focus { outline: none; }

.hc-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.hc-pills li { margin: 0; }
.hc-pill { display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 0 20px 0 6px; border: 1px solid var(--hc-line); border-radius: 999px; background: var(--hc-white); font-size: 14px; font-weight: 500; transition: border-color .2s; box-sizing: border-box; }
.hc-pill:hover { border-color: var(--hc-ink); }
.hc-pill.is-active, .hc-pill.is-active:hover { background: var(--hc-ink); border-color: var(--hc-ink); color: var(--hc-white); }
.hc-pill__thumb { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; overflow: hidden; border-radius: 50%; background: var(--hc-card); flex: none; }
.hc-pill__thumb img { width: 100%; height: 100%; object-fit: cover; }
.hc-pill.is-active .hc-pill__thumb { background: #2a2a2a; }
.hc-pill__count { font-size: 13px; font-weight: 400; color: var(--hc-mute); }
.hc-pill.is-active .hc-pill__count { color: #a9a9a5; }

.hc-toolbar { position: sticky; top: 80px; z-index: 50; background: var(--hc-white); border-top: 1px solid var(--hc-line); border-bottom: 1px solid var(--hc-line); }
.admin-bar .hc-toolbar { top: 112px; }
.hc-toolbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 72px; }
.hc-toolbar__filters { display: flex; flex-wrap: wrap; gap: 8px; }

.hc-dd { position: relative; }
.hc-dd__btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 16px; border: 1px solid var(--hc-line); border-radius: 999px; font-size: 14px; font-weight: 500; list-style: none; cursor: pointer; user-select: none; box-sizing: border-box; white-space: nowrap; }
.hc-dd__btn::-webkit-details-marker { display: none; }
.hc-dd__btn:hover { border-color: var(--hc-ink); }
.hc-dd.is-active > .hc-dd__btn, .hc-dd[open] > .hc-dd__btn { border: 1.5px solid var(--hc-ink); }
.hc-dd[open] > .hc-dd__btn { background: var(--hc-soft); }
.hc-dd[open] > .hc-dd__btn .hc-ico--chev-down { transform: rotate(180deg); }
.hc-dd__btn--plain, .hc-dd[open] > .hc-dd__btn--plain { border: 0; padding-right: 0; gap: 6px; background: none; }
.hc-dd__n { min-width: 20px; height: 20px; padding: 0 7px; border-radius: 999px; background: var(--hc-lime); font: 700 11px/20px var(--hc-font); text-align: center; box-sizing: border-box; }
.hc-dd__panel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; width: 340px; margin: 0; padding: 20px 20px 16px; border: 1px solid var(--hc-line); border-radius: 16px; background: var(--hc-white); box-shadow: 0 16px 40px rgba(0, 0, 0, .12); box-sizing: border-box; }
.hc-dd--sort .hc-dd__panel { left: auto; right: 0; width: 240px; padding: 8px; }
.hc-dd__head { display: flex; justify-content: space-between; margin: 0 0 8px; font-size: 13px; color: var(--hc-ink-2); }
.hc-dd__head span:first-child { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--hc-mute); }
.hc-dd fieldset { max-height: 320px; margin: 0; padding: 0 10px 0 0; overflow: auto; border: 0; }
.hc-dd__actions { display: flex; gap: 10px; padding-top: 16px; }
.hc-dd__actions > * { flex: 1; }
.hc-dd__menu { list-style: none; }
.hc-dd__menu li { margin: 0; }
.hc-dd__menu a { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.hc-dd__menu a:hover, .hc-dd__menu a[aria-current] { background: var(--hc-soft); }

.hc-check { display: flex; align-items: center; gap: 12px; padding: 9px 0; font-size: 15px; cursor: pointer; }
.hc-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hc-check__box { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 1.5px solid #c8c8c3; border-radius: 5px; color: var(--hc-white); box-sizing: border-box; flex: none; }
.hc-check__box .hc-ico { opacity: 0; }
.hc-check input:checked + .hc-check__box .hc-ico { opacity: 1; }
.hc-check input:checked + .hc-check__box { background: var(--hc-ink); border-color: var(--hc-ink); color: var(--hc-white); }
html.hc-kbd .hc-check input:focus-visible + .hc-check__box { outline: 2px solid var(--hc-ink); outline-offset: 2px; }
.hc-check__label { flex: 1; }
.hc-check__count { font-size: 13px; color: var(--hc-mute); }
.hc-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--c, #ccc); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); flex: none; }

.hc-active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 20px; font-size: 13px; }
.hc-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 14px; border: 1px solid var(--hc-line); border-radius: 999px; background: var(--hc-soft); font-weight: 500; }
.hc-chip:hover { border-color: var(--hc-ink); }
.hc-active__clear { font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

.hc-shop__grid { padding-top: 32px; }
.hc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 24px; margin: 0; padding: 0; list-style: none; }
.hc .hc-grid > li { width: auto; margin: 0; padding: 0; float: none; clear: none; }

/* Kartica */
.hc-card { display: flex; flex-direction: column; gap: 16px; }
.hc-card__media { position: relative; display: block; aspect-ratio: 31 / 40; overflow: hidden; background: var(--hc-card); }
.hc-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, transform .6s; }
.hc-card__img--hover { opacity: 0; }
.hc-card:hover .hc-card__img--hover { opacity: 1; }
.hc-card:hover .hc-card__img { transform: scale(1.02); }
.hc-card__media .hc-badge { position: absolute; top: 14px; left: 14px; }
.hc-card__info { display: flex; flex-direction: column; gap: 6px; }
.hc .hc-card__cat { margin: 0; font-size: 12px; font-weight: 500; line-height: 1.2; letter-spacing: .06em; text-transform: uppercase; color: var(--hc-mute); }
.hc .hc-card__title { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.35; letter-spacing: 0; }
.hc-card__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hc-card__meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hc-card__price { font-size: 15px; font-weight: 600; }
.hc-card__price del { font-weight: 400; color: var(--hc-mute); }
.hc-card__price ins { text-decoration: none; color: var(--hc-red); }
.hc-card__swatches { display: flex; align-items: center; gap: 6px; }
.hc-card__more, .hc-card__fits { font-size: 12px; color: var(--hc-mute); }

.hc-more { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 72px; }
.hc-more p { margin: 0; font-size: 14px; color: var(--hc-ink-2); }
.hc-more__bar { width: 240px; height: 3px; border-radius: 999px; background: var(--hc-line); overflow: hidden; }
.hc-more__bar span { display: block; height: 100%; background: var(--hc-ink); }
.hc-empty { padding: 80px 0; text-align: center; }
.hc .hc-empty h2 { margin: 0 0 8px; font-size: 28px; }
.hc-empty p { margin: 0 0 24px; color: var(--hc-ink-2); }
.hc-section-usp { padding-top: 96px; padding-bottom: 96px; }

@media (max-width: 1024px) {
	.hc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hc .hc-shop__title h1 { font-size: 44px; line-height: 48px; }
	.hc-toolbar { top: 64px; }
}
@media (max-width: 767px) {
	.hc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
	.hc-shop__head { flex-direction: column; align-items: stretch; }
	.hc-shop__search { width: 100%; }
	.hc .hc-shop__title h1 { font-size: 36px; line-height: 40px; }
	.hc-pills { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(var(--hc-gutter) * -1); padding-right: var(--hc-gutter); scrollbar-width: none; }
	.hc-pill { white-space: nowrap; }
	/* na telefonu je traka u dva reda (150px) - ne lepi se, da ne zauzme četvrtinu ekrana */
	.hc-toolbar { position: relative; top: auto; }
	.hc-toolbar__inner { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
	.hc-toolbar__filters { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
	.hc-dd__panel { position: fixed; top: auto; bottom: 0; left: 0; right: 0; width: auto; max-height: 80vh; overflow: auto; border-radius: 20px 20px 0 0; }
	.hc-dd--sort .hc-dd__panel { width: auto; }
	.hc .hc-card__title { font-size: 14px; }
	.hc-card__meta { flex-direction: column; align-items: flex-start; }
}

/* Kvačica u filteru - osnovni stil boji span u formi u #444 */
#top.hc .hc-check__box, #top.hc .hc-check__box .hc-ico { color: var(--hc-white); stroke: var(--hc-white); }

/* ---------- Kartica: link preko slike + brzo dodavanje (hover) ---------- */
.hc-card__link { position: absolute; inset: 0; display: block; }
.hc-quick {
	position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
	display: flex; flex-direction: column; gap: 10px; padding: 12px;
	border-radius: 12px; background: var(--hc-white); box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s;
}
@media (hover: hover) and (pointer: fine) {
	.hc-card:hover .hc-quick, .hc-card:focus-within .hc-quick, .hc-quick.is-done { opacity: 1; visibility: visible; transform: none; }
}
.hc-quick__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.hc-quick__title { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--hc-ink); }
.hc-quick__hint { font-size: 12px; color: var(--hc-mute); text-align: right; }
.hc-quick__hint a { color: var(--hc-ink); text-decoration: underline; text-underline-offset: 2px; }
.hc-quick__ok { color: var(--hc-green); font-weight: 600; }
.hc-quick__row { display: flex; flex-wrap: wrap; gap: 6px; }
#top.hc .hc-quick__opt {
	height: 28px; margin: 0; padding: 0 12px; border: 1px solid var(--hc-line); border-radius: 999px;
	background: var(--hc-white); color: var(--hc-ink); font: 500 12px/1 var(--hc-font); cursor: pointer;
}
#top.hc .hc-quick__opt:hover { border-color: var(--hc-ink); }
#top.hc .hc-quick__opt.is-selected { background: var(--hc-ink); border-color: var(--hc-ink); color: var(--hc-white); }
#top.hc .hc-quick__row--colour .hc-quick__opt { width: 28px; padding: 0; border-color: transparent; background: none; display: inline-flex; align-items: center; justify-content: center; }
#top.hc .hc-quick__row--colour .hc-quick__opt.is-selected { border: 1.5px solid var(--hc-ink); background: none; }
.hc-quick__row--colour .hc-swatch { width: 20px; height: 20px; }
.hc-quick__sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 6px; }
#top.hc .hc-quick__size {
	height: 32px; margin: 0; padding: 0 4px; border: 1px solid var(--hc-line); border-radius: 8px;
	background: var(--hc-white); color: var(--hc-ink); font: 500 12px/1 var(--hc-font); cursor: pointer; transition: border-color .15s, background .15s, color .15s;
}
#top.hc .hc-quick__size:hover:not(:disabled) { border-color: var(--hc-ink); background: var(--hc-ink); color: var(--hc-white); }
#top.hc .hc-quick__size.is-off { color: #bdbdb8; text-decoration: line-through; cursor: not-allowed; }
#top.hc .hc-quick__size.is-loading { opacity: .5; cursor: progress; }
#top.hc .hc-quick__size.is-added { border-color: var(--hc-green); background: var(--hc-green); color: var(--hc-white); }
.hc-quick .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
/* sve veličine u jednom redu, nazivi bez prelamanja */
.hc-quick__sizes { display: flex; gap: 6px; }
#top.hc .hc-quick__size { flex: 1 1 0; min-width: 0; white-space: nowrap; }
/* Naslov iznad reda proizvoda ("You might also like", "Complete the look") */
#top.hc .hc-look .hc-head-row { margin-bottom: 40px; }

/* Pretraga uživo */
.hc-searching .hc-shop__grid { opacity: .45; transition: opacity .15s; }
#top.hc .hc-shop__search input[type="search"]::-webkit-search-cancel-button {
	-webkit-appearance: none; width: 16px; height: 16px; cursor: pointer;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e6e6a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center / 14px no-repeat;
}
/* Pilula "Special size" u brzom dodavanju - desno u redu kroja */
#top.hc .hc-quick__special { display: inline-flex; align-items: center; height: 28px; margin-left: auto; padding: 0 12px; border-radius: 999px; background: var(--hc-lime-soft); color: var(--hc-ink); font: 500 12px/1 var(--hc-font); white-space: nowrap; }
#top.hc .hc-quick__special:hover { background: var(--hc-lime); }

.hc-pills, .hc-toolbar__filters { scrollbar-width: none; -ms-overflow-style: none; }
.hc-pills::-webkit-scrollbar, .hc-toolbar__filters::-webkit-scrollbar { display: none; width: 0; height: 0; }
