/* Custom CSS for AtoZ Cleaning Supplies */

:root {
    --primary-yellow: #ffc107;
    --dark-yellow: #e0a800;
    --light-yellow: #fff3cd;
    --dark-gray: #343a40;
    --light-gray: #f8f9fa;
    --success-green: #28a745;
    --danger-red: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: #ffffff;
}

/* Navigation Styles */
.navbar-brand {
    font-size: 1.8rem !important;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark-gray) !important;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-yellow) !important;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-yellow);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--dark-yellow) 100%);
    color: white;
    padding: 80px 0;
    margin-top: 0;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Carousel Styles */
.carousel-item {
    height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    padding: 2rem;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
}

.carousel-caption h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-yellow);
}

.carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--primary-yellow);
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

/* Product Cards */
.product-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: white;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.product-card .card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.product-card .card-body {
    padding: 1.5rem;
}

.product-card .card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.product-card .card-text {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-yellow);
    margin-bottom: 1rem;
}

/* Buttons */
.btn-warning {
    background-color: var(--primary-yellow);
    border-color: var(--primary-yellow);
    color: var(--dark-gray);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background-color: var(--dark-yellow);
    border-color: var(--dark-yellow);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-warning {
    color: var(--primary-yellow);
    border-color: var(--primary-yellow);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-outline-warning:hover {
    background-color: var(--primary-yellow);
    border-color: var(--primary-yellow);
    color: var(--dark-gray);
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-yellow);
    border-radius: 2px;
}

/* Features Section */
.features-section {
    background-color: var(--light-gray);
    padding: 80px 0;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-yellow);
    margin-bottom: 1.5rem;
}

.feature-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
}

/* Product Detail Page */
.product-detail {
    padding: 80px 0;
}

.product-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.product-price-large {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-yellow);
    margin-bottom: 1.5rem;
}

.product-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 2rem;
}

.product-specs {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.product-specs h5 {
    color: var(--dark-gray);
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-specs ul {
    list-style: none;
    padding: 0;
}

.product-specs li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
}

.product-specs li:last-child {
    border-bottom: none;
}

.product-specs strong {
    color: var(--primary-yellow);
}

/* Cart Styles */
.cart-item {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-summary {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 15px;
    position: sticky;
    top: 100px;
}

/* Filter Sidebar */
.filter-sidebar {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 15px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-section {
    margin-bottom: 2rem;
}

.filter-section h5 {
    color: var(--dark-gray);
    font-weight: 600;
    margin-bottom: 1rem;
}

.filter-checkbox {
    margin-bottom: 0.5rem;
}

.filter-checkbox input[type="checkbox"] {
    margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .carousel-caption h3 {
        font-size: 1.8rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .product-info h1 {
        font-size: 2rem;
    }
    
    .product-price-large {
        font-size: 1.5rem;
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .search-bar {
        margin: 1rem 0;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .carousel-item {
        height: 300px;
    }
    
    .carousel-caption {
        padding: 1rem;
        bottom: 20px;
    }
    
    .carousel-caption h3 {
        font-size: 1.5rem;
    }
    
    .product-card .card-img-top {
        height: 200px;
    }
    
    .features-section {
        padding: 60px 0;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading Spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-yellow);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
    padding: 1rem 1.5rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: var(--light-yellow);
    color: #856404;
}

/* Form Styles */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

/* Badge Styles */
.badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    border-radius: 15px;
}

/* Category Cards */
.category-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: white;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.category-quick-link {
    border: none;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.category-quick-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Business Hours */
.business-hours .d-flex {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.business-hours .d-flex:last-child {
    border-bottom: none;
}

/* Security Badges */
.security-badges {
    font-size: 1.2rem;
}

/* Rating Display */
.rating-display {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: 10px;
}

.stars {
    font-size: 1.2rem;
}

/* Review Item */
.review-item {
    padding: 1rem;
    background-color: var(--light-gray);
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* Error Page */
.error-content {
    padding: 3rem 0;
}

/* Map Placeholder */
.map-placeholder {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Utility Classes */
.text-warning {
    color: var(--primary-yellow) !important;
}

.bg-warning {
    background-color: var(--primary-yellow) !important;
}

.border-warning {
    border-color: var(--primary-yellow) !important;
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

.rounded-custom {
    border-radius: 15px !important;
}
