/**
 * Shoptimizer Child Theme - Custom CSS
 *
 * This file loads LAST and has HIGHEST PRIORITY
 * Use this file to override any parent theme styles
 *
 * Priority: 999 (loads after all other stylesheets)
 *
 * @package Shoptimizer Child Theme
 */

/* =============================================================================
   ADD YOUR CUSTOM CSS HERE
   ============================================================================= */

/* Example: Override parent theme colors */
/*
body {
    background-color: #ffffff;
}
*/

/* Example: Override typography */
/*
h1, h2, h3, h4, h5, h6 {
    font-family: 'Your Font', sans-serif;
}
*/

/* Example: Override button styles */
/*
.button {
    background-color: #ff6b6b;
    color: #ffffff;
}
*/

/* Example: Custom carousel overrides from child theme */
/*
.shoptimizer-carousel-wrapper .carousel-arrow {
    background: rgba(0, 0, 0, 0.9);
}

.shoptimizer-carousel-wrapper .carousel-bullet.active {
    background: #ff6b6b;
}
*/

/* =============================================================================
   SHIPPING CLASS BREAKDOWN STYLES
   ============================================================================= */

.shipping-method-breakdown {
    margin-top: 8px;
}

.shipping-main-label {
    font-weight: 600;
    font-size: 1em;
    line-height: 1.4;
}

.shipping-delivery-estimate {
    margin-top: 6px;
    color: #28a745;
    font-weight: 500;
}

.shipping-delivery-estimate small {
    display: block;
    line-height: 1.4;
}

.shipping-international-notice {
    margin-top: 8px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    color: #ffffff;
}

.shipping-international-notice small {
    display: block;
    font-weight: 500;
    font-size: 0.85em;
    line-height: 1.4;
}

.shipping-class-details {
    margin-top: 10px;
    padding: 12px 16px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.shipping-class-item {
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.shipping-class-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.shipping-class-item:first-child {
    padding-top: 0;
}

.shipping-class-name {
    margin-bottom: 4px;
}

.shipping-class-name small {
    font-weight: 600;
    color: #212529;
    font-size: 0.9em;
    display: block;
}

.shipping-class-delivery {
    margin-top: 4px;
}

.shipping-class-delivery small {
    color: #28a745;
    font-size: 0.85em;
    line-height: 1.4;
}

.shipping-class-delivery strong {
    font-weight: 600;
    color: #28a745;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .shipping-class-details {
        padding: 10px 12px;
    }

    .shipping-class-name small {
        font-size: 0.85em;
    }

    .shipping-class-delivery small {
        font-size: 0.8em;
    }

    .shipping-international-notice small {
        font-size: 0.8em;
    }

    .shipping-delivery-estimate small {
        font-size: 0.8em;
    }
}

/* =============================================================================
   PRODUCT PAGE DELIVERY DATE STYLES
   ============================================================================= */

.product-delivery-date-wrapper {
    margin: 16px 0;
}

.product-delivery-date-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 8px;
    border: 1px solid #e1e8ed;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.product-delivery-date-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.delivery-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}

.delivery-info {
    flex: 1;
}

.delivery-label {
    font-weight: 600;
    font-size: 0.95em;
    color: #2c3e50;
    margin-bottom: 4px;
}

.delivery-date {
    font-weight: 500;
    color: #28a745;
    font-size: 1.05em;
    margin: 4px 0;
}

.delivery-estimate {
    display: block;
    color: #6c757d;
    font-size: 0.85em;
    margin-top: 2px;
    font-weight: 400;
}

.delivery-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-size: 0.8em;
    font-weight: 500;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.delivery-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #e0e0e0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: delivery-spin 0.6s linear infinite;
}

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

/* International styling variant */
.product-delivery-date-wrapper[data-international="true"] .product-delivery-date-card {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-color: #f5b7a9;
}

.product-delivery-date-wrapper[data-international="true"] .delivery-date {
    color: #d35400;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .product-delivery-date-card {
        padding: 12px;
        gap: 10px;
    }

    .delivery-icon {
        font-size: 24px;
    }

    .delivery-label {
        font-size: 0.9em;
    }

    .delivery-date {
        font-size: 1em;
    }

    .delivery-estimate {
        font-size: 0.8em;
    }

    .delivery-badge {
        font-size: 0.75em;
        padding: 3px 8px;
    }
}

/* =============================================================================
   WHATSAPP ORDER BUTTON STYLES
   ============================================================================= */

.whatsapp-order-button-wrapper {
    margin: 15px 0 8px 0;
}

/* Desktop: Show inline with add to cart button */
@media (min-width: 769px) {
    .whatsapp-order-button-wrapper {
        margin: 0 0 8px 10px;
        display: block;
    }

    .whatsapp-order-button {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 14px 28px;
        background-color: #25D366;
        color: #ffffff;
        text-decoration: none;
        border-radius: 4px;
        font-weight: 600;
        font-size: 16px;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
        border: none;
        cursor: pointer;
        white-space: nowrap;
    }

    .whatsapp-order-button:hover {
        background-color: #128C7E;
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
        transform: translateY(-2px);
        color: #ffffff;
        text-decoration: none;
    }

    .whatsapp-icon {
        width: 22px;
        height: 22px;
        flex-shrink: 0;
    }
}

/* Mobile: Show on new line */
@media (max-width: 768px) {
    .whatsapp-order-button-wrapper {
        margin: 15px 0 0 0;
        width: 100%;
    }

    .whatsapp-order-button {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding: 14px 20px;
        background-color: #25D366;
        color: #ffffff;
        text-decoration: none;
        border-radius: 4px;
        font-weight: 600;
        font-size: 16px;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
        border: none;
        cursor: pointer;
    }

    .whatsapp-order-button:hover {
        background-color: #128C7E;
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
        color: #ffffff;
        text-decoration: none;
    }

    .whatsapp-icon {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }
}

.whatsapp-order-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(37, 211, 102, 0.3);
}


