/* Modern E-commerce Design - Inspired by premium templates */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-bg: #f9fafb;
    --border-color: #e5e7eb;
    --text-dark: #111827;
    --text-light: #6b7280;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
    line-height: 1.6;
    padding-top: 140px; /* Space for fixed top-header (73px) + main-navbar (67px) */
}

/* Top Header */
.top-header {
    background: #ffffff;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.top-header .container {
    max-width: 1400px;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.header-logo {
    flex: 0 0 auto;
    min-width: 150px;
}

.logo-link {
    text-decoration: none;
    display: inline-block;
}

.site-logo {
    max-height: 50px;
    width: auto;
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

/* Search Bar */
.header-search {
    flex: 1;
    max-width: 600px;
    margin: 0 auto;
}

.search-form {
    width: 100%;
}

.search-container {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    width: 100%;
    position: relative;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.625rem 1rem;
    font-size: 0.95rem;
    color: #111827;
    background: transparent;
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-button {
    background: transparent;
    border: none;
    color: #6b7280;
    padding: 0.625rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.search-button:hover {
    color: var(--primary-color);
}

.search-button i {
    font-size: 1rem;
}

/* Header Cart Section */
.header-cart {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-summary {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #111827;
}

.cart-summary i.fa-shopping-cart {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.cart-count {
    font-weight: 600;
    color: #111827;
    font-size: 0.95rem;
}

.cart-divider {
    color: #d1d5db;
    margin: 0 0.25rem;
}

.cart-summary .rupee-icon {
    color: #111827;
    font-size: 1.2rem;
    display: inline-block;
    font-weight: 600;
    line-height: 1;
    font-family: Arial, sans-serif;
}

.cart-total {
    font-weight: 600;
    color: #111827;
    font-size: 0.95rem;
}

.logout-link {
    color: #111827;
    text-decoration: none;
    font-size: 0.95rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.logout-link:hover {
    color: var(--primary-color);
}

.logout-link i {
    color: inherit;
    font-size: 0.9rem;
}

.logout-link strong {
    font-weight: 600;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
    display: inline-block;
}

/* Keep dropdown open when hovering over it or the menu itself - controlled by JavaScript */
.user-dropdown-menu.show-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.user-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #111827;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.user-trigger:hover {
    background: #f3f4f6;
}

.user-trigger i {
    color: var(--primary-color);
    font-size: 1rem;
}

.user-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: #111827;
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    min-width: 180px;
    margin-top: 0;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1000;
    pointer-events: none;
}

/* Enable pointer events when menu is visible */
.user-dropdown-menu.show-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

/* Ensure all child elements are interactive when menu is visible */
.user-dropdown-menu.show-menu * {
    pointer-events: auto !important;
}


.user-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #111827;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}




.user-dropdown-menu .dropdown-item:hover {
    background: #f3f4f6;
    color: var(--primary-color);
}


.user-dropdown-menu .dropdown-item i {
    color: var(--primary-color);
    width: 16px;
}

.dropdown-item-form {
    margin: 0;
    padding: 0;
    width: 100%;
    display: block;
    pointer-events: auto;
    position: relative;
}

/* Bridge to prevent gap between submenu and logout form */
.dropdown-item-form::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 0;
    right: 0;
    height: 0.5rem;
    background: transparent;
    pointer-events: auto;
    z-index: 1;
}

.dropdown-item-form .dropdown-item {
    border-top: 1px solid #e5e7eb;
    margin-top: 0;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #111827;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s ease;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    pointer-events: auto;
}

.dropdown-item-form .dropdown-item:hover {
    background: #f3f4f6;
    color: var(--primary-color);
}

.dropdown-item-form .dropdown-item i {
    color: var(--primary-color);
    width: 16px;
}

/* Dropdown Submenu */
.user-dropdown-menu .dropdown-submenu {
    position: relative;
}

.user-dropdown-menu .dropdown-submenu .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 0.75rem 1rem;
    color: #111827;
    font-size: 0.9rem;
    transition: background 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    gap: 0.75rem;
}

.user-dropdown-menu .dropdown-submenu .dropdown-toggle i.fa-shopping-bag {
    color: var(--primary-color);
    width: 16px;
}

.user-dropdown-menu .dropdown-submenu .dropdown-toggle i.fa-chevron-right {
    margin-left: auto;
    font-size: 0.75rem;
    color: #9ca3af;
    transition: transform 0.2s ease;
}

.user-dropdown-menu .dropdown-submenu:hover .dropdown-toggle {
    background: #f3f4f6;
    color: var(--primary-color);
}

.user-dropdown-menu .dropdown-submenu:hover .dropdown-toggle i.fa-chevron-right {
    transform: translateX(3px);
    color: var(--primary-color);
}

.user-dropdown-menu .dropdown-submenu-content {
    position: static;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    min-width: auto;
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: none;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: auto;
    padding: 0;
    pointer-events: none !important;
    white-space: normal;
    margin: 0;
    width: 100%;
}

/* Hide all items inside submenu-content by default */
.user-dropdown-menu .dropdown-submenu-content .dropdown-item,
.user-dropdown-menu .dropdown-submenu-content a {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    padding-left: 2rem !important;
}

/* Show submenu only when hovering directly on the dropdown-submenu container */
.user-dropdown-menu .dropdown-submenu:hover > .dropdown-submenu-content {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none;
    pointer-events: auto !important;
    height: auto !important;
    padding: 0 !important;
    padding-bottom: 0.25rem !important;
    overflow: visible !important;
    margin-bottom: 0 !important;
}

.user-dropdown-menu .dropdown-submenu:hover > .dropdown-submenu-content a,
.user-dropdown-menu .dropdown-submenu:hover > .dropdown-submenu-content .dropdown-item {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    padding: 0.75rem 1rem !important;
    margin: 0 !important;
    overflow: visible !important;
    pointer-events: auto !important;
}

.user-dropdown-menu .dropdown-submenu:hover > .dropdown-submenu-content span,
.user-dropdown-menu .dropdown-submenu:hover > .dropdown-submenu-content i,
.user-dropdown-menu .dropdown-submenu:hover > .dropdown-submenu-content .badge {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    padding: revert !important;
    margin: revert !important;
    overflow: visible !important;
    pointer-events: auto !important;
}

/* Keep submenu visible when hovering over the submenu content itself */
.user-dropdown-menu .dropdown-submenu-content:hover {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none;
    pointer-events: auto !important;
    height: auto !important;
    padding: 0 !important;
    padding-bottom: 0.25rem !important;
    overflow: visible !important;
}

.user-dropdown-menu .dropdown-submenu-content:hover .dropdown-item {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    padding: 0.75rem 1rem !important;
    margin: 0 !important;
    overflow: visible !important;
    pointer-events: auto !important;
    position: static !important;
}

.user-dropdown-menu .dropdown-submenu-content:hover i,
.user-dropdown-menu .dropdown-submenu-content:hover span,
.user-dropdown-menu .dropdown-submenu-content:hover .badge {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    padding: revert !important;
    margin: revert !important;
    overflow: visible !important;
    pointer-events: auto !important;
    position: static !important;
}

.user-dropdown-menu .dropdown-submenu-content:hover a,
.user-dropdown-menu .dropdown-submenu-content:hover .dropdown-item {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    padding: 0.75rem 1rem !important;
    margin: 0 !important;
    overflow: visible !important;
    pointer-events: auto !important;
}

.user-dropdown-menu .dropdown-submenu-content:hover span,
.user-dropdown-menu .dropdown-submenu-content:hover i,
.user-dropdown-menu .dropdown-submenu-content:hover .badge {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    padding: revert !important;
    margin: revert !important;
    overflow: visible !important;
    pointer-events: auto !important;
}

/* Submenu items - hidden by default, shown only when submenu is visible */
.user-dropdown-menu .dropdown-submenu-content .dropdown-item {
    padding: 0.75rem 1rem;
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    color: #111827;
    transition: background 0.2s ease;
    gap: 0.75rem;
}

/* Show submenu items when submenu is visible - override the * rule */
.user-dropdown-menu .dropdown-submenu:hover > .dropdown-submenu-content .dropdown-item,
.user-dropdown-menu .dropdown-submenu-content:hover .dropdown-item {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    padding: 0.75rem 1rem !important;
    margin: 0 !important;
    overflow: visible !important;
    gap: 0.75rem !important;
    justify-content: flex-start !important;
}

.user-dropdown-menu .dropdown-submenu-content .dropdown-item:hover {
    background: #f3f4f6;
    color: var(--primary-color);
    text-decoration: none;
}

.user-dropdown-menu .dropdown-submenu-content .dropdown-item i {
    color: var(--primary-color);
    width: 16px;
    flex-shrink: 0;
    margin: 0;
}

.user-dropdown-menu .dropdown-submenu-content .dropdown-item .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    margin-left: auto;
    flex-shrink: 0;
}

.dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0.5rem 0;
    pointer-events: none;
}

/* Password Input with Eye Icon */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .form-control {
    padding-right: 45px;
}

.password-toggle-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 5px 10px;
    z-index: 10;
    transition: color 0.2s ease;
}

.password-toggle-btn:hover {
    color: var(--primary-color, #007bff);
}

.password-toggle-btn:focus {
    outline: none;
    color: var(--primary-color, #007bff);
}

.password-toggle-btn i {
    font-size: 1rem;
}

/* Main Navigation Bar */
.main-navbar {
    background: var(--primary-color);
    padding: 0;
    margin: 0;
    position: fixed;
    top: 73px; /* Height of top-header (approximately) */
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
}

.main-navbar .container {
    max-width: 1400px;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-left: 0;
    padding-right: 0;
    margin: 0;
    gap: 1.5rem;
    min-height: 50px;
}

/* Ensure All Categories button is always visible */
.all-categories-btn {
    display: flex !important;
}

.all-categories-btn {
    background: #ffffff;
    color: var(--primary-color);
    border: 1px solid #d1d5db;
    padding: 0.625rem 1.25rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 100%;
    line-height: 1;
    margin-top: 0.25rem;
}

.all-categories-btn i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    font-size: 0.875rem;
}

.all-categories-btn:hover {
    background: #f9fafb;
}

.nav-links {
    flex: 1;
    display: flex;
    align-items: center;
    padding-left: 1.5rem;
    height: 100%;
}

/* Hide nav-links on tablet and mobile by default */
@media (max-width: 992px) {
    .nav-links {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none !important;
    }
}

.main-navbar .navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: wrap;
    height: 100%;
}

/* Hide navbar-nav on tablet and mobile by default */
@media (max-width: 992px) {
    .main-navbar .navbar-nav {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .main-navbar .navbar-nav {
        display: none !important;
    }
}

.main-navbar .nav-item {
    list-style: none;
    display: flex;
    align-items: center;
    height: 100%;
}

/* Hide nav-item on tablet and mobile by default */
@media (max-width: 992px) {
    .main-navbar .nav-item {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .main-navbar .nav-item {
        display: none !important;
    }
}

.main-navbar .nav-link {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-top: 0.25rem !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-decoration: none;
    transition: color 0.2s ease;
    text-transform: uppercase;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    height: 100%;
}

/* Hide nav-link on tablet and mobile by default */
@media (max-width: 992px) {
    .main-navbar .nav-link {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .main-navbar .nav-link {
        display: none !important;
    }
}

/* Hide category menus on tablet and mobile - ensure all selectors are covered */
@media (max-width: 991.98px) {
    .main-navbar .nav-item,
    .main-navbar .nav-link,
    .nav-links,
    .main-navbar .navbar-nav,
    .main-navbar .nav-wrapper .nav-links {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        position: absolute !important;
        left: -9999px !important;
    }
}

@media (max-width: 767.98px) {
    .main-navbar .nav-item,
    .main-navbar .nav-link,
    .nav-links,
    .main-navbar .navbar-nav,
    .main-navbar .nav-wrapper .nav-links {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        position: absolute !important;
        left: -9999px !important;
    }
}

.main-navbar .nav-link:hover {
    color: rgba(255, 255, 255, 0.85) !important;
}

.user-menu {
    margin-left: auto;
    display: flex;
    gap: 1rem;
    align-items: center;
    padding-top: 0.5rem;
}

.user-link {
    color: #ffffff !important;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.user-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Categories Dropdown */
.categories-dropdown {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 2rem 0;
}

/* Ensure dropdown is visible and properly styled on all devices */
#categoriesMenu.collapse:not(.show) {
    display: none;
}

#categoriesMenu.collapse.show {
    display: block;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-dark);
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.category-link:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

.category-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 992px) {
    body {
        padding-top: 180px; /* More space for stacked headers on tablet */
    }
    
    .header-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-logo,
    .header-search,
    .header-cart {
        width: 100%;
    }
    
    .header-search {
        max-width: 100%;
    }
    
    .header-cart {
        justify-content: flex-start;
    }
    
    .user-dropdown-menu {
        right: auto;
        left: 0;
    }
    
    .user-name {
        font-size: 0.85rem;
    }
    
    .nav-wrapper {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .main-navbar {
        top: 73px; /* Height of top-header */
    }
    
    /* Hide category navigation links on tablet and mobile - use very specific selectors */
    .main-navbar .nav-wrapper .nav-links,
    .main-navbar .nav-links,
    .nav-links {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .main-navbar .nav-wrapper .nav-links .navbar-nav,
    .main-navbar .nav-links .navbar-nav,
    .main-navbar .navbar-nav {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .main-navbar .nav-wrapper .nav-links .navbar-nav .nav-item,
    .main-navbar .nav-links .navbar-nav .nav-item,
    .main-navbar .navbar-nav .nav-item,
    .main-navbar .nav-item {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .main-navbar .nav-wrapper .nav-links .navbar-nav .nav-item .nav-link,
    .main-navbar .nav-links .navbar-nav .nav-item .nav-link,
    .main-navbar .navbar-nav .nav-item .nav-link,
    .main-navbar .nav-link {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .user-menu {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
        justify-content: flex-start;
    }
    
    .all-categories-btn {
        width: 100%;
        margin-right: 0;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 180px; /* More space for stacked headers on mobile */
    }
    
    .top-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
    }
    
    .main-navbar {
        position: fixed;
        top: 73px; /* Height of top-header */
        left: 0;
        right: 0;
        width: 100%;
    }
    
    .search-container {
        flex-direction: row;
    }
    
    .search-button {
        width: auto;
        margin-top: 0;
    }
    
    /* Hide category navigation links on mobile - use very specific selectors */
    .main-navbar .nav-wrapper .nav-links,
    .main-navbar .nav-links,
    .nav-links {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .main-navbar .nav-wrapper .nav-links .navbar-nav,
    .main-navbar .nav-links .navbar-nav,
    .main-navbar .navbar-nav {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .main-navbar .nav-wrapper .nav-links .navbar-nav .nav-item,
    .main-navbar .nav-links .navbar-nav .nav-item,
    .main-navbar .navbar-nav .nav-item,
    .main-navbar .nav-item {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .main-navbar .nav-wrapper .nav-links .navbar-nav .nav-item .nav-link,
    .main-navbar .nav-links .navbar-nav .nav-item .nav-link,
    .main-navbar .navbar-nav .nav-item .nav-link,
    .main-navbar .nav-link {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .all-categories-btn {
        width: 100%;
        margin-right: 0;
        margin-bottom: 0;
    }
    
    .nav-wrapper {
        justify-content: space-between;
    }
    
    /* Categories dropdown styling for mobile */
    .categories-dropdown {
        padding: 1.5rem 0;
    }
    
    .category-link {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
    
    .cart-box {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.hero-content {
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Product Cards - Modern Design */
.product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.product-card .card-img-top {
    transition: transform 0.5s ease;
    height: 250px;
    object-fit: cover;
    background: var(--light-bg);
    width: 100%;
}

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

.product-card .card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card .card-text {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.product-card .btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.product-card .btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.product-card .card-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    line-height: 1.4;
    min-height: 2.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .card-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.product-card .card-title a:hover {
    color: var(--primary-color);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-original {
    font-size: 1rem;
    color: var(--text-light);
    text-decoration: line-through;
}

/* Override Bootstrap text-primary to use admin-managed primary color */
.text-primary {
    color: var(--primary-color) !important;
}

/* Ensure product card prices use admin-managed primary color */
.product-card .text-primary,
.product-card .fw-bold.text-primary,
.card-body .text-primary,
.card-body .fw-bold.text-primary {
    color: var(--primary-color) !important;
}

.discount-badge {
    background: var(--danger-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Filter Card */
.filter-card {
    border: none;
    box-shadow: var(--shadow-md);
    border-radius: 12px;
    overflow: hidden;
    position: sticky;
    top: 20px;
}

.filter-card .card-header {
    border-bottom: none;
    padding: 1rem 1.25rem;
}

.filter-card .card-body {
    padding: 1.25rem;
}

.filter-card .form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.filter-card .form-control,
.filter-card .form-select {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.625rem 0.75rem;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.filter-card .form-control:focus,
.filter-card .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.1);
    outline: none;
}

.filter-card .btn {
    font-weight: 600;
    padding: 0.625rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.filter-card .btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Category Checkboxes Styling */
.category-checkboxes {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem;
    background: #f9fafb;
}

.category-checkboxes::-webkit-scrollbar {
    width: 6px;
}

.category-checkboxes::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.category-checkboxes::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.category-checkboxes::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.category-checkboxes .form-check {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.category-checkboxes .form-check:hover {
    background-color: #ffffff;
}

.category-checkboxes .form-check-input {
    margin-top: 0.35rem;
    margin-left: 0.5rem;
    cursor: pointer;
    width: 1.1em;
    height: 1.1em;
    border: 2px solid #6b7280;
}

.category-checkboxes .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.category-checkboxes .form-check-label {
    cursor: pointer;
    font-size: 0.9rem;
    color: #374151;
    margin-left: 0.5rem;
    user-select: none;
}

.category-checkboxes .form-check-input:checked + .form-check-label {
    color: var(--primary-color);
    font-weight: 600;
}

.filter-card .btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Pagination Styling - Circular Design */
.pagination-wrapper {
    margin: 2.5rem 0;
    padding: 0;
    width: 100%;
}

/* Override any Bootstrap pagination defaults */
.pagination-wrapper .pagination {
    gap: 0.5rem !important;
}

.pagination-wrapper nav {
    display: block;
}

.pagination-info {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.pagination-info strong {
    color: var(--text-dark);
    font-weight: 600;
}

.pagination {
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.pagination .page-item {
    margin: 0;
    list-style: none;
}

.pagination .page-link {
    color: #5f6368;
    border: 1px solid #e0e0e0;
    padding: 0;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 42px;
    height: 42px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    background: #f8f8f8;
    box-shadow: none;
    line-height: 1;
}

.pagination .page-link:hover:not(.disabled) {
    background: #e8e8e8;
    color: #5f6368;
    border-color: #d0d0d0;
    transform: none;
}

/* Override Bootstrap defaults */
.pagination .page-link,
.pagination .page-link * {
    font-size: 0.875rem !important;
    line-height: 1 !important;
}

.pagination .pagination-arrow {
    display: inline-block;
    font-size: 0.875rem;
    line-height: 1;
    font-weight: 400;
    color: inherit;
}

.pagination .page-link i {
    font-size: 0.75rem;
    color: #5f6368;
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: none;
    font-weight: 500;
    cursor: default;
}

.pagination .page-item.active .page-link:hover {
    transform: none;
    background: var(--primary-color);
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #9ca3af;
    background: #f8f8f8;
    border-color: #e0e0e0;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.pagination .page-item.disabled .page-link:hover {
    transform: none;
    background: #f8f8f8;
    color: #9ca3af;
    border-color: #e0e0e0;
    box-shadow: none;
}

.pagination .page-item.disabled .page-link i {
    color: #9ca3af;
}

/* Responsive */
@media (max-width: 767px) {
    .pagination-wrapper {
        margin: 2rem 0;
    }

    .pagination .page-link {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }
}

/* Custom Pagination - Circular Design */
.custom-pagination {
    margin: 3rem 0 2rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

.pagination-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: #ffffff;
    color: #5f6368;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    line-height: 1;
    padding: 0;
}

.pagination-btn:hover:not(.disabled):not(.pagination-btn-active) {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.pagination-btn-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    cursor: default;
}

.pagination-btn-active:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.pagination-btn.disabled {
    background: #ffffff;
    border-color: #e0e0e0;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination-btn.disabled:hover {
    background: #ffffff;
    border-color: #e0e0e0;
    color: #9ca3af;
}

.pagination-btn-nav {
    font-size: 0.875rem;
    font-weight: 400;
}

.pagination-dots {
    color: #5f6368;
    padding: 0 0.25rem;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 767px) {
    .custom-pagination {
        margin: 2rem 0;
    }

    .pagination-btn {
        width: 38px;
        height: 38px;
        font-size: 0.8rem;
    }
}

/* Price Range Slider */
.price-range-container {
    padding: 0.5rem 0;
}

.price-range-slider {
    position: relative;
    width: 100%;
    height: 6px;
    margin: 1.5rem 0;
}

.price-range-track {
    position: relative;
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
}

.price-range-fill {
    position: absolute;
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    left: 0%;
    width: 100%;
    transition: all 0.1s ease;
}

.price-range-input {
    position: absolute;
    width: 100%;
    height: 6px;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    background: none;
    -webkit-appearance: none;
    appearance: none;
    z-index: 3;
}

.price-range-min {
    z-index: 4;
}

.price-range-max {
    z-index: 3;
}

.price-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    pointer-events: all;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.price-range-input::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.price-range-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    -moz-appearance: none;
    appearance: none;
}

.price-range-input::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.price-range-input::-webkit-slider-runnable-track {
    background: transparent;
    height: 6px;
}

.price-range-input::-moz-range-track {
    background: transparent;
    height: 6px;
}

.price-range-input:focus {
    outline: none;
}

.price-range-input:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px var(--primary-color-rgba, rgba(37, 99, 235, 0.2));
}

.price-range-input:focus::-moz-range-thumb {
    box-shadow: 0 0 0 3px var(--primary-color-rgba, rgba(37, 99, 235, 0.2));
}

.price-range-values {
    font-size: 0.9rem;
}

.price-display {
    font-weight: 600;
    color: var(--text-dark);
}

/* Category Cards */
/* Modern Category Section */
.category-section-modern {
    padding: 2rem 0;
}

.section-title-modern {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.section-subtitle-modern {
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 0;
}

.category-card-modern {
    display: block;
    text-decoration: none;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    background: #ffffff;
}

.category-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.category-image-wrapper {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.category-image-modern {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card-modern:hover .category-image-modern {
    transform: scale(1.15);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0.6;
    transition: opacity 0.4s ease;
}

.category-card-modern:hover .category-overlay {
    opacity: 0.8;
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem 1.5rem;
    color: #ffffff;
    z-index: 2;
    transform: translateY(0);
    transition: transform 0.4s ease;
}

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

.category-title-modern {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
}

.category-description-modern {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 1rem 0;
    line-height: 1.5;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.category-link-modern {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.category-card-modern:hover .category-link-modern {
    opacity: 1;
    transform: translateY(0);
}

.category-link-modern i {
    transition: transform 0.3s ease;
}

.category-card-modern:hover .category-link-modern i {
    transform: translateX(5px);
}

/* Responsive adjustments for category section */
@media (max-width: 992px) {
    .section-title-modern {
        font-size: 2rem;
    }
    
    .category-image-wrapper {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .category-section-modern {
        padding: 1.5rem 0;
    }
    
    .section-title-modern {
        font-size: 1.75rem;
    }
    
    .section-subtitle-modern {
        font-size: 1rem;
    }
    
    .category-image-wrapper {
        height: 250px;
    }
    
    .category-content {
        padding: 1.5rem 1.25rem 1.25rem;
    }
    
    .category-title-modern {
        font-size: 1.25rem;
    }
    
    .category-description-modern {
        font-size: 0.875rem;
    }
}

/* Legacy category card styles (for backward compatibility) */
.category-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: #fff;
}

.category-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.category-card img {
    transition: transform 0.5s ease;
}

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

/* Features Section */
.features-section {
    padding: 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.feature-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 1rem;
    position: relative;
    transition: all 0.3s ease;
    background: transparent;
}

.feature-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: linear-gradient(to bottom, transparent, var(--border-color), transparent);
}

.feature-item:hover {
    background: rgba(37, 99, 235, 0.03);
    transform: translateX(3px);
}

.feature-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 0;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.feature-icon i {
    font-size: 1.75rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon i {
    transform: scale(1.1);
    color: var(--secondary-color);
}

.feature-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.feature-item:hover .feature-title {
    color: var(--secondary-color);
}

/* Responsive adjustments for features */
@media (max-width: 991px) {
    .feature-item:not(:last-child)::after {
        display: none;
    }
    
    .feature-item:nth-child(2n)::after {
        display: block;
    }
    
    .feature-item:nth-child(4)::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .features-section {
        border-radius: 8px;
    }
    
    .feature-item {
        padding: 1rem 0.75rem;
        gap: 0.625rem;
        justify-content: flex-start;
    }
    
    .feature-item:not(:last-child)::after {
        display: none;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
    }
    
    .feature-icon i {
        font-size: 1.5rem;
    }
    
    .feature-title {
        font-size: 0.95rem;
    }
}

/* Buttons - Modern Style */
.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Cart Badge */
.badge {
    border-radius: 50px;
    padding: 0.35em 0.65em;
    font-weight: 600;
}

/* Slider/Carousel */
.slider-container {
    width: 100%;
    height: 400px;
    display: block;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    background: transparent;
    padding: 0;
    margin: 0;
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
}

.slider-link {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.slider-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (min-width: 768px) {
    .slider-container {
        height: 400px;
    }
}

@media (max-width: 767px) {
    .slider-container {
        height: 300px;
    }
}

/* Slider/Carousel - Old rule (kept for compatibility) */
.carousel-item img:not(.slider-image) {
    height: 500px;
    object-fit: cover;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.carousel-caption h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Forms - Modern Style */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid var(--border-color);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Cards - Modern Style */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    border: none;
}

/* Checkout Page */
.checkout-section {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

/* Checkout Card Header Button */
.card-header #useLastAddressBtn {
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--primary-color) !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    padding: 0.5rem 1rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.card-header #useLastAddressBtn:hover {
    background: #ffffff !important;
    color: var(--secondary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: #ffffff !important;
}

.card-header #useLastAddressBtn:active {
    transform: translateY(0);
}

.card-header #useLastAddressBtn i {
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .card-header {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .card-header #useLastAddressBtn {
        width: 100%;
        margin-top: 0.5rem;
    }
}

.order-summary {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 20px;
}

/* Modern Footer Design */
.modern-footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: #ffffff;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.footer-main {
    padding: 4rem 0 2.5rem;
    position: relative;
}

.footer-widget {
    margin-bottom: 2rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    max-height: 60px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.footer-logo-text {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.75rem;
    margin: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.footer-contact {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.footer-contact i {
    color: var(--primary-color);
    width: 20px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-contact a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 2px;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
}

.footer-links a i {
    font-size: 0.7rem;
    color: var(--primary-color);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 0.5rem;
    transform: translateX(5px);
}

.footer-links a:hover i {
    opacity: 1;
    color: var(--primary-color);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-copyright strong {
    color: #ffffff;
    font-weight: 600;
}

.footer-powered {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-main {
        padding: 3rem 0 2rem;
    }
    
    .footer-widget {
        margin-bottom: 2.5rem;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .footer-bottom .col-md-6 {
        margin-bottom: 0.5rem;
    }
    
    .footer-bottom .text-md-end {
        text-align: center !important;
    }
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
    box-shadow: var(--shadow-sm);
}

/* Tables */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    background: var(--light-bg);
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .product-card .card-img-top {
        height: 200px;
    }
    
    .carousel-item img {
        height: 300px;
    }
    
    .carousel-caption h2 {
        font-size: 1.5rem;
    }
}

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

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

/* Payment Section */
.payment-methods {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.payment-method {
    flex: 1;
    min-width: 150px;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-method:hover,
.payment-method.active {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.payment-method img {
    max-height: 40px;
    margin-bottom: 0.5rem;
}

/* User Profile Section */
.user-profile {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

/* Order History */
.order-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.order-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Modern Order Card Styling */
.order-card-modern {
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #ffffff;
    border-left: 4px solid var(--primary-color);
}

.order-card-modern:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-3px);
    border-left-color: #f59e0b;
}

.order-info-section h5 {
    color: #1f2937;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.order-meta {
    margin-top: 0.5rem;
}

.order-meta i {
    color: var(--primary-color);
    width: 16px;
}

.order-total-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem !important;
}

.order-status-badge {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 20px;
}

.order-card-modern .btn-primary {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.order-card-modern .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Ensure all buttons on order pages display icons and text horizontally */
.order-card-modern .btn,
.order-card-modern .btn-primary,
.order-card-modern .btn-sm,
.order-card-modern a.btn {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
}

.order-card-modern .btn i,
.order-card-modern .btn-primary i,
.order-card-modern .btn-sm i,
.order-card-modern a.btn i {
    display: inline-block !important;
    flex-shrink: 0 !important;
}

/* Global button icon alignment fix for order pages */
@media (min-width: 768px) {
    .btn,
    .btn-primary,
    .btn-sm,
    a.btn,
    .btn-invoice-modern {
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .btn i,
    .btn-primary i,
    .btn-sm i,
    a.btn i,
    .btn-invoice-modern i {
        display: inline-block !important;
        flex-shrink: 0 !important;
    }
}

.order-card-modern .btn-outline-secondary {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-color: #6b7280;
    color: #6b7280;
}

.order-card-modern .btn-outline-secondary:hover {
    transform: translateY(-2px);
    background: #6b7280;
    border-color: #6b7280;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

/* Order Tracking Status Timeline */
.order-tracking-status {
    padding: 0.5rem 0;
}

.tracking-timeline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    padding: 0;
    margin: 0;
}

.tracking-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 2;
}

.tracking-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 22px;
    left: calc(50% + 22px);
    width: calc(100% - 44px);
    height: 3px;
    background: #e5e7eb;
    z-index: 1;
}

/* Green line extends from Order Placed to current active status */
/* If Order Placed is active, line to Shipped is green */
.tracking-step:first-child.active:not(:last-child)::after {
    background: #14b8a6;
}

/* If Shipped is active, line from Shipped to Completed is green */
.tracking-step:nth-child(2).active:not(:last-child)::after {
    background: #14b8a6;
}

.tracking-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
    transition: all 0.3s ease;
}

.tracking-icon i {
    font-size: 18px;
    color: #9ca3af;
    transition: all 0.3s ease;
}

.tracking-step:first-child.active .tracking-icon {
    border-color: #14b8a6;
    background: #14b8a6;
}

.tracking-step:first-child.active .tracking-icon i {
    color: #ffffff;
}

.tracking-step:nth-child(2).active .tracking-icon {
    border-color: #14b8a6;
    background: #14b8a6;
}

.tracking-step:nth-child(2).active .tracking-icon i {
    color: #ffffff;
}

.tracking-step:nth-child(3).active .tracking-icon {
    border-color: #10b981;
    background: #10b981;
}

.tracking-step:nth-child(3).active .tracking-icon i {
    color: #ffffff;
}

.tracking-label {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
    font-weight: 500;
}

.tracking-step.active .tracking-label {
    color: #111827;
    font-weight: 600;
}

.tracking-line {
    display: none;
}

/* Wishlist Heart Icon Styles */
.wishlist-btn {
    transition: all 0.3s ease !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    z-index: 15 !important;
}

.wishlist-btn:hover {
    background: rgba(255, 255, 255, 1) !important;
    transform: scale(1.1) !important;
}

.wishlist-btn:active {
    transform: scale(0.95) !important;
}

.wishlist-icon {
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    pointer-events: none !important;
    display: inline-block !important;
}

/* Empty heart - initially show filled red heart (before adding to wishlist) */
/* Using multiple selectors to ensure it overrides Font Awesome styles */
.wishlist-btn i.far.fa-heart,
.wishlist-btn .far.fa-heart,
.wishlist-btn .wishlist-icon.far,
.wishlist-btn i.wishlist-icon.far,
button .wishlist-icon.far.fa-heart,
.wishlist-icon.far.fa-heart,
i.wishlist-icon.far.fa-heart {
    color: #dc3545 !important;
    -webkit-text-stroke: 0px !important;
    -webkit-text-fill-color: #dc3545 !important;
    fill: #dc3545 !important;
    text-shadow: none !important;
    transition: all 0.3s ease !important;
}

/* Hover effect - fully filled vibrant red heart with glow effect (only for empty hearts) */
.wishlist-btn:hover i.far.fa-heart,
.wishlist-btn:hover .far.fa-heart,
.wishlist-btn:hover .wishlist-icon.far,
.wishlist-btn:hover i.wishlist-icon.far,
button:hover .wishlist-icon.far.fa-heart,
.wishlist-btn:hover .wishlist-icon.far.fa-heart,
.wishlist-btn:hover i.wishlist-icon.far.fa-heart {
    color: #dc3545 !important;
    -webkit-text-stroke: 0px !important;
    -webkit-text-fill-color: #dc3545 !important;
    fill: #dc3545 !important;
    text-shadow: 0 0 8px rgba(220, 53, 69, 0.6), 0 0 12px rgba(220, 53, 69, 0.4) !important;
    filter: drop-shadow(0 0 4px rgba(220, 53, 69, 0.8)) !important;
    transform: scale(1.2) !important;
    transition: all 0.3s ease !important;
}

/* Filled heart (already in wishlist) - solid red */
.wishlist-btn i.fas.fa-heart,
.wishlist-btn .fas.fa-heart,
.wishlist-btn .wishlist-icon.fas,
.wishlist-btn i.wishlist-icon.fas,
button .wishlist-icon.fas.fa-heart,
.wishlist-icon.fas.fa-heart,
i.wishlist-icon.fas.fa-heart {
    color: #dc3545 !important;
    -webkit-text-stroke: 0px !important;
    -webkit-text-fill-color: #dc3545 !important;
    fill: #dc3545 !important;
    text-shadow: none !important;
}

/* Hover on filled heart - keep it filled with glow effect */
.wishlist-btn:hover i.fas.fa-heart,
.wishlist-btn:hover .fas.fa-heart,
.wishlist-btn:hover .wishlist-icon.fas,
.wishlist-btn:hover i.wishlist-icon.fas,
button:hover .wishlist-icon.fas.fa-heart,
.wishlist-btn:hover .wishlist-icon.fas.fa-heart,
.wishlist-btn:hover i.wishlist-icon.fas.fa-heart {
    color: #dc3545 !important;
    -webkit-text-stroke: 0px !important;
    -webkit-text-fill-color: #dc3545 !important;
    fill: #dc3545 !important;
    text-shadow: 0 0 8px rgba(220, 53, 69, 0.6), 0 0 12px rgba(220, 53, 69, 0.4) !important;
    filter: drop-shadow(0 0 4px rgba(220, 53, 69, 0.8)) !important;
    transform: scale(1.2) !important;
    transition: all 0.3s ease !important;
}

/* Ensure product card doesn't block wishlist button */
.product-card {
    position: relative;
}

.product-card .position-relative {
    position: relative;
}

/* Modern Attractive Breadcrumb Design */
.modern-breadcrumb {
    margin-bottom: 2rem;
    padding: 0;
}

.breadcrumb-modern {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.breadcrumb-item-modern {
    display: flex;
    align-items: center;
    position: relative;
}

.breadcrumb-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.05);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.breadcrumb-link:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    border-color: var(--primary-color);
}

.breadcrumb-link i {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.breadcrumb-link:hover i {
    transform: scale(1.1);
}

.breadcrumb-separator {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 0.75rem;
    padding: 0 0.25rem;
    opacity: 0.6;
}

.breadcrumb-separator i {
    font-size: 0.7rem;
}

.breadcrumb-current {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(30, 64, 175, 0.1) 100%);
    border-radius: 8px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    position: relative;
    overflow: hidden;
}

.breadcrumb-current::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.breadcrumb-current:hover::before {
    left: 100%;
}

.breadcrumb-current i {
    color: var(--primary-color);
    font-size: 0.875rem;
    margin-right: 0.5rem;
}

/* Responsive breadcrumb */
/* Mobile Product Cards - 2 per row */
@media (max-width: 575.98px) {
    .products-grid .col-6,
    .row.g-4 .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .row.g-4 {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    .product-card {
        margin-bottom: 1rem;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
    }
    
    .product-card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
        transform: translateY(-2px);
    }
    
    .product-card .card-img-top {
        height: 160px;
        object-fit: cover;
        width: 100%;
    }
    
    .product-card .card-body {
        padding: 0.75rem;
        display: flex;
        flex-direction: column;
    }
    
    .product-card .card-title {
        font-size: 0.85rem;
        font-weight: 600;
        margin-bottom: 0.4rem;
        line-height: 1.3;
        min-height: 2.6em;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .product-card .card-title a {
        color: #111827;
        text-decoration: none;
    }
    
    .product-card .card-text {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
        color: #6b7280;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 2.1em;
    }
    
    .product-card {
        border: 1px solid #f0f0f0;
    }
    
    .product-card .discount-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
        font-weight: 600;
        border-radius: 4px;
    }
    
    .product-card .wishlist-btn {
        width: 32px !important;
        height: 32px !important;
        padding: 0 !important;
        transition: all 0.2s ease;
    }
    
    .product-card .wishlist-btn:hover {
        background: rgba(255, 255, 255, 1) !important;
        transform: scale(1.1);
    }
    
    .product-card .wishlist-icon {
        font-size: 14px !important;
    }
    
    .product-card .btn-primary {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
        white-space: nowrap;
        border-radius: 6px;
        font-weight: 500;
    }
    
    .product-card .btn-primary i {
        font-size: 0.7rem;
    }
    
    .product-card .text-decoration-line-through {
        font-size: 0.7rem;
        color: #9ca3af;
    }
    
    .product-card .fw-bold.text-primary {
        font-size: 0.95rem;
        font-weight: 700;
    }
    
    .product-card .d-flex.justify-content-between {
        flex-wrap: nowrap;
        gap: 0.5rem;
        align-items: flex-end;
    }
    
    .product-card .d-flex.flex-column {
        gap: 0.2rem;
    }
    
    .product-card .d-flex.flex-column .fw-bold.text-primary {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .breadcrumb-modern {
        gap: 0.25rem;
    }
    
    .breadcrumb-link,
    .breadcrumb-current {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .breadcrumb-separator {
        padding: 0 0.15rem;
    }
    
    .breadcrumb-link i,
    .breadcrumb-current i {
        font-size: 0.75rem;
        margin-right: 0.35rem;
    }
}

/* Fancy Animated Popup Notifications */
.notification-container {
    position: fixed;
    top: 150px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 1400px;
    width: calc(100% - 40px);
    pointer-events: none;
    padding: 0;
    margin: 0;
}

.notification-popup {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
    pointer-events: auto;
    transform: translateY(-100%);
    opacity: 0;
    animation: slideDownFromTop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    margin: 10px 0;
    border-bottom: 1px solid #e5e7eb;
    box-sizing: border-box;
}

.notification-content-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
}

.notification-popup::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: currentColor;
    border-radius: 12px 0 0 12px;
}

.notification-popup.success {
    border-left: 4px solid #10b981;
    color: #065f46;
}

.notification-popup.error {
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.notification-popup.warning {
    border-left: 4px solid #f59e0b;
    color: #92400e;
}

.notification-popup.info {
    border-left: 4px solid #3b82f6;
    color: #1e40af;
}

.notification-popup.hiding {
    animation: slideUpToTop 0.4s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards;
}

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

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

.notification-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    animation: scaleIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.2s both;
}

.notification-popup.success .notification-icon {
    background: #d1fae5;
    color: #10b981;
}

.notification-popup.error .notification-icon {
    background: #fee2e2;
    color: #ef4444;
}

.notification-popup.warning .notification-icon {
    background: #fef3c7;
    color: #f59e0b;
}

.notification-popup.info .notification-icon {
    background: #dbeafe;
    color: #3b82f6;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.notification-content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 20px;
    box-sizing: border-box;
}

.notification-content {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    word-wrap: break-word;
    word-break: break-word;
}

.notification-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    line-height: 1.4;
}

.notification-message {
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
    margin: 0;
}

.notification-popup.error .notification-message,
.notification-popup.success .notification-message {
    color: #374151;
}

.notification-close {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    padding: 0;
    font-size: 16px;
    line-height: 1;
}

.notification-close:hover {
    background: #f3f4f6;
    color: #6b7280;
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.3;
    animation: progressBar 5s linear forwards;
    border-radius: 0 0 12px 12px;
}

@keyframes progressBar {
    0% {
        width: 100%;
    }
    100% {
        width: 0%;
    }
}

/* Error list styling */
.notification-error-list {
    margin: 8px 0 0 0;
    padding-left: 20px;
    list-style: none;
}

.notification-error-list li {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 4px;
    position: relative;
}

.notification-error-list li::before {
    content: '•';
    position: absolute;
    left: -14px;
    color: currentColor;
    font-weight: bold;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .notification-container {
        top: 130px;
        width: calc(100% - 20px);
        max-width: 100%;
        left: 50%;
        transform: translateX(-50%);
        box-sizing: border-box;
    }
    
    .notification-popup {
        padding: 12px 14px;
        border-radius: 8px;
        margin: 10px 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .notification-content-wrapper {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
        box-sizing: border-box;
    }
    
    .notification-content {
        flex: 1;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        word-wrap: break-word;
        word-break: break-word;
    }
    
    .notification-title {
        font-size: 14px;
        word-wrap: break-word;
        word-break: break-word;
    }
    
    .notification-message {
        font-size: 13px;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    .notification-message p {
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
        margin: 0;
    }
    
    .notification-icon {
        width: 20px;
        height: 20px;
        font-size: 12px;
        flex-shrink: 0;
    }
    
    .notification-close {
        flex-shrink: 0;
    }
}

/* Tablet responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .notification-container {
        top: 145px;
        max-width: 100%;
        width: calc(100% - 40px);
    }
    
    .notification-popup {
        margin: 10px 0;
    }
}

/* ============================================
   COMPREHENSIVE RESPONSIVE DESIGN FIXES
   ============================================ */

/* Cart Page - Table Responsive */
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table {
        font-size: 0.875rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
        white-space: nowrap;
    }
    
    .table img {
        width: 60px !important;
        height: 60px !important;
    }
}

/* Product Detail Page - Image Carousel */
@media (max-width: 768px) {
    #productCarousel img {
        height: 300px !important;
    }
}

/* Orders Page - Tracking Timeline */
@media (max-width: 992px) {
    .tracking-timeline {
        flex-direction: row;
        justify-content: center;
        margin: 1rem 0;
    }
    
    .tracking-step {
        flex: 1;
        max-width: 120px;
    }
    
    .tracking-label {
        font-size: 0.75rem;
    }
}

/* Checkout Page - Form Fields */
@media (max-width: 768px) {
    .checkout-form .col-md-4 {
        margin-bottom: 1rem;
    }
}

/* Profile Page - Form Layout */
@media (max-width: 768px) {
    .profile-form .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* Product Cards - Better spacing on mobile */
@media (max-width: 576px) {
    .product-card {
        margin-bottom: 1rem;
    }
    
    .row.g-4 {
        --bs-gutter-y: 1rem;
        --bs-gutter-x: 0.75rem;
    }
    
    .product-card .card-img-top {
        height: 180px;
    }
    
    .product-card .card-body {
        padding: 0.875rem;
    }
    
    .product-card .card-title {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .product-card .btn {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Header - Better mobile layout */
@media (max-width: 576px) {
    .header-cart {
        font-size: 0.875rem;
    }
    
    .cart-summary {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .user-name {
        display: none;
    }
}

/* Container padding on mobile */
@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .container.my-5 {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }
}

/* Product Rating Styles */
.product-rating {
    display: flex;
    align-items: center;
}

.product-rating .fa-star {
    font-size: 0.875rem;
}

.product-rating .text-warning {
    color: #ffc107 !important;
}

.product-rating .text-muted {
    color: #dee2e6 !important;
}

/* Reviews Slider Section - Unique Design */
.reviews-slider-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 30px;
    margin: 4rem 0;
    position: relative;
    overflow: hidden;
}

.reviews-slider-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.reviews-slider-section .text-center h2 {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.reviews-slider-section .text-center p {
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

.review-card-simple {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    margin: 0 0.75rem;
}

.review-card-simple::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.review-card-simple:hover::before {
    transform: scaleX(1);
}

.review-card-simple:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.5);
}

.review-rating-simple {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 1.25rem;
    justify-content: center;
}

.review-rating-simple .fa-star {
    font-size: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.review-rating-simple .text-warning {
    color: #ffd700 !important;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.review-rating-simple .text-muted {
    color: #d3d3d3 !important;
}

.review-content-simple {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    position: relative;
}

.review-content-simple::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: -5px;
    font-size: 4rem;
    color: rgba(102, 126, 234, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.review-comment-simple {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #2d3748;
    font-style: italic;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 5.1em;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

.reviewer-info-simple {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding-top: 1.25rem;
    border-top: 2px solid rgba(102, 126, 234, 0.1);
    position: relative;
}

.reviewer-avatar-simple {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.review-card-simple:hover .reviewer-avatar-simple {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.reviewer-details-simple {
    text-align: left;
}

.reviewer-details-simple strong {
    display: block;
    color: #1a202c;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

#reviewsCarousel .carousel-control-prev,
#reviewsCarousel .carousel-control-next {
    display: none !important;
}

#reviewsCarousel .carousel-inner {
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
    margin: 0;
}

/* Animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-card-simple {
    animation: fadeInUp 0.6s ease-out;
}

@media (max-width: 1200px) {
    .review-card-simple {
        padding: 1.75rem 1.25rem;
    }
    
    .review-comment-simple {
        font-size: 0.9rem;
        min-height: 4.6em;
    }
    
    #reviewsCarousel .carousel-inner {
        margin: 0 2.5rem;
    }
}

@media (max-width: 992px) {
    .reviews-slider-section {
        padding: 3rem 1rem;
        margin: 3rem 0;
        border-radius: 20px;
    }
    
    .review-card-simple {
        padding: 1.5rem 1rem;
    }
    
    .review-comment-simple {
        font-size: 0.85rem;
        min-height: 4em;
        -webkit-line-clamp: 2;
    }
    
    .reviewer-avatar-simple {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
    
    .reviewer-details-simple strong {
        font-size: 0.9rem;
    }
    
    #reviewsCarousel .carousel-inner {
        margin: 0 2rem;
    }
}

@media (max-width: 768px) {
    .reviews-slider-section {
        padding: 2.5rem 1rem;
    }
    
    .review-card-simple {
        padding: 1.25rem;
        border-radius: 15px;
    }
    
    .review-comment-simple {
        font-size: 0.8rem;
        min-height: 3.6em;
    }
    
    .review-rating-simple .fa-star {
        font-size: 0.875rem;
    }
    
    .reviewer-avatar-simple {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }
    
    #reviewsCarousel .carousel-inner {
        margin: 0 1rem;
    }
}

/* Order Detail Page - Mobile Fixes */
@media (max-width: 575.98px) {
    .order-detail-header h2 {
        font-size: 1.5rem;
        word-break: break-word;
    }
    
    .order-items-table {
        font-size: 0.875rem;
    }
    
    .order-items-table img {
        width: 40px !important;
        height: 40px !important;
    }
    
    .order-items-table th,
    .order-items-table td {
        padding: 0.5rem 0.25rem;
    }
}

/* Replacement Orders Page - Button Background and Mobile Fixes */
/* Add background color to outline buttons for visibility on all screens */
.mobile-btn-bg.btn-outline-secondary {
    background-color: #6c757d !important;
    color: #ffffff !important;
    border-color: #6c757d !important;
}

.mobile-btn-bg.btn-outline-secondary:hover {
    background-color: #5a6268 !important;
    border-color: #5a6268 !important;
    color: #ffffff !important;
}

/* Mobile-specific fixes */
@media (max-width: 575.98px) {
    /* Add bottom margin to replacement order badge on mobile */
    .replacement-order-badge {
        margin-bottom: 1rem !important;
    }
}
