/* ==========================================================================
   Sham Dent - storefront

   The header, homepage and footer were rebuilt around a conventional
   e-commerce structure: utility strip, search-led header, category bar with
   a mega menu, then banner / trust / categories / product rails / footer.

   This file styles the markup in inc/header.php, inc/home.php, inc/card.php
   and inc/footer.php. It loads after style.css and inherits its tokens.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

.sd-wrap {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* The homepage sections are full-bleed and set their own inner width.

   Astra's container is display:flex (it lays content beside a sidebar), so
   without display:block every section becomes a flex item in one row and
   collapses to its content width. */
.sd-front #content > .ast-container {
	display: block;
	max-width: none;
	padding: 0;
}
.sd-front .site-content { padding-block: 0; }

.sd-section { padding-block: clamp(28px, 4vw, 48px); }
.sd-section--cats { background: var(--wash); }

.sd-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--sp-4);
	margin-bottom: var(--sp-5);
	border-bottom: 1px solid var(--line);
	padding-bottom: var(--sp-3);
}

.sd-section__title {
	margin: 0;
	font-size: clamp(1.15rem, 2.4vw, 1.5rem);
	font-weight: 700;
	letter-spacing: normal;
	color: var(--ink);
	position: relative;
	padding-inline-start: 14px;
}

/* A short brand rule beside the heading rather than an underline: it marks
   the section without competing with the border under the whole row. */
.sd-section__title::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: .18em;
	bottom: .18em;
	width: 4px;
	border-radius: 2px;
	background: var(--clinic);
}

.sd-section__tools {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	flex-shrink: 0;
}

.sd-section__more {
	font-size: .85rem;
	font-weight: 600;
	color: var(--clinic);
	text-decoration: none;
	white-space: nowrap;
}
.sd-section__more:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.sd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--sp-2);
	min-height: 42px;
	padding: 0 18px;
	border: 1px solid transparent;
	border-radius: var(--r-btn);
	font-family: var(--font-ui);
	font-size: .92rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}

.sd-btn__i { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.sd-btn--primary { background: var(--clinic); color: #fff; }
.sd-btn--primary:hover { background: var(--clinic-deep); color: #fff; }

.sd-btn--ghost {
	background: transparent;
	color: var(--clinic);
	border-color: var(--line-strong);
}
.sd-btn--ghost:hover { border-color: var(--clinic); background: var(--clinic-wash); }

.sd-btn--light { background: #fff; color: var(--clinic); }
.sd-btn--light:hover { background: var(--clinic-wash); color: var(--clinic-deep); }

.sd-btn--wa { background: #25D366; color: #06301A; }
.sd-btn--wa:hover { background: #1FBA59; color: #06301A; }

/* --------------------------------------------------------------------------
   Header - utility strip
   -------------------------------------------------------------------------- */

.sd-header {
	position: relative;
	z-index: 40;
	background: var(--surface);
}

.sd-util {
	background: var(--clinic-night);
	color: #C9CBF0;
	font-size: .78rem;
}

.sd-util__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-4);
	min-height: 34px;
}

.sd-util__links { display: flex; gap: var(--sp-4); flex-wrap: wrap; }
.sd-util__links a { color: inherit; text-decoration: none; }
.sd-util__links a:hover { color: #fff; }

.sd-util__note {
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	white-space: nowrap;
}
.sd-util__note .sd-i { width: 15px; height: 15px; }

/* --------------------------------------------------------------------------
   Header - main band
   -------------------------------------------------------------------------- */

.sd-head { border-bottom: 1px solid var(--line); }

.sd-head__inner {
	display: flex;
	align-items: center;
	gap: var(--sp-4);
	min-height: 74px;
}

.sd-burger,
.sd-act {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	flex: none;
	padding: 0;
	border: 0;
	border-radius: var(--r-btn);
	background: transparent;
	color: var(--ink);
	cursor: pointer;
	text-decoration: none;
	position: relative;
}
.sd-burger:hover,
.sd-act:hover { background: var(--wash); color: var(--clinic); }
.sd-burger { display: none; }

.sd-act .sd-i { width: 22px; height: 22px; }

.sd-act__n {
	position: absolute;
	top: 3px;
	inset-inline-end: 3px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: 9px;
	background: var(--accent);
	color: #fff;
	font-size: .66rem;
	font-weight: 700;
	line-height: 17px;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

/* Brand lockup */
.sd-brand {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-3);
	text-decoration: none;
	flex: none;
}
/* The mark's tooth is drawn in currentColor so it can sit on any ground. */
.sd-brand__mark { width: 42px; height: 42px; flex: none; color: var(--clinic); }
.sd-brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.sd-brand__name {
	font-size: 1.32rem;
	font-weight: 700;
	color: var(--clinic);
	letter-spacing: normal;
}
.sd-brand__tag {
	font-size: .72rem;
	color: var(--steel);
	font-weight: 500;
}

/* Search */
.sd-head__search { flex: 1 1 auto; min-width: 0; }

.sd-search {
	display: flex;
	align-items: stretch;
	width: 100%;
	border: 2px solid var(--clinic);
	border-radius: var(--r-btn);
	overflow: hidden;
	background: #fff;
}

.sd-search__scope {
	position: relative;
	display: flex;
	align-items: center;
	flex: none;
	background: var(--wash);
	border-inline-end: 1px solid var(--line);
}
.sd-search__scope select {
	appearance: none;
	border: 0;
	background: transparent;
	font-family: var(--font-ui);
	font-size: .84rem;
	color: var(--ink-2);
	padding-inline: 14px 30px;
	height: 100%;
	max-width: 175px;
	cursor: pointer;
}
.sd-search__scope select:focus { outline: none; }
.sd-search__scope .sd-i {
	position: absolute;
	inset-inline-end: 10px;
	width: 15px;
	height: 15px;
	pointer-events: none;
	color: var(--steel);
}

.sd-search input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	padding: 0 14px;
	height: 44px;
	font-family: var(--font-ui);
	font-size: .92rem;
	color: var(--ink);
	background: #fff;
}
.sd-search input[type="search"]:focus { outline: none; }
.sd-search input::placeholder { color: var(--steel); }

.sd-search button {
	flex: none;
	width: 54px;
	border: 0;
	background: var(--clinic);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.sd-search button:hover { background: var(--clinic-deep); }
.sd-search button .sd-i { width: 20px; height: 20px; }

/* Call us */
.sd-callus {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	text-decoration: none;
	color: var(--ink);
	flex: none;
	padding-inline: var(--sp-2);
}
.sd-callus .sd-i { width: 26px; height: 26px; color: var(--clinic); }
.sd-callus span { display: flex; flex-direction: column; line-height: 1.2; }
.sd-callus small { font-size: .72rem; color: var(--steel); }
.sd-callus strong { font-size: .98rem; font-weight: 700; color: var(--clinic); }

.sd-head__acts { display: flex; align-items: center; gap: 2px; flex: none; }
.sd-act--search { display: none; }

/* Collapsible search for small screens */
.sd-head__searchdrop {
	border-top: 1px solid var(--line);
	padding-block: var(--sp-3);
	background: var(--wash);
}

/* --------------------------------------------------------------------------
   Header - category band
   -------------------------------------------------------------------------- */

.sd-nav {
	background: var(--clinic);
	color: #fff;
	position: relative;
}

.sd-nav__inner {
	display: flex;
	align-items: stretch;
	gap: var(--sp-4);
	min-height: 46px;
}

.sd-megabtn {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	flex: none;
	border: 0;
	background: var(--clinic-deep);
	color: #fff;
	font-family: var(--font-ui);
	font-size: .9rem;
	font-weight: 700;
	padding-inline: 18px;
	margin-inline-start: calc(var(--gutter) * -1);
	padding-inline-start: calc(var(--gutter) + 18px);
	cursor: pointer;
}
.sd-megabtn .sd-i--grid { width: 17px; height: 17px; }
.sd-megabtn .sd-i--chevron {
	width: 15px; height: 15px;
	transition: transform .2s var(--ease);
}
.sd-megabtn[aria-expanded="true"] .sd-i--chevron { transform: rotate(180deg); }

.sd-nav__links {
	display: flex;
	align-items: stretch;
	gap: 2px;
	flex: 1 1 auto;
	min-width: 0;
	overflow-x: auto;
	scrollbar-width: none;
}
.sd-nav__links::-webkit-scrollbar { display: none; }

.sd-nav__links a {
	display: inline-flex;
	align-items: center;
	padding-inline: 12px;
	color: #D6D7F5;
	text-decoration: none;
	font-size: .88rem;
	font-weight: 500;
	white-space: nowrap;
	border-bottom: 3px solid transparent;
}
.sd-nav__links a:hover { color: #fff; border-bottom-color: rgba(255,255,255,.5); }

.sd-nav__deal { color: #FFD9F4 !important; font-weight: 700 !important; }

.sd-nav__wa {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	flex: none;
	color: #fff;
	text-decoration: none;
	font-size: .84rem;
	font-weight: 600;
}
.sd-nav__wa span { font-variant-numeric: tabular-nums; }
.sd-nav__wa:hover { color: #FFD9F4; }

/* --------------------------------------------------------------------------
   Mega menu
   -------------------------------------------------------------------------- */

.sd-mega {
	position: absolute;
	inset-inline: 0;
	top: 100%;
	background: var(--surface);
	border-bottom: 3px solid var(--clinic);
	box-shadow: var(--shadow-lg);
	z-index: 60;
}

.sd-mega__inner {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: var(--sp-5);
	padding-block: var(--sp-5);
}

.sd-mega__head {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	text-decoration: none;
	color: var(--ink);
	font-weight: 700;
	font-size: .95rem;
	padding-bottom: var(--sp-2);
	margin-bottom: var(--sp-2);
	border-bottom: 1px solid var(--line);
}
.sd-mega__head img {
	width: 34px; height: 34px;
	border-radius: 50%;
	background: var(--wash);
	flex: none;
}
.sd-mega__head:hover { color: var(--clinic); }

.sd-mega__list { list-style: none; margin: 0; padding: 0; }
.sd-mega__list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-2);
	padding: 5px 0;
	color: var(--ink-2);
	text-decoration: none;
	font-size: .87rem;
}
.sd-mega__list a:hover { color: var(--clinic); }
.sd-mega__count {
	font-size: .72rem;
	color: var(--steel);
	background: var(--wash);
	border-radius: 10px;
	padding: 1px 7px;
	font-variant-numeric: tabular-nums;
}

.sd-mega__promo {
	display: flex;
	flex-direction: column;
	gap: var(--sp-1);
	height: 100%;
	padding: var(--sp-4);
	border-radius: var(--r-card);
	background: linear-gradient(150deg, var(--clinic) 0%, var(--clinic-bright) 100%);
	color: #fff;
	text-decoration: none;
}
.sd-mega__promo .sd-i { width: 26px; height: 26px; margin-bottom: var(--sp-2); }
.sd-mega__promo strong { font-size: 1rem; }
.sd-mega__promo span { font-size: .84rem; color: #E4E4FB; }

/* --------------------------------------------------------------------------
   Mobile drawer
   -------------------------------------------------------------------------- */

.sd-drawer { position: fixed; inset: 0; z-index: 200; }
.sd-drawer__scrim {
	position: absolute;
	inset: 0;
	background: rgba(11, 10, 82, .45);
	animation: sd-fade .2s var(--ease);
}
@keyframes sd-fade { from { opacity: 0 } to { opacity: 1 } }

.sd-drawer__panel {
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	width: min(86vw, 340px);
	background: var(--surface);
	display: flex;
	flex-direction: column;
	box-shadow: var(--shadow-lg);
	animation: sd-slide .24s var(--ease);
}
@keyframes sd-slide { from { transform: translateX(100%) } }

.sd-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--sp-4);
	border-bottom: 1px solid var(--line);
}
.sd-drawer__head button {
	border: 0; background: transparent; cursor: pointer;
	width: 38px; height: 38px; color: var(--ink);
	display: inline-flex; align-items: center; justify-content: center;
}

.sd-drawer__nav { flex: 1 1 auto; overflow-y: auto; padding: var(--sp-2) 0; }

.sd-drawer__top,
.sd-acc__btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	gap: var(--sp-2);
	padding: 13px var(--sp-4);
	border: 0;
	background: transparent;
	font-family: var(--font-ui);
	font-size: .95rem;
	font-weight: 600;
	color: var(--ink);
	text-decoration: none;
	text-align: start;
	cursor: pointer;
	border-bottom: 1px solid var(--line);
}
.sd-acc__btn .sd-i { width: 17px; height: 17px; color: var(--steel); transition: transform .2s var(--ease); }
.sd-acc__btn[aria-expanded="true"] .sd-i { transform: rotate(180deg); }

.sd-acc__body { background: var(--wash); border-bottom: 1px solid var(--line); }
.sd-acc__body a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 11px var(--sp-4);
	padding-inline-start: calc(var(--sp-4) + 12px);
	color: var(--ink-2);
	text-decoration: none;
	font-size: .89rem;
}
.sd-acc__body a + a { border-top: 1px solid var(--line); }
.sd-acc__body a span { font-size: .74rem; color: var(--steel); }

.sd-drawer__foot {
	padding: var(--sp-4);
	border-top: 1px solid var(--line);
	display: grid;
	gap: var(--sp-3);
	justify-items: stretch;
}
.sd-drawer__tel {
	text-align: center;
	font-weight: 700;
	color: var(--clinic);
	text-decoration: none;
	font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.sd-hero2 { padding-block: var(--sp-5) var(--sp-4); }

.sd-hero2__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: var(--sp-4);
}

.sd-slider { position: relative; border-radius: 12px; overflow: hidden; }
.sd-slider__track { display: grid; }

.sd-slide {
	grid-area: 1 / 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: var(--sp-3);
	min-height: 320px;
	padding: clamp(24px, 4vw, 48px);
	color: #fff;
	opacity: 0;
	visibility: hidden;
	transition: opacity .4s var(--ease);
}
.sd-slide.is-active { opacity: 1; visibility: visible; }

.sd-slide--a { background: linear-gradient(125deg, var(--clinic-night) 0%, var(--clinic) 55%, var(--clinic-bright) 100%); }
.sd-slide--b { background: linear-gradient(125deg, #5A0C52 0%, var(--accent-deep) 60%, var(--accent) 100%); }
.sd-slide--c { background: linear-gradient(125deg, #0F2A46 0%, #14508C 60%, #2B87E8 100%); }

.sd-slide__kicker {
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: normal;
	background: rgba(255,255,255,.16);
	border: 1px solid rgba(255,255,255,.28);
	border-radius: 999px;
	padding: 5px 13px;
}
.sd-slide__title {
	margin: 0;
	font-size: clamp(1.5rem, 3.6vw, 2.4rem);
	font-weight: 700;
	line-height: 1.28;
	letter-spacing: normal;
	max-width: 20ch;
	color: #fff;
}
.sd-slide__text {
	margin: 0;
	font-size: clamp(.92rem, 1.5vw, 1.05rem);
	line-height: 1.7;
	color: rgba(255,255,255,.9);
	max-width: 46ch;
}

/* Opposite corner from the slide's call to action, which sits at the inline
   start along with the rest of the text. */
.sd-slider__dots {
	position: absolute;
	inset-inline-end: clamp(24px, 4vw, 48px);
	bottom: 18px;
	display: flex;
	gap: 7px;
}
/* min-height is reset explicitly: the base stylesheet gives every button a
   44px touch target, which would stretch these into bars. The dots are a
   secondary control - the slider also advances on its own and by swipe. */
.sd-slider__dots button {
	width: 9px; height: 9px;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255,255,255,.42);
	cursor: pointer;
	transition: width .2s var(--ease), background-color .2s var(--ease);
}
.sd-slider__dots button[aria-selected="true"] { width: 26px; border-radius: 5px; background: #fff; }

.sd-hero2__side { display: grid; gap: var(--sp-4); }

.sd-promo {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: var(--sp-1);
	padding: var(--sp-4);
	border-radius: 12px;
	border: 1px solid var(--line);
	background: var(--surface);
	text-decoration: none;
	transition: border-color .18s var(--ease), transform .18s var(--ease);
}
.sd-promo:hover { border-color: var(--clinic); transform: translateY(-2px); }
.sd-promo strong { font-size: 1rem; color: var(--ink); }
.sd-promo span { font-size: .85rem; color: var(--steel); line-height: 1.6; }
.sd-promo--wa { border-inline-start: 4px solid #25D366; }
.sd-promo--parts { border-inline-start: 4px solid var(--clinic); }

/* --------------------------------------------------------------------------
   Trust strip
   -------------------------------------------------------------------------- */

.sd-trust { border-block: 1px solid var(--line); background: var(--surface); }

.sd-trust__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--sp-4);
	padding-block: var(--sp-4);
}

.sd-trust__item {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
}
.sd-trust__item + .sd-trust__item { border-inline-start: 1px solid var(--line); padding-inline-start: var(--sp-4); }
.sd-trust__item .sd-i { width: 27px; height: 27px; color: var(--clinic); flex: none; }
.sd-trust__item div { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.sd-trust__item strong { font-size: .92rem; color: var(--ink); }
.sd-trust__item span { font-size: .78rem; color: var(--steel); }

/* --------------------------------------------------------------------------
   Category tiles
   -------------------------------------------------------------------------- */

.sd-cats {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
	gap: var(--sp-4);
}

.sd-cat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--sp-2);
	text-decoration: none;
	text-align: center;
}
.sd-cat__disc {
	width: 100%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--surface);
	border: 1px solid var(--line);
	display: grid;
	place-items: center;
	overflow: hidden;
	transition: border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.sd-cat:hover .sd-cat__disc {
	border-color: var(--clinic);
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
}
.sd-cat__disc img { width: 100%; height: 100%; object-fit: contain; }
.sd-cat__name { font-size: .87rem; font-weight: 600; color: var(--ink); line-height: 1.4; }
.sd-cat__n { font-size: .74rem; color: var(--steel); }

/* --------------------------------------------------------------------------
   Product rails
   -------------------------------------------------------------------------- */

.sd-rail {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(210px, 1fr);
	gap: var(--sp-4);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding-bottom: 4px;
}
.sd-rail::-webkit-scrollbar { display: none; }
.sd-rail__item { scroll-snap-align: start; }

.sd-rail__nav { display: flex; gap: var(--sp-1); }
.sd-rail__btn {
	width: 32px; height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--line-strong);
	border-radius: var(--r-btn);
	background: var(--surface);
	color: var(--ink-2);
	cursor: pointer;
	padding: 0;
}
.sd-rail__btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sd-rail__btn:hover:not(:disabled) { border-color: var(--clinic); color: var(--clinic); }
.sd-rail__btn:disabled { opacity: .35; cursor: default; }

/* --------------------------------------------------------------------------
   Product card
   -------------------------------------------------------------------------- */

.sd-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	overflow: hidden;
	transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.sd-card:hover {
	border-color: var(--line-strong);
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}

.sd-card__media { position: relative; background: #fff; }
.sd-card__link { display: block; }
.sd-card__img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: contain;
	background: var(--wash);
}
.sd-card__img--art { background: transparent; }

.sd-card__flags {
	position: absolute;
	top: var(--sp-2);
	inset-inline-start: var(--sp-2);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	pointer-events: none;
}
.sd-flag {
	font-size: .72rem;
	font-weight: 700;
	line-height: 1;
	padding: 5px 8px;
	border-radius: 4px;
	color: #fff;
	font-variant-numeric: tabular-nums;
}
.sd-flag--sale { background: var(--accent); }
.sd-flag--hot  { background: var(--clinic-bright); }
.sd-flag--out  { background: var(--steel); }

.sd-wish {
	position: absolute;
	top: var(--sp-2);
	inset-inline-end: var(--sp-2);
	width: 32px; height: 32px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: rgba(255,255,255,.9);
	color: var(--steel);
	cursor: pointer;
	transition: color .18s var(--ease), border-color .18s var(--ease);
}
.sd-wish svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
.sd-wish:hover { color: var(--accent); border-color: var(--accent); }
.sd-wish[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.sd-wish[aria-pressed="true"] svg { fill: var(--accent); }

.sd-card__cond {
	position: absolute;
	bottom: var(--sp-2);
	inset-inline-start: var(--sp-2);
	font-size: .7rem;
	font-weight: 600;
	padding: 4px 8px;
	border-radius: var(--r-chip);
}
.sd-card__cond--new    { background: var(--cond-new-bg);    color: var(--cond-new); }
.sd-card__cond--refurb { background: var(--cond-refurb-bg); color: var(--cond-refurb); }
.sd-card__cond--used   { background: var(--cond-used-bg);   color: var(--cond-used); }

.sd-card__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: var(--sp-3);
	flex: 1 1 auto;
	border-top: 1px solid var(--line);
}

.sd-card__eyebrow {
	font-size: .71rem;
	font-weight: 600;
	color: var(--steel);
	letter-spacing: normal;
}

.sd-card__title {
	margin: 0;
	font-size: .92rem;
	font-weight: 600;
	line-height: 1.55;
	letter-spacing: normal;
}
.sd-card__title a { color: var(--ink); text-decoration: none; }
.sd-card__title a:hover { color: var(--clinic); }

.sd-stars { display: inline-flex; align-items: center; gap: 2px; }
.sd-star { width: 14px; height: 14px; fill: var(--line-strong); }
.sd-star.is-full,
.sd-star.is-half { fill: #F0A500; }
.sd-stars__n { font-size: .72rem; color: var(--steel); margin-inline-start: 4px; }

/* Prices are LTR runs inside RTL text; isolate them or the bidi algorithm
   puts the currency on the wrong side. */
.sd-card__price {
	display: flex;
	align-items: baseline;
	gap: var(--sp-2);
	flex-wrap: wrap;
	margin-top: auto;
	padding-top: 4px;
	direction: ltr;
	unicode-bidi: isolate;
	justify-content: flex-end;
}
.sd-card__price del {
	color: var(--steel);
	font-size: .82rem;
	text-decoration: line-through;
	opacity: .9;
}
.sd-card__price del bdi { text-decoration: line-through; }
.sd-card__price ins {
	color: var(--clinic);
	font-size: 1.05rem;
	font-weight: 700;
	text-decoration: none;
	font-variant-numeric: tabular-nums;
}
.sd-card__price .woocommerce-Price-currencySymbol { font-size: .8em; font-weight: 600; }

.sd-card__actions { margin-top: 6px; }
.sd-card__actions .sd-btn { width: 100%; min-height: 38px; font-size: .86rem; }

/* WooCommerce injects a "view cart" link after an AJAX add. */
.sd-card .added_to_cart {
	display: block;
	margin-top: 6px;
	text-align: center;
	font-size: .82rem;
	font-weight: 600;
	color: var(--clinic);
	text-decoration: none;
}

/* --------------------------------------------------------------------------
   Product grid (shop archive, category, search)
   -------------------------------------------------------------------------- */

.woocommerce ul.products,
ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(214px, 1fr));
	gap: var(--sp-4);
	margin: 0 0 var(--sp-6);
	padding: 0;
	list-style: none;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { content: none; }

.woocommerce ul.products li.product,
ul.products li.product {
	width: auto !important;
	margin: 0 !important;
	float: none !important;
	clear: none !important;
}

/* --------------------------------------------------------------------------
   Repair band
   -------------------------------------------------------------------------- */

.sd-repair {
	background: linear-gradient(125deg, var(--clinic-night) 0%, var(--clinic) 60%, var(--clinic-bright) 100%);
	color: #fff;
	padding-block: clamp(32px, 5vw, 56px);
}

.sd-repair__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: clamp(24px, 4vw, 48px);
	align-items: center;
}

.sd-repair__kicker {
	display: inline-block;
	font-size: .8rem;
	font-weight: 600;
	background: rgba(255,255,255,.16);
	border: 1px solid rgba(255,255,255,.28);
	border-radius: 999px;
	padding: 5px 13px;
	margin-bottom: var(--sp-3);
}
.sd-repair__text h2 {
	margin: 0 0 var(--sp-3);
	font-size: clamp(1.4rem, 3vw, 2rem);
	font-weight: 700;
	letter-spacing: normal;
	color: #fff;
}
.sd-repair__text p {
	margin: 0 0 var(--sp-4);
	font-size: 1rem;
	line-height: 1.85;
	color: rgba(255,255,255,.88);
	max-width: 56ch;
}

.sd-repair__list {
	list-style: none;
	margin: 0 0 var(--sp-5);
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--sp-2) var(--sp-4);
}
.sd-repair__list li {
	position: relative;
	padding-inline-start: 22px;
	font-size: .92rem;
	color: rgba(255,255,255,.92);
}
.sd-repair__list li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: .55em;
	width: 7px; height: 7px;
	border-radius: 50%;
	background: var(--accent);
}

.sd-repair__cta { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

.sd-repair__offer {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--sp-2);
	text-align: center;
	padding: var(--sp-5);
	border-radius: 14px;
	background: rgba(255,255,255,.08);
	border: 1px solid rgba(255,255,255,.2);
}
.sd-repair__pct {
	font-size: clamp(2.6rem, 7vw, 3.8rem);
	font-weight: 700;
	line-height: 1;
	color: #FF7FDC;
	font-variant-numeric: tabular-nums;
	direction: ltr;
}
.sd-repair__offer strong { font-size: 1.05rem; }
.sd-repair__fine { font-size: .78rem; color: rgba(255,255,255,.72); line-height: 1.6; }

/* --------------------------------------------------------------------------
   Brand strip
   -------------------------------------------------------------------------- */

.sd-brands { padding-block: clamp(24px, 3vw, 36px); border-top: 1px solid var(--line); }
.sd-brands__title {
	margin: 0 0 var(--sp-4);
	font-size: .82rem;
	font-weight: 600;
	color: var(--steel);
	text-align: center;
	letter-spacing: normal;
}
.sd-brands__row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--sp-3);
}
.sd-brands__item {
	display: inline-flex;
	align-items: center;
	min-height: 46px;
	padding: 0 22px;
	border: 1px solid var(--line);
	border-radius: var(--r-btn);
	background: var(--surface);
	color: var(--ink-2);
	font-size: .95rem;
	font-weight: 700;
	text-decoration: none;
	transition: border-color .18s var(--ease), color .18s var(--ease);
}
.sd-brands__item:hover { border-color: var(--clinic); color: var(--clinic); }

/* --------------------------------------------------------------------------
   Four ranked lists
   -------------------------------------------------------------------------- */

.sd-lists { background: var(--wash); padding-block: clamp(28px, 4vw, 48px); }

.sd-lists__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--sp-5);
}

.sd-lists__title {
	margin: 0 0 var(--sp-3);
	padding-bottom: var(--sp-2);
	border-bottom: 2px solid var(--clinic);
	font-size: 1rem;
	font-weight: 700;
	color: var(--ink);
	letter-spacing: normal;
}
.sd-lists__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.sd-lists__col a {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	text-decoration: none;
}
.sd-lists__thumb {
	width: 62px; height: 62px;
	flex: none;
	border-radius: 6px;
	border: 1px solid var(--line);
	background: var(--surface);
	overflow: hidden;
}
.sd-lists__thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sd-lists__meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sd-lists__name {
	font-size: .85rem;
	font-weight: 600;
	color: var(--ink);
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.sd-lists__col a:hover .sd-lists__name { color: var(--clinic); }
.sd-lists__price {
	font-size: .85rem;
	font-weight: 700;
	color: var(--clinic);
	direction: ltr;
	unicode-bidi: isolate;
	text-align: start;
}
.sd-lists__price del { color: var(--steel); font-weight: 400; font-size: .78rem; margin-inline-end: 5px; }
.sd-lists__price ins { text-decoration: none; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.sd-foot {
	background: var(--clinic-night);
	color: #B9BCE8;
	margin-top: clamp(32px, 5vw, 64px);
}

.sd-foot__grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1.1fr 1.3fr;
	gap: var(--sp-5);
	padding-block: clamp(32px, 4vw, 52px);
}

.sd-foot__brand {
	display: block;
	font-size: 1.5rem;
	font-weight: 700;
	color: #fff;
	margin-bottom: var(--sp-3);
}
.sd-foot__blurb { margin: 0 0 var(--sp-4); font-size: .87rem; line-height: 1.85; }

.sd-foot__title {
	margin: 0 0 var(--sp-4);
	font-size: .95rem;
	font-weight: 700;
	color: #fff;
	letter-spacing: normal;
}

.sd-foot__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sd-foot__list a { color: inherit; text-decoration: none; font-size: .87rem; }
.sd-foot__list a:hover { color: #fff; text-decoration: underline; }

.sd-foot__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.sd-foot__contact li { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.sd-foot__contact a { color: #fff; text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; text-align: start; }
.sd-foot__contact span:not(.sd-foot__lbl) { font-size: .87rem; line-height: 1.7; }
.sd-foot__lbl {
	font-size: .72rem;
	color: #7E82C4;
	font-weight: 600;
}

.sd-foot__tags { display: flex; flex-wrap: wrap; gap: 7px; }
.sd-foot__tags a {
	font-size: .8rem;
	color: inherit;
	text-decoration: none;
	background: rgba(255,255,255,.07);
	border: 1px solid rgba(255,255,255,.12);
	border-radius: 4px;
	padding: 5px 10px;
}
.sd-foot__tags a:hover { background: rgba(255,255,255,.14); color: #fff; }

.sd-foot__col--cta .sd-btn { width: 100%; }
.sd-foot__pay { margin-top: var(--sp-4); display: grid; gap: 7px; }
.sd-foot__paylist { display: flex; flex-wrap: wrap; gap: 6px; }
.sd-foot__paylist span {
	font-size: .76rem;
	padding: 5px 9px;
	border-radius: 4px;
	background: rgba(255,255,255,.07);
	border: 1px solid rgba(255,255,255,.12);
}

.sd-foot__bar { border-top: 1px solid rgba(255,255,255,.12); }
.sd-foot__barin {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-4);
	flex-wrap: wrap;
	padding-block: var(--sp-4);
	font-size: .8rem;
}
.sd-foot__barin p { margin: 0; }
.sd-foot__made { color: #7E82C4; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
	.sd-foot__grid { grid-template-columns: 1.4fr 1fr 1fr; }
	.sd-foot__col--cta { grid-column: span 3; }
	.sd-lists__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
	.sd-hero2__grid { grid-template-columns: 1fr; }
	.sd-hero2__side { grid-template-columns: repeat(2, 1fr); }
	.sd-repair__inner { grid-template-columns: 1fr; }
	.sd-callus { display: none; }
}

/* The header collapses to burger + brand + actions, with search on its own
   row. 921px matches Astra's own breakpoint so the two agree. */
@media (max-width: 921px) {
	.sd-util { display: none; }
	.sd-burger { display: inline-flex; }
	.sd-act--search { display: inline-flex; }
	.sd-head__search { display: none; }
	.sd-head__inner { min-height: 60px; gap: var(--sp-2); }
	.sd-brand { margin-inline-end: auto; }
	.sd-brand__mark { width: 34px; height: 34px; }
	.sd-brand__name { font-size: 1.1rem; }
	.sd-brand__tag { display: none; }
	.sd-act--user { display: none; }

	.sd-nav__inner { min-height: 42px; }
	.sd-megabtn { font-size: .84rem; padding-inline: 12px; padding-inline-start: calc(var(--gutter) + 12px); }
	.sd-megabtn span { display: none; }
	.sd-nav__wa { display: none; }
	.sd-mega { display: none; }

	.sd-trust__grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
	.sd-trust__item:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
	.sd-trust__item:nth-child(3),
	.sd-trust__item:nth-child(4) { border-top: 1px solid var(--line); padding-top: var(--sp-3); }

	.sd-slide { min-height: 260px; }
	.sd-repair__list { grid-template-columns: 1fr; }

	.sd-foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
	.sd-foot__col--brand,
	.sd-foot__col--cta { grid-column: span 2; }
}

@media (max-width: 620px) {
	.sd-hero2 { padding-block: var(--sp-3); }
	.sd-hero2__side { grid-template-columns: 1fr; }
	.sd-cats { grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
	.sd-cat__name { font-size: .78rem; }
	.sd-rail { grid-auto-columns: minmax(165px, 1fr); }
	.sd-rail__nav { display: none; }
	.sd-section__head { margin-bottom: var(--sp-4); }

	.woocommerce ul.products,
	ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }

	.sd-card__body { padding: var(--sp-2) var(--sp-3) var(--sp-3); }
	.sd-card__title { font-size: .85rem; }
	.sd-card__price ins { font-size: .95rem; }

	.sd-lists__grid { grid-template-columns: 1fr; gap: var(--sp-4); }
	.sd-foot__grid { grid-template-columns: 1fr; }
	.sd-foot__col--brand,
	.sd-foot__col--cta { grid-column: auto; }
	.sd-foot__barin { flex-direction: column; align-items: flex-start; gap: var(--sp-2); }
}

/* --------------------------------------------------------------------------
   TranslatePress floating switcher

   The /en/ tree still serves Arabic, so the switcher offers a language the
   site does not actually have - and it floats over the buy bar on a phone.
   Hidden here rather than by deactivating the plugin, which would change
   permalinks. Remove this block once /en/ is genuinely translated.
   -------------------------------------------------------------------------- */
.trp-floating-switcher { display: none !important; }

/* --------------------------------------------------------------------------
   Single product gallery, when the photograph is still pending
   -------------------------------------------------------------------------- */
.sd-gallery-art { background: var(--wash); border-radius: var(--r-card); }
.sd-gallery-art img { width: 100%; height: auto; display: block; }

/* --------------------------------------------------------------------------
   Wishlist page
   -------------------------------------------------------------------------- */
.sd-wishpage__empty {
	display: grid;
	justify-items: center;
	gap: var(--sp-4);
	padding: clamp(32px, 6vw, 64px) var(--sp-4);
	text-align: center;
	color: var(--steel);
	background: var(--wash);
	border-radius: var(--r-card);
	line-height: 1.9;
}
