/* ============================================
   PREMIUM NAVBAR STYLING
   Enhanced UI/UX for Desktop, Tablet & Mobile
   ============================================ */

/* ============================================
   DESKTOP NAVBAR - PREMIUM STYLING
   ============================================ */

.container-menu-desktop {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.top-bar {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    height: 38px;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.left-top-bar {
    color: #888;
    font-weight: 500;
}

.right-top-bar a {
    color: #888;
    /* border-right: 1px solid rgba(255, 255, 255, 0.15); */
    font-weight: 500;
    transition: all 0.3s ease;
}

.right-top-bar a:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
}

/* .right-top-bar a:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.15);
} */

.wrap-menu-desktop {
    /* position: fixed; */
    z-index: 1100;
    background-color: transparent;
    width: 100%;
    height: 70px;
    top: 38px;
    left: 0px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.wrap-menu-desktop.scrolled {
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    height: 75px;
}

.limiter-menu-desktop {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 30px;
}

/* Logo Styling */
.logo {
    margin-right: 0px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.logo img {
    max-width: 250px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.02);
}

/* Main Menu Styling */
.menu-desktop {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-menu {
    list-style-type: none;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-menu > li {
    position: relative;
    padding: 20px 8px;
    margin: 0;
    display: flex;
    align-items: center;
}

.main-menu > li > a {
    font-family: "Poppins-Medium";
    font-size: 14px;
    color: #333;
    padding: 8px 16px;
    position: relative;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.main-menu > li > a::before {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 16px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #000000, #000000);
    transition: width 0.3s ease;
}

.main-menu > li > a:hover {
    color: #000000;
}

.main-menu > li > a:hover::before {
    width: calc(100% - 32px);
}

.main-menu > li.active-menu > a {
    color: #000000;
}

.main-menu > li.active-menu > a::before {
    width: calc(100% - 32px);
}

/* Submenu Styling */
.sub-menu {
    list-style-type: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 8px 0;
    margin-top: 10px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.05);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1200;
}

.main-menu > li:hover > .sub-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.sub-menu li {
    position: relative;
    transition: background-color 0.3s ease;
}

.sub-menu li:hover {
    background-color: rgba(255, 107, 107, 0.08);
}

.sub-menu a {
    font-family: "Poppins-Regular";
    font-size: 13px;
    color: #555;
    display: block;
    padding: 12px 20px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 500;
}

.sub-menu a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #ca6eac;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sub-menu li:hover > a {
    color: #ca6eac;
    padding-left: 25px;
}

.sub-menu li:hover > a::before {
    opacity: 1;
}

/* Icon Header */
.wrap-icon-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
    flex-shrink: 0;
}

.icon-header-item {
    position: relative;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.icon-header-item:hover {
    color: #4b4a4a;
    transform: scale(1.1);
}

.icon-header-noti::after {
    content: attr(data-notify);
    font-family: "Poppins-Regular";
    font-size: 11px;
    color: #000;
    font-weight: 600;
    line-height: 16px;
    text-align: center;
    position: absolute;
    top: -3px;
    right: -6px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* ============================================
   MOBILE & TABLET - BOTTOM NAV BAR
   ============================================ */

.bottom-nav-mobile {
    display: none !important;
}

@media (max-width: 1199px) {
    .container-menu-desktop {
        display: none !important;
    }

    .wrap-header-mobile {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1100;
        height: 65px;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        padding: max(8px, env(safe-area-inset-top, 0)) 15px 8px 15px;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        transition:
            transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
            height 0.3s ease;
    }

    .wrap-header-mobile.hide-header {
        transform: translateY(-100%);
    }

    .logo-mobile {
        order: 2;
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        width: auto;
        height: 50px;
        padding: 0;
        margin: 0;
    }

    .logo-mobile img {
        max-width: 230px;
        height: 100%;
        object-fit: contain;
    }

    /* Wrap icon header - search on left, cart/wishlist on right */
    .wrap-icon-header {
        order: 3;
        display: flex !important;
        gap: 0px;
        margin: 0 !important;
        flex: 0 0 auto;
        flex-direction: row;
    }

    /* First search icon - left side */
    .wrap-icon-header .js-show-modal-search:first-child {
        order: 1;
        /* margin-right: 15px; */
    }

    /* Cart - right side */
    .wrap-icon-header .js-show-cart {
        order: 1;
    }

    /* Phone - ensure it appears after search/cart on mobile */
    .wrap-icon-header .icon-header-phone {
        order: 2;
    }

    /* Phone - ensure it appears after search/cart on mobile */
    .wrap-icon-header .icon-header-phone {
        order: 2;
    }

    .icon-header-item {
        width: 44px;
        height: 44px;
        font-size: 26px;
        min-width: 44px;
        min-height: 44px;
        padding: 0 5px !important;
    }
    .icon-header-item-s {
        width: 25px;
        height: 35px;
        font-size: 25px;
        min-width: 28px;
        min-height: 24px;
    }

    /* Bottom Navigation Bar */
    .bottom-nav-mobile {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1099;
        height: 70px;
        background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
        justify-content: space-around;
        align-items: center;
        padding: 8px 0 max(8px, env(safe-area-inset-bottom, 0));
        transition: all 0.3s ease;
    }

    .bottom-nav-mobile.hide-nav {
        transform: translateY(120%);
    }

    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        flex: 1;
        height: 100%;
        cursor: pointer;
        text-decoration: none;
        color: #666;
        position: relative;
        transition: all 0.3s ease;
        font-family: "Poppins-Medium";
        font-size: 11px;
        font-weight: 600;
        min-height: 44px;
        -webkit-user-select: none;
        user-select: none;
        border-radius: 8px;
        margin: 0 4px;
    }

    .bottom-nav-item:active {
        background-color: rgba(255, 107, 107, 0.08);
    }

    .bottom-nav-item i {
        font-size: 24px;
        transition: all 0.3s ease;
    }

    .bottom-nav-item:hover {
        color: #ff6b6b;
        transform: translateY(-2px);
    }

    .bottom-nav-item:hover i {
        transform: scale(1.15);
    }

    .bottom-nav-item.active {
        color: #ff6b6b;
    }

    .bottom-nav-item.active i {
        font-size: 28px;
    }

    .bottom-nav-item::before {
        content: "";
        position: absolute;
        top: 0;
        width: 0;
        height: 3px;
        background: linear-gradient(90deg, #ff6b6b, #ff8c42);
        transition: width 0.3s ease;
        border-radius: 0 0 2px 2px;
    }

    .bottom-nav-item.active::before {
        width: 100%;
    }

    .bottom-nav-label {
        display: block;
        line-height: 1.2;
    }

    /* Adjust body padding for bottom nav */
    body.has-bottom-nav {
        padding-bottom: max(70px, 70px + env(safe-area-inset-bottom, 0));
    }

    /* Hamburger Menu - Show on mobile */
    .btn-show-menu-mobile {
        display: flex !important;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 1101;
    }
}

/* ============================================
   TABLET SPECIFIC - (768px to 991px)
   ============================================ */

@media (max-width: 991px) and (min-width: 768px) {
    .wrap-header-mobile {
        height: 70px;
        padding: 10px 20px;
    }

    .logo-mobile {
        width: 170px;
        height: 55px;
    }
    .logo-mobile img {
        max-width: 200px;
        height: 100%;
        object-fit: contain;
    }
    .bottom-nav-mobile {
        height: 75px;
    }

    .bottom-nav-item {
        font-size: 12px;
        gap: 5px;
    }

    .bottom-nav-item i {
        font-size: 26px;
    }

    body.has-bottom-nav {
        padding-bottom: max(75px, 75px + env(safe-area-inset-bottom, 0));
    }

    /* Hide Quick View button on tablet view */
    .product-image a.block2-btn,
    .product-image a.block2-btn.js-show-modal1,
    .product-card .product-image a.block2-btn.js-show-modal1,
    .product-card:hover .product-image a.block2-btn.js-show-modal1,
    .product-card .js-show-modal1,
    .product-card:hover .js-show-modal1,
    .block2-btn.js-show-modal1 {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* ============================================
   SMALL MOBILE SPECIFIC - (Below 768px)
   ============================================ */

@media (max-width: 767px) {
    .wrap-header-mobile {
        height: 60px;
        padding: 8px 12px;
    }

    .logo-mobile {
        width: 160px;
        height: 48px;
    }
    .logo-mobile img {
        max-width: 180px;
        height: 100%;
        object-fit: contain;
    }

    .bottom-nav-mobile {
        height: 65px;
        padding: 6px 0;
    }

    .bottom-nav-item {
        font-size: 10px;
        gap: 3px;
    }

    .bottom-nav-item i {
        font-size: 22px;
    }

    .bottom-nav-item.active i {
        font-size: 25px;
    }

    body.has-bottom-nav {
        padding-bottom: 65px;
    }

    .icon-header-item {
        width: 40px;
        height: 40px;
        font-size: 19px;
    }

    .bottom-nav-item {
        min-height: 40px;
    }

    .bottom-nav-item.label-hidden {
        flex-direction: row;
    }

    .bottom-nav-item.label-hidden .bottom-nav-label {
        display: none;
    }

    .product-card:hover .js-show-modal1 {
        display: e !important;
    }
    .product-image a.block2-btn {
        display: none !important;
    }
}

/* ============================================
   EXTRA SMALL DEVICES (Below 360px)
   ============================================ */

@media (max-width: 359px) {
    .bottom-nav-item {
        font-size: 9px;
        gap: 2px;
    }

    .bottom-nav-item i {
        font-size: 20px;
    }

    .bottom-nav-label {
        display: none;
    }
}

/* ============================================
   SMOOTH TRANSITIONS & ANIMATIONS
   ============================================ */

.scroll-transition {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.wrap-header-mobile {
    animation: slideInDown 0.5s ease;
}

.bottom-nav-mobile {
    animation: slideInUp 0.5s ease;
}

/* ============================================
   CART PREVIEW DRAWER
   ============================================ */

.cart-preview-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1098;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-preview-overlay.active {
    display: block;
    opacity: 1;
}

.cart-preview-drawer {
    display: none;
    position: fixed;
    right: -100%;
    top: 0;
    width: 90%;
    max-width: 400px;
    height: 100vh;
    background: white;
    z-index: 1101;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    padding-bottom: max(20px, 20px + env(safe-area-inset-bottom, 0));
}

.cart-preview-drawer.active {
    display: block;
    right: 0;
}

.cart-preview-header {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #ca6eac, #ca6eac);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
}

.cart-preview-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-preview-content {
    padding: 20px;
    min-height: 200px;
}

.cart-preview-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.cart-preview-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    animation: slideInRight 0.3s ease;
}

.cart-preview-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.cart-preview-info {
    flex: 1;
    font-size: 13px;
}

.cart-preview-name {
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

.cart-preview-price {
    color: #ca6eac;
    font-weight: 600;
}

.cart-preview-qty {
    color: #999;
    font-size: 12px;
}

.cart-preview-total {
    padding: 20px;
    border-top: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 16px;
}

.cart-checkout-btn {
    display: block;
    width: calc(100% - 40px);
    margin: 20px;
    padding: 14px;
    background: linear-gradient(135deg, #ca6eac, #ca6eac);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    min-height: 44px;
}
.stext-101 {
    font-size: 13px;
}
.cart-checkout-btn:active {
    transform: scale(0.98);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   PREMIUM EFFECTS & ENHANCEMENTS
   ============================================ */

/* Glass morphism effect for better appearance */
@supports (backdrop-filter: blur(10px)) {
    .wrap-menu-desktop.scrolled,
    .wrap-header-mobile,
    .bottom-nav-mobile {
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(10px);
    }
}

/* Smooth color transitions */
.main-menu > li > a,
.icon-header-item,
.bottom-nav-item {
    -webkit-transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -o-transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -moz-transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Accent gradient color */
.accent-color {
    background: linear-gradient(135deg, #ff6b6b, #ff8c42);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 1199px) {
    .top-bar {
        display: block !important;
        position: static !important;
        height: auto;
        min-height: 35px;
        background-color: #222 !important;
    }
    .top-bar .content-topbar {
        flex-wrap: wrap;
        padding: 5px 10px;
        min-height: 35px;
    }
    .top-bar .left-top-bar {
        flex: 20 !important;
        order: 1;
        font-size: 10px;
        padding: 2px 0;
        text-align: center;
    }
    .top-bar .right-top-bar.flex-w {
        flex: 0 0 auto;
        order: 2;
        margin-left: auto;
    }
    .top-bar .right-top-bar.flex-w a {
        font-size: 11px;
        padding: 4px 10px;
    }
    .top-bar .right-top-bar.flex-w span {
        display: none;
    }
    .top-bar .right-top-bar.flex-w i {
        font-size: 16px;
        margin-right: 0;
    }
    .top-bar marquee {
        font-size: 13px;
    }
    /* Remove fixed positioning from mobile nav - make it static/relative */
    .wrap-header-mobile {
        position: relative !important;
        top: auto !important;
        transform: none !important;
    }
    .wrap-header-mobile.hide-header {
        transform: none !important;
    }
    .container-menu-desktop {
        display: block !important;
    }
    .wrap-menu-desktop {
        display: none !important;
    }
    .headerTop {
        padding: 0 !important;
    }
}
