/* Quick View Modal */

.quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.product-details {
    overflow-y: auto;
    padding-right: 4px;
    height: 100%;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color 0.3s;
}

.product-details:hover {
    scrollbar-color: #1c7e6e #f0f0f0;
}

.product-details::-webkit-scrollbar {
    width: 8px;
    background: transparent;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-details:hover::-webkit-scrollbar {
    background: #f0f0f0;
    opacity: 1;
}

.product-details::-webkit-scrollbar-thumb {
    background: #b2dfdb;
    border-radius: 6px;
    transition: background 0.3s;
}

.product-details:hover::-webkit-scrollbar-thumb {
    background: #1c7e6e;
}

.product-details::-webkit-scrollbar-track {
    background: transparent;
}

.product-details::-webkit-scrollbar {
    width: 8px;
    background: #f0f0f0;
}

.product-details::-webkit-scrollbar-thumb {
    background: #1c7e6e;
    border-radius: 4px;
}

.product-details::-webkit-scrollbar-track {
    background: #f0f0f0;
}


.quick-view-modal.show {
    opacity: 1;
    visibility: visible;
}

.quick-view-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.quick-view-modal.show .quick-view-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    z-index: 10;
}

.quick-view-modal .quick-view-content {
    border-radius: 5px;
}


.quick-view-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: stretch;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;

    /* ✅ Fixed height to sync both columns */
    height: 425px;
}

/* .quick-view-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  } */

.product-gallery {
    position: relative;
}

.product-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.thumbnail-item {
    width: 60px;
    height: 60px;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
}

.thumbnail-item.active {
    border-color: #1c7e6e;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Details */
.product-details {
    padding: 0 0 0 10px;
}

.product-title {
    font-size: 22px;
    margin: 0 0 8px 0;
    color: #333;
    line-height: 1.2;
}

.product-price {
    font-size: 20px;
    font-weight: 600;
    color: #1c7e6e;
    margin: 5px 0 8px;
}

.product-description {
    margin: 10px 0 15px;
    line-height: 1.5;
    color: #666;
    font-size: 15px;
}

/* Variations */
.variations {
    margin: 10px 0;
}

.variation-row {
    margin-bottom: 15px;
}

.variation-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.variation-row select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
}

.quantity {
    margin: 12px 0 10px;
}

.quantity input {
    width: 70px;
    padding: 8px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .quick-view-grid {
        grid-template-columns: 1fr;
    }

    .quick-view-content {
        width: 95%;
        padding: 20px;
    }
}

/* Product Action Buttons */
.product-action-buttons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 99;
    opacity: 1;
    transition: all 0.3s ease;
    pointer-events: none;
    overflow: hidden;
}

/* .product:hover .product-action-buttons {
    opacity: 1;
    pointer-events: auto;
  } */

/* Product card styling */
.product {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Style product cards only on archive/shop pages */
.post-type-archive-product .product,
.tax-product_cat .product,
.woocommerce-shop .product,
.woocommerce-archive .product {
    background-color: #ffffff;
    padding: 0px;
    border-radius: 0px;
    box-sizing: border-box;
}

/* Ensure the image takes full width */
.product img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}


.product-action-buttons {
    position: absolute;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 5px;
}


/* Ensure product containers have positioning context */
.woocommerce ul.products li.product,
.products .product,
.wc-block-grid__product {
    position: relative !important;
    overflow: visible !important;
}


/* Container styling */
.product a {
    position: relative !important;
    /* display: inline-block !important; */
    font-size: 16px;
    line-height: 1.6em;
}


/* Remove any overlay effects */
.product a::before,
.product a::after {
    display: none !important;
}

/* Quick View Modal */
.quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.quick-view-modal.show {
    opacity: 1;
    visibility: visible;
}

.quick-view-content {
    background: #fff;
    width: 100%;
    max-width: 800px;
    position: relative;
    border-radius: 0px;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.quick-view-modal.show .quick-view-content {
    transform: translateY(0);
}

.quick-view-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
    gap: 30px;
}

/* Product Gallery with Thumbnails */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #fff;
    min-height: 400px;
}

.product-image {
    border-radius: 8px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 320px;
    transition: transform 0.3s ease;
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding: 5px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f5f5f5;
}

/* Quick view model Animation start */

.product-details .product-rating,
.product-details .product-price,
.product-details .product-description,
.product-details .product-variations,
.product-details .product-meta {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.6s ease-out forwards;
}

/* Sequential delay for stagger effect */
.product-details .product-rating {
    animation-delay: 0.1s;
}

.product-details .product-price {
    animation-delay: 0.3s;
}

.product-details .product-description {
    animation-delay: 0.5s;
}

.product-details .product-variations {
    animation-delay: 0.7s;
}

.product-details .product-meta {
    animation-delay: 0.9s;
}

/* Keyframes for upward fade-in */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Quick View model Animation End */

/* Hide scrollbar for Chrome, Safari and Opera */
.product-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.product-thumbnails::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 3px;
}

.product-thumbnails::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

.quick-view-modal .woocommerce-product-gallery {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    background: #efefef;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding-bottom: 50px;
    /* Add space for the quick view button */
}

.quick-view-modal .woocommerce-product-gallery__wrapper {
    margin: 0;
    padding: 0;
    width: 100%;
}

.quick-view-modal .woocommerce-product-gallery__image {
    display: none;
    position: relative;
    background: #fff;
    border-radius: 0px;
    overflow: hidden;
    margin: 0;
    text-align: center;
}

.quick-view-modal .woocommerce-product-gallery__image.flex-active-slide,
.quick-view-modal .woocommerce-product-gallery__image:first-child {
    display: block;
}

.quick-view-modal .woocommerce-product-gallery__image img {
    display: block;
    width: auto;
    height: auto;
    max-height: 400px;
    max-width: 100%;
    margin: 0 auto;
    box-shadow: none;
}

/* Thumbnails */
.quick-view-modal .flex-control-thumbs {
    display: flex;
    gap: 10px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    padding-bottom: 5px;
}

.quick-view-modal .flex-control-thumbs li {
    flex: 0 0 auto;
    width: 70px;
    height: 70px;
    margin: 0;
    padding: 0;
    cursor: pointer;
    border-radius: 0px;
    transition: all 0.2s ease;
    overflow: hidden;
    background: #fff;
}

.quick-view-modal .flex-control-thumbs li:hover,
.quick-view-modal .flex-control-thumbs li.flex-active {
    border-color: #000;
}

.quick-view-modal .flex-control-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 1;
    transition: opacity 0.2s ease;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.quick-view-modal .flex-control-thumbs::-webkit-scrollbar {
    height: 4px;
}

.quick-view-modal .flex-control-thumbs::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 2px;
}

.quick-view-modal .flex-control-thumbs::-webkit-scrollbar-thumb {
    background-color: #999;
    border-radius: 2px;
}

.thumbnail-item {
    flex: 0 0 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-item:hover {
    border-color: #00b894;
}

.thumbnail-item.active {
    border-color: #00b894;
}

/* Product Details */

.product-details {
    overflow-y: auto;
    padding-right: 10px;
    height: 100%;
}

.product-title {
    font-size: 22px;
    font-weight: 800;
    color: #333333;
    margin: 0;
    line-height: 1.3;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
}

.star-rating {
    color: #f1c40f;
    font-size: 16px;
    line-height: 1;
}

/* Review count style */

.product-rating .review-count-link {
    color: #aaaaaa;
    font-size: 12px;
    margin-left: 8px;
    line-height: 1;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-rating .review-count-link:hover {
    color: #00b894;
    text-decoration: none;
}

.woocommerce-review-link span:nth-of-type(2) {
    color: #cccccc;
    font-size: 12px;
    font-weight: 600;
}


/* Star rating alignment */
.product-rating .star-rating {
    float: none;
    display: inline-block;
    margin-right: 5px;
}

.product-price {
    font-size: 20px;
    font-weight: 500;
    color: #2d3436;
}

.product-price .amount {
    color: #2d3436;
}

.quick-view-content .product-details .product-price del {
    color: #aaaaaa00;
}

.quick-view-content .product-description {
    color: #777777;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    margin-top: 30px;
}

.product-description p {
    margin: 0 0 10px 0;
    color: #636e72;
}

.product-meta {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #636e72;
}

.product-sku,
.product-categories {
    margin-bottom: 8px;
    color: #636e72;
}

.product-categories a {
    color: #636e72;
    text-decoration: none;
}

.product-categories a:hover {
    text-decoration: underline;
}

.product-add-to-cart {
    margin-top: auto;
    max-width: 200px;
}

.quick-view-modal .add_to_cart_button,
.quick-view-modal .wp-block-button__link {
    width: 100%;
    background: #f1f2f6;
    color: #2d3436;
    border: none;
    height: 40px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-transform: uppercase;
    padding: 0 20px;
}

.quick-view-modal .add_to_cart_button:hover,
.quick-view-modal .wp-block-button__link:hover {
    background: #dfe4ea;
}

.quick-view-modal .add_to_cart_button.loading {
    opacity: 0.7;
    padding-right: 2.618em;
    position: relative;
}

.quick-view-modal .add_to_cart_button.loading::after {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    margin-top: -7px;
    width: 14px;
    height: 14px;
    border: 2px solid #2d3436;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.quick-view-modal .add_to_cart_button.added {
    background: #00b894;
    color: #fff;
}

.quick-view-modal .add_to_cart_button.added::after {
    content: "✓";
    margin-left: 8px;
}




.close-modal {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease, rotate 0.3s ease;
    transform-origin: center;
}

/* Hover effect */
.close-modal:hover {
    transform: scale(1.2) rotate(15deg);
    /* Grow + slight rotate */
}

.close-modal {
    position: absolute;
    right: 16px;
    top: 16px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #2d3436;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    opacity: 0.7;
}

.close-modal:hover {
    opacity: 1;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .quick-view-grid {
        grid-template-columns: 1fr;
    }

    .product-gallery {
        min-height: 300px;
        padding: 20px;
    }

    .product-details {
        padding: 24px;
        gap: 16px;
    }

    .product-title {
        font-size: 20px;
    }

    .main-image-container {
        width: 250px;
        height: 250px;
    }

    .main-product-image {
        width: 250px;
        height: 250px;
    }

    .flex-control-thumbs li {
        width: 70px;
        height: 70px;
    }
}

/* Quick View Trigger */
.wp-block-woocommerce-product-image {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: block;
}

/* Remove the overlay effect */
.wp-block-woocommerce-product-image::before,
.wp-block-woocommerce-product-image::after {
    display: none;
}

/* Product Add to Cart Form */
.quick-view-modal .cart {
    margin-top: 0px;
    display: flex;
    gap: 10px;
    align-items: end;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
}

.quick-view-modal .quantity {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.quick-view-modal .quantity label {
    font-size: 14px;
    color: #636e72;
}

.quick-view-modal .quantity input {
    width: 80px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #dfe4ea;
    border-radius: 4px;
    font-size: 14px;
    color: #2d3436;
}

.quick-view-modal .single_add_to_cart_button {
    height: 40px;
    margin-top: 24px;
    padding: 0 20px;
    background: #1C7E6E;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-view-modal .single_add_to_cart_button:hover {
    background: #10574b;
}

.quick-view-modal .single_add_to_cart_button.loading {
    opacity: 0.7;
    position: relative;
    padding-right: 40px;
}

.quick-view-modal .single_add_to_cart_button.loading::after {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    margin-top: -7px;
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.quick-view-modal .single_add_to_cart_button.added {
    background: #00b894;
    padding-right: 40px;
    position: relative;
}

.quick-view-modal .single_add_to_cart_button.added::after {
    content: "✓";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
}

.quick-view-modal .woocommerce-error {
    margin: 10px 0;
    padding: 10px 15px;
    background: #fdecea;
    border-left: 4px solid #f44336;
    color: #f44336;
    font-size: 14px;
    border-radius: 4px;
    width: 100%;
}

/* Product Variations Form */
.cart {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

/* Variations Styling */
.variations {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 0px !important;
}


.variation-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 0px !important;
}

.variation-row label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #2d3436;
    text-transform: capitalize;
}

.variation-select {
    width: 100%;
    height: 50px;
    padding: 0 30px;
    border: 1px solid #dfe4ea;
    border-radius: 6px;
    font-size: 15px;
    color: #2d3436;
    background-color: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

.variation-select:focus {
    outline: none;
    border-color: #00b894;
    box-shadow: 0 0 0 2px rgba(0, 184, 148, 0.1);
}

.variation-error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    grid-column: 1 / -1;
}

/* Quantity Input */
.quantity {
    display: flex;
    flex-direction: column;
    gap: 10px;
    grid-column: 1 / -1;
}

.quantity label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #2d3436;
}

.quantity input {
    width: 100%;
    max-width: 200px;
    height: 50px;
    border: 1px solid #dfe4ea;
    border-radius: 6px;
    padding: 0 20px;
    font-size: 15px;
    color: #2d3436;
}

.quantity input:focus {
    outline: none;
    border-color: #00b894;
    box-shadow: 0 0 0 2px rgba(0, 184, 148, 0.1);
}

/* Quick View Button Style */

.quick-view-btn {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1c7e6eb3;
    color: #fff;
    border: none;
    outline: none;
    padding: 15px 100%;
    font-size: 14px;
    letter-spacing: 0.5px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: none;
    white-space: nowrap;
    text-align: center;
    pointer-events: auto;
}

.product:hover .quick-view-btn {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    outline: none;
}

.quick-view-btn:hover {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transform: translateX(-50%) translateY(0px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    color: #fff;
    transition: all 0.3s ease;
}




/* Produt tittle h2 style  */

h2.has-text-align-center.wp-block-post-title.has-medium-font-size a {
    font-size: 14px;
    font-weight: 900;
    color: #333333;
    text-decoration: none;
    transition: color 0.3s ease;
}

h2.has-text-align-center.wp-block-post-title.has-medium-font-size a:hover {
    /* color: #ffa200; */
    color: #1C7E6E;
    text-decoration: none;

}

h2.has-text-align-center.wp-block-post-title.has-medium-font-size {
    margin: 0px;
}

.wp-block-woocommerce-product-price {
    margin: 0px !important;
}

/* Product Reating Start Colr */

.star-rating {
    color: #FFB639 !important;
}

/* Sell price & Regular price color */

/* Previous price */
.wc-block-components-product-price del bdi {
    color: #aaaaaa !important;
    font-size: 14px;
}

del {
    color: #aaaaaa;
}

/* Sell price */
.wc-block-components-product-price ins bdi {
    color: #333333;
    font-size: 16px;
    font-weight: 900;

}


/* Previous price */
.product-price del bdi {
    color: #777777 !important;
    text-decoration: line-through;
    font-size: 16px;
}

/* Sell price */

/* Quick View Popup style */

.quick-view-grid .product-details .product-variations .cart {
    justify-content: start !important;
}

.product-price ins {
    text-decoration: none;
}

.product-price ins bdi {
    color: #333333;
    text-decoration: none;
}

.quick-view-modal .woocommerce-product-gallery {
    position: relative;
    width: 100%;
    margin: 0 !important;
    transition: all 0.3s ease;
    background: #fff;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: none !important;
    padding-bottom: 0px !important;

}

button.single_add_to_cart_button.button.alt {
    margin-bottom: 10px;
}

/* Select button style */


/* Button Styling */


.wp-block-button.wc-block-components-product-button .wc-block-components-product-button__button {
    padding: 0px;
    background-color: transparent;
    font-size: 13px !important;
    text-transform: uppercase;
    font-weight: 900;
    color: #1c7e6e;
    align-items: center;
    border: none;
    display: inline-flex;
    justify-content: center;
    line-height: inherit;
    overflow: visible;
    /* important: prevent clipping */
    white-space: normal;
    word-break: break-word;
    position: relative;
    cursor: pointer;
    outline: none !important;
}

/* Text span */
.wp-block-button.wc-block-components-product-button .wc-block-components-product-button__button span {
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
    /* space for underline */
    box-sizing: border-box;
    overflow: visible;
}

/* Lower Line - bold */
.wp-block-button.wc-block-components-product-button .wc-block-components-product-button__button span::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #1c7e6e;
    bottom: 0px;
    transform: translateX(-50%);
    transition: width 0.4s ease;
}

/* Hover - expand both lines safely */
/* .wp-block-button.wc-block-components-product-button .wc-block-components-product-button__button span:hover::before, */
.wp-block-button.wc-block-components-product-button .wc-block-components-product-button__button span:hover::after {
    width: calc(100% - 6px);
    /* prevent edge cut */
}





/* Price & Add to cart button hover alternet animation */

/* Parent List */
ul.wc-block-product-template__responsive.columns-4.wc-block-product-template.wp-block-woocommerce-product-template li {
    position: relative;
    padding-bottom: 50px;
    overflow: hidden;
    /* to clip animation */
}

/* Both price & button absolutely positioned */
.wc-block-product .wp-block-woocommerce-product-price,
.wp-block-woocommerce-product-button {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    transition: all 0.4s ease;
}

/* Product Price Default */
.wp-block-woocommerce-product-price {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    transition: all 0.3s ease;
}

/* Button Default: hidden + positioned below */
.wp-block-woocommerce-product-button {
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transform: translateY(10px);
    /* initially pushed down */
    transition: all 0.4s ease;
}

/* On hover: price hides */
li.product:hover .wp-block-woocommerce-product-price {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* On hover: button appears with upward animation */
li.product:hover .wp-block-woocommerce-product-button {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    /* slide into view */
    z-index: 3;
    color: #1c7e6e;
}


/* Pagination */

/* Pagination wrapper spacing */
nav.wp-block-query-pagination {
    margin-top: 80px;
}

/* Pagination numbers */
.wp-block-query-pagination-numbers {
    display: flex;
    gap: 10px;
}

.wp-block-query-pagination-numbers .page-numbers {
    font-size: 14px;
    padding: 6px 12px;
    border: 1px solid transparent;
    border-radius: 2px;
    text-decoration: none;
    transition: all 0.4s ease;
    color: #777777;
}

.wp-block-query-pagination-numbers .page-numbers.current {
    border: 1px solid #c9c9c9;
    font-weight: bold;
    cursor: default;
    color: #1c7e6e;
}

.wp-block-query-pagination-numbers .page-numbers:not(.current):hover {
    border: 1px solid #c9c9c9;
    cursor: pointer;
    color: #1c7e6e;
}

/* Next & Previous Button Styling */
.wp-block-query-pagination-previous,
.wp-block-query-pagination-next {
    position: relative;
    display: inline-block;
    font-size: 0;
    /* hide original text */
    line-height: 0;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 2px;
    transition: all 0.3s ease;
    color: #0000005a;
    border: 1px solid transparent;
}

/* Replace text using ::before */
.wp-block-query-pagination-previous::before {
    content: "\2190 Prev";
    font-size: 14px;
    line-height: 1;
    font-weight: 600;
    color: inherit;
}

.wp-block-query-pagination-next::before {
    content: "Next \2192";
    font-size: 14px;
    line-height: 1;
    font-weight: 600;
    color: inherit;
}

/* Hover effect for next/prev buttons */
.wp-block-query-pagination-previous:hover,
.wp-block-query-pagination-next:hover {
    border: 1px solid #c9c9c9;
    color: #1c7e6e;
    cursor: pointer;
}





/* Variation Messages and States */
.variation-availability {
    margin: 10px 0;
    padding: 8px 30px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: none;
    width: 100%;
}

.variation-availability.show {
    display: block;
}

/* Loading State */
.single_add_to_cart_button.loading {
    position: relative;
    color: transparent !important;
}

.single_add_to_cart_button.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: button-loading-spinner 0.8s linear infinite;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Disabled State */
.single_add_to_cart_button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Variation Select Styling */
.variation-row {
    margin-bottom: 15px;
}

.variation-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2d3436;
}

.variation-row select {
    width: 100%;
    padding: 8px 30px;
    border: 1px solid #dfe6e9;
    border-radius: 4px;
    background-color: #fff;
    color: #2d3436;
    font-size: 14px;
    line-height: 1.4;
    transition: border-color 0.2s ease;
}

.variation-row select:focus {
    outline: none;
    border-color: #00b894;
    box-shadow: 0 0 0 2px rgba(0, 184, 148, 0.1);
}

.variation-row select:hover {
    border-color: #00b894;
}

.single_add_to_cart_button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #95a5a6;
}

/* Responsive Styles */
@media (max-width: 480px) {
    .variations {
        grid-template-columns: 1fr;
    }

    .quantity input,
    .single_add_to_cart_button {
        max-width: 100%;
    }

    .main-image-container {
        width: 200px;
        height: 200px;
    }

    .main-product-image {
        width: 200px;
        height: 200px;
    }

    .flex-control-thumbs li {
        width: 60px;
        height: 60px;
    }
}




.woocommerce div.product div.images {
    margin-bottom: 0em !important;
}

/* Main Image Container */
.main-image-container {
    width: 300px;
    height: 300px;
    margin: 0 auto 15px auto;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-product-image {
    width: 300px;
    height: 300px;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

/* Thumbnail Gallery Styles */
.flex-control-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding: 0;
    list-style: none;
    justify-content: center;
}

.flex-control-thumbs li {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f8f9fa;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-control-thumbs li:hover {
    border-color: #1c7e6e;
    transform: scale(1.05);
}

.flex-control-thumbs li.flex-active {
    border-color: #1c7e6e;
    box-shadow: 0 2px 8px rgba(28, 126, 110, 0.3);
}

.flex-control-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #f8f9fa;
}