/*
Theme Name: Hello Elementor child 
Theme URI: https://elementor.com/hello-theme/?utm_source=wp-themes&utm_campaign=theme-uri&utm_medium=wp-dash
Description: My custom child theme based on generatepress.
Author: [Your Name]
Author URI: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash
Template: hello-elementor
Version: 1.0
*/

/* Custom styles go below this line */
/* ==========================================================================
   1. WOOCOMMERCE PRODUCT ARCHIVE & CARDS
   ========================================================================== */
.woocommerce ul.products li.product {
    position: relative;
    overflow: hidden;
}

.woocommerce ul.products li.product .add_to_cart_button {
    position: absolute;
    bottom: 105px;
    right: 1px;
    width: 45px;
    height: 45px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    font-size: 0; 
    z-index: 20;
}

.woocommerce ul.products li.product .add_to_cart_button:before {
    font-family: 'WooCommerce';
    content: "\e01d";
    font-size: 18px;
    color: #333333;
}

.woocommerce ul.products li.product:hover .add_to_cart_button {
    width: 150px;
    border-radius: 30px;
    font-size: 14px;
}

.woocommerce ul.products li.product:hover .add_to_cart_button:before {
    margin-right: 8px;
}

.woocommerce ul.products li.product:hover .add_to_cart_button::after {
    content: "";
}

/* Specificity बढ़ा दी गई है ताकि बिना !important के भी रंग लागू हो */
.woocommerce ul.products li.product span.price,
.woocommerce ul.products li.product .price {
    color: #444444;
    display: inline-block;
}

.woocommerce ul.products li.product .price del,
.woocommerce ul.products li.product .price del .woocommerce-Price-amount {
    color: #666666;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title:hover {
    color: #000000;
}

.woocommerce-loop-product__title {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.price {
    display: block;
}

.woocommerce ul.products li.product .price .woocommerce-Price-amount,
.woocommerce-Price-amount {
    color: #000000;
}

.discount-label {
    color: #0000ff;
}

/* ==========================================================================
   2. CUSTOM SALE BADGE (RED RECTANGLE)
   ========================================================================== */
/* Elementor और WooCommerce दोनों कंटेनर्स को टारगेट किया है ताकि डिजाइन न बिगड़े */
.woocommerce body span.onsale,
.woocommerce ul.products li.product span.onsale,
.elementor-widget-wc-archive-products span.onsale {
    background-color: #ff0000;
    color: #ffffff;            
    position: absolute;
    top: 10px;                  
    right: 10px;               
    left: auto;
    border-radius: 0px;        
    padding: 3px 8px;         
    font-size: 9px;           
    font-weight: bold;         
    text-transform: uppercase; 
    line-height: 1;
    min-height: auto;
    min-width: auto;
    z-index: 99;                
    box-shadow: 0px 2px 5px rgba(0,0,0,0.2);
}

/* ==========================================================================
   3. CUSTOM SHARE BUTTON
   ========================================================================== */
.custom-share-wrapper {
    position: relative;
    display: inline-block;
    margin-top: 15px;
    margin-bottom: 15px;
}

.share-trigger-btn {
    background-color: #0073e6;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.share-trigger-btn:hover {
    background-color: #005bb5;
}

.share-icons-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    box-shadow: 0px 4px 12px 0px rgba(0,0,0,0.15);
    z-index: 999;
    min-width: 180px;
    border-radius: 4px;
    padding: 8px 0;
    border: 1px solid #dddddd;
}

.share-icon {
    color: #333333;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 14px;
    transition: background-color 0.2s;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
}

.share-icon:hover {
    background-color: #f0f0f0;
    color: #0073e6;
}

/* ==========================================================================
   4. LIVE SALE BAR WITH TIMER
   ========================================================================== */
.machla-sale-bar {
    background-color: #ffe6e8;
    color: #d10024;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    border-radius: 4px;
    margin: 15px 0;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.machla-separator {
    margin: 0 10px;
    color: #d10024;
}

.machla-timer {
    font-family: monospace;
}

/* ==========================================================================
   5. PRODUCT PAGE TRUST BADGES & POPUPS
   ========================================================================== */
.trust-badges-wrapper {
    border: 1px solid #dddddd;
    padding: 15px;
    background-color: #f9f9f9;
    margin-top: 20px;
    border-radius: 5px;
    font-family: inherit;
}

.badge-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eeeeee;
}

.badge-item:last-of-type {
    border-bottom: none;
}

.badge-item .icon {
    font-size: 24px;
    margin-right: 15px;
    color: #333333;
}

.badge-item .text {
    font-size: 14px;
    line-height: 1.2;
}

.badge-item .subtext {
    font-size: 12px;
    color: #666666;
}

.delivery-time {
    text-align: center;
    padding-top: 15px;
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    border-top: 1px solid #eeeeee;
    margin-top: 10px;
}

.mv-trust-badges-container {
    border: 1px solid #f0f0f0;
    padding: 18px;
    margin: 25px 0;
    border-radius: 12px;
    background-color: #fbfbfb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.mv-badge-item {
    display: flex;
    align-items: center;
    padding: 12px 8px;
    border-bottom: 1px dashed #e5e5e5;
}

.mv-badge-item:nth-child(2) {
    border-bottom: none;
}

.mv-clickable {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mv-clickable:hover {
    background: #ffffff;
    transform: translateX(6px);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.mv-badge-icon {
    font-size: 24px;
    margin-right: 14px;
    color: #111111;
    display: inline-block;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mv-clickable:hover .mv-badge-icon {
    transform: rotate(-360deg) scale(1.1);
}

.mv-badge-text {
    font-size: 14px;
    line-height: 1.4;
    color: #1a1a1a;
    font-weight: 600;
}

.mv-badge-subtext {
    display: block;
    font-size: 12px;
    color: #777777;
    margin-top: 2px;
    font-weight: 400;
}

.mv-delivery-time {
    text-align: center;
    padding: 12px 0 0 0;
    font-size: 13px;
    font-weight: 600;
    color: #222222;
    border-top: 1px solid #eeeeee;
    margin-top: 10px;
    letter-spacing: 0.3px;
}

.mv-modal-overlay {
    display: none; 
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); 
    backdrop-filter: blur(4px); 
    z-index: 99999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mv-modal-overlay.mv-open {
    display: flex;
    opacity: 1;
}

.mv-modal-content {
    background: #ffffff;
    width: 92%;
    max-width: 480px;
    padding: 30px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 20px 45px rgba(0,0,0,0.18);
    transform: scale(0.85) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.mv-modal-overlay.mv-open .mv-modal-content {
    transform: scale(1) translateY(0);
}

.mv-modal-close-btn {
    position: absolute;
    top: 15px; right: 22px;
    font-size: 24px;
    font-weight: 400;
    color: #999999;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

.mv-modal-close-btn:hover { 
    color: #000000; 
    transform: scale(1.15);
}

.mv-modal-header h3 { 
    margin: 0 0 6px 0; 
    font-size: 22px; 
    color: #111111; 
    font-weight: 700;
    letter-spacing: -0.3px;
}

.mv-sub-heading { 
    margin: 0 0 22px 0; 
    font-size: 13px; 
    color: #888888; 
    border-bottom: 1px solid #f0f0f0; 
    padding-bottom: 12px; 
}

.mv-policy-section h4 { 
    font-size: 14px; 
    margin: 22px 0 10px 0; 
    color: #111111; 
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mv-condition-allow { 
    color: #1e4620; 
    background-color: #edf7ed; 
    font-weight: 600; 
    padding: 10px 14px;
    border-radius: 8px;
    margin: 8px 0; 
    font-size: 13.5px; 
    display: flex;
    align-items: center;
}

.mv-condition-deny { 
    color: #611a15; 
    background-color: #fdeded; 
    font-weight: 600; 
    padding: 10px 14px;
    border-radius: 8px;
    margin: 8px 0; 
    font-size: 13.5px; 
    display: flex;
    align-items: center;
}

.mv-status-icon-check, .mv-status-icon-cross { margin-right: 10px; font-size: 15px; font-weight: bold; }

.mv-policy-steps { padding-left: 18px; margin: 12px 0; }
.mv-policy-steps li { font-size: 13.5px; color: #444444; margin-bottom: 10px; line-height: 1.5; }
.mv-policy-steps li strong { color: #111111; }

.mv-go-back-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2c3e50, #000000); 
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.8px;
    cursor: pointer;
    margin-top: 20px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

/* ==========================================================================
   6. CUSTOM SIZE SWATCHES (BUTTONS LOOK)
   ========================================================================== */
.custom-size-swatches-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; 
    margin-top: 5px;
    margin-bottom: 15px;
}

.custom-size-swatch {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #cccccc;
    background-color: #ffffff;
    color: #333333;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border-radius: 4px; 
    transition: all 0.2s ease-in-out;
    min-width: 45px;
    user-select: none;
}

.custom-size-swatch:hover {
    border-color: #000000;
    background-color: #f9f9f9;
}

.custom-size-swatch.selected {
    border-color: #a383db; 
    background-color: #a383db;
    color: #ffffff;
}
