:root {
	--ft-bg: #14150f;
	--ft-panel: #1d1f16;
	--ft-olive: #4b5320;
	--ft-olive-light: #6b7a2e;
	--ft-tan: #c9a876;
	--ft-text: #eee9de;
	--ft-muted: #a8a493;
	--ft-border: #35362a;
	--ft-radius: 6px;
}

.ft-catalog,
.ft-checkout,
.ft-product,
.ft-contact-form {
	color: var(--ft-text);
	font-family: inherit;
}

/* Catalog grid */
.ft-catalog {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 24px;
	margin: 24px 0;
}

.ft-card {
	background: var(--ft-panel);
	border: 1px solid var(--ft-border);
	border-radius: var(--ft-radius);
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	transition: transform .15s ease, border-color .15s ease;
}
.ft-card:hover {
	border-color: var(--ft-olive-light);
	transform: translateY(-2px);
}

.ft-card__link {
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ft-card__img {
	aspect-ratio: 1 / 1;
	background: #0e0f0a;
	border-radius: var(--ft-radius);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ft-card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ft-card__title {
	font-size: 16px;
	margin: 0;
	line-height: 1.3;
}

.ft-card__price {
	display: flex;
	align-items: baseline;
	gap: 8px;
}
.ft-card__old-price {
	text-decoration: line-through;
	color: var(--ft-muted);
	font-size: 14px;
}
.ft-card__current-price {
	font-size: 18px;
	font-weight: 700;
	color: var(--ft-tan);
}

.ft-btn {
	background: var(--ft-olive);
	color: #fff;
	border: none;
	border-radius: var(--ft-radius);
	padding: 10px 16px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s ease;
}
.ft-btn:hover {
	background: var(--ft-olive-light);
}
.ft-btn:disabled {
	opacity: .5;
	cursor: not-allowed;
}
.ft-btn--primary {
	width: 100%;
	padding: 14px 16px;
	font-size: 16px;
}

.ft-empty {
	color: var(--ft-muted);
}

/* Single product */
.ft-product {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 32px;
	margin: 24px 0 48px;
}
.ft-product__main-img {
	width: 100%;
	border-radius: var(--ft-radius);
	display: block;
}
.ft-product__thumbs {
	display: flex;
	gap: 8px;
	margin-top: 8px;
	flex-wrap: wrap;
}
.ft-product__thumb {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 4px;
	cursor: pointer;
	border: 1px solid var(--ft-border);
}
.ft-product__thumb:hover {
	border-color: var(--ft-tan);
}
.ft-product__price {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 16px;
	font-size: 20px;
}
.ft-product__certs {
	margin-top: 28px;
	border-top: 1px solid var(--ft-border);
	padding-top: 16px;
}
.ft-product__certs h4 {
	margin: 0 0 8px;
	font-size: 15px;
	color: var(--ft-muted);
}
.ft-product__certs ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.ft-product__certs a {
	color: var(--ft-tan);
	text-decoration: none;
}
.ft-product__certs a:hover {
	text-decoration: underline;
}

/* Cart badge (put a link with class ft-cart-link + span.ft-cart-badge in your menu) */
.ft-cart-badge {
	display: inline-block;
	background: var(--ft-tan);
	color: #14150f;
	border-radius: 50%;
	min-width: 18px;
	height: 18px;
	line-height: 18px;
	text-align: center;
	font-size: 11px;
	font-weight: 700;
	margin-left: 4px;
}

/* Checkout */
.ft-checkout {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 40px;
	margin: 24px 0 48px;
	align-items: start;
}
.ft-cart-list {
	list-style: none;
	padding: 0;
	margin: 0 0 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.ft-cart-row {
	display: grid;
	grid-template-columns: 56px 1fr auto auto auto;
	gap: 12px;
	align-items: center;
	background: var(--ft-panel);
	border: 1px solid var(--ft-border);
	border-radius: var(--ft-radius);
	padding: 10px;
}
.ft-cart-row__img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 4px;
}
.ft-cart-row__qty {
	display: flex;
	align-items: center;
	gap: 4px;
}
.ft-qty-btn {
	width: 26px;
	height: 26px;
	border-radius: 4px;
	border: 1px solid var(--ft-border);
	background: transparent;
	color: var(--ft-text);
	cursor: pointer;
}
.ft-qty-input {
	width: 40px;
	text-align: center;
	background: #0e0f0a;
	color: var(--ft-text);
	border: 1px solid var(--ft-border);
	border-radius: 4px;
	padding: 4px;
}
.ft-cart-row__remove {
	background: transparent;
	border: none;
	color: var(--ft-muted);
	font-size: 18px;
	cursor: pointer;
}
.ft-cart-row__remove:hover {
	color: #e05a4e;
}
.ft-cart-total {
	font-size: 18px;
	font-weight: 700;
	border-top: 1px solid var(--ft-border);
	padding-top: 12px;
}

/* Forms */
.ft-form-row {
	margin: 0 0 14px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.ft-form-row label {
	font-size: 13px;
	color: var(--ft-muted);
}
.ft-form-row input,
.ft-form-row textarea {
	background: #0e0f0a;
	border: 1px solid var(--ft-border);
	border-radius: var(--ft-radius);
	padding: 10px 12px;
	color: var(--ft-text);
	font-size: 15px;
}
.ft-form-row input:focus,
.ft-form-row textarea:focus {
	outline: none;
	border-color: var(--ft-tan);
}
.ft-form-status {
	min-height: 20px;
	font-size: 14px;
}
.ft-form-status--ok {
	color: #7bbf6b;
}
.ft-form-status--error {
	color: #e05a4e;
}

/* Mobile */
@media (max-width: 780px) {
	.ft-product {
		grid-template-columns: 1fr;
	}
	.ft-checkout {
		grid-template-columns: 1fr;
	}
	.ft-catalog {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 14px;
	}
	.ft-card {
		padding: 10px;
	}
	.ft-cart-row {
		grid-template-columns: 44px 1fr auto;
		row-gap: 6px;
	}
	.ft-cart-row__price {
		grid-column: 2 / 3;
	}
}

/* --- спливаюче вікно успішної відправки форми --- */
.ft-success-modal {
	position: fixed;
	inset: 0;
	z-index: 400;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
.ft-success-modal.is-open {
	display: flex;
}
.ft-success-modal__overlay {
	position: fixed;
	inset: 0;
	background: rgba(15,17,12,.82);
	backdrop-filter: blur(6px);
}
.ft-success-modal__card {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 420px;
	background: #F5F3EC;
	color: #1E2118;
	border-radius: 4px;
	padding: 44px 34px 38px;
	text-align: center;
	box-shadow: 0 40px 100px rgba(0,0,0,.6);
}
.ft-success-modal__close {
	position: absolute;
	right: 14px;
	top: 14px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	background: rgba(30,33,24,.08);
	color: #1E2118;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	transform: rotate(45deg);
}
.ft-success-modal__close:hover {
	background: rgba(30,33,24,.16);
}
.ft-success-modal__icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background: #8B9A6B;
	color: #1E2118;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	font-weight: 700;
}
.ft-success-modal__title {
	font-family: 'Oswald', sans-serif;
	font-weight: 700;
	font-size: 22px;
	text-transform: uppercase;
	margin: 0 0 12px;
}
.ft-success-modal__text {
	font-size: 15px;
	line-height: 1.6;
	color: rgba(30,33,24,.72);
	margin: 0;
}