/* Chourangi custom WooCommerce shop layout — [chourangi_shop] shortcode
   and the Shop page template (woocommerce/archive-product.php). */

.chourangi-main--shop {
	padding-top: 24px;
}

.chourangi-shop {
	margin-bottom: 64px;
}

.chourangi-shop__search {
	position: relative;
	max-width: 420px;
	margin: 0 auto 32px;
}

.chourangi-shop__search input {
	width: 100%;
	padding: 12px 44px 12px 16px;
	border: 1px solid var(--chourangi-sand);
	background-color: var(--chourangi-cream);
	font-family: var(--chourangi-font-body);
	font-size: 14px;
	color: var(--chourangi-black);
}

.chourangi-shop__search input:focus {
	outline: none;
	border-color: var(--chourangi-antique-gold);
}

.chourangi-shop__search svg {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--chourangi-antique-gold);
	pointer-events: none;
}

.chourangi-shop__tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0 0 56px;
	position: sticky;
	top: 0;
	z-index: 20;
	background-color: var(--chourangi-cream);
	padding: 16px 0;
	border-bottom: 1px solid var(--chourangi-sand);
}

.chourangi-shop__tab {
	padding: 8px 18px;
	font-family: var(--chourangi-font-body);
	font-size: 13px;
	font-weight: 400;
	color: var(--chourangi-black);
	border: 1px solid var(--chourangi-sand);
	white-space: nowrap;
}

.chourangi-shop__tab {
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.chourangi-shop__tab:hover {
	background-color: var(--chourangi-antique-gold);
	border-color: var(--chourangi-antique-gold);
	color: var(--chourangi-white);
}

.chourangi-shop__tab.is-active {
	background-color: var(--chourangi-antique-gold);
	border-color: var(--chourangi-antique-gold);
	color: var(--chourangi-white);
}

/* Mobile category dropdown — hidden on desktop, shown in place of the tab
   row below the 900px breakpoint (see responsive.css). */
.chourangi-shop__tabs-mobile {
	display: none;
	position: sticky;
	top: 0;
	z-index: 20;
	background-color: var(--chourangi-cream);
	padding: 16px 0;
	margin: 0 0 40px;
	border-bottom: 1px solid var(--chourangi-sand);
}

.chourangi-shop__tabs-mobile select {
	width: 100%;
	appearance: none;
	-webkit-appearance: none;
	padding: 12px 40px 12px 16px;
	border: 1px solid var(--chourangi-sand);
	background-color: var(--chourangi-white);
	font-family: var(--chourangi-font-body);
	font-size: 14px;
	font-weight: 500;
	color: var(--chourangi-black);
}

.chourangi-shop__tabs-mobile select:focus {
	outline: none;
	border-color: var(--chourangi-antique-gold);
}

.chourangi-shop__tabs-mobile svg {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--chourangi-antique-gold);
	pointer-events: none;
}

.chourangi-shop__category {
	margin-bottom: 64px;
	scroll-margin-top: 120px;
}

.chourangi-shop__cat-title {
	font-family: var(--chourangi-font-heading);
	font-weight: 300;
	font-size: 36px;
	color: var(--chourangi-black);
	margin: 0 0 28px;
}

.chourangi-shop__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(var(--chourangi-shop-grid-min, 220px), 1fr));
	gap: 28px;
}

/* Product card */
.chourangi-product-card {
	cursor: pointer;
}

.chourangi-product-card__image {
	position: relative;
	aspect-ratio: 1 / 1;
	background-color: var(--chourangi-sand);
	overflow: hidden;
	margin-bottom: 12px;
	border: 1px solid var(--chourangi-sand);
	box-shadow: 0 1px 3px rgba(34, 30, 24, 0.06);
	transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.chourangi-product-card:hover .chourangi-product-card__image {
	box-shadow: 0 14px 28px rgba(34, 30, 24, 0.14);
	border-color: var(--chourangi-antique-gold);
	transform: translateY(-4px);
}

.chourangi-product-card__image::before {
	content: '';
	position: absolute;
	inset: 0;
	border: 1px solid var(--chourangi-light-gold);
	pointer-events: none;
	z-index: 1;
}

.chourangi-product-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.chourangi-product-card:hover .chourangi-product-card__image img {
	transform: scale(1.05);
}

.chourangi-product-card.is-sold-out {
	cursor: default;
}

.chourangi-product-card.is-sold-out .chourangi-product-card__image img {
	opacity: 0.5;
}

.chourangi-product-card__soldout {
	position: absolute;
	left: 10px;
	bottom: 10px;
	z-index: 2;
	background-color: var(--chourangi-white);
	color: var(--chourangi-black);
	font-family: var(--chourangi-font-body);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 5px 10px;
}

.chourangi-product-card__add {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: none;
	background-color: var(--chourangi-white);
	color: var(--chourangi-black);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.chourangi-product-card__add:hover {
	background-color: var(--chourangi-antique-gold);
	color: var(--chourangi-white);
}

.chourangi-product-card__price {
	font-family: var(--chourangi-font-body);
	font-size: 13px;
	color: var(--chourangi-antique-gold);
	margin: 0 0 4px;
}

.chourangi-product-card__name {
	font-family: var(--chourangi-font-heading);
	font-weight: 400;
	font-size: 19px;
	color: var(--chourangi-black);
	margin: 0 0 4px;
}

.chourangi-product-card.is-sold-out .chourangi-product-card__name,
.chourangi-product-card.is-sold-out .chourangi-product-card__price {
	color: #999999;
}

.chourangi-product-card__desc {
	font-family: var(--chourangi-font-body);
	font-weight: 300;
	font-size: 13px;
	color: #777777;
	margin: 0;
}

/* Quick-view panel */
.chourangi-quickview {
	position: fixed;
	inset: 0;
	z-index: 2000;
	visibility: hidden;
	pointer-events: none;
}

.chourangi-quickview.is-open {
	visibility: visible;
	pointer-events: auto;
}

.chourangi-quickview__overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(34, 30, 24, 0.5);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.chourangi-quickview.is-open .chourangi-quickview__overlay {
	opacity: 1;
}

.chourangi-quickview__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 480px;
	max-width: 92vw;
	background-color: var(--chourangi-white);
	transform: translateX(100%);
	transition: transform 0.35s ease;
	overflow-y: auto;
	box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
}

.chourangi-quickview.is-open .chourangi-quickview__panel {
	transform: translateX(0);
}

.chourangi-quickview__close {
	position: absolute;
	top: 20px;
	left: 20px;
	z-index: 2;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid var(--chourangi-sand);
	background-color: var(--chourangi-white);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.chourangi-quickview__image {
	position: relative;
	aspect-ratio: 4 / 3;
	background-color: var(--chourangi-sand);
	overflow: hidden;
}

.chourangi-quickview__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.chourangi-quickview__body {
	padding: 32px;
}

.chourangi-quickview__body h3 {
	font-family: var(--chourangi-font-heading);
	font-weight: 400;
	font-size: 30px;
	color: var(--chourangi-black);
	margin: 0 0 12px;
}

.chourangi-quickview__body p {
	font-family: var(--chourangi-font-body);
	font-weight: 300;
	font-size: 14px;
	color: #777777;
	margin: 0 0 28px;
}

.chourangi-quickview__qty {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 0;
	border-top: 1px solid var(--chourangi-sand);
	border-bottom: 1px solid var(--chourangi-sand);
	margin-bottom: 28px;
}

.chourangi-quickview__qty-label {
	font-family: var(--chourangi-font-body);
	font-size: 14px;
	color: var(--chourangi-black);
}

.chourangi-quickview__qty-controls {
	display: flex;
	align-items: center;
	gap: 18px;
}

.chourangi-quickview__qty-controls button {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid var(--chourangi-sand);
	background: none;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}

.chourangi-quickview__qty-controls button:hover {
	border-color: var(--chourangi-antique-gold);
	color: var(--chourangi-antique-gold);
}

#chourangi-qv-qty {
	font-family: var(--chourangi-font-body);
	font-size: 16px;
	min-width: 16px;
	text-align: center;
}

#chourangi-qv-add {
	width: 100%;
	justify-content: center;
}

body.chourangi-no-scroll {
	overflow: hidden;
}

/* Below tablet width the wrapped multi-row tab list gets tall — swap it for
   a single-line dropdown instead. */
@media (max-width: 640px) {
	.chourangi-shop__tabs {
		display: none;
	}

	.chourangi-shop__tabs-mobile {
		display: block;
	}
}
