/*
 * DRESSCODE Tabs + Slider Widget v1.0.9
 * Card desktop: 308x411 | Card mobile: 250x333
 */

/* ============================================================
 * BASE
 * ============================================================ */
.gts-wrapper {
	font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0;
	box-sizing: border-box;
	position: relative;
}
.gts-wrapper *,
.gts-wrapper *::before,
.gts-wrapper *::after {
	box-sizing: border-box;
}

/* ============================================================
 * TABS NAV
 * ============================================================ */
.gts-tabs-nav {
	display: flex;
	gap: 32px;
	padding: 0 0 24px 0;
	flex-wrap: wrap;
}
.gts-tab-btn {
	font-family: inherit;
	font-weight: 600;
	font-size: 20px;
	line-height: 32px;
	letter-spacing: 0.28px;
	color: #000;
	background: transparent;
	border: 0;
	padding: 4px 0;
	cursor: pointer;
	transition: opacity .2s ease;
}
.gts-tab-btn:not(.is-active) { opacity: .55; }
.gts-tab-btn.is-active {
	text-decoration: underline;
	text-underline-offset: 6px;
	text-decoration-thickness: 2px;
}
.gts-tab-btn:hover { opacity: 1; }
/* Ubij Elementor accent (crvenu) na hover/focus/active taba */
.gts-tab-btn,
.gts-tab-btn:hover,
.gts-tab-btn:focus,
.gts-tab-btn:active,
.gts-tab-btn:focus-visible,
.gts-tab-btn.is-active {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	color: #000 !important;
	box-shadow: none !important;
	outline: none !important;
	-webkit-tap-highlight-color: transparent;
}

/* ============================================================
 * TAB PANELS
 * ============================================================ */
.gts-tab-panel { display: none; }
.gts-tab-panel.is-active {
	display: block;
	animation: gtsFade .35s ease;
}
@keyframes gtsFade {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
 * HERO ROW
 * ============================================================ */
.gts-row-hero {
	display: block;
	width: 100%;
}

/* ============================================================
 * HERO DESKTOP (pokazuj, sakri mobile)
 * ============================================================ */
.gts-hero-mobile { display: none; }

.gts-hero-desktop {
	display: grid;
	grid-template-columns: 768px 512px;
	border-radius: 16px;
	overflow: hidden;
	width: 1280px;
	height: 488px;
}
.gts-hero-img {
	background-size: cover;
	background-position: center;
	background-color: #B5B5B5;
	width: 768px;
	height: 100%;
}
.gts-hero-text {
	background-color: #F2F2F2;
	width: 512px;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 48px;
}
.gts-hero-title {
	font-family: inherit;
	font-weight: 600;
	font-size: 32px;
	line-height: 32px;
	letter-spacing: 0.28px;
	color: #000;
	margin: 0 0 12px 0;
}
.gts-hero-subtitle {
	font-family: inherit;
	font-weight: 600;
	font-size: 20px;
	line-height: 32px;
	letter-spacing: 0.28px;
	color: #000;
	margin: 0 0 32px 0;
	text-transform: uppercase;
}
.gts-hero-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 171px;
	height: 48px;
	background: #000;
	color: #fff;
	font-family: inherit;
	font-weight: 600;
	font-size: 16px;
	line-height: 24px;
	letter-spacing: 0.2px;
	text-decoration: none;
	border-radius: 8px;
	border: 0;
	cursor: pointer;
	transition: transform .15s ease, opacity .15s ease;
}
.gts-hero-btn:hover { transform: translateY(-1px); opacity: .92; }

/* ============================================================
 * SLIDER
 * ============================================================ */
.gts-slider-wrap {
	margin-top: 24px;
	/* VIEWPORT = full-bleed, CENTRIRAN, cap 2000px. Default pozicija kartica (1280-left) ide preko slidesOffsetBefore (JS). */
	width: 100vw;
	max-width: 2000px;
	margin-left: 50%;
	transform: translateX(-50%);
	position: relative;
}
.gts-swiper {
	overflow: hidden !important;
	width: 100%;
}

/* ============================================================
 * STRELICE (next/prev) - smeđi krug + chevron, toggle na krajevima
 * ============================================================ */
.gts-arrow {
	position: absolute;
	top: 205px; /* vertikalni centar slike kartice (411px) */
	transform: translateY(-50%) scale(1);
	width: 38px;
	height: 38px;
	border: 0;
	padding: 0;
	border-radius: 50%;
	background: #035751;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 1px 2px -1px rgba(0,0,0,.1), 0 1px 3px 0 rgba(0,0,0,.1);
	z-index: 6;
	opacity: 1;
	visibility: visible;
	transition: opacity .35s ease, transform .35s cubic-bezier(.34,1.56,.64,1), visibility .35s, background-color .2s ease;
}
.gts-arrow img {
	height: 16px;
	width: auto;
	display: block;
	pointer-events: none;
	object-fit: contain;
}
.gts-arrow:hover { background: #5E5E5E; }
.gts-arrow:active { transform: translateY(-50%) scale(.92); }
/* Strelice ~30px od ivice slidera. Slider je kapiran na 2000px → strelice nikad ne idu van 2000 containera. */
.gts-arrow-prev { left: 30px; right: auto; }
.gts-arrow-next { right: 30px; left: auto; }
.gts-arrow-prev img { transform: rotate(180deg); }

/* Skriveno stanje (na početku skrivena lijeva, na kraju desna) - cool fade + scale */
.gts-arrow.gts-arrow--hidden {
	opacity: 0;
	visibility: hidden;
	transform: translateY(-50%) scale(.55);
	pointer-events: none;
}
/* Ako sve kartice stanu (nema scrolla) - sakrij obje */
.gts-arrow.gts-arrow--lock { display: none !important; }
.gts-swiper .swiper-wrapper {
	display: flex;
	align-items: stretch;
}

/* ============================================================
 * CARD DESKTOP 308x411
 * ============================================================ */
.gts-card {
	width: 308px !important;
	height: auto;
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	position: relative;
}
.gts-card-img-wrap {
	position: relative;
	width: 100%;
	height: 411px;
	border-radius: 16px;
	overflow: hidden;
	background: #D9D9D9;
}
.gts-card-link {
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
}
/* SEO: jedan glavni link po kartici (prekriva cijelu karticu); wishlist/korpa iznad (z-index 3) */
.gts-card-stretch { position: absolute; inset: 0; z-index: 1; }
.gts-card-img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top; /* fokus na vrh → glava/lice se ne reže */
	display: block;
	transition: transform .4s ease;
}
.gts-card:hover .gts-card-img-wrap img { transform: scale(1.04); }

.gts-card-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.18) 100%);
	pointer-events: none;
}

/* Bez kruga/pozadine/bordera - čist TAMNI heart outline (kao single proizvod, samo bez bordera) */
/* wlfmc je FONT-ikona (<i>) - boja ide preko color (vrijedi i za outline i za filled glyph). */

/* BADGES */
.gts-badges {
	position: absolute;
	bottom: 12px;
	right: 12px;
	display: flex;
	gap: 4px;
	z-index: 3;
}
.gts-badge-sale {
	background: #E5212F;
	color: #fff;
	font-family: inherit;
	font-weight: 600;
	font-size: 11px;
	line-height: 16.5px;
	width: 70px;
	height: 25px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
}
.gts-badge-percent {
	background: #3C3C3C;
	color: #fff;
	font-family: inherit;
	font-weight: 600;
	font-size: 11px;
	line-height: 16.5px;
	width: 51.4px;
	height: 24.5px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
}

/* ADD TO CART */
.gts-add-to-cart {
	position: absolute;
	bottom: 12px;
	left: 12px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fff;
	border: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 3;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	transition: transform .2s ease, background-color .2s ease;
	padding: 0;
}
.gts-add-to-cart img { width: 24px; height: 24px; display: block; }
.gts-add-to-cart:hover { transform: scale(1.06); background: #f5f5f5; }
/* Ubij Elementor kit boju (crvena/pink) koja ostane na dugmetu poslije klika */
.gts-add-to-cart:focus,
.gts-add-to-cart:active,
.gts-add-to-cart:focus-visible { background: #fff !important; box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important; outline: none !important; }
.gts-add-to-cart.is-loading { pointer-events: none; opacity: .7; }
.gts-add-to-cart.is-success {
	background: #1F9D55;
	animation: gtsCartPulse .6s ease;
}
.gts-add-to-cart.is-success img { display: none; }
.gts-add-to-cart.is-success::after {
	content: '';
	width: 14px;
	height: 8px;
	border-left: 2.5px solid #fff;
	border-bottom: 2.5px solid #fff;
	transform: rotate(-45deg) translateY(-2px);
	display: block;
}
@keyframes gtsCartPulse {
	0%   { transform: scale(1); }
	40%  { transform: scale(1.25); box-shadow: 0 0 0 8px rgba(31,157,85,0.18); }
	100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(31,157,85,0); }
}

/* CARD INFO */
.gts-card-info { padding: 12px 4px 0 4px; }
.gts-card-title {
	display: block;
	font-family: inherit;
	font-weight: 500;
	font-size: 14px;
	line-height: 18px;
	letter-spacing: 0.15px;
	color: #000;
	text-decoration: none;
	margin-bottom: 6px;
}
.gts-card-title:hover { text-decoration: underline; }
.gts-card-price {
	font-family: inherit;
	font-weight: 500;
	font-size: 14px;
	line-height: 1.4;
	letter-spacing: 0.15px;
	color: #000;
	display: flex;
	gap: 6px;
	align-items: baseline;
}
.gts-price-old { text-decoration: line-through; color: #888; font-weight: 400; }
.gts-price-sale { color: #E5212F; font-weight: 600; }
.gts-card-premium {
	margin-top: 6px;
	font-family: inherit;
	font-weight: 500;
	font-size: 11px;
	letter-spacing: 0.5px;
	color: #707070;
	text-transform: uppercase;
}

/* ============================================================
 * TOAST
 * ============================================================ */
.gts-toast {
	position: fixed;
	bottom: 24px;
	right: 24px;
	background: #1F9D55;
	color: #fff;
	padding: 14px 22px;
	border-radius: 8px;
	font-family: 'Montserrat', sans-serif;
	font-weight: 500;
	font-size: 14px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.15);
	z-index: 99999;
	transform: translateY(120%);
	opacity: 0;
	transition: transform .3s ease, opacity .3s ease;
	max-width: 320px;
}
.gts-toast.is-visible { transform: translateY(0); opacity: 1; }
.gts-toast.is-error { background: #E5212F; }

/* ============================================================
 * VARIATION MODAL
 * ============================================================ */
.gts-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.55);
	z-index: 99998;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity .22s ease, visibility 0s linear .22s;
}
.gts-modal-overlay.is-open { opacity: 1; visibility: visible; transition: opacity .22s ease, visibility 0s linear 0s; }
.gts-modal {
	background: #fff;
	border-radius: 16px;
	padding: 28px;
	max-width: 420px;
	width: calc(100% - 32px);
	font-family: 'Montserrat', sans-serif;
	opacity: 0;
	transform: translateY(10px) scale(.98);
	transition: opacity .22s ease, transform .22s ease;
}
.gts-modal-overlay.is-open .gts-modal { opacity: 1; transform: none; }
.gts-modal-loading { display: flex; align-items: center; justify-content: center; min-height: 92px; }
.gts-spinner { width: 28px; height: 28px; border: 3px solid #ececec; border-top-color: #171717; border-radius: 50%; animation: gtsSpin .7s linear infinite; }
@keyframes gtsSpin { to { transform: rotate(360deg); } }
.gts-modal-title { font-weight: 600; font-size: 18px; margin: 0 0 6px 0; }
.gts-modal-sub { font-weight: 500; font-size: 14px; color: #555; margin: 0 0 20px 0; }
.gts-modal-sizes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.gts-size-btn {
	min-width: 48px;
	height: 44px;
	padding: 0 12px;
	border: 1.5px solid #ddd;
	background: #fff;
	border-radius: 8px;
	font-family: inherit;
	font-weight: 500;
	font-size: 14px;
	cursor: pointer;
	transition: all .15s ease;
}
.gts-size-btn:hover:not(:disabled) { border-color: #000; }
.gts-size-btn.is-selected { background: #000; color: #fff; border-color: #000; }
.gts-size-btn:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.gts-modal-actions { display: flex; gap: 12px; }
.gts-modal-btn {
	flex: 1;
	height: 44px;
	border-radius: 8px;
	border: 0;
	font-family: inherit;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
}
.gts-modal-btn-cancel { background: #f0f0f0; color: #000; }
.gts-modal-btn-confirm { background: #000; color: #fff; }
.gts-modal-btn-confirm:disabled { opacity: .4; cursor: not-allowed; }

/* ============================================================
 * RESPONSIVE - TABLET (≤ 1300px)
 * ============================================================ */
@media (max-width: 1300px) {
	.gts-wrapper { padding: 0 16px; }
	.gts-hero-desktop {
		grid-template-columns: 1.5fr 1fr;
		height: auto;
		min-height: 400px;
		width: 100%;
	}
	.gts-hero-img { width: 100%; min-height: 400px; }
	.gts-hero-text { width: 100%; }
}

/* ============================================================
 * RESPONSIVE - MOBILE (≤ 768px)
 * ============================================================ */
@media (max-width: 768px) {
	/* TABS */
	.gts-tabs-nav {
		gap: 24px;
		overflow-x: auto;
		flex-wrap: nowrap;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding-bottom: 12px;
		justify-content: center;
	}
	.gts-tabs-nav::-webkit-scrollbar { display: none; }
	.gts-tab-btn { font-size: 18px; line-height: 28px; flex-shrink: 0; } /* 26.11. Meho: veći font (bilo 14px) */

	/* HERO - sakrij desktop, prikaži mobile */
	.gts-hero-desktop { display: none !important; }

	/* Mobilni hero = FULL WIDTH (full-bleed), probija container 1280/padding */
	.gts-hero-mobile {
		display: block;
		position: relative;
		width: 100vw;
		margin-left: calc(50% - 50vw);
		height: 494px;
		border-radius: 0;
		overflow: hidden;
		background-size: cover;
		background-position: center;
		background-color: #B5B5B5;
	}
	.gts-hero-mobile-overlay {
		position: absolute;
		inset: 0;
		background: rgba(8,0,0,0.35); /* #08000059 po dizajnu */
		pointer-events: none;
	}
	.gts-hero-mobile-content {
		position: absolute;
		inset: 0;
		display: flex;
		flex-direction: column;
		justify-content: flex-end;
		align-items: flex-start;
		padding: 32px 28px;
		z-index: 2;
	}
	.gts-hero-mobile-content .gts-hero-title {
		color: #fff;
		font-weight: 600;
		font-size: 28px;
		line-height: 34px;
		letter-spacing: 0.28px;
		margin: 0 0 14px 0;
		text-transform: uppercase;
		text-shadow: 0 1px 8px rgba(0,0,0,0.30);
	}
	.gts-hero-mobile-content .gts-hero-subtitle {
		color: #fff;
		font-weight: 600;
		font-size: 24px;
		line-height: 32px;
		letter-spacing: 0.28px;
		margin: 0 0 20px 0;
		text-transform: uppercase;
		width: 165px;
		text-shadow: 0 1px 8px rgba(0,0,0,0.25);
	}
	/* Prazan naslov/podnaslov ne zauzima prostor */
	.gts-hero-mobile-content .gts-hero-title:empty,
	.gts-hero-mobile-content .gts-hero-subtitle:empty { display: none; margin: 0; }
	.gts-hero-mobile-content .gts-hero-btn {
		width: 171px;
		height: 48px;
	}

	/* CARDS */
	.gts-card { width: 250px !important; height: auto; }
	.gts-card-img-wrap { height: 333px; }

	/* STRELICE - centar slike (333px), 15px od ivica ekrana (slider viewport je full-bleed iz desktop pravila) */
	.gts-arrow { top: 166px; width: 36px; height: 36px; }
	.gts-arrow-prev { left: 15px; }
	.gts-arrow-next { right: 15px; }

	/* TOAST */
	.gts-toast { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}
