/* =========================================================
STORE NOTICE
========================================================= */

/* Store notice should sit in normal flow, not cover header */
p.woocommerce-store-notice.demo_store {
	position: relative !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	bottom: auto !important;
	width: 100%;
	margin: 0;
	z-index: 20;
	box-sizing: border-box;

	transition: transform 0.3s ease, opacity 0.3s ease, max-height 0.3s ease, padding 0.3s ease, margin 0.3s ease;

	transform: translateY(0);
	opacity: 1;
	max-height: 200px;
	overflow: hidden;
}

/* Hide notice on scroll */
body.vgd-store-notice-hidden p.woocommerce-store-notice.demo_store {
	transform: translateY(-100%);
	opacity: 0;
	max-height: 0;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	border: 0 !important;
	margin: 0 !important;
	overflow: hidden;
}

/* Header layer */
.vgd-site-header,
.vgd-site-header.is-sticky {
	z-index: 900;
}

a {
	margin: 5px;
}
/* =========================================================
SHOP GRID
========================================================= */

.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
	align-items: stretch;
}

/* Remove WooCommerce floats */
.woocommerce ul.products::before,
.woocommerce ul.products::after {
	display: none;
	content: none;
}

.woocommerce ul.products li.product,
.woocommerce ul.products li.product-category {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
	clear: none !important;
	display: flex;
}


/* =========================================================
PRODUCT CARD
========================================================= */

.woocommerce ul.products li.product.vgd-product-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100%;
	min-height: 100%;
	width: 100%;
	padding: 20px;

	border: 1px solid #e5e7eb;
	border-radius: 20px;
	background: #fff;

	box-sizing: border-box;
	overflow: hidden;
}

/* main clickable area */

.vgd-product-card-link {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	width: 100%;
	height: auto;
	text-decoration: none;
	color: inherit;
	position: relative;
	z-index: 1;
}

.vgd-product-card-actions {
	margin-top: 16px;
	width: 100%;
	position: relative;
	z-index: 3;
}

.vgd-product-card-actions .button,
.vgd-product-card-actions a.button,
.vgd-product-card-actions .added_to_cart {
	position: relative;
	z-index: 4;
	pointer-events: auto;
}
/* product image */

.woocommerce ul.products li.product.vgd-product-card img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: contain;

	display: block;
	margin: 0 0 16px;

	border-radius: 12px;
	background: #fff;
}

/* card body */

.vgd-product-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	width: 100%;
	gap: 10px;
}

/* product title */

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.35;
	font-weight: 700;
	word-break: break-word;
}

/* price */

.woocommerce ul.products li.product .price {
	margin-top: auto;
	font-size: 1rem;
	font-weight: 700;
}

/* buttons */

.vgd-product-card-actions {
	margin-top: 16px;
	width: 100%;
}

.vgd-product-card-actions .button,
.vgd-product-card-actions a.button,
.vgd-product-card-actions .added_to_cart {
	width: 100%;
	text-align: center;
	box-sizing: border-box;
}


/* =========================================================
CATEGORY CARD
========================================================= */

.woocommerce ul.products li.product-category a {
	display: flex;
	flex-direction: column;

	width: 100%;
	padding: 20px;

	border: 1px solid #e5e7eb;
	border-radius: 20px;
	background: #fff;

	text-decoration: none;
	color: inherit;
	box-sizing: border-box;
}

/* category image */

.woocommerce ul.products li.product-category img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;

	border-radius: 12px;
	margin-bottom: 16px;
}

/* category title */

.woocommerce ul.products li.product-category h2 {
	font-size: 1.2rem;
	font-weight: 700;
	margin: 0;
}

/* category product count */

.woocommerce ul.products li.product-category .count {
	font-size: 0.9rem;
	opacity: 0.6;
	margin-left: 6px;
}


/* =========================================================
RESPONSIVE
========================================================= */

/* Tablet */

@media (max-width: 991px) {

	.woocommerce ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px;
	}

}

/* Mobile */

@media (max-width: 767px) {

	.woocommerce ul.products {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.woocommerce ul.products li.product.vgd-product-card,
	.woocommerce ul.products li.product-category a {
		padding: 16px;
	}

}

/* Product page layout */
.single-product div.product {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 40px;
}

/* Gallery area */
.single-product .woocommerce-product-gallery {
    width: 48%;
    max-width: 550px;
}

/* Summary area */
.single-product .summary.entry-summary {
    flex: 1;
    min-width: 300px;
    margin-top: 0;
    padding-top: 0;
}

/* Product form fields */
.single-product form.cart input,
.single-product form.cart select {
    font-size: 16px;
    padding: 10px 14px;
    min-height: 42px;
}

/* Stack variation labels above fields */
.single-product table.variations,
.single-product table.variations tbody,
.single-product table.variations tr {
    display: block;
    width: 100%;
}

.single-product table.variations th,
.single-product table.variations td {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0;
}

.single-product table.variations tr {
    margin-bottom: 16px;
}

.single-product table.variations th {
    margin-bottom: 6px;
    font-weight: 600;
    text-align: left;
}

.single-product table.variations td.value {
    margin: 0;
}

.single-product table.variations select {
    width: 100%;
    max-width: 400px;
    text-align: left;
    margin-left: 0;
}

.single-product table.variations .reset_variations {
    display: inline-block;
    margin-top: 8px;
}

/* Mobile */
@media (max-width: 768px) {
    .single-product div.product {
        display: block;
    }

    .single-product .woocommerce-product-gallery,
    .single-product .summary.entry-summary {
        width: 100%;
        max-width: 100%;
    }
}

/* Active WooCommerce product tab */
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    background: #ffffff;
    border-bottom: 1px solid #ffffff;
}

/* Make the tab text darker for contrast */
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: #111;
}