/* Global Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    color: #2d3436;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar Styles */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
    background: #fff;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-brand img {
    height: 40px;
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #6c5ce7 0%, #a393eb 100%);
    padding: 4rem 0;
    margin-bottom: 2rem;
    border-radius: 0 0 50px 50px;
}

.hero-section h1 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-section p {
    color: rgba(255,255,255,0.9);
}

.hero-features {
    color: #fff;
    font-size: 1.1rem;
}

/* Product Card */
.product-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.product-card .card-img-top {
    height: 200px;
    object-fit: contain;
    padding: 1rem;
    background: #f8f9fa;
}

.product-card .card-body {
    padding: 1.5rem;
}

.product-card .card-title {
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Price Styling */
.price {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.selling-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3436;
}

.original-price {
    font-size: 1rem;
    color: #a0a0a0;
    text-decoration: line-through;
}

/* Buttons */
.btn-primary {
    background: #6c5ce7;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #5b4bc4;
    transform: translateY(-2px);
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #6c5ce7;
    border-radius: 3px;
}

/* Categories Section */
.categories-section {
    margin-top: -25px;
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
}

.category-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.simple-category-card {
    background: #fff;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.simple-category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.15);
}

.category-icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.simple-category-card:hover .category-icon {
    background: #6c5ce7;
}

.simple-category-card:hover .category-icon i {
    color: #fff !important;
}

.category-info h6 {
    font-weight: 600;
    color: #2d3436;
    transition: all 0.3s ease;
}

.simple-category-card:hover .category-info h6 {
    color: #6c5ce7;
}

.category-info small {
    display: block;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .categories-section {
        margin-top: -15px;
    }
    
    .simple-category-card {
        padding: 0.8rem;
    }
    
    .category-icon {
        width: 35px;
        height: 35px;
        min-width: 35px;
        font-size: 1rem;
        margin-right: 0.8rem;
    }
    
    .category-info h6 {
        font-size: 0.9rem;
    }
    
    .category-info small {
        font-size: 0.7rem;
    }
}

/* Brand Cards */
.brand-card {
    transition: all 0.3s ease;
}

.brand-card:hover {
    transform: scale(1.05);
}

/* Review Cards */
.review-card {
    border-radius: 15px;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.1);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.1);
}

.review-avatar {
    transition: all 0.3s ease;
}

.review-card:hover .review-avatar {
    transform: scale(1.1);
}

.rating {
    font-size: 1.1rem;
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .review-card {
        padding: 1rem !important;
    }

    .review-avatar {
        width: 40px !important;
        height: 40px !important;
    }

    .review-avatar span {
        font-size: 1rem !important;
    }

    .review-card h6 {
        font-size: 0.9rem;
    }

    .review-card p {
        font-size: 0.85rem;
    }

    .rating {
        font-size: 1rem;
    }
}

/* Stats Cards */
.stats-card {
    border-radius: 15px;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.stats-card:hover {
    transform: translateY(-5px);
}

/* Newsletter Section */
.newsletter-section {
    border-radius: 20px;
    background: linear-gradient(135deg, #6c5ce7 0%, #a393eb 100%);
    padding: 3rem !important;
    color: #fff;
}

.newsletter-section h3 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.newsletter-section .form-control {
    border-radius: 10px 0 0 10px;
    border: none;
    padding: 0.8rem 1.5rem;
}

.newsletter-section .btn {
    border-radius: 0 10px 10px 0;
    padding: 0.8rem 1.5rem;
    background: #2d3436;
    border: none;
}

/* Footer */
footer {
    background: #2d3436;
    color: #fff;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    border-radius: 50px 50px 0 0;
}

footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: #fff;
    text-decoration: none;
}

/* WhatsApp Float Button */
.float-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(37,211,102,0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.float-whatsapp:hover {
    transform: scale(1.1);
    color: #fff;
}

/* Additional Images */
.additional-images {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    transition: all 0.3s ease;
}

.product-card:hover .additional-images {
    opacity: 1;
}

.additional-images img {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid #fff;
    transition: all 0.3s ease;
}

.additional-images img:hover {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
        text-align: center;
        border-radius: 0 0 30px 30px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section img {
        margin-top: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .product-card .card-img-top {
        height: 150px;
    }

    .selling-price {
        font-size: 1.1rem;
    }

    .original-price {
        font-size: 0.9rem;
    }

    .newsletter-section {
        padding: 2rem !important;
    }

    footer {
        padding: 2rem 0 1rem;
        border-radius: 30px 30px 0 0;
    }

    .float-whatsapp {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

/* Loading Animation */
.loading {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading:after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #6c5ce7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #6c5ce7;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5b4bc4;
}

/* Customer Reviews Carousel */
#customerReviews .carousel-control-prev,
#customerReviews .carousel-control-next {
    width: 40px;
    height: 40px;
    background: rgba(108, 92, 231, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

#customerReviews .carousel-control-prev {
    left: -20px;
}

#customerReviews .carousel-control-next {
    right: -20px;
}

#customerReviews .carousel-indicators {
    bottom: -40px;
}

#customerReviews .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #6c5ce7;
    opacity: 0.5;
}

#customerReviews .carousel-indicators button.active {
    opacity: 1;
}

@media (max-width: 768px) {
    #customerReviews .carousel-control-prev,
    #customerReviews .carousel-control-next {
        display: none;
    }
    
    #customerReviews .carousel-indicators {
        bottom: -30px;
    }
}

/* AdSense Styles */
.adsense-container {
    margin: 2rem 0;
    padding: 1rem;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-align: center;
    clear: both;
}

.adsense-container.sidebar {
    margin: 1rem 0;
}

.adsense-container.in-content {
    margin: 2rem 0;
    padding: 1.5rem;
}

.adsense-label {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .adsense-container {
        margin: 1rem 0;
        padding: 0.5rem;
    }
    
    .adsense-container.in-content {
        margin: 1rem 0;
        padding: 1rem;
    }
}

/* Mobile-first responsive design */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    overflow-x: hidden;
}

/* Card styles */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Mobile styles */
@media (max-width: 768px) {
    /* Improve touch targets */
    .btn, .nav-link, input, select, textarea {
        min-height: 44px;
    }

    /* Adjust spacing */
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Make cards edge-to-edge */
    .card {
        border-radius: 0;
        margin-left: -10px;
        margin-right: -10px;
    }

    /* Adjust font sizes */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    /* Improve table responsiveness */
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Stack grid columns */
    .row {
        margin-left: 0;
        margin-right: 0;
    }

    /* Adjust product cards */
    .product-card {
        margin-bottom: 15px;
    }

    .product-card .card-img-top {
        height: auto;
    }

    /* Adjust prices */
    .price {
        font-size: 1.1rem;
    }

    .selling-price {
        font-size: 1.25rem;
    }

    /* Improve form elements */
    .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
    }

    /* Adjust buttons */
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    /* Fix floating elements */
    .float-whatsapp {
        right: 15px;
        bottom: 15px;
    }
}

/* Prevent horizontal scroll */
.row {
    margin-left: 0;
    margin-right: 0;
}

/* Additional mobile optimizations */
@media (max-width: 576px) {
    body {
        font-size: 14px;
    }

    .container {
        padding-left: 5px;
        padding-right: 5px;
    }

    .navbar-brand img {
        height: 30px;
    }

    .card-body {
        padding: 15px;
    }
} 