/* ========================================================================
   Variables
   ======================================================================== */

:root {
	/* Colors */
	--color-bg: #f5f1ea; /* soft cream */
	--color-bg-alt: #ede5da; /* warm beige */
	--color-surface: #ffffff; /* cards / surfaces */
	--color-text: #151515; /* primary text (matte black) */
	--color-text-muted: #6f6a63; /* muted text */

	--color-primary: #3d5b49; /* sage green */
	--color-primary-soft: #e1ebe4; /* soft sage tint */

	--color-success: #3f7f5b; /* positive */
	--color-warning: #b8801b; /* warm amber */
	--color-danger: #b54b3c; /* terracotta red */

	/* Neutral grays (steel / wood accents implied via imagery) */
	--gray-50: #faf9f7;
	--gray-100: #f1eee9;
	--gray-200: #ded7cd;
	--gray-300: #c4b9aa;
	--gray-400: #a79a88;
	--gray-500: #807566;
	--gray-600: #5e5549;
	--gray-700: #433c33;
	--gray-800: #27221c;
	--gray-900: #15110d;

	/* Typography */
	--font-sans:
		"Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
		sans-serif;
	--font-serif:
		"Playfair Display", "Times New Roman", serif; /* For elegant headings if desired */

	--font-size-xs: 0.75rem; /* 12px */
	--font-size-sm: 0.875rem; /* 14px */
	--font-size-base: 1rem; /* 16px */
	--font-size-md: 1.0625rem; /* ~17px for comfortable reading in BG */
	--font-size-lg: 1.25rem; /* 20px */
	--font-size-xl: 1.5rem; /* 24px */
	--font-size-2xl: 1.875rem; /* 30px */
	--font-size-3xl: 2.25rem; /* 36px */
	--font-size-4xl: 2.75rem; /* 44px */

	--line-height-tight: 1.2;
	--line-height-normal: 1.5;
	--line-height-relaxed: 1.7;

	/* Spacing scale (px) */
	--space-0: 0px;
	--space-1: 4px;
	--space-2: 8px;
	--space-3: 12px;
	--space-4: 16px;
	--space-5: 20px;
	--space-6: 24px;
	--space-7: 32px;
	--space-8: 40px;
	--space-9: 48px;
	--space-10: 64px;
	--space-11: 80px;
	--space-12: 96px;

	/* Radius */
	--radius-sm: 4px;
	--radius-md: 8px;
	--radius-lg: 14px;
	--radius-xl: 24px;
	--radius-round: 999px;

	/* Shadows (soft, elegant) */
	--shadow-soft: 0 8px 24px rgba(15, 10, 5, 0.06);
	--shadow-medium: 0 16px 40px rgba(15, 10, 5, 0.1);
	--shadow-subtle: 0 1px 3px rgba(15, 10, 5, 0.06);

	/* Transitions */
	--transition-fast: 120ms ease-out;
	--transition-normal: 200ms ease-out;
	--transition-slow: 320ms ease-out;

	/* Layout */
	--container-width: 1120px;
	--container-padding-x: 16px;
}

/* ========================================================================
   Reset / Normalize
   ======================================================================== */

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

html,
body {
	margin: 0;
	padding: 0;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	min-height: 100vh;
}

img,
video,
canvas,
svg,
picture {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
	background: none;
	border-radius: 0;
}

button {
	cursor: pointer;
}

button:disabled,
[aria-disabled="true"] {
	cursor: not-allowed;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure {
	margin: 0;
}

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

fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

/* ========================================================================
   Base Styles
   ======================================================================== */

body {
	font-family: var(--font-sans);
	font-size: var(--font-size-md);
	line-height: var(--line-height-relaxed);
	background-color: var(--color-bg);
	color: var(--color-text);
	-webkit-font-smoothing: antialiased;
}

main {
	min-height: 60vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-serif);
	font-weight: 500;
	line-height: var(--line-height-tight);
	color: var(--color-text);
	letter-spacing: 0.02em;
}

h1 {
	font-size: var(--font-size-4xl);
	margin-bottom: var(--space-4);
}

h2 {
	font-size: var(--font-size-3xl);
	margin-bottom: var(--space-4);
}

h3 {
	font-size: var(--font-size-2xl);
	margin-bottom: var(--space-3);
}

h4 {
	font-size: var(--font-size-xl);
	margin-bottom: var(--space-3);
}

h5 {
	font-size: var(--font-size-lg);
	margin-bottom: var(--space-2);
}

h6 {
	font-size: var(--font-size-base);
	margin-bottom: var(--space-1);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

p {
	margin-bottom: var(--space-4);
	color: var(--color-text);
}

p.is-muted,
.small-text,
.text-muted {
	color: var(--color-text-muted);
	font-size: var(--font-size-sm);
}

a {
	position: relative;
	transition: color var(--transition-normal);
}

a:hover {
	color: var(--color-primary);
}

/* Soft underline on hover for modern/minimal feel */
a.link-underline,
nav a {
	text-decoration: none;
}

a.link-underline::after,
nav a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 1px;
	background-color: currentColor;
	opacity: 0;
	transform: scaleX(0.5);
	transform-origin: center;
	transition:
		opacity var(--transition-normal),
		transform var(--transition-normal);
}

a.link-underline:hover::after,
nav a:hover::after,
nav a[aria-current="page"]::after {
	opacity: 1;
	transform: scaleX(1);
}

strong,
b {
	font-weight: 600;
}

code,
pre {
	font-family:
		ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
		"Courier New", monospace;
	font-size: 0.95em;
}

hr {
	border: none;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
	margin: var(--space-7) 0;
}

/* ========================================================================
   Accessibility & Motion
   ======================================================================== */

:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 3px;
}

:focus {
	outline: none;
}

@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	html {
		scroll-behavior: auto;
	}
}

/* ========================================================================
   Utilities
   ======================================================================== */

/* Layout */

.container {
	max-width: var(--container-width);
	margin-inline: auto;
	padding-inline: var(--container-padding-x);
}

.section {
	padding-block: var(--space-9);
}

.section--tight {
	padding-block: var(--space-7);
}

.section--wide {
	padding-block: var(--space-10);
}

/* Flex */

.flex {
	display: flex;
}

.inline-flex {
	display: inline-flex;
}

.flex-center {
	display: flex;
	align-items: center;
	justify-content: center;
}

.flex-between {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

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

.flex-wrap {
	flex-wrap: wrap;
}

.gap-xs {
	gap: var(--space-2);
}
.gap-sm {
	gap: var(--space-3);
}
.gap-md {
	gap: var(--space-4);
}
.gap-lg {
	gap: var(--space-6);
}
.gap-xl {
	gap: var(--space-8);
}

/* Grid */

.grid {
	display: grid;
}

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

.grid-3 {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-6);
}

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

/* Text alignment */

.text-center {
	text-align: center;
}
.text-right {
	text-align: right;
}
.text-left {
	text-align: left;
}

/* Spacing helpers (minimal selection to keep it lightweight) */

.mt-0 {
	margin-top: 0 !important;
}
.mb-0 {
	margin-bottom: 0 !important;
}
.mt-sm {
	margin-top: var(--space-3) !important;
}
.mb-sm {
	margin-bottom: var(--space-3) !important;
}
.mt-md {
	margin-top: var(--space-5) !important;
}
.mb-md {
	margin-bottom: var(--space-5) !important;
}
.mt-lg {
	margin-top: var(--space-8) !important;
}
.mb-lg {
	margin-bottom: var(--space-8) !important;
}

.pt-sm {
	padding-top: var(--space-3) !important;
}
.pb-sm {
	padding-bottom: var(--space-3) !important;
}
.pt-md {
	padding-top: var(--space-5) !important;
}
.pb-md {
	padding-bottom: var(--space-5) !important;
}
.pt-lg {
	padding-top: var(--space-8) !important;
}
.pb-lg {
	padding-bottom: var(--space-8) !important;
}

/* Width helpers */

.w-full {
	width: 100%;
}
/* Screen reader only */

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Badges / subtle labels (for BG UI labels like "Ново", "Колекция") */

.badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 10px;
	border-radius: var(--radius-round);
	font-size: var(--font-size-xs);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	background-color: var(--color-primary-soft);
	color: var(--color-primary);
}

/* ========================================================================
   Components
   ======================================================================== */

/* Buttons */

.btn {
	--btn-bg: var(--color-primary);
	--btn-color: #ffffff !important;
	--btn-border: transparent;

	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 22px;
	border-radius: var(--radius-round);
	border: 1px solid var(--btn-border);
	background-color: var(--btn-bg);
	color: var(--btn-color);
	font-size: var(--font-size-sm);
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1;
	transition:
		background-color var(--transition-normal),
		color var(--transition-normal),
		box-shadow var(--transition-normal),
		transform var(--transition-fast);
}

.btn:hover {
	--btn-color: #ffffff !important;

	box-shadow: var(--shadow-medium);
	transform: translateY(-1px);
	color: var(--btn-color);
}

.btn:active {
	box-shadow: var(--shadow-subtle);
	transform: translateY(0);
}

.btn:disabled,
.btn[aria-disabled="true"] {
	opacity: 0.6;
	box-shadow: none;
	transform: none;
}

.btn--ghost {
	--btn-bg: #000;
	--btn-color: var(--color-text);
	--btn-border: rgba(0, 0, 0, 0.1);
}

.btn--ghost:hover {
  color: #000;
	background-color: rgba(255, 255, 255, 0.8);
}

.btn--light {
	--btn-bg: #ffffff;
	--btn-color: var(--color-text);
	--btn-border: transparent;
}

.btn--light:hover {
	background-color: var(--gray-100);
}

.btn--secondary {
	--btn-bg: var(--gray-800);
	--btn-color: #ffffff;
}

.btn--sm {
	padding: 8px 18px;
	font-size: var(--font-size-xs);
}

.btn--lg {
	padding: 12px 26px;
	font-size: var(--font-size-base);
}

/* Inputs & Form fields */

.field-label {
	display: block;
	margin-bottom: 6px;
	font-size: var(--font-size-sm);
	font-weight: 500;
}

.field-description {
	margin-top: 4px;
	font-size: var(--font-size-xs);
	color: var(--color-text-muted);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
input[type="number"],
select,
textarea {
	width: 100%;
	padding: 10px 12px;
	border-radius: var(--radius-md);
	border: 1px solid rgba(0, 0, 0, 0.08);
	background-color: #ffffff;
	color: var(--color-text);
	font-size: var(--font-size-sm);
	line-height: 1.4;
	transition:
		border-color var(--transition-normal),
		box-shadow var(--transition-normal),
		background-color var(--transition-normal);
}

input::placeholder,
textarea::placeholder {
	color: rgba(0, 0, 0, 0.35);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 1px var(--color-primary-soft);
}

textarea {
	min-height: 120px;
	resize: vertical;
}

input[disabled],
select[disabled],
textarea[disabled] {
	background-color: var(--gray-100);
	cursor: not-allowed;
	opacity: 0.8;
}

/* Cards – for product tiles, collections, reviews */

.card {
	position: relative;
	border-radius: var(--radius-lg);
	background-color: var(--color-surface);
	box-shadow: var(--shadow-soft);
	padding: var(--space-5);
	overflow: hidden;
	transition:
		box-shadow var(--transition-normal),
		transform var(--transition-normal),
		background-color var(--transition-normal);
}

.card:hover {
	box-shadow: var(--shadow-medium);
	transform: translateY(-2px);
}

.card--muted {
	background-color: var(--gray-50);
}

.card-header {
	margin-bottom: var(--space-3);
}

.card-title {
	font-family: var(--font-serif);
	font-size: var(--font-size-lg);
	margin-bottom: var(--space-2);
}

.card-subtitle {
	font-size: var(--font-size-sm);
	color: var(--color-text-muted);
}

.card-media {
	margin: -var(--space-5) -var(--space-5) var(--space-4);
	overflow: hidden;
}

.card-media img {
	width: 100%;
	height: auto;
	display: block;
}

.card-footer {
	margin-top: var(--space-4);
}

/* Tag-like pill, useful for filters like "Съдове", "Организация" */

.pill {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	border-radius: var(--radius-round);
	font-size: var(--font-size-xs);
	border: 1px solid rgba(0, 0, 0, 0.06);
	background-color: var(--gray-50);
	color: var(--color-text);
}

/* Hero image treatment – soft rounded corners for kitchen shots */

.hero-image {
	border-radius: var(--radius-xl);
	overflow: hidden;
	box-shadow: var(--shadow-medium);
}

.hero-image img {
	width: 100%;
	height: auto;
	display: block;
}

/* Product price styling */

.price {
	font-family: var(--font-serif);
	font-size: var(--font-size-lg);
	font-weight: 500;
}

.price--old {
	font-size: var(--font-size-sm);
	color: var(--color-text-muted);
	text-decoration: line-through;
	margin-left: 8px;
}

.price--accent {
	color: var(--color-primary);
}

/* Rating stars container – icons handled in markup */

.rating {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: var(--font-size-xs);
	color: var(--color-warning);
}

/* Simple promotional band */

.promo-band {
	background: linear-gradient(90deg, var(--gray-800), var(--color-primary));
	color: #ffffff;
	padding: 10px 0;
	font-size: var(--font-size-sm);
}

.promo-band a {
	color: inherit;
	text-decoration: underline;
}

/* Sticky header helper */

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	backdrop-filter: blur(14px);
	background-color: rgba(245, 241, 234, 0.92);
	border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-block: 10px;
}

/* Footer basic structure */

.site-footer {
	border-top: 1px solid rgba(0, 0, 0, 0.06);
	padding-block: var(--space-7);
	background-color: var(--gray-50);
}

.site-footer small {
	color: var(--color-text-muted);
	font-size: var(--font-size-xs);
}

/* ========================================================================
   End base.css
   ======================================================================== */
