/* Responsive CSS */

/* Logo Sizing */
.logo-image {
    max-height: 80px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .logo-image {
        height: 70px !important;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 60px !important;
    }
}

/* Floating Phone Button */
.floating-call-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
}

.floating-call-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    text-decoration: none;
    color: white;
}

@keyframes pulse {
    0% {
        box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 5px 35px rgba(37, 211, 102, 0.8);
    }
    100% {
        box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Sidebar from right */
.sidebar {
    position: fixed;
    right: -300px;
    top: 0;
    width: 300px;
    height: 100vh;
    background: white;
    transition: right 0.3s ease;
    z-index: 2000;
    overflow-y: auto;
}

.sidebar.active {
    right: 0;
}

.sidebar-toggle {
    position: fixed;
    right: 80px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    background: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    transform: scale(1.1);
    background: #1e40af;
}

@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .navbar-collapse {
        margin-top: 15px;
    }
    
    .sidebar {
        width: 250px !important;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 720px;
    }
    
    .hero-slide {
        height: 300px !important;
    }
    
    .product-image {
        height: 150px !important;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .nav-link {
        margin: 10px 0;
    }
    
    .category-card {
        padding: 15px !important;
    }
    
    .product-card {
        margin-bottom: 20px;
    }
    
    .cart-summary {
        margin-top: 30px;
    }
    
    /* Mobile optimizations */
    .text-lg {
        font-size: 1rem !important;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    table {
        font-size: 0.85rem;
    }
}
    
    .auth-card {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    .hero-slide {
        height: 200px !important;
    }
    
    .product-image {
        height: 120px !important;
    }
    
    .table {
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}
/* Offcanvas Sidebar Styling */
.offcanvas {
    width: 280px !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.offcanvas-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-bottom: 3px solid #667eea;
}

.offcanvas-header .btn-close {
    filter: brightness(0) invert(1);
}

.offcanvas-body {
    padding: 0;
}

.offcanvas .navbar-nav {
    padding-top: 1rem;
}

.offcanvas .nav-link {
    padding: 0.75rem 1.5rem !important;
    color: #333 !important;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

.offcanvas .nav-link:hover,
.offcanvas .nav-link.active {
    background-color: rgba(102, 126, 234, 0.1);
    border-left-color: #667eea;
    color: #667eea !important;
}

.offcanvas .nav-item {
    width: 100%;
}

.offcanvas .dropdown-menu {
    background: rgba(102, 126, 234, 0.05) !important;
    border: none;
    padding: 0 !important;
}

.offcanvas .dropdown-item {
    padding: 0.75rem 1.5rem !important;
    padding-left: 3rem !important;
    color: #333;
    font-size: 0.95rem;
}

.offcanvas .dropdown-item:hover {
    background-color: rgba(102, 126, 234, 0.15);
    color: #667eea;
}

.offcanvas .dropdown-item.active,
.offcanvas .dropdown-item:active {
    background-color: transparent;
}

/* Mobile Navbar Adjustments */
@media (max-width: 992px) {
    .navbar-nav.ms-auto {
        gap: 0.5rem;
    }
    
    .nav-item.ms-3 {
        margin-left: 0 !important;
    }
}

/* Ensure offcanvas appears from left */
.offcanvas-start {
    left: 0;
    right: auto;
}

.offcanvas-start.show {
    transform: translateX(0);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}