/*
Theme Name: Astra Child
Template: astra
Version: 4.11.7
*/

/* ================================
   1. Global / Base Styles
================================== */

#change_pin, #checkpin{
    cursor: pointer;
}

span#avlpin {
    display: flex
;
}

.shop-filters-wrapper {
    display: none !important;
}

button.single_add_to_cart_button.button.alt::before {
    display: flex;
    justify-content: center;
    background: black;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    content: "buy now";
    align-items: center;
}


body.archive.post-type-archive.post-type-archive-product.woocommerce-shop.woocommerce-page  .site-content {
    flex-grow: 1;
    margin-top: 0px !important;
}



a, a:focus, a:hover, a:visited {
    text-decoration: none !important;
    color: #000;
}

.site-logo-img img {
    filter: none !important;
}

tr.cart-deposit-to-pay,
tr.cart-due-payment {
    display: none !important;
}
tr.cart-discount.coupon-get10{
    display:none;
}



h2{
    font-style: italic;
}


.single-product .custom-discount-tag{
 left: 160px;   
}
section.ast-archive-entry-banner {
    height: 70vh;
}

table.instant-checkout-order-review-table.shop_table.woocommerce-checkout-review-order-table td.product-name{
       display: flex !important;
    flex-wrap: wrap !important;
}

#product-img-height img {
    width: 100%;
    height: 500px;
    display: block;
    margin: 0 0 1em;
    max-height: 100%;
    object-fit: cover;
    box-shadow: none;
}


section.related.products .custom-discount-tag {
    left: 10px;
}

/* ================================
   2. WooCommerce - General Styles
================================== */



.product_title.entry-title {
    font-size: 26px;
    font-weight: 700;
}

body.single-product #page .site-content {
    flex-grow: 1;
    margin-top: auto;
}
.woocommerce div.ast-sticky-add-to-cart-action-wrap .button.single_add_to_cart_button {
    padding: 0px;
    width: 200px;
    height: 50px;
}
.ast-sticky-add-to-cart-action-wrap a#custom-add-cart {
    padding: 0px;
    width: 200px;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    height: 50px;
    margin-left: 20px;
}

.woocommerce-variation-add-to-cart.variations_button.woocommerce-variation-add-to-cart-disabled {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.woocommerce-js div.product form.cart {
    zoom: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    flex-direction: column;
}

/* Related Products grid fix */
.woocommerce-js .quantity.buttons_added {
    display: inline-flex;
    justify-content: center;
}
.related.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr); /* 4 per row desktop */
    gap: 20px;
}
.woocommerce-js div.product form.cart .button {
    vertical-align: middle;
    float: left;
    width: auto;
    margin-bottom: 1em;
    text-align: center;
}



.woocommerce-js div.product form.cart .button.single_add_to_cart_button {
    padding: 10px 20px;
    height: 50px;
    color: #fff;
    background-color: #000;
    width: 100%;
    margin-right: 6px;
}

.woocommerce-js .quantity .qty {
    text-align: center;
    min-height: 48px;
}
.ast-shipping-text {
    display: none;
}


td.product-name {
    display: flex
;
    flex-wrap: wrap;
}
.quantity.buttons_added {
    margin-right: 0px !important;
}

span.stars {
    display: flex;
}

/* ================================
   3. WooCommerce - Product Buttons
================================== */
a.single_link_to_cart_button.button.alt {
    width: 200px;
    height: 40px;
    display: flex;
    padding: 0;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

a.button.buy-now-button {
    background-color: #000;
    color: #fff;
    border: 3px solid #000;
    padding: 12px 50px;
    text-align: center !important;
}

a.button.buy-now-button:hover {
    background-color: #fff;
    color: #000;
    border: 3px solid #000;
}

/* ================================
   4. WooCommerce - Sale & Discount Tags
================================== */
.custom-discount-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #e63946;
    color: white;
    padding: 6px 10px;
    font-size: 14px;
    letter-spacing: 0.7px;
    font-weight: 500;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 0 6px rgba(0,0,0,0.2);
    text-transform: uppercase;
}

span.ast-on-card-button.ast-onsale-card {
    background-color: #e63946;
    color: white;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    display: none;
}

/* ================================
   5. WooCommerce - Shop Filter
================================== */
.filter-dropdown {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 20%;
    font-size: 14px;
}

.filter-input {
    width: 120px;
}

.filter-button {
    padding: 10px 20px;
    background-color: transparent;
    color: #000;
    border: 3px solid #000;
    border-radius: 2px;
    cursor: pointer;
    font-weight: 500;
    text-transform: uppercase;
    font-size: revert-layer;
}

.filter-button:hover {
    background-color: #000;
    color: #fff;
}

/* ================================
   6. Testimonial Cards
================================== */
.testimonial-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

.testimonial-card img.img-fluid.rounded-start {
    height: auto;
    width: auto;
    object-fit: fill;
}

.testimonial-card img {
    height: 240px;
    object-fit: cover;
    width: 100%;
}

.testimonial-text {
    font-size: 14px;
    color: #444;
    margin-bottom: 10px;
}

.testimonial-card .star {
    color: #ccc;
    font-size: 16px;
}

.testimonial-card .star.filled {
    color: #FFD700;
}

.star-img {
    display: inline-block;
    margin: 0 2px;
    vertical-align: middle;
}



.testimonial-card .row.g-0 {
  height: 100%;
}

.testimonial-card .row.g-0 > .col-4 {
  height: 100%;
  max-height: 260px; /* Adjust as needed */
  overflow: hidden;
  display: flex;
  align-items: center;
}

.testimonial-card img.card-img-top,
.testimonial-card .row.g-0 img {
  height: revert-layer;
  width: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 8px 0 0 8px; /* Optional: smooth edge for left-side image */
}





/* ================================
   7. Recent Purchases Section
================================== */
.recent-purchase-section {
    margin-top: 40px;
    padding: 30px;
    background-color: #fff !important;
    border-top: 1px solid #ddd !important;
}

.recent-purchase-section .ast-container {
    display: flex;
    flex-direction: column;
}

.purchase-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.purchase-item {
    display: flex;
    align-items: center;
    border: 1px solid #eee;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
}

.purchase-thumbnail img {
    border-radius: 4px;
    width: 60px;
    height: 60px;
    object-fit: cover;
    margin-right: 10px;
}

.purchase-details p {
    margin: 0;
    font-weight: 500;
}

.purchase-details a {
    color: #e91e63;
    font-weight: bold;
    text-decoration: none;
}

.purchase-details small {
    display: block;
    color: #999;
    font-size: 12px;
}

/* Cards inside Carousel */
.recent-purchase-section .card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 12px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    transition: box-shadow 0.2s ease-in-out;
    height: 100%;
}

.recent-purchase-section .card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.recent-purchase-section .card-img-left img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
}

.recent-purchase-section .card-body {
    padding: 0;
    flex: 1;
}

.recent-purchase-section .purchase-meta {
    font-size: 13px;
    color: #666;
    font-weight: 400;
    margin-bottom: 6px;
}

.recent-purchase-section .purchase-product {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-purchase-section .card-footer {
    padding: 0;
    background: none;
    border: none;
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}

.recent-purchase-section .view-link {
    font-weight: 500;
    color: #0073aa;
    text-decoration: none;
    font-size: 13px;
}

.recent-purchase-section .view-link:hover {
    text-decoration: underline;
}

/* ================================
   8. Carousel Controls
================================== */



.carousel-control-next,
.carousel-control-prev {
    background-color: #000 !important;
    color: #fff !important;
    opacity: 0.5 !important;
    width: 40px !important;
    height: 40px;
    border-radius: 10px;
    top: 20px !important;
}

.carousel-control-prev {
    left: -60px !important;
}

.carousel-control-next {
    right: -60px !important;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: #000 !important;
    color: #fff !important;
    opacity: 1 !important;
}

.custom-carousel-control {
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    color: #000 !important;
    z-index: 2;
}

.recent-purchase-section .custom-arrow {
    filter: invert(1) brightness(0);
    width: 100%;
    height: 100%;
}

.carousel-item.active .row.g-4 {
    display: flex;
    justify-content: space-around;
}

/* ================================
   9. Responsive (Mobile)
================================== */
@media only screen and (max-width: 768px) {
    
    .site-header-section>* {
    padding: 0 50px;
}
    
    .mysvara-thumbnails {
        width: auto !important;
        display: flex;
        flex-direction: row !important;
        gap: 20px;
        overflow-y: auto;
        height: 46px !important;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .mysvara-thumbnails img{
        object-fit: contain;
    }

    .mysvara-product-page-wrapper {
        display: flex !important;
        gap: 30px;
        align-items: flex-start;
        margin-bottom: 40px;
        flex-wrap: wrap;
    }

    .mysvara-main-image {
        flex: 1;
        max-width: fit-content !important;
    }

    .mysvara-product-summary {
        width: fit-content !important;
    }

    .custom-discount-tag {
        top: 120px;
        left: 12px;
        font-size: 14px;
    }
    
    .carousel-control-next-icon, .carousel-control-prev-icon {
    display: inline-block;
    width: 1.5rem !important;
    height: 2rem;
    background-repeat: no-repeat;
    background-position: 50%;
    background-size: 100% 100%;
}
.custom-carousel-control {
    width: 34px !important;
    height: 35px !important;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    color: #000 !important;
    z-index: 2;
}

    .recent-purchase-section .card-body {
        padding: 0;
        flex: 1;
        width: 25%;
    }

    .recent-purchase-section .card-img-left.me-3 {
        width: 25%;
    }

    .recent-purchase-section .carousel-control-prev {
        left: -25px !important;
    }

    .recent-purchase-section .carousel-control-next {
        right: -25px !important;
    }
    .recent-purchase-section .carousel-control-next, .recent-purchase-section .carousel-control-prev{
        width: 35px !important;
        height: 35px;
        
    }

    #testimonialCarouselMobile .carousel-control-prev {
        left: -25px !important;
    }

    #testimonialCarouselMobile .carousel-control-next {
        right: -25px !important;
    }
    
    
    #product-img-height img {
    width: 100%;
    height: 250px;
    display: block;
    margin: 0 0 1em;
    max-height: 100%;
    object-fit: cover;
    box-shadow: none;
}

.single-product .custom-discount-tag {
    left: 10px;
    top: 85px;
}
section.related.products .custom-discount-tag {
    left: 5px;
    top: 5px;
}
    .related.products ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}





