/* TimeLeas Watch Slider — design system TimeLeas
   Oro #8B7355 · Ink #1A1A1A · Img bg #FAFAF8 · Border #F0F0F0
   Titoli/prezzi: Playfair Display 400 · Resto: Raleway */

.tws-watch-slider {
	--tws-gold: #8B7355;
	--tws-ink: #1A1A1A;
	--tws-ink-2: #555555;
	--tws-img-bg: #FAFAF8;
	--tws-border: #F0F0F0;
	--tws-card: #FFFFFF;
	--tws-accent: var(--tws-gold);
	--tws-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
	--tws-sans: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
	max-width: 640px;
	margin: 0 auto;
	color: var(--tws-ink);
	font-family: var(--tws-sans);
	font-weight: 400;
	-webkit-tap-highlight-color: transparent;
}

.tws-watch-slider:focus {
	outline: none;
}

.tws-watch-slider.tws-empty {
	padding: 24px;
	border: 1px solid var(--tws-border);
	background: #FAFAF8;
	color: var(--tws-ink-2);
	text-align: center;
	font-size: 14px;
	line-height: 1.5;
}

/* ---------------- Head (collezione + contatore) ---------------- */
.tws-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
	font-family: var(--tws-sans);
	font-weight: 300;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 1.8px;
}

.tws-coll {
	color: var(--tws-gold);
}

.tws-counter {
	color: var(--tws-ink-2);
	letter-spacing: 1px;
}

/* ---------------- Stage (foto) ---------------- */
.tws-stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 6 / 5;        /* come la galleria prodotto (600x500) */
	background: var(--tws-img-bg);
	border-radius: 4px;          /* come image_border_radius del tema */
	overflow: hidden;
	user-select: none;
}

.tws-imgwrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	cursor: grab;
}

.tws-stage.tws-has-zoom .tws-imgwrap {
	cursor: zoom-in;
}

.tws-imgwrap:active {
	cursor: grabbing;
}

.tws-img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	margin: auto;                /* centratura garantita */
	object-fit: contain;         /* foto piena, proporzioni intatte */
	border-radius: 4px;
	transition: opacity .18s ease, transform .12s ease-out;
	will-change: opacity, transform;
	-webkit-user-drag: none;
	user-drag: none;
	pointer-events: none;
}

.tws-img.tws-fade {
	opacity: 0;
}

.tws-zoom-hint {
	position: absolute;
	right: 12px;
	bottom: 12px;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--tws-border);
	background: rgba(255, 255, 255, .9);
	color: var(--tws-ink);
	font-size: 16px;
	border-radius: 50%;
	pointer-events: none;
	opacity: .8;
	transition: opacity .15s ease;
}

.tws-stage:hover .tws-zoom-hint {
	opacity: 1;
}

.tws-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 46px;
	height: 46px;
	border: none;
	border-radius: 50%;
	background: var(--tws-gold);
	font-size: 24px;
	line-height: 1;
	color: #fff;
	cursor: pointer;
	box-shadow: 0 3px 12px rgba(0, 0, 0, .22);
	transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.tws-arrow:hover {
	background: var(--tws-ink);
	color: #fff;
	transform: translateY(-50%) scale(1.08);
	box-shadow: 0 5px 16px rgba(0, 0, 0, .3);
}

.tws-prev { left: 12px; }
.tws-next { right: 12px; }

/* ---------------- Info (marca / titolo / prezzo) ---------------- */
.tws-info {
	text-align: center;
	margin-top: 20px;
	min-height: 74px;
}

.tws-brand {
	font-family: var(--tws-sans);
	font-weight: 300;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 1.8px;
	color: var(--tws-gold);
	min-height: 16px;
}

.tws-title {
	font-family: var(--tws-serif);
	font-weight: 400;
	font-size: 21px;
	line-height: 1.3;
	margin-top: 6px;
	color: var(--tws-ink);
}

.tws-price {
	font-family: var(--tws-serif);
	font-weight: 400;
	font-size: 18px;
	margin-top: 8px;
	color: var(--tws-ink);
}

/* "CHF" in oro Raleway, come da design system */
.tws-price .woocommerce-Price-currencySymbol {
	font-family: var(--tws-sans);
	font-weight: 600;
	color: var(--tws-gold);
	font-size: .82em;
	margin-left: 3px;
}

.tws-price del {
	color: #9a9a9a;
	font-weight: 400;
	margin-right: 8px;
}

.tws-price ins {
	text-decoration: none;
}

/* Rata mensile leasing */
.tws-monthly {
	font-family: var(--tws-serif);
	font-weight: 400;
	font-size: 24px;
	line-height: 1.2;
	color: var(--tws-ink);
}

.tws-permonth {
	font-family: var(--tws-sans);
	font-weight: 500;
	font-size: .5em;
	color: var(--tws-gold);
	letter-spacing: .5px;
	margin-left: 4px;
}

.tws-monthly-note {
	display: block;
	font-family: var(--tws-sans);
	font-weight: 400;
	font-size: 11px;
	line-height: 1.5;
	color: #999;
	margin-top: 6px;
}

/* ---------------- Slider ---------------- */
.tws-control {
	margin: 20px 0 6px;
}

.tws-range {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 3px;
	border-radius: 3px;
	background: var(--tws-border);
	outline: none;
	cursor: pointer;
}

.tws-range::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--tws-gold);
	border: 3px solid #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
	cursor: grab;
}

.tws-range::-webkit-slider-thumb:active {
	cursor: grabbing;
}

.tws-range::-moz-range-thumb {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--tws-gold);
	border: 3px solid #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
	cursor: grab;
}

/* ---------------- Miniature ---------------- */
.tws-thumbs {
	position: relative;
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 12px 2px 4px;
	scrollbar-width: thin;
}

.tws-thumb {
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	border: 1px solid var(--tws-border);
	background: var(--tws-img-bg);
	padding: 3px;
	cursor: pointer;
	opacity: .65;
	transition: opacity .15s ease, border-color .15s ease;
}

.tws-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.tws-thumb:hover {
	opacity: 1;
}

.tws-thumb.is-active {
	opacity: 1;
	border-color: var(--tws-gold);
}

/* ---------------- Bottone (stili TimeLeas) ---------------- */
/* Il bottone è sempre centrato (desktop e mobile). */
.tws-watch-slider .tws-cta-wrap {
	text-align: center;
}

/* Selettori scoped + !important per battere lo stile link del tema TimeLeas. */
.tws-watch-slider .tws-cta {
	display: inline-block;
	margin-top: 18px;
	font-family: var(--tws-sans);
	font-weight: 500;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	padding: 13px 32px;
	text-decoration: none !important;
	cursor: pointer;
	border: 1px solid transparent;
	box-shadow: none;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}

/* Leasing: sfondo #1A1A1A, testo #FFF, hover #8B7355 */
.tws-watch-slider .tws-cta--dark,
.tws-watch-slider a.tws-cta--dark {
	background: var(--tws-ink) !important;
	color: #ffffff !important;
	border-color: var(--tws-ink) !important;
}

.tws-watch-slider .tws-cta--dark:hover,
.tws-watch-slider a.tws-cta--dark:hover {
	background: var(--tws-gold) !important;
	border-color: var(--tws-gold) !important;
	color: #ffffff !important;
}

/* Détails: transparent, border #E8E8E6, testo #333, hover #8B7355 testo #FFF */
.tws-watch-slider .tws-cta--outline,
.tws-watch-slider a.tws-cta--outline {
	background: transparent !important;
	color: #333333 !important;
	border-color: #E8E8E6 !important;
}

.tws-watch-slider .tws-cta--outline:hover,
.tws-watch-slider a.tws-cta--outline:hover {
	background: var(--tws-gold) !important;
	border-color: var(--tws-gold) !important;
	color: #ffffff !important;
}

/* ---------------- Lightbox (zoom a tutto schermo) ---------------- */
.tws-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(26, 26, 26, .92);
}

.tws-lightbox.is-open {
	display: flex;
}

.tws-lb-stage {
	max-width: 92vw;
	max-height: 88vh;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tws-lb-img {
	max-width: 92vw;
	max-height: 88vh;
	object-fit: contain;
	cursor: zoom-in;
	transition: transform .2s ease;
	will-change: transform;
	-webkit-user-drag: none;
	user-drag: none;
}

.tws-lb-close {
	position: absolute;
	top: 20px;
	right: 24px;
	width: 46px;
	height: 46px;
	border: 1px solid rgba(255, 255, 255, .4);
	background: transparent;
	color: #fff;
	font-size: 28px;
	line-height: 1;
	border-radius: 50%;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease;
}

.tws-lb-close:hover {
	background: var(--tws-gold);
	border-color: var(--tws-gold);
}

@media (max-width: 600px) {
	.tws-title { font-size: 18px; }
}
