/* common.css */
:root {
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --primary-color: #2563eb;
    --secondary-color: #0f172a;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
    --text-muted: #64748b;
    --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);
    --trending-bg: #0f172a;
    --sale-blue: #1e40af;
    --sale-light-blue: #60a5fa;
    --heart-color: #ef4444;
}

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--light-bg);
    color: var(--secondary-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

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

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Hide scrollbars but keep functionality */
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

/* Buttons */
.btn {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    border-radius: 0.75rem;
    padding: 0.75rem 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
    color: white;
    box-shadow: var(--shadow-md);
    font-size: 15px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

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

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

.btn-light {
    background: white;
    color: var(--secondary-color);
    box-shadow: var(--shadow-md);
}

.btn-light:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Header Styles */
.top-banner {
    background: linear-gradient(90deg, var(--secondary-color) 0%, #1e293b 100%);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.75rem;
    font-weight: 900;
    text-decoration: none;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    box-shadow: var(--shadow-md);
}

.logo img {
    width: 232px;
}

.search-box {
    position: relative;
    max-width: 500px;
    flex: 1;
}

.search-input {
    font-family: 'Plus Jakarta Sans', sans-serif;
    width: 100%;
    padding: 0.875rem 3.5rem 0.875rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 2rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background: var(--light-bg);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    background: white;
}

.search-icon {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--light-bg);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.action-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.action-btn.wishlist-btn.active {
    background: var(--heart-color);
    color: white;
}

.cart-count,
.wishlist-count {
    font-family: 'Plus Jakarta Sans', sans-serif;
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 700;
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
}

/* Navigation with Multi-Level Dropdown */
.main-nav {
    border-top: 1px solid var(--border-color);
    background: white;
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nav-link {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 1.5rem;
    position: relative;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Multi-Level Dropdown Styles */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    cursor: pointer;
}

.nav-dropdown-toggle::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 250px;
    box-shadow: var(--shadow-xl);
    border-radius: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid var(--border-color);
    margin-top: 0.5rem;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-category {
    padding: 0;
    list-style: none;
}

.dropdown-category-item {
    position: relative;
}

.dropdown-category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.dropdown-category-link:hover {
    background: var(--light-bg);
    color: var(--primary-color);
    padding-left: 1.5rem;
}

.dropdown-category-link i {
    font-size: 0.625rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.dropdown-category-item:hover .dropdown-category-link i {
    transform: translateX(3px);
    color: var(--primary-color);
}

.dropdown-submenu {
    position: absolute;
    top: 0;
    left: 100%;
    background: white;
    min-width: 200px;
    box-shadow: var(--shadow-xl);
    border-radius: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    border: 1px solid var(--border-color);
    margin-left: 0.5rem;
}

.dropdown-category-item:hover .dropdown-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.dropdown-submenu-list {
    padding: 0;
    list-style: none;
}

.dropdown-submenu-item {
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    position: relative;
}

.dropdown-submenu-item:last-child {
    border-bottom: none;
}

.dropdown-submenu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 1.25rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.813rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-submenu-link:hover {
    background: var(--light-bg);
    color: var(--primary-color);
    padding-left: 1.5rem;
}

.dropdown-submenu-link i {
    font-size: 0.625rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.dropdown-submenu-item:hover .dropdown-submenu-link i {
    transform: translateX(3px);
    color: var(--primary-color);
}

/* Third Level Submenu */
.dropdown-sub-submenu {
    position: absolute;
    top: 0;
    left: 100%;
    background: white;
    min-width: 180px;
    box-shadow: var(--shadow-xl);
    border-radius: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    z-index: 1002;
    border: 1px solid var(--border-color);
    margin-left: 0.5rem;
}

.dropdown-submenu-item:hover .dropdown-sub-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.dropdown-sub-submenu-list {
    padding: 0;
    list-style: none;
}

.dropdown-sub-submenu-item {
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.dropdown-sub-submenu-item:last-child {
    border-bottom: none;
}

.dropdown-sub-submenu-link {
    display: block;
    padding: 0.5rem 1.25rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-sub-submenu-link:hover {
    background: var(--light-bg);
    color: var(--primary-color);
    padding-left: 1.5rem;
}

.dropdown-badge {
    display: inline-block;
    padding: 0.125rem 0.375rem;
    background: var(--accent-color);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: 0.25rem;
    text-transform: uppercase;
    margin-left: 0.5rem;
}

.homepage-badge {
    display: inline-block;
    padding: 0.125rem 0.375rem;
    background: var(--primary-color);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: 0.25rem;
    text-transform: uppercase;
    margin-left: 0.5rem;
}

.dropdown-menu,
.dropdown-submenu,
.dropdown-sub-submenu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.dropdown-menu.show,
.dropdown-submenu.show,
.dropdown-sub-submenu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* Product Cards */
.product-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.product-image-container {
    position: relative;
    padding-top: 125%;
    overflow: hidden;
    background: var(--light-bg);
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-badge {
    font-family: 'Plus Jakarta Sans', sans-serif;
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.375rem 0.75rem;
    background: white;
    color: var(--secondary-color);
    border-radius: 2rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.product-wishlist-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.product-wishlist-btn:hover {
    background: var(--heart-color);
    color: white;
    transform: scale(1.1);
}

.product-wishlist-btn.active {
    background: var(--heart-color);
    color: white;
}

.product-wishlist-btn i {
    transition: transform 0.3s ease;
}

.product-wishlist-btn.active i {
    transform: scale(1.2);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.quick-add-btn {
    font-family: 'Plus Jakarta Sans', sans-serif;
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--secondary-color);
    border: none;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.product-card:hover .quick-add-btn {
    transform: translateY(0);
}

.quick-add-btn:hover {
    background: var(--primary-color);
    color: white;
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.product-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.product-price {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-top: auto;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 480px;
    height: 100vh;
    background: white;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 0.75rem;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.cart-item-quantity {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.cart-item-price {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
}

.cart-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.cart-remove:hover {
    color: #ef4444;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--light-bg);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.cart-total-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    color: var(--text-muted);
}

.cart-total-amount {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary-color);
}

/* Wishlist Sidebar */
.wishlist-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 480px;
    height: 100vh;
    background: white;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.wishlist-sidebar.open {
    right: 0;
}

.wishlist-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.wishlist-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.wishlist-item-image {
    width: 80px;
    height: 80px;
    border-radius: 0.75rem;
    overflow: hidden;
    flex-shrink: 0;
}

.wishlist-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wishlist-item-details {
    flex-grow: 1;
}

.wishlist-item-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.wishlist-item-price {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.wishlist-item-actions {
    display: flex;
    gap: 0.5rem;
}

.wishlist-add-to-cart {
    font-family: 'Plus Jakarta Sans', sans-serif;
    padding: 0.375rem 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wishlist-add-to-cart:hover {
    background: #1d4ed8;
}

.wishlist-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.wishlist-remove:hover {
    color: #ef4444;
}

.wishlist-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--light-bg);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu with Multi-Level Navigation */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 1100;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
}

.mobile-menu-close:hover {
    color: var(--secondary-color);
}

.mobile-menu-nav {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-item {
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mobile-menu-link:hover {
    background: var(--light-bg);
    color: var(--primary-color);
    padding-left: 2rem;
}

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

.mobile-menu-item.expanded>.mobile-menu-link i {
    transform: rotate(90deg);
}

/* Mobile Submenu */
.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--light-bg);
}

.mobile-submenu.open {
    max-height: 1000px;
}

.mobile-submenu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-submenu-item {
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.mobile-submenu-item:last-child {
    border-bottom: none;
}

.mobile-submenu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem 0.75rem 2rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-submenu-link:hover {
    background: white;
    color: var(--primary-color);
    padding-left: 2.5rem;
}

.mobile-submenu-link i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.mobile-submenu-item.expanded>.mobile-submenu-link i {
    transform: rotate(90deg);
}

/* Mobile Sub-Submenu */
.mobile-sub-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
}

.mobile-sub-submenu.open {
    max-height: 1000px;
}

.mobile-sub-submenu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-sub-submenu-item {
    border-bottom: 1px solid rgba(226, 232, 240, 0.3);
}

.mobile-sub-submenu-item:last-child {
    border-bottom: none;
}

.mobile-sub-submenu-link {
    display: block;
    padding: 0.5rem 1.5rem 0.5rem 3rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-sub-submenu-link:hover {
    background: var(--light-bg);
    color: var(--primary-color);
    padding-left: 3.5rem;
}

.mobile-badge {
    display: inline-block;
    padding: 0.125rem 0.375rem;
    background: var(--accent-color);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: 0.25rem;
    text-transform: uppercase;
    margin-left: 0.5rem;
}

/* Mobile Footer */
.mobile-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    background: var(--light-bg);
}

.mobile-footer-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0.5rem;
}

.mobile-footer-btn:hover {
    color: var(--primary-color);
}

.mobile-footer-btn i {
    font-size: 1.25rem;
}

.mobile-footer-btn span {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.625rem;
    font-weight: 600;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
    color: white;
    padding: 3rem;
    margin-bottom: 2rem;
    border-radius: 1rem
}

.page-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 0px;
}
@media (max-width: 575.98px) {
    .page-header {
        padding: 2rem 0;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
}


/* Footer */
footer {
    background: var(--secondary-color);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 1rem;
}

.footer-logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-logo img {
    width: 232px;
}

.footer-description {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
}

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

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.footer-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    color: white;
}

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

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

.footer-links a {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.newsletter-form {
    position: relative;
    margin-bottom: 1rem;
}

.newsletter-input {
    font-family: 'Plus Jakarta Sans', sans-serif;
    width: 100%;
    padding: 0.875rem 3.5rem 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2rem;
    color: white;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
}

.newsletter-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: #1d4ed8;
    transform: translateY(-50%) scale(1.1);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: white;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--secondary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 2rem;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-icon {
    width: 24px;
    height: 24px;
    background: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-hover {
    transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: var(--shadow-xl);
}

/* Responsive Design */
@media (max-width: 1399.98px) {
    .container-fluid {
        max-width: 1320px;
    }
}

@media (max-width: 1199.98px) {
    .filters-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
}

@media (max-width: 991.98px) {
    .search-box {
        display: none;
    }

    .main-nav {
        display: none;
    }

    .page-title {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .page-title {
        font-size: 1.75rem;
    }

    .sort-bar {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 575.98px) {
    .logo {
        font-size: 1.5rem;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .action-btn {
        width: 40px;
        height: 40px;
    }

    .page-title {
        font-size: 1.5rem;
    }
}

@media only screen and (max-device-width: 570px) {
    .logo img {
        width: 140px;
    }

    .header-actions {
        gap: 0.1rem;
    }
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    margin-top: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

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

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s;
}

.suggestion-item:hover {
    background-color: var(--light-bg);
}

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

.suggestion-icon {
    width: 40px;
    height: 40px;
    background: var(--light-bg);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--primary-color);
}

.suggestion-details {
    flex-grow: 1;
}

.suggestion-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.suggestion-category {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.suggestion-price {
    font-weight: 700;
    color: var(--primary-color);
}