/* ==========================================================================
   Terracotta Shop — proizvod, korpa, plaćanje
   Boje i oblici se menjaju preko promenljivih ispod (npr. iz teme:
   :root { --tcs-primary: #333; } ).
   ========================================================================== */

:root {
	--tcs-primary: #4a2818;          /* dugmad */
	--tcs-primary-hover: #33190d;
	--tcs-accent: #b65a35;           /* terakota — akcenti, ikonice */
	--tcs-accent-soft: #f7ebe3;
	--tcs-cream: #fbf6f1;            /* pozadina "kutije za kupovinu" */
	--tcs-surface: #ffffff;
	--tcs-surface-2: #f6f3f0;        /* parni redovi, polja */
	--tcs-border: #ebe3db;
	--tcs-text: #1d1915;
	--tcs-muted: #6e645c;
	--tcs-success: #3a9450;
	--tcs-danger: #b3261e;
	--tcs-radius: 16px;
	--tcs-radius-sm: 10px;
	--tcs-font: inherit;
	--tcs-cart-sidebar: 440px;       /* širina zbira u korpi */
	--tcs-checkout-sidebar: 500px;   /* širina "Vaša porudžbina" na plaćanju */
	--tcs-shadow: 0 1px 2px rgba(29, 25, 21, .04), 0 4px 16px rgba(29, 25, 21, .04);
}

.tcs-icon { flex: none; display: inline-block; vertical-align: middle; }
.tcs-product-page .screen-reader-text,
.tcs-shop-flow .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   STRANICA PROIZVODA
   ========================================================================== */

/* Raspored: element koji direktno sadrži .summary postaje mreža (radi i kada tema
   ima svoj omotač, npr. .product-single > .product-gallery-col + .summary). */
.tcs-product-page :has(> .summary.entry-summary) {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 40px 48px;
	align-items: start;
	position: relative;
	font-family: var(--tcs-font);
	color: var(--tcs-text);
}
.tcs-product-page :has(> .summary.entry-summary) > * { grid-column: 1 / -1; }
.tcs-product-page :has(> .summary.entry-summary) > :is(.images, .woocommerce-product-gallery, .product-gallery-col) {
	grid-column: 1;
	float: none !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	position: sticky;
	top: 24px;
}
.tcs-product-page :has(> .summary.entry-summary) > .summary {
	grid-column: 2;
	float: none !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.tcs-product-page .summary.entry-summary > * { margin: 0 !important; }

/* Bedž "Akcija" preko slike */
.tcs-product-page :has(> span.onsale) { position: relative; }
.tcs-product-page span.onsale {
	position: absolute !important; top: 16px !important; left: 16px !important; right: auto !important; bottom: auto !important;
	z-index: 5; grid-column: auto;
	width: auto !important; height: auto !important; min-height: 0 !important; min-width: 0 !important;
	line-height: 1 !important; padding: 8px 12px !important; margin: 0 !important;
	border-radius: 999px !important; background: var(--tcs-accent) !important; color: #fff !important;
	font-weight: 600; font-size: 13px !important; border: 0 !important;
}

/* Osnova galerije — za teme koje isključuju WooCommerce CSS */
.tcs-product-page .woocommerce-product-gallery { position: relative; margin: 0; }
.tcs-product-page .woocommerce-product-gallery figure { margin: 0; }
.tcs-product-page .woocommerce-product-gallery__wrapper { margin: 0; padding: 0; transition: all cubic-bezier(.795, -.035, 0, 1) .5s; }
.tcs-product-page .woocommerce-product-gallery__image a { display: block; }
.tcs-product-page .woocommerce-product-gallery img { display: block; width: 100%; height: auto; box-shadow: none; }
.tcs-product-page .woocommerce-product-gallery .flex-viewport { margin-bottom: 0; }
.tcs-product-page .woocommerce-product-gallery__trigger {
	position: absolute; top: 14px; right: 14px; z-index: 6;
	width: 40px; height: 40px; border-radius: 50%;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1915' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 18px no-repeat;
	box-shadow: var(--tcs-shadow);
	font-size: 0; color: transparent; overflow: hidden; text-decoration: none;
}
.tcs-product-page .woocommerce-product-gallery__trigger img { display: none !important; }

/* Zaštita od tema koje stilizuju sva <button>/<dl> elemente */
.tcs-product-page .tcs-calc__toggle,
.tcs-product-page .tcs-step__btn,
.tcs-product-page .tcs-qty__btn,
.tcs-shop-flow .tcs-qty__btn {
	background: transparent !important; color: var(--tcs-muted) !important;
	border: 0 !important; box-shadow: none !important; text-transform: none !important;
	letter-spacing: normal !important; min-height: 0 !important; line-height: 1 !important;
	font-family: var(--tcs-font) !important; text-decoration: none !important;
}
.tcs-product-page .tcs-calc__toggle {
	color: var(--tcs-text) !important; border: 1px solid var(--tcs-border) !important;
	padding: 10px 12px !important; font-size: 15px !important; font-weight: 600 !important;
	border-radius: var(--tcs-radius-sm) !important; width: 100% !important;
}
.tcs-product-page .tcs-step__btn,
.tcs-product-page .tcs-qty__btn,
.tcs-shop-flow .tcs-qty__btn { padding: 0 !important; border-radius: 50% !important; }
.tcs-product-page .tcs-step__btn:hover,
.tcs-product-page .tcs-qty__btn:hover,
.tcs-shop-flow .tcs-qty__btn:hover { background: var(--tcs-surface-2) !important; color: var(--tcs-text) !important; }
.tcs-keyattrs dt,
.tcs-keyattrs dd { display: block !important; float: none !important; width: auto !important; text-align: left !important; margin: 0 !important; padding: 0 !important; }

/* Galerija */
.tcs-product-page .woocommerce-product-gallery__wrapper { margin: 0; }
.tcs-product-page .woocommerce-product-gallery__image img,
.tcs-product-page .woocommerce-product-gallery .flex-viewport {
	border-radius: var(--tcs-radius);
}
.tcs-product-page .woocommerce-product-gallery .flex-control-thumbs {
	display: grid !important;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
	margin: 12px 0 0 !important;
	padding: 0;
}
.tcs-product-page .woocommerce-product-gallery .flex-control-thumbs li {
	width: auto !important; float: none !important; margin: 0 !important; list-style: none;
}
.tcs-product-page .woocommerce-product-gallery .flex-control-thumbs img {
	border-radius: var(--tcs-radius-sm);
	border: 2px solid transparent;
	opacity: .75;
	transition: opacity .15s, border-color .15s;
	aspect-ratio: 1; object-fit: cover;
}
.tcs-product-page .woocommerce-product-gallery .flex-control-thumbs img.flex-active,
.tcs-product-page .woocommerce-product-gallery .flex-control-thumbs img:hover {
	opacity: 1; border-color: var(--tcs-accent);
}


/* Status, naslov, podnaslov */
.tcs-stock {
	align-self: flex-start;
	display: inline-flex; align-items: center; gap: 8px;
	padding: 6px 12px; border: 1px solid var(--tcs-border); border-radius: 999px;
	font-size: 13px; font-weight: 500; background: var(--tcs-surface);
}
.tcs-stock__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tcs-success); }
.tcs-stock--onbackorder .tcs-stock__dot { background: #d99a2b; }
.tcs-stock--outofstock .tcs-stock__dot { background: var(--tcs-danger); }

.tcs-product-page .summary .product_title {
	font-size: clamp(26px, 2.4vw, 34px);
	line-height: 1.15;
	font-weight: 650;
	letter-spacing: -.01em;
	color: var(--tcs-text);
	margin: -6px 0 0 !important;
}
.tcs-subtitle {
	display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
	font-size: 14px; color: var(--tcs-muted); margin-top: -8px !important;
}
.tcs-subtitle strong { color: var(--tcs-text); font-weight: 600; }
.tcs-subtitle__sep { opacity: .5; }

/* Ključni atributi ispod naslova */
.tcs-keyattrs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
	gap: 8px;
}
.tcs-keyattrs__item {
	padding: 10px 12px;
	border: 1px solid var(--tcs-border);
	border-radius: var(--tcs-radius-sm);
	background: var(--tcs-surface);
}
.tcs-keyattrs dt {
	font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
	color: var(--tcs-muted); font-weight: 600; margin: 0 0 2px;
}
.tcs-keyattrs dd { margin: 0; font-size: 15px; font-weight: 600; color: var(--tcs-text); }

/* Osobine */
.tcs-badges { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; }
.tcs-badges li {
	display: inline-flex; align-items: center; gap: 5px;
	padding: 5px 10px 5px 8px; border-radius: 999px;
	background: var(--tcs-accent-soft); color: #7a3a20;
	font-size: 13px; font-weight: 500;
}
.tcs-badges .tcs-icon { width: 14px; height: 14px; color: var(--tcs-accent); }

.tcs-product-page .woocommerce-product-details__short-description {
	font-size: 15px; line-height: 1.65; color: var(--tcs-muted);
}
.tcs-product-page .woocommerce-product-details__short-description > :last-child { margin-bottom: 0; }

/* Kutija za kupovinu */
.tcs-buybox {
	background: var(--tcs-cream);
	border: 1px solid var(--tcs-border);
	border-radius: calc(var(--tcs-radius) + 4px);
	padding: 18px;
	display: flex; flex-direction: column; gap: 14px;
}
.tcs-buybox > * { margin: 0 !important; }

.tcs-pricebox__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tcs-pricebox__card {
	position: relative;
	background: var(--tcs-surface);
	border-radius: var(--tcs-radius-sm);
	padding: 14px 16px;
	display: flex; flex-direction: column; gap: 2px;
}
.tcs-pricebox__label { font-size: 13px; font-weight: 500; color: var(--tcs-muted); }
.tcs-pricebox__value { font-size: 26px; font-weight: 700; line-height: 1.2; color: var(--tcs-text); }
.tcs-pricebox__value--muted { font-size: 21px; font-weight: 600; }
.tcs-pricebox__value small { font-size: 13px; font-weight: 600; color: var(--tcs-muted); margin-left: 3px; }
.tcs-pricebox__value .woocommerce-Price-currencySymbol { font-size: .6em; font-weight: 600; }
.tcs-pricebox__old { font-size: 14px; color: var(--tcs-muted); }
.tcs-pricebox__sale {
	position: absolute; top: 12px; right: 12px;
	background: var(--tcs-accent); color: #fff; font-size: 12px; font-weight: 700;
	padding: 3px 8px; border-radius: 999px;
}
.tcs-pricebox__card > .tcs-icon {
	position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
	width: 26px; height: 26px; color: #c9bbb0;
}
.tcs-pricebox__note { font-size: 12px; line-height: 1.5; color: var(--tcs-muted); margin: 8px 2px 0; }
.tcs-price-plain .price { font-size: 26px !important; font-weight: 700; color: var(--tcs-text) !important; margin: 0; }
.tcs-unit { font-size: .6em; font-weight: 600; color: var(--tcs-muted); }

/* Forma za dodavanje u korpu */
.tcs-product-page div.product form.cart {
	display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px;
	margin: 0 !important;
}
.tcs-product-page div.product form.cart::before,
.tcs-product-page div.product form.cart::after { display: none; }
.tcs-product-page div.product form.cart .tcs-calc { flex: 1 1 100%; }
.tcs-product-page div.product form.cart .quantity { float: none; margin: 0 !important; }
.tcs-product-page div.product form.cart .single_add_to_cart_button {
	flex: 1 1 200px; float: none;
}

/* Kalkulator */
.tcs-calc {
	background: var(--tcs-surface);
	border-radius: var(--tcs-radius-sm);
	padding: 10px;
}
.tcs-calc__toggle {
	all: unset; box-sizing: border-box; cursor: pointer;
	display: flex; align-items: center; gap: 10px; width: 100%;
	padding: 10px 12px; border: 1px solid var(--tcs-border); border-radius: var(--tcs-radius-sm);
	font-weight: 600; font-size: 15px; color: var(--tcs-text);
}
.tcs-calc__toggle > span { flex: 1; }
.tcs-calc__toggle .tcs-icon--calc { color: var(--tcs-accent); }
.tcs-calc__toggle .tcs-icon--chevron { transition: transform .2s; transform: rotate(180deg); }
.tcs-calc__toggle:focus-visible { outline: 2px solid var(--tcs-accent); outline-offset: 2px; }
.tcs-calc.is-collapsed .tcs-calc__body { display: none; }
.tcs-calc.is-collapsed .tcs-icon--chevron { transform: none; }
.tcs-calc__body { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; }
.tcs-calc__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.tcs-step {
	display: flex; align-items: center;
	border: 1px solid var(--tcs-border); border-radius: var(--tcs-radius-sm);
	background: var(--tcs-surface); height: 46px; padding: 0 4px; margin: 0;
}
.tcs-step__btn {
	all: unset; cursor: pointer; display: grid; place-items: center;
	width: 32px; height: 32px; border-radius: 8px; color: var(--tcs-muted);
}
.tcs-step__btn:hover { background: var(--tcs-surface-2); color: var(--tcs-text); }
.tcs-step__btn:focus-visible { outline: 2px solid var(--tcs-accent); }
.tcs-step__input {
	flex: 1; min-width: 0; width: 100%;
	border: 0 !important; background: transparent !important; box-shadow: none !important;
	text-align: center; font-size: 17px !important; font-weight: 700; color: var(--tcs-text);
	padding: 0 !important; margin: 0; -moz-appearance: textfield; appearance: textfield;
}
.tcs-step__input::-webkit-outer-spin-button,
.tcs-step__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tcs-step__unit { font-size: 12px; color: var(--tcs-muted); padding-right: 4px; }

.tcs-calc__reserve {
	display: flex; align-items: center; gap: 8px; margin: 0;
	font-size: 13px; color: var(--tcs-muted); cursor: pointer;
}
.tcs-calc__reserve input { accent-color: var(--tcs-accent); width: 16px; height: 16px; margin: 0; }

.tcs-calc__total {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 14px 16px; border-radius: var(--tcs-radius-sm);
	background: var(--tcs-surface-2);
}
.tcs-calc__total > div { display: flex; flex-direction: column; }
.tcs-calc__total-label {
	font-size: 11px; text-transform: uppercase; letter-spacing: .07em; font-weight: 600; color: var(--tcs-muted);
}
.tcs-calc__total-price { font-size: 24px; font-weight: 700; line-height: 1.25; color: var(--tcs-text); }
.tcs-calc__total-price .woocommerce-Price-currencySymbol { font-size: .6em; }
.tcs-calc__total-meta { font-size: 13px; color: var(--tcs-muted); }
.tcs-calc__pill {
	flex: none; padding: 8px 14px; border-radius: 999px;
	background: var(--tcs-accent); color: #fff; font-weight: 700; font-size: 14px;
}

/* Stepper oko WooCommerce količine (proizvod + korpa) */
.tcs-shop-flow .quantity.tcs-qty,
.tcs-product-page .quantity.tcs-qty {
	display: inline-flex; align-items: center;
	border: 1px solid var(--tcs-border); border-radius: 999px;
	background: var(--tcs-surface); padding: 0 4px; height: 52px;
}
.tcs-shop-flow .quantity.tcs-qty { height: 40px; }
.tcs-qty__btn {
	all: unset; cursor: pointer; display: grid; place-items: center;
	width: 34px; height: 34px; border-radius: 50%; color: var(--tcs-muted);
}
.tcs-shop-flow .tcs-qty__btn { width: 28px; height: 28px; }
.tcs-qty__btn:hover { background: var(--tcs-surface-2); color: var(--tcs-text); }
.tcs-qty__btn:focus-visible { outline: 2px solid var(--tcs-accent); }
.tcs-qty input.qty {
	width: 44px !important; border: 0 !important; background: transparent !important; box-shadow: none !important;
	text-align: center; font-weight: 700; font-size: 16px; padding: 0 !important; margin: 0;
	-moz-appearance: textfield; appearance: textfield; color: var(--tcs-text);
}
.tcs-qty input.qty::-webkit-outer-spin-button,
.tcs-qty input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Dugmad */
.tcs-product-page div.product .single_add_to_cart_button,
.tcs-shop-flow .wc-proceed-to-checkout .checkout-button,
.tcs-shop-flow #place_order {
	display: inline-flex !important; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 28px !important;
	background: var(--tcs-primary) !important; color: #fff !important;
	border: 0 !important; border-radius: 999px !important;
	font-family: var(--tcs-font); font-size: 16px !important; font-weight: 650 !important;
	letter-spacing: .01em; text-transform: none; line-height: 1;
	box-shadow: 0 6px 16px rgba(74, 40, 24, .18);
	transition: background .15s, transform .15s;
	cursor: pointer;
}
.tcs-product-page div.product .single_add_to_cart_button:hover,
.tcs-shop-flow .wc-proceed-to-checkout .checkout-button:hover,
.tcs-shop-flow #place_order:hover { background: var(--tcs-primary-hover) !important; }
.tcs-product-page div.product .single_add_to_cart_button:active,
.tcs-shop-flow #place_order:active { transform: translateY(1px); }
.tcs-product-page div.product .single_add_to_cart_button.disabled,
.tcs-product-page div.product .single_add_to_cart_button:disabled { opacity: .5; }

/* Garancije */
.tcs-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; }
.tcs-trust li { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; line-height: 1.4; color: var(--tcs-text); }
.tcs-trust .tcs-icon {
	width: 18px; height: 18px; padding: 3px; border-radius: 50%;
	background: #e3f2e6; color: var(--tcs-success); stroke-width: 3;
}

/* Pomoć */
.tcs-help {
	border: 1px solid var(--tcs-border); border-radius: var(--tcs-radius);
	padding: 16px 18px; background: var(--tcs-surface);
}
.tcs-help__title { font-weight: 650; font-size: 16px; margin: 0 0 12px; }
.tcs-help__items { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.tcs-help__item {
	display: flex; align-items: center; gap: 10px; text-decoration: none !important; color: var(--tcs-text) !important;
}
.tcs-help__item .tcs-icon { color: var(--tcs-accent); }
.tcs-help__item span { display: flex; flex-direction: column; line-height: 1.25; }
.tcs-help__item small { font-size: 12px; color: var(--tcs-muted); }
.tcs-help__item strong { font-size: 15px; }
.tcs-help__item:hover strong { color: var(--tcs-accent); }

/* Specifikacija */
.tcs-spec {
	border: 1px solid var(--tcs-border); border-radius: var(--tcs-radius);
	background: var(--tcs-surface); padding: 4px 16px 16px;
}
.tcs-spec__head {
	list-style: none; cursor: pointer;
	display: flex; align-items: center; justify-content: space-between;
	padding: 14px 2px; font-size: 18px; font-weight: 650;
}
.tcs-spec__head::-webkit-details-marker { display: none; }
.tcs-spec__head .tcs-icon { transition: transform .2s; }
.tcs-spec[open] .tcs-spec__head .tcs-icon { transform: rotate(180deg); }
.tcs-spec:not([open]) { padding-bottom: 4px; }
.tcs-spec__table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0 !important; border: 0 !important; }
.tcs-spec__table th,
.tcs-spec__table td {
	padding: 9px 12px !important; border: 0 !important; font-size: 14px; text-align: left; vertical-align: top;
	background: transparent;
}
.tcs-spec__table th { width: 45%; font-weight: 600; color: var(--tcs-text); }
.tcs-spec__table td { color: var(--tcs-text); }
.tcs-spec__table tr:nth-child(odd) th,
.tcs-spec__table tr:nth-child(odd) td { background: var(--tcs-surface-2); }
.tcs-spec__table tr:nth-child(odd) th { border-radius: 8px 0 0 8px; }
.tcs-spec__table tr:nth-child(odd) td { border-radius: 0 8px 8px 0; }
.tcs-spec__table a { color: inherit; }

/* Opis preko cele širine */
.tcs-section {
	background: var(--tcs-surface);
	border: 1px solid var(--tcs-border);
	border-radius: var(--tcs-radius);
	padding: 28px 32px;
}
.tcs-section__title {
	font-size: 14px !important; text-transform: uppercase; letter-spacing: .1em; font-weight: 700;
	margin: 0 0 14px !important; color: var(--tcs-text);
}
.tcs-section__body { font-size: 15px; line-height: 1.7; color: var(--tcs-text); }
.tcs-section__body > :last-child { margin-bottom: 0; }

/* Povezani proizvodi — samo razmak */
.tcs-product-page .related.products,
.tcs-product-page .upsells.products { margin-top: 8px; }

@media (max-width: 900px) {
	.tcs-product-page :has(> .summary.entry-summary) { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.tcs-product-page :has(> .summary.entry-summary) > * { grid-column: 1 !important; position: static !important; }
}
@media (max-width: 480px) {
	.tcs-pricebox__grid,
	.tcs-calc__fields { grid-template-columns: 1fr; }
	.tcs-buybox { padding: 12px; }
	.tcs-section { padding: 20px; }
	.tcs-product-page div.product form.cart .single_add_to_cart_button { flex-basis: 100%; }
}

/* ==========================================================================
   ZAJEDNIČKO: KORPA I PLAĆANJE (klasična verzija)
   ========================================================================== */

.tcs-shop-flow .woocommerce { font-family: var(--tcs-font); color: var(--tcs-text); }

.tcs-shop-flow .woocommerce-info,
.tcs-shop-flow .woocommerce-message,
.tcs-shop-flow .woocommerce-error {
	border: 0 !important; border-radius: var(--tcs-radius-sm);
	background: var(--tcs-surface-2) !important; color: var(--tcs-text) !important;
	padding: 14px 18px 14px 48px !important; font-size: 14px; margin-bottom: 20px !important;
}
.tcs-shop-flow .woocommerce-info::before,
.tcs-shop-flow .woocommerce-message::before { color: var(--tcs-accent) !important; top: 14px !important; left: 18px !important; }
.tcs-shop-flow .woocommerce-error { background: #fbeceb !important; }
.tcs-shop-flow .woocommerce-error::before { color: var(--tcs-danger) !important; top: 14px !important; left: 18px !important; }
.tcs-shop-flow .woocommerce-info a,
.tcs-shop-flow .woocommerce-message a { color: var(--tcs-accent) !important; font-weight: 600; }

.tcs-shop-flow .shop_table { border: 0 !important; border-radius: 0; margin: 0 !important; }
.tcs-shop-flow .shop_table th,
.tcs-shop-flow .shop_table td { border: 0 !important; background: transparent; }

.tcs-trustbox { margin-top: 22px; }
.tcs-trustbox__title {
	display: flex; align-items: center; gap: 8px;
	font-weight: 650; font-size: 16px; margin: 0 0 10px;
}
.tcs-trustbox__title .tcs-icon { color: var(--tcs-accent); }
.tcs-shop-flow .tcs-trust li { font-size: 13.5px; }

/* Sidebar kartica (Ukupno / Vaša porudžbina) */
.tcs-shop-flow .cart-collaterals .cart_totals,
.tcs-shop-flow #order_review {
	background: var(--tcs-surface);
	border: 1px solid var(--tcs-border);
	border-radius: var(--tcs-radius);
	box-shadow: var(--tcs-shadow);
	padding: 24px;
}

/* ==========================================================================
   KORPA
   ========================================================================== */

/* Dve kolone koje se same prelamaju kada je mesta malo (ne zavisi od širine ekrana,
   nego od kolone u koju tema stavlja sadržaj). */
/* Roditelj forme korpe (.woocommerce ili omotač iz teme, npr. .wc-page) postaje red sa dve kolone */
body.woocommerce-cart.tcs-shop-flow :has(> form.woocommerce-cart-form) {
	display: flex !important; flex-wrap: wrap; gap: 24px 40px; align-items: flex-start;
}
body.woocommerce-cart.tcs-shop-flow :has(> form.woocommerce-cart-form) > * { flex: 1 1 100%; min-width: 0; margin-bottom: 0; }
body.woocommerce-cart.tcs-shop-flow :has(> form.woocommerce-cart-form) > .woocommerce-cart-form { flex: 999 1 540px; container: tcscart / inline-size; }
body.woocommerce-cart.tcs-shop-flow :has(> form.woocommerce-cart-form) > .cart-collaterals {
	flex: 1 1 360px; position: sticky; top: 24px;
	float: none !important; width: auto !important; max-width: none !important; margin: 0 !important;
}
body.woocommerce-cart.tcs-shop-flow .cart-collaterals > * { float: none !important; width: auto !important; max-width: none !important; }
.woocommerce-cart.tcs-shop-flow .woocommerce > .woocommerce-notices-wrapper:empty { display: none; }
.tcs-cart-count { margin: 0 0 14px; font-size: 14px; color: var(--tcs-muted); }
.tcs-shop-flow table.shop_table.cart td.product-name { text-align: left !important; }
.tcs-shop-flow table.shop_table.cart td.product-subtotal { text-align: right !important; }
.tcs-shop-flow table.shop_table.cart td.product-quantity { text-align: center !important; }
.tcs-shop-flow dl.variation dt,
.tcs-shop-flow dl.variation dd {
	display: inline !important; float: none !important; margin: 0 !important; padding: 0 !important;
	width: auto !important; text-align: left !important; border: 0 !important;
}
.tcs-shop-flow dl.variation { display: block !important; }
.tcs-shop-flow dl.variation dd p { display: inline; }
.tcs-trustbox { clear: both; float: none; width: auto; }
.tcs-shop-flow .tcs-trustbox__title {
	display: flex !important; float: none !important; width: auto !important;
	text-align: left !important; margin: 0 0 10px !important;
}

.tcs-shop-flow .cart-collaterals .cart_totals { float: none !important; width: auto !important; }
.tcs-shop-flow .cart-collaterals::before,
.tcs-shop-flow .cart-collaterals::after { display: none; }

/* Tabela korpe kao lista kartica */
.tcs-shop-flow table.shop_table.cart thead {
	display: block; border-bottom: 1px solid var(--tcs-border);
}
.tcs-shop-flow table.shop_table.cart thead tr,
.tcs-shop-flow table.shop_table.cart tbody tr.cart_item {
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr) 132px 130px 36px;
	grid-template-areas: "thumb name qty subtotal remove";
	align-items: center;
	gap: 0 18px;
}
.tcs-shop-flow table.shop_table.cart thead tr { grid-template-areas: "x name qty subtotal y"; }
.tcs-shop-flow table.shop_table.cart thead th {
	padding: 0 0 14px !important; font-size: 13px; font-weight: 600; color: var(--tcs-muted);
}
.tcs-shop-flow table.shop_table.cart thead .product-remove,
.tcs-shop-flow table.shop_table.cart thead .product-thumbnail,
.tcs-shop-flow table.shop_table.cart thead .product-price { display: none; }
.tcs-shop-flow table.shop_table.cart thead .product-name { grid-column: 1 / 3; }
.tcs-shop-flow table.shop_table.cart thead .product-quantity { grid-area: qty; text-align: center; }
.tcs-shop-flow table.shop_table.cart thead .product-subtotal { grid-area: subtotal; text-align: right; }

.tcs-shop-flow table.shop_table.cart tbody { display: block; }
.tcs-shop-flow table.shop_table.cart tbody tr.cart_item {
	padding: 18px 0; border-bottom: 1px solid var(--tcs-border);
}
.tcs-shop-flow table.shop_table.cart td { padding: 0 !important; }
.tcs-shop-flow table.shop_table.cart td.product-thumbnail { grid-area: thumb; }
.tcs-shop-flow table.shop_table.cart td.product-thumbnail img {
	width: 88px !important; height: 88px; object-fit: cover; border-radius: var(--tcs-radius-sm); display: block;
}
.tcs-shop-flow table.shop_table.cart td.product-name { grid-area: name; }
.tcs-shop-flow table.shop_table.cart td.product-name > a {
	font-size: 16px; font-weight: 600; color: var(--tcs-text) !important; text-decoration: none;
}
.tcs-shop-flow table.shop_table.cart td.product-name > a:hover { color: var(--tcs-accent) !important; }
.tcs-shop-flow table.shop_table.cart td.product-price {
	grid-area: name; align-self: end; display: none;
}
.tcs-shop-flow table.shop_table.cart td.product-quantity { grid-area: qty; text-align: center; }
.tcs-shop-flow table.shop_table.cart td.product-subtotal {
	grid-area: subtotal; text-align: right; font-size: 17px; font-weight: 700;
}
.tcs-shop-flow table.shop_table.cart td.product-remove { grid-area: remove; text-align: right; }
.tcs-shop-flow table.shop_table.cart td.product-remove a.remove {
	display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
	color: var(--tcs-muted) !important; background: transparent; font-size: 22px; font-weight: 400;
}
.tcs-shop-flow table.shop_table.cart td.product-remove a.remove:hover {
	background: #fbeceb !important; color: var(--tcs-danger) !important;
}

/* Kvadratura ispod naziva (korpa + plaćanje + mini korpa) */
.tcs-shop-flow dl.variation {
	margin: 4px 0 0; font-size: 13px; color: var(--tcs-muted); display: flex; gap: 4px; flex-wrap: wrap;
}
.tcs-shop-flow dl.variation dt { font-weight: 500; margin: 0; float: none; }
.tcs-shop-flow dl.variation dd { margin: 0; float: none; }
.tcs-shop-flow dl.variation dd p { margin: 0; }
.tcs-shop-flow dl.variation strong { color: var(--tcs-text); }

/* Kupon + ažuriranje */
.tcs-shop-flow table.shop_table.cart tbody tr:not(.cart_item) { display: block; }
.tcs-shop-flow table.shop_table.cart td.actions {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 18px 0 0 !important;
}
.tcs-shop-flow table.shop_table.cart td.actions .coupon {
	display: flex; gap: 8px; float: none !important; padding: 0 !important; border: 0 !important;
}
.tcs-shop-flow td.actions .coupon label { display: none; }
.tcs-shop-flow td.actions .coupon .input-text,
.tcs-shop-flow .checkout_coupon .input-text {
	width: 200px !important; height: 42px; padding: 0 16px !important; margin: 0 !important;
	border: 1px solid var(--tcs-border) !important; border-radius: 999px !important;
	background: var(--tcs-surface) !important; font-size: 14px;
}
.tcs-shop-flow td.actions .button,
.tcs-shop-flow .checkout_coupon .button {
	height: 42px; padding: 0 20px !important; border-radius: 999px !important;
	background: var(--tcs-text) !important; color: #fff !important; font-weight: 600 !important; font-size: 14px !important;
	border: 0 !important;
}
.tcs-shop-flow td.actions > .button[name="update_cart"] {
	margin-left: auto; background: transparent !important; color: var(--tcs-text) !important;
	border: 1px solid var(--tcs-border) !important;
}
.tcs-js .tcs-shop-flow td.actions > .button[name="update_cart"] { display: none !important; }
.tcs-shop-flow table.shop_table tr,
.tcs-shop-flow table.shop_table th,
.tcs-shop-flow table.shop_table td { background: transparent !important; }

/* Ukupno */
.tcs-shop-flow .cart_totals > h2,
.tcs-shop-flow #order_review_heading {
	font-size: 20px !important; font-weight: 650; margin: 0 0 12px !important; letter-spacing: -.01em;
}
.tcs-shop-flow .cart_totals table.shop_table tr,
.tcs-shop-flow #order_review table.shop_table tfoot tr {
	border-bottom: 1px solid var(--tcs-border);
}
.tcs-shop-flow .cart_totals table.shop_table th,
.tcs-shop-flow .cart_totals table.shop_table td {
	padding: 14px 0 !important; font-size: 14px; vertical-align: top;
}
.tcs-shop-flow .cart_totals table.shop_table th { font-weight: 600; width: 40%; }
.tcs-shop-flow .cart_totals table.shop_table td { text-align: right; }
.tcs-shop-flow .cart_totals .cart-subtotal td,
.tcs-shop-flow .cart_totals .order-total td { font-weight: 700; font-size: 17px; }
.tcs-shop-flow .cart_totals .order-total th { font-size: 16px; }
.tcs-shop-flow .cart_totals .order-total td strong { font-size: 22px; }
.tcs-shop-flow .cart_totals .order-total { border-bottom: 0 !important; }
.tcs-shop-flow .cart_totals td small.includes_tax,
.tcs-shop-flow #order_review small.includes_tax { display: block; font-weight: 400; font-size: 12px; color: var(--tcs-muted); }
.tcs-shop-flow .woocommerce-shipping-totals ul#shipping_method { margin: 0; }
.tcs-shop-flow .woocommerce-shipping-totals ul#shipping_method li { margin: 0 0 6px; }
.tcs-shop-flow .woocommerce-shipping-calculator .shipping-calculator-button { color: var(--tcs-accent); }
.tcs-shop-flow .wc-proceed-to-checkout { padding: 16px 0 0 !important; }
.tcs-shop-flow .wc-proceed-to-checkout .checkout-button { width: 100%; margin: 0 !important; }

/* Prazna korpa */
.tcs-shop-flow .cart-empty.woocommerce-info { grid-column: 1 / -1; }
.tcs-shop-flow .return-to-shop .button {
	border-radius: 999px !important; background: var(--tcs-primary) !important; color: #fff !important; padding: 12px 24px !important;
}

/* Preporučeni (cross-sells) ispod korpe */
.tcs-shop-flow .cross-sells { grid-column: 1 / -1; width: auto !important; float: none !important; }

/* WooCommerce (i Bootstrap teme) na manjim ekranima krije sličicu i dodaje natpise
   ćelijama — naš raspored redova to ne koristi, pa ga uvek poništavamo. */
.tcs-shop-flow table.shop_table.cart tr td { display: block !important; }
.tcs-shop-flow table.shop_table.cart tr td.product-thumbnail { display: block !important; }
.tcs-shop-flow table.shop_table.cart tr td.product-price { display: none !important; }
.tcs-shop-flow table.shop_table.cart tr td::before { display: none !important; }
.tcs-shop-flow table.shop_table.cart tr td.actions { display: flex !important; }
.tcs-shop-flow .cart_totals table.shop_table tr { display: flex; justify-content: space-between; gap: 16px; }
.tcs-shop-flow .cart_totals table.shop_table th { display: block !important; padding-right: 0 !important; }
.tcs-shop-flow .cart_totals table.shop_table td { display: block !important; flex: 1; text-align: right !important; }
.tcs-shop-flow .cart_totals table.shop_table td::before { display: none !important; }
.tcs-shop-flow .cart_totals table.shop_table tbody { display: block; }

/* Uska korpa (telefon ili uska kolona teme): kompaktni redovi */
@container tcscart (max-width: 600px) {
	.tcs-shop-flow table.shop_table.cart thead { display: none; }
	.tcs-shop-flow table.shop_table.cart tbody tr.cart_item {
		grid-template-columns: 72px minmax(0, 1fr) auto;
		grid-template-areas: "thumb name remove" "thumb qty subtotal";
		gap: 8px 14px;
	}
	.tcs-shop-flow table.shop_table.cart td.product-thumbnail img { width: 72px !important; height: 72px; }
	.tcs-shop-flow table.shop_table.cart tbody tr.cart_item td::before { display: none !important; }
	.tcs-shop-flow table.shop_table.cart td.product-quantity { text-align: left !important; }
	.tcs-shop-flow table.shop_table.cart td.product-subtotal { font-size: 16px; }
	.tcs-shop-flow table.shop_table.cart td.product-quantity { grid-area: qty; }
	.tcs-shop-flow td.actions .coupon { width: 100%; }
	.tcs-shop-flow td.actions .coupon .input-text { flex: 1; width: auto !important; }
}

/* ==========================================================================
   PLAĆANJE
   ========================================================================== */

/* Levo podaci kupca, desno "Vaša porudžbina" + plaćanje (.tcs-review-col dodaje plugin).
   Kolone se same prelamaju kada je mesta malo. */
body.woocommerce-checkout.tcs-shop-flow form.checkout {
	display: flex !important; flex-wrap: wrap; gap: 24px 40px; align-items: flex-start;
}
body.woocommerce-checkout.tcs-shop-flow form.checkout > * { flex: 1 1 100%; min-width: 0; }
body.woocommerce-checkout.tcs-shop-flow form.checkout > #customer_details { flex: 999 1 460px; container: tcscustomer / inline-size; }
body.woocommerce-checkout.tcs-shop-flow form.checkout > .tcs-review-col { flex: 1 1 400px; position: sticky; top: 24px; }
/* Teme (i Bootstrap) često zadaju float/širinu u procentima ovim elementima. */
body.woocommerce-checkout.tcs-shop-flow form.checkout #customer_details,
body.woocommerce-checkout.tcs-shop-flow form.checkout #order_review_heading,
body.woocommerce-checkout.tcs-shop-flow form.checkout #order_review {
	float: none !important; width: auto !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important;
}
.tcs-shop-flow .woocommerce-privacy-policy-text p,
.tcs-shop-flow .woocommerce-terms-and-conditions-wrapper p { font-size: 12.5px !important; line-height: 1.5 !important; margin: 0 0 10px; }

/* Naslov "Vaša porudžbina" je deo kartice */
.tcs-shop-flow #order_review_heading {
	background: var(--tcs-surface); border: 1px solid var(--tcs-border); border-bottom: 0;
	border-radius: var(--tcs-radius) var(--tcs-radius) 0 0;
	padding: 24px 24px 0 !important; margin: 0 !important;
}
.tcs-shop-flow #order_review_heading + #order_review {
	border-top: 0; border-radius: 0 0 var(--tcs-radius) var(--tcs-radius); padding-top: 12px; box-shadow: none;
}

/* WooCommerce klase .col-1/.col-2 se sudaraju sa Bootstrap kolonama (8% i 16% širine). */
body.tcs-shop-flow form.checkout #customer_details.col2-set { display: block !important; width: auto; float: none; margin: 0 !important; }
body.tcs-shop-flow form.checkout #customer_details.col2-set > .col-1,
body.tcs-shop-flow form.checkout #customer_details.col2-set > .col-2 {
	float: none !important; width: 100% !important; max-width: none !important;
	flex: none !important; padding: 0 !important; margin-left: 0 !important; margin-right: 0 !important;
}
.tcs-shop-flow #customer_details h3 { font-size: 18px !important; font-weight: 650; margin: 0 0 14px !important; }
.tcs-shop-flow #customer_details .col-2 { margin-top: 20px; }

/* Polja */
.tcs-shop-flow form.checkout .form-row,
.tcs-shop-flow .woocommerce-form-login .form-row { padding: 0 !important; margin: 0 0 16px !important; }
.tcs-shop-flow .woocommerce-billing-fields__field-wrapper,
.tcs-shop-flow .woocommerce-shipping-fields__field-wrapper {
	display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px;
}
.tcs-shop-flow .woocommerce-billing-fields__field-wrapper > .form-row,
.tcs-shop-flow .woocommerce-shipping-fields__field-wrapper > .form-row {
	grid-column: 1 / -1; width: auto !important; float: none !important;
}
.tcs-shop-flow .woocommerce-billing-fields__field-wrapper > .form-row-first,
.tcs-shop-flow .woocommerce-shipping-fields__field-wrapper > .form-row-first { grid-column: 1; }
.tcs-shop-flow .woocommerce-billing-fields__field-wrapper > .form-row-last,
.tcs-shop-flow .woocommerce-shipping-fields__field-wrapper > .form-row-last { grid-column: 2; }
.tcs-shop-flow form .form-row label {
	display: block; font-size: 13.5px; font-weight: 600; margin: 0 0 6px; line-height: 1.3; color: var(--tcs-text);
}
.tcs-shop-flow form .form-row .required { color: var(--tcs-danger); text-decoration: none; }
.tcs-shop-flow form .form-row .optional { color: var(--tcs-muted); font-weight: 400; }
.tcs-shop-flow form .form-row input.input-text,
.tcs-shop-flow form .form-row textarea,
.tcs-shop-flow form .form-row select,
.tcs-shop-flow .select2-container .select2-selection--single {
	width: 100%; min-height: 46px; padding: 10px 14px !important;
	border: 1px solid var(--tcs-border) !important; border-radius: var(--tcs-radius-sm) !important;
	background: var(--tcs-surface) !important; font-size: 15px; color: var(--tcs-text);
	box-shadow: none !important; transition: border-color .15s, box-shadow .15s;
	box-sizing: border-box;
}
.tcs-shop-flow form .form-row textarea { min-height: 110px; line-height: 1.5; }
.tcs-shop-flow form .form-row input.input-text:focus,
.tcs-shop-flow form .form-row textarea:focus,
.tcs-shop-flow form .form-row select:focus,
.tcs-shop-flow .select2-container--focus .select2-selection--single,
.tcs-shop-flow .select2-container--open .select2-selection--single {
	outline: none; border-color: var(--tcs-accent) !important; box-shadow: 0 0 0 3px var(--tcs-accent-soft) !important;
}
.tcs-shop-flow .select2-container .select2-selection--single { display: flex; align-items: center; padding: 0 14px !important; }
.tcs-shop-flow .select2-container .select2-selection--single .select2-selection__rendered { padding: 0 !important; line-height: 1.4; color: var(--tcs-text); }
.tcs-shop-flow .select2-container .select2-selection--single .select2-selection__arrow { height: 100% !important; right: 8px !important; }
.tcs-shop-flow .form-row.woocommerce-invalid input.input-text,
.tcs-shop-flow .form-row.woocommerce-invalid .select2-selection { border-color: var(--tcs-danger) !important; }
.tcs-shop-flow .form-row.woocommerce-validated input.input-text { border-color: var(--tcs-border) !important; }
.tcs-shop-flow form .form-row input[type="checkbox"],
.tcs-shop-flow #payment input[type="radio"] { accent-color: var(--tcs-accent); width: 17px; height: 17px; }
.tcs-shop-flow .woocommerce-form__label-for-checkbox { display: flex !important; align-items: center; gap: 8px; font-weight: 500 !important; cursor: pointer; }
.tcs-shop-flow #ship-to-different-address { font-size: 16px; margin: 6px 0 14px; }

/* Pregled porudžbine */
.tcs-shop-flow #order_review table.shop_table thead th {
	font-size: 13px; font-weight: 600; color: var(--tcs-muted); padding: 0 0 10px !important;
	border-bottom: 1px solid var(--tcs-border) !important;
}
.tcs-shop-flow #order_review table.shop_table .product-total,
.tcs-shop-flow #order_review table.shop_table tfoot td { text-align: right; }
.tcs-shop-flow #order_review table.shop_table tbody td {
	padding: 14px 0 !important; border-bottom: 1px solid var(--tcs-border) !important; vertical-align: middle;
	font-size: 14px;
}
/* Sličica levo, desno naziv → količina → kvadratura */
.tcs-shop-flow #order_review td.product-name {
	display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 12px; align-items: start;
	/* WooCommerce šablon posle naziva ispisuje &nbsp; — bez ovoga postaje prazna ćelija mreže. */
	font-size: 0 !important; line-height: 0;
}
.tcs-shop-flow #order_review td.product-name .tcs-review-item__name { font-size: 14px; line-height: 1.35; grid-row: 1; }
.tcs-shop-flow #order_review td.product-name > .product-quantity { grid-row: 2; line-height: 1.6; }
.tcs-shop-flow #order_review td.product-name > dl.variation { grid-row: 3; font-size: 13px; line-height: 1.5; }
.tcs-cart-count { text-align: left !important; }
.tcs-review-item { display: contents; }
.tcs-review-thumb {
	grid-column: 1; grid-row: 1 / span 3;
	width: 56px !important; height: 56px; object-fit: cover; border-radius: 8px;
}
.tcs-review-item__name { grid-column: 2; font-weight: 600; line-height: 1.35; }
.tcs-shop-flow #order_review td.product-name > .product-quantity,
.tcs-shop-flow #order_review td.product-name > dl.variation { grid-column: 2; }
.tcs-shop-flow #order_review .product-quantity { font-weight: 600; color: var(--tcs-muted); white-space: nowrap; font-size: 13px; }
.tcs-shop-flow #order_review table.shop_table tfoot th,
.tcs-shop-flow #order_review table.shop_table tfoot td { padding: 12px 0 !important; font-size: 14px; }
.tcs-shop-flow #order_review table.shop_table tfoot th { font-weight: 600; text-align: left; }
.tcs-shop-flow #order_review .order-total th { font-size: 17px; }
.tcs-shop-flow #order_review .order-total td strong { font-size: 22px; }
.tcs-shop-flow #order_review .order-total { border-bottom: 0 !important; }

/* Načini plaćanja */
.tcs-shop-flow #payment { background: transparent !important; border-radius: 0; margin-top: 16px; }
.tcs-shop-flow #payment ul.payment_methods {
	padding: 0 !important; border: 1px solid var(--tcs-border) !important; border-radius: var(--tcs-radius-sm);
	overflow: hidden;
}
.tcs-shop-flow #payment ul.payment_methods li {
	padding: 14px 16px !important; margin: 0 !important; border-bottom: 1px solid var(--tcs-border);
	list-style: none; line-height: 1.4;
}
.tcs-shop-flow #payment ul.payment_methods li:last-child { border-bottom: 0; }
.tcs-shop-flow #payment ul.payment_methods li > label { font-weight: 600; font-size: 15px; cursor: pointer; }
.tcs-shop-flow #payment ul.payment_methods li input { margin: 0 10px 0 0 !important; vertical-align: -3px; }
.tcs-shop-flow #payment div.payment_box {
	background: var(--tcs-surface-2) !important; border-radius: var(--tcs-radius-sm);
	color: var(--tcs-muted) !important; font-size: 13.5px; margin: 10px 0 0 !important; padding: 12px 14px !important;
}
.tcs-shop-flow #payment div.payment_box::before { display: none; }
.tcs-shop-flow #payment div.form-row.place-order { padding: 16px 0 0 !important; margin: 0 !important; }
.tcs-shop-flow .woocommerce-privacy-policy-text { font-size: 12.5px; color: var(--tcs-muted); line-height: 1.5; }
.tcs-shop-flow .woocommerce-privacy-policy-text a,
.tcs-shop-flow .woocommerce-terms-and-conditions-link { color: var(--tcs-accent); }
.tcs-shop-flow #place_order { width: 100%; float: none !important; margin-top: 6px; font-size: 17px !important; }

/* Kupon i prijava (gornja traka) */
.woocommerce-checkout.tcs-shop-flow .woocommerce-form-coupon-toggle,
.woocommerce-checkout.tcs-shop-flow .woocommerce-form-login-toggle { margin-bottom: 0; }
.tcs-shop-flow form.checkout_coupon,
.tcs-shop-flow form.woocommerce-form-login {
	border: 1px solid var(--tcs-border) !important; border-radius: var(--tcs-radius-sm) !important;
	padding: 18px !important; margin: 0 0 20px !important;
}
.tcs-shop-flow form.checkout_coupon { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tcs-shop-flow form.checkout_coupon p { margin: 0; }
.tcs-shop-flow form.checkout_coupon .form-row { width: auto !important; float: none !important; margin: 0 !important; }

/* Uska kolona za podatke kupca: polja jedno ispod drugog */
@container tcscustomer (max-width: 480px) {
	.tcs-shop-flow .woocommerce-billing-fields__field-wrapper,
	.tcs-shop-flow .woocommerce-shipping-fields__field-wrapper { grid-template-columns: 1fr; }
	.tcs-shop-flow .woocommerce-billing-fields__field-wrapper > .form-row-first,
	.tcs-shop-flow .woocommerce-billing-fields__field-wrapper > .form-row-last,
	.tcs-shop-flow .woocommerce-shipping-fields__field-wrapper > .form-row-first,
	.tcs-shop-flow .woocommerce-shipping-fields__field-wrapper > .form-row-last { grid-column: 1; }
}
@media (max-width: 560px) {
	.tcs-shop-flow #order_review_heading,
	.tcs-shop-flow #order_review,
	.tcs-shop-flow .cart-collaterals .cart_totals { padding-left: 16px !important; padding-right: 16px !important; }
}

/* ==========================================================================
   BLOK VERZIJE KORPE I PLAĆANJA (osnovno usklađivanje boja i oblika)
   Za pun dizajn preporučena je klasična verzija — vidi obaveštenje u adminu.
   ========================================================================== */

.wc-block-cart .wc-block-components-sidebar,
.wc-block-checkout__sidebar {
	background: var(--tcs-surface);
	border: 1px solid var(--tcs-border);
	border-radius: var(--tcs-radius);
	padding: 24px !important;
}
.wc-block-cart .wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
.wc-block-components-button.wp-element-button.contained {
	background: var(--tcs-primary) !important; color: #fff !important;
	border-radius: 999px !important; min-height: 52px; font-weight: 650;
}
.wc-block-cart .wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover { background: var(--tcs-primary-hover) !important; }
.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-blocks-components-select .wc-blocks-components-select__select {
	border-color: var(--tcs-border) !important; border-radius: var(--tcs-radius-sm) !important;
}
.wc-block-components-text-input.is-active input:focus,
.wc-block-components-text-input input:focus { border-color: var(--tcs-accent) !important; box-shadow: 0 0 0 3px var(--tcs-accent-soft) !important; }
.wc-block-components-radio-control__input:checked { border-color: var(--tcs-accent) !important; }
.wc-block-components-radio-control__input:checked::before { background: var(--tcs-accent) !important; }
.wc-block-components-checkbox .wc-block-components-checkbox__input:checked { background: var(--tcs-accent) !important; border-color: var(--tcs-accent) !important; }
.wc-block-cart-item__image img,
.wc-block-components-order-summary-item__image img { border-radius: var(--tcs-radius-sm); }
.wc-block-components-quantity-selector { border-radius: 999px !important; }
.wc-block-components-quantity-selector::after { border-radius: 999px !important; border-color: var(--tcs-border) !important; }

/* Naziv proizvoda u korpi — tema ponekad nasleđuje veliki prored naslova */
.tcs-shop-flow table.shop_table.cart td.product-name > a { line-height: 1.35; display: inline-block; }


/* ==========================================================================
   Šire od 1100px: sidebar fiksne širine, glavni deo dobija ostatak
   ========================================================================== */
@media (min-width: 1100px) {
	body.woocommerce-cart.tcs-shop-flow :has(> form.woocommerce-cart-form) > .woocommerce-cart-form { flex: 1 1 0; }
	body.woocommerce-cart.tcs-shop-flow :has(> form.woocommerce-cart-form) > .cart-collaterals { flex: 0 0 var(--tcs-cart-sidebar); }
	body.woocommerce-checkout.tcs-shop-flow form.checkout > #customer_details { flex: 1 1 0; }
	body.woocommerce-checkout.tcs-shop-flow form.checkout > .tcs-review-col { flex: 0 0 var(--tcs-checkout-sidebar); }
}

/* Pomoć ispod slike i galerije proizvoda */
.product-gallery-col .tcs-help { margin-top: 24px; }
