/* iTouch product page */
.itsg-pdp {
	--itsg-ink: #3c3c3c;
	--itsg-muted: #7a7a7a;
	--itsg-line: #e6e6e6;
	--itsg-sale: #d51f1f;
	--itsg-buy: #5a31f4;
	--itsg-dark: #1b1b1b;
	--itsg-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
	--itsg-head: "Jost", "Poppins", system-ui, sans-serif;
	font-family: var(--itsg-body);
	color: var(--itsg-ink);
	background: #fff;
	width: 100%;
}
.itsg-pdp *, .itsg-pdp *::before, .itsg-pdp *::after { box-sizing: border-box; }
.itsg-pdp a { color: inherit; text-decoration: none; }
.itsg-pdp button { font-family: inherit; cursor: pointer; }
.itsg-pdp ul { list-style: none; margin: 0; padding: 0; }
.itsg-pdp img { max-width: 100%; height: auto; }

/* Stars */
.itsg-stars { display: inline-block; position: relative; font-size: 14px; letter-spacing: .12em; line-height: 1; vertical-align: middle; }
.itsg-stars::before { content: "\2605\2605\2605\2605\2605"; color: #d9d9d9; }
.itsg-stars::after { content: "\2605\2605\2605\2605\2605"; color: #2b2b2b; position: absolute; left: 0; top: 0; width: var(--p, 0%); overflow: hidden; white-space: nowrap; }

/* ---------- Top ---------- */
.itsg-pdp__top {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
	gap: 64px;
	max-width: 1200px; margin: 0 auto;
	padding: 48px 40px 70px;
	align-items: start;
}
.itsg-pdp__stage { position: relative; aspect-ratio: 6 / 5; display: flex; align-items: center; justify-content: center; }
.itsg-pdp__main { width: 100%; height: 100%; object-fit: contain; display: block; }
.itsg-pdp__nav {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 40px; height: 40px; padding: 0; margin: 0; border-radius: 50% !important;
	display: flex; align-items: center; justify-content: center;
	background: rgba(255,255,255,.92) !important; color: #333 !important;
	border: 1px solid #e3e3e3 !important; box-shadow: 0 1px 4px rgba(0,0,0,.1) !important;
	opacity: 0; transition: opacity .2s, background .2s, color .2s;
}
.itsg-pdp__stage:hover .itsg-pdp__nav, .itsg-pdp__nav:focus-visible { opacity: 1; }
.itsg-pdp__nav:hover { background: #222 !important; color: #fff !important; border-color: #222 !important; }
.itsg-pdp__nav--prev { left: 6px; }
.itsg-pdp__nav--next { right: 6px; }
@media (hover: none) { .itsg-pdp__nav { opacity: 1; } }

.itsg-pdp__thumbs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.itsg-pdp .itsg-pdp__thumb {
	width: 56px; height: 56px; padding: 0; margin: 0;
	background: #fff !important; border: 1px solid transparent !important; border-radius: 0 !important;
	box-shadow: none !important; opacity: .65; transition: opacity .2s, border-color .2s;
	display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.itsg-pdp__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.itsg-pdp__thumb:hover { opacity: 1; }
.itsg-pdp__thumb.is-active { opacity: 1; border-color: #333 !important; }

/* Buy box (re-uses .itsg-qv markup for the shared JS) */
.itsg-pdp__info.itsg-qv { display: block; padding-top: 6px; }
.itsg-pdp__brand { font-family: var(--itsg-head); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--itsg-muted); margin-bottom: 10px; }
.itsg-pdp__title { font-family: var(--itsg-head); font-weight: 400; font-size: 20px; letter-spacing: .2em; text-transform: uppercase; color: #4a4a4a; line-height: 1.5; margin: 0 0 12px; padding: 0; }
.itsg-pdp__info .itsg-qv__price { font-size: 16px; letter-spacing: .08em; }
.itsg-pdp__info .itsg-qv__price del { font-size: 13px; }
.itsg-pdp__rating { display: flex; align-items: center; gap: 8px; margin: 14px 0 26px; font-size: 11px; color: var(--itsg-muted); }
.itsg-pdp__rating .itsg-stars { font-size: 12px; }
.itsg-pdp__rating a { text-decoration: underline; text-underline-offset: 2px; }
.itsg-pdp__rating a:hover { color: #111; }
.itsg-pdp__buy .itsg-qv__attr-label { font-size: 11px; margin-bottom: 8px; color: var(--itsg-muted); letter-spacing: .04em; }
.itsg-pdp__buy select.itsg-attr-input { height: 44px; font-size: 13px; }
.itsg-pdp__buy .itsg-qty { margin: 0 0 18px; height: 40px; }
.itsg-pdp__buy .itsg-qty__input { width: 46px; }
.itsg-pdp .itsg-qty .itsg-qty__btn {
	display: flex; align-items: center; justify-content: center;
	min-width: 36px; width: 36px; height: 100%; margin: 0; padding: 0;
	background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
	color: #777 !important; font-size: 17px; line-height: 1;
}
.itsg-pdp .itsg-qty .itsg-qty__btn:hover { color: #111 !important; }
.itsg-pdp__buy .itsg-btn { height: 44px; font-size: 12px; margin-bottom: 10px; }
.itsg-pdp__buy .itsg-btn--buy { font-size: 14px; }

/* ---------- Sections ---------- */
.itsg-pdp__section { padding: 70px 24px; max-width: 1200px; margin: 0 auto; }
.itsg-pdp__section--bordered { border-top: 1px solid var(--itsg-line); max-width: none; }
.itsg-pdp__section--bordered > * { max-width: 1000px; margin-left: auto; margin-right: auto; }
.itsg-pdp__h2 {
	font-family: var(--itsg-head); font-weight: 300; text-align: center;
	font-size: 22px; letter-spacing: .3em; text-transform: uppercase; color: #555;
	margin: 0 0 44px; padding: 0; line-height: 1.4;
}

/* Product information tabs */
.itsg-pdp__tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 56px; margin-bottom: 40px; }
.itsg-pdp .itsg-pdp__tab {
	background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
	padding: 8px 2px !important; margin: 0;
	font-family: var(--itsg-head); font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
	color: var(--itsg-muted) !important; position: relative;
}
.itsg-pdp .itsg-pdp__tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: #333; transform: scaleX(0); transition: transform .2s; }
.itsg-pdp .itsg-pdp__tab.is-active, .itsg-pdp .itsg-pdp__tab:hover { color: #222 !important; }
.itsg-pdp .itsg-pdp__tab.is-active::after { transform: scaleX(1); }
.itsg-pdp__panel { display: none; font-size: 13px; line-height: 1.9; color: #555; max-width: 900px !important; }
.itsg-pdp__panel.is-active { display: block; }
.itsg-pdp__panel p { margin: 0 0 14px; }
.itsg-pdp__panel ul { list-style: disc; padding-left: 20px; margin: 0 0 14px; }
.itsg-pdp__panel table { width: 100%; border-collapse: collapse; font-size: 13px; }
.itsg-pdp__panel th, .itsg-pdp__panel td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--itsg-line); }
.itsg-pdp__panel th { width: 30%; font-weight: 500; }
.itsg-pdp__panel td p { margin: 0; }

/* Live smarter: collage */
.itsg-collage { display: grid; gap: 14px; max-width: 900px !important; margin-bottom: 56px !important; }
.itsg-collage--1 { grid-template-columns: 1fr; }
.itsg-collage--2 { grid-template-columns: 1fr 1fr; }
.itsg-collage--3 { grid-template-columns: 2fr 1.15fr; grid-template-rows: 1fr 1fr; }
.itsg-collage__item { overflow: hidden; background: #f3f3f3; }
.itsg-collage__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.itsg-collage--3 .itsg-collage__item--1 { grid-row: 1 / span 2; aspect-ratio: 1 / 1; }
.itsg-collage--3 .itsg-collage__item--2, .itsg-collage--3 .itsg-collage__item--3 { aspect-ratio: 4 / 3; }

/* Live smarter: features */
.itsg-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 32px; max-width: 760px !important; }
.itsg-feature { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.itsg-feature__icon { width: 40px; height: 40px; display: block; border-radius: 50%; overflow: hidden; }
.itsg-feature__icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.itsg-feature__title { font-family: var(--itsg-head); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--itsg-muted); }
.itsg-feature__text { font-size: 11px; line-height: 1.7; color: var(--itsg-muted); max-width: 230px; }

/* Related products carousel */
.itsg-pdp__related { max-width: 1400px; }
.itsg-rel { position: relative; }
.itsg-rel__track {
	display: flex; gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory;
	scrollbar-width: none; padding: 4px 2px 12px;
}
.itsg-rel__track::-webkit-scrollbar { display: none; }
.itsg-rel__track > .itsg-card { flex: 0 0 calc((100% - 96px) / 4); scroll-snap-align: start; min-width: 0; }
.itsg-pdp .itsg-rel__nav {
	position: absolute; top: 38%; transform: translateY(-50%); z-index: 6;
	width: 38px; height: 38px; padding: 0; margin: 0; border-radius: 50% !important;
	display: flex; align-items: center; justify-content: center;
	background: #fff !important; color: #333 !important; border: 1px solid #e3e3e3 !important;
	box-shadow: 0 1px 6px rgba(0,0,0,.12) !important;
}
.itsg-pdp .itsg-rel__nav:hover { background: #222 !important; color: #fff !important; border-color: #222 !important; }
.itsg-rel__nav--prev { left: -12px; }
.itsg-rel__nav--next { right: -12px; }

/* ---------- Reviews ---------- */
.itsg-reviews { max-width: 1200px; border-top: 1px solid var(--itsg-line); }
.itsg-reviews__title { font-size: 15px; font-weight: 500; margin: 0 0 36px; color: #333; }
.itsg-reviews__summary { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.itsg-reviews__col h3 { font-size: 12px; font-weight: 500; margin: 0 0 16px; color: #333; }
.itsg-bars__row { display: grid; grid-template-columns: 52px 1fr 24px; align-items: center; gap: 10px; font-size: 11px; color: #555; margin-bottom: 6px; }
.itsg-bars__bar { display: block; height: 10px; background: #e7e7e7; position: relative; }
.itsg-bars__bar i { position: absolute; left: 0; top: 0; bottom: 0; background: #4a1727; }
.itsg-bars__num { text-align: right; }
.itsg-overall { display: flex; align-items: center; gap: 14px; }
.itsg-overall__num { font-size: 44px; font-weight: 300; line-height: 1; color: #333; }
.itsg-overall__meta { display: flex; flex-direction: column; gap: 4px; }
.itsg-overall__meta small { font-size: 11px; color: var(--itsg-muted); }
.itsg-reviews__stars { display: inline-flex; gap: 8px; }
.itsg-reviews__stars span { width: 32px; height: 32px; border: 1px solid #bbb; display: flex; align-items: center; justify-content: center; font-size: 17px; color: #777; transition: background .2s, color .2s; }
.itsg-reviews__stars:hover span { background: #4a1727; border-color: #4a1727; color: #fff; }
.itsg-reviews__hint { font-size: 12px; color: var(--itsg-muted); margin: 14px 0 0; }

/* WooCommerce reviews (list + form) */
.itsg-reviews__list #reviews .woocommerce-Reviews-title { display: none; }
.itsg-reviews__list .commentlist { list-style: none; margin: 0; padding: 0; }
.itsg-reviews__list .commentlist li { border-top: 1px solid var(--itsg-line); padding: 28px 0; margin: 0; list-style: none; }
.itsg-reviews__list .commentlist li .comment_container { display: flex; gap: 28px; align-items: flex-start; }
.itsg-reviews__list .commentlist li img.avatar { width: 44px; height: 44px; border-radius: 50%; position: static; padding: 0; border: 0; background: #eee; flex: none; }
.itsg-reviews__list .commentlist li .comment-text { flex: 1; margin: 0 !important; padding: 0 !important; border: 0 !important; font-size: 13px; line-height: 1.8; color: #555; }
.itsg-reviews__list .commentlist .meta { font-size: 12px; color: var(--itsg-muted); margin: 0 0 8px; }
.itsg-reviews__list .commentlist .meta strong { color: #222; font-weight: 600; }
.itsg-reviews__list .commentlist .description p { margin: 0; }
.itsg-reviews__list .star-rating {
	position: relative; display: inline-block; overflow: hidden; float: none !important;
	width: 5.5em; height: 1.1em; line-height: 1.1; font-size: 14px; letter-spacing: .12em; margin: 0 0 8px; font-family: inherit !important;
}
.itsg-reviews__list .star-rating::before { content: "\2605\2605\2605\2605\2605" !important; font-family: inherit !important; color: #d9d9d9; position: absolute; left: 0; top: 0; width: auto; letter-spacing: .12em; }
.itsg-reviews__list .star-rating span { position: absolute; left: 0; top: 0; height: 100%; overflow: hidden; white-space: nowrap; font-size: 0; padding: 0; }
.itsg-reviews__list .star-rating span::before { content: "\2605\2605\2605\2605\2605" !important; font-family: inherit !important; font-size: 14px; letter-spacing: .12em; color: #2b2b2b; position: absolute; left: 0; top: 0; }

#review_form_wrapper { border-top: 1px solid var(--itsg-line); padding-top: 36px; margin-top: 12px; max-width: 640px; }
#review_form .comment-reply-title { display: block; font-family: var(--itsg-head); font-size: 14px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 18px; }
#review_form label { display: block; font-size: 12px; color: #555; margin-bottom: 6px; }
#review_form input[type=text], #review_form input[type=email], #review_form textarea, #review_form select {
	width: 100%; border: 1px solid #d9d9d9; border-radius: 0; padding: 11px 12px; font: inherit; font-size: 13px; background: #fff; box-shadow: none;
}
#review_form p { margin: 0 0 16px; }
#review_form .form-submit input#submit, #review_form .form-submit .submit {
	background: #222; color: #fff; border: 0; border-radius: 0; height: 44px; padding: 0 32px;
	font-family: var(--itsg-head); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; cursor: pointer;
}
#review_form .form-submit input#submit:hover { background: #000; }
#review_form p.stars { margin: 0; }
#review_form p.stars span { display: inline-flex; gap: 4px; }
#review_form p.stars a { position: relative; width: 1.2em; height: 1.2em; text-indent: -999em; overflow: hidden; display: inline-block; font-size: 22px; }
#review_form p.stars a::before { content: "\2605" !important; font-family: inherit !important; text-indent: 0; position: absolute; left: 0; top: 0; color: #ccc; line-height: 1.2; }
#review_form p.stars:hover a::before, #review_form p.stars.selected a.active::before, #review_form p.stars.selected a:not(.active)::before { color: #2b2b2b; }
#review_form p.stars a:hover ~ a::before, #review_form p.stars.selected a.active ~ a::before { color: #ccc; }
.woocommerce-noreviews, .woocommerce-verification-required { font-size: 13px; color: var(--itsg-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.itsg-pdp__top { gap: 40px; padding-inline: 24px; }
	.itsg-rel__track > .itsg-card { flex-basis: calc((100% - 64px) / 3); }
	.itsg-rel__track { gap: 32px; }
}
@media (max-width: 860px) {
	.itsg-pdp__top { grid-template-columns: 1fr; gap: 28px; padding: 24px 16px 48px; }
	.itsg-pdp__section { padding: 48px 16px; }
	.itsg-pdp__h2 { font-size: 18px; letter-spacing: .22em; margin-bottom: 30px; }
	.itsg-pdp__tabs { gap: 6px 28px; }
	.itsg-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.itsg-collage--3 { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
	.itsg-collage--3 .itsg-collage__item--1 { grid-column: 1 / span 2; grid-row: auto; aspect-ratio: 4 / 3; }
	.itsg-rel__track > .itsg-card { flex-basis: calc((100% - 16px) / 2); }
	.itsg-rel__track { gap: 16px; }
	.itsg-rel__nav--prev { left: -4px; }
	.itsg-rel__nav--next { right: -4px; }
	.itsg-reviews__summary { grid-template-columns: 1fr; gap: 32px; }
	.itsg-reviews__list .commentlist li .comment_container { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.itsg-pdp * { transition: none !important; }
}
