/**
 * WooCommerce styling — White + Gold, RTL.
 * @package Koochakzadeh
 */

:root {
	--kz-gold: var(--wp--preset--color--gold, #c9a24b);
	--kz-gold-deep: var(--wp--preset--color--gold-deep, #b8860b);
	--kz-line: var(--wp--preset--color--line, #e4ddce);
	--kz-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* -------------------------------------------------------------------------
 * Buttons
 * ---------------------------------------------------------------------- */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.wc-block-components-button:not(.is-link) {
	background: var(--kz-gold-deep);
	color: #fff;
	border-radius: 999px;
	font-weight: 700;
	padding: 0.7em 1.6em;
	transition: background-color 0.3s ease, transform 0.3s var(--kz-ease), box-shadow 0.3s var(--kz-ease);
	border: none;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.wc-block-components-button:not(.is-link):hover {
	background: var(--kz-gold);
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(184, 134, 11, 0.3);
}
.woocommerce a.button.alt,
.woocommerce button.button.alt {
	background: var(--kz-gold-deep);
}

/* -------------------------------------------------------------------------
 * Prices
 * ---------------------------------------------------------------------- */
.woocommerce .price,
.woocommerce ul.products li.product .price,
.wc-block-components-product-price {
	color: var(--kz-gold-deep);
	font-weight: 700;
}
.woocommerce del { opacity: 0.5; }

/* -------------------------------------------------------------------------
 * Shop sidebar + grid
 * ---------------------------------------------------------------------- */
.kz-shop__sidebar {
	position: sticky;
	top: 100px;
	align-self: flex-start;
}
.kz-shop__sidebar h3 {
	border-bottom: 2px solid var(--kz-line);
	padding-bottom: 0.5rem;
}
.kz-shop__sidebar .wp-block-woocommerce-product-categories a {
	text-decoration: none;
}

/* Polished product search + sort controls */
.kz-shop-search {
	position: relative;
	padding: 0.35rem;
	border: 1px solid rgba(201, 162, 75, 0.45);
	border-radius: 999px;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(243, 238, 227, 0.86)),
		radial-gradient(circle at 12% 0%, rgba(230, 201, 118, 0.26), transparent 36%);
	box-shadow: 0 18px 44px rgba(43, 43, 43, 0.08);
}
.kz-shop-search .wp-block-search__inside-wrapper {
	gap: 0.35rem;
	border: none;
	padding: 0;
}
.kz-shop-search .wp-block-search__input {
	min-height: 3.2rem;
	border: none;
	border-radius: 999px;
	background: transparent;
	color: var(--wp--preset--color--ink, #1a1a1a);
	font: inherit;
	padding: 0 1rem;
}
.kz-shop-search .wp-block-search__input::placeholder {
	color: var(--wp--preset--color--muted, #7a7367);
}
.kz-shop-search .wp-block-search__button {
	margin: 0;
	min-height: 2.75rem;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--kz-gold-deep), var(--kz-gold));
	box-shadow: 0 10px 24px rgba(184, 134, 11, 0.26);
	white-space: nowrap;
}
.kz-shop-search:focus-within {
	border-color: var(--kz-gold);
	box-shadow: 0 18px 44px rgba(43, 43, 43, 0.1), 0 0 0 4px rgba(201, 162, 75, 0.14);
}

.kz-shop__main .wc-block-components-sort-select {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.35rem;
	color: var(--wp--preset--color--muted, #7a7367);
}
.kz-shop__main .wc-block-components-sort-select__label {
	margin: 0;
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--wp--preset--color--muted, #7a7367);
}
.kz-shop__main .wc-block-components-sort-select__select {
	min-width: min(100%, 16rem);
	min-height: 3rem;
	appearance: none;
	border: 1px solid rgba(201, 162, 75, 0.48);
	border-radius: 999px;
	background-color: #fff;
	background-image:
		linear-gradient(45deg, transparent 50%, var(--kz-gold-deep) 50%),
		linear-gradient(135deg, var(--kz-gold-deep) 50%, transparent 50%),
		linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(243, 238, 227, 0.9));
	background-position:
		left 1.2rem center,
		left 0.86rem center,
		center;
	background-size:
		0.42rem 0.42rem,
		0.42rem 0.42rem,
		100% 100%;
	background-repeat: no-repeat;
	box-shadow: 0 12px 28px rgba(43, 43, 43, 0.07);
	color: var(--wp--preset--color--ink, #1a1a1a);
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	padding: 0.65rem 1.2rem 0.65rem 2.45rem;
	transition: border-color 0.25s ease, box-shadow 0.25s var(--kz-ease), transform 0.25s var(--kz-ease);
}
.kz-shop__main .wc-block-components-sort-select__select:hover,
.kz-shop__main .wc-block-components-sort-select__select:focus {
	border-color: var(--kz-gold);
	box-shadow: 0 16px 34px rgba(184, 134, 11, 0.16);
	transform: translateY(-1px);
}

/* Product cards (block grid + classic loop) */
.wc-block-grid__product,
.woocommerce ul.products li.product,
.wc-block-components-product-image {
	transition: transform 0.4s var(--kz-ease);
}
.wc-block-grid__product:hover,
.woocommerce ul.products li.product:hover {
	transform: translateY(-6px);
}
.wc-block-grid__product-image img,
.woocommerce ul.products li.product img {
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(43, 43, 43, 0.08);
}
.wc-block-grid__product-title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-weight: 500;
}

/* -------------------------------------------------------------------------
 * Single product
 * ---------------------------------------------------------------------- */
.kz-single-product .woocommerce-product-gallery img {
	border-radius: 18px;
}
.kz-single-product .product_title {
	margin-bottom: 0.4em;
}
.kz-single-product .single_add_to_cart_button {
	padding: 0.9em 2.4em;
	font-size: 1.05rem;
}

/* Jewelry spec card */
.kz-specs {
	margin: 1.75rem 0;
	padding: 1.5rem;
	border-radius: 18px;
	background: linear-gradient(180deg, #fff 0%, var(--wp--preset--color--surface, #f3eee3) 100%);
	border: 1px solid var(--kz-line);
}
.kz-specs__title {
	font-size: 1.1rem;
	margin: 0 0 1rem;
	color: var(--kz-gold-deep);
}
.kz-specs__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.75rem 1.5rem;
	margin: 0;
}
.kz-specs__item {
	display: flex;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.6rem 0;
	border-bottom: 1px dashed var(--kz-line);
}
.kz-specs__item dt {
	color: var(--wp--preset--color--muted, #7a7367);
	margin: 0;
}
.kz-specs__item dd {
	margin: 0;
	font-weight: 700;
	color: var(--wp--preset--color--ink, #1a1a1a);
}

/* Tabs + reviews */
.woocommerce-tabs ul.tabs li.active,
.woocommerce-tabs ul.tabs li:hover {
	border-color: var(--kz-gold);
}
.woocommerce #reviews .star-rating,
.woocommerce .star-rating {
	color: var(--kz-gold-deep);
}

/* Breadcrumbs */
.woocommerce-breadcrumb,
.wc-block-breadcrumbs {
	font-size: 0.9rem;
	color: var(--wp--preset--color--muted, #7a7367);
	margin-bottom: 1.5rem;
}

/* -------------------------------------------------------------------------
 * Cart / Checkout / Mini-cart
 * ---------------------------------------------------------------------- */
.wc-block-cart__totals-title,
.wc-block-components-totals-item__label {
	font-weight: 500;
}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	color: var(--kz-gold-deep);
}
.wc-block-checkout__sidebar,
.wp-block-woocommerce-cart-totals-block {
	border-radius: 18px;
	background: var(--wp--preset--color--surface, #f3eee3);
	padding: 1.25rem;
}
.wc-block-mini-cart__button { font-weight: 700; }

/* -------------------------------------------------------------------------
 * My Account
 * ---------------------------------------------------------------------- */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid var(--kz-line);
}
.woocommerce-account .woocommerce-MyAccount-navigation li {
	border-bottom: 1px solid var(--kz-line);
}
.woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 0.85rem 1.1rem;
	text-decoration: none;
	transition: background-color 0.25s ease, color 0.25s ease;
}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
	background: var(--kz-gold-deep);
	color: #fff;
}

/* -------------------------------------------------------------------------
 * Responsive: collapse the shop sidebar above the grid on mobile
 * ---------------------------------------------------------------------- */
@media (max-width: 781px) {
	.kz-shop__sidebar {
		position: static;
	}
	.kz-shop__main .wc-block-components-sort-select {
		align-items: stretch;
		flex-direction: column;
	}
	.kz-shop__main .wc-block-components-sort-select__select {
		width: 100%;
	}
	.kz-specs__grid {
		grid-template-columns: 1fr;
	}
}
