/* ===== CurvCraft — Shop / Archive (Product Grid) brand styling =====
   Applies to: body.archive.product-archive, bodywoocommerce-shop, body.tax-product_cat
   Fonts & colors defined in global.css */

/* ---------- Page background ---------- */
body.archive.product-archive,
body.woocommerce-shop,
body.tax-product_cat {
	background: var(--cc-paper, #fffcf9);
	color: var(--cc-ink, #161e22);
	font-family: var(--cc-sans, 'Helvetica Now', 'Helvetica Neue', Helvetica, Arial, sans-serif);
}

/* ---------- Page heading / title ---------- */
body.archive .woocommerce-products-header,
body.archive .elementor-widget-woocommerce-products-archive-title h1,
body.woocommerce-page h1 {
	font-family: var(--cc-serif, 'Cormorant Garamond', Georgia, serif);
	font-size: clamp(1.8rem, 3vw, 2.6rem);
	font-weight: 400;
	letter-spacing: -0.02em;
	color: var(--cc-ink, #161e22);
	margin: 0 0 8px;
}

/* ---------- Breadcrumb ---------- */
body.archive .woocommerce-breadcrumb,
body.woocommerce-page .woocommerce-breadcrumb {
	font-size: 0.68rem;
	letter-spacing: 0.06em;
	margin-bottom: 18px;
}
body.archive .woocommerce-breadcrumb a,
body.woocommerce-page .woocommerce-breadcrumb a {
	color: var(--cc-muted, #6f757a);
	text-decoration: none;
	text-transform: uppercase;
}
body.archive .woocommerce-breadcrumb a:hover,
body.woocommerce-page .woocommerce-breadcrumb a:hover {
	color: var(--cc-ink, #161e22);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- Result count + ordering ---------- */
body.archive .woocommerce-result-count,
body.archive .woocommerce-ordering {
	font-family: var(--cc-sans, 'Helvetica Now', sans-serif);
}
body.archive .woocommerce-result-count {
	font-size: 0.72rem;
	color: var(--cc-muted, #6f757a);
	letter-spacing: 0.04em;
}
body.archive .woocommerce-ordering select {
	font-family: var(--cc-sans, 'Helvetica Now', sans-serif);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--cc-ink, #161e22);
	border: 1px solid var(--cc-line, #e4ddd6);
	border-radius: 6px;
	padding: 8px 32px 8px 14px;
	background: #fff;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23161e22' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	cursor: pointer;
}

/* ---------- Product grid ---------- */
body.archive ul.products {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}
@media (max-width: 1024px) {
	body.archive ul.products {
		grid-template-columns: repeat(2, 1fr);
		gap: 18px;
	}
}
@media (max-width: 600px) {
	body.archive ul.products {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}

/* ---------- Product card ---------- */
body.archive ul.products li.product {
	background: #fff;
	border: 1px solid var(--cc-line, #e4ddd6);
	border-radius: 10px;
	overflow: hidden;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
	padding: 0;
	margin: 0;
	width: 100%;
}
body.archive ul.products li.product:hover {
	box-shadow: 0 8px 32px rgba(22, 30, 34, 0.08);
	transform: translateY(-3px);
}

/* Product image */
body.archive ul.products li.product a img {
	aspect-ratio: 4 / 4.8;
	object-fit: cover;
	width: 100%;
	mix-blend-mode: multiply;
	transition: transform 0.5s ease;
}
body.archive ul.products li.product:hover a img {
	transform: scale(1.03);
}

/* Product title */
body.archive ul.products li.product .woocommerce-loop-product__title,
body.archive ul.products li.product h3 {
	font-family: var(--cc-serif, 'Cormorant Garamond', Georgia, serif);
	font-size: clamp(0.88rem, 1.2vw, 1.05rem);
	font-weight: 400;
	line-height: 1.3;
	color: var(--cc-ink, #161e22);
	margin: 12px 14px 6px;
	padding: 0;
	border: none;
	text-align: left;
}

/* Price */
body.archive ul.products li.product .price {
	font-family: var(--cc-sans, 'Helvetica Now', sans-serif);
	font-size: 0.88rem;
	font-weight: 650;
	color: var(--cc-ink, #161e22);
	margin: 0 14px 4px;
}
body.archive ul.products li.product .price del {
	color: var(--cc-muted, #6f757a);
	font-weight: 400;
	margin-right: 6px;
}
body.archive ul.products li.product .price ins {
	text-decoration: none;
	color: #9b3d2f;
	font-weight: 650;
}

/* Star rating */
body.archive ul.products li.product .star-rating {
	font-size: 0.72rem;
	color: var(--cc-sand, #edc9af);
	margin: 4px 14px 0;
}

/* Add to cart button */
body.archive ul.products li.product .button,
body.archive ul.products li.product .add_to_cart_button {
	font-family: var(--cc-sans, 'Helvetica Now', sans-serif);
	font-size: 0.62rem !important;
	font-weight: 650;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	border-radius: 6px !important;
	min-height: 40px;
	padding: 0 18px !important;
	margin: 8px 14px 14px;
	display: inline-block;
	background: var(--cc-ink, #161e22) !important;
	border: 1px solid var(--cc-ink, #161e22) !important;
	color: #fff !important;
	transition: background 0.25s ease, transform 0.25s ease;
}
body.archive ul.products li.product .button:hover,
body.archive ul.products li.product .add_to_cart_button:hover {
	background: var(--cc-ink-soft, #393f45) !important;
	border-color: var(--cc-ink-soft, #393f45) !important;
	transform: translateY(-1px);
}

/* Variant swatches on shop grid */
body.archive ul.products li.product .cfvsw-swatches-wrapper {
	padding: 0 14px 8px;
}
body.archive ul.products li.product .cfvsw-swatch-item {
	border-radius: 50%;
	transition: box-shadow 0.2s ease;
}
body.archive ul.products li.product .cfvsw-swatch-item.cfvsw-active {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--cc-ink, #161e22);
}

/* ---------- Pagination ---------- */
body.archive .woocommerce-pagination {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--cc-line, #e4ddd6);
	text-align: center;
}
body.archive .woocommerce-pagination ul {
	border: none;
	display: flex;
	justify-content: center;
	gap: 6px;
	padding: 0;
	margin: 0;
	list-style: none;
}
body.archive .woocommerce-pagination ul li {
	border: none;
	margin: 0;
	padding: 0;
}
body.archive .woocommerce-pagination ul li a,
body.archive .woocommerce-pagination ul li span {
	font-family: var(--cc-sans, 'Helvetica Now', sans-serif);
	font-size: 0.72rem;
	font-weight: 650;
	letter-spacing: 0.06em;
	border: 1px solid var(--cc-line, #e4ddd6);
	border-radius: 6px;
	min-width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: all 0.2s ease;
}
body.archive .woocommerce-pagination ul li a {
	background: #fff;
	color: var(--cc-ink, #161e22);
}
body.archive .woocommerce-pagination ul li a:hover {
	background: var(--cc-ink, #161e22);
	border-color: var(--cc-ink, #161e22);
	color: #fff;
}
body.archive .woocommerce-pagination ul li span.current {
	background: var(--cc-ink, #161e22);
	border-color: var(--cc-ink, #161e22);
	color: #fff;
}

/* ---------- Category page header ---------- */
body.archive .woocommerce-products-header__title {
	font-family: var(--cc-serif, 'Cormorant Garamond', Georgia, serif);
	font-size: clamp(1.6rem, 2.5vw, 2.2rem);
	font-weight: 400;
	color: var(--cc-ink, #161e22);
}
body.archive .woocommerce-products-header__term-description {
	font-size: 0.88rem;
	color: var(--cc-ink-soft, #393f45);
	line-height: 1.65;
	margin: 8px 0 20px;
	max-width: 600px;
}

/* ---------- No products found ---------- */
body.archive .woocommerce-info.no-results {
	background: var(--cc-ivory, #f6f1eb);
	border: 1px solid var(--cc-line, #e4ddd6);
	border-radius: 10px;
	padding: 40px 28px;
	text-align: center;
	font-size: 0.92rem;
	color: var(--cc-muted, #6f757a);
}

/* ---------- "Look as beautiful as you feel" tagline (footer widget on shop) ---------- */
body.archive .elementor-section .elementor-heading-title {
	font-family: var(--cc-serif, 'Cormorant Garamond', Georgia, serif);
}
