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

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background-color: #f1f3f6;
    color: #212121;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
    padding-top: 0;
    margin-top: 0;
}

/* Mobitez Brand Colors */
:root {
    --mobitez-purple: #0a4409;
    /* New Primary: Dark Green */
    --mobitez-purple-dark: #052b05;
    /* Darker Green */
    --mobitez-purple-light: #1b5e20;
    /* Lighter Green */
    --mobitez-orange: #f1d316;
    /* New Secondary: Yellow/Gold */
    --mobitez-orange-dark: #fbc02d;
    /* Darker Yellow */
    --mobitez-orange-light: #fff9c4;
    /* Light Yellow */
    --mobitez-gray: #757575;
    --mobitez-gray-light: #E0E0E0;
    --mobitez-gray-dark: #424242;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--mobitez-purple) 0%, var(--mobitez-purple-dark) 100%);
    color: white;
    padding: 8px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 10000 !important;
    overflow: visible !important;
    /* Allow dropdown to overflow */
}

/* Header - White on Homepage */
body.homepage .header {
    background: white;
    color: #212121;
    box-shadow: none;
    border-bottom: 1px solid #e0e0e0;
}

body.homepage .header .logo-text,
body.homepage .header .logo-tagline {
    color: var(--mobitez-purple-dark);
}

body.homepage .header .header-item a {
    color: #212121;
}

body.homepage .header .header-item a:hover {
    opacity: 0.8;
    color: var(--mobitez-purple);
}

body.homepage .header .search-input {
    border: 1px solid #e0e0e0;
}

body.homepage .header .search-btn {
    background: linear-gradient(135deg, var(--mobitez-orange) 0%, var(--mobitez-orange-dark) 100%);
    color: white;
}

body.homepage .header .cart {
    color: #212121;
}

body.homepage .header .cart-count {
    background: linear-gradient(135deg, var(--mobitez-orange) 0%, var(--mobitez-orange-dark) 100%);
}

.header-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    gap: 12px;
    overflow: visible !important;
    /* Allow dropdown to overflow - changed from overflow-x: hidden */
    box-sizing: border-box;
    position: relative;
    z-index: 10001;
}

.logo {
    min-width: 100px;
    flex-shrink: 0;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-image {
    height: 50px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    transition: transform 0.3s;
}

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

.search-container {
    flex: 1;
    max-width: 600px;
    min-width: 200px;
    display: flex;
    position: relative;
    margin: 0;
    box-sizing: border-box;
    overflow: visible;
}

.search-input {
    width: 100%;
    padding: 10px 16px;
    border: none;
    border-radius: 2px 0 0 2px;
    font-size: 14px;
    outline: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-btn {
    background: linear-gradient(135deg, var(--mobitez-orange) 0%, var(--mobitez-orange-dark) 100%);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 0 2px 2px 0;
    color: white;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-btn:hover {
    background: linear-gradient(135deg, var(--mobitez-orange-dark) 0%, var(--mobitez-orange) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Search Suggestions Dropdown */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10003;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 2px;
}

.search-suggestions-content {
    padding: 8px 0;
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.search-suggestion-item:hover {
    background-color: #f5f5f5;
}

.search-suggestion-item.view-all {
    background-color: #f8f9fa;
    font-weight: 500;
    border-top: 2px solid #e0e0e0;
    border-bottom: none;
}

.suggestion-icon {
    color: #878787;
    margin-right: 12px;
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.suggestion-text {
    flex: 1;
    font-size: 14px;
    color: #212121;
    font-family: 'Roboto', sans-serif;
}

.suggestion-loading,
.suggestion-empty {
    padding: 16px;
    text-align: center;
    color: #878787;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: 0;
    position: relative;
    z-index: 10002;
}

.header-item a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.2s;
}

.header-item a:hover {
    opacity: 0.8;
}

.login-dropdown-wrapper {
    position: relative;
    z-index: 100000 !important;
}

.login-btn {
    padding: 8px 24px;
    background-color: white;
    color: #212121 !important;
    border-radius: 2px;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.login-btn,
.login-btn * {
    color: #212121 !important;
}

.login-btn i {
    font-size: 12px;
    transition: transform 0.3s;
    color: #212121 !important;
}

.login-dropdown-wrapper:hover .login-btn i,
.login-dropdown-wrapper:has(.login-dropdown.show) .login-btn i {
    transform: rotate(180deg);
}

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

.login-btn:hover {
    background-color: var(--mobitez-orange);
    color: #212121 !important;
    transform: translateY(-1px);
}

.login-btn:hover,
.login-btn:hover * {
    color: #212121 !important;
}

.login-dropdown {
    position: fixed !important;
    /* Changed from absolute to fixed to escape header clipping */
    top: auto !important;
    bottom: auto !important;
    right: auto !important;
    left: auto !important;
    background: white !important;
    border-radius: 4px;
    z-index: 100001 !important;
    /* Higher than header */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    min-width: 220px;
    margin-top: 0 !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    padding: 8px 0;
}

.login-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #212121 !important;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
    border-left-color: var(--mobitez-orange);
    color: #212121 !important;
}

.dropdown-item i {
    width: 18px;
    color: #212121 !important;
    font-size: 16px;
}

.dropdown-item:hover i {
    color: var(--mobitez-orange);
}

.dropdown-divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 8px 0;
}

/* More Dropdown Styles */
.more-dropdown-wrapper {
    position: relative;
}

.more-options {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #212121;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.more-options:hover {
    background-color: var(--mobitez-orange);
    color: #212121;
}

.more-options i {
    font-size: 12px;
    transition: transform 0.3s;
    color: #212121;
}

.more-dropdown-wrapper:hover .more-options i,
.more-dropdown-wrapper:has(.more-dropdown.show) .more-options i {
    transform: rotate(180deg);
}

.more-dropdown {
    position: fixed !important;
    top: auto !important;
    bottom: auto !important;
    right: auto !important;
    left: auto !important;
    background: white !important;
    border-radius: 4px;
    z-index: 100001 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    min-width: 220px;
    margin-top: 0 !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    padding: 8px 0;
}

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

.more-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: white;
    transition: opacity 0.2s ease;
    padding: 4px 8px;
}

.cart:hover {
    opacity: 0.9;
}

.cart i {
    position: relative;
    display: inline-block;
    font-size: 20px;
    line-height: 1;
}

.cart-count {
    position: absolute;
    top: -8px;
    left: 16px;
    /* Position to the right of the cart icon, avoiding overlap with text */
    background: #ff6161;
    color: white;
    border-radius: 10px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 0 6px;
    box-shadow: 0 2px 8px rgba(255, 97, 97, 0.5), 0 0 0 2px white;
    text-align: center;
    z-index: 100;
    flex-shrink: 0;
    animation: cartPulse 0.3s ease-out;
    font-family: 'Roboto', sans-serif;
    white-space: nowrap;
}

/* Animation for cart count when it changes */
@keyframes cartPulse {
    0% {
        transform: scale(0.8);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* For counts greater than 9, make it wider */
.cart-count:has-text("10"),
.cart-count:has-text("99"),
.cart-count:has-text("100") {
    min-width: 24px;
    padding: 0 5px;
}

/* Hide cart count when it's 0 or empty */
.cart-count:empty {
    display: none !important;
}

.cart-count[data-count="0"] {
    display: none !important;
}

/* Ensure cart icon has relative positioning for badge */
.cart {
    position: relative;
}

.cart i {
    position: relative;
}

.cart-text {
    white-space: nowrap;
    margin-left: 4px;
}

/* Mobile cart badge positioning */
@media (max-width: 768px) {
    .cart {
        padding: 6px;
    }

    .cart-count {
        top: -4px;
        left: 14px;
        /* Position to the right of cart icon on mobile, avoiding text */
        min-width: 18px;
        height: 18px;
        font-size: 10px;
        padding: 0 5px;
        box-shadow: 0 2px 6px rgba(255, 97, 97, 0.5), 0 0 0 1.5px white;
    }
}

/* Navigation Menu - White on Homepage */
.nav-menu {
    background-color: white;
    border-bottom: 1px solid var(--mobitez-gray-light);
    padding: 0;
    position: fixed !important;
    top: 56px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Navigation Menu - White background for all pages (Flipkart style) */
body:not(.homepage) .nav-menu,
.nav-menu:not(.homepage-hidden) {
    background-color: white;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: none;
    height: 36px;
    min-height: 36px;
    max-height: 36px;
    display: flex;
    align-items: center;
}

/* Flipkart-style navigation for non-homepage pages */
body:not(.homepage) .nav-menu .nav-link,
.nav-menu:not(.homepage-hidden) .nav-link {
    color: #212121;
    gap: 6px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    border-bottom: none;
    background-color: transparent;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    line-height: 1.2;
}

body:not(.homepage) .nav-menu .nav-link:hover,
body:not(.homepage) .nav-menu .nav-link.active,
.nav-menu:not(.homepage-hidden) .nav-link:hover,
.nav-menu:not(.homepage-hidden) .nav-link.active {
    color: #2874f0;
    border-bottom: none;
    background-color: transparent;
}

/* "All" button removed - no longer needed */

/* Hide icons on non-homepage pages */
body:not(.homepage) .nav-menu .nav-link i:not(.fa-chevron-down),
body:not(.homepage) .nav-menu .nav-link .nav-icon-image,
body:not(.homepage) .nav-menu .nav-link .nav-icon-fallback,
.nav-menu:not(.homepage-hidden) .nav-link i:not(.fa-chevron-down),
.nav-menu:not(.homepage-hidden) .nav-link .nav-icon-image,
.nav-menu:not(.homepage-hidden) .nav-link .nav-icon-fallback {
    display: none !important;
}

/* Style chevron icons */
body:not(.homepage) .nav-menu .nav-link .fa-chevron-down,
.nav-menu:not(.homepage-hidden) .nav-link .fa-chevron-down {
    display: inline-block !important;
    font-size: 10px;
    color: #878787;
    margin-left: 4px;
    transition: transform 0.2s;
}

body:not(.homepage) .nav-menu .nav-link:hover .fa-chevron-down,
body:not(.homepage) .nav-menu .nav-link.active .fa-chevron-down,
.nav-menu:not(.homepage-hidden) .nav-link:hover .fa-chevron-down,
.nav-menu:not(.homepage-hidden) .nav-link.active .fa-chevron-down {
    color: #2874f0;
}

.nav-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 40px;
    overflow: visible;
    /* Changed from overflow-x: auto to allow dropdowns */
    scrollbar-width: none;
    -ms-overflow-style: none;
    box-sizing: border-box;
    border-bottom: 1px solid #e0e0e0;
}

/* Flipkart-style container for non-homepage */
body:not(.homepage) .nav-container,
.nav-container:not(.homepage-nav) {
    padding: 0 120px;
    justify-content: flex-start;
    gap: 0;
    height: 36px;
    min-height: 36px;
}

.nav-container::-webkit-scrollbar {
    display: none;
}

.nav-item {
    white-space: nowrap;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    color: #212121;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
    position: relative;
}

/* Flipkart-style link for non-homepage */
body:not(.homepage) .nav-link,
.nav-link:not(.homepage-link) {
    padding: 8px 14px;
    gap: 6px;
    border-bottom: none;
    white-space: nowrap;
    line-height: 1.2;
}

.nav-link:hover,
.nav-link.active {
    color: var(--mobitez-purple);
    border-bottom-color: var(--mobitez-orange);
    background-color: rgba(74, 20, 140, 0.05);
}

.nav-link i,
.nav-icon-fallback {
    font-size: 18px;
    width: 20px;
    text-align: center;
    color: var(--mobitez-purple);
}

.nav-icon-image {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 2px;
}

.nav-link:hover i,
.nav-link.active i,
.nav-link:hover .nav-icon-image,
.nav-link.active .nav-icon-image {
    color: var(--mobitez-orange);
    transform: scale(1.1);
}

/* Main Content */
.main-content {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    padding-top: 64px;
    /* Account for fixed header */
    overflow-x: hidden;
    box-sizing: border-box;
    position: relative;
}

/* Main Content - Less Padding on Homepage */
body.homepage .main-content {
    padding: 0;
    padding-top: 62px;
    /* Precise alignment */
    margin: 0 auto;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    background-color: #f1f3f6;
    /* Ensure background matches gaps */
}

/* Banner Section - Consistent Height */
/* Global Section Reset for Homepage */
body.homepage section,
body.homepage section .container {
    padding: 0 !important;
}

body.homepage section {
    margin: 0 !important;
}

/* Banner Section - Flush with everything */
.banner-section {
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 10px solid #f1f3f6;
    /* Use border for gap if needed, or removing it if user wants 0 */
}

/* Actually user wanted NO gaps around banner. */
.banner-section {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.banner-container {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: 250px !important;
    /* Fixed height for consistency */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.banner-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.banner-slides {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.banner-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

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

.banner-loading {
    padding: 40px;
    text-align: center;
    color: var(--mobitez-gray);
}

/* Container */
.container {
    background-color: white;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
    /* CRITICAL: Allow sticky to work */
}

/* CRITICAL FIX: Override .container overflow on product page with maximum specificity */
html body main.product-main>.container,
html body .product-main>.container,
body main.product-main>.container,
body .product-main>.container,
main.product-main>.container,
.product-main>.container,
html body main.product-main .container,
html body .product-main .container,
body main.product-main .container,
body .product-main .container,
main.product-main .container,
.product-main .container,
.product-main .product-container .container,
.product-container .container {
    overflow-y: visible !important;
    /* SET FIRST - prevents browser from computing "hidden auto" */
    overflow-x: hidden !important;
    overflow: visible !important;
    /* Set AFTER individual properties */
}

/* Container - Less Padding on Homepage */
/* Container - Less Padding on Homepage */
/* Container - Less Padding on Homepage */
body.homepage .container {
    padding: 0 !important;
    /* User requested 0 padding in sections, effectively removes container padding */
    margin-top: 0 !important;
    margin-bottom: 5px !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .16) !important;
    overflow: hidden;
    /* Ensure content doesn't overflow */
}

/* Restore padding for inner content so text doesn't hit edges */
body.homepage .container>h2.section-title,
body.homepage .container>.products-grid,
body.homepage .container>.carousel-container {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

body.homepage .section-title {
    margin-bottom: 0 !important;
    font-size: 20px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid rgba(0, 0, 0, .1) !important;
}

/* Special Case: Container immediately following banner should have 0 margin-top */
.banner-section+div>.container,
.banner-section+section>.container {
    margin-top: 0 !important;
}

/* Remove margin from last child to avoid double spacing at bottom */
body.homepage .main-content>section:last-child .container {
    margin-bottom: 5px !important;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--mobitez-purple-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Removed decorative line */
/* .section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, var(--mobitez-orange) 0%, var(--mobitez-purple) 100%);
    border-radius: 2px;
} */

body.homepage .section-title {
    margin-bottom: 0 !important;
    font-size: 20px !important;
    padding: 0 0 10px 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, .1) !important;
}

/* Products Grid - 5 Products per Row */
.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-top: 20px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

body.homepage .products-grid {
    margin-top: 10px !important;
    gap: 10px !important;
}

.products-grid>* {
    min-width: 0;
    box-sizing: border-box;
}

/* Product Card - Consistent Image Height */
.product-card {
    background-color: white;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    min-width: 0;
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(74, 20, 140, 0.15);
    transform: translateY(-4px);
    border-color: var(--mobitez-orange);
}

/* Homepage Product Card - Style like Recently Viewed (No Buttons) */
.homepage-product-card {
    display: flex;
    flex-direction: column;
    min-height: 320px;
}

.homepage-product-card .product-image-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 4px;
    overflow: hidden;
}

.homepage-product-card .product-image-wrapper .product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    height: auto;
    margin-bottom: 0;
    padding: 8px;
    background: transparent;
    border-radius: 0;
}

.homepage-product-card .product-discount-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff6161;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

.homepage-product-card .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.homepage-product-card .product-title {
    font-size: 14px;
    font-weight: 500;
    color: #212121;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

.homepage-product-card .product-rating {
    margin-bottom: 8px;
}

.homepage-product-card .product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.homepage-product-card .price-current {
    font-size: 18px;
    font-weight: 600;
    color: #212121;
}

.homepage-product-card .price-original {
    font-size: 14px;
    color: #878787;
    text-decoration: line-through;
}

.homepage-product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #2874f0;
}

.homepage-product-card:hover .product-image-wrapper .product-image {
    transform: scale(1.05);
}

/* Hide product actions on homepage */
.homepage-product-card .product-actions {
    display: none !important;
}

/* Product Image - Fixed Height for Consistency */
.product-image {
    width: 100%;
    max-width: 100%;
    height: 200px;
    /* Fixed height matching banner aesthetic */
    object-fit: contain;
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
    border-radius: 6px;
    margin-bottom: 12px;
    padding: 8px;
    transition: transform 0.3s;
    box-sizing: border-box;
    display: block;
}

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

.product-title {
    font-size: 14px;
    font-weight: 500;
    color: #212121;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
    line-height: 1.4;
}

.product-rating {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 5px !important;
    margin-bottom: 8px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
}

.product-rating .rating-stars,
.product-rating .rating-count {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

.rating-stars {
    color: var(--mobitez-orange);
}

.rating-count {
    color: var(--mobitez-gray);
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.price-current {
    font-size: 20px;
    font-weight: 700;
    color: var(--mobitez-purple-dark);
}

.price-original {
    font-size: 14px;
    color: var(--mobitez-gray);
    text-decoration: line-through;
}

.discount-badge {
    font-size: 12px;
    color: #388e3c;
    font-weight: 600;
    background-color: #e8f5e9;
    padding: 2px 6px;
    border-radius: 3px;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    flex-wrap: nowrap;
}

.btn-add-cart {
    flex: 1;
    min-width: 120px;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--mobitez-orange) 0%, var(--mobitez-orange-dark) 100%);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(255, 167, 38, 0.3);
    white-space: nowrap;
}

.btn-add-cart:hover {
    background: linear-gradient(135deg, var(--mobitez-orange-dark) 0%, var(--mobitez-orange) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 167, 38, 0.4);
}

.btn-quick-view {
    min-width: 100px;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--mobitez-purple) 0%, var(--mobitez-purple-dark) 100%);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(74, 20, 140, 0.3);
    white-space: nowrap;
}

.btn-quick-view:hover {
    background: linear-gradient(135deg, var(--mobitez-purple-dark) 0%, var(--mobitez-purple) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(74, 20, 140, 0.4);
}

/* Loading Spinner */
.loading-spinner,
.loading-more {
    text-align: center;
    padding: 40px;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--mobitez-purple);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.end-message {
    text-align: center;
    padding: 40px;
    color: var(--mobitez-gray);
    font-size: 16px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, var(--mobitez-purple-dark) 100%);
    color: #878787;
    margin-top: 50px;
    padding: 40px 0 20px;
}

.footer-container {
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding: 0 40px;
}

.footer-section h3 {
    color: var(--mobitez-orange);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-section ul li a:hover {
    color: var(--mobitez-orange);
}

.footer-bottom {
    width: 100%;
    margin: 30px auto 0;
    padding: 20px 40px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #878787;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        padding: 0 15px;
        gap: 10px;
    }

    .search-container {
        order: 3;
        width: 100%;
        max-width: 100%;
        min-width: auto;
        margin: 10px 0 0 0;
    }

    .header-container {
        max-width: 100%;
    }

    .header-right {
        gap: 10px;
    }

    .header-item a {
        font-size: 13px;
    }

    .cart-text {
        display: none;
    }

    .products-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 12px;
    }

    .product-image {
        height: 180px;
    }

    .banner-container {
        height: 200px;
    }

    .nav-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 10px !important;
    }

    .main-content {
        padding: 0 15px;
    }

    body.homepage .main-content {
        padding: 0 10px;
    }

    /* Ensure nav menu is scrollable on mobile */
    .nav-menu {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-image {
        height: 160px;
    }

    .product-title {
        font-size: 12px;
    }

    .price-current {
        font-size: 18px;
    }

    .banner-container {
        height: 180px;
    }

    /* Homepage Product Card Mobile Styles */
    .homepage-product-card {
        min-height: 280px;
        padding: 12px;
    }

    .homepage-product-card .product-image-wrapper {
        height: 140px;
    }

    .homepage-product-card .product-title {
        font-size: 13px;
        min-height: 36px;
    }

    .homepage-product-card .price-current {
        font-size: 16px;
    }

    /* Product card buttons - Side by side on mobile with reduced height */
    .product-actions {
        flex-direction: row !important;
        gap: 8px !important;
    }

    .btn-add-cart,
    .btn-quick-view {
        flex: 1 !important;
        width: auto !important;
        min-width: auto !important;
        padding: 6px 12px !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        height: auto !important;
        min-height: 32px !important;
        line-height: 1.2 !important;
    }

    .logo-image {
        height: 40px;
    }
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 40px;
    color: #ff6161;
    background-color: #fff5f5;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #ffcdd2;
}

.error-message p {
    margin-bottom: 10px;
}

.error-message button {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--mobitez-purple) 0%, var(--mobitez-purple-dark) 100%);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.error-message button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(74, 20, 140, 0.3);
}

/* Banner Carousel Enhancements */
/* Dots removed - no longer displayed */
.banner-dots {
    display: none !important;
}

.banner-dot {
    display: none !important;
}

/* Out of Stock */
.out-of-stock {
    color: #f44336;
    font-size: 12px;
    font-weight: 600;
    margin: 5px 0;
    text-align: center;
    background-color: #ffebee;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.product-card .btn-add-cart:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.product-card .btn-add-cart:disabled:hover {
    transform: none;
}

/* Additional Professional Touches */
/* Removed decorative lines */
/* .container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--mobitez-orange) 0%, var(--mobitez-purple) 100%);
    border-radius: 8px 8px 0 0;
} */

/* .container {
    position: relative;
} */

/* Smooth Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.5s ease-out;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--mobitez-purple) 0%, var(--mobitez-orange) 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--mobitez-orange) 0%, var(--mobitez-purple) 100%);
}