/* ==========================================================================
   Korpa, checkout, nalog (Figma: 04 Cart, 05 Checkout)
   ========================================================================== */
#top.hc .hc-woo-page { padding-bottom: 120px; }

/* Naslov + koraci */
.hc-cart-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 48px 0 32px; }
.hc .hc-cart-head h1 { margin: 0; font-size: 48px; font-weight: 800; line-height: 50px; letter-spacing: -.045em; }
.hc-cart-head h1 span { margin-left: 8px; font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--hc-mute); }
.hc-steps { display: flex; align-items: center; gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.hc-steps__item { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; color: var(--hc-mute); }
.hc-steps__item + .hc-steps__item::before { content: ""; width: 64px; height: 1px; margin-right: 6px; background: var(--hc-line); }
.hc-steps__num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid var(--hc-line); border-radius: 50%; font-size: 12px; font-weight: 700; box-sizing: border-box; }
.hc-steps__item.is-active { color: var(--hc-ink); font-weight: 600; }
.hc-steps__item.is-active .hc-steps__num { background: var(--hc-ink); border-color: var(--hc-ink); color: var(--hc-white); }
.hc-steps__item.is-done { color: var(--hc-ink); }
.hc-steps__item.is-done .hc-steps__num { background: var(--hc-lime); border-color: var(--hc-lime); color: var(--hc-ink); }

/* Raspored korpe */
.hc-cart { display: grid; grid-template-columns: minmax(0, 1fr) 472px; gap: 64px; align-items: start; }
.hc-banner { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; padding: 16px 20px; border-radius: 14px; background: var(--hc-lime-soft); font-size: 14px; }
.hc-cart__items { margin: 0; padding: 0; list-style: none; border: 0; }
.hc-cart-item { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 24px; margin: 0; padding: 24px 0; border-bottom: 1px solid var(--hc-line); }
.hc-cart-item__img { width: 120px; height: 150px; overflow: hidden; border-radius: 12px; background: var(--hc-card); }
.hc-cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.hc-cart-item__info { display: flex; flex-direction: column; gap: 6px; }
.hc .hc-cart-item__title { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: 0; }
.hc-cart-item__variant { margin: 0; font-size: 14px; color: var(--hc-ink-2); }
.hc-cart-item__links { display: flex; gap: 16px; margin: auto 0 0; padding-top: 10px; font-size: 13px; color: var(--hc-ink-2); }
.hc-cart-item__links a { text-decoration: underline; text-underline-offset: 3px; }
#top.hc .hc-cart-item__links a.remove { display: inline !important; width: auto !important; height: auto; text-indent: 0 !important; border: 0; border-radius: 0; font-size: 13px; font-weight: 400; line-height: inherit; color: var(--hc-ink-2) !important; background: none !important; overflow: visible; }
#top.hc .hc-cart-item__links a.remove:hover { color: var(--hc-red); background: none; }
.hc-cart-item__right { display: flex; flex-direction: column; align-items: flex-end; gap: 20px; }
.hc-cart-item__price { font-size: 17px; font-weight: 600; }
#top.hc .hc-cart-item__right .quantity { height: 40px; }
#top.hc .hc-cart-item__right .quantity .minus, #top.hc .hc-cart-item__right .quantity .plus { width: 30px; height: 30px; font-size: 18px; }

.hc-cart__actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; }
.hc-coupon { display: flex; align-items: center; gap: 10px; flex: 1 1 360px; max-width: 420px; height: 48px; padding: 4px 4px 4px 18px; border: 1px solid var(--hc-line); border-radius: 999px; color: var(--hc-mute); box-sizing: border-box; }
.hc-coupon:focus-within { border-color: var(--hc-ink); }
#top.hc .hc-coupon input.input-text { flex: 1; min-width: 0; height: 38px; margin: 0; padding: 0; border: 0; background: none; font-size: 14px; color: var(--hc-ink); box-shadow: none; }
.hc-link--back { order: 3; flex-basis: 100%; }
.hc-update-cart { display: none !important; }
.no-js .hc-update-cart { display: inline-flex !important; }

/* Kartica pregleda */
#top.hc .cart-collaterals, #top.hc .cart-collaterals .cart_totals { width: auto; float: none; margin: 0; }
.hc-summary-card { position: sticky; top: 104px; padding: 32px; border-radius: 20px; background: var(--hc-soft); }
.admin-bar .hc-summary-card { top: 136px; }
.hc .hc-summary-card h2 { margin: 0 0 20px; font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: 0; }
.hc-summary-card__head { display: flex; justify-content: space-between; align-items: baseline; }
.hc-summary-card__head a { font-size: 13px; }
#top.hc .hc-totals { width: 100%; margin: 0 0 20px; border: 0; background: none; border-collapse: collapse; }
#top.hc .hc-totals th, #top.hc .hc-totals td { padding: 8px 0; border: 0; background: none; font-size: 15px; font-weight: 400; color: var(--hc-ink-2); text-align: left; }
#top.hc .hc-totals td { text-align: right; font-weight: 500; color: var(--hc-ink); }
#top.hc .hc-totals .order-total th, #top.hc .hc-totals .order-total td { padding-top: 20px; border-top: 1px solid var(--hc-line); font-size: 18px; font-weight: 700; color: var(--hc-ink); }
#top.hc .hc-totals .order-total td { font-size: 24px; font-weight: 800; }
#top.hc .hc-totals .order-total small { display: block; font-size: 12px; font-weight: 400; color: var(--hc-mute); }
.hc-free { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--hc-lime); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hc-ink); }
.hc-trust { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 12px; color: var(--hc-mute); }
.hc .wc-proceed-to-checkout { padding: 0; }
#top.hc .wc-proceed-to-checkout .checkout-button { width: 100%; margin: 0; font-size: 14px; }

.hc-look--cart { padding-top: 120px; padding-bottom: 0; }

/* Prazna korpa */
#top.hc .cart-empty.woocommerce-info { justify-content: center; margin-top: 48px; padding: 32px; font-size: 18px; }
#top.hc .return-to-shop { text-align: left; }
#top.hc .return-to-shop .button { margin-top: 4px; }

/* ---------- Checkout ---------- */
.hc-checkout { display: grid; grid-template-columns: minmax(0, 720px) 472px; justify-content: space-between; gap: 64px; align-items: start; }
.hc-co-step { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--hc-line); }
.hc-co-step:last-child { border-bottom: 0; }
.hc .hc-co-step__title { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; font-size: 22px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.hc-co-step__title span { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--hc-ink); font-size: 12px; font-weight: 700; letter-spacing: 0; color: var(--hc-white); }
.hc .woocommerce-billing-fields > h3, .hc .woocommerce-additional-fields > h3 { display: none; }
.hc-co-free { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; padding: 16px 20px; border: 1.5px solid var(--hc-ink); border-radius: 12px; background: var(--hc-soft); font-size: 14px; }

.hc .woocommerce-billing-fields__field-wrapper, .hc .woocommerce-shipping-fields__field-wrapper { display: flex; flex-wrap: wrap; gap: 16px; }
#top.hc #customer_details, #top.hc .hc-checkout .col-1, #top.hc .hc-checkout .col-2 { width: auto; float: none; margin: 0; padding: 0; }
#top.hc .hc-checkout__main, #top.hc .hc-checkout__side { width: auto; float: none; }
#top.hc #billing_first_name_field, #top.hc #billing_last_name_field, #top.hc #billing_city_field, #top.hc #billing_postcode_field, #top.hc #billing_country_field, #top.hc #billing_phone_field,
#top.hc #shipping_first_name_field, #top.hc #shipping_last_name_field, #top.hc #shipping_city_field, #top.hc #shipping_postcode_field, #top.hc #shipping_country_field { flex: 1 1 calc(50% - 8px); }
#top.hc .form-row { flex: 1 1 100%; width: auto; float: none; margin: 0; padding: 0; }
#top.hc .form-row-first, #top.hc .form-row-last { flex: 1 1 calc(50% - 8px); }
#top.hc .form-row label { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 500; line-height: 1.3; color: var(--hc-ink-2); }
#top.hc .form-row .required { color: var(--hc-red); text-decoration: none; border: 0; }
#top.hc .form-row .optional { color: var(--hc-mute); }
#top.hc .form-row input.input-text, #top.hc .form-row textarea, #top.hc .form-row select, #top.hc .select2-container .select2-selection--single {
	width: 100%; height: 52px; margin: 0; padding: 0 16px; border: 1px solid var(--hc-line); border-radius: 10px; background: var(--hc-white);
	font: 400 15px/50px var(--hc-font); color: var(--hc-ink); box-shadow: none; box-sizing: border-box;
}
#top.hc .form-row textarea { height: 110px; padding: 14px 16px; line-height: 1.5; }
#top.hc .form-row input.input-text:focus, #top.hc .form-row textarea:focus { border: 1.5px solid var(--hc-ink); outline: none; }
#top.hc .select2-container .select2-selection--single .select2-selection__rendered { padding: 0; line-height: 50px; color: var(--hc-ink); }
#top.hc .select2-container .select2-selection--single .select2-selection__arrow { top: 12px; right: 12px; }
#top.hc .form-row.woocommerce-invalid input.input-text { border-color: var(--hc-red); }
#top.hc #ship-to-different-address { margin: 8px 0 16px; font-size: 14px; font-weight: 500; }
#top.hc #ship-to-different-address label { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--hc-ink); cursor: pointer; }
#top.hc .woocommerce-form__input-checkbox { width: 18px; height: 18px; accent-color: var(--hc-ink); }
.hc .woocommerce-additional-fields { margin-top: 16px; }

/* Plaćanje - kartice */
#top.hc #payment { background: none; border-radius: 0; }
#top.hc #payment ul.payment_methods { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; border: 0; list-style: none; }
#top.hc #payment ul.payment_methods li { position: relative; margin: 0; padding: 18px 20px; border: 1px solid var(--hc-line); border-radius: 12px; background: var(--hc-white); line-height: 1.4; }
#top.hc #payment ul.payment_methods li:has(input:checked) { border: 1.5px solid var(--hc-ink); background: var(--hc-soft); }
#top.hc #payment ul.payment_methods li > input { position: absolute; top: 21px; left: 20px; width: 18px; height: 18px; margin: 0; accent-color: var(--hc-ink); }
#top.hc #payment ul.payment_methods li > label { display: block; margin: 0; padding-left: 32px; font-size: 15px; font-weight: 600; cursor: pointer; }
#top.hc #payment div.payment_box { margin: 12px 0 0 32px; padding: 0; background: none; font-size: 13px; color: var(--hc-ink-2); }
#top.hc #payment div.payment_box::before { display: none; }
#top.hc #payment div.payment_box p { margin: 0; }
#top.hc #payment .place-order { margin: 24px 0 0; padding: 0; float: none; }
#top.hc .woocommerce-terms-and-conditions-wrapper { margin: 0 0 20px; font-size: 14px; color: var(--hc-ink-2); }
#top.hc .woocommerce-privacy-policy-text p { margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: var(--hc-mute); }
#top.hc .woocommerce-terms-and-conditions-wrapper a { text-decoration: underline; }
#top.hc #place_order { width: 100%; min-height: 60px; margin: 0; float: none; font-size: 14px; }

/* Pregled na checkoutu */
.hc-review__items { margin: 0 0 20px; padding: 0 0 20px; list-style: none; border-bottom: 1px solid var(--hc-line); }
.hc-review__item { display: flex; align-items: center; gap: 16px; margin: 0 0 16px; }
.hc-review__item:last-child { margin-bottom: 0; }
.hc-review__thumb { position: relative; width: 72px; height: 90px; border: 1px solid var(--hc-line); border-radius: 10px; background: var(--hc-white); flex: none; }
.hc-review__thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; }
.hc-review__qty { position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--hc-ink); color: var(--hc-white); font: 700 11px/22px var(--hc-font); text-align: center; box-sizing: border-box; }
.hc-review__name { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.hc-review__name strong { font-size: 15px; font-weight: 600; line-height: 1.3; }
.hc-review__name small { font-size: 13px; color: var(--hc-mute); }
.hc-review__price { font-size: 15px; font-weight: 500; }
.hc .blockUI.blockOverlay { background: rgba(255, 255, 255, .6) !important; }

/* Potvrda porudžbine */
.hc .woocommerce-order { max-width: 760px; margin: 48px auto 0; }
.hc .woocommerce-thankyou-order-received { margin: 0 0 24px; padding: 24px; border-radius: 16px; background: var(--hc-lime-soft); font-size: 20px; font-weight: 600; }
.hc ul.woocommerce-order-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin: 0 0 40px; padding: 0; list-style: none; }
.hc ul.woocommerce-order-overview li { margin: 0; padding: 16px; border: 1px solid var(--hc-line); border-radius: 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--hc-mute); }
.hc ul.woocommerce-order-overview li strong { display: block; margin-top: 6px; font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--hc-ink); }

@media (max-width: 1100px) {
	.hc-cart, .hc-checkout { grid-template-columns: 1fr; }
	.hc-summary-card { position: static; }
	.hc-checkout__side { order: -1; }
}
@media (max-width: 767px) {
	.hc-cart-head { flex-direction: column; align-items: flex-start; padding-top: 32px; }
	.hc .hc-cart-head h1 { font-size: 36px; line-height: 40px; }
	.hc-steps__item + .hc-steps__item::before { width: 20px; }
	.hc-cart-item { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; }
	.hc-cart-item__img { width: 88px; height: 110px; }
	.hc-cart-item__right { grid-column: 2; flex-direction: row-reverse; justify-content: space-between; align-items: center; }
	#top.hc .form-row-first, #top.hc .form-row-last { flex-basis: 100%; }
	.hc-summary-card { padding: 24px 20px; }
}
.hc-cart-item__special { margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--hc-lime-soft); font-size: 13px; line-height: 1.45; color: var(--hc-ink); }

/* Razmaci u korpi */
#top.hc .hc-cart-item { margin: 0; padding: 28px 0; }
#top.hc .hc-cart-item__title { letter-spacing: 0; }
#top.hc .hc-banner { margin-bottom: 4px; }
#top.hc .hc-trust { margin: 20px 0 0; }

/* Bez okvira oko bloka za plaćanje */
#top.hc #payment, #top.hc #payment .form-row.place-order { border: 0; padding: 0; background: none; box-shadow: none; }

/* Koraci na telefonu: naziv samo za aktivni korak (inace se prelivaju) */
@media (max-width: 560px) {
	.hc-steps { gap: 10px; }
	.hc-steps__item:not(.is-active) > span:not(.hc-steps__num) { display: none; }
	.hc-steps__item + .hc-steps__item::before { width: 24px; margin-right: 0; }
}

/* Kvačice u kasi i nalogu poravnate sa tekstom kao do sada */
#top .woocommerce-account-fields .input-checkbox, #top #payment .input-checkbox { display: inline-block; margin: -2px 8px 0 0; vertical-align: middle; }
#top #payment label { display: inline; }
#top .woocommerce-terms-and-conditions-wrapper abbr.required { font-weight: 700; }
#top.hc #payment { margin-top: 40px; }
