/* ==========================================
   wikopn Modern Layout & Navigation CSS
   Universal E-Commerce: White Header | Dark Footer
   ========================================== */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

main {
    flex: 1;
    min-height: calc(100vh - 380px);
}

/* ===== NAVBAR — Sticky Clean White ===== */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.75rem 0;
    transition: all 0.25s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.98);
    padding: 0.6rem 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 1rem;
    max-width: 1360px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Brand Logo - Always set to Left side */
.logo {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.03em;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    margin-left: 0;
    margin-right: 1.25rem;
    flex: 0 0 auto;
    gap: 10px;
    text-decoration: none;
    transition: transform var(--transition-fast);
}

.logo:hover {
}

.logo-img {
    height: 42px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    object-position: left center;
    border-radius: var(--radius-xs);
    display: block;
    margin-left: 0;
    transition: transform var(--transition-bounce);
}

.logo:hover .logo-img {
    transform: scale(1.06);
}

.logo span {
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--buy-now-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo span span {
    background: linear-gradient(135deg, var(--buy-now-color) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    list-style: none;
    font-weight: 600;
    font-size: 0.92rem;
    margin: 0;
    padding: 0;
    flex: 0 1 auto;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-pill);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    background: var(--primary-tint);
}

.nav-links a.active {
    font-weight: 700;
}

/* Mobile Toggle & Close */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.nav-close-row {
    display: none;
}

.mobile-only-nav {
    display: none;
}

/* Nav Actions (Search, Wishlist, Cart, Profile) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

/* Search Box */
.search-box {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
    position: relative;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.search-box:focus-within {
    background: #ffffff;
    border-color: var(--primary-color, #F02121);
    box-shadow: 0 0 0 3px rgba(240, 33, 33, 0.12), 0 4px 14px rgba(0, 0, 0, 0.05);
}

.search-box input {
    border: none;
    background: transparent;
    padding: 0.35rem 0.5rem;
    font-size: 0.86rem;
    font-family: inherit;
    font-weight: 500;
    color: var(--text-primary, #0f172a);
    outline: none;
    width: 145px;
    transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-box input::placeholder {
    color: #94a3b8;
    font-size: 0.82rem;
}

.search-box input:focus {
    width: 195px;
}

.search-box i {
    color: #94a3b8;
    font-size: 0.88rem;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.search-box:focus-within i {
    color: var(--primary-color, #F02121);
}

/* Icon Buttons: Wishlist & Cart */
.cart-icon,
.watchlist-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.1rem;
    color: var(--text-primary);
    background: #ffffff;
    border: 1.5px solid var(--border-light);
    box-shadow: var(--shadow-xs);
    cursor: pointer;
    transition: all var(--transition-bounce);
    text-decoration: none;
}

.cart-icon:hover,
.watchlist-icon:hover {
    color: var(--primary-color);
    border-color: var(--primary-light);
    background: var(--primary-tint);
    transform: scale(1.04);
    box-shadow: var(--shadow-sm);
}

.cart-badge,
.watchlist-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: #ffffff;
    font-size: 0.64rem;
    font-weight: 800;
    line-height: 1;
    padding: 0 5px;
    border-radius: 999px;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* ===== MOBILE & TABLET BOTTOM APP BAR (FLIPKART STYLE) ===== */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 60px;
    background: #ffffff;
    border-top: 1px solid #edf2f7;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.07);
    z-index: 9995;
    align-items: center;
    justify-content: space-around;
    padding: 0 0.25rem;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-sizing: border-box;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.mobile-bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-decoration: none;
    padding: 4px 0 2px;
    color: #64748b;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.mobile-bottom-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 28px;
    border-radius: 999px;
    font-size: 1.15rem;
    color: #475569;
    transition: all 0.22s ease;
}

.mobile-bottom-label {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    margin-top: 2px;
    letter-spacing: -0.01em;
    color: #64748b;
    transition: color 0.2s ease, font-weight 0.2s ease;
}

/* Active Highlighted Pill State (matches screenshot) */
.mobile-bottom-item.active .mobile-bottom-icon-wrap {
    background: rgba(240, 33, 33, 0.12);
    color: var(--primary-color, #f02121);
    transform: translateY(-1px);
}

.mobile-bottom-item.active .mobile-bottom-label {
    color: var(--primary-color, #f02121);
    font-weight: 700;
}

.mobile-bottom-item:active {
    transform: scale(0.94);
}

/* Live Badge on Cart Tab */
.mobile-bottom-badge {
    position: absolute;
    top: -4px;
    right: 6px;
    background: #f02121;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 1;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(240, 33, 33, 0.4);
}

/* ===== FOOTER (COPYRIGHT) — Always at Bottom ===== */
.footer {
    background: var(--bg-dark, #171717);
    color: #9ca3af;
    padding: 1.25rem 0;
    margin-top: auto !important;
    width: 100%;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 10;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(240, 33, 33, 0.45), transparent);
}

.footer .container,
.footer .copyright-container {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1.5rem;
}

.footer .copyright-text,
.footer-bottom {
    font-size: 0.9rem;
    color: #9ca3af;
    margin: 0;
    line-height: 1.5;
    letter-spacing: 0.01em;
}

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

@media (max-width: 580px) {
    .footer {
        padding: 1rem 0;
    }

    .footer .copyright-text {
        font-size: 0.82rem;
    }
}