/* ==========================================================================
   Venya Refinements — loaded after the theme's main.css.
   Usability and layout fixes from the Nov 2026 site audit.
   ========================================================================== */

/* --- 1. Page backdrop ------------------------------------------------------
   Replaces the Mahabharata paintings in the desktop gutters with a quiet,
   on-brand warm linen backdrop drawn in CSS: no image downloads, and it no
   longer competes with the product photography. */
@media (min-width: 1024px) {
	html body {
		background:
			radial-gradient(1100px 760px at 0% 0%, rgba(201, 168, 140, 0.42), transparent 62%) fixed,
			radial-gradient(1000px 720px at 100% 100%, rgba(156, 78, 43, 0.14), transparent 60%) fixed,
			repeating-linear-gradient(135deg, rgba(156, 78, 43, 0.032) 0 1px, transparent 1px 11px) fixed,
			repeating-linear-gradient(45deg, rgba(156, 78, 43, 0.022) 0 1px, transparent 1px 11px) fixed,
			#EFE4D6;
	}

	.venya-site {
		box-shadow: 0 0 0 1px rgba(156, 78, 43, 0.06), 0 24px 70px rgba(51, 37, 30, 0.10);
	}
}

/* --- 2. Comfortable tap targets (44px minimum) ---------------------------- */
.venya-nav-toggle,
.venya-header-icons a,
.venya-header-icon-btn {
	min-width: 44px;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.venya-header-icons {
	gap: 2px;
}

@media (max-width: 1023px) {
	.venya-footer-col {
		gap: 0;
	}

	.venya-footer-col a {
		display: inline-block;
		padding-block: 7px;
	}

	.venya-footer-col-title {
		margin-bottom: 4px;
	}
}

/* --- 3. Readable small text ------------------------------------------------- */
.venya-footer-col-title {
	font-size: 11px;
}

.venya-form-field label {
	font-size: 12px;
}

/* --- 4. Cookie notice: compact on phones so it doesn't hide the page --------- */
@media (max-width: 767px) {
	.venya-cookie-banner {
		left: 10px;
		right: 10px;
		bottom: 10px;
		padding: 12px 14px;
		border-radius: 12px;
	}

	.venya-cookie-banner-inner {
		gap: 10px;
	}

	.venya-cookie-copy strong {
		font-size: 14px;
		margin-bottom: 2px;
	}

	.venya-cookie-copy p {
		font-size: 12px;
		line-height: 1.45;
	}

	.venya-cookie-actions {
		flex-wrap: nowrap;
		gap: 8px;
	}

	.venya-cookie-actions .venya-cookie-btn {
		flex: 1 1 0;
		padding: 10px 8px;
		font-size: 11px;
		letter-spacing: 1px;
		min-height: 40px;
	}
}

/* --- 5. Category tiles: keep captions off the models' faces ----------------- */
.venya-category-image {
	align-items: flex-end;
	padding-bottom: 12px;
}

@media (max-width: 1023px) {
	/* The category name is printed right under each tile on phones. */
	.venya-category-image .venya-placeholder-caption {
		display: none;
	}
}

.venya-instagram-item {
	align-items: flex-end;
	padding-bottom: 10px;
}

/* --- 6. Product cards ----------------------------------------------------- */
/* Long price ranges wrap neatly instead of colliding with the button. */
.venya-product-price-row {
	flex-wrap: wrap;
	gap: 4px 8px;
}

/* Only show star ratings when a product has real reviews. */
.venya-loop-stars {
	display: none;
}

.venya-has-reviews .venya-loop-stars {
	display: inline;
}

/* --- 7. Cart on phones: one tidy card per item ---------------------------- */
@media (max-width: 767px) {
	table.shop_table.cart thead {
		display: none;
	}

	table.shop_table.cart tbody tr.cart_item {
		display: grid;
		grid-template-columns: 76px 1fr auto;
		grid-template-areas:
			"thumb name remove"
			"thumb price price"
			"thumb qty subtotal";
		gap: 6px 12px;
		align-items: center;
		padding: 16px 0;
		border-bottom: 1px solid var(--color-border);
	}

	table.shop_table.cart tbody tr.cart_item td {
		display: block;
		padding: 0;
		border: 0;
		width: auto;
		text-align: left;
	}

	table.shop_table.cart tbody tr.cart_item td::before {
		display: none;
		content: none;
	}

	table.shop_table.cart tr.cart_item .product-thumbnail {
		grid-area: thumb;
		width: 76px;
		align-self: start;
	}

	table.shop_table.cart tr.cart_item .product-thumbnail img {
		width: 76px;
		height: 76px;
	}

	table.shop_table.cart tr.cart_item .product-name {
		grid-area: name;
	}

	table.shop_table.cart tr.cart_item .product-name a {
		font-size: 15px;
		line-height: 1.3;
		margin: 0;
	}

	table.shop_table.cart tr.cart_item .product-remove {
		grid-area: remove;
		align-self: start;
	}

	table.shop_table.cart tr.cart_item .product-remove a.remove {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 36px;
		min-height: 36px;
		padding: 0;
	}

	table.shop_table.cart tr.cart_item .product-price {
		grid-area: price;
		font-size: 13px;
		font-weight: 500;
		color: var(--color-text-muted);
	}

	table.shop_table.cart tr.cart_item .product-price .woocommerce-Price-amount {
		font-size: 13px;
		font-weight: 600;
	}

	table.shop_table.cart tr.cart_item .product-price::after {
		content: " each";
	}

	table.shop_table.cart tr.cart_item .product-quantity .quantity {
		max-width: 124px;
	}

	table.shop_table.cart tr.cart_item .product-subtotal .woocommerce-Price-amount {
		font-size: 16px;
	}

	table.shop_table.cart tr.cart_item .product-quantity {
		grid-area: qty;
	}

	table.shop_table.cart tr.cart_item .product-subtotal {
		grid-area: subtotal;
		text-align: right;
	}

	table.shop_table.cart tbody tr:not(.cart_item) {
		display: block;
	}

	table.shop_table.cart tbody tr:not(.cart_item) td {
		display: block;
		width: 100%;
	}
}
