@import './reviews.css';
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css');

@media screen and (max-width: 768px) {
    /* Dont show breadcrumb on mobile */
    .woocommerce .woocommerce-breadcrumb {
        display: none;
    }
}

.woocommerce .product .woocommerce-product-rating .star-rating {
    margin-top: 0;
}

/* Capitalize Product Page Product Name */
.product_title.entry-title {
    text-transform: capitalize;
}

/* Links in short description should have underline */
.woocommerce .product .woocommerce-product-details__short-description a {
    text-decoration: underline;
}

/**
  * Added flex properties to add the increment and decrement buttons besides the input
  * Adjusted the width, removed gaps and
  * Increased font size for the '-' and '+' icons
  */
.single-product div.product form.cart .quantity {
    display: flex;
    gap: 0px;
    font-size: 20px;
}

/**
  * Added flex properties for layout adjustment and alignment
  * Reduced the width for aesthetics
  * Removed right and left border to make it look like it's a single container
  * Increased the height
  */
.single-product div.product form.cart .quantity .qty {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-right: none;
    border-radius: 0px;
    border-left: none;
}
.single-product div.product form.cart .quantity .qty:focus {
    outline: none;
    box-shadow: none;
}

/* Centering quantity input while also keeping it compatible with customiser */
.woocommerce.single .quantity input[name='quantity'] {
    padding: var(--formfieldpadding);
}

.meckeys-quantity-input-actions {
    background: white;
    border-color: var(--formfieldbordercolor);
    border-width: var(--formfieldborderwidth);
    border-style: solid;
    border-radius: 0px; /* should be attached cleanly to input */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    /* no select  */
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

/**
 * Added background and border color 
 * Removed the left border 
 * Adjusted width 
 */
.meckeys-add-to-cart-plus {
    border-left: none;
    width: 25px;
}

/**
 * Added background and border color 
 * Removed the right border 
 * Adjusted width 
 */
.meckeys-add-to-cart-minus {
    border-right: none;
    width: 25px;
}

.woocommerce-verification-required {
    grid-row: 1;
}

.woocommerce .nv-shop .related ul.products:not(.tns-slider) {
    margin-bottom: 0px;
    grid-gap: 0px 30px;
}

/* .related h2 {
    text-align: center;
} */

section>h2 {
    text-align: center;

}

.woocommerce .nv-shop .related ul.products:not(.tns-slider) li.product {
    width: 90% !important;
}

#estimateOutput {
    line-height: 1.8;
}

.mailToContactAnchor {
    text-decoration: underline;
    color: #ff0000;
    white-space: nowrap;
}

.mailToContactAnchor:hover {
    opacity: 0.7;
    color: #ff0000;
}

.estimatedOutputSpan {
    color: #ff0000;
    font-weight: 500;
}

/* .woocommerce div.product p.price,
.woocommerce div.product p.price ins,
.woocommerce ul.products li.product a.woocommerce-loop-product__link > h2,
.woocommerce ul.products li.product a.woocommerce-loop-product__link > h3 {
    font-weight: 400;
    text-transform: var(--bodytexttransform);
    letter-spacing: var(--bodyletterspacing);
    font-size: var(--bodyfontsize);
} */

.related .nv-product-content {
    letter-spacing: var(--bodyletterspacing);
    text-align: center;
}

.availability_date {
    text-transform: capitalize;
    letter-spacing: var(--bodyletterspacing);
}

.availability_date {
    color: #f48642;
}

.preorder-gift-icon-color {
    color: #f48642;
    margin-right: 5px;
}

.nv-single-product-top .product_title {
    margin-bottom: 10px;
}

/* Product / Category both */

.woocommerce ul.products li.product .price,
.woocommerce-Price-amount {
    color: #666;
}

.woocommerce ul.products li.product .star-rating {
    letter-spacing: 0;
    font-size: 1em;
    color: #f1c40f;
}

/* Alignment */
.woocommerce ul.products li.product a.woocommerce-loop-product__link > h2 {
    padding-bottom: 0px;
    margin: 0 0 6px;
}
.nv-product-content > .advanced-rating-wraper {
    margin: 0 0 6px;
}

del small.woocommerce-price-suffix {
    display: none;
}

.gst-invoice-icon-color {
    color: #5cbb70;
    margin-right: 5px;
}

.shop-container p.price {
    margin-bottom: 10px;
}

.product-attributes-wrapper {
    margin-bottom: 10px;
}

.product-attributes-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    gap: 5px;
}
.product-attribute-label {
    display: inline-block;
    margin: 5px;
    padding: 5px 10px;
    background-color: #efefef;
    border-radius: 5px;
    font-size: 0.875em;
    margin-left: 0;
}

@media screen and (min-width: 768px) {
    .nv-single-product-top {
        display: flex;
        flex-wrap: wrap;
        position: relative;
        display: grid;
        grid-template-columns: 40% 60%; /* Switched the column widths */
        grid-template-rows: auto;
    }

    .woocommerce #content div.product div.images,
    .woocommerce div.product div.images,
    .woocommerce-page #content div.product div.images,
    .woocommerce-page div.product div.images {
        float: left;
        width: 48%;
        width: auto;
        float: none !important;
        overflow: hidden;
        grid-column: 1; /* Changed from 2 to 1 */
        grid-row: 1;
        position: -webkit-sticky;
        position: sticky;
        top: 105px;
        bottom: 100px;
        height: fit-content;
    }

    .woocommerce #content div.product div.summary,
    .woocommerce div.product div.summary,
    .woocommerce-page #content div.product div.summary,
    .woocommerce-page div.product div.summary {
        float: left;
        width: 100%;
        clear: none;
        grid-column: 2; /* Changed from 1 to 2 */
        grid-row: 1;
        height: fit-content;
    }

    body > .wrapper:not(.et-fb-iframe-ancestor) {
        overflow: visible !important;
    }
}
#pincodeInput {
    border-style: solid;
    border-color: var(--formfieldbordercolor);
    border-width: var(--formfieldborderwidth);
    border-radius: var(--formfieldborderradius, 3px);
    background: var(--formfieldbgcolor);
    color: var(--formfieldcolor);
    padding: var(--formfieldpadding);
    text-transform: var(--formfieldtexttransform);
    font-weight: var(--formfieldfontweight);
    font-family: var(--bodyfontfamily);
    font-size: var(--formfieldfontsize);
    letter-spacing: var(--formfieldletterspacing);
    line-height: var(--formfieldlineheight);
}
.single_add_to_cart_button {
    width: 300px;
    max-width: 300px;
}
.woocommerce.single .entry-summary > form.cart {
    width: 100%;
}

.variations_form > div {
    width: 100%;
}

.mk-single-product-icons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 15px;
    width: 100%;
    justify-content: center;
    margin-bottom: 25px;
}

/* Ensures icons are evenly spaced and properly aligned */
.mk-single-product-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 100px;
    position: relative;
    cursor: pointer;
    padding-bottom: 10px;
}

/* Icon Styling */
.mk-single-product-icon img {
    width: 55px;
    height: 55px;
    margin-bottom: 5px;
}

/* Tooltip Styling */
.onClickToolTipDisplay {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 8px;
    border-radius: 5px;
    font-size: 12px;
    width: max-content;
    max-width: 200px;
    text-align: center;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 10;
}

.toolTipPara {
    margin-bottom: 0;
}

.toolTipLinkIcons {
    color: #42a5f5;
    text-decoration: underline;
    margin-top: 5px;
    font-weight: 500;
    transition: color 0.3s ease-in-out;
}

.toolTipLinkIcons:hover {
    color: #64b5f6;
    text-decoration: underline;
}

.onClickToolTipDisplay p {
    margin: 5px 0;
    font-size: 13px;
    line-height: 1.4;
    color: #f1f1f1;
}

/* Tooltip Arrow */
.onClickToolTipDisplay::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent rgba(0, 0, 0, 0.85) transparent;
}

/* Show Tooltip on Hover */
.mk-single-product-icon:hover .onClickToolTipDisplay {
    visibility: visible;
    opacity: 1;
}

/* Responsive Grid Adjustments */
@media (max-width: 900px) {
    .mk-single-product-icons {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 700px) {
    .mk-single-product-icons {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .mk-single-product-icons {
        grid-template-columns: repeat(3, 1fr);
    }

    .onClickToolTipDisplay {
        font-size: 10px;
        padding: 6px;
        max-width: 150px;
    }
}

/* Hide tooltip completely on mobile */
@media (max-width: 800px) {
    .onClickToolTipDisplay {
        display: none !important;
    }
}
@media screen and (max-width: 480px) {
    .woocommerce ul.products {
        max-width: 100%;
        margin: 0px;
        padding-top: 0px;
        align-items: center;
        display: flex !important;
        justify-content: center;
        flex-direction: column;
    }
}

/* TODO: Doesnt work for smaller varitaion size */ 
table.variations td.label {
    line-height: 60px !important;
}

.wc-block-grid__product-rating .star-rating span:before {
    color: #f1c40f!important;
}
