/* Website Styles - Modern Design */

/* Google Fonts */
body {
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Description Text Styles */
.description-text {
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.description-text p {
    margin: 0 0 1rem;
    color: #333 !important;
    line-height: 1.6;
}

/* Top Bar */
.top-bar {
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar a:hover {
    color: #fff !important;
    text-decoration: underline;
}

/* Main Header - Enhanced Responsive Design */
.main-header {
    border-bottom: 1px solid #e9ecef;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.brand-logo {
    transition: transform 0.3s ease;
    text-decoration: none;
}

.brand-logo:hover {
    transform: translateY(-2px);
}

.logo-icon {
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

.brand-name {
    font-weight: 700;
    font-size: 1.2rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Mobile Menu Toggle - Enhanced */
.mobile-menu-toggle {
    display: none;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #e9ecef;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mobile-menu-toggle:hover {
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    color: white;
    border-color: #0d6efd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.mobile-menu-toggle:active {
    transform: translateY(0);
}

/* Mobile Navigation - Fixed Display Issues */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 1050;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-nav.active {
    left: 0;
    display: block;
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
}

.mobile-nav-overlay.active {
    display: block;
}

.mobile-nav-header {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.mobile-nav-close:hover {
    background: #f8f9fa;
}

.mobile-nav-menu {
    padding: 1rem 0;
}

.mobile-nav-menu .nav-link {
    display: block;
    padding: 1rem;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.3s ease;
    font-weight: 500;
}

.mobile-nav-menu .nav-link:hover {
    background: #f8f9fa;
    color: #0d6efd;
    padding-left: 1.5rem;
}

.mobile-nav-menu .nav-link.active {
    background: #0d6efd;
    color: white;
}

.mobile-nav-menu .dropdown-menu {
    display: block;
    position: static;
    background: #f8f9fa;
    box-shadow: none;
    border: none;
    padding-left: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.mobile-nav-menu .dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #666;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-nav-menu .dropdown-item:hover {
    background: #e9ecef;
    color: #333;
    text-decoration: none;
}

/* Mobile Search in Sidebar */
.mobile-search {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.mobile-search .search-form {
    background: #f8f9fa;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.mobile-search .search-form .form-control {
    border: none;
    background: transparent;
    padding: 10px 16px;
    font-size: 0.9rem;
}

.mobile-search .search-form .btn {
    background: #0d6efd;
    border: none;
    padding: 10px 16px;
    border-radius: 0 20px 20px 0;
    color: white;
}

/* Mobile Profile Section */
.mobile-profile-section {
    padding: 1rem;
    border-top: 1px solid #e9ecef;
    margin-top: 1rem;
}

.profile-info {
    margin-bottom: 1rem;
}

.profile-avatar {
    font-size: 1.2rem;
}

.mobile-profile-section .nav-link {
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
    border-radius: 8px;
    border: none;
}

.mobile-profile-section .nav-link:hover {
    background: #f8f9fa;
    padding-left: 1rem;
}

.mobile-profile-section .nav-link.text-danger:hover {
    background: #fee;
    color: #dc3545 !important;
}

/* Single Line Navigation */
.main-nav {
    padding: 0;
}

.main-nav .nav {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-nav .nav-link {
    color: #333;
    padding: 8px 12px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: #0d6efd;
    background-color: #f8f9fa;
}

/* Simple Search Field */
.search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-form {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.search-form:focus-within {
    background: white;
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.1);
}

.search-form .form-control {
    border: none;
    background: transparent;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    flex: 1;
}

.search-form .form-control:focus {
    box-shadow: none;
    outline: none;
    background: transparent;
}

.search-form .form-control::placeholder {
    color: #6c757d;
    font-weight: 400;
}

.search-form .btn {
    background: #0d6efd;
    border: none;
    padding: 12px 20px;
    border-radius: 0 25px 25px 0;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

.search-form .btn:hover {
    background: #0b5ed7;
    transform: translateY(-1px);
}

.search-form .btn i {
    font-size: 0.9rem;
}

/* Profile Dropdown */
.profile-dropdown .dropdown-toggle {
    border-radius: 25px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    background: white;
}

.profile-dropdown .dropdown-toggle:hover {
    background: #f8f9fa;
    border-color: #0d6efd;
    color: #0d6efd;
    transform: translateY(-1px);
}

.profile-dropdown .dropdown-toggle::after {
    margin-left: 8px;
}

.profile-dropdown .dropdown-menu {
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 8px 0;
    min-width: 180px;
}

.profile-dropdown .dropdown-item {
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    transition: all 0.2s ease;
    border-radius: 6px;
    margin: 2px 8px;
}

.profile-dropdown .dropdown-item:hover {
    background: #f8f9fa;
    color: #0d6efd;
    transform: translateX(2px);
}

.profile-dropdown .dropdown-item i {
    width: 16px;
    text-align: center;
    font-size: 0.85rem;
}

.profile-dropdown .dropdown-divider {
    margin: 8px 16px;
    border-color: #e9ecef;
}

/* Search Suggestions Dropdown */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-suggestions.active {
    display: block;
}

.search-suggestion-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f8f9fa;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-suggestion-item:hover {
    background: #f8f9fa;
}

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

.search-suggestion-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
}

.search-suggestion-item .content {
    flex: 1;
}

.search-suggestion-item .title {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.search-suggestion-item .price {
    color: #0d6efd;
    font-weight: 700;
    font-size: 0.85rem;
}

.search-suggestion-item .category {
    color: #6c757d;
    font-size: 0.8rem;
}

/* Header Actions */
.header-actions {
    gap: 10px;
}

.header-actions .btn {
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px;
    transition: all 0.3s ease;
    min-width: 120px;
}

.header-actions .btn:hover {
    transform: translateY(-1px);
}

/* Account Section Styling */
.header-actions .btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    border: none;
}

.header-actions .btn-primary:hover {
    background: linear-gradient(135deg, #0b5ed7 0%, #5a0fb8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.header-actions .btn-outline-primary:hover {
    background-color: #0d6efd;
    border-color: #0d6efd;
    transform: translateY(-1px);
}

/* Flash Messages */
.flash-messages .alert {
    border-radius: 0;
    border: none;
    margin-bottom: 0;
}

.flash-messages .alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.flash-messages .alert-danger {
    background-color: #f8d7da;
    color: #842029;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 400px);
}

/* Hero Slider - Responsive Design */
.hero-slider {
    margin-bottom: 0;
}

.hero-slider .carousel {
    height: 500px;
    height: 60vh;
    min-height: 300px;
    max-height: 600px;
}

.hero-slider .carousel-inner {
    height: 500px;
    height: 60vh;
    min-height: 300px;
    max-height: 600px;
}

.hero-slider .carousel-item {
    height: 500px;
    height: 60vh;
    min-height: 300px;
    max-height: 600px;
}

.hero-slider .carousel-item img {
    height: 500px;
    height: 60vh;
    min-height: 300px;
    max-height: 600px;
    width: 100%;
    object-fit: cover;
}

/* Mobile carousel adjustments */
@media (max-width: 768px) {
    .hero-slider .carousel,
    .hero-slider .carousel-inner,
    .hero-slider .carousel-item,
    .hero-slider .carousel-item img {
        height: 50vh;
        min-height: 250px;
        max-height: 400px;
    }
    
    .hero-slider .carousel-caption {
        position: absolute;
        bottom: 10px !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        text-align: center;
        padding: 1rem;
        background: linear-gradient(transparent, rgba(0,0,0,0.7));
    }
    
    .hero-slider .carousel-caption h2 {
        font-size: 1.2rem !important;
        margin-bottom: 0.5rem;
    }
    
    .hero-slider .carousel-caption p {
        font-size: 0.9rem !important;
        margin-bottom: 1rem;
    }
    
    .hero-slider .carousel-caption .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero-slider .carousel,
    .hero-slider .carousel-inner,
    .hero-slider .carousel-item,
    .hero-slider .carousel-item img {
        height: 40vh;
        min-height: 200px;
        max-height: 350px;
    }
}

/* Dot Indicators */
.hero-slider .carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    margin: 0;
    padding: 0;
    list-style: none;
    justify-content: center;
    align-items: center;
    width: auto;
}

.hero-slider .dot {
    width: 40px;
    height: 3px;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
}

.hero-slider .dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scaleY(1.2);
}

.hero-slider .dot.active {
    background-color: #ff6b6b;
    transform: scaleY(1.5);
}

/* Category Cards - Responsive Design */
.category-card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    overflow: hidden;
    border-radius: 12px;
}

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

.category-card .card-body {
    padding: 2rem 1.5rem;
}

.category-card img {
    height: 60px;
    object-fit: contain;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

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

/* Mobile category adjustments */
@media (max-width: 768px) {
    .category-card .card-body {
        padding: 1.5rem 1rem;
    }
    
    .category-card img {
        height: 50px;
        margin-bottom: 0.75rem;
    }
    
    .category-card h6 {
        font-size: 0.85rem;
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .category-card .card-body {
        padding: 1rem 0.75rem;
    }
    
    .category-card img {
        height: 40px;
        margin-bottom: 0.5rem;
    }
    
    .category-card h6 {
        font-size: 0.8rem;
        line-height: 1.2;
    }
}

/* Product Cards - Enhanced Responsive Design */
.product-card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    overflow: hidden;
    border-radius: 12px;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.product-card .card-img-top {
    border-radius: 12px 12px 0 0;
    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;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card .card-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .text-primary {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.product-card .btn {
    border-radius: 50px;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    margin-top: auto;
}

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

/* Mobile product card adjustments */
@media (max-width: 768px) {
    .product-card .card-img-top {
        height: 200px;
    }
    
    .product-card .card-body {
        padding: 1rem;
    }
    
    .product-card .card-title {
        font-size: 1rem;
    }
    
    .product-card .text-primary {
        font-size: 1.1rem;
    }
    
    .product-card .btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .product-card .card-img-top {
        height: 180px;
    }
    
    .product-card .card-body {
        padding: 0.75rem;
    }
    
    .product-card .card-title {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
    
    .product-card .text-primary {
        font-size: 1rem;
    }
    
    .product-card .btn {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
}

/* Highlight Items */
.highlight-item {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    text-align: center;
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.highlight-item i {
    color: #0d6efd;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
    margin-top: 4rem;
}

.footer-brand h4 {
    color: white;
    font-weight: 700;
}

.footer-logo {
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
}

.footer-title {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-align: center;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    text-align: center;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #0d6efd;
    transform: translateY(-3px);
}

.payment-icons i {
    font-size: 1.5rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.payment-icons i:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.footer-bottom {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.footer .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

/* Cart Badge */
.badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
    font-weight: 600;
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #6c757d;
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin-top: 2rem;
}

.pagination-info {
    font-size: 0.9rem;
    color: #6c757d;
    text-align: center;
}

.pagination-info .fw-bold {
    color: #333;
    margin: 0 0.25rem;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    margin: 0;
    list-style: none;
    padding: 0;
}

.pagination .page-item {
    margin: 0;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0.5rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    color: #6c757d;
    font-weight: 500;
    background: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pagination .page-link:hover {
    background: #0d6efd;
    border-color: #0d6efd;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.2);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    border-color: #0d6efd;
    color: white;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.pagination .page-item.disabled .page-link {
    background: #f8f9fa;
    border-color: #e9ecef;
    color: #adb5bd;
    cursor: not-allowed;
}

.pagination .page-link i {
    font-size: 0.8rem;
}

/* Mobile Pagination */
@media (max-width: 768px) {
    .pagination-wrapper {
        padding: 1rem;
        gap: 0.75rem;
    }

    .pagination-info {
        font-size: 0.8rem;
    }

    .pagination .page-link {
        min-width: 36px;
        height: 36px;
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .pagination .page-link .d-none {
        display: none !important;
    }
}

/* Container for pagination */
.pagination-container {
    width: 100%;
}

/* Footer Responsive Design */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0;
    }
    
    .footer .row {
        text-align: center;
    }
    
    .footer-title {
        margin-bottom: 1rem;
        font-size: 1rem;
    }
    
    .footer-links {
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .footer-links li {
        margin-bottom: 0.5rem;
    }
    
    /* Quick Links two columns on mobile */
    .footer .col-lg-6 .row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .footer .col-lg-6 .row .col-sm-4 {
        flex: 0 0 calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
        text-align: center;
    }
    
    .social-links {
        margin-top: 1.5rem;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        margin: 0 5px;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .contact-info p {
        margin-bottom: 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 1.5rem 0;
    }
    
    .footer-title {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
    
    .social-links a {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .contact-info p {
        font-size: 0.85rem;
    }
}

/* Checkout Page Mobile Responsive */
@media (max-width: 768px) {
    .checkout-page .card {
        margin-bottom: 1.5rem;
    }
    
    .checkout-page .col-md-8 .card:last-child {
        margin-bottom: 2rem;
    }
    
    .checkout-page .col-md-4 {
        margin-top: 1rem;
    }
    
    .checkout-page .card-header {
        padding: 1rem;
    }
    
    .checkout-page .card-body {
        padding: 1rem;
    }
    
    .checkout-page h1 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .checkout-page .card {
        margin-bottom: 1rem;
    }
    
    .checkout-page .col-md-8 .card:last-child {
        margin-bottom: 1.5rem;
    }
    
    .checkout-page .col-md-4 {
        margin-top: 0.75rem;
    }
    
    .checkout-page .card-header {
        padding: 0.75rem;
    }
    
    .checkout-page .card-body {
        padding: 0.75rem;
    }
    
    .checkout-page h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .search-form .form-control {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    
    .search-form .btn {
        padding: 6px 16px;
        font-size: 0.85rem;
        min-width: 80px;
    }
    
    .brand-name {
        font-size: 1rem;
    }
    
    .logo-icon {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .main-nav .nav-link {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
    
    .header-actions .btn {
        font-size: 0.85rem;
        padding: 6px 12px;
        min-width: 100px;
    }
}

/* Enhanced Responsive Header */
@media (max-width: 1200px) {
    .main-header .row {
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.5rem;
    }
    
    .search-form .form-control {
        font-size: 0.85rem;
        padding: 8px 12px;
        padding-left: 40px;
    }
    
    .search-form::before {
        left: 12px;
    }
    
    .search-form .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        min-width: 80px;
    }
    
    .brand-name {
        font-size: 1rem;
    }
    
    .logo-icon {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .main-nav .nav-link {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
    
    .header-actions .btn {
        font-size: 0.85rem;
        padding: 6px 12px;
        min-width: 100px;
    }
}

@media (max-width: 992px) {
    .main-header .row {
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.5rem;
    }
    
    .search-form .form-control {
        font-size: 0.8rem;
        padding: 8px 10px;
        padding-left: 35px;
    }
    
    .search-form::before {
        left: 10px;
        font-size: 0.8rem;
    }
    
    .search-form .btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        min-width: 70px;
    }
    
    .search-form .btn span {
        display: none;
    }
    
    .brand-name {
        font-size: 0.9rem;
    }
    
    .main-nav .nav-link {
        padding: 5px 6px;
        font-size: 0.75rem;
    }
    
    .header-actions .btn {
        font-size: 0.8rem;
        padding: 6px 10px;
        min-width: 90px;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 1rem 0;
        position: relative !important;
        top: auto !important;
        z-index: 1020;
    }
    
    .main-header .row {
        align-items: center;
        gap: 0.75rem;
        flex-wrap: wrap;
    }
    
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f8f9fa;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        font-size: 1.2rem;
        color: #495057;
        padding: 0.5rem;
        width: 40px;
        height: 40px;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle:hover {
        background: #0d6efd;
        color: white;
        border-color: #0d6efd;
        transform: translateY(-1px);
    }
    
    .main-nav {
        display: none;
    }
    
    /* Hide cart and profile dropdown on mobile */
    .main-header .col-auto:nth-child(4),
    .main-header .col-auto:nth-child(5) {
        display: none !important;
    }
    
    .search-container {
        order: 3;
        width: 100%;
        margin-top: 0.5rem;
        flex: 0 0 100%;
    }
    
    .search-form {
        background: #f8f9fa;
        border-radius: 20px;
    }
    
    .search-form .form-control {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .search-form .btn {
        padding: 10px 16px;
        min-width: 45px;
    }
    
    .brand-name {
        font-size: 1rem;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    /* Prevent horizontal scrolling */
    body {
        overflow-x: hidden;
    }
    
    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 0.5rem 0;
    }
    
    .main-header .row {
        gap: 0.5rem;
    }
    
    .brand-logo {
        padding: 0.25rem 0.5rem;
    }
    
    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    
    .search-form .form-control {
        font-size: 0.85rem;
        padding: 8px 14px;
        padding-left: 36px;
        height: 38px;
    }
    
    .search-form::before {
        left: 10px;
        font-size: 0.8rem;
    }
    
    .search-form .btn {
        padding: 8px 14px;
        font-size: 0.8rem;
        min-width: 70px;
        height: 38px;
    }
    
    .brand-name {
        font-size: 0.9rem;
    }
    
    .logo-icon {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .header-actions .btn {
        font-size: 0.75rem;
        padding: 6px 10px;
        min-width: auto;
        width: 36px;
        height: 36px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .header-actions .btn i {
        font-size: 0.9rem;
    }
}

/* Modal Styles */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    background: #ffffff;
}

.modal-dialog {
    margin: 2rem auto;
    max-width: 900px;
}

.modal-body {
    padding: 0;
    max-height: 90vh;
    overflow-y: auto;
}

/* Fix modal positioning and scrollbars */
.modal {
    padding-right: 0 !important;
}

.modal-open {
    padding-right: 0 !important;
}

body.modal-open {
    overflow: hidden;
    padding-right: 0 !important;
}

/* Ensure modals are centered on mobile */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .modal-body {
        max-height: calc(100vh - 2rem);
    }
}

/* Auth Sidebar */
.auth-sidebar {
    position: relative;
    overflow: hidden;
}

.auth-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.auth-sidebar i {
    opacity: 0.9;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Form Controls */
.form-control {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    padding: 14px 16px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    background: #f8f9fa;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    background: #ffffff;
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Input Groups */
.input-group {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.input-group-text {
    background: #f8f9fa;
    border: none;
    border-right: 2px solid #e9ecef;
    padding: 0 14px;
    font-size: 1rem;
}

.input-group .form-control {
    border: none;
    background: #f8f9fa;
}

.input-group .form-control:focus {
    background: #ffffff;
    box-shadow: none;
}

.input-group:focus-within {
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.15);
}

/* Buttons */
.btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 14px 28px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0b5ed7 0%, #5a0fb8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

.btn-outline-primary {
    border: 2px solid #0d6efd;
    color: #0d6efd;
    background: transparent;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    border-color: transparent;
    transform: translateY(-1px);
    color: white;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 700;
}

/* Form Check */
.form-check-input {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    width: 1.2rem;
    height: 1.2rem;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='white' d='M6.293 13.707a1 1 0 0 0 1.414 0l4.293-4.293a1 1 0 0 0-1.414-1.414L7 11.586 5.707 10.293a1 1 0 0 0-1.414 1.414l2 2z'/%3e%3c/svg%3e");
}

.form-check-label {
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
}

/* Validation */
.invalid-feedback {
    font-size: 0.85rem;
    color: #dc3545;
    margin-top: 0.5rem;
    font-weight: 500;
}

.is-invalid .form-control {
    border-color: #dc3545;
    background: #fff5f5;
}

.is-invalid .form-control:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Modal Animation */
.modal.fade .modal-dialog {
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
    transform: scale(0.7) translateY(50px);
    opacity: 0;
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Backdrop */
.modal-backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

/* Links */
.text-primary {
    color: #0d6efd !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.text-primary:hover {
    color: #0b5ed7 !important;
    text-decoration: underline !important;
}

/* Responsive */
@media (max-width: 991px) {
    .modal-dialog {
        margin: 1rem;
        max-width: 95%;
    }
    
    .modal-body .row {
        flex-direction: column;
    }
    
    .modal-body .col-lg-5 {
        display: none !important;
    }
    
    .modal-body .col-lg-7 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .p-lg-5 {
        padding: 2rem !important;
    }
}

@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.5rem;
        max-width: 98%;
    }
    
    .p-4 {
        padding: 1.5rem !important;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 14px 24px;
        font-size: 0.95rem;
    }
}

/* Loading State */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

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

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

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

/* Custom 5 Column Layout */
.col-lg-2-4 {
    flex: 0 0 auto;
    width: 20%;
}

/* Responsive Sections and Containers */
section.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

@media (max-width: 768px) {
    section.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

@media (max-width: 480px) {
    section.py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
}

/* Container Fluid Responsive Padding */
.container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 576px) {
    .container-fluid {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 768px) {
    .container-fluid {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 1200px) {
    .container-fluid {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

/* Section Headers Responsive */
.text-center h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.text-center p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .text-center h2 {
        font-size: 1.5rem;
    }
    
    .text-center p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .text-center h2 {
        font-size: 1.25rem;
    }
    
    .text-center p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
}

/* Enhanced Responsive Grid for Products */
@media (max-width: 1400px) {
    .row-cols-xl-5 .col {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

@media (max-width: 1200px) {
    .row-cols-xl-5 .col,
    .row-cols-lg-4 .col {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (max-width: 992px) {
    .row-cols-xl-5 .col,
    .row-cols-lg-4 .col,
    .row-cols-md-3 .col {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

@media (max-width: 768px) {
    .row-cols-xl-5 .col,
    .row-cols-lg-4 .col,
    .row-cols-md-3 .col,
    .row-cols-sm-2 .col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 480px) {
    .row-cols-xl-5 .col,
    .row-cols-lg-4 .col,
    .row-cols-md-3 .col,
    .row-cols-sm-2 .col,
    .row-cols-1 .col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Category Grid Responsive */
@media (max-width: 1200px) {
    .col-lg-2 {
        flex: 0 0 16.666%;
        max-width: 16.666%;
    }
}

@media (max-width: 992px) {
    .col-lg-2,
    .col-md-4 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (max-width: 768px) {
    .col-lg-2,
    .col-md-4,
    .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 480px) {
    .col-lg-2,
    .col-md-4,
    .col-sm-6,
    .col-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0b5ed7 0%, #5a0fb8 100%);
}

/* Product Details Page Styles - Flipkart Style Layout */

/* Left Side Section */
.product-left-section {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.product-gallery {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.main-product-img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    background: #f8f9fa;
    transition: transform 0.3s ease;
}

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

.placeholder-image {
    border: 1px solid #e9ecef;
}

.product-thumbnails {
    padding: 10px 0;
}

.product-thumbnail {
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #f8f9fa;
}

.product-thumbnail:hover {
    border-color: #ff9f00;
    transform: scale(1.05);
}

/* Action Buttons Section - One Line Layout */
.product-actions {
    background: white;
    border-radius: 8px;
}

.action-section {
    border: 1px solid #e9ecef !important;
    background: #f8f9fa !important;
}

.quantity-selector .input-group {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.quantity-selector .btn {
    border: none;
    background: white;
    color: #212121;
    border-right: 1px solid #e9ecef;
    transition: all 0.3s ease;
    padding: 8px 12px;
}

.quantity-selector .btn:last-child {
    border-right: none;
}

.quantity-selector .btn:hover {
    background: #ff9f00;
    color: white;
}

.quantity-selector .form-control {
    border: none;
    background: white;
    text-align: center;
    font-weight: 600;
    color: #212121;
    padding: 8px;
}

.btn-primary {
    background: #ff9f00;
    border-color: #ff9f00;
    color: #212121;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-primary:hover {
    background: #fb8c00;
    border-color: #fb8c00;
    color: #212121;
}

.btn-success {
    background: #2874f0;
    border-color: #2874f0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-success:hover {
    background: #1e5fc7;
    border-color: #1e5fc7;
}

/* Right Side Section */
.product-right-section {
    padding-left: 30px;
}

.product-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 15px;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #212121;
    line-height: 1.4;
    margin-bottom: 8px;
}

.product-meta {
    align-items: center;
    flex-wrap: wrap;
}

.stars {
    letter-spacing: 1px;
    color: #ff9f00;
}

.sku {
    font-family: 'Courier New', monospace;
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Price Section - Flipkart Style */
.price-section {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-left: 4px solid #ff9f00;
    border-radius: 8px;
}

.current-price {
    font-weight: 700;
    color: #212121;
    font-size: 1.8rem;
}

.original-price {
    font-weight: 400;
    color: #878787;
}

.discount-badge {
    font-size: 0.8rem;
    font-weight: 600;
    background: #388e3c !important;
    animation: none;
}

/* Stock & Delivery */
.stock-badge {
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
}

.stock-badge.bg-success {
    background: #388e3c !important;
}

.stock-badge.bg-danger {
    background: #d32f2f !important;
}

.delivery-info {
    font-style: normal;
    color: #878787;
}

/* Section Titles */
.section-title {
    font-weight: 600;
    color: #212121;
    font-size: 1rem;
    position: relative;
    padding-left: 12px;
    margin-bottom: 12px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: #2874f0;
    border-radius: 2px;
}

/* Key Features */
.features-list {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #388e3c;
}

.feature-item {
    transition: transform 0.2s ease;
    font-size: 0.9rem;
    color: #212121;
}

.feature-item:hover {
    transform: translateX(3px);
}

.feature-item i {
    font-size: 0.8rem;
}

/* Category Link */
.category-link {
    border-radius: 16px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    border-color: #2874f0;
    color: #2874f0;
}

.category-link:hover {
    background: #2874f0;
    border-color: #2874f0;
    color: white;
    transform: translateY(-1px);
}

/* Product Tabs - Flipkart Style */
.product-tabs-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-top: 30px;
}

.custom-tabs {
    border-bottom: 1px solid #e9ecef;
    background: white;
    border-radius: 0;
    padding: 0;
}

.custom-tabs .nav-link {
    border: none;
    background: transparent;
    color: #878787;
    font-weight: 500;
    padding: 15px 20px;
    border-radius: 0;
    transition: all 0.3s ease;
    margin: 0;
    border-bottom: 3px solid transparent;
    font-size: 0.95rem;
}

.custom-tabs .nav-link:hover {
    color: #2874f0;
    background: rgba(40, 116, 240, 0.05);
}

.custom-tabs .nav-link.active {
    color: #2874f0;
    background: transparent;
    border-bottom-color: #2874f0;
    box-shadow: none;
}

.custom-tab-content {
    background: white;
    border: none;
    border-radius: 0;
}

/* Related Products - Flipkart Style */
.related-products-section {
    background: white;
    padding: 30px 20px;
    border-radius: 8px;
    margin-top: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.related-product-card {
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-radius: 4px;
    overflow: hidden;
    background: white;
}

.related-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #2874f0;
}

.related-product-card .card-img-top {
    transition: transform 0.3s ease;
    background: #f8f9fa;
}

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

/* Reviews Section */
.reviews-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #ff9f00;
}

.rating-bars .progress {
    background: #e9ecef;
    border-radius: 4px;
}

.rating-bars .progress-bar {
    background: #ff9f00;
}

/* Responsive Design */
@media (max-width: 991px) {
    .product-left-section {
        position: relative;
        top: 0;
        margin-bottom: 30px;
    }
    
    .product-right-section {
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .product-title {
        font-size: 1.25rem;
    }
    
    .main-product-img {
        height: 300px;
    }
    
    .current-price {
        font-size: 1.5rem;
    }
    
    .custom-tabs .nav-link {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .features-list {
        padding: 12px;
    }
    
    /* One-line buttons responsive */
    .action-section .row {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .action-section .col-auto {
        flex: 0 0 auto;
    }
    
    .action-section .col {
        flex: 1 1 150px;
        min-width: 120px;
    }
}

@media (max-width: 576px) {
    .product-title {
        font-size: 1.1rem;
    }
    
    .main-product-img {
        height: 250px;
    }
    
    .custom-tabs .nav-link {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .features-list {
        padding: 10px;
    }
    
    .section-title {
        font-size: 0.9rem;
    }
    
    /* Mobile one-line buttons */
    .action-section .row {
        flex-direction: column;
        gap: 10px;
    }
    
    .action-section .col-auto {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .action-section .col {
        width: 100%;
    }
    
    .quantity-selector .input-group {
        width: 120px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0b5ed7 0%, #5a0fb8 100%);
}

/* Product Full Width Layout */
body.route-products-show .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
}

body.route-products-show .main-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
