/* =========================================================
   Tea Jagodic — Fine Art Prints shop
   Loaded only on WooCommerce shop / archive pages.
   ========================================================= */

:root {
	--tj-bg:        #f4f2ee;   /* cream page background            */
	--tj-frame:     #ffffff;   /* white print "frame"             */
	--tj-ink:       #1c1b19;   /* headings / titles               */
	--tj-muted:     #7a756c;   /* prices, sub text                */
	--tj-line:      #e4e0d8;   /* hairlines                       */
	--tj-serif:     "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
	--tj-sans:      "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--tj-maxw:      1200px;
}

/* --- Force the shop to be light even on the dark site --------- */
body.woocommerce-shop,
body.tax-product_cat,
body.tax-product_tag,
body.post-type-archive-product {
	background: var(--tj-bg);
	color: var(--tj-ink);
}

.tj-shop {
	max-width: var(--tj-maxw);
	margin: 0 auto;
	padding: 0 20px 80px;
	font-family: var(--tj-sans);
}

/* --- Header / eyebrow ---------------------------------------- */
.tj-shop__intro {
	text-align: center;
	padding: 48px 0 8px;
}
.tj-shop__eyebrow {
	font-family: var(--tj-serif);
	font-size: clamp(22px, 3.4vw, 34px);
	letter-spacing: .06em;
	color: var(--tj-ink);
	margin: 0;
}
.tj-shop__eyebrow-sub {
	font-family: var(--tj-sans);
	font-size: 13px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--tj-muted);
	margin: 6px 0 0;
}

/* --- Hero band (set image via tj_shop_hero_image filter) ------ *
   Full-bleed: breaks out of the 1200px container to touch both
   edges of the viewport.                                         */
.tj-shop__hero {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	margin-top: 28px;
	margin-bottom: 40px;
}
.tj-shop__hero img {
	display: block;
	width: 100%;
	height: auto;   /* full photo visible, natural proportions */
}

/* --- Lead / intro copy --------------------------------------- */
.tj-shop__lead {
	text-align: center;
	max-width: 620px;
	margin: 0 auto 52px;
}
.tj-shop__title {
	font-family: var(--tj-serif);
	font-weight: 500;
	font-size: clamp(24px, 3.2vw, 34px);
	color: var(--tj-ink);
	margin: 0 0 14px;
}
.tj-shop__text {
	font-size: 15px;
	line-height: 1.7;
	color: var(--tj-muted);
	margin: 0;
}

/* --- Notices / result count / ordering ----------------------- *
   Hidden to match the clean mockup. Delete this block to bring
   back "Showing 1–20 results" and the sort dropdown.            */
.tj-shop .woocommerce-result-count,
.tj-shop .woocommerce-ordering,
.tj-shop .woocommerce-breadcrumb {
	display: none;
}

/* --- Product grid -------------------------------------------- */
.tj-shop ul.products {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px 25px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.tj-shop ul.products::before,
.tj-shop ul.products::after { content: none; } /* kill Woo clearfix */

.tj-card {
	width: auto !important;   /* override Woo inline column widths */
	margin: 0 !important;
	float: none !important;
	text-align: center;
}

.tj-card__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

/* Image — original photo, edge to edge (no matte/padding) */
.tj-card__frame {
	position: relative;
	background: transparent;
	padding: 0;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .10);
	transition: transform .35s ease, box-shadow .35s ease;
	overflow: hidden;
}
.tj-card__link:hover .tj-card__frame {
	transform: translateY(-4px);
	box-shadow: 0 16px 36px rgba(0, 0, 0, .16);
}
.tj-card__img,
.tj-card__frame img,
.woocommerce ul.products li.product a img {
	display: block;
	width: 100%;
	height: auto;   /* natural proportions — the full original photo */
	margin: 0;      /* kill WooCommerce's default 1em bottom gap */
}

/* Title + price */
.tj-card__title {
	font-family: var(--tj-serif);
	font-weight: 500;
	font-size: 19px;
	line-height: 1.3;
	color: var(--tj-ink);
	margin: 18px 0 4px;
}
.tj-card__price {
	font-family: var(--tj-sans);
	font-size: 12px;
	letter-spacing: .04em;
	color: var(--tj-muted);
}
.tj-card__price .amount { color: var(--tj-muted); }
.tj-card__price del { opacity: .55; margin-right: 6px; }

/* Sale badge */
.tj-card .onsale {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	background: var(--tj-ink);
	color: #fff;
	font-size: 10px;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: 4px 8px;
	border-radius: 2px;
	min-height: 0;
	min-width: 0;
	line-height: 1;
}

/* Add-to-cart hidden on the grid to match the mockup.
   (Woo's own selector is more specific, hence !important.)
   Delete this block to bring the button back.                  */
.tj-card .button,
.tj-card .added_to_cart {
	display: none !important;
}

/* --- Pagination ---------------------------------------------- */
.tj-shop .woocommerce-pagination {
	margin-top: 56px;
	text-align: center;
}
.tj-shop .woocommerce-pagination ul {
	border: 0;
	display: inline-flex;
	gap: 6px;
}
.tj-shop .woocommerce-pagination ul li {
	border: 0;
}
.tj-shop .woocommerce-pagination a,
.tj-shop .woocommerce-pagination span {
	font-family: var(--tj-sans);
	font-size: 14px;
	color: var(--tj-ink);
	border: 1px solid var(--tj-line) !important;
	border-radius: 2px;
	padding: 8px 14px !important;
}
.tj-shop .woocommerce-pagination .current {
	background: var(--tj-ink);
	color: #fff;
	border-color: var(--tj-ink) !important;
}

/* --- Responsive ---------------------------------------------- */
@media (max-width: 1024px) {
	.tj-shop ul.products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
	.tj-shop ul.products { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
	.tj-card__title { font-size: 17px; }
}
@media (max-width: 480px) {
	.tj-shop ul.products { grid-template-columns: 1fr; }
}

/* --- Keep the site footer dark on the light shop page --------- */
.post-type-archive-product .turbo-footer-template {
	background: #000;
}

/* =========================================================
   SINGLE PRODUCT PAGE — match the light archive aesthetic
   ========================================================= */

body.single-product {
	background: var(--tj-bg);
	color: var(--tj-ink);
}

.single-product div.product {
	max-width: var(--tj-maxw);
	margin: 0 auto;
	padding: 48px 20px 80px;
	font-family: var(--tj-sans);
}

/* Breadcrumb, subtle (Kanva-style) */
.single-product .woocommerce-breadcrumb {
	max-width: var(--tj-maxw);
	margin: 0 auto 18px;
	padding: 0 20px;
	font-family: var(--tj-sans);
	font-size: 13px;
	color: var(--tj-muted);
}
.single-product .woocommerce-breadcrumb a {
	color: var(--tj-muted);
	text-decoration: none;
}
.single-product .woocommerce-breadcrumb a:hover {
	color: var(--tj-ink);
}

/* Two-column layout: gallery | summary */
.single-product div.product .woocommerce-product-gallery,
.single-product div.product .tj-gallery-wrap,
.single-product div.product .summary {
	float: none !important;
	margin: 0 !important;
}
.single-product div.product .woocommerce-product-gallery,
.single-product div.product .tj-gallery-wrap {
	width: 42% !important;
}
.single-product div.product .summary {
	width: 54% !important;
}
/* Variable products show prices on the size cards, so hide the top range */
.single-product .product-type-variable .summary > .price {
	display: none;
}
.single-product div.product {
	display: flex;
	flex-wrap: wrap;
	gap: 4%;
	align-items: flex-start;
}

/* Gallery image gets the same white "frame" as the cards */
.single-product .woocommerce-product-gallery {
	background: var(--tj-frame);
	padding: 16px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .10);
}
.single-product .woocommerce-product-gallery__image img {
	display: block;
}

/* Title + price */
.single-product .product_title {
	font-family: var(--tj-serif);
	font-weight: 500;
	font-size: clamp(30px, 4vw, 46px);
	color: var(--tj-ink);
	margin: 0 0 16px;
}
.single-product .summary .price,
.single-product .summary .price .amount {
	font-family: var(--tj-sans);
	font-size: 20px;
	color: var(--tj-muted) !important;
}
.single-product .summary .price {
	margin-bottom: 28px;
}

/* Quantity + add-to-cart, brand-dark instead of purple */
.single-product .quantity input.qty {
	height: 48px;
	border: 1px solid var(--tj-line);
	background: #fff;
	color: var(--tj-ink);
	border-radius: 2px;
}
.single-product .single_add_to_cart_button.button, #fkcart-modal .fkcart-checkout-wrap #fkcart-checkout-button {
	background: var(--tj-ink) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 2px !important;
	padding: 0 34px !important;
	height: 48px;
	line-height: 48px !important;
	font-family: var(--tj-sans);
	font-size: 13px;
	letter-spacing: .1em;
	text-transform: uppercase;
	transition: opacity .25s ease;
}
.single-product .single_add_to_cart_button.button:hover {
	opacity: .82;
}

/* Meta (category etc.) */
.single-product .product_meta {
	margin-top: 28px;
	font-size: 13px;
	color: var(--tj-muted);
	border-top: 1px solid var(--tj-line);
	padding-top: 20px;
}
.single-product .product_meta a {
	color: var(--tj-ink);
	text-decoration: none;
}

/* Tabs / reviews */
.single-product .woocommerce-tabs {
	width: 100%;
	margin-top: 64px;
}
.single-product .woocommerce-tabs ul.tabs {
	border-bottom: 1px solid var(--tj-line);
	padding: 0;
}
.single-product .woocommerce-tabs ul.tabs::before { border: 0; }
.single-product .woocommerce-tabs ul.tabs li {
	background: transparent;
	border: 0;
	border-radius: 0;
}
.single-product .woocommerce-tabs ul.tabs li.active {
	border-bottom: 2px solid var(--tj-ink);
}
.single-product .woocommerce-tabs ul.tabs li a {
	color: var(--tj-ink) !important;
	font-family: var(--tj-sans);
	font-weight: 500;
}
.single-product .woocommerce-Tabs-panel h2,
.single-product #reviews h2,
.single-product #reviews h3 {
	font-family: var(--tj-serif);
	color: var(--tj-ink);
	font-weight: 500;
}
.single-product #reviews,
.single-product #reviews p,
.single-product #reviews label {
	color: var(--tj-ink);
}
.single-product .comment-form-rating .stars a { color: var(--tj-ink); }
.single-product #reviews textarea,
.single-product #reviews input[type="text"],
.single-product #reviews input[type="email"] {
	background: #fff;
	border: 1px solid var(--tj-line);
	color: var(--tj-ink);
	border-radius: 2px;
}
.single-product #reviews .submit,
.single-product #respond .submit {
	background: var(--tj-ink) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 2px !important;
	text-transform: uppercase;
	letter-spacing: .1em;
	font-size: 13px;
}

/* Related products reuse the card grid look automatically via .products */
.single-product .related.products > h2 {
	font-family: var(--tj-serif);
	font-weight: 500;
	color: var(--tj-ink);
	text-align: center;
	margin: 72px 0 32px;
	font-size: clamp(24px, 3vw, 32px);
}
.single-product .related.products ul.products {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 40px 32px;
	max-width: var(--tj-maxw);
	margin: 0 auto;
	list-style: none;
	padding: 0;
}
.single-product .related.products ul.products::before,
.single-product .related.products ul.products::after { content: none; }

@media (max-width: 768px) {
	.single-product div.product { display: block; }
	.single-product div.product .woocommerce-product-gallery,
	.single-product div.product .summary { width: 100% !important; }
	.single-product div.product .summary { margin-top: 28px !important; }
	.single-product .related.products ul.products { grid-template-columns: repeat(2, 1fr); }
}

/* Hide the flexslider text prev/next controls under the gallery
   (thumbnails already provide navigation).                       */
.single-product .woocommerce-product-gallery .flex-direction-nav {
	display: none;
}

/* =========================================================
   SINGLE PRODUCT — Kanva-inspired refinements
   ========================================================= */

/* Soft rounded gallery "card" instead of the white frame */
.single-product .woocommerce-product-gallery {
	background: #eceee8;
	border-radius: 12px;
	padding: 10px;
	box-shadow: none;
}
.single-product .woocommerce-product-gallery__image img {
	border-radius: 10px;
}
.single-product .woocommerce-product-gallery .flex-viewport {
	border-radius: 10px;
	overflow: hidden;
}
/* Zoom/lightbox trigger as a soft round button */
.single-product .woocommerce-product-gallery__trigger {
	top: 24px;
	right: 24px;
	background: #fff;
	border-radius: 50%;
	width: 42px;
	height: 42px;
	box-shadow: 0 4px 12px rgba(0,0,0,.08);
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Price sits above the title now (moved via hook) */
.single-product .summary .price {
	order: -1;
	font-size: 18px;
	margin: 0 0 10px !important;
}

/* Short description */
.single-product .woocommerce-product-details__short-description {
	color: var(--tj-muted);
	font-size: 16px;
	line-height: 1.75;
	margin: 8px 0 30px;
	max-width: 46ch;
}

/* Add-to-cart row: quantity + full-width pill button (simple products only) */
.single-product form.cart:not(.variations_form) {
	display: flex;
	gap: 14px;
	align-items: stretch;
	margin: 8px 0 26px;
}
.single-product form.cart .quantity {
	flex: 0 0 auto;
	margin: 0;
}
.single-product .quantity input.qty {
	width: 84px;
	height: 54px;
	text-align: center;
	border-radius: 999px;
	border: 1px solid var(--tj-line);
	background: #fff;
	font-size: 16px;
}
.single-product .single_add_to_cart_button.button {
	flex: 1 1 auto;
	height: 54px;
	line-height: 54px !important;
	border-radius: 999px !important;
	font-size: 13px;
}

/* Trust row */
.single-product .tj-trust {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	padding: 0;
	margin: 0 0 30px;
	font-family: var(--tj-sans);
	font-size: 13px;
	color: var(--tj-muted);
}
.single-product .tj-trust li {
	display: flex;
	align-items: center;
	gap: 9px;
}
.single-product .tj-trust .tj-ico {
	color: var(--tj-ink);
	flex: 0 0 auto;
}

/* Feature tiles */
.single-product .tj-features {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin: 0 0 8px;
}
.single-product .tj-feature {
	background: #eceee8;
	border-radius: 14px;
	padding: 22px 12px 18px;
	min-height: 104px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	text-align: center;
	font-family: var(--tj-sans);
	font-size: 12px;
	line-height: 1.35;
	color: var(--tj-ink);
	letter-spacing: .01em;
	transition: background .3s ease;
}
.single-product .tj-feature:hover {
	background: #e5e8e0;
}
.single-product .tj-feature__ico {
	color: var(--tj-muted);
}

/* Divider above meta, tighter */
.single-product .product_meta {
	margin-top: 30px;
}

/* ---- Tabs + Reviews, refined -------------------------------- */
.single-product .woocommerce-tabs {
	max-width: 760px;
	margin: 72px auto 0;
}
.single-product #reviews .comment-form-rating .stars a {
	font-size: 22px;
	margin-right: 2px;
}
.single-product #reviews .commentlist,
.single-product #reviews .woocommerce-noreviews {
	font-size: 15px;
	color: var(--tj-muted);
}
.single-product #reviews #respond {
	background: #fff;
	border: 1px solid var(--tj-line);
	border-radius: 16px;
	padding: 30px 32px;
	margin-top: 24px;
}
.single-product #reviews #respond .comment-reply-title {
	font-family: var(--tj-serif);
	font-size: 22px;
	display: block;
	margin-bottom: 18px;
	color: var(--tj-ink);
}
.single-product #reviews label {
	font-size: 13px;
	letter-spacing: .02em;
	margin-bottom: 6px;
	display: inline-block;
}
.single-product #reviews textarea,
.single-product #reviews input[type="text"],
.single-product #reviews input[type="email"] {
	width: 100%;
	padding: 12px 14px;
	font-size: 15px;
}
.single-product #reviews textarea:focus,
.single-product #reviews input[type="text"]:focus,
.single-product #reviews input[type="email"]:focus {
	outline: none;
	border-color: var(--tj-ink);
	box-shadow: 0 0 0 3px rgba(28, 27, 25, .06);
}
.single-product #reviews .form-submit .submit,
.single-product #respond .form-submit .submit {
	height: 50px;
	line-height: 50px !important;
	padding: 0 40px !important;
	border-radius: 999px !important;
}

@media (max-width: 768px) {
	.single-product .woocommerce-product-gallery { padding: 20px; }
	.single-product .tj-features { grid-template-columns: repeat(2, 1fr); }
	.single-product form.cart { flex-wrap: wrap; }
	.single-product .single_add_to_cart_button.button { flex: 1 1 100%; }
	.single-product #reviews #respond { padding: 22px 18px; }
}

/* Space between the main image, the thumbnails, and the card edge */
.single-product .woocommerce-product-gallery .flex-control-thumbs {
	margin-top: 18px;
	margin-bottom: 6px;
}


ul.tabs.wc-tabs {
    display: none;
}
/* Add-to-cart button styled to match the site's Elementor button */
.single-product .single_add_to_cart_button.button {
	background-color: transparent !important;
	background-image: radial-gradient(at top left, var(--e-global-color-primary) 74%, #B48C4C8A 100%) !important;
	color: var(--e-global-color-35d6237) !important;
	fill: var(--e-global-color-35d6237);
	font-family: "Playfair Display", Georgia, serif !important;
	font-size: 17px !important;
	font-weight: 500 !important;
	text-transform: uppercase;
	letter-spacing: 1px;
	border: 1px solid var(--e-global-color-35d6237) !important;
	border-radius: 22px !important;
	padding: 16px 25px !important;
	height: auto !important;
	line-height: 1.3 !important;
}


.product_meta {
    display: none !important;
}

nav.woocommerce-breadcrumb {opacity: 0 !important;pointer-events: none;}
/* Custom − / + quantity stepper */
.single-product form.cart .quantity {
	display: flex;
	align-items: center;
	height: 54px;
	padding: 0 6px;
	background: #fff;
	border: 1px solid var(--tj-line);
	border-radius: 999px;
}
.single-product form.cart .quantity input.qty {
	width: 44px;
	height: 100%;
	border: 0 !important;
	background: transparent;
	border-radius: 0;
	text-align: center;
	font-size: 16px;
	-moz-appearance: textfield;
	appearance: textfield;
}
.single-product form.cart .quantity input.qty::-webkit-outer-spin-button,
.single-product form.cart .quantity input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.single-product .tj-qty-btn {
	width: 40px;
	height: 40px;
	flex: 0 0 auto;
	border: 0;
	background: transparent;
	border-radius: 50%;
	color: var(--tj-ink);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s ease;
}
.single-product .tj-qty-btn:hover {
	background: #f0ede7;
}
.single-product .tj-qty-btn:focus-visible {
	outline: 2px solid var(--tj-ink);
	outline-offset: 1px;
}

.woocommerce div.product div.images .flex-control-thumbs li {
    padding: 0;
    border-radius: 5px;
    overflow: hidden;
}

ol.flex-control-nav.flex-control-thumbs {
    display: flex;
    gap: 5px;
    margin-top: 10px !important;
}
/* =========================================================
   WooCommerce notices (added-to-cart, info, error) — branded
   ========================================================= */
.woocommerce-notices-wrapper {
	max-width: var(--tj-maxw);
	margin: 0 auto;
	padding: 24px 20px 0;
}
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	display: flex;
	align-items: center;
	gap: 14px;
	background: #fff;
	border: 1px solid var(--tj-line);
	border-radius: 12px;
	padding: 16px 22px;
	margin: 0 0 20px;
	color: var(--tj-ink);
	font-family: var(--tj-sans);
	font-size: 15px;
	line-height: 1.4;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
	list-style: none;
}
/* Replace Woo's icon-font glyph with a drawn gold check */
.woocommerce-message::after,
.woocommerce-info::after,
.woocommerce-error::after {
	content: none !important;
}
body .woocommerce-message::before,
body .woocommerce-info::before,
body .woocommerce-error::before {
	content: "" !important;
	font-family: var(--tj-sans) !important;
	position: static !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	display: block !important;
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	color: transparent;
	background-color: var(--e-global-color-primary);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 15px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 15px no-repeat;
	border-radius: 50%;
	border: 1.5px solid var(--e-global-color-primary);
	box-sizing: content-box;
	padding: 3px;
}
/* "View cart" / undo button pushed right, branded dark pill */
.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
	margin-left: auto;
	flex: 0 0 auto;
	background: var(--tj-ink) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 999px !important;
	padding: 9px 22px !important;
	font-family: var(--tj-sans) !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	letter-spacing: .08em;
	text-transform: uppercase;
	transition: opacity .25s ease;
}
.woocommerce-message .button:hover,
.woocommerce-info .button:hover,
.woocommerce-error .button:hover {
	opacity: .82;
}
.woocommerce-error {
	border-color: rgba(179, 38, 30, .35);
}
.woocommerce-error::before {
	background: #b3261e;
	border-color: #b3261e;
}

@media (max-width: 600px) {
	.woocommerce-message,
	.woocommerce-info,
	.woocommerce-error {
		flex-wrap: wrap;
	}
	.woocommerce-message .button,
	.woocommerce-info .button {
		margin-left: 0;
		width: 100%;
		text-align: center;
	}

	.single-product div.product {
		padding: 1px 15px 80px;
	}
	.single-product .elementor-menu-toggle {
		background: #000 !important;
	}
}
