
.namaha-quick-view-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.namaha-quick-view-modal .modal-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
}

.namaha-quick-view-modal .modal-loader:before {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px auto;
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.namaha-quick-view-modal .modal-inner {
	display: none;
	position: relative;
}

.namaha-quick-view-modal .modal-content {
	position: relative;
    background: #fff;
    padding: 20px;
    max-width: 600px;
    width: 100%;
    z-index: 1000;
}

.namaha-quick-view-modal .close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
	z-index: 1000;
}

/* Quick View button */

.namaha-image-wrap {
    position: relative;
}

.namaha-quick-view-wrap {
    position: absolute;
    bottom: 10px;
    left: 10px;
    opacity: 0;
    z-index: 9;
    transition: opacity 0.3s ease;
}

li.product:hover .namaha-quick-view-wrap {
    opacity: 1;
}

.namaha-quick-view-button {
    display: inline-block;
    background: rgba(0, 0, 0, 0.7); /* semi-transparent black */
    color: #FFF !important;
    padding: 8px 12px;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.namaha-quick-view-button:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Fully hide the button until JS moves it */
.namaha-quick-view-button.is-hidden {
	display: none !important;
}

/* Product layout */

.quick-view-content {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.quick-view-left,
.quick-view-right {
	flex: 1 1 45%;
}

.quick-view-content.product .image img {
	width: 100%;
	height: auto;
}

.image-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-gallery .main-product-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-bottom: 10px;
	transition: opacity 0.3s ease;
}

body.product-image-has-border .image-gallery .main-product-image {
	border: 1px solid #e0e0e0;
}

.product-gallery-thumbnails {
	width: 100%;
    list-style: none;
	padding-top: 1em;
	overflow: hidden;
    zoom: 1;
    margin: 0;
    padding: 0;
}

.product-gallery-thumbnails li {
	float: left;
	width: 30.75%;
	margin-right: 3.8%;
	margin-bottom: 1em;
}

.product-gallery-thumbnails li:nth-child(3n+1) {
    clear: left;
}

.product-gallery-thumbnails li:nth-child(3n+0) {
	clear: none;
	margin-right: 0;
}

.image-gallery .product-gallery-thumbnail {
	cursor: pointer;
	margin: 0;
	max-width: 100%;
	display: block;
    width: 100%;
    height: auto;
    box-shadow: none;
}

body.product-image-has-border .image-gallery .product-gallery-thumbnail {
	border: 1px solid #e0e0e0;
}

body.product-image-has-border .image-gallery .product-gallery-thumbnail:hover {
	border: 1px solid rgba(0, 0, 0, 0.2);
}

.image-gallery .product-gallery-thumbnail.active {
}

.quick-view-content.product .title {
	margin-top: 0;
	font-size: 24px;
}

.quick-view-content.product .price {
	font-size: 18px;
	font-weight: bold;
	color: #444;
	margin: 10px 0;
}

.quick-view-content.product .description {
	margin-bottom: 20px;
	color: #666;
	font-size: 14px;
}
