/* =====================================================
 * Glow & Grace Shop — Elementor Widget Styles (Woo dynamic)
 * ===================================================== */

.gg-shop {
	--gg-slider-color: #b08d3e;
	--gg-slider-rail: #e4d9c8;
	display: flex;
	align-items: flex-start;
	gap: 40px;
}

.gg-shop.gg-no-sidebar {
	display: block;
}

.gg-notice {
	padding: 16px 20px;
	background: #fff6e5;
	border: 1px solid #e8ddce;
	border-radius: 4px;
	color: #6b5d3a;
	font-size: 14px;
}

/* ---------- Sidebar ---------- */
.gg-sidebar {
	flex: 0 0 230px;
	max-width: 230px;
	border-right: 1px solid #e8ddce;
	padding-right: 28px;
}

.gg-filter-heading {
	margin: 0 0 26px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #b08d3e;
}

.gg-filter-group {
	margin-bottom: 32px;
}

.gg-group-title {
	margin: 0 0 14px;
	font-size: 15px;
	font-weight: 600;
	color: #3d3227;
}

.gg-cats,
.gg-frags {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gg-cats li,
.gg-frags li {
	margin: 0 0 12px;
}

.gg-cat {
	font-size: 14px;
	color: #5f5548;
	text-decoration: none;
	transition: color 0.2s ease;
}

.gg-cat:hover,
.gg-cat.is-active {
	color: #b08d3e;
}

/* ---------- Price slider (dual handle) ---------- */
.gg-price-slider {
	position: relative;
	height: 20px;
	margin: 10px 4px 8px;
}

.gg-slider-rail {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 3px;
	transform: translateY(-50%);
	background: var(--gg-slider-rail);
	border-radius: 3px;
}

.gg-slider-fill {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0%;
	right: 0%;
	background: var(--gg-slider-color);
	border-radius: 3px;
}

.gg-price-slider .gg-range {
	-webkit-appearance: none;
	appearance: none;
	position: absolute;
	top: 81%;
	left: 0;
	width: 100%;
	height: 0;
	margin: 0;
	background: none;
	pointer-events: none;
	outline: none;
}

.gg-price-slider .gg-range::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--gg-slider-color);
	border: none;
	cursor: pointer;
	pointer-events: auto;
	transform: translateY(-50%);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.gg-price-slider .gg-range::-moz-range-thumb {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--gg-slider-color);
	border: none;
	cursor: pointer;
	pointer-events: auto;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.gg-price-labels {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	color: #5f5548;
}

/* ---------- Tag / fragrance checkboxes ---------- */
.gg-frag-item {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: #5f5548;
	cursor: pointer;
	transition: color 0.2s ease;
}

.gg-frag-item input {
	width: 15px;
	height: 15px;
	margin: 0;
	accent-color: #b08d3e;
	cursor: pointer;
}

/* ---------- Reset ---------- */
.gg-reset {
	font-size: 13px;
	color: #5f5548;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.gg-reset:hover {
	color: #b08d3e;
}

/* ---------- Main / sort bar ---------- */
.gg-main {
	flex: 1;
	min-width: 0;
}

.gg-sortbar {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 10px;
	margin-bottom: 28px;
}

.gg-sort-label {
	font-size: 13px;
	color: #5f5548;
}

.gg-sort {
	font-size: 13px;
	color: #3d3227;
	background: #fff;
	border: 1px solid #ddd2c0;
	border-radius: 3px;
	padding: 6px 10px;
	cursor: pointer;
	outline: none;
}

/* ---------- Product grid ---------- */
.gg-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	column-gap: 28px;
	row-gap: 44px;
	transition: opacity 0.2s ease;
}

/* AJAX loading state */
.gg-shop.gg-loading .gg-grid {
	opacity: 0.4;
	pointer-events: none;
}

.gg-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.gg-card-image {
	position: relative;
	display: block;
	width: 100%;
	height: 260px;
	overflow: hidden;
	margin-bottom: 18px;
}

.gg-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.gg-zoom-yes .gg-card:hover .gg-card-image img {
	transform: scale(1.06);
}

.gg-sale-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #fff;
	background: #b08d3e;
	padding: 4px 10px;
	border-radius: 2px;
}

.gg-card-title {
	margin: 0 0 8px;
	font-size: 17px;
	font-weight: 600;
	color: #3d3227;
}

.gg-card-title a {
	color: inherit;
	text-decoration: none;
}

.gg-card-price {
	font-size: 16px;
	font-weight: 700;
	color: #3d3227;
	margin-bottom: 14px;
}

/* WooCommerce sale price markup */
.gg-card-price del {
	font-weight: 400;
	opacity: 0.7;
	margin-right: 6px;
}

.gg-card-price ins {
	text-decoration: none;
}

.gg-card-btn {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	text-decoration: none;
	color: #fff;
	background: #b08d3e;
	padding: 11px 22px;
	border-radius: 2px;
	transition: background-color 0.25s ease, color 0.25s ease;
	cursor: pointer;
}

.gg-card-btn:hover {
	background: #96762f;
	color: #fff;
}

/* Woo "added" / loading states on ajax add to cart */
.gg-card-btn.loading {
	opacity: 0.7;
	pointer-events: none;
}

.gg-card-btn.added::after {
	content: ' ✓';
}

/* Woo ka "View cart" link jo add ke baad aata hai */
.gg-card .added_to_cart {
	margin-top: 8px;
	font-size: 12px;
	color: #b08d3e;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- Empty state ---------- */
.gg-empty {
	margin: 40px 0;
	text-align: center;
	font-size: 15px;
	color: #8a7d6b;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.gg-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.gg-shop {
		flex-direction: column;
	}
    .gg-main{
        min-width: 100%;
    }
	.gg-sidebar {
		flex: 1 1 auto;
		max-width: 100%;
		width: 100%;
		border-right: none;
		border-bottom: 1px solid #e8ddce;
		padding-right: 0;
		padding-bottom: 24px;
	}

	.gg-grid {
		grid-template-columns: 1fr;
	}
}
