/* Optimized style.css - Reduced header bulk */

/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #007bff;
}

.btn {
    border-radius: 0;
    padding: 8px 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-dark {
    background-color: #212529;
    border-color: #212529;
}

.section-title {
    position: relative;
    margin-bottom: 30px;
}

.section-title h2 {
    font-size: 28px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    position: relative;
    padding-bottom: 10px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: #007bff;
}

/* Header Styles - OPTIMIZED FOR MINIMAL BULK */
.site-header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Reduce header padding significantly */
.site-header .header-top {
    padding: 8px 0; /* Reduced from default Bootstrap py-2 */
    min-height: 50px; /* Reduced from 70px */
}

.logo img {
    max-height: 40px; /* Reduced from 60px */
}

.search-form .form-control {
    border-radius: 0;
    border-right: none;
    height: 32px; /* Smaller search input */
    font-size: 13px; /* Slightly smaller font */
}

.search-form .btn {
    border-radius: 0;
    padding: 6px 10px; /* Reduced padding */
    height: 32px; /* Match input height */
}

.header-cart {
    position: relative;
}

.cart-icon {
    font-size: 20px; /* Slightly smaller */
    position: relative;
    display: inline-block;
}

.cart-count {
    position: absolute;
    top: -8px; /* Adjusted positioning */
    right: -8px;
    background-color: #007bff;
    color: #fff;
    font-size: 11px; /* Slightly smaller */
    font-weight: 700;
    width: 18px; /* Smaller badge */
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure columns are properly aligned */
.header-top .row {
    align-items: center;
    margin: 0;
}

.header-top .col-6,
.header-top .col-md-3,
.header-top .col-md-6 {
    padding: 2px 8px; /* Reduced padding */
}

/* Navigation - Reduce padding */
.navbar {
    padding: 0;
}

.navbar-dark .navbar-nav .nav-link {
    color: #f8f9fa;
    padding: 10px 15px; /* Reduced from 15px */
    font-weight: 500;
    text-transform: uppercase;
    font-size: 13px; /* Slightly smaller */
    letter-spacing: 1px;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #007bff;
}

.dropdown-menu {
    border-radius: 0;
    padding: 0;
    margin-top: 0;
    border: none;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    padding: 8px 20px; /* Reduced padding */
    border-bottom: 1px solid #f1f1f1;
    font-size: 13px; /* Smaller font */
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    overflow: hidden;
    padding: 2px 2px 2px 2px;
}

.hero-slider .slider {
    display: block;
}

.slider-item {
    height: 200px; /* Reduced from 250px */
    width: 100%; /* Changed from 200px to full width for proper display */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.slider-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.slider-content {
    position: relative;
    z-index: 1;
    padding: 15px; /* Reduced from 30px */
    background: rgba(255, 255, 255, 0.8);
    max-width: 300px; /* Reduced from 400px */
}

.slider-content h1 {
    font-size: 24px; /* Reduced from 36px */
    font-weight: 700;
    margin-bottom: 10px; /* Reduced from 20px */
    color: #212529;
}

.slider-content p {
    font-size: 14px; /* Reduced from 18px */
    margin-bottom: 15px; /* Reduced from 30px */
    color: #212529;
}

/* Compact button styling */
.slider-content .btn {
    padding: 8px 16px; /* Reduced padding */
    margin-right: 8px;
    font-size: 14px;
}


/* Categories Section */
.category-card {
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card .card {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.category-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: all 0.3s ease;
}

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

.category-card .card-body {
    padding: 15px;
}

.category-card .card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 0;
}

/* Product Card */
.product-card {
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    transition: all 0.3s ease;
}

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

.product-details {
    padding: 15px;
}

.product-details .brand {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 5px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    height: 40px;
    overflow: hidden;
}

.product-title a {
    color: #212529;
}

.product-title a:hover {
    color: #007bff;
}

.product-price {
    margin-bottom: 15px;
}

.product-price .price {
    font-size: 18px;
    font-weight: 700;
    color: #212529;
}

.product-price .regular-price {
    font-size: 14px;
    color: #6c757d;
    text-decoration: line-through;
    margin-left: 5px;
}

.product-actions {
    display: flex;
    justify-content: space-between;
}

.product-actions .btn {
    flex: 1;
    margin: 0 5px;
    padding: 8px 10px;
    font-size: 12px;
}

/* Brand Slider */
.brand-slider {
    padding: 20px 0;
}

.brand-item {
    text-align: center;
    padding: 0 20px;
}

.brand-item img {
    max-height: 60px;
    margin: 0 auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.brand-item:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* Newsletter Section */
.newsletter-section {
    background-color: #f8f9fa;
}

.newsletter-form .form-control {
    border-radius: 0;
    border-right: none;
    height: 50px;
}

.newsletter-form .btn {
    border-radius: 0;
    height: 50px;
}

/* Footer */
.site-footer {
    background-color: #212529;
    color: #f8f9fa;
}

.site-footer h5 {
    color: #fff;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #adb5bd;
}

.footer-links a:hover {
    color: #fff;
}

.social-links {
    display: flex;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #343a40;
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #007bff;
    color: #fff;
}

/* Product Detail Page */
.product-detail .product-image img {
    width: 100%;
    height: auto;
}

.product-detail .brand {
    color: #6c757d;
    font-size: 16px;
}

.product-detail .product-title {
    font-size: 28px;
    font-weight: 600;
    height: auto;
}

.product-detail .product-price {
    margin-bottom: 20px;
}

.product-detail .product-price .price {
    font-size: 24px;
}

.product-detail .product-price .regular-price {
    font-size: 18px;
}

.product-detail .product-description {
    margin-bottom: 20px;
}

.qty-input {
    width: 60px;
    text-align: center;
}

/* Shopping Cart Page */
.cart-items .table img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.cart-summary {
    position: sticky;
    top: 20px;
}

/* Checkout Page */
.checkout-form .card {
    margin-bottom: 30px;
}

.checkout-form .card-header {
    background-color: #f8f9fa;
}

.order-summary {
    position: sticky;
    top: 20px;
}

.order-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f1f1;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-image img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

/* Order Confirmation Page */
.confirmation-icon {
    font-size: 80px;
    color: #28a745;
}

/* Notification Styles */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    width: 300px;
}

.notification {
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    border-left: 4px solid #007bff;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    position: relative;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-success {
    border-left-color: #28a745;
}

.notification-error {
    border-left-color: #dc3545;
}

.notification-content {
    padding-right: 20px;
}

.notification-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.notification-message {
    font-size: 14px;
}

.notification-close {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #6c757d;
}

/* Loading Indicator */
.cart-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.input-group-newsletter {
    display: flex;
}

@media (max-width: 575.98px) {
    .input-group-newsletter {
        flex-direction: column;
    }
    
    .input-group-newsletter .input-group-append {
        margin-top: 10px;
    }
    
    .input-group-newsletter .btn {
        width: 100%;
    }
    
    #notification-container {
        width: 90%;
        right: 5%;
    }
}

/* Search Results Page */
.search-header {
    background-color: #f8f9fa;
    padding: 20px 0; 
}

.search-header h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.search-header .search-form {
    max-width: 100px;
    margin-top: 10px;
}

.search-results .product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-results .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* Mobile specific search form styling */
@media (max-width: 767.98px) {
    .search-form .form-control {
        padding: 4px 8px; /* Compact padding for mobile */
    }
    
    /* Shorter placeholder text for mobile */
    .search-form .form-control::placeholder {
        color: #999;
        font-size: 12px;
    }
    
    /* Make sure all elements fit nicely on one line */
    .header-top .col-4,
    .header-top .col-5,
    .header-top .col-3 {
        display: flex;
        align-items: center;
    }
    
    .header-top .col-4 {
        justify-content: flex-start;
    }
    
    .header-top .col-5 {
        justify-content: center;
    }
    
    .header-top .col-3 {
        justify-content: flex-end;
    }
}

.back-to-top:hover {
    background: #0056b3;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}