/*
Theme Name: DigitalMarket
Theme URI: https://example.com
Author: DigitalMarket Team
Author URI: https://example.com
Description: A secure WordPress theme for digital products and courses, converted from Blogger design.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: e-commerce, digital products, courses, responsive, dark-mode
Text Domain: digitalmarket
*/

/* Frontend Styles */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

:root {
    --primary-color: #232f3e; 
    --secondary-color: #ff9900; 
    --accent-color: #37475a;
    --text-color: #0f1111; 
    --light-bg: #f3f3f3; 
    --white: #ffffff; 
    --border-color: #ddd;
    --success-color: #067d62; 
    --danger-color: #c40000;
    --shadow: 0 2px 8px rgba(0,0,0,0.1); 
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.2);
}

[data-theme="dark"] {
    --primary-color: #131921; 
    --accent-color: #232f3e; 
    --text-color: #ffffff;
    --light-bg: #1a1a1a; 
    --white: #232f3e; 
    --border-color: #3a3a3a;
}

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background-color: var(--light-bg);
    color: var(--text-color); 
    transition: all 0.3s ease; 
}

.header { 
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white); 
    padding: 0; 
    box-shadow: var(--shadow); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}

.header-top { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px 5%;
    flex-wrap: wrap; 
    gap: 15px; 
}

.logo { 
    font-size: 28px; 
    font-weight: bold; 
    color: var(--white); 
    display: flex;
    align-items: center; 
    gap: 10px; 
    cursor: pointer; 
    transition: all 0.3s; 
}

.logo:hover { 
    transform: scale(1.05); 
}

.logo i { 
    color: var(--secondary-color); 
}

.header-controls { 
    display: flex; 
    gap: 20px; 
    align-items: center; 
}

.language-selector select { 
    background: var(--white); 
    color: var(--text-color); 
    border: none;
    padding: 8px 15px; 
    border-radius: 5px; 
    cursor: pointer; 
    font-size: 14px; 
}

.theme-toggle { 
    background: var(--secondary-color); 
    border: none; 
    padding: 10px 15px;
    border-radius: 5px; 
    cursor: pointer; 
    color: var(--primary-color); 
    font-size: 18px; 
    transition: all 0.3s; 
}

.theme-toggle:hover { 
    transform: scale(1.1); 
}

.search-container { 
    flex: 1; 
    max-width: 600px; 
}

.search-bar { 
    display: flex; 
    width: 100%; 
}

.search-field { 
    flex: 1; 
    padding: 12px 20px; 
    border: none; 
    border-radius: 5px 0 0 5px; 
    font-size: 16px; 
}

.search-form button { 
    background: var(--secondary-color); 
    border: none; 
    padding: 12px 25px;
    border-radius: 0 5px 5px 0; 
    cursor: pointer; 
    color: var(--primary-color); 
    transition: all 0.3s; 
}

.search-form button:hover { 
    background: #f7941d; 
}

.category-filter { 
    margin-top: 10px; 
    display: flex; 
    gap: 10px; 
    flex-wrap: wrap; 
}

.category-chip { 
    background: var(--white); 
    color: var(--text-color); 
    padding: 5px 15px;
    border-radius: 20px; 
    cursor: pointer; 
    font-size: 14px; 
    transition: all 0.3s; 
    border: 2px solid transparent; 
}

.category-chip:hover, 
.category-chip.active { 
    background: var(--secondary-color);
    color: var(--primary-color); 
    border-color: var(--secondary-color); 
}

.hero-slider { 
    position: relative; 
    height: 400px; 
    overflow: hidden; 
}

.slide { 
    position: absolute; 
    width: 100%; 
    height: 100%; 
    opacity: 0; 
    transition: opacity 1s ease-in-out;
    background-size: cover; 
    background-position: center; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.slide.active { 
    opacity: 1; 
}

.slide-content { 
    text-align: center; 
    color: var(--white); 
    background: rgba(0,0,0,0.6);
    padding: 40px; 
    border-radius: 10px; 
    animation: slideUp 1s ease-out; 
}

@keyframes slideUp { 
    from { 
        transform: translateY(50px); 
        opacity: 0; 
    } 
    to { 
        transform: translateY(0); 
        opacity: 1; 
    } 
}

.slide-content h1 { 
    font-size: 48px; 
    margin-bottom: 20px; 
}

.slide-content p { 
    font-size: 20px; 
    margin-bottom: 30px; 
}

.cta-button { 
    background: var(--secondary-color); 
    color: var(--primary-color); 
    padding: 15px 40px;
    border: none; 
    border-radius: 5px; 
    font-size: 18px; 
    font-weight: bold; 
    cursor: pointer; 
    transition: all 0.3s; 
}

.cta-button:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 5px 15px rgba(255, 153, 0, 0.4); 
}

.slider-controls { 
    position: absolute; 
    bottom: 20px; 
    left: 50%; 
    transform: translateX(-50%);
    display: flex; 
    gap: 10px; 
}

.slider-dot { 
    width: 12px; 
    height: 12px; 
    border-radius: 50%; 
    background: rgba(255,255,255,0.5);
    cursor: pointer; 
    transition: all 0.3s; 
}

.slider-dot.active { 
    background: var(--secondary-color); 
    width: 30px; 
    border-radius: 6px; 
}

.categories-section, 
.products-section, 
.features-section { 
    padding: 50px 5%; 
}

.products-section { 
    background: var(--white); 
}

.features-section { 
    background: var(--light-bg); 
}

.section-title { 
    font-size: 32px; 
    margin-bottom: 30px; 
    color: var(--text-color); 
    position: relative; 
    padding-bottom: 15px; 
}

.section-title::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100px;
    height: 4px; 
    background: var(--secondary-color); 
}

.categories-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 20px; 
}

.category-card { 
    background: var(--white); 
    padding: 30px; 
    border-radius: 10px; 
    text-align: center;
    cursor: pointer; 
    transition: all 0.3s; 
    box-shadow: var(--shadow); 
}

.category-card:hover { 
    transform: translateY(-5px); 
    box-shadow: var(--shadow-hover); 
}

.category-card i { 
    font-size: 48px; 
    color: var(--secondary-color); 
    margin-bottom: 15px; 
}

.category-card h3 { 
    font-size: 18px; 
    color: var(--text-color); 
}

.products-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    margin-bottom: 30px; 
    flex-wrap: wrap; 
    gap: 20px; 
}

.filter-sort { 
    display: flex; 
    gap: 15px; 
}

.filter-sort select { 
    padding: 10px 15px; 
    border: 1px solid var(--border-color); 
    border-radius: 5px;
    background: var(--light-bg); 
    color: var(--text-color); 
    cursor: pointer; 
}

.products-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 25px; 
}

.product-card { 
    background: var(--light-bg); 
    border-radius: 10px; 
    overflow: hidden;
    box-shadow: var(--shadow); 
    transition: all 0.3s; 
    cursor: pointer; 
}

.product-card:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--shadow-hover); 
}

.product-image { 
    width: 100%; 
    height: 250px; 
    object-fit: cover; 
    transition: transform 0.3s; 
}

.product-card:hover .product-image { 
    transform: scale(1.05); 
}

.product-info { 
    padding: 20px; 
}

.product-title { 
    font-size: 18px; 
    font-weight: bold; 
    margin-bottom: 10px; 
    color: var(--text-color); 
}

.product-rating { 
    color: var(--secondary-color); 
    margin-bottom: 10px; 
}

.product-price { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    margin-bottom: 15px; 
}

.current-price { 
    font-size: 24px; 
    font-weight: bold; 
    color: var(--danger-color); 
}

.original-price { 
    font-size: 18px; 
    text-decoration: line-through; 
    color: #666; 
}

.product-actions { 
    display: flex; 
    gap: 10px; 
}

.btn { 
    flex: 1; 
    padding: 10px; 
    border: none; 
    border-radius: 5px; 
    cursor: pointer;
    font-weight: bold; 
    transition: all 0.3s; 
}

.btn-primary { 
    background: var(--secondary-color); 
    color: var(--primary-color); 
}

.btn-primary:hover { 
    background: #f7941d; 
}

.btn-secondary { 
    background: var(--primary-color); 
    color: var(--white); 
}

.btn-secondary:hover { 
    background: var(--accent-color); 
}

.features-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
}

.feature-card { 
    background: var(--white); 
    padding: 30px; 
    border-radius: 10px; 
    text-align: center;
    box-shadow: var(--shadow); 
}

.feature-card i { 
    font-size: 48px; 
    color: var(--secondary-color); 
    margin-bottom: 20px; 
}

.feature-card h3 { 
    font-size: 22px; 
    margin-bottom: 15px; 
    color: var(--text-color); 
}

.feature-card p { 
    color: #666; 
    line-height: 1.6; 
}

.footer { 
    background: var(--primary-color); 
    color: var(--white); 
    padding: 40px 5%; 
    margin-top: 50px; 
}

.footer-content { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px; 
    margin-bottom: 30px; 
}

.footer-section h3 { 
    margin-bottom: 15px; 
    color: var(--secondary-color); 
}

.footer-section ul { 
    list-style: none; 
}

.footer-section ul li { 
    margin-bottom: 10px; 
}

.footer-section a { 
    color: var(--white); 
    text-decoration: none; 
    transition: color 0.3s; 
}

.footer-section a:hover { 
    color: var(--secondary-color); 
}

.footer-bottom { 
    text-align: center; 
    padding-top: 20px; 
    border-top: 1px solid rgba(255,255,255,0.2); 
}

.footer-ratings { 
    display: flex; 
    justify-content: center; 
    gap: 5px; 
    margin-top: 15px;
    font-size: 20px; 
    color: var(--secondary-color); 
}

.whatsapp-float { 
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    background: #25D366; 
    color: white;
    width: 60px; 
    height: 60px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 30px; 
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4); 
    cursor: pointer;
    transition: all 0.3s; 
    z-index: 1000; 
    animation: pulse 2s infinite; 
}

@keyframes pulse { 
    0%, 100% { 
        transform: scale(1); 
    } 
    50% { 
        transform: scale(1.1); 
    } 
}

.whatsapp-float:hover { 
    transform: scale(1.2); 
}

.modal { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.7); 
    z-index: 2000; 
    align-items: center; 
    justify-content: center; 
}

.modal.active { 
    display: flex; 
}

.modal-content { 
    background: var(--white); 
    padding: 30px; 
    border-radius: 10px; 
    max-width: 800px;
    width: 90%; 
    max-height: 90vh; 
    overflow-y: auto; 
    animation: modalSlideIn 0.3s ease-out; 
}

@keyframes modalSlideIn { 
    from { 
        transform: translateY(-50px); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0); 
        opacity: 1; 
    } 
}

.modal-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 20px; 
}

.modal-close { 
    background: none; 
    border: none; 
    font-size: 30px; 
    cursor: pointer; 
    color: var(--text-color); 
}

.product-detail-images { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px; 
    margin-bottom: 20px; 
}

.product-detail-images img { 
    width: 100%; 
    height: 150px; 
    object-fit: cover; 
    border-radius: 5px;
    cursor: pointer; 
    transition: all 0.3s; 
}

.product-detail-images img:hover { 
    transform: scale(1.05); 
}

.form-group { 
    margin-bottom: 20px; 
}

.form-group label { 
    display: block; 
    margin-bottom: 5px; 
    font-weight: bold; 
    color: var(--text-color); 
}

.form-group label.required::after { 
    content: '*'; 
    color: var(--danger-color); 
    margin-left: 5px; 
}

.form-group input, 
.form-group textarea, 
.form-group select { 
    width: 100%; 
    padding: 12px;
    border: 1px solid var(--border-color); 
    border-radius: 5px; 
    font-size: 16px;
    background: var(--light-bg); 
    color: var(--text-color); 
}

.payment-methods { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px; 
    margin: 20px 0; 
}

.payment-method { 
    padding: 15px; 
    border: 2px solid var(--border-color); 
    border-radius: 5px;
    cursor: pointer; 
    text-align: center; 
    transition: all 0.3s; 
}

.payment-method:hover, 
.payment-method.active { 
    border-color: var(--secondary-color);
    background: var(--secondary-color); 
    color: var(--primary-color); 
}

.payment-method i { 
    font-size: 24px; 
    margin-bottom: 5px; 
}

.payment-fields { 
    display: none; 
    margin-top: 20px; 
}

.payment-fields.active { 
    display: block; 
}

.notification { 
    position: fixed; 
    top: 20px; 
    right: 20px; 
    background: var(--success-color);
    color: white; 
    padding: 15px 25px; 
    border-radius: 5px; 
    box-shadow: var(--shadow-hover);
    z-index: 3000; 
    animation: slideInRight 0.3s ease-out; 
}

@keyframes slideInRight { 
    from { 
        transform: translateX(400px); 
    } 
    to { 
        transform: translateX(0); 
    } 
}

/* Stats Counter Styles */
.stats-counter .stat-item { 
    animation: fadeInUp 0.8s ease-out; 
}

.stats-counter .stat-number { 
    font-size: 48px; 
    font-weight: bold; 
    color: var(--secondary-color); 
    margin-bottom: 10px; 
}

.stats-counter .stat-label { 
    font-size: 16px; 
    color: var(--text-color); 
    opacity: 0.8; 
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@media (max-width: 768px) {
    .header-top { 
        flex-direction: column; 
    }
    
    .search-container { 
        width: 100%; 
        max-width: 100%; 
    }
    
    .logo { 
        font-size: 22px; 
    }
    
    .slide-content h1 { 
        font-size: 28px; 
    }
    
    .slide-content p { 
        font-size: 16px; 
    }
    
    .slide-content { 
        padding: 25px; 
    }
    
    .products-grid { 
        grid-template-columns: 1fr; 
        gap: 15px; 
    }
    
    .product-card { 
        margin: 0 10px; 
    }
    
    .categories-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    
    .features-grid { 
        grid-template-columns: 1fr; 
    }
    
    .footer-content { 
        grid-template-columns: 1fr; 
    }
    
    .modal-content { 
        padding: 20px; 
        width: 95%; 
    }
    
    .payment-methods { 
        grid-template-columns: repeat(2, 1fr); 
    }
}