* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #fff;
    color: #333;
    overflow-x: hidden;
}

/* Header Styles */



.header-container {
    max-width: 1024px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-number {
    background: linear-gradient(135deg, #ff6600, #ff8833);
    color: white;
    font-size: 28px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.logo-number::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {

    0%,
    100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.logo-text {
    color: white;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.logo-tagline {
    color: #ff6600;
    font-size: 10px;
    margin-left: 8px;
    letter-spacing: 2px;
    font-weight: 600;
}

.search-bar {
    flex: 1;
    max-width: 550px;
    margin: 0 40px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 14px 55px 14px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #333 !important;
    -webkit-text-fill-color: #333 !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-bar input:focus {
    outline: none;
    border-color: #ff6600;
    background: white;
    box-shadow: 0 6px 25px rgba(255, 102, 0, 0.2);
    transform: translateY(-2px);
}

.search-bar input::placeholder {
    color: #888 !important;
    -webkit-text-fill-color: #888 !important;
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #ff6600, #ff8833);
    border: none;
    cursor: pointer;
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.3);
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.5);
}

.login-btn {
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    background: linear-gradient(135deg, #ff6600, #ff8833);
    border-color: #ff6600;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.6));
    backdrop-filter: saturate(160%) blur(18px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* Full-window backdrop when mega menu is open */
.mega-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 950;
    /* below mega menu (1000) but above content */
}

.mega-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.nav-container {
    max-width: 1024px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0px 20px;
}

.nav-item-wrapper,
.nav-item {
    display: inline-block;
}

.nav-item {
    padding: 12px 16px;
    text-decoration: none;
    color: #1f1f1f;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    position: relative;
    border-radius: 999px;
    letter-spacing: 0.3px;
    background: transparent;
}

.nav-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: radial-gradient(120% 120% at 50% 0%, rgba(255, 102, 0, 0.12) 0%, rgba(255, 136, 51, 0.08) 30%, transparent 70%);
    transform: scale(0.95);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.nav-item:hover {
    color: #ff6600;
    background: rgba(255, 102, 0, 0.10);
}

.nav-item:hover::after {
    opacity: 1;
}

.nav-item.has-mega::after {
    opacity: 0;
}

.nav-item-wrapper:hover .nav-item.has-mega {
    color: #ff6600;
    background: rgba(255, 102, 0, 0.05);
}

.nav-item span {
    margin-left: 8px;
    font-size: 18px;
    /* larger arrow for readability */
    line-height: 1;
    /* prevent vertical shift */
    opacity: 0.9;
    transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    /* align with text baseline */
    transform-origin: center center;
    /* avoid drift on rotate */
}

.nav-item:hover span {
    opacity: 1;
}

.nav-item-wrapper:hover .nav-item.has-mega span {
    opacity: 1;
    transform: rotate(180deg);
    /* remove translate to avoid shifting */
    color: #ff6600;
}

/* Creative focus state when mega is active/open */
.nav-item-wrapper:hover .nav-item.has-mega {
    background: rgba(255, 102, 0, 0.12);
    box-shadow: 0 6px 16px rgba(255, 102, 0, 0.16) inset;
}

/* Mega Menu Styles */
.nav-item-wrapper {
    position: relative;
}

.nav-item.has-mega {
    padding: 18px 20px;
    position: relative;
}

.mega-menu {
    position: absolute;
    top: calc(100% - 4px);
    left: 0;
    width: 860px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
    pointer-events: none;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-item-wrapper:hover .mega-menu,
.mega-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

.mega-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6600, #ff8833, #ff6600);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 0%;
    }
}

.mega-menu-content {
    display: grid;
    grid-template-columns: 260px 260px 300px;
    gap: 0;
    padding: 28px 28px 24px 28px;
}

.mega-column {
    padding: 0 20px;
    position: relative;
}

.mega-column:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: linear-gradient(to bottom,
            transparent,
            #e0e0e0 20%,
            #e0e0e0 80%,
            transparent);
}

.mega-column h3 {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f3f3f3;
}

.mega-column h3 span {
    margin-left: 6px;
    color: #ff6600;
    font-size: 14px;
    font-weight: 600;
}

.mega-column ul {
    list-style: none;
}

.mega-column ul li {
    margin-bottom: 0;
}

.mega-column ul li a {
    text-decoration: none;
    color: #444;
    font-size: 13px;
    transition: all 0.22s ease;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin: 0 -12px;
    border-radius: 8px;
    position: relative;
    font-weight: 500;
}

.mega-column ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #ff6600;
    transition: width 0.3s ease;
}

.mega-column ul li a:hover {
    color: #ff6600;
    background: #fff6f1;
    padding-left: 18px;
}

.mega-column ul li a:hover::before {
    width: 8px;
}

/* Banner Section */
.banner-section {
    background: white;
    padding: 20px 0;
}

.banner-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    padding: 0 20px;
}

.banner-ad {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
}

.iphone-banner {
    background: linear-gradient(135deg, #a8b5ff, #6b7bd4);
}

.iphone-banner img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.emi-banner {
    background: #000;
    color: white;
    padding: 20px 30px;
    display: flex;
    align-items: center;
}

.emi-content h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.emi-content p {
    font-size: 12px;
    color: #ccc;
    margin-bottom: 5px;
}

.emi-content small {
    font-size: 10px;
    color: #888;
}

/* Main Content */
.main-content {
    padding: 30px 0;
    background: #f8f9fa;
}

.modern-grid-wrapper {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: minmax(0, 260px) 1fr minmax(0, 280px);
    gap: 20px;
    align-items: stretch;
}

/* Column Styles */
.filter-column,
.features-column,
.price-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

/* Cards inside columns grow to fill equal height */
.filter-column .modern-filter-box {
    flex: 1;
}

.features-column .price-section {
    flex-shrink: 0;
}

.features-column .features-section {
    flex: 1;
}

.price-column .buy-section {
    flex: 1;
}

.filter-column .main-heading {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 15px;
    line-height: 1.3;
}

.modern-filter-box {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    height: fit-content;
}

.modern-filter-box h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

/* Left Section */
.left-section {
    background: white;
    border-radius: 8px;
    padding: 30px;
}

.main-heading {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #000;
}

.filter-box {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.filter-box h3 {
    font-size: 16px;
    margin-bottom: 20px;
    color: #666;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.price-input {
    flex: 1;
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px 15px;
}

.price-input span {
    margin-right: 5px;
    color: #666;
}

.price-input input {
    border: none;
    width: 100%;
    font-size: 14px;
    outline: none;
}

.to-text {
    color: #666;
    font-size: 14px;
}

.price-slider {
    position: relative;
    height: 6px;
    margin-bottom: 25px;
}

.slider-track {
    position: absolute;
    width: 100%;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
}

.slider-range {
    position: absolute;
    height: 6px;
    background: #4CAF50;
    border-radius: 3px;
    left: 0;
    right: 0;
}

.price-slider input[type="range"] {
    position: absolute;
    width: 100%;
    height: 6px;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}

.price-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #4CAF50;
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.find-btn {
    width: 100%;
    padding: 15px;
    background: #ff6600;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.find-btn:hover {
    background: #e55a00;
}

/* Features Section */
.features-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    height: fit-content;
}

.features-section h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 18px;
    color: #333;
}

.feature-grid {
    display: grid;
    gap: 10px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e9ecef;
}

.feature-item:hover {
    background: #e9ecef;
    transform: translateX(3px);
    border-color: #dee2e6;
}

.feature-item svg {
    width: 20px;
    height: 20px;
    color: #666;
    flex-shrink: 0;
}

.feature-item span {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

/* Right Section */
.right-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.buy-section,
.price-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    height: fit-content;
}

.buy-section h2,
.price-section h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 18px;
    color: #333;
}

.category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #e9ecef;
    text-decoration: none;
    color: inherit;
}

.category-card:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.category-card img {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    flex-shrink: 0;
}

.category-card span {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
}

.category-card svg {
    width: 14px;
    height: 14px;
    color: #999;
    flex-shrink: 0;
}

.price-tags {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.price-tag {
    padding: 10px 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
    text-align: center;
}

.price-tag:hover {
    background: #ff6600;
    color: white;
    border-color: #ff6600;
}

/* Brands Section */
.brands-section {
    max-width: 1024px;
    margin: 40px auto;
    padding: 0 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 22px;
    font-weight: 600;
}

.view-all {
    color: #ff6600;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.view-all span {
    margin-left: 3px;
}

.brands-slider {
    position: relative;
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: none;
    scroll-behavior: smooth;
    cursor: grab;
}

.brands-slider:active {
    cursor: grabbing;
}

.brands-slider::-webkit-scrollbar {
    display: none;
}

.brand-card {
    flex: 0 0 140px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    border: 1px solid #ccc;
    cursor: pointer;
    transition: all 0.3s;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.brand-card img {
    width: 100%;
    height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
}

.brand-card p {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.slider-container {
    position: relative;
}

.slider-arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #ff6600;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6600;
    pointer-events: auto;
}

.slider-arrow:hover {
    background: #ff6600;
    color: white;
    border-color: #ff6600;
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

/* Upcoming Section */
.upcoming-section {
    max-width: 1024px;
    margin: 40px auto 60px;
    padding: 0 20px;
}

.mobile-grid {
    position: relative;
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: none;
    scroll-behavior: smooth;
    cursor: grab;
}

.mobile-grid:active {
    cursor: grabbing;
}

.mobile-grid::-webkit-scrollbar {
    display: none;
}

.mobile-card {
    flex: 0 0 200px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.mobile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.score-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #8BC34A;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    z-index: 1;
}

.mobile-card img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    border-radius: 8px;
}

/* Login/Signup Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: #666;
    z-index: 1;
}

.modal-close:hover {
    background: #ff6600;
    color: white;
    transform: rotate(90deg);
}

.modal-content {
    padding: 40px 35px;
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header h2 {
    font-size: 28px;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.modal-header p {
    color: #666;
    font-size: 14px;
}

.tab-switch {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: #f5f5f5;
    padding: 5px;
    border-radius: 10px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: #666;
}

.tab-btn.active {
    background: white;
    color: #ff6600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 52px;
    /* space for the eye button */
}

.toggle-password {
    position: absolute;
    top: 1px;
    right: 1px;
    bottom: 1px;
    width: 50px;
    border: none;
    background: transparent;
    border-left: 1px solid #eaeaea;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    transition: background 0.2s, color 0.2s;
}

.toggle-password:hover {
    background: #f7f7f7;
    color: #333;
}

.toggle-password:active {
    background: #eee;
}

.eye-icon {
    pointer-events: none;
    /* ensure click targets the button */
    font-size: 18px;
    line-height: 1;
}

/* Hide native password reveal icon in Edge to avoid double eye */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

.form-group input:focus {
    outline: none;
    border-color: #ff6600;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.forgot-link {
    color: #ff6600;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ff6600, #ff8833);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: #e0e0e0;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    background: white;
    padding: 0 15px;
    color: #999;
    font-size: 13px;
    font-weight: 500;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    width: 100%;
    padding: 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.social-btn:hover {
    border-color: #ccc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.social-btn.google {
    color: #333;
}

.social-btn.facebook {
    color: #1877F2;
}

/* Footer Styles */
.footer {
    background: var(--footer-bg-color, linear-gradient(135deg, #1a1a2e 0%, #16213e 100%));
    color: var(--footer-text-color, white);
    margin-top: 60px;
}

.footer * {
    color: var(--footer-text-color, white);
}

.footer-top {
    padding: 60px 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ff6600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.footer-logo .logo-number {
    background: linear-gradient(135deg, #ff6600, #ff8833);
    color: white;
    font-size: 24px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
}

.footer-logo .logo-text {
    color: white;
    font-size: 24px;
    font-weight: 600;
}

.footer-description {
    color: #aaa;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    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;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: linear-gradient(135deg, #ff6600, #ff8833);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.4);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-column ul li a:hover {
    color: #ff6600;
    transform: translateX(5px);
}

.footer-bottom {
    padding: 25px 0;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    grid-template-columns: 1fr;
}

.footer-bottom p {
    color: #aaa;
    font-size: 14px;
    margin: 0;
}

.heart {
    color: #ff6600;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.1);
    }

    50% {
        transform: scale(1);
    }
}

.footer-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ff6600;
}

.footer-links .separator {
    color: #555;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    /* 3-col hero grid → 2 col on tablet: filter + features, then category full width */
    .modern-grid-wrapper {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .price-column {
        grid-column: 1 / -1;
    }

    .price-column .buy-section {
        flex: none;
    }

    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-column:first-child {
        grid-column: 1 / -1;
    }

    .right-section {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        gap: 15px;
    }

    .search-bar {
        order: 3;
        flex: 1 1 100%;
        margin: 0;
    }

    .nav-container {
        overflow-x: auto;
        gap: 20px;
    }

    .banner-container {
        flex-direction: column;
    }

    /* Full-width stacked layout on mobile & reordering */
    .modern-grid-wrapper {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .price-column {
        order: 1;
        /* What are you looking to buy? */
    }

    .features-column {
        order: 2;
        /* Mobiles by Price & Features */
    }

    .filter-column {
        order: 3;
        /* The advanced price filter form at bottom */
    }

    .filter-column,
    .features-column,
    .price-column {
        height: auto;
        width: 100%;
    }

    .filter-column .modern-filter-box,
    .features-column .features-section,
    .price-column .buy-section {
        flex: none;
    }

    /* Mobiles by price - Horizontal Scroll */
    .price-tags {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 5px;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE */
    }

    .price-tags::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari */
    }

    .price-tag {
        flex: 0 0 auto;
        font-size: 14px;
        padding: 8px 18px;
    }

    /* What are you looking to buy - Horizontal Scroll */
    .category-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 5px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .category-grid::-webkit-scrollbar {
        display: none;
    }

    .category-card {
        flex: 0 0 auto;
        width: 110px;
        height: 115px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 14px 12px;
        background: #f4f6fc;
        border-radius: 12px;
        border: 1px solid #eef1f6;
        position: relative;
        overflow: hidden;
    }

    .category-card span {
        font-size: 14px;
        font-weight: 600;
        color: #333;
        z-index: 2;
    }

    .category-card svg {
        display: none;
    }

    .category-card img {
        position: absolute;
        bottom: -5px;
        right: -10px;
        width: 65px;
        height: 65px;
        object-fit: contain;
        transform: rotate(-10deg);
        opacity: 0.95;
    }

    .right-section {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-column:first-child {
        grid-column: 1 / -1;
    }

    .footer-bottom .footer-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-top {
        padding: 40px 0 20px;
    }

    .footer-column h4 {
        margin-bottom: 12px;
    }

    .footer-column ul li {
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .logo-tagline {
        display: none;
    }

    .price-inputs {
        flex-direction: column;
        gap: 10px;
    }

    .to-text {
        display: none;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .footer-column:first-child {
        grid-column: 1 / -1;
    }

    .footer-top {
        padding: 30px 0 15px;
    }

    .social-links {
        justify-content: flex-start;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* =========================================================
   MOBILE NAVIGATION — Hamburger + Slide Drawer
   ========================================================= */

/* Hamburger button — hidden on desktop */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    margin-right: 15px;
    transition: background 0.2s;
}

.nav-hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--header-text-color, #fff);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

/* Animated X when active */
.nav-hamburger.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-hamburger.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Overlay behind drawer */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.open {
    display: block;
    opacity: 1;
}

/* Slide-in drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 290px;
    max-width: 85vw;
    background: #ffffff;
    z-index: 10001;
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}

.mobile-nav-drawer.open {
    transform: translateX(0);
}

/* Drawer header */
.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #ff6600, #ff8833);
}

.mobile-nav-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
}

.mobile-nav-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
}

.mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Drawer scrollable body */
.mobile-nav-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0 30px;
    -webkit-overflow-scrolling: touch;
}

/* Section label */
.mobile-nav-section {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #999;
    padding: 18px 20px 6px;
}

/* Nav links */
.mobile-nav-link {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.15s, color 0.15s, padding-left 0.15s;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
    background: #fff6f1;
    color: #ff6600;
    padding-left: 26px;
}

/* Sub-links (indented) */
.mobile-nav-sub {
    font-size: 13px;
    font-weight: 500;
    padding-left: 32px;
    color: #555;
}

.mobile-nav-sub:hover {
    padding-left: 38px;
}

/* ── Responsive toggle rules ── */
@media (max-width: 768px) {

    /* Hide all desktop nav items */
    .nav-desktop {
        display: none !important;
    }

    /* Show hamburger */
    .nav-hamburger {
        display: flex;
    }

    /* Completely hide the secondary nav bar on mobile */
    .navbar {
        display: none !important;
    }

    /* Mega menus never show on mobile (drawer handles it) */
    .mega-menu {
        display: none !important;
    }
}