/**
 * Ecommerce Pro Theme - Custom Styles
 *
 * @package Ecommerce_Pro
 */

/* Additional Header Styles */
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.site-header.header-hidden {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle-icon {
    transition: transform 0.3s ease;
}

.menu-toggle.active .menu-toggle-icon {
    transform: rotate(180deg);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-cart {
    position: relative;
}

.cart-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cart-link:hover {
    background-color: rgba(6, 0, 255, 0.1);
}

.cart-count {
    background: #D30000;
    color: #FFFFFF;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.search-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.search-toggle:hover {
    background-color: rgba(6, 0, 255, 0.1);
}

.header-search-form {
    background: #FFFFFF;
    padding: 1rem 0;
    border-top: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-search-form input[type="search"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #eee;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.header-search-form input[type="search"]:focus {
    outline: none;
    border-color: #0600FF;
}

/* Categories Section */
.categories-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.category-card {
    background: #FFFFFF;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.category-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.category-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #312D60 0%, #0600FF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon {
    font-size: 3rem;
    color: #FFFFFF;
}

.category-content {
    padding: 1.5rem;
}

.category-content h3 {
    margin-bottom: 0.5rem;
    color: #312D60;
}

.category-content p {
    color: #686868;
    margin: 0;
}

/* Testimonials Section */
.testimonials-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: #FFFFFF;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 3rem;
    color: #0600FF;
    opacity: 0.3;
}

.testimonial-content {
    margin-bottom: 1.5rem;
    font-style: italic;
    color: #686868;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    margin: 0 0 0.25rem 0;
    color: #312D60;
}

.author-position {
    margin: 0;
    color: #686868;
    font-size: 0.9rem;
}

/* Newsletter Section */
.newsletter-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #312D60 0%, #0600FF 100%);
    color: #FFFFFF;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.newsletter-content p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.newsletter-form .btn {
    background: #FFFFFF;
    color: #312D60;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form .btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

/* Product Enhancements */
.product-image-wrapper {
    position: relative;
    overflow: hidden;
}

.sale-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #D30000;
    color: #FFFFFF;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.product-placeholder {
    width: 100%;
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-icon {
    font-size: 3rem;
    color: #686868;
}

.product-actions {
    margin-top: 1rem;
}

.product-actions .button {
    width: 100%;
    text-align: center;
}

/* Widget Styles */
.widget-products {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.widget-product {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.widget-product:hover {
    background: #e9ecef;
}

.widget-product-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.widget-product-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
}

.widget-product-info .price {
    color: #0600FF;
    font-weight: 600;
}

.widget-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-categories li {
    margin-bottom: 0.5rem;
}

.widget-categories a {
    display: block;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.widget-categories a:hover {
    background: rgba(6, 0, 255, 0.1);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.social-icon {
    font-size: 1.2rem;
}

/* Contact Info */
.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.contact-icon {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Footer Bottom */
.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #FFFFFF;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

/* Notifications */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: #FFFFFF;
    padding: 1rem 1.5rem;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid #28a745;
}

.notification-error {
    border-left: 4px solid #dc3545;
}

.notification-info {
    border-left: 4px solid #17a2b8;
}

.notification-message {
    margin-right: 1rem;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.notification-close:hover {
    opacity: 1;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #FFFFFF;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        z-index: 1000;
    }
    
    .main-navigation ul.active {
        display: block;
    }
    
    .header-actions {
        gap: 0.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .notification {
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-secondary {
        margin-left: 0;
    }
    
    .categories-grid,
    .products-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}
