/*!
Theme Name: Avanam
Theme URI: https://avanam.org
Author: AvanamOrg
Author URI: https://avanam.org/
Description: This is starter WordPress theme called Avanam. Created for theme developers to start building beautiful WordPress themes using Avanam.
Version: 1.4.4
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: avanam
Requires at least: 6.2
Tested up to: 6.6
Tags: translation-ready, two-columns, right-sidebar, left-sidebar, footer-widgets, blog, custom-logo, custom-background, custom-menu, rtl-language-support, editor-style, threaded-comments, custom-colors, featured-images, wide-blocks, full-width-template, theme-options, e-commerce
Requires PHP: 7.4

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share
what you've learned with others.
*/

/* ==============================================
   HIGH-CONVERTING PRODUCT PAGE STYLES
   ============================================== */

/* Main Product Layout */
.product-enhanced-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.product-layout-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* ==============================================
   LEFT SIDE: PRODUCT IMAGES SECTION
   ============================================== */
.product-images-section {
    position: relative;
}

/* Bestseller Badge */
.bestseller-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff4757;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Live Viewers Notice */
.live-viewers-notice {
    background: #ffebee;
    color: #c62828;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 14px;
    text-align: center;
    margin: 15px 0;
    animation: blink 3s infinite;
    border: 1px solid #ffcdd2;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.8; }
}

/* ==============================================
   RIGHT SIDE: PRODUCT INFO SECTION  
   ============================================== */
.product-info-section {
    position: sticky;
    top: 20px;
    height: fit-content;
}

/* Breadcrumbs */
.product-breadcrumbs {
    margin-bottom: 15px;
}

.product-breadcrumbs .woocommerce-breadcrumb {
    color: #666;
    font-size: 14px;
}

.product-breadcrumbs .woocommerce-breadcrumb a {
    color: #666;
    text-decoration: none;
}

/* Product Title */
.product-enhanced-layout .product_title {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #2c3e50 !important;
    margin-bottom: 15px !important;
    line-height: 1.3 !important;
}

/* Social Proof Section */
.social-proof-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.social-proof-section .woocommerce-product-rating {
    margin: 0;
}

.social-proof-section .star-rating {
    color: #ffc107;
    font-size: 18px;
}

.sales-count {
    color: #666;
    font-size: 14px;
}

/* Price Section Enhancements */
.product-enhanced-layout .price {
    font-size: 32px !important;
    font-weight: bold !important;
    margin-bottom: 25px !important;
}

.product-enhanced-layout .price .amount {
    color: #e74c3c !important;
}

.product-enhanced-layout .price del {
    color: #999 !important;
    font-size: 20px !important;
    margin-right: 10px;
}

/* Countdown Timer */
.urgency-timer-section {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 25px;
}

.timer-text {
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.countdown-display {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 3px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Hot Item Notice */
.hot-item-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #856404;
}

/* Benefits List */
.product-benefits-list {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
}

.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    color: #333;
}

.benefit-item:last-child {
    margin-bottom: 0;
}

.benefit-icon {
    color: #27ae60;
    margin-right: 12px;
    font-size: 16px;
    min-width: 20px;
}

/* Stock Warning */
.stock-warning-section {
    background: #ffebee;
    color: #d32f2f;
    padding: 12px 15px;
    border-radius: 6px;
    margin: 15px 0;
    font-weight: 500;
    border-left: 4px solid #f44336;
}

/* Shipping Info */
.shipping-info-section {
    background: #e8f5e8;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.shipping-item {
    margin-bottom: 8px;
    font-size: 14px;
    color: #2e7d2e;
}

.shipping-item:last-child {
    margin-bottom: 0;
}

/* Enhanced Add to Cart Button */
.product-enhanced-layout .cart .single_add_to_cart_button {
    width: 100% !important;
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: white !important;
    border: none !important;
    padding: 18px !important;
    border-radius: 8px !important;
    font-size: 18px !important;
    font-weight: bold !important;
    margin: 15px 0 !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-enhanced-layout .cart .single_add_to_cart_button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4) !important;
}

/* Quantity Controls Enhancement */
.product-enhanced-layout .quantity {
    margin-bottom: 15px !important;
}

.product-enhanced-layout .quantity .qty {
    width: 60px !important;
    padding: 10px !important;
    text-align: center !important;
    border: 2px solid #ddd !important;
    border-radius: 6px !important;
    font-size: 16px !important;
}

/* Variations Enhancement */
.product-enhanced-layout .variations {
    margin-bottom: 20px !important;
}

.product-enhanced-layout .variations td {
    padding: 8px 0 !important;
}

.product-enhanced-layout .variations label {
    font-weight: 600 !important;
    color: #2c3e50 !important;
    font-size: 15px !important;
}

.product-enhanced-layout .variations select {
    width: 100% !important;
    padding: 10px !important;
    border: 2px solid #ddd !important;
    border-radius: 6px !important;
    font-size: 14px !important;
}

/* Trust Badges */
.trust-badges-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.trust-badge {
    text-align: center;
    padding: 15px 5px;
}

.trust-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 8px;
}

.trust-text {
    font-size: 11px;
    color: #666;
    line-height: 1.2;
    font-weight: 500;
}

/* ==============================================
   MOBILE RESPONSIVE
   ============================================== */
@media (max-width: 768px) {
    .product-layout-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-enhanced-layout {
        padding: 15px;
    }
    
    .product-info-section {
        position: static;
    }
    
    .product-enhanced-layout .product_title {
        font-size: 24px !important;
    }
    
    .product-enhanced-layout .price {
        font-size: 28px !important;
    }
    
    .countdown-display {
        font-size: 24px !important;
        letter-spacing: 2px;
    }
    
    .trust-badges-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .benefit-item {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .trust-badges-section {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .countdown-display {
        font-size: 20px !important;
        letter-spacing: 1px;
    }
    
    .urgency-timer-section {
        padding: 15px;
    }
}

/* ==============================================
   DISCOUNT BADGE (if needed)
   ============================================== */
.discount-badge {
    background: #27ae60;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
    display: inline-block;
}

/* Enhanced Sale Flash */
.product-enhanced-layout .onsale {
    background: #e74c3c !important;
    color: white !important;
    border-radius: 50% !important;
    width: 60px !important;
    height: 60px !important;
    line-height: 60px !important;
    text-align: center !important;
    font-weight: bold !important;
    top: 15px !important;
    right: 15px !important;
    left: auto !important;
    z-index: 9 !important;
}