/* Alibaba.com Clone - Main Stylesheet */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    /* user-select: none; - DISABLED - Security feature removed */
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

/* Security Features - DISABLED - Text selection now enabled */
/* * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
} */

/* Enable text selection globally - except buttons and images */
* {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* Buttons should not be selectable */
button, .btn, input[type="button"], input[type="submit"] {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* Images should not be selectable but should be clickable */
img {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    /* pointer-events: none; - Removed so images are clickable */
}

/* Force enable text selection on body and all text elements */
body, p, h1, h2, h3, h4, h5, h6, span, div, a, li, td, th {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* Image Slider Styles */
.image-slider {
    position: relative;
    height: 300px;
    overflow: hidden;
    margin-bottom: 0;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
}

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

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 40px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    max-width: 600px;
    width: 90%;
    z-index: 5;
    pointer-events: auto;
}

.slide-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content p {
    font-size: 1.25rem;
    margin-bottom: 24px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.slide-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ff6600, #ff8833);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
    cursor: pointer;
    z-index: 15;
    position: relative;
    pointer-events: auto;
    border: none;
    outline: none;
    min-height: 50px;
    line-height: 1;
    vertical-align: middle;
}

.slide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
    background: linear-gradient(135deg, #e55a00, #ff6600);
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 20;
}

.nav-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.nav-btn i {
    font-size: 18px;
    color: #333;
}

.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Header Styles */
.header {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-top {
    background: #f5f5f5;
    padding: 8px 0;
    font-size: 12px;
    color: #666;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.header-top-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-top-right a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.header-top-right a:hover {
    color: #ff6b35;
}

.desktop-auth-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.desktop-auth-link i {
    font-size: 12px;
}

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

.header-main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ff6600;
    font-size: 28px;
    font-weight: bold;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: #ff6600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: 10px;
}

.search-container {
    flex: 1;
    max-width: 600px;
    margin: 0 30px;
    position: relative;
}

.search-form {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #ff6600;
    border-radius: 25px;
    overflow: hidden;
    padding: 0 15px;
}

.search-icon {
    color: #ff6600;
    font-size: 16px;
    margin-right: 10px;
}

.search-input {
    flex: 1;
    padding: 12px 0;
    border: none;
    outline: none;
    font-size: 14px;
}

.search-input::placeholder {
    color: #999;
}

.search-button {
    background: #ff6600;
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.3s;
}

.search-button:hover {
    background: #e55a00;
}

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

.header-compare {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    position: relative;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s;
}

.header-compare:hover {
    background: #f5f5f5;
    color: #7378D9;
}

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

.header-compare .compare-count {
    position: absolute;
    top: 0;
    right: 0;
    background: #7378D9;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.header-cart {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    position: relative;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s;
}

.header-cart:hover {
    background: #f5f5f5;
    color: #ff6600;
}

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

.header-cart .cart-count {
    position: absolute;
    top: 2px;
    right: 8px;
    background: #ff6600;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Currency Switcher */
.currency-switcher {
    position: relative;
}

.currency-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.3s;
}

.currency-btn:hover {
    background: #f5f5f5;
    border-color: #7378D9;
}

.currency-btn i {
    font-size: 14px;
}

.currency-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 200px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}

.currency-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    transition: background 0.3s;
    border-bottom: 1px solid #f0f0f0;
}

.currency-option:last-child {
    border-bottom: none;
}

.currency-option:hover {
    background: #f5f5f5;
}

.currency-option.active {
    background: #e7f3ff;
    color: #7378D9;
    font-weight: 500;
}

.currency-option .currency-code {
    font-weight: 600;
    width: 50px;
}

.currency-option .currency-symbol {
    width: 30px;
    text-align: center;
}

.currency-option .currency-name {
    flex: 1;
    font-size: 13px;
    color: #666;
}

.currency-option.active .currency-name {
    color: #7378D9;
}

.currency-option i.fa-check {
    color: #7378D9;
    margin-left: auto;
}

.header-cart .cart-text {
    font-weight: 500;
}

.header-account {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s;
    font-weight: 500;
}

.header-account:hover {
    background: #ff6600;
    color: white;
    border-color: #ff6600;
}

.header-account i {
    font-size: 16px;
}

.delivery-info {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #666;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.header-icon:hover {
    color: #ff6600;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-signin {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-signin:hover {
    color: #ff6600;
}

.btn-register {
    background: #ff6600;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-register:hover {
    background: #e55a00;
}

/* Navigation Styles */
.navbar {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 10px 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-link:hover {
    color: #ff6600;
    background: #fff5f0;
}

.nav-link i {
    font-size: 16px;
}

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

.nav-item {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.nav-item:hover {
    color: #ff6600;
}

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

/* Container */
.container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 20px !important;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 20px 0;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

/* Breadcrumb */
.breadcrumb {
    background: #f8f8f8;
    padding: 10px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #ff6600;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.product-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.product-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.image-search-icon {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.product-info {
    padding: 15px;
}

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

.product-price {
    font-size: 16px;
    font-weight: bold;
    color: #ff6600;
    margin-bottom: 10px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 2px;
}

.star {
    color: #ffc107;
    font-size: 12px;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    height: fit-content;
}

.filter-section {
    margin-bottom: 20px;
}

.filter-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    margin-bottom: 8px;
}

.filter-checkbox {
    width: 16px;
    height: 16px;
    accent-color: #ff6600;
}

.filter-description {
    font-size: 12px;
    color: #999;
    margin-left: 24px;
    margin-top: 4px;
}

/* Layout */
.content-layout {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.content-main {
    flex: 1;
}

/* Sort and View Options */
.sort-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 8px;
}

.sort-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
}

.view-toggle {
    display: flex;
    gap: 5px;
}

.view-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.view-btn.active {
    background: #ff6600;
    color: white;
    border-color: #ff6600;
}

/* Promotional Banner */
.promo-banner {
    background: #ff6600;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.promo-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.promo-right {
    font-size: 14px;
    cursor: pointer;
}

/* Footer */
.footer {
    background: #333;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #fff;
}

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

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

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

.footer-section ul li a:hover {
    color: #ff6600;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: #999;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #ff6600;
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.form-checkbox {
    margin-right: 8px;
    accent-color: #ff6600;
}

.form-radio {
    margin-right: 8px;
    accent-color: #ff6600;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    user-select: none;
}

.btn-primary {
    background: #ff6600;
    color: white;
}

.btn-primary:hover {
    background: #e55a00;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-outline {
    background: transparent;
    border: 1px solid #ff6600;
    color: #ff6600;
}

.btn-outline:hover {
    background: #ff6600;
    color: white;
}

.btn-large {
    padding: 15px 30px;
    font-size: 16px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 12px;
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border-left: 4px solid;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-color: #28a745;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-color: #dc3545;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-color: #ffc107;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #17a2b8;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
}

.modal-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.modal-close:hover {
    color: #333;
}

/* Mobile Header - Hidden by default on desktop */
.flipkart-mobile-header {
    display: none !important;
    visibility: hidden !important;
}

/* Mobile Navigation Menu - Hidden by default on desktop */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    max-width: 350px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 177, 84, 0.05));
    backdrop-filter: blur(20px);
    z-index: 10000;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    display: none !important;
    visibility: hidden !important;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #7378D9, #EF93F5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 18px;
    font-weight: 700;
}

.mobile-nav-logo .logo-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #58CC7E, #DFED7B);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #24145C;
    font-weight: 900;
    font-size: 18px;
}

.mobile-nav-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.mobile-nav-content {
    padding: 20px;
}

.mobile-search {
    margin-bottom: 30px;
}

.mobile-search-form {
    display: flex;
    gap: 10px;
    background: white;
    border-radius: 25px;
    padding: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mobile-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 15px;
    border-radius: 20px;
    font-size: 14px;
    background: transparent;
}

.mobile-search-button {
    background: linear-gradient(135deg, #EF93F5, #7378D9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-search-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(239, 147, 245, 0.4);
}

.mobile-alibaba-nav {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.mobile-nav-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #24145C;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #F7B154;
    padding-bottom: 10px;
}

.mobile-nav-section {
    margin-bottom: 20px;
}

.mobile-nav-section:last-child {
    margin-bottom: 0;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mobile-nav-item:hover {
    background: linear-gradient(135deg, #F7B154, #EF93F5);
    color: white;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(247, 177, 84, 0.3);
}

.mobile-nav-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.mobile-categories {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.mobile-categories-title {
    font-size: 18px;
    font-weight: 700;
    color: #24145C;
    margin-bottom: 20px;
    text-align: center;
}

.mobile-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.mobile-category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mobile-category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(247, 177, 84, 0.2);
    background: linear-gradient(135deg, #F7B154, #EF93F5);
    color: white;
}

.mobile-category-image {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-category-item span {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.mobile-nav-auth {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.mobile-login, .mobile-profile {
    background: linear-gradient(135deg, #58CC7E, #DFED7B);
    color: #24145C;
}

.mobile-register {
    background: linear-gradient(135deg, #EF93F5, #7378D9);
    color: white;
}

.mobile-logout {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.mobile-auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Desktop Header - Always visible on desktop */
.header {
    display: block !important;
    visibility: visible !important;
}

/* Ensure desktop header elements are visible on desktop */
.header-top,
.header-main {
    display: block !important;
    visibility: visible !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Simple mobile fix */
    html, body {
        overflow-x: hidden;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0 15px;
        box-sizing: border-box;
    }
    
    /* Hide desktop header on mobile */
    .header {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Show mobile header on mobile */
    .flipkart-mobile-header {
        display: flex !important;
        visibility: visible !important;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        background: linear-gradient(135deg, #F7B154, #EF93F5, #7378D9);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100vw !important;
        max-width: 100vw !important;
        z-index: 9999;
        box-sizing: border-box !important;
    }
    
    /* Add padding to body to account for fixed mobile header */
    body {
        padding-top: 60px !important;
    }
    
    /* Mobile Header Styling */
    .flipkart-menu-btn {
        background: none;
        border: none;
        color: white;
        font-size: 24px;
        cursor: pointer;
        padding: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        border-radius: 4px;
    }

    .flipkart-menu-btn:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    .flipkart-menu-btn i {
        font-size: 20px;
    }

    .flipkart-logo {
        display: flex;
        align-items: center;
        gap: 8px;
        color: white;
        text-decoration: none;
        font-weight: 700;
        font-size: 18px;
    }

    .flipkart-logo-icon {
        width: 24px;
        height: 24px;
        background: linear-gradient(135deg, #58CC7E, #DFED7B);
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #24145C;
        font-weight: 900;
        font-size: 14px;
    }

    .header-spacer {
        flex: 1;
    }

    .mobile-login-btn {
        display: flex;
        align-items: center;
        gap: 6px;
        color: white;
        text-decoration: none;
        padding: 8px 12px;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 6px;
        font-size: 14px;
        font-weight: 600;
        transition: all 0.3s ease;
    }

    .mobile-login-btn:hover {
        background: rgba(255, 255, 255, 0.25);
    }

    .mobile-login-btn i {
        font-size: 16px;
    }

    .mobile-login-btn span {
        font-size: 13px;
    }

    .flipkart-cart-btn {
        background: rgba(255, 255, 255, 0.15);
        border: none;
        color: white;
        font-size: 20px;
        cursor: pointer;
        padding: 10px 12px;
        border-radius: 6px;
        position: relative;
        display: flex;
        align-items: center;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .flipkart-cart-btn:hover {
        background: rgba(255, 255, 255, 0.25);
    }

    .flipkart-cart-count {
        position: absolute;
        top: -4px;
        right: -4px;
        background: #ff6161;
        color: white;
        border-radius: 50%;
        width: 20px;
        height: 20px;
        font-size: 11px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        border: 2px solid white;
    }
    
    /* Hide desktop header elements on mobile */
    .header-top {
        display: none;
    }
    
    .navbar {
        display: none !important;
    }
    
    /* Hide desktop header main on mobile - mobile header is shown instead */
    .header-main {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Hide desktop-only elements on mobile */
    .desktop-only {
        display: none !important;
    }
    
    /* Show mobile navigation menu on mobile when active */
    .mobile-nav {
        display: block !important;
        visibility: visible !important;
    }
    
    .mobile-nav.active {
        left: 0 !important;
    }
    
    /* Make search bar full width and center on mobile */
    .header-main .search-container {
        flex: 1;
        max-width: 100%;
        margin: 0 auto;
        width: 100%;
        display: block !important;
        visibility: visible !important;
    }
    
    /* Center the container content */
    .header-main .container {
        justify-content: center !important;
        align-items: center !important;
    }
    
    .container {
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
    }
    
    .header-main .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-container {
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .header-actions {
        gap: 10px;
    }
    
    /* Simple mobile content fix */
    .image-slider,
    .categories-showcase-container,
    .main-content {
        width: 100%;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
    }
    
    /* Mobile Image Slider */
    .image-slider {
        height: 250px;
        display: block !important;
        visibility: visible !important;
    }
    
    .slide-content {
        padding: 20px;
    }
    
    .slide-content h2 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .slide-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .nav-btn i {
        font-size: 16px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
    
    .nav-left, .nav-right {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .content-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        order: -1;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .sort-options {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .sort-left {
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .header-top {
        display: none;
    }
    
    .auth-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    .btn-register {
        width: 100%;
    }
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ff6600;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }

.p-10 { padding: 10px; }
.p-20 { padding: 20px; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.rounded { border-radius: 4px; }
.shadow { box-shadow: 0 2px 4px rgba(0,0,0,0.1); }

/* Compare Button Styles */
.btn-compare {
    background: #7378D9;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-compare:hover {
    background: #5a5fb8;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(115, 120, 217, 0.3);
}

.btn-compare.active {
    background: #28a745;
}

.btn-compare i {
    font-size: 14px;
}

.product-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.product-actions .btn-compare {
    flex: 1;
    min-width: auto;
}

.product-actions .btn-add-cart,
.product-actions .btn-buy-now {
    flex: 1;
    min-width: auto;
}

/* ============================================
   CATEGORIES SHOWCASE SECTION
   ============================================ */

/* Categories Showcase Section */
.categories-showcase {
    background: #f8f9fa;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.categories-showcase-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    position: relative;
    overflow: hidden;
}

.categories-carousel-wrapper {
    overflow: hidden;
    width: 100%;
}

.categories-showcase-grid {
    display: flex;
    gap: 15px;
    padding: 5px 0;
    transition: transform 0.5s ease;
    will-change: transform;
}

.category-showcase-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    min-width: 120px;
    flex-shrink: 0;
}

.category-showcase-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(115, 120, 217, 0.2);
    background: linear-gradient(135deg, rgba(247, 177, 84, 0.1), rgba(239, 147, 245, 0.1));
}

.category-showcase-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    pointer-events: auto !important;
}

.category-showcase-item:hover .category-showcase-image {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(115, 120, 217, 0.3);
}

.category-showcase-item:hover .category-showcase-image img {
    transform: scale(1.1);
}

/* Carousel Navigation Buttons */
.category-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.category-carousel-btn:hover {
    background: linear-gradient(135deg, #F7B154, #EF93F5);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(115, 120, 217, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.category-carousel-btn i {
    font-size: 16px;
    color: #333;
    transition: color 0.3s ease;
}

.category-carousel-btn:hover i {
    color: white;
}

.category-carousel-prev {
    left: 10px;
}

.category-carousel-next {
    right: 10px;
}

/* Banner Slider Section Styles */
.banner-slider-section {
    width: 100%;
    background: #f8f9fa;
    padding: 15px 0;
    margin-bottom: 20px;
}

.banner-slider-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    overflow: hidden;
}

.banner-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.banner-slider-track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}

.banner-slide {
    min-width: 100%;
    height: 180px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: auto !important;
}

/* Banner Slider Navigation Buttons */
.banner-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.banner-slider-btn:hover {
    background: linear-gradient(135deg, #F7B154, #EF93F5);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(115, 120, 217, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.banner-slider-btn i {
    font-size: 18px;
    color: #333;
    transition: color 0.3s ease;
}

.banner-slider-btn:hover i {
    color: white;
}

.banner-slider-prev {
    left: 10px;
}

.banner-slider-next {
    right: 10px;
}

/* Banner Slider Pagination Dots */
.banner-slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.banner-dot.active {
    background: white;
    width: 30px;
    border-radius: 15px;
    border-color: white;
}

.banner-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.category-showcase-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-align: center;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.category-showcase-item:hover .category-showcase-name {
    color: #7378D9;
}

/* ============================================
   RESPONSIVE - MOBILE STYLES
   ============================================ */

/* Tablet and below (768px) */
@media (max-width: 768px) {
    /* Categories Showcase Mobile */
    .categories-showcase {
        padding: 15px 0;
    }

    .categories-showcase-container {
        padding: 0 50px;
    }

    .categories-showcase-grid {
        gap: 10px;
    }

    .category-showcase-item {
        padding: 15px 10px;
        min-width: 100px;
    }

    .category-showcase-image {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }

    .category-carousel-btn {
        width: 35px;
        height: 35px;
    }

    .category-carousel-btn i {
        font-size: 14px;
    }

    .category-carousel-prev {
        left: 5px;
    }

    .category-carousel-next {
        right: 5px;
    }

    .category-showcase-name {
        font-size: 12px;
    }

    /* Banner Slider Mobile */
    .banner-slider-section {
        padding: 12px 0;
    }

    .banner-slider-container {
        padding: 0 50px;
    }

    .banner-slide {
        height: 150px;
    }

    .banner-slider-btn {
        width: 40px;
        height: 40px;
    }

    .banner-slider-btn i {
        font-size: 16px;
    }

    .banner-slider-prev {
        left: 5px;
    }

    .banner-slider-next {
        right: 5px;
    }

    .banner-slider-dots {
        bottom: 10px;
    }

    .banner-dot {
        width: 8px;
        height: 8px;
    }

    .banner-dot.active {
        width: 24px;
    }
}

/* Extra small mobile (480px) */
@media (max-width: 480px) {
    /* Categories Showcase Extra Small Mobile */
    .categories-showcase {
        padding: 12px 0;
    }

    .categories-showcase-container {
        padding: 0 40px;
    }

    .categories-showcase-grid {
        gap: 8px;
    }

    .category-showcase-item {
        padding: 12px 8px;
        min-width: 90px;
    }

    .category-showcase-image {
        width: 50px;
        height: 50px;
        margin-bottom: 8px;
    }

    .category-carousel-btn {
        width: 30px;
        height: 30px;
    }

    .category-carousel-btn i {
        font-size: 12px;
    }

    .category-carousel-prev {
        left: 5px;
    }

    .category-carousel-next {
        right: 5px;
    }

    .category-showcase-name {
        font-size: 11px;
    }

    /* Banner Slider Extra Small Mobile */
    .banner-slider-section {
        padding: 10px 0;
    }

    .banner-slider-container {
        padding: 0 40px;
    }

    .banner-slide {
        height: 120px;
    }

    .banner-slider-btn {
        width: 35px;
        height: 35px;
    }

    .banner-slider-btn i {
        font-size: 14px;
    }

    .banner-slider-prev {
        left: 5px;
    }

    .banner-slider-next {
        right: 5px;
    }

    .banner-slider-dots {
        bottom: 8px;
    }

    .banner-dot {
        width: 6px;
        height: 6px;
    }

    .banner-dot.active {
        width: 20px;
    }
    
    /* Extra Small Mobile Image Slider */
    .image-slider {
        height: 180px;
    }
    
    .slide-content {
        padding: 15px;
    }
    
    .slide-content h2 {
        font-size: 1.5rem;
    }
    
    .slide-content p {
        font-size: 0.9rem;
    }
    
    .slide-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .nav-btn {
        width: 35px;
        height: 35px;
    }
    
    .nav-btn i {
        font-size: 14px;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
    }
}