/* ============================================================
   ARTIS Petit — Product grid & single product
   Follows the ARTIS design system:
   Garet (headings) · Questrial/Inter (body) · Montserrat (labels)
   Ink: #201b18 · Muted: #a1957d · Body: #625d5c · Cream: #faf8f1
   Accent: #db321b · Border: rgba(32,27,24,.12)
   ============================================================ */

/* ---- Section wrapper ---- */
.ar-petit-shop {
	padding: clamp(72px, 10vw, 120px) 0;
	background: #fff;
}

/* ---- Category filter tabs ---- */
.ar-petit-filters {
	display: flex;
	align-items: center;
	gap: 0;
	flex-wrap: nowrap;
	overflow-x: auto;
	scrollbar-width: none;
	border-bottom: 1px solid rgba(32, 27, 24, .12);
	margin: 0 auto clamp(40px, 6vw, 64px);
	max-width: 1280px;
	padding: 0 clamp(24px, 4vw, 56px);
}
.ar-petit-filters::-webkit-scrollbar { display: none; }

.ar-petit-filter-btn {
	font-family: "Inter", system-ui, sans-serif;
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #a1957d;
	text-decoration: none;
	padding: 16px 20px;
	white-space: nowrap;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	transition: color 0.2s ease, border-color 0.2s ease;
}
.ar-petit-filter-btn:hover {
	color: #201b18;
}
.ar-petit-filter-btn.is-active {
	color: #201b18;
	border-bottom-color: #201b18;
}

/* ---- Product grid ---- */
.ar-petit-grid {
	display: grid;
	grid-template-columns: repeat(var(--ap-columns, 3), 1fr);
	gap: clamp(32px, 4vw, 56px) clamp(20px, 2.5vw, 32px);
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 clamp(24px, 4vw, 56px);
}
@media (max-width: 1024px) {
	.ar-petit-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.ar-petit-grid { grid-template-columns: 1fr; }
}

/* ---- Product card ---- */
.ar-petit-product {
	display: flex;
	flex-direction: column;
}
.ar-petit-product__media-link {
	display: block;
	text-decoration: none;
}
.ar-petit-product__media {
	position: relative;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: #f5f2ec;
}
.ar-petit-product__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 700ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.ar-petit-product:hover .ar-petit-product__media img {
	transform: scale(1.04);
}
.ar-petit-product.is-sold .ar-petit-product__media img {
	filter: grayscale(30%);
}

/* Sold overlay badge */
.ar-petit-product__sold-badge {
	position: absolute;
	top: 16px;
	left: 16px;
	font-family: "Inter", system-ui, sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #fff;
	background: rgba(32, 27, 24, 0.75);
	padding: 4px 10px;
}

/* ---- Card info ---- */
.ar-petit-product__info {
	padding: 18px 0 0;
	border-top: 1px solid rgba(32, 27, 24, .12);
	margin-top: 0;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.ar-petit-product__cat {
	display: inline-block;
	font-family: "Montserrat", system-ui, sans-serif;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #a1957d;
	margin-bottom: 10px;
}

:where(.ar-petit-product__title) {
	font-family: var(--ar-font-head, "Garet", sans-serif);
	font-size: clamp(16px, 1.5vw, 20px);
	font-weight: 500;
	line-height: 1.25;
	color: #201b18;
	margin: 0 0 6px;
}
:where(.ar-petit-product__title a) {
	text-decoration: none;
	color: inherit;
	transition: color 0.2s ease;
}
:where(.ar-petit-product__title a:hover) {
	color: #db321b;
}

.ar-petit-product__artist {
	font-family: "Questrial", system-ui, sans-serif;
	font-size: 13px;
	color: #a1957d;
	margin: 0 0 4px;
}

.ar-petit-product__edition {
	font-family: "Inter", system-ui, sans-serif;
	font-size: 12px;
	color: #a1957d;
	margin: 0 0 14px;
	font-style: italic;
}

.ar-petit-product__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 14px;
}

.ar-petit-product__price {
	font-family: "Montserrat", system-ui, sans-serif;
	font-size: 15px;
	font-weight: 600;
	color: #201b18;
}
.ar-petit-product__price .woocommerce-Price-currencySymbol { font-weight: 400; }

.ar-petit-product__btn {
	font-family: "Inter", system-ui, sans-serif;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.08em;
	color: #201b18;
	text-decoration: none;
	border-bottom: 1px solid rgba(32, 27, 24, .4);
	padding-bottom: 1px;
	transition: color 0.2s ease, border-color 0.2s ease;
	white-space: nowrap;
}
.ar-petit-product__btn:hover {
	color: #db321b;
	border-color: #db321b;
}

/* Empty state */
.ar-petit-empty {
	font-family: "Questrial", system-ui, sans-serif;
	font-size: 16px;
	color: #a1957d;
	text-align: center;
	padding: 64px 24px;
	max-width: 480px;
	margin: 0 auto;
}

/* ============================================================
   Single product — ARTIS style overrides
   ============================================================ */
body.single-product #page,
body.single-product .woocommerce {
	background: #fff;
}

body.single-product .woocommerce-breadcrumb {
	font-family: "Inter", system-ui, sans-serif;
	font-size: 12px;
	letter-spacing: 0.08em;
	color: #a1957d;
	max-width: 1280px;
	margin: 32px auto 0;
	padding: 0 clamp(24px, 4vw, 56px);
}
body.single-product .woocommerce-breadcrumb a { color: inherit; text-decoration: none; }
body.single-product .woocommerce-breadcrumb a:hover { color: #201b18; }

/* Product layout wrapper */
body.single-product div.product {
	max-width: 1280px;
	margin: 0 auto;
	padding: clamp(40px, 6vw, 80px) clamp(24px, 4vw, 56px);
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: auto;
	gap: clamp(40px, 6vw, 80px);
	align-items: start;
}
@media (max-width: 768px) {
	body.single-product div.product {
		grid-template-columns: 1fr;
	}
}

/* Product gallery — left column */
body.single-product div.product .woocommerce-product-gallery {
	grid-column: 1;
	grid-row: 1;
}
body.single-product .woocommerce-product-gallery__image img {
	width: 100%;
	height: auto;
	display: block;
}

/* Product summary — right column */
body.single-product div.product .summary {
	grid-column: 2;
	grid-row: 1;
}
@media (max-width: 768px) {
	body.single-product div.product .summary { grid-column: 1; }
}

/* Product title */
body.single-product .product_title {
	font-family: var(--ar-font-head, "Garet", sans-serif) !important;
	font-size: clamp(1.8rem, 4vw, 3rem) !important;
	font-weight: 400 !important;
	line-height: 1.1 !important;
	color: #201b18 !important;
	margin: 0 0 20px !important;
}

/* Product price */
body.single-product .woocommerce-Price-amount {
	font-family: "Montserrat", system-ui, sans-serif !important;
	font-size: 22px !important;
	font-weight: 600 !important;
	color: #201b18 !important;
}
:where(body.single-product p.price) {
	margin: 0 0 24px !important;
	border-bottom: 1px solid rgba(32,27,24,.1);
	padding-bottom: 24px;
}

/* Short description */
body.single-product .woocommerce-product-details__short-description {
	font-family: "Questrial", system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.7;
	color: #625d5c;
	margin-bottom: 28px;
}

/* Add to cart button */
body.single-product .single_add_to_cart_button,
body.single-product button[name="add-to-cart"] {
	background: #201b18 !important;
	color: #fff !important;
	font-family: "Montserrat", system-ui, sans-serif !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	letter-spacing: 0.15em !important;
	text-transform: uppercase !important;
	border: none !important;
	border-radius: 0 !important;
	padding: 16px 36px !important;
	cursor: pointer;
	transition: background 0.2s ease !important;
	width: 100% !important;
}
body.single-product .single_add_to_cart_button:hover {
	background: #db321b !important;
}

/* Category & tags */
body.single-product .posted_in,
body.single-product .tagged_as {
	font-family: "Inter", system-ui, sans-serif;
	font-size: 12px;
	color: #a1957d;
	display: block;
	margin-top: 16px;
}
body.single-product .posted_in a,
body.single-product .tagged_as a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid rgba(161,149,125,.4);
}

/* Product tabs */
body.single-product .woocommerce-tabs .tabs li a {
	font-family: "Inter", system-ui, sans-serif;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #a1957d;
	text-decoration: none;
}
body.single-product .woocommerce-tabs .tabs li.active a { color: #201b18; }

/* Related products */
:where(body.single-product .related h2),
:where(body.single-product .upsells h2) {
	font-family: var(--ar-font-head, "Garet", sans-serif) !important;
	font-size: 1.5rem !important;
	font-weight: 400 !important;
	color: #201b18 !important;
	margin-bottom: 32px !important;
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
	.ar-petit-product__media img { transition: none; }
}

/* ---- Category header (SEO: visible heading for filtered pages) ---- */
.ar-petit-cat-header {
	max-width: 1280px;
	margin: 0 auto clamp(32px, 4vw, 48px);
	padding: 0 clamp(24px, 4vw, 56px);
}
.ar-petit-cat-title {
	font-family: var(--ar-font-head, 'Garet', sans-serif);
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	font-weight: 400;
	color: #201b18;
	margin: 0 0 8px;
}
.ar-petit-cat-desc {
	font-family: 'Questrial', system-ui, sans-serif;
	font-size: 16px;
	color: #625d5c;
	margin: 0;
	line-height: 1.6;
}

/* ---- Product category archive: bottom padding before footer ---- */
body.tax-product_cat #brx-content {
	padding-bottom: 80px;
}
