/* =========================================================================
   Shop — Figma Shop — Desktop 233:2236 · Mobile 388:4378
   Scoped to body.post-type-archive-product / body.woocommerce-shop
   Header & footer intentionally untouched.
   ========================================================================= */

body.woocommerce-shop .site-main.ots-shop,
body.post-type-archive-product .site-main.ots-shop {
	background: #fafaf6;
}

body.woocommerce-shop .ots-shop__inner,
body.post-type-archive-product .ots-shop__inner {
	max-width: 1440px;
	width: 100%;
	margin-inline: auto;
	box-sizing: border-box;
}

.woocommerce-info::before {
	color: #a03138;
	background: #ffffff;
}

/* ---- Header -------------------------------------------------------------- */
body.woocommerce-shop .ots-shop__header,
body.post-type-archive-product .ots-shop__header {
	padding: 48px 48px 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

body.woocommerce-shop .ots-shop__title,
body.post-type-archive-product .ots-shop__title {
	margin: 0;
	color: #1a1816;
	font-family: var(--font-display);
	font-size: 61px;
	font-weight: 500;
	letter-spacing: -0.03em;
	line-height: 1;
}

body.woocommerce-shop .ots-shop__lede,
body.post-type-archive-product .ots-shop__lede {
	margin: 0;
	max-width: 866px;
	color: #5c544a;
	font-family: var(--font-sans);
	font-size: 21px;
	font-weight: 400;
	line-height: 1.3;
}

/* ---- Grid ---------------------------------------------------------------- */
body.woocommerce-shop .ots-shop__grid,
body.post-type-archive-product .ots-shop__grid {
	list-style: none;
	margin: 0;
	padding: 24px 48px 48px;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px 24px;
	row-gap: 16px;
}

/* ---- Card ---------------------------------------------------------------- */
body.woocommerce-shop .ots-shop-card,
body.post-type-archive-product .ots-shop-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 24px;
	min-height: 310px;
	padding: 24px;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid #e7e2d7;
	border-radius: 14px;
}

body.woocommerce-shop .ots-shop-card__content,
body.post-type-archive-product .ots-shop-card__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	flex: 1 1 auto;
}

body.woocommerce-shop .ots-shop-card__icon,
body.post-type-archive-product .ots-shop-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 10px;
	background: #f4f1f1;
	color: #1a1816;
	flex-shrink: 0;
	overflow: hidden;
}

body.woocommerce-shop .ots-shop-card__thumb,
body.post-type-archive-product .ots-shop-card__thumb {
	width: 52px;
	height: 52px;
	object-fit: cover;
	display: block;
}

body.woocommerce-shop .ots-shop-card__title,
body.post-type-archive-product .ots-shop-card__title {
	margin: 0;
	color: #1a1816;
	font-family: var(--font-display);
	font-size: 27px;
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1;
}

body.woocommerce-shop .ots-shop-card__desc,
body.post-type-archive-product .ots-shop-card__desc {
	margin: 0;
	color: #5c544a;
	font-family: var(--font-sans);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
}

body.woocommerce-shop .ots-shop-card__price,
body.post-type-archive-product .ots-shop-card__price {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px;
	color: #a03038;
	font-family: var(--font-mono);
	font-size: 16px;
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

body.woocommerce-shop .ots-shop-card__price .amount,
body.post-type-archive-product .ots-shop-card__price .amount,
body.woocommerce-shop .ots-shop-card__price .woocommerce-Price-amount,
body.post-type-archive-product .ots-shop-card__price .woocommerce-Price-amount {
	color: #a03038;
	font-family: var(--font-mono);
	font-size: 16px;
	font-weight: 500;
}

body.woocommerce-shop .ots-shop-card__price del,
body.post-type-archive-product .ots-shop-card__price del {
	color: #6e665a;
	font-size: 12px;
	font-weight: 400;
}

body.woocommerce-shop .ots-shop-card__price del .amount,
body.post-type-archive-product .ots-shop-card__price del .amount {
	color: inherit;
	font-size: inherit;
}

body.woocommerce-shop .ots-shop-card__cta,
body.post-type-archive-product .ots-shop-card__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 45px;
	padding: 13px 24px;
	box-sizing: border-box;
	border-radius: 6px;
	border: 1px solid #e7e2d7;
	background: #fff;
	color: #1a1816;
	font-family: var(--font-sans);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body.woocommerce-shop .ots-shop-card__cta:hover,
body.post-type-archive-product .ots-shop-card__cta:hover {
	background: #fafaf6;
	border-color: #d9d2c4;
	color: #1a1816;
	text-decoration: none;
}

/* ---- Note ---------------------------------------------------------------- */
body.woocommerce-shop .ots-shop__note,
body.post-type-archive-product .ots-shop__note {
	margin: 0 48px 48px;
	padding: 16px 24px;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	background: #f4f1f1;
	border-radius: 10px;
	box-sizing: border-box;
}

body.woocommerce-shop .ots-shop__note-icon,
body.post-type-archive-product .ots-shop__note-icon {
	display: inline-flex;
	flex-shrink: 0;
	margin-top: 4px;
	color: #5c544a;
}

body.woocommerce-shop .ots-shop__note p,
body.post-type-archive-product .ots-shop__note p {
	margin: 0;
	color: #5c544a;
	font-family: var(--font-sans);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
}

/* ---- Mobile (Figma Shop — Mobile) ---------------------------------------- */
@media (max-width: 900px) {
	body.woocommerce-shop .ots-shop__header,
	body.post-type-archive-product .ots-shop__header {
		padding: 40px 24px 0;
		gap: 12px;
	}

	body.woocommerce-shop .ots-shop__title,
	body.post-type-archive-product .ots-shop__title {
		font-size: 40px;
	}

	body.woocommerce-shop .ots-shop__lede,
	body.post-type-archive-product .ots-shop__lede {
		font-size: 16px;
		line-height: 1.5;
	}

	body.woocommerce-shop .ots-shop__grid,
	body.post-type-archive-product .ots-shop__grid {
		grid-template-columns: 1fr;
		padding: 24px 24px 32px;
		gap: 16px;
	}

	body.woocommerce-shop .ots-shop-card,
	body.post-type-archive-product .ots-shop-card {
		min-height: 0;
	}

	body.woocommerce-shop .ots-shop-card__title,
	body.post-type-archive-product .ots-shop-card__title {
		font-size: 24px;
	}

	body.woocommerce-shop .ots-shop__note,
	body.post-type-archive-product .ots-shop__note {
		margin: 0 24px 40px;
		padding: 16px;
		flex-direction: row;
	}

	body.woocommerce-shop .ots-shop__note p,
	body.post-type-archive-product .ots-shop__note p {
		font-size: 14px;
	}
}

@media (min-width: 901px) and (max-width: 1100px) {
	body.woocommerce-shop .ots-shop__grid,
	body.post-type-archive-product .ots-shop__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding-left: 32px;
		padding-right: 32px;
	}

	body.woocommerce-shop .ots-shop__header,
	body.post-type-archive-product .ots-shop__header,
	body.woocommerce-shop .ots-shop__note,
	body.post-type-archive-product .ots-shop__note {
		padding-left: 32px;
		padding-right: 32px;
	}

	body.woocommerce-shop .ots-shop__note,
	body.post-type-archive-product .ots-shop__note {
		margin-left: 32px;
		margin-right: 32px;
		padding: 16px 24px;
	}
}
