body {
    margin: 0;
    font-family: "Jost", Arial, sans-serif;
    overflow-x: hidden;
}

/* ================= TOP BAR ================= */
.top-bar {
    background: #f7f7f7;
    border-bottom: 1px solid #eee;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.top-bar-wrap {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.top-right {
    display: flex;
    gap: 14px;
}

.top-right a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.top-right a:hover {
    transform: translateY(-2px);
}

.instagram {
    background: radial-gradient(circle at 30% 30%, #fdf497, #fd5949, #d6249f, #285AEB);
}

.youtube {
    background: #ff0000;
}

/* ================= HEADER ================= */
.main-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 12px 0;
    position: relative;
    z-index: 100;
}

.container {
    max-width: 1300px;
    margin: auto;
    padding: 0 20px;
}

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

.logo img {
    height: 55px;
    width: auto;
}

/* ================= DESKTOP NAV MENU ================= */
/* ================= DESKTOP NAV MENU ================= */
.nav-menu > ul {
    display: flex;
    gap: 28px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.nav-item {
    position: relative;
}
.nav-item > a {
    text-decoration: none;
    color: #000;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}
/* Underline animation */
.nav-item > a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #d36c2c;
    transition: width 0.3s ease;
}
.nav-item:hover > a::after {
    width: 100%;
}

/* ================= MAIN DROPDOWN ================= */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    z-index: 99;
    list-style: none;
    padding: 10px 0;
    margin: 0;
}
.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown li {
    list-style: none;
    width: 100%;
    position: relative;
}
.dropdown li a {
    display: block;
    padding: 12px 18px;
    font-size: 14px;
    color: #000;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
}
.dropdown li a:hover {
    background: #f7f7f7;
    color: #d36c2c;
    padding-left: 25px;
}

/* ================= SUB-DROPDOWN (Level 2) ================= */
.sub-dropdown {
    position: absolute;
    top: 0;
    left: 100%;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateX(15px);
    transition: all 0.3s ease;
    z-index: 100;
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

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

.sub-dropdown li a {
    font-size: 13px;
    padding: 10px 16px;
}

.sub-dropdown li a:hover {
    padding-left: 22px;
    background: #f0f8ff;
    color: #d36c2c;
}

/* Arrow indicator for items with sub-dropdowns */
.has-dropdown > a::after {
    content: '›';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #999;
    transition: transform 0.3s ease;
}

.has-dropdown:hover > a::after {
    transform: translateY(-50%) rotate(90deg);
    color: #d36c2c;
}

/* ================= MOBILE RESPONSIVE ================= */
@media (max-width: 991px) {
    .dropdown,
    .sub-dropdown {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none;
        display: none;
    }

    .nav-item:hover .dropdown {
        display: block;
    }

    .has-dropdown:hover .sub-dropdown {
        display: block;
        margin-left: 20px;
        border-left: 2px solid #d36c2c;
    }
}
/* ================= HEADER ICONS ================= */
.header-icons {
    display: flex;
    gap: 18px;
    align-items: center;
}

.header-icons a {
    color: #000;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s ease;
}

.header-icons a:hover {
    color: #d36c2c;
}

/* ================= MOBILE MENU BUTTON ================= */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #000;
    z-index: 1001;
    padding: 5px;
    margin-right: 10px;
    transition: opacity 0.3s ease;
}

.menu-toggle.hidden {
    opacity: 0;
    visibility: hidden;
}

/* ================= MOBILE SIDEBAR MENU ================= */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -420px;
    width: 300px;
    height: 100%;
    background: #fff;
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
    transition: left 0.4s ease;
    box-shadow: 5px 0 15px rgba(0,0,0,0.1);
}

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

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.mobile-logo img {
    height: 85px;
}

.close-menu {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #000;
}

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

.mobile-nav-item > a {
    display: block;
    padding: 15px 0;
    text-decoration: none;
    color: #000;
    font-size: 16px;
    font-weight: 500;
}

/* ================= HERO BANNER ================= */
.hero-banner {
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden;
}

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

.banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}

.banner-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-btn {
    padding: 14px 36px;
    background: #ffc107;
    color: #000;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.shop-btn:hover {
    background: #ffb300;
    transform: translateY(-3px);
}

/* ================= SHARED SIDEBAR STYLES ================= */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 350px;
    max-width: 90%;
    height: 100%;
    background: #fff;
    z-index: 1000;
    padding: 20px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    right: 0;
}

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

.sidebar-header h3 {
    font-size: 18px;
    margin: 0;
}

.close-sidebar {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #000;
    transition: color 0.3s ease;
}

.close-sidebar:hover {
    color: #d36c2c;
}

/* ================= CART SIDEBAR ================= */
.cart-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.cart-content .empty-cart {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.cart-content .continue-shopping {
    padding: 10px 20px;
    border: 1px solid #000;
    background: #fff;
    cursor: pointer;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.cart-content .continue-shopping:hover {
    background: #f0f0f0;
}

.cart-icon {
    position: relative;
    display: inline-block;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #e53935;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}


/* ================= USER SIDEBAR ================= */
.user-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.user-content p.not-logged-in {
    font-size: 16px;
    color: #333;
    text-align: center;
}

.user-content button {
    padding: 10px 20px;
    border: 1px solid #000;
    background: #fff;
    cursor: pointer;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
    width: 80%;
}

.user-content button:hover {
    background: #f0f0f0;
}

/* ================= SEARCH SIDEBAR ================= */
.search-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.search-form {
    width: 100%;
    margin-bottom: 20px;
}

.search-input-group {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: #d36c2c;
}

.search-submit {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    transition: color 0.3s ease;
}

.search-submit:hover {
    color: #d36c2c;
}

.search-trending {
    margin-top: 20px;
}

.search-trending h4 {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trending-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.trending-tag {
    padding: 6px 12px;
    background: #f7f7f7;
    border: 1px solid #eee;
    border-radius: 20px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.trending-tag:hover {
    background: #d36c2c;
    color: white;
    border-color: #d36c2c;
}

/* ================= FOOTER ================= */
.footer {
    background: linear-gradient(180deg, #1c1c1c, #111);
    color: #fff;
    position: relative;
}

.footer-container {
    max-width: 1300px;
    margin: auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
}

.footer-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

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

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

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

.footer ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

/* Social */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #222;
    color: #fff;
    font-size: 18px;
    transition: 0.3s;
}

.social-icon:hover {
    background: #e1306c;
}

/* Bottom Bar */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 18px 20px;
    text-align: left;
    font-size: 14px;
    color: #cfcfcf;
    max-width: 1300px;
    margin: auto;
}

/* Scroll Top */
.scroll-top {
    position: absolute;
    right: 25px;
    bottom: 25px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: #000;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

.scroll-top:hover {
    background: #333;
}

/* ================= RESPONSIVE BREAKPOINTS ================= */
@media (max-width: 1024px) {
    .nav-menu > ul {
        gap: 20px;
    }

    .nav-item > a {
        font-size: 14px;
    }
}

@media (max-width: 992px) {
    .top-bar {
        display: none !important;
    }

    .nav-menu {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .header-icons {
        gap: 15px;
    }

    .logo img {
        height: 48px;
    }

    .sidebar {
        width: 280px;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        height: 70vh;
    }

    .top-bar {
        padding: 6px 0;
        max-height: 40px;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .top-bar.hidden {
        max-height: 0;
        padding: 0;
        border-bottom: none;
    }

    .top-right a {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .shop-btn {
        padding: 12px 28px;
        font-size: 15px;
    }

    .mobile-sidebar {
        width: 280px;
    }

    .header-wrap {
        position: relative;
    }
}

@media (max-width: 576px) {
    .hero-banner {
        height: 60vh;
    }

    .logo img {
        height: 72px;
    }

    .header-icons {
        gap: 12px;
    }

    .header-icons a {
        font-size: 15px;
    }

    .shop-btn {
        padding: 10px 24px;
        font-size: 14px;
    }

    .container {
        padding: 0 15px;
    }

    .top-bar.hidden {
        display: none;
    }

    .menu-toggle {
        margin-right: 5px;
    }

    .sidebar {
        width: 100%;
        max-width: 320px;
    }
}

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .mobile-sidebar {
        width: 260px;
    }

    .mobile-logo img {
        height: 38px;
    }

    .top-right {
        gap: 10px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: left;
    }
}
