/* =============================================================================
   Stephen Wiltshire Art — Gallery WooCommerce Styles
   Scope: .tax-product_cat (archives) + .single-product (product pages)
   ============================================================================= */

/* =============================================================================
   DESIGN TOKENS
   ============================================================================= */

:root {
	--sw-black:       #000000;
	--sw-white:       #ffffff;
	--sw-grey-light:  #f7f7f7;
	--sw-grey-line:   #e0e0e0;
	--sw-grey-mid:    #888888;
	--sw-grey-dark:   #333333;
	--sw-font-serif:  "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--sw-font-sans:   "Montserrat", "Helvetica Neue", Arial, sans-serif;
	--sw-transition:  0.32s ease;
	--sw-max-content: 1380px;
}

/* =============================================================================
   GLOBAL OVERRIDES (artwork pages only)
   Suppress default WooCommerce chrome we don't want
   ============================================================================= */

.tax-product_cat .woocommerce-result-count,
.tax-product_cat .woocommerce-ordering,
.tax-product_cat .woocommerce-breadcrumb,
.single-product .woocommerce-breadcrumb,
.single-product .product_meta,
.single-product .woocommerce-product-rating {
	display: none !important;
}

/* =============================================================================
   ARCHIVE — GALLERY WALL
   ============================================================================= */

/* ---- Editorial Header ---- */
.sw-archive-header {
	text-align: center;
	padding: 60px 24px 48px;
	border-bottom: 1px solid var(--sw-grey-line);
	margin-bottom: 56px;
}

.sw-archive-title {
	font-family: var(--sw-font-serif) !important;
	font-size: clamp(2rem, 4vw, 3.2rem) !important;
	font-weight: 300 !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
	color: var(--sw-black) !important;
	margin: 0 0 20px !important;
}

.sw-archive-desc {
	font-family: var(--sw-font-serif);
	font-size: 1.125rem;
	font-style: italic;
	color: var(--sw-grey-dark);
	max-width: 640px;
	margin: 0 auto;
	line-height: 1.75;
}

.sw-archive-desc p {
	margin: 0;
}

/* ---- Product Grid ---- */
.tax-product_cat ul.products,
.tax-product_cat .woocommerce ul.products {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 48px 32px !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	float: none !important;
	width: 100% !important;
}

@media ( max-width: 980px ) {
	.tax-product_cat ul.products,
	.tax-product_cat .woocommerce ul.products {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 32px 20px !important;
	}
}

@media ( max-width: 640px ) {
	.tax-product_cat ul.products,
	.tax-product_cat .woocommerce ul.products {
		grid-template-columns: 1fr !important;
		gap: 40px !important;
	}
}

/* ---- Product Items ---- */
.tax-product_cat ul.products li.product {
	position: relative !important;
	overflow: hidden !important;
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	background: var(--sw-white) !important;
}

/* Product image: consistent aspect ratio */
.tax-product_cat ul.products li.product a img,
.tax-product_cat ul.products li.product .woocommerce-loop-product__image img {
	display: block !important;
	width: 100% !important;
	aspect-ratio: 4 / 3 !important;
	object-fit: cover !important;
	object-position: center !important;
	transition: transform var(--sw-transition) !important;
	border-radius: 0 !important;
}

.tax-product_cat ul.products li.product:hover a img {
	transform: scale(1.025) !important;
}

/* Hide default title + price — JS re-renders them in overlay */
.tax-product_cat ul.products li.product .woocommerce-loop-product__title,
.tax-product_cat ul.products li.product .price {
	/* JS moves these; we hide the originals after JS runs */
}

/* Before JS runs, show them minimally */
.tax-product_cat ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--sw-font-serif) !important;
	font-size: 1rem !important;
	font-weight: 400 !important;
	color: var(--sw-black) !important;
	padding: 14px 0 4px !important;
	margin: 0 !important;
	letter-spacing: 0.02em !important;
}

.tax-product_cat ul.products li.product .price {
	font-family: var(--sw-font-serif) !important;
	font-size: 0.9rem !important;
	color: var(--sw-grey-mid) !important;
	margin: 0 0 12px !important;
}

/* ---- Hover Overlay (injected by JS) ---- */
.sw-hover-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 20px 20px 16px;
	background: linear-gradient( to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.3) 50%, transparent 100% );
	opacity: 0;
	transition: opacity var(--sw-transition);
	pointer-events: none;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.tax-product_cat ul.products li.product:hover .sw-hover-overlay {
	opacity: 1;
}

.sw-hover-title {
	display: block;
	font-family: var(--sw-font-serif);
	font-size: 1rem;
	font-weight: 400;
	color: var(--sw-white);
	letter-spacing: 0.03em;
	margin-bottom: 4px;
	line-height: 1.3;
}

.sw-hover-price {
	display: block;
	font-family: var(--sw-font-serif);
	font-size: 0.85rem;
	color: rgba(255,255,255,0.75);
	letter-spacing: 0.05em;
}

.sw-hover-price .woocommerce-Price-amount {
	color: rgba(255,255,255,0.75) !important;
}

/* ---- No Add to Cart button on archive (Divi already removes it; belt+braces) ---- */
.tax-product_cat ul.products li.product .button.add_to_cart_button,
.tax-product_cat ul.products li.product .added_to_cart {
	display: none !important;
}

/* ---- Archive Pagination ---- */
.tax-product_cat .woocommerce-pagination {
	text-align: center;
	padding: 56px 0 32px;
	border-top: 1px solid var(--sw-grey-line);
	margin-top: 56px;
}

.tax-product_cat .woocommerce-pagination ul {
	display: inline-flex;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tax-product_cat .woocommerce-pagination ul .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	font-family: var(--sw-font-serif);
	font-size: 0.95rem;
	letter-spacing: 0.05em;
	color: var(--sw-grey-mid);
	border-bottom: 1px solid transparent;
	transition: color var(--sw-transition), border-color var(--sw-transition);
}

.tax-product_cat .woocommerce-pagination ul .page-numbers:hover {
	color: var(--sw-black);
	border-bottom-color: var(--sw-black);
}

.tax-product_cat .woocommerce-pagination ul .page-numbers.current {
	color: var(--sw-black);
	border-bottom-color: var(--sw-black);
	font-weight: 600;
}

/* =============================================================================
   SINGLE PRODUCT — VIEWING ROOM
   ============================================================================= */

/* ---- Main layout: 60/40 grid ---- */
.single-product div.product {
	display: grid !important;
	grid-template-columns: 1fr 440px !important;
	grid-template-rows: auto !important;
	column-gap: 64px !important;
	align-items: start !important;
	max-width: var(--sw-max-content) !important;
	padding: 48px 24px 0 !important;
}

/* Left panel: image gallery */
.single-product div.product .woocommerce-product-gallery {
	grid-column: 1 !important;
	grid-row: 1 !important;
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
	position: sticky !important;
	top: 80px !important;
}

/* Right panel: summary */
.single-product div.product .summary.entry-summary {
	grid-column: 2 !important;
	grid-row: 1 !important;
	float: none !important;
	width: 100% !important;
	padding: 8px 0 0 !important;
}

/* Gallery notes + related: full width below */
.single-product div.product .sw-gallery-notes-wrapper,
.single-product div.product .woocommerce-tabs,
.single-product div.product .related.products,
.single-product div.product .up-sells.products {
	grid-column: 1 / -1 !important;
}

/* Tablet */
@media ( max-width: 1100px ) {
	.single-product div.product {
		grid-template-columns: 1fr 360px !important;
		column-gap: 40px !important;
	}
}

/* Mobile */
@media ( max-width: 768px ) {
	.single-product div.product {
		grid-template-columns: 1fr !important;
		padding: 24px 16px 0 !important;
	}

	.single-product div.product .woocommerce-product-gallery,
	.single-product div.product .summary.entry-summary {
		grid-column: 1 !important;
		position: relative !important;
		top: auto !important;
	}

	.single-product div.product .summary.entry-summary {
		grid-row: 2 !important;
		padding-top: 32px !important;
	}
}

/* ---- Product Title ---- */
.single-product h1.product_title {
	font-family: var(--sw-font-serif) !important;
	font-size: clamp(1.6rem, 2.5vw, 2.4rem) !important;
	font-weight: 300 !important;
	letter-spacing: 0.04em !important;
	line-height: 1.2 !important;
	color: var(--sw-black) !important;
	margin: 0 0 8px !important;
	text-transform: none !important;
}

/* ---- Placard ---- */
.sw-placard {
	font-family: var(--sw-font-serif) !important;
	font-size: 0.8rem !important;
	font-variant: small-caps !important;
	letter-spacing: 0.1em !important;
	color: var(--sw-grey-mid) !important;
	margin: 0 0 28px !important;
	line-height: 1.5 !important;
}

.sw-placard .woocommerce-Price-amount {
	color: var(--sw-grey-mid) !important;
}

.sw-placard-sep {
	opacity: 0.5;
}

/* ---- Price ---- */
.single-product .summary p.price {
	font-family: var(--sw-font-serif) !important;
	font-size: 1.4rem !important;
	font-weight: 400 !important;
	color: var(--sw-black) !important;
	margin: 0 0 24px !important;
	border: none !important;
}

.single-product .summary .woocommerce-Price-amount {
	font-size: inherit !important;
	color: inherit !important;
}

/* Sale badge — understated */
.single-product .summary .onsale {
	display: none !important;
}

/* ---- Short Description (Gallery Caption) ---- */
.single-product .woocommerce-product-details__short-description {
	font-family: var(--sw-font-serif) !important;
	font-size: 1rem !important;
	font-style: italic !important;
	color: var(--sw-grey-dark) !important;
	line-height: 1.75 !important;
	margin: 0 0 28px !important;
	border-left: 2px solid var(--sw-grey-line);
	padding-left: 16px;
}

.single-product .woocommerce-product-details__short-description p {
	margin: 0;
}

/* ---- Variations form ---- */
.single-product .variations_form .variations {
	width: 100%;
	border-collapse: collapse;
}

.single-product .variations_form .variations td,
.single-product .variations_form .variations th {
	padding: 0 0 16px !important;
	border: none !important;
	text-align: left !important;
	vertical-align: middle !important;
}

.single-product .variations_form .variations .label {
	width: 100px;
}

.single-product .variations_form label {
	font-family: var(--sw-font-sans) !important;
	font-size: 0.7rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.15em !important;
	text-transform: uppercase !important;
	color: var(--sw-grey-dark) !important;
}

.single-product .variations_form select {
	font-family: var(--sw-font-serif) !important;
	font-size: 0.95rem !important;
	color: var(--sw-black) !important;
	border: 1px solid var(--sw-grey-line) !important;
	border-radius: 0 !important;
	padding: 10px 36px 10px 14px !important;
	width: 100% !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
	background: var(--sw-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center !important;
	background-size: 12px auto !important;
	cursor: pointer !important;
	transition: border-color var(--sw-transition) !important;
}

.single-product .variations_form select:focus {
	outline: none !important;
	border-color: var(--sw-black) !important;
}

/* Suppress Divi's built-in CSS triangle arrow on variations select (Divi injects span:after) */
.et_pb_wc_add_to_cart form.cart .variations td.value span:after {
	display: none !important;
}

.single-product .variations_form .reset_variations {
	font-family: var(--sw-font-sans) !important;
	font-size: 0.7rem !important;
	color: var(--sw-grey-mid) !important;
	letter-spacing: 0.08em !important;
}

/* ---- Reassurance notes ---- */
.sw-reassurance {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin: 0 0 20px;
}

.sw-reassurance span {
	font-family: var(--sw-font-sans);
	font-size: 0.65rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--sw-grey-mid);
	display: flex;
	align-items: center;
	gap: 6px;
}

.sw-reassurance span::before {
	content: '';
	display: inline-block;
	width: 4px;
	height: 4px;
	background: var(--sw-grey-mid);
	border-radius: 50%;
}

.sw-reassurance span:first-child::before {
	display: none;
}

/* ---- Add to Cart Button ---- */
.single-product .single_add_to_cart_button.button {
	display: block !important;
	width: 100% !important;
	font-family: var(--sw-font-sans) !important;
	font-size: 0.75rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.2em !important;
	text-transform: uppercase !important;
	color: var(--sw-white) !important;
	background-color: var(--sw-black) !important;
	border: none !important;
	border-radius: 0 !important;
	padding: 18px 32px !important;
	cursor: pointer !important;
	transition: background-color var(--sw-transition) !important;
	text-align: center !important;
	margin-top: 8px !important;
}

.single-product .single_add_to_cart_button.button:hover {
	background-color: var(--sw-grey-dark) !important;
}

.single-product .single_add_to_cart_button.button.loading {
	opacity: 0.7 !important;
}

/* ---- Quantity selector ---- */
.single-product .quantity {
	display: none !important; /* Hidden — artwork is typically 1 per order */
}

/* ---- Gallery (images) ---- */
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
	/* Let WooCommerce handle gallery sizing */
}

.single-product .woocommerce-product-gallery__image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0;
}

.single-product .flex-control-thumbs {
	margin-top: 12px !important;
	display: flex !important;
	gap: 8px !important;
	flex-wrap: wrap !important;
}

.single-product .flex-control-thumbs li {
	flex: 0 0 80px !important;
	width: 80px !important;
	margin: 0 !important;
}

.single-product .flex-control-thumbs li img {
	width: 80px !important;
	height: 80px !important;
	object-fit: cover !important;
	border-radius: 0 !important;
	opacity: 0.65 !important;
	transition: opacity var(--sw-transition) !important;
	cursor: pointer !important;
}

.single-product .flex-control-thumbs li img:hover,
.single-product .flex-control-thumbs li img.flex-active {
	opacity: 1 !important;
}

/* =============================================================================
   GALLERY NOTES ACCORDION
   ============================================================================= */

.sw-gallery-notes-wrapper {
	border-top: 1px solid var(--sw-grey-line);
	margin-top: 56px;
	padding-bottom: 24px;
}

.sw-gallery-notes {
	max-width: 900px;
	margin: 0 auto;
}

.sw-note-section {
	border-bottom: 1px solid var(--sw-grey-line);
}

.sw-note-section summary {
	list-style: none;
	cursor: pointer;
	padding: 20px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	user-select: none;
}

.sw-note-section summary::-webkit-details-marker {
	display: none;
}

.sw-note-title {
	font-family: var(--sw-font-sans) !important;
	font-size: 0.7rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.18em !important;
	text-transform: uppercase !important;
	color: var(--sw-black) !important;
}

.sw-note-section summary::after {
	content: '+';
	font-family: var(--sw-font-sans);
	font-size: 1.2rem;
	font-weight: 300;
	color: var(--sw-grey-mid);
	transition: transform var(--sw-transition);
	line-height: 1;
}

.sw-note-section[open] summary::after {
	content: '−';
}

.sw-note-body {
	padding: 0 0 28px;
	animation: sw-fade-in 0.2s ease;
}

@keyframes sw-fade-in {
	from { opacity: 0; transform: translateY(-6px); }
	to   { opacity: 1; transform: translateY(0); }
}

.sw-note-row {
	display: flex;
	gap: 12px;
	margin: 0 0 12px;
	font-family: var(--sw-font-serif);
	font-size: 0.95rem;
	line-height: 1.5;
}

.sw-note-label {
	flex: 0 0 160px;
	font-family: var(--sw-font-sans);
	font-size: 0.65rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--sw-grey-mid);
	padding-top: 3px;
}

.sw-note-value {
	flex: 1;
	color: var(--sw-black);
}

.sw-note-body-text {
	font-family: var(--sw-font-serif);
	font-size: 0.95rem;
	color: var(--sw-grey-dark);
	line-height: 1.75;
	margin: 12px 0 0;
}

.sw-note-desc {
	font-family: var(--sw-font-serif);
	font-size: 0.95rem;
	color: var(--sw-grey-dark);
	line-height: 1.75;
	margin-top: 16px;
}

.sw-note-desc h3 {
	font-family: var(--sw-font-sans) !important;
	font-size: 0.65rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.12em !important;
	text-transform: uppercase !important;
	color: var(--sw-grey-mid) !important;
	margin-bottom: 8px !important;
}

.sw-note-empty {
	font-family: var(--sw-font-serif);
	font-size: 0.9rem;
	font-style: italic;
	color: var(--sw-grey-mid);
	margin: 0;
}

@media ( max-width: 768px ) {
	.sw-note-label {
		flex: 0 0 120px;
	}
}

/* =============================================================================
   RELATED PRODUCTS (Single Product)
   ============================================================================= */

.single-product .related.products {
	border-top: 1px solid var(--sw-grey-line);
	padding-top: 56px;
	margin-top: 0;
}

.single-product .related.products > h2 {
	font-family: var(--sw-font-sans) !important;
	font-size: 0.7rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.18em !important;
	text-transform: uppercase !important;
	color: var(--sw-grey-mid) !important;
	margin-bottom: 40px !important;
}

.single-product .related.products ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 32px 24px !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

@media ( max-width: 980px ) {
	.single-product .related.products ul.products {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media ( max-width: 640px ) {
	.single-product .related.products ul.products {
		grid-template-columns: 1fr !important;
	}
}

.single-product .related.products li.product {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
}

.single-product .related.products li.product a img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.single-product .related.products li.product .woocommerce-loop-product__title {
	font-family: var(--sw-font-serif) !important;
	font-size: 0.9rem !important;
	font-weight: 400 !important;
	color: var(--sw-black) !important;
	padding: 12px 0 4px !important;
	margin: 0 !important;
}

.single-product .related.products li.product .price {
	font-family: var(--sw-font-serif) !important;
	font-size: 0.8rem !important;
	color: var(--sw-grey-mid) !important;
}

.single-product .related.products .button {
	display: none !important;
}

/* Archive render hardening: prevent first-tile hidden/transparent states */
.tax-product_cat ul.products li.product,
.tax-product_cat ul.products li.product a,
.tax-product_cat ul.products li.product a img {
        opacity: 1 !important;
        visibility: visible !important;
}

/* Archive tile fallback visibility */
.tax-product_cat ul.products li.product,
.tax-product_cat ul.products li.product a,
.tax-product_cat ul.products li.product a img {
        opacity: 1;
        visibility: visible;
}

/* Fix blank first tile on category grids: disable clearfix pseudos that become grid items */
.tax-product_cat.woocommerce ul.products::before,
.tax-product_cat.woocommerce ul.products::after,
.tax-product_cat.woocommerce-page ul.products::before,
.tax-product_cat.woocommerce-page ul.products::after {
        content: none;
        display: none;
}

/* Category H1 typography to match homepage style (excluding color) */
.tax-product_cat .sw-archive-header .sw-archive-title {
        font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
        text-transform: uppercase;
        font-size: 75px;
        letter-spacing: 0.2em;
        line-height: 1.2em;
}

/* Remove Divi default top padding on product category archives */
.tax-product_cat #main-content .container {
        padding-top: 0;
}
/* Force-zero top padding on category main container */
.tax-product_cat #main-content .container,
.tax-product_cat #main-content #left-area {
        padding-top: 0 !important;
}


/* Artwork chooser page layout */
.sw-artwork-chooser {
        max-width: 1200px;
        margin: 0 auto;
        padding: 16px 0 24px;
}

.sw-artwork-chooser__header {
        text-align: center;
        margin-bottom: 34px;
}

.sw-artwork-chooser__title {
        font-family: Cormorant Garamond, Georgia, Times New Roman, serif;
        font-size: clamp(2rem, 4.8vw, 4rem);
        letter-spacing: 0.12em;
        text-transform: uppercase;
        line-height: 1.15;
        margin: 0 0 10px;
}

.sw-artwork-chooser__intro {
        margin: 0 auto;
        max-width: 860px;
        font-size: 1.04rem;
        line-height: 1.75;
        color: #6d6d6d;
}

.sw-artwork-chooser__grid {
        display: grid;
        gap: 26px;
}

.sw-artwork-chooser__grid--primary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sw-artwork-card {
        border: 1px solid #ececec;
        background: #fff;
        display: flex;
        flex-direction: column;
}

.sw-artwork-card__media {
        display: block;
        aspect-ratio: 16 / 9;
        overflow: hidden;
}

.sw-artwork-card__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
}

.sw-artwork-card__body {
        padding: 24px;
}

.sw-artwork-card__title {
        margin: 0 0 10px;
        font-family: Cormorant Garamond, Georgia, Times New Roman, serif;
        font-size: 2rem;
        line-height: 1.2;
}

.sw-artwork-card__desc {
        margin: 0 0 16px;
        font-size: 0.98rem;
        line-height: 1.75;
}

.sw-artwork-card__cta,
.sw-artwork-mini-card__cta {
        display: inline-block;
        border-bottom: 1px solid #111;
        color: #111;
        font-size: 0.78rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        padding-bottom: 2px;
}

.sw-artwork-chooser__subsection {
        margin-top: 34px;
}

.sw-artwork-chooser__subheading {
        margin: 0 0 14px;
        font-size: 0.85rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: #6d6d6d;
}

.sw-artwork-chooser__grid--secondary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sw-artwork-mini-card {
        border: 1px solid #ececec;
        background: #fff;
        padding: 20px;
}

.sw-artwork-mini-card__title {
        margin: 0 0 8px;
        font-family: Cormorant Garamond, Georgia, Times New Roman, serif;
        font-size: 1.45rem;
        line-height: 1.2;
}

.sw-artwork-mini-card__desc {
        margin: 0 0 12px;
        font-size: 0.92rem;
        line-height: 1.65;
}

@media (max-width: 980px) {
        .sw-artwork-chooser__grid--primary,
        .sw-artwork-chooser__grid--secondary {
                grid-template-columns: 1fr;
        }
}

/* --- Archive spacing + subcategory card polish --- */
.tax-product_cat #main-content .container,
.page-id-2454 #main-content .container {
        padding-bottom: 56px;
}

.tax-product_cat li.product-category.product {
        border: 1px solid #e8e8e8;
        background: #ffffff;
        padding: 0;
}

.tax-product_cat li.product-category.product > a {
        display: block;
        padding: 0;
}

.tax-product_cat li.product-category.product img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        margin: 0;
}

.tax-product_cat li.product-category.product .woocommerce-loop-category__title {
        margin: 0;
        padding: 14px 14px 16px;
        font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
        font-size: 1.55rem;
        line-height: 1.2;
        text-transform: none;
}

.tax-product_cat li.product-category.product .woocommerce-loop-category__title::before {
        content: 'Category';
        display: block;
        margin-bottom: 8px;
        font-family: Open Sans, Arial, sans-serif;
        font-size: 0.67rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: #7a7a7a;
}

.tax-product_cat li.product-category.product .count {
        display: inline-block;
        margin-left: 8px;
        padding: 2px 7px;
        border: 1px solid #d8d8d8;
        border-radius: 999px;
        background: #f8f8f8;
        color: #555;
        font-size: 0.7rem;
        font-weight: 600;
}

.tax-product_cat li.product-category.product:hover {
        border-color: #d7d7d7;
}

/* Subcategory cards: subtle hover polish */
.tax-product_cat li.product-category.product {
        transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tax-product_cat li.product-category.product > a {
        position: relative;
        overflow: hidden;
}

.tax-product_cat li.product-category.product img {
        transition: transform 0.35s ease;
}

.tax-product_cat li.product-category.product .woocommerce-loop-category__title {
        transition: color 0.2s ease;
}

.tax-product_cat li.product-category.product:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.tax-product_cat li.product-category.product:hover img {
        transform: scale(1.03);
}

.tax-product_cat li.product-category.product:hover .woocommerce-loop-category__title {
        text-decoration: underline;
        text-underline-offset: 6px;
}

/* Subcategory cards refinement: no counts, centered text, subtle line/glow animation */
.tax-product_cat li.product-category.product .count {
        display: none !important;
}

.tax-product_cat li.product-category.product .woocommerce-loop-category__title {
        text-align: center;
        padding: 18px 16px 22px;
}

.tax-product_cat li.product-category.product .woocommerce-loop-category__title::before {
        margin-left: auto;
        margin-right: auto;
}

.tax-product_cat li.product-category.product {
        transition: border-color 0.28s ease, box-shadow 0.28s ease;
}

.tax-product_cat li.product-category.product > a {
        position: relative;
        overflow: hidden;
}

.tax-product_cat li.product-category.product > a::after {
        content: "";
        position: absolute;
        left: 16%;
        right: 16%;
        bottom: 0;
        height: 1px;
        background: rgba(0,0,0,0.22);
        transform: scaleX(0.35);
        opacity: 0.55;
        transform-origin: center;
        transition: transform 0.35s ease, opacity 0.35s ease;
}

.tax-product_cat li.product-category.product img {
        transition: transform 0.45s ease, filter 0.45s ease;
}

.tax-product_cat li.product-category.product:hover {
        border-color: #dddddd;
        box-shadow: 0 10px 26px rgba(0,0,0,0.08);
}

.tax-product_cat li.product-category.product:hover > a::after {
        transform: scaleX(1);
        opacity: 0.92;
}

.tax-product_cat li.product-category.product:hover img {
        transform: scale(1.015);
        filter: brightness(1.02);
}

.tax-product_cat li.product-category.product:hover .woocommerce-loop-category__title {
        text-decoration: none;
}
/* Subcategory card title overlay: heading style, centered over image */
.tax-product_cat li.product-category.product .woocommerce-loop-category__title::before {
        content: none;
        display: none;
}

.tax-product_cat li.product-category.product > a {
        position: relative;
        display: block;
        overflow: hidden;
}

.tax-product_cat li.product-category.product .woocommerce-loop-category__title {
        position: absolute;
        inset: 0;
        margin: 0;
        padding: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
        font-size: clamp(1.35rem, 2.2vw, 2.1rem);
        letter-spacing: 0.14em;
        text-transform: uppercase;
        line-height: 1.2em;
        color: #ffffff;
        text-shadow: 0 2px 14px rgba(0,0,0,0.45);
        background: linear-gradient(to top, rgba(0,0,0,0.30), rgba(0,0,0,0.08) 55%, rgba(0,0,0,0.18));
        pointer-events: none;
}

.tax-product_cat li.product-category.product img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
}

/* Final polish: dark category title overlay, refined product hover, styled breadcrumbs */
.tax-product_cat li.product-category.product .woocommerce-loop-category__title {
        color: #111111 !important;
        text-shadow: 0 1px 0 rgba(255,255,255,0.35);
        background: linear-gradient(to top, rgba(255,255,255,0.78), rgba(255,255,255,0.18) 55%, rgba(255,255,255,0));
}

.tax-product_cat #left-area {
        --sw-archive-stack-space: 24px;
        display: flex;
        flex-direction: column;
}

.tax-product_cat #left-area > .sw-archive-header {
        order: 1;
        padding: 24px 0 !important;
        margin: 0 0 var(--sw-archive-stack-space) !important;
        border-bottom: 1px solid var(--sw-grey-line);
}

.tax-product_cat #left-area > .sw-archive-header .sw-archive-title {
        margin: 0 !important;
}

.tax-product_cat #left-area > nav.woocommerce-breadcrumb {
        order: 2;
        display: block !important;
        margin: 0 0 var(--sw-archive-stack-space) !important;
        padding: 0 !important;
}

.tax-product_cat #left-area > .woocommerce-notices-wrapper,
.tax-product_cat #left-area > .woocommerce-result-count,
.tax-product_cat #left-area > form.woocommerce-ordering {
        order: 3;
        margin: 0 0 var(--sw-archive-stack-space) !important;
        padding: 0 !important;
}

.tax-product_cat #left-area > ul.products {
        order: 4;
}

.tax-product_cat #left-area > nav.woocommerce-pagination,
.tax-product_cat #left-area > .woocommerce-pagination {
        order: 5;
}

.tax-product_cat nav.woocommerce-breadcrumb,
.single-product .sw-product-breadcrumb {
        display: block;
        width: 100%;
        text-align: center;
        font-size: 0.96rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: #7a7a7a;
}

.tax-product_cat nav.woocommerce-breadcrumb a,
.single-product .sw-product-breadcrumb a {
        color: #7a7a7a;
}

.tax-product_cat .sw-bc-sep,
.single-product .sw-bc-sep {
        margin: 0 8px;
        opacity: 0.6;
}

.single-product .sw-product-breadcrumb {
        margin: 0 0 24px;
}

.woocommerce ul.products li.product .et_overlay,
.woocommerce-page ul.products li.product .et_overlay {
        background: transparent !important;
        border: 0 !important;
        opacity: 0 !important;
}

.woocommerce ul.products li.product .et_overlay:before,
.woocommerce-page ul.products li.product .et_overlay:before {
        display: none !important;
}

.woocommerce ul.products li.product .et_shop_image,
.woocommerce-page ul.products li.product .et_shop_image {
        overflow: hidden;
}

.woocommerce ul.products li.product .et_shop_image img,
.woocommerce-page ul.products li.product .et_shop_image img {
        transition: transform 0.42s ease, filter 0.42s ease;
}

.woocommerce ul.products li.product:hover .et_shop_image img,
.woocommerce-page ul.products li.product:hover .et_shop_image img {
        transform: scale(1.018);
        filter: brightness(1.02);
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
        transition: box-shadow 0.26s ease, transform 0.26s ease;
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

/* Artwork page visual polish (Divi modules remain fully editable) */
.page-id-2454 #main-content {
        background:
                radial-gradient(1100px 420px at 50% -120px, rgba(0,0,0,0.035), rgba(0,0,0,0) 70%),
                linear-gradient(to bottom, #fcfcfc 0%, #ffffff 26%, #ffffff 100%);
}

.page-id-2454 .et_pb_section.sw-artwork-chooser {
        padding-top: 8px !important;
}

.page-id-2454 .sw-artwork-chooser__header {
        margin-bottom: 42px;
}

.page-id-2454 .sw-artwork-chooser__title {
        text-wrap: balance;
        text-shadow: 0 1px 0 rgba(255,255,255,0.85);
}

.page-id-2454 .sw-artwork-chooser__intro {
        max-width: 820px;
        color: #666666;
}

.page-id-2454 .sw-artwork-chooser__grid {
        gap: 30px;
}

.page-id-2454 .sw-artwork-card,
.page-id-2454 .sw-artwork-mini-card {
        border: 1px solid #e8e8e8;
        border-radius: 16px;
        background: linear-gradient(to bottom, #ffffff 0%, #fbfbfb 100%);
        box-shadow: 0 10px 28px rgba(0,0,0,0.05);
        transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
        overflow: hidden;
}

.page-id-2454 .sw-artwork-card:hover,
.page-id-2454 .sw-artwork-mini-card:hover {
        transform: translateY(-5px);
        border-color: #d8d8d8;
        box-shadow: 0 18px 42px rgba(0,0,0,0.10);
}

.page-id-2454 .sw-artwork-card__media {
        position: relative;
}

.page-id-2454 .sw-artwork-card__media::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0) 52%);
        pointer-events: none;
}

.page-id-2454 .sw-artwork-card__media img {
        transition: transform 0.55s ease;
}

.page-id-2454 .sw-artwork-card:hover .sw-artwork-card__media img {
        transform: scale(1.05);
}

.page-id-2454 .sw-artwork-card__body {
        padding: 26px;
}

.page-id-2454 .sw-artwork-card__title,
.page-id-2454 .sw-artwork-mini-card__title {
        letter-spacing: 0.01em;
}

.page-id-2454 .sw-artwork-card__desc,
.page-id-2454 .sw-artwork-mini-card__desc {
        color: #4f4f4f;
}

.page-id-2454 .sw-artwork-card__cta,
.page-id-2454 .sw-artwork-mini-card__cta {
        position: relative;
        border-bottom-width: 1px;
        transition: letter-spacing 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.page-id-2454 .sw-artwork-card__cta::after,
.page-id-2454 .sw-artwork-mini-card__cta::after {
        content: " →";
        opacity: 0;
        transition: opacity 0.2s ease, transform 0.2s ease;
        transform: translateX(-2px);
}

.page-id-2454 .sw-artwork-card__cta:hover,
.page-id-2454 .sw-artwork-mini-card__cta:hover {
        letter-spacing: 0.16em;
}

.page-id-2454 .sw-artwork-card__cta:hover::after,
.page-id-2454 .sw-artwork-mini-card__cta:hover::after {
        opacity: 1;
        transform: translateX(1px);
}

.page-id-2454 .sw-artwork-chooser__subsection {
        margin-top: 40px;
}

.page-id-2454 .sw-artwork-chooser__subheading {
        display: inline-block;
        padding-bottom: 8px;
        border-bottom: 1px solid #dcdcdc;
}

@media (max-width: 980px) {
        .page-id-2454 .sw-artwork-chooser__header {
                margin-bottom: 30px;
        }

        .page-id-2454 .sw-artwork-chooser__grid {
                gap: 22px;
        }

        .page-id-2454 .sw-artwork-card,
        .page-id-2454 .sw-artwork-mini-card {
                border-radius: 12px;
        }

        .page-id-2454 .sw-artwork-card:hover,
        .page-id-2454 .sw-artwork-mini-card:hover {
                transform: translateY(-2px);
        }
}

/* Artwork page visual polish v2 (stronger + override-safe) */
body.page-id-2454 #main-content {
        background: linear-gradient(180deg, #f8f8f8 0%, #ffffff 28%, #ffffff 100%) !important;
}

body.page-id-2454 .et_pb_section.sw-artwork-chooser {
        background: transparent !important;
        padding-top: 20px !important;
        padding-bottom: 34px !important;
}

body.page-id-2454 .sw-artwork-chooser__header {
        margin-bottom: 48px !important;
}

body.page-id-2454 .sw-artwork-chooser__title {
        font-size: clamp(2.3rem, 5.6vw, 5rem) !important;
        letter-spacing: 0.16em !important;
        margin-bottom: 16px !important;
}

body.page-id-2454 .sw-artwork-chooser__intro {
        max-width: 860px !important;
        font-size: 1.08rem !important;
        line-height: 1.9 !important;
}

body.page-id-2454 .et_pb_row.sw-artwork-chooser__grid {
        width: 100% !important;
        max-width: 1240px !important;
}

body.page-id-2454 .sw-artwork-card,
body.page-id-2454 .sw-artwork-mini-card {
        position: relative;
        border: 1px solid #dfdfdf !important;
        border-radius: 18px !important;
        background: #ffffff !important;
        box-shadow: 0 14px 34px rgba(0,0,0,0.08) !important;
        overflow: hidden !important;
        transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease !important;
}

body.page-id-2454 .sw-artwork-card::before,
body.page-id-2454 .sw-artwork-mini-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(120deg, rgba(255,255,255,0.0) 35%, rgba(255,255,255,0.45) 50%, rgba(255,255,255,0.0) 65%);
        transform: translateX(-130%);
        transition: transform 0.7s ease;
        pointer-events: none;
        z-index: 2;
}

body.page-id-2454 .sw-artwork-card:hover,
body.page-id-2454 .sw-artwork-mini-card:hover {
        transform: translateY(-8px) !important;
        border-color: #cfcfcf !important;
        box-shadow: 0 24px 54px rgba(0,0,0,0.14) !important;
}

body.page-id-2454 .sw-artwork-card:hover::before,
body.page-id-2454 .sw-artwork-mini-card:hover::before {
        transform: translateX(130%);
}

body.page-id-2454 .sw-artwork-card__media {
        border-bottom: 1px solid #ececec;
}

body.page-id-2454 .sw-artwork-card__media img {
        transition: transform 0.6s ease !important;
}

body.page-id-2454 .sw-artwork-card:hover .sw-artwork-card__media img {
        transform: scale(1.07) !important;
}

body.page-id-2454 .sw-artwork-card__body {
        padding: 28px 28px 30px !important;
}

body.page-id-2454 .sw-artwork-card__title {
        font-size: clamp(1.8rem, 2.7vw, 2.35rem) !important;
        margin-bottom: 12px !important;
}

body.page-id-2454 .sw-artwork-mini-card__title {
        font-size: 1.58rem !important;
}

body.page-id-2454 .sw-artwork-card__desc,
body.page-id-2454 .sw-artwork-mini-card__desc {
        color: #4a4a4a !important;
}

body.page-id-2454 .sw-artwork-card__cta,
body.page-id-2454 .sw-artwork-mini-card__cta {
        display: inline-block !important;
        margin-top: 6px !important;
        padding: 8px 0 6px !important;
        border-bottom: 1px solid #111 !important;
        font-size: 0.8rem !important;
        letter-spacing: 0.16em !important;
        text-transform: uppercase !important;
        transition: letter-spacing 0.22s ease !important;
}

body.page-id-2454 .sw-artwork-card__cta::after,
body.page-id-2454 .sw-artwork-mini-card__cta::after {
        content: "  →";
        opacity: 0;
        transition: opacity 0.2s ease;
}

body.page-id-2454 .sw-artwork-card__cta:hover,
body.page-id-2454 .sw-artwork-mini-card__cta:hover {
        letter-spacing: 0.18em !important;
}

body.page-id-2454 .sw-artwork-card__cta:hover::after,
body.page-id-2454 .sw-artwork-mini-card__cta:hover::after {
        opacity: 1;
}

body.page-id-2454 .sw-artwork-chooser__subsection {
        margin-top: 44px !important;
}

body.page-id-2454 .sw-artwork-chooser__subheading {
        font-size: 0.88rem !important;
        letter-spacing: 0.2em !important;
        padding-bottom: 10px !important;
        border-bottom: 1px solid #d7d7d7 !important;
}

@media (max-width: 980px) {
        body.page-id-2454 .sw-artwork-card:hover,
        body.page-id-2454 .sw-artwork-mini-card:hover {
                transform: translateY(-3px) !important;
        }

        body.page-id-2454 .sw-artwork-card,
        body.page-id-2454 .sw-artwork-mini-card {
                border-radius: 14px !important;
        }
}

/* Artwork page override: match homepage style language */
body.page-id-2454 #main-content {
        background: #ffffff !important;
}

body.page-id-2454 .et_pb_section.sw-artwork-chooser {
        padding-top: 10px !important;
        padding-bottom: 30px !important;
}

body.page-id-2454 .sw-artwork-chooser__header {
        margin-bottom: 34px !important;
        text-align: center;
}

body.page-id-2454 .sw-artwork-chooser__title {
        font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif !important;
        font-size: 75px !important;
        letter-spacing: 0.2em !important;
        text-transform: uppercase !important;
        line-height: 1.2em !important;
        margin: 0 0 14px !important;
        text-shadow: none !important;
}

body.page-id-2454 .sw-artwork-chooser__intro {
        max-width: 900px !important;
        margin: 0 auto !important;
        font-size: 1.02rem !important;
        line-height: 1.8 !important;
        color: #6a6a6a !important;
}

body.page-id-2454 .et_pb_row.sw-artwork-chooser__grid {
        width: 100% !important;
        max-width: 1280px !important;
}

body.page-id-2454 .sw-artwork-card,
body.page-id-2454 .sw-artwork-mini-card {
        border: 1px solid #ececec !important;
        border-radius: 0 !important;
        background: #ffffff !important;
        box-shadow: none !important;
        overflow: hidden !important;
        transform: none !important;
        transition: border-color 0.22s ease, transform 0.22s ease !important;
}

body.page-id-2454 .sw-artwork-card::before,
body.page-id-2454 .sw-artwork-mini-card::before,
body.page-id-2454 .sw-artwork-card__media::after {
        content: none !important;
        display: none !important;
}

body.page-id-2454 .sw-artwork-card:hover,
body.page-id-2454 .sw-artwork-mini-card:hover {
        border-color: #d8d8d8 !important;
        box-shadow: none !important;
        transform: translateY(-2px) !important;
}

body.page-id-2454 .sw-artwork-card__media {
        border-bottom: 1px solid #ececec;
}

body.page-id-2454 .sw-artwork-card__media img {
        transition: transform 0.35s ease !important;
}

body.page-id-2454 .sw-artwork-card:hover .sw-artwork-card__media img {
        transform: scale(1.03) !important;
}

body.page-id-2454 .sw-artwork-card__body {
        padding: 24px !important;
}

body.page-id-2454 .sw-artwork-card__title {
        font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif !important;
        font-size: 2.05rem !important;
        line-height: 1.18 !important;
        margin: 0 0 10px !important;
}

body.page-id-2454 .sw-artwork-mini-card__title {
        font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif !important;
        font-size: 1.45rem !important;
        line-height: 1.2 !important;
        margin: 0 0 8px !important;
}

body.page-id-2454 .sw-artwork-card__desc,
body.page-id-2454 .sw-artwork-mini-card__desc {
        margin: 0 0 14px !important;
        color: #555555 !important;
}

body.page-id-2454 .sw-artwork-card__cta,
body.page-id-2454 .sw-artwork-mini-card__cta {
        display: inline-block !important;
        border-bottom: 1px solid #111 !important;
        color: #111 !important;
        font-size: 0.78rem !important;
        letter-spacing: 0.14em !important;
        text-transform: uppercase !important;
        padding: 0 0 2px !important;
        margin-top: 0 !important;
        transition: letter-spacing 0.2s ease !important;
}

body.page-id-2454 .sw-artwork-card__cta::after,
body.page-id-2454 .sw-artwork-mini-card__cta::after {
        content: none !important;
}

body.page-id-2454 .sw-artwork-card__cta:hover,
body.page-id-2454 .sw-artwork-mini-card__cta:hover {
        letter-spacing: 0.16em !important;
}

body.page-id-2454 .sw-artwork-chooser__subsection {
        margin-top: 34px !important;
}

body.page-id-2454 .sw-artwork-chooser__subheading {
        margin: 0 0 14px !important;
        font-size: 0.82rem !important;
        letter-spacing: 0.14em !important;
        text-transform: uppercase !important;
        color: #6a6a6a !important;
        border: 0 !important;
        padding: 0 !important;
}

@media (max-width: 980px) {
        body.page-id-2454 .sw-artwork-chooser__title {
                font-size: clamp(2.2rem, 9vw, 4rem) !important;
                letter-spacing: 0.14em !important;
        }

        body.page-id-2454 .sw-artwork-card,
        body.page-id-2454 .sw-artwork-mini-card {
                transform: none !important;
        }
}

/* TEMP DEBUG MARKER - remove after confirmation */
body.page-id-2454 .sw-artwork-chooser__header::before {
        content: "LIVE STYLE DEBUG ACTIVE";
        display: inline-block;
        margin: 0 0 14px;
        padding: 8px 14px;
        background: #ffeb3b;
        color: #111;
        border: 2px solid #111;
        font-family: Arial, sans-serif;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
}

body.page-id-2454 .sw-artwork-card,
body.page-id-2454 .sw-artwork-mini-card {
        outline: 3px dashed #ff3d00 !important;
        outline-offset: -3px;
}

/* Remove temporary artwork debug marker */
body.page-id-2454 .sw-artwork-chooser__header::before {
        content: none !important;
        display: none !important;
}

body.page-id-2454 .sw-artwork-card,
body.page-id-2454 .sw-artwork-mini-card {
        outline: none !important;
}

/* Archive column hardening (fix inconsistent columns on product archives) */
.tax-product_cat ul.products.columns-4,
.tax-product_cat .woocommerce ul.products.columns-4 {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 40px 24px !important;
}

.tax-product_cat ul.products.columns-4 li.product,
.tax-product_cat .woocommerce ul.products.columns-4 li.product {
        float: none !important;
        clear: none !important;
        width: auto !important;
        margin: 0 !important;
}

@media (max-width: 1280px) {
        .tax-product_cat ul.products.columns-4,
        .tax-product_cat .woocommerce ul.products.columns-4 {
                grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        }
}

@media (max-width: 980px) {
        .tax-product_cat ul.products.columns-4,
        .tax-product_cat .woocommerce ul.products.columns-4 {
                grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
                gap: 30px 18px !important;
        }
}

@media (max-width: 640px) {
        .tax-product_cat ul.products.columns-4,
        .tax-product_cat .woocommerce ul.products.columns-4 {
                grid-template-columns: 1fr !important;
        }
}

/* Framed Panoramas: enforce balanced columns */
.tax-product_cat.term-framed-panoramas ul.products.columns-4,
.tax-product_cat.term-framed-panoramas .woocommerce ul.products.columns-4 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 40px 24px !important;
}

.tax-product_cat.term-framed-panoramas ul.products.columns-4 li.product,
.tax-product_cat.term-framed-panoramas .woocommerce ul.products.columns-4 li.product {
        float: none !important;
        clear: none !important;
        width: auto !important;
        margin: 0 !important;
}

@media (max-width: 980px) {
        .tax-product_cat.term-framed-panoramas ul.products.columns-4,
        .tax-product_cat.term-framed-panoramas .woocommerce ul.products.columns-4 {
                grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
                gap: 30px 18px !important;
        }
}

@media (max-width: 640px) {
        .tax-product_cat.term-framed-panoramas ul.products.columns-4,
        .tax-product_cat.term-framed-panoramas .woocommerce ul.products.columns-4 {
                grid-template-columns: 1fr !important;
        }
}
/* Artwork page: lock row/column sizing to prevent narrow card columns */
body.page-id-2454 .et_pb_row.sw-artwork-chooser__grid {
        display: grid !important;
        width: 100% !important;
        max-width: 1280px !important;
        gap: 30px !important;
}

body.page-id-2454 .et_pb_row.sw-artwork-chooser__grid.sw-artwork-chooser__grid--primary {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.page-id-2454 .et_pb_row.sw-artwork-chooser__grid.sw-artwork-chooser__grid--secondary {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

body.page-id-2454 .et_pb_row.sw-artwork-chooser__grid > .et_pb_column {
        float: none !important;
        clear: none !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
}

body.page-id-2454 .sw-artwork-mini-card__title,
body.page-id-2454 .sw-artwork-mini-card__desc {
        word-break: normal !important;
        overflow-wrap: normal !important;
}

@media (max-width: 980px) {
        body.page-id-2454 .et_pb_row.sw-artwork-chooser__grid.sw-artwork-chooser__grid--primary,
        body.page-id-2454 .et_pb_row.sw-artwork-chooser__grid.sw-artwork-chooser__grid--secondary {
                grid-template-columns: 1fr !important;
        }
}
