/**
 * stenley.ge — დიზაინ-სისტემა (mockups/css/stenley.css + GP reset)
 */

*,
*::before,
*::after {
	box-sizing: border-box;
}

:root {
	--bg: #ffffff;
	--text: #111111;
	--muted: #6b6b6b;
	--border: #e8e8e8;
	--surface: #f7f7f7;
	--radius: 12px;
	--space: clamp(1rem, 3vw, 2.5rem);
	--font: "Noto Sans Georgian", "Inter", system-ui, sans-serif;
	--max: 1200px;
	/* aliases for woocommerce.css */
	--stenley-bg: var(--bg);
	--stenley-text: var(--text);
	--stenley-muted: var(--muted);
	--stenley-border: var(--border);
	--stenley-surface: var(--surface);
	--stenley-accent: var(--text);
	--stenley-radius: var(--radius);
	--stenley-space: var(--space);
	--stenley-max: var(--max);
	--stenley-font: var(--font);
}

html {
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
}

body {
	font-family: var(--font);
	color: var(--text);
	background: var(--bg);
	line-height: 1.5;
	margin: 0;
}

body.stenley-site {
	background-color: #ffffff !important;
	color: var(--text) !important;
}

a {
	color: inherit;
	text-decoration: none;
}

img {
	max-width: 100%;
	display: block;
}

/* ── GeneratePress reset ── */
.stenley-site.separate-containers .inside-article,
.stenley-site.separate-containers .site-main,
.stenley-site .site-content,
.stenley-site .content-area,
.stenley-site .inside-article,
.stenley-site .entry-content {
	background: transparent;
	box-shadow: none;
	border: 0;
	margin: 0;
	padding: 0;
}

.stenley-site .site-content {
	display: block;
	max-width: none;
}

.stenley-site .site-main {
	margin: 0;
}

/* Hide GeneratePress default header only — keep #stenley-header visible */
.stenley-site #masthead {
	display: none !important;
}

#stenley-header.site-header {
	display: block !important;
}

.stenley-site .site-footer.site-info,
.stenley-site footer.site-info {
	display: none !important;
}

.stenley-site .sidebar,
.stenley-site .widget-area {
	display: none !important;
}

.stenley-site .main-navigation {
	display: none !important;
}

/* Neutralize GeneratePress global leaks */
.stenley-site a {
	color: inherit;
	text-decoration: none;
}

.stenley-site a:hover,
.stenley-site a:focus {
	color: inherit;
}

.stenley-site .grid-container {
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

.stenley-site .site-main .inside-article,
.stenley-site.one-container .site-content {
	padding: 0 !important;
}

.stenley-site .entry-content > .alignwide,
.stenley-site .entry-content > .alignfull {
	margin-left: 0;
	width: 100%;
	max-width: 100%;
}

.stenley-site .page .entry-header,
.stenley-site .page .inside-article > .entry-header {
	display: none !important;
}

.stenley-site.single-product .featured-image,
.stenley-site.single-product .page-header-image,
.stenley-site.single-product .page-header-image-single {
	display: none !important;
}

.stenley-site .generate-back-to-top {
	display: none !important;
}

.stenley-front .entry-header,
.stenley-front .page-header,
.stenley-front .inside-article .entry-header,
.stenley-front-page + .entry-content,
.stenley-site.stenley-front .site-content .page-header,
.stenley-site.woocommerce-shop .entry-header,
.stenley-site.single-product .entry-header,
.stenley-site.woocommerce-cart .entry-header,
.stenley-site.woocommerce-checkout .entry-header,
.stenley-site.woocommerce-account .entry-header,
.stenley-site .page-header,
.stenley-site .inside-article > .entry-header {
	display: none !important;
}

.stenley-site a.skip-link:not(.stenley-skip-link) {
	display: none !important;
}

.stenley-skip-link {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.stenley-skip-link:focus {
	position: fixed;
	left: 1rem;
	top: 1rem;
	z-index: 9999;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	background: var(--text);
	color: #fff;
	border-radius: 8px;
}

.stenley-site a:focus-visible,
.stenley-site button:focus-visible,
.stenley-site input:focus-visible {
	outline: 2px solid var(--text);
	outline-offset: 2px;
}

.stenley-front-page {
	display: block;
	width: 100%;
}

/* ── Header (mockup) ── */
.site-header {
	position: sticky;
	top: 0;
	z-index: 200;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--border);
}

.site-header__inner {
	max-width: var(--max);
	margin: 0 auto;
	padding: 1rem var(--space);
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

.logo {
	font-size: 1.1rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	white-space: nowrap;
}

.nav {
	display: none;
	gap: 1.75rem;
	font-size: 0.9rem;
	font-weight: 500;
}

.nav a:hover {
	opacity: 0.55;
}

.search {
	flex: 1;
	max-width: 320px;
	margin-left: auto;
}

.search form,
.search .woocommerce-product-search {
	margin: 0;
}

.search input[type="search"],
.stenley-search-field {
	width: 100%;
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 0.6rem 1.1rem;
	font: inherit;
	font-size: 0.85rem;
	background: var(--surface);
}

.search button,
.stenley-search-submit {
	display: none;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 1rem;
	font-size: 0.85rem;
	font-weight: 500;
}

.header-actions .stenley-lang-switcher {
	margin-left: 0;
}

.header-actions .stenley-lang-switcher ul {
	gap: 0.35rem;
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	font-size: 0.8rem;
	font-weight: 600;
}

.stenley-cart-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.15rem;
	height: 1.15rem;
	margin-left: 0.2rem;
	padding: 0 0.3rem;
	border-radius: 999px;
	background: var(--text);
	color: #fff;
	font-size: 0.7rem;
}

.stenley-cart-count.is-empty {
	background: var(--muted);
}

.stenley-nav-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	margin-left: auto;
	padding: 0;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: transparent;
	cursor: pointer;
}

.stenley-nav-toggle span {
	display: block;
	width: 14px;
	height: 2px;
	background: var(--text);
	box-shadow: 0 -5px 0 var(--text), 0 5px 0 var(--text);
}

.stenley-mobile-nav {
	display: grid;
	gap: 0.5rem;
	padding: 0.75rem var(--space) 1rem;
	border-bottom: 1px solid var(--border);
	background: #fff;
}

.stenley-mobile-nav a {
	padding: 0.5rem 0;
	font-weight: 500;
}

@media (max-width: 767px) {
	.search {
		display: none;
	}

	.header-actions a[href*="myaccount"] {
		display: none;
	}
}

@media (min-width: 768px) {
	.nav {
		display: flex;
	}

	.stenley-nav-toggle {
		display: none;
	}

	.stenley-mobile-nav {
		display: none !important;
	}
}

@media (max-width: 767px) {
	.site-header__inner {
		flex-wrap: wrap;
		gap: 0.75rem;
	}

	.logo {
		flex: 1;
	}

	.header-actions {
		gap: 0.65rem;
		font-size: 0.8rem;
	}

	.stenley-lang-switcher ul {
		font-size: 0.75rem;
	}
}

/* ── Home (mockup) ── */
.home-hero,
.stenley-hero--full {
	max-width: var(--max);
	margin: 0 auto;
	padding: clamp(3rem, 8vw, 6rem) var(--space);
	text-align: center;
}

.home-hero__eyebrow,
.stenley-hero__eyebrow {
	font-size: 0.9rem;
	color: var(--muted);
	margin-bottom: 1rem;
}

.home-hero h1,
.stenley-hero--full h1 {
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 600;
	line-height: 1.15;
	margin: 0 0 1rem;
}

.home-hero__lead,
.stenley-hero__lead {
	color: var(--muted);
	font-size: 1.05rem;
	margin-bottom: 2rem;
}

.home-cta,
.stenley-cta,
.button.stenley-cta {
	display: inline-block;
	background: var(--text) !important;
	color: #fff !important;
	padding: 1rem 2rem !important;
	border-radius: 10px !important;
	font-weight: 600 !important;
	border: 0 !important;
	box-shadow: none !important;
	text-decoration: none;
}

.home-benefits,
.stenley-benefits--row {
	max-width: var(--max);
	margin: 0 auto 4rem;
	padding: 0 var(--space);
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2rem;
	font-size: 0.9rem;
	color: var(--muted);
}

/* home.html — color preview grid */
.home-grid {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 var(--space) 4rem;
}

.home-grid h2 {
	font-size: 1.25rem;
	font-weight: 600;
	text-align: center;
	margin: 0 0 1.5rem;
}

.color-preview {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

@media (min-width: 600px) {
	.color-preview {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.color-preview a {
	display: flex;
	flex-direction: column;
	align-items: center;
	background: var(--surface);
	border-radius: var(--radius);
	padding: 1.5rem;
	text-align: center;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.color-preview a:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.color-preview img {
	max-height: 140px;
	width: auto;
	margin: 0 auto 0.75rem;
	object-fit: contain;
}

.color-preview span {
	font-size: 0.85rem;
	font-weight: 500;
}

/* Color preview cards (shop — with price) */
.stenley-color-cards {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 var(--space) 3rem;
}

.stenley-color-cards__title {
	font-size: 1.25rem;
	font-weight: 600;
	text-align: center;
	margin: 0 0 1.5rem;
}

.stenley-color-cards__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

@media (min-width: 600px) {
	.stenley-color-cards__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.stenley-color-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 1.25rem 1rem;
	background: var(--surface);
	border-radius: var(--radius);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stenley-color-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.stenley-color-card__img {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1;
	margin-bottom: 0.75rem;
}

.stenley-color-card__img img {
	max-height: 140px;
	width: auto;
	object-fit: contain;
}

.stenley-color-card__name {
	font-size: 0.85rem;
	font-weight: 500;
}

.stenley-color-card__price {
	font-size: 0.85rem;
	color: var(--muted);
	margin-top: 0.2rem;
}

/* ── Product page (mockup product.html) ── */
.product {
	max-width: var(--max);
	margin: 0 auto;
	padding: calc(var(--space) * 1.5) var(--space);
}

.product__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: calc(var(--space) * 1.5);
}

@media (min-width: 900px) {
	.product__grid {
		grid-template-columns: 1.15fr 0.85fr;
		align-items: start;
	}
}

.gallery__main {
	background: var(--surface);
	border-radius: var(--radius);
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3rem;
}

.gallery__main img {
	max-height: 100%;
	object-fit: contain;
}

.gallery__thumbs {
	display: flex;
	gap: 0.75rem;
	margin-top: 1rem;
}

.gallery__thumb {
	width: 72px;
	height: 72px;
	border-radius: 8px;
	border: 2px solid transparent;
	background: var(--surface);
	padding: 0.5rem;
	cursor: pointer;
}

.gallery__thumb.active {
	border-color: var(--text);
}

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

.product__title {
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 600;
	line-height: 1.2;
	margin: 0 0 0.5rem;
}

.product__size {
	font-size: 0.9rem;
	color: var(--muted);
	margin: 0 0 1rem;
}

.product__price {
	font-size: 1.35rem;
	font-weight: 500;
	margin: 0 0 1.5rem;
}

.product__price span {
	font-size: 0.85rem;
	color: var(--muted);
	margin-left: 0.25rem;
}

.swatches__label {
	font-size: 0.85rem;
	font-weight: 500;
	margin: 0 0 0.75rem;
}

.swatches__label strong {
	font-weight: 600;
}

.swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-bottom: 1.5rem;
}

.swatch {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 2px solid transparent;
	cursor: pointer;
	transition: border-color 0.15s;
	padding: 0;
}

.swatch:hover,
.swatch.active {
	border-color: var(--text);
}

.swatch.is-oos {
	opacity: 0.35;
	cursor: not-allowed;
}

.product__desc {
	color: var(--muted);
	font-size: 0.95rem;
	line-height: 1.65;
	margin-bottom: 1.5rem;
}

.product__desc p {
	margin: 0 0 0.75rem;
}

.trust {
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
}

.trust li {
	font-size: 0.9rem;
	color: var(--muted);
	padding: 0.2rem 0;
}

.trust li::before {
	content: "✓ ";
	color: var(--text);
}

.btn {
	display: block;
	width: 100%;
	text-align: center;
	padding: 1rem 1.25rem;
	border-radius: 10px;
	font: inherit;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	border: none;
}

.btn--primary {
	background: var(--text);
	color: #fff;
	margin-bottom: 0.75rem;
}

.btn--secondary {
	background: transparent;
	color: var(--text);
	border: 1px solid var(--border);
}

.stenley-product-actions .single_add_to_cart_button {
	display: block;
	width: 100%;
	text-align: center;
	padding: 1rem 1.25rem;
	border-radius: 10px;
	font-size: 1rem;
	font-weight: 600;
	background: var(--text) !important;
	color: #fff !important;
	margin-bottom: 0.75rem;
	border: none !important;
	box-shadow: none !important;
}

.tabs {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 var(--space) calc(var(--space) * 2);
}

.tabs__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	border-top: 1px solid var(--border);
	padding-top: 1.5rem;
	margin-bottom: 1.5rem;
}

.tabs__nav button {
	background: none;
	border: none;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--muted);
	padding: 0 0 0.5rem;
	cursor: pointer;
	border-bottom: 2px solid transparent;
}

.tabs__nav button.active {
	color: var(--text);
	border-bottom-color: var(--text);
}

.tabs__panel {
	color: var(--muted);
	line-height: 1.7;
	max-width: 680px;
}

.tabs__panel[hidden] {
	display: none;
}

.tabs__panel table {
	width: 100%;
	border-collapse: collapse;
	margin: 0.5rem 0 1rem;
	font-size: 0.95rem;
}

.tabs__panel th,
.tabs__panel td {
	border-bottom: 1px solid var(--border);
	padding: 0.65rem 0.5rem;
	text-align: left;
}

/* ── Shop page (mockup shop.html) ── */
.shop-hero {
	max-width: var(--max);
	margin: 0 auto;
	padding: calc(var(--space) * 1.25) var(--space) var(--space);
}

.shop-hero__eyebrow {
	font-size: 0.85rem;
	color: var(--muted);
	margin-bottom: 0.5rem;
}

.shop-hero h1 {
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	font-weight: 600;
	margin: 0;
}

.shop-layout {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 var(--space) calc(var(--space) * 2);
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space);
}

@media (min-width: 768px) {
	.shop-layout {
		grid-template-columns: 200px 1fr;
	}
}

.filters {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.25rem;
	height: fit-content;
}

.filters h3 {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin: 0 0 1.25rem;
}

.filter-group {
	margin-bottom: 1.5rem;
}

.filter-group:last-child {
	margin-bottom: 0;
}

.filter-group h4 {
	font-size: 0.85rem;
	font-weight: 500;
	margin: 0 0 0.75rem;
}

.filter-group label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.85rem;
	color: var(--muted);
	padding: 0.25rem 0;
	cursor: pointer;
}

.filter-group label.is-oos {
	opacity: 0.45;
}

.stenley-filters-apply {
	display: block;
	width: 100%;
	margin-top: 1rem;
	padding: 0.65rem 1rem;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--text);
	color: #fff;
	font: inherit;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
}

.stenley-filters-clear {
	display: inline-block;
	margin-top: 0.75rem;
	font-size: 0.8rem;
	color: var(--muted);
	text-decoration: underline;
}

.product-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--space);
}

@media (min-width: 768px) {
	.product-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 1100px) {
	.product-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.card {
	display: flex;
	flex-direction: column;
}

.card.is-oos {
	opacity: 0.55;
}

.card__img {
	background: var(--surface);
	border-radius: var(--radius);
	aspect-ratio: 1;
	padding: 1.5rem;
	margin-bottom: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.card__img img {
	max-height: 100%;
	object-fit: contain;
}

.card__color {
	font-size: 0.85rem;
	font-weight: 500;
	margin: 0 0 0.25rem;
}

.card__price {
	font-size: 0.95rem;
	margin: 0 0 0.75rem;
}

.card__btn {
	margin-top: auto;
	padding: 0.7rem;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: transparent;
	font: inherit;
	font-size: 0.85rem;
	font-weight: 500;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	color: inherit;
}

.card__btn:hover {
	background: var(--surface);
}

.stenley-shop-empty {
	grid-column: 1 / -1;
	color: var(--muted);
	font-size: 0.95rem;
}

/* ── Footer (mockup — ერთი strip) ── */
.stenley-site .site-footer {
	border-top: 1px solid var(--border);
	padding: 1.5rem var(--space);
	margin-top: 0;
}

.footer-legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.35rem 0.75rem;
	padding: 0.75rem var(--stenley-space) 1.25rem;
	font-size: 0.85rem;
	color: var(--stenley-muted, #6b7280);
}

.footer-legal a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.footer-legal a:hover {
	color: var(--stenley-text);
}

.footer-strip {
	max-width: var(--max);
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.5rem;
	font-size: 0.85rem;
	color: var(--muted);
	text-align: center;
}

/* Static pages */
.stenley-page {
	max-width: 720px;
	margin: 0 auto;
	padding: calc(var(--space) * 2) var(--space);
}

.stenley-page table {
	width: 100%;
	border-collapse: collapse;
	margin: 1rem 0 2rem;
	font-size: 0.95rem;
}

.stenley-page th,
.stenley-page td {
	border-bottom: 1px solid var(--border);
	padding: 0.75rem 0.5rem;
	text-align: left;
}