body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.top-bar {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-size: 0.9em;
}

.navbar {
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header {
    position: sticky;
    top: -40px;
    z-index: 1000;
}

.nav-desktop-menu li a.active {
    color: #0682a4;
    position: relative;
}

.nav-desktop-menu li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #0682a4;
    border-radius: 2px;
}

.nav-menu-list li a.active {
    background: #f1f2f6;
    color: #0682a4 !important;
    border-right: 4px solid #0682a4;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-desktop-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.nav-desktop-menu li a {
    text-decoration: none;
    color: #2d3436;
    font-weight: 600;
    font-size: 0.95em;
    transition: 0.3s;
}

.nav-desktop-menu li a:hover {
    color: #0682a4;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-search-container {
    flex: 1;
    max-width: 350px;
    margin-right: auto;
    margin-left: 20px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-box input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 2px solid #f1f2f6;
    border-radius: 25px;
    font-size: 0.9em;
    background: #f8f9fa;
    transition: all 0.3s ease;
    outline: none;
    height: 12px;
}

.search-box input:focus {
    border-color: #0682a4;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(6, 130, 164, 0.1);
}

.search-box i {
    position: absolute;
    right: 15px;
    color: #a4b0be;
    font-size: 0.9em;
    pointer-events: none;
}

.mobile-menu-btn {
    display: none;
}

.menu-toggle {
    background: #f1f2f6;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 1.2em;
    cursor: pointer;
    color: #2d3436;
    transition: 0.3s;
}

.menu-toggle:hover {
    background: #dfe4ea;
}

/* Mobile Search Container */
.mobile-search-container {
    display: none;
    padding: 10px 20px;
    background: #fff;
    border-top: 1px solid #f1f2f6;
}

.nav-logo a {
    font-size: 1.5em;
    font-weight: 800;
    color: #2d3436;
    text-decoration: none;
    background: linear-gradient(135deg, #0682a4, #00cec9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Sidebar Menu */
.nav-menu-wrapper {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 2000;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.nav-menu-wrapper.active {
    right: 0;
}

.menu-header {
    padding: 20px;
    border-bottom: 1px solid #f1f2f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.menu-header h3 {
    margin: 0;
    font-size: 1.1em;
    color: #2d3436;
}

.close-menu {
    background: none;
    border: none;
    font-size: 1.8em;
    cursor: pointer;
    color: #a4b0be;
}

.nav-menu-list {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.nav-menu-list li a {
    display: block;
    padding: 15px 25px;
    text-decoration: none;
    color: #2d3436;
    font-weight: 600;
    transition: 0.3s;
    border-bottom: 1px solid #f8f9fa;
}

.nav-menu-list li a i {
    margin-left: 10px;
    color: #0682a4;
    width: 20px;
}

.nav-menu-list li a:hover {
    background: #f1f2f6;
    color: #0682a4;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1500;
    display: none;
    backdrop-filter: blur(3px);
}

.menu-overlay.active {
    display: block;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .nav-desktop-menu {
        display: none;
    }
    
    .nav-logo {
        display: none; /* Hide Logo on Mobile as requested */
    }

    .mobile-menu-btn {
        display: block;
    }
    
    .nav-search-container {
        margin: 0 10px;
        max-width: none;
    }
    
    .search-box input {
        padding: 8px 35px 8px 12px;
        font-size: 0.85em;
    }

    .nav-container {
        padding: 10px 10px;
        gap: 5px;
    }
}

.slider img {
    width: 100%;
    height: auto;
    display: block;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: #fff;
    padding: 20px;
    border: 1px solid #f0f0f0;
    text-align: center;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.product-card img {
    max-width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 15px;
}

.product-info {
    margin-top: 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.15em;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #2d3436;
    line-height: 1.4;
    min-height: 2.8em;
}

.price-rating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 5px;
}

.price {
    color: #ff4757;
    font-weight: 800;
    font-size: 1.4em;
}

.discount-badge {
    background-color: #ff4757;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8em;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(255, 71, 87, 0.3);
}

.price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.original-price {
    position: relative;
    color: #a4b0be;
    font-size: 0.95em;
    margin-bottom: 0;
    display: inline-block;
}

.original-price::after {
    content: "";
    position: absolute;
    left: -5%;
    top: 50%;
    width: 110%;
    height: 2px;
    background: #ff4757;
    transform: rotate(-10deg);
    border-radius: 2px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 15px;
    background: #f1f2f6;
    border-radius: 8px;
    padding: 5px;
    justify-content: space-evenly;
}

.qty-btn {
    background: transparent;
    border: none;
    padding: 5px 15px;
    cursor: pointer;
    font-size: 1.2em;
    color: #2d3436;
    font-weight: bold;
}

.qty-btn:hover {
    color: #ff4757;
}

.qty-input {
    width: 45px;
    text-align: center;
    border: none;
    background: transparent;
    padding: 5px;
    font-weight: bold;
    font-size: 1.1em;
    color: #2d3436;
}

.card-actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.card-actions button {
    flex: 1;
    padding: 12px 5px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.card-actions button i {
    font-size: 0.9em;
}

.add-to-cart {
    background-color: #f1f2f6;
    color: #2d3436;
}

.add-to-cart:hover {
    background-color: #dfe4ea;
}

.buy-now {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.2);
}

.buy-now:hover {
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.3);
    transform: translateY(-2px);
}

/* Cart Icon and Count */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-icon {
    position: relative;
    padding: 5px;
}

.cart-icon a {
    color: #2d3436;
    font-size: 1.4em;
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
}

.cart-icon a:hover {
    color: #0682a4;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: #fff;
    font-size: 0.65em;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(255, 71, 87, 0.4);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #2d3436;
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastSlideDown 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    min-width: 200px;
    white-space: nowrap;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
    border: none;
}

.toast.success { background: #2ecc71; }
.toast.error { background: #ff4757; }

@keyframes toastSlideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes toastFadeOut {
    to { transform: translateY(-10px); opacity: 0; }
}

/* Active States for Header Icons */
.cart-icon.active-cart a i {
    color: #0682a4 !important;
    transform: scale(1.1);
}
.cart-icon.active-cart::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #0682a4;
    border-radius: 50%;
}
.cart-icon {
    position: relative;
}
