.lookbook-grid {
	display: grid;
	grid-template-columns: var(--grid-4);
	gap: var(--space-s);
}

.look-item {
	position: relative;
	cursor: pointer;
	overflow: hidden;
	background-color: #f9f9f9;
	transition: transform 0.3s ease;
}

.look-item:hover {
	transform: scale(1.05);
}

.look-item img {
	width: 100%;
	height: auto;
	display: block;
}

/* Modal styles */
.look-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	display: flex;
	z-index: 1000;
	padding-top: 100px;
}

.look-modal {
	display: none;
}

.modal-content {
	background-color: white;
	width: 80%;
	max-width: 1000px;
	margin: auto;
	position: relative;
	display: flex;
	flex-direction: column;
}

/* Modal close button */
.modal-close {
	position: fixed;
	top: 20px;
	right: 20px;
	font-size: 24px;
	cursor: pointer;
	color: white;
	z-index: 1002;
}

/* Modal counter */
.modal-counter {
	position: fixed;
	top: 20px;
	left: 20px;
	font-size: 16px;
	color: white;
	z-index: 1002;
}

/* Navigation arrows */
.modal-prev, .modal-next {
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
	font-size: 36px;
	color: white;
	cursor: pointer;
	user-select: none;
	z-index: 1001;
}

.modal-prev {
	left: 20px;
}

.modal-next {
	right: 20px;
}

/* Modal grid layout */
.modal-grid {
	display: flex;
}

.modal-media img {
	width: 100%;
	height: auto;
}

.modal-products {
	flex: 2;
	max-height: 600px;
	overflow-y: auto;
	padding: 0;
	position: relative;
}

.modal-products-title {
	width: 100%;
	padding: var(--space-xs) var(--space-m);
	border-bottom: 1px solid #ddd;
	text-align: center;
	font-weight: 600;
	color: #333;
	font-weight: 500;
	font-size: var(--text-s);
	position: sticky;
	top: 0px;
	background: var(--white);
}

.modal-products ul.modal-products-grid {
	list-style-type: none;
	padding: 0 var(--space-s);
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: 1fr;
	grid-gap: var(--space-s) var(--space-s);
	margin: 0;
}

.modal-products li.card-products {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
}

/* Product card structure */

.card-products__img-wrapper {
	flex: 1;
}

.card-products__img {
	margin: 0;
}

.card-products__img img {
	width: 100%;
	height: auto;
}

.card-products__info {
	flex-direction: column;
	row-gap: var(--space-xs);
	padding-top: var(--space-xs);
	padding-right: 0;
	padding-bottom: var(--space-xs);
	padding-left: 0;
	justify-content: space-between;
	flex-grow: 1;
	display: flex;
}

.card-products__info-bottom {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	row-gap: var(--space-xs);
	width: 100%;
}

.card-products__title {
	text-align: center;
	line-height: 1.33;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	color: #333;
	width: 100%;
	padding-right: var(--space-xs);
	padding-left: var(--space-xs);
}

.card-products__title a {
	text-decoration: none;
}

.card-products__price {
	text-align: center;
	font-size: var(--text-s);
}

span.woocommerce-Price-amount.amount {
	color: var(--neutral-trans-40);
}

.card-products__price del {
	color: var(--bricks-text-light);
	margin-right: 5px;
}

.card-products__price ins {
	color: var(--primary);
	font-size: var(--text-l);
	font-weight: 600;
	text-decoration: none;
}

.card-products__price ins .woocommerce-Price-amount {
	color: var(--primary);
}

.card-products__add-to-cart {
}

.card-products__add-to-cart form {
	display: grid;
	grid-template-columns: 1fr 3fr;
	grid-template-rows: 1fr;
	grid-column-gap: 6px;
	grid-row-gap: 0px;
}

.card-products__add-to-cart input:not([type=submit]) {
	font-size: 14px;
	padding: 0 5px;
	text-align: center;
}

.card-products__add-to-cart button {
	color: var(--text-dark);
	font-size: var(--text-xs);
	font-weight: 600;
	text-transform: capitalize;
	background-color: rgba(0, 0, 0, 0);
	border: 1px solid #ddd;
	text-align: center;
	transition: var(--link-transition, var(--transition));
}

.card-products__add-to-cart button:hover {
	background-color: var(--black);
	color: var(--white);
}

@media (max-width: 768px) {
	.lookbook-grid {
		grid-template-columns: var(--grid-2);
	}

	.look-modal {
		padding-top: 50px;
	}

	.modal-grid {
		flex-direction: column;
	}

	.modal-products {
		max-height: 430px;
	}

	.modal-prev {
		left: 10px;
	}

	.modal-next {
		right: 10px;
	}

}

/* Product count badge */
.product-count-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    padding: 2px 9px 0px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    z-index: 1;
    animation: pulse 1.5s 3;
}

/* Pulsating animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}