:root{--blue:#0b84d8;--green:#64b946;--dark:#0f172a}body{background:#f7fafc;color:var(--dark)}.topbar,.footer{background:linear-gradient(90deg,var(--blue),var(--green))}.brand-wrap{display:flex;align-items:center;gap:12px}.brand-wrap img{height:58px;width:auto}.brand-name{font-size:42px;line-height:1;font-weight:900;letter-spacing:-1.8px;background:linear-gradient(90deg,var(--blue),var(--green));-webkit-background-clip:text;background-clip:text;color:transparent}.search-box{border-radius:12px 0 0 12px;padding:12px 16px}.btn-brand{background:linear-gradient(90deg,var(--blue),var(--green));border:0;color:#fff;font-weight:700;border-radius:0 12px 12px 0}.btn-warning{background:linear-gradient(90deg,var(--blue),var(--green));border:0;color:#fff;font-weight:700}.hero{background:linear-gradient(135deg,#e8f6ff,#edf9e9)!important;color:var(--dark);border-radius:26px}.hero-card{background:rgba(255,255,255,.7);backdrop-filter:blur(8px);color:var(--dark)}.mini-box{background:#fff;color:#111;padding:18px;border-radius:16px;font-weight:700;text-align:center}.product-card{border:0;border-radius:18px;box-shadow:0 10px 30px rgba(0,0,0,.08);overflow:hidden}.product-img{height:190px;object-fit:cover}.placeholder-img{height:190px;background:#e9ecef;display:flex;align-items:center;justify-content:center;color:#6c757d}.placeholder-img.big{height:420px;border-radius:20px}.dash-card{background:#fff;border-radius:20px;padding:22px;box-shadow:0 10px 24px rgba(0,0,0,.08);border-left:5px solid var(--blue)}.dash-card.alert-card{border-left-color:#dc3545}.dash-card span{color:#6c757d}.dash-card h3{font-weight:800;margin:8px 0 0}.stock-low{background:#fff3cd!important;color:#997404!important}.stock-out{background:#f8d7da!important;color:#842029!important}.stock-ok{background:#d1e7dd!important;color:#0f5132!important}form p input,form p select,form p textarea{width:100%;padding:10px;border:1px solid #ddd;border-radius:10px}form p label{font-weight:600}@media(max-width:768px){.brand-name{font-size:30px}.brand-wrap img{height:45px}.topbar .container{gap:10px;overflow:auto;white-space:nowrap}}

/* Category Hover Effects */
.category-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}
.category-round {
    width: 100px;
    height: 100px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-color: #0b84d8 !important;
}
.category-round img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.category-name {
    transition: color 0.3s ease;
}
.category-card:hover .category-round {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 30px rgba(11, 132, 216, 0.2) !important;
    border-color: #64b946 !important;
}
.category-card:hover .category-round img {
    transform: scale(1.1) rotate(2deg);
}
.category-card:hover .category-name {
    color: var(--blue) !important;
}

.admin-shell{display:flex;min-height:calc(100vh - 155px)}.admin-sidebar{width:260px;background:linear-gradient(180deg, var(--blue), var(--green));color:#fff;padding:22px;position:sticky;top:86px;height:calc(100vh - 86px);overflow:auto}.sidebar-brand{font-size:28px;font-weight:900;margin-bottom:18px;color:#fff;text-shadow:1px 1px 3px rgba(0,0,0,0.2)}.side-link{display:block;color:rgba(255,255,255,0.9);text-decoration:none;padding:10px 12px;border-radius:12px;margin-bottom:6px;font-weight:600}.side-link:hover{background:rgba(255,255,255,0.2);color:#fff}.side-heading{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:rgba(255,255,255,0.7);margin:18px 0 8px;font-weight:bold}.admin-content{flex:1;padding:28px;min-width:0}.form-check-input{width:20px;height:20px}@media(max-width:991px){.admin-shell{display:block}.admin-sidebar{width:100%;height:auto;position:relative;top:0;background:linear-gradient(90deg, var(--blue), var(--green))}.admin-content{padding:18px}.side-link{display:inline-block;margin-right:5px}.side-heading{display:block}}

/* Mobile Amazon-like Bottom Navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 -2px 15px rgba(0,0,0,0.1);
    z-index: 2000;
    padding: 8px 0;
    border-top: 1px solid #eee;
}

.mobile-bottom-nav .nav-item {
    text-align: center;
    flex: 1;
    color: #666;
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    transition: 0.3s;
}

.mobile-bottom-nav i {
    display: block;
    font-size: 22px;
    margin-bottom: 2px;
}

.mobile-bottom-nav .nav-item.active {
    color: var(--blue);
}

/* Amazon-style Mobile Header */
@media (max-width: 991px) {
    .mobile-bottom-nav {
        display: flex;
    }
    
    body {
        padding-bottom: 70px; /* Space for bottom nav */
    }

    .navbar-brand img {
        height: 38px !important;
    }

    .search-row-mobile {
        background: #fff;
        padding: 10px 15px;
        margin-top: -1px;
        box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    }

    .mobile-header-actions {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .mobile-header-actions a {
        color: var(--dark);
        text-decoration: none;
        position: relative;
    }

    .mobile-header-actions i {
        font-size: 22px;
    }

    .cart-badge-mobile {
        position: absolute;
        top: -8px;
        right: -8px;
        background: #ff4d4d;
        color: white;
        font-size: 10px;
        padding: 2px 5px;
        border-radius: 10px;
        font-weight: bold;
    }
    
    .navbar {
        padding: 8px 0 !important;
    }
    
    .navbar-toggler {
        border: 0 !important;
        padding: 0 !important;
    }
    
    .navbar-toggler:focus {
        box-shadow: none !important;
    }
}

/* Enhanced Search Bar */
.search-box-container {
    display: flex;
    width: 100%;
}

.search-box {
    border: 1px solid #ddd;
    border-radius: 8px 0 0 8px !important;
    height: 45px;
}

.btn-search-mobile {
    background: var(--dark);
    color: white;
    border: 0;
    padding: 0 20px;
    border-radius: 0 8px 8px 0;
    font-weight: bold;
}

/* Native App Look Enhancements */
@media (max-width: 991px) {
    body {
        background-color: #f1f3f6; /* Common app background color */
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    }

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .product-card {
        border-radius: 12px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        margin-bottom: 12px;
    }

    .product-img {
        height: 160px;
    }

    .hero {
        border-radius: 12px;
        padding: 1.5rem !important;
    }

    .btn-brand, .btn-warning, .btn-dark {
        border-radius: 8px;
        font-weight: 600;
        letter-spacing: 0.2px;
    }

    /* Active State Feedback */
    .nav-item:active, .btn:active {
        transform: scale(0.97);
        opacity: 0.9;
    }

    /* App-like Offcanvas Menu */
    .offcanvas {
        border-radius: 0 20px 20px 0;
        width: 80% !important;
    }

    .offcanvas-header {
        background: linear-gradient(90deg, var(--blue), var(--green));
        color: white;
    }

    .offcanvas-body .nav-link {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .offcanvas-body .nav-link i {
        font-size: 20px;
        color: var(--blue);
    }
}

/* Horizontal scroll for categories or deals if needed */
.app-scroll-x {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 10px;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.app-scroll-x::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

/* iPhone Style Sticky Action Bar */
@media (max-width: 991px) {
    .product-actions-mobile {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        padding: 12px 16px;
        box-shadow: 0 -5px 25px rgba(0,0,0,0.1);
        z-index: 2200;
        display: flex;
        align-items: center;
        gap: 12px;
        border-top: 1px solid #eee;
        padding-bottom: env(safe-area-inset-bottom, 12px);
    }

    .mobile-price-section {
        display: flex;
        flex-direction: column;
        min-width: 80px;
    }

    .mobile-price-label {
        font-size: 10px;
        color: #777;
        text-transform: uppercase;
        font-weight: 700;
        margin-bottom: -2px;
    }

    .mobile-price-value {
        font-size: 18px;
        font-weight: 800;
        color: var(--dark);
    }

    .btn-iphone-cart {
        background: #000;
        color: white !important;
        border-radius: 14px !important;
        flex: 1;
        font-weight: 700 !important;
        font-size: 15px !important;
        padding: 12px !important;
        border: none !important;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        height: 50px;
    }

    .btn-iphone-whatsapp {
        background: #25d366;
        color: white !important;
        border-radius: 14px !important;
        height: 50px;
        width: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none !important;
    }

    .btn-iphone-whatsapp i {
        font-size: 24px;
    }
    
    .product-page-active .mobile-bottom-nav {
        display: none !important;
    }
}

/* Custom Standard Scrollbar for Tables */
.table-responsive::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

/* For Firefox */
.table-responsive {
    scrollbar-width: thin;
    scrollbar-color: #ccc #f1f1f1;
}
