/* Shokz IL Shop Grid v1.1.0 — values measured from shokz.com/collections/headphones-accessories */
.ssg {
	--ssg-text: #2f2f2f;
	--ssg-black: #0a0a0a;
	--ssg-muted: #a3a3a3;
	--ssg-tab-off: #bababa;
	--ssg-line: #e5e5e5;
	--ssg-chip-bg: #f7f7f7;
	--ssg-orange: #ff7a3d;
	--ssg-orange-bg: #ffeee5;
	--ssg-orange-line: #ffb688;
	--ssg-shadow: 0 0 22px rgba(0, 0, 0, .06), 0 0 7.007px rgba(0, 0, 0, .05), 0 0 1.793px rgba(0, 0, 0, .03);
	max-width: 1248px;
	margin: 0 auto;
	padding: 60px 24px 80px;
	box-sizing: border-box;
	direction: rtl;
	text-align: right;
	color: var(--ssg-text);
	font-family: var(--ssg-font, inherit);
	font-size: 16px;
	line-height: 1.3;
	-webkit-font-smoothing: antialiased;
}
.ssg *, .ssg *::before, .ssg *::after { box-sizing: border-box; }
.ssg .ssg-hide { display: none !important; }

/* Neutralise theme / Elementor-kit button styles (they set colors on :hover and :focus too) */
.ssg button[type="button"],
.ssg button[type="button"]:is(:hover, :focus, :active) {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	text-transform: none;
	letter-spacing: normal;
	text-decoration: none;
	font-family: inherit;
	font-weight: 400;
	min-height: 0;
	width: auto;
	cursor: pointer;
	outline: none;
}
.ssg button[type="button"]:focus-visible { outline: 2px solid var(--ssg-orange); outline-offset: 2px; }
.ssg a.ssg-link, .ssg a.ssg-top, .ssg a.ssg-link:hover, .ssg a.ssg-top:hover { color: inherit; text-decoration: none; box-shadow: none; }

/* ---- Title ---- */
.ssg h1.ssg-title {
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-size: 48px;
	line-height: 57.6px;
	font-weight: 400;
	letter-spacing: normal;
	text-transform: none;
	color: var(--ssg-text);
	text-align: center;
}

/* ---- Tabs ---- */
.ssg .ssg-tabs-wrap { max-width: 888px; margin: 48px auto 0; }
.ssg .ssg-tabs {
	display: flex;
	justify-content: safe center;
	gap: 48px;
	padding: 0 0 16px;
	border-bottom: 1px solid var(--ssg-line);
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
}
.ssg .ssg-tabs::-webkit-scrollbar { display: none; }
.ssg button.ssg-tab,
.ssg button.ssg-tab:is(:hover, :focus, :active) {
	position: relative;
	flex: 0 0 auto;
	padding: 0;
	background: none;
	font-size: 20px;
	line-height: 24px;
	white-space: nowrap;
	color: var(--ssg-tab-off);
	transition: color .2s;
}
.ssg button.ssg-tab:hover { color: var(--ssg-text); }
.ssg button.ssg-tab.is-active { color: #000; }
.ssg button.ssg-tab.is-active::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -16px;
	height: 1px;
	background: #000;
}

/* ---- Grid ---- */
.ssg ul.ssg-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	list-style: none;
	margin: 48px 0 0;
	padding: 0;
}
.ssg li.ssg-item { margin: 0; padding: 0; list-style: none; animation: ssg-in .45s ease both; }
.ssg li.ssg-item::before, .ssg li.ssg-item::marker { content: none; }
@keyframes ssg-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---- Card ---- */
.ssg .ssg-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border-radius: 6px;
	box-shadow: var(--ssg-shadow);
	overflow: hidden;
}
.ssg a.ssg-top { position: relative; display: block; height: 260px; }
.ssg .ssg-media { display: block; width: 260px; height: 260px; margin: 0 auto; }
.ssg .ssg-media img.ssg-img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: contain;
	transition: transform .4s ease, opacity .2s;
}
.ssg .ssg-card:hover .ssg-media img.ssg-img { transform: scale(1.04); }
.ssg .ssg-tags {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.ssg .ssg-tag {
	display: inline-block;
	padding: 4px 8px 3px;
	border-radius: 99px;
	background: var(--ssg-orange-bg);
	color: var(--ssg-orange);
	font-size: 15px;
	line-height: 19.5px;
	white-space: nowrap;
}
.ssg img.ssg-badge-img {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 2;
	width: 96px;
	height: 96px;
	object-fit: contain;
}

.ssg .ssg-info { display: flex; flex-direction: column; flex: 1 1 auto; padding: 12px 24px 24px; }
.ssg p.ssg-name { margin: 0; padding: 0; font-size: 18px; line-height: 23.4px; font-weight: 400; color: var(--ssg-text); }

.ssg .ssg-swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; padding: 2px; }
.ssg button.ssg-swatch,
.ssg button.ssg-swatch:is(:hover, :focus, :active) {
	display: block;
	width: 20px;
	height: 20px;
	padding: 0;
	border: 1px solid #d1d1d1;
	border-radius: 50%;
	background: var(--ssg-c, #ccc);
	transition: outline-color .2s;
	outline: 1px solid transparent;
	outline-offset: 2px;
}
.ssg button.ssg-swatch.is-active { outline-color: var(--ssg-text); }
.ssg button.ssg-swatch:not(.is-active):hover { outline-color: #d1d1d1; }

.ssg .ssg-vlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin-top: 16px; }
.ssg .ssg-vname { margin: 0 0 8px; font-size: 14px; line-height: 18.2px; color: var(--ssg-muted); }
.ssg .ssg-vvals { display: flex; flex-wrap: wrap; gap: 6px; }
.ssg button.ssg-chip,
.ssg button.ssg-chip:is(:hover, :focus, :active) {
	padding: 3px 6px;
	border: 1px solid transparent;
	border-radius: 4px;
	background: var(--ssg-chip-bg);
	color: var(--ssg-muted);
	font-size: 14px;
	line-height: 18.2px;
	white-space: nowrap;
	transition: color .2s, border-color .2s, background-color .2s;
}
.ssg button.ssg-chip:hover { color: var(--ssg-text); }
.ssg button.ssg-chip.is-active { background: #fff; border-color: var(--ssg-orange-line); color: var(--ssg-orange); }

.ssg .ssg-bottom { margin-top: auto; padding-top: 16px; }
.ssg .ssg-price { display: flex; align-items: baseline; gap: 6px; min-height: 27px; }
.ssg .ssg-cur { font-size: 18px; line-height: 27px; color: #000; }
.ssg .ssg-cmp { font-size: 15px; line-height: 27px; color: var(--ssg-black); text-decoration: line-through; opacity: .45; }

.ssg button.ssg-add,
.ssg button.ssg-add:is(:hover, :focus, :active) {
	display: block;
	width: 100%;
	margin-top: 8px;
	padding: 10px 36px 9px;
	border-radius: 4px;
	background: var(--ssg-black);
	color: #fff;
	font-size: 15px;
	line-height: 19.5px;
	text-align: center;
	transition: background-color .2s;
}
.ssg button.ssg-add:hover { background: #333; }
.ssg button.ssg-add.is-loading { opacity: .7; cursor: progress; }
.ssg button.ssg-add[disabled],
.ssg button.ssg-add[disabled]:is(:hover, :focus) { background: #e5e5e5; color: var(--ssg-muted); cursor: not-allowed; }

/* ---- View more ---- */
.ssg button.ssg-more,
.ssg button.ssg-more:is(:hover, :focus, :active) {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 60px auto 0;
	padding: 0;
	background: none;
	color: var(--ssg-text);
	font-size: 16px;
	line-height: 20.8px;
}
.ssg button.ssg-more:hover { color: #000; }
.ssg .ssg-empty { margin: 48px 0 0; text-align: center; color: var(--ssg-muted); }

/* ---- Compare banner ---- */
.ssg .ssg-banner {
	display: flex;
	align-items: center;
	height: 460px;
	margin-top: 80px;
	background-color: #1b1b1b;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}
.ssg .ssg-banner-in { padding-inline-start: 10%; text-align: center; }
.ssg h2.ssg-banner-title {
	margin: 0 0 16px;
	font-family: inherit;
	font-size: 24px;
	line-height: 1.25;
	font-weight: 400;
	color: #fff;
	text-transform: none;
}
.ssg a.ssg-banner-btn, .ssg a.ssg-banner-btn:hover {
	display: inline-block;
	padding: 8px 16px;
	border-radius: 4px;
	background: #fff;
	color: #050505;
	font-size: 16px;
	line-height: 20.8px;
	text-decoration: none;
}
.ssg a.ssg-banner-btn:hover { background: #ececec; }

/* ---- Tablet (shokz.com: 2 columns from 750px) ---- */
@media (max-width: 989px) {
	.ssg ul.ssg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ssg .ssg-tabs { gap: 32px; }
}

/* ---- Mobile ---- */
@media (max-width: 749px) {
	.ssg { padding: 40px 16px 60px; }
	.ssg h1.ssg-title { font-size: 32px; line-height: 40px; }
	.ssg .ssg-tabs-wrap { margin-top: 32px; }
	.ssg .ssg-tabs { justify-content: flex-start; gap: 32px; }
	.ssg ul.ssg-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 32px; }
	.ssg .ssg-banner { height: 320px; margin-top: 60px; }
	.ssg .ssg-banner-in { padding: 0 24px; width: 100%; }
}

/* ---- Campaign pill (cards + product page) ---- */
.ssg button.ssg-tag-camp,
.ssg button.ssg-tag-camp:is(:hover, :focus, :active),
.ssg-camp-single button.ssg-tag-camp,
.ssg-camp-single button.ssg-tag-camp:is(:hover, :focus, :active),
.ssg-camp-single span.ssg-tag-camp,
.ssg span.ssg-tag-camp {
	-webkit-appearance: none;
	appearance: none;
	display: inline-block;
	margin: 0;
	padding: 4px 10px 3px;
	border: 0;
	border-radius: 99px;
	box-shadow: none;
	background: var(--ssg-camp-bg, #0a0a0a);
	color: var(--ssg-camp-fg, #fff);
	font-family: inherit;
	font-size: 15px;
	font-weight: 400;
	line-height: 19.5px;
	letter-spacing: normal;
	text-transform: none;
	white-space: nowrap;
	min-height: 0;
	width: auto;
}
.ssg button.ssg-tag-camp, .ssg-camp-single button.ssg-tag-camp { cursor: pointer; transition: opacity .2s; }
.ssg button.ssg-tag-camp:hover, .ssg-camp-single button.ssg-tag-camp:hover { opacity: .85; }
.ssg button.ssg-tag-camp:focus-visible, .ssg-camp-single button:focus-visible { outline: 2px solid #ff7a3d; outline-offset: 2px; }

.ssg-camp-single { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 12px 0 16px; direction: rtl; }
.ssg-camp-single button.ssg-camp-link,
.ssg-camp-single button.ssg-camp-link:is(:hover, :focus, :active) {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	padding: 0;
	border: 0;
	box-shadow: none;
	background: none;
	color: #2f2f2f;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.4;
	text-transform: none;
	text-decoration: underline;
	text-underline-offset: 3px;
	min-height: 0;
	cursor: pointer;
}
.ssg-camp-single button.ssg-camp-link:hover { color: #000; }

/* ---- Terms popup ---- */
.ssg-modal[hidden] { display: none !important; }
.ssg-modal { position: fixed; inset: 0; z-index: 999999; display: flex; align-items: center; justify-content: center; padding: 16px; direction: rtl; text-align: right; }
.ssg-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); animation: ssg-fade .2s ease both; }
.ssg-modal-box {
	position: relative;
	width: 100%;
	max-width: 640px;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	overflow-y: auto;
	padding: 40px;
	border-radius: 6px;
	background: #fff;
	color: #2f2f2f;
	box-shadow: 0 0 22px rgba(0, 0, 0, .06), 0 0 7.007px rgba(0, 0, 0, .05), 0 0 1.793px rgba(0, 0, 0, .03);
	font-size: 15px;
	line-height: 1.6;
	animation: ssg-pop .25s ease both;
	overscroll-behavior: contain;
}
.ssg-modal .ssg-modal-box h2.ssg-modal-title { margin: 0 0 16px; padding-left: 32px; font-family: inherit; font-size: 24px; line-height: 1.25; font-weight: 400; color: #2f2f2f; text-transform: none; }
.ssg-modal .ssg-modal-body > :first-child { margin-top: 0; }
.ssg-modal .ssg-modal-body > :last-child { margin-bottom: 0; }
.ssg-modal .ssg-modal-body p, .ssg-modal .ssg-modal-body li { color: #2f2f2f; font-size: 15px; line-height: 1.6; }
.ssg-modal .ssg-modal-body a { color: #ff7a3d; }
.ssg-modal button.ssg-modal-x,
.ssg-modal button.ssg-modal-x:is(:hover, :focus, :active) {
	-webkit-appearance: none;
	appearance: none;
	position: absolute;
	top: 16px;
	left: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	box-shadow: none;
	background: transparent;
	color: #2f2f2f;
	min-height: 0;
	cursor: pointer;
}
.ssg-modal button.ssg-modal-x:hover { background: #f7f7f7; }
.ssg-modal button.ssg-modal-x:focus-visible { outline: 2px solid #ff7a3d; outline-offset: 2px; }
html.ssg-lock, html.ssg-lock body { overflow: hidden; }
@keyframes ssg-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ssg-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 749px) {
	.ssg-modal { align-items: flex-end; padding: 0; }
	.ssg-modal-box { max-width: none; max-height: 85vh; max-height: 85dvh; padding: 32px 20px 24px; border-radius: 12px 12px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
	.ssg-modal-backdrop, .ssg-modal-box { animation: none; }
	.ssg li.ssg-item { animation: none; }
	.ssg .ssg-media img.ssg-img { transition: none; }
}
