
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
*,
*::before,
*::after {
    box-sizing: border-box;
}

body,
.main-header,
.main-nav,
a,
input,
button {
    font-family: 'Inter', -apple-system, sans-serif;
}

.hdr-topstrip {
    background: #fff8f5;
    border-bottom: 1px solid #ffe5d8;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hdr-topstrip-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.hdr-topstrip-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 11px;
    font-weight: 500;
}

.hdr-topstrip-item svg {
    color: var(--base-color);
    flex-shrink: 0;
}

.hdr-topstrip-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hdr-topstrip-right a {
    font-size: 11px;
    font-weight: 600;
    color: var(--base-color) !important;
    text-decoration: none !important;
    transition: opacity .15s;
}

.hdr-topstrip-right a:hover {
    opacity: .7;
}

@media(max-width:767px) {
    .hdr-topstrip {
        display: none !important;
    }
}

.main-header {
    background: #fff;
    padding: 1px;
    border-bottom: 1px solid #f0f0f0;
    box-shadow: 0 1px 8px rgba(0, 0, 0, .05);
    transition: box-shadow .25s;
    animation: hdr-in .45s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes hdr-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-header.scrolled {
    box-shadow: 0 2px 18px rgba(0, 0, 0, .10);
}

.logo {
    height: 100px;
    object-fit: contain;
    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), opacity .2s;
    padding: 5px 0;
}

.logo:hover {
    transform: scale(1.05);
    opacity: .92;
}

.hdr-brand-name {
    font-size: 32px;
    font-weight: 700;
    color: #e40000;
    letter-spacing: -.02em;
    margin-left: 6px;
    font-family: serif;
    vertical-align: middle;
    width: 100%;
}

.hdr-search {
    position: relative;
}

.hdr-search input {
    width: 100%;
    height: 30px;
    padding: 0 42px 0 14px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    border: 1.5px solid #e8e8e8;
    border-radius: 8px;
    outline: none;
    color: #222;
    background: #fafafa;
    transition: border-color .2s, background .2s, box-shadow .2s;
}

.hdr-search input:focus {
    border-color: var(--base-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(248, 86, 6, .1);
}

.hdr-search input::placeholder {
    color: #bbb;
    font-size: 12.5px;
}

#search-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 30px !important;
    width: 38px;
    height: 38px;
    background: var(--base-color);
    border: none;
    border-radius: 0 8px 8px 0;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, transform .15s;
}

#search-btn:hover {
    background: var(--base-color);
    transform: scaleX(1.04);
}

#search-btn:active {
    transform: scaleX(.97);
}

.hdr-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .13);
    z-index: 99999;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    animation: drop-in .2s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes drop-in {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(.99);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hdr-skel-wrap {
    padding: 6px 0;
}

.hdr-skel-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-bottom: 1px solid #f7f7f7;
}

.hdr-skel-img {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    flex-shrink: 0;
}

.hdr-skel-lines {
    flex: 1;
}

.hdr-skel-line {
    height: 9px;
    border-radius: 5px;
    display: block;
}

.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #fafafa 50%, #f0f0f0 75%);
    background-size: 300% 100%;
    animation: shimmer 1.3s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.hdr-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-bottom: 1px solid #f7f7f7;
    text-decoration: none !important;
    color: inherit;
    transition: background .15s;
}

.hdr-result-item:last-child {
    border-bottom: none;
}

.hdr-result-item:hover {
    background: #fff8f5;
}

.hdr-result-item:hover .hdr-ri-title {
    color: #f85606;
}

.hdr-ri-img {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    border: 1px solid #f0f0f0;
}

.hdr-ri-info {
    flex: 1;
    min-width: 0;
}

.hdr-ri-title {
    font-size: 12.5px;
    font-weight: 600;
    color: #222;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .13s;
}

.hdr-ri-price {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--base-color);
    margin: 2px 0 0;
}

.hdr-ri-arrow {
    color: #d0d0d0;
    flex-shrink: 0;
    transition: transform .15s, color .15s;
}

.hdr-result-item:hover .hdr-ri-arrow {
    transform: translateX(3px);
    color: var(--base-color);
}

.hdr-no-result {
    padding: 16px 12px;
    text-align: center;
    font-size: 12.5px;
    color: #bbb;
}

.hdr-see-all {
    display: block;
    text-align: center;
    padding: 9px;
    font-size: 12px;
    font-weight: 700;
    color: var(--base-color);
    border-top: 1px solid #f5f5f5;
    text-decoration: none !important;
    transition: background .13s;
}

.hdr-see-all:hover {
    background: #fff8f5;
}

.hdr-welcome {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    display: none;
}

@media(min-width:992px) {
    .hdr-welcome {
        display: inline;
    }
}

.hdr-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--base-color);
    cursor: pointer;
    transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s;
}

.hdr-avatar:hover {
    transform: scale(1.12);
    box-shadow: 0 0 0 3px rgba(248, 86, 6, .2);
}

.hdr-profile-wrap {
    position: relative;
}

.hdr-dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: #fff;
    border-radius: 10px;
    list-style: none;
    padding: 4px 0;
    margin: 0;
    min-width: 148px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .11);
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px) scale(.97);
    transform-origin: top right;
    transition: opacity .18s, transform .18s cubic-bezier(.16, 1, .3, 1);
}

.hdr-dropdown-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.hdr-dropdown-menu li+li {
    border-top: 1px solid #f7f7f7;
}

.hdr-dropdown-menu li a,
.hdr-dropdown-menu li button {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    padding: 9px 14px;
    font-size: 12.5px;
    font-weight: 500;
    color: #333;
    text-decoration: none !important;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background .13s, color .13s;
    font-family: 'Inter', sans-serif;
}

.hdr-dropdown-menu li a:hover,
.hdr-dropdown-menu li button:hover {
    background: #fff8f5;
    color: var(--base-color);
}

.hdr-auth-link {
    font-size: 12.5px;
    font-weight: 600;
    color: #555 !important;
    text-decoration: none !important;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all .15s;
}

.hdr-auth-link:hover {
    color: var(--base-color) !important;
    background: #fff4f0;
}

.hdr-auth-outline {
    border: 1.5px solid var(--base-color);
    color: var(--base-color) !important;
}

.hdr-auth-outline:hover {
    background: var(--base-color);
    color: #fff !important;
}

.hdr-cart {
    position: relative;
    color: #444;
    display: flex;
    align-items: center;
    padding: 5px;
    border-radius: 8px;
    transition: color .15s, background .15s, transform .2s cubic-bezier(.34, 1.56, .64, 1);
    text-decoration: none !important;
}

.hdr-cart:hover {
    color: var(--base-color);
    background: #fff4f0;
    transform: scale(1.1);
}

.hdr-cart svg {
    transition: transform .2s;
}

.hdr-cart:hover svg {
    transform: rotate(-12deg);
}

.hdr-cart-count {
    position: absolute;
    top: -2px;
    right: -4px;
    background: var(--base-color);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    border: 2px solid #fff;
    animation: badge-pop .3s cubic-bezier(.34, 1.56, .64, 1) both;
}

@keyframes badge-pop {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.hdr-ham {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    border-radius: 6px;
    transition: background .15s;
}

.hdr-ham:hover {
    background: #fff4f0;
}

.hdr-ham svg line {
    transition: transform .28s cubic-bezier(.16, 1, .3, 1), opacity .2s;
    transform-origin: center;
}

.hdr-ham.active svg line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.hdr-ham.active svg line:nth-child(2) {
    opacity: 0;
}

.hdr-ham.active svg line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.main-nav {
    background: var(--logo-color);
    padding: 0;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
}

.nav-menu li{
    display: flex;
    align-items: center;
}

 .nav-menu li a {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 17px 18px;
    border-radius: 1px;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: background .15s;
    letter-spacing: -.01em;
    text-decoration: none !important;
    text-align: center;
    margin: 1px 0;
} 

.nav-menu li .cat_a {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 1px;
    transition: background .15s;
    letter-spacing: -.01em;
    text-decoration: none !important;

    /* max-width: 110px; */
    /* overflow: hidden; */
    /* text-overflow: ellipsis; */
    /* white-space: nowrap; */
    display: block;
    padding: 7px 12px;
    text-align: center;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: white;
    color: var(--logo-color);
}

.pd-parent {
    position: relative;
}

.pd-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    display: flex;
    background: #fff;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, .13);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease;
    transform: translateY(-6px);
    border-top: 2.5px solid var(--base-color);
    min-width: 420px;
    overflow: hidden;
}

.pd-parent:hover .pd-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pd-cat-list {
    width: 168px;
    flex-shrink: 0;
    background: #fff8f5;
    border-right: 1px solid #ffe5d8;
    padding: 8px 0;
    max-height: 320px;
    overflow-y: auto;
}

.pd-cat-list::-webkit-scrollbar {
    width: 3px;
}

.pd-cat-list::-webkit-scrollbar-thumb {
    background: #f8c9b3;
    border-radius: 3px;
}

.pd-cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    font-size: 12px;
    font-weight: 500;
    color: #555;
    text-decoration: none !important;
    border-left: 3px solid transparent;
    cursor: pointer;
    transition: all .15s;
}

.pd-cat-item:hover,
.pd-cat-item.pd-cat-active {
    background: #fff;
    color: var(--base-color);
    border-left-color: var(--base-color);
    font-weight: 600;
}

.pd-sub-list {
    flex: 1;
    padding: 12px 16px;
    max-height: 320px;
    overflow-y: auto;
}

.pd-sub-list::-webkit-scrollbar {
    width: 3px;
}

.pd-sub-list::-webkit-scrollbar-thumb {
    background: #f8c9b3;
    border-radius: 3px;
}

.pd-sub-panel {
    display: none;
}

.pd-sub-panel.pd-sub-active {
    display: block;
    animation: fade-in .18s ease;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateX(4px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.pd-sub-title {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--base-color);
    margin: 0 0 8px;
    padding-bottom: 7px;
    border-bottom: 1.5px solid #ffe5d8;
}

.pd-sub-item {
    display: block;
    font-size: 12px;
    color: #444;
    padding: 7px 0;
    text-decoration: none !important;
    border-bottom: 1px solid #fef4f0;
    transition: color .12s, padding-left .15s !important;
}

.pd-sub-item:last-child {
    border-bottom: none;
}

.pd-sub-item:hover {
    color: var(--base-color);
    padding-left: 6px;
}

.pd-sub-empty {
    font-size: 11px;
    color: #ccc;
    margin: 20px 0;
    text-align: center;
    font-style: italic;
}

/* ── MOBILE SIDEBAR ── */
#mobileSidebar {
    position: fixed;
    top: 0;
    left: -270px;
    width: 250px;
    height: 100%;
    background: var(--base-color);
    z-index: 9999;
    transition: left .3s cubic-bezier(.16, 1, .3, 1);
    padding: 20px 16px;
    box-shadow: 4px 0 24px rgba(0, 0, 0, .15);
}

#mobileSidebar.active {
    left: 0;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .3);
    z-index: 9998;
    display: none;
}

.sidebar-overlay.active {
    display: block;
}

#closeSidebar {
    background: rgba(255, 255, 255, .2);
    border: none;
    color: #fff;
    font-size: 18px;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: background .15s;
}

#closeSidebar:hover {
    background: rgba(255, 255, 255, .3);
}

.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-links li a {
    display: block;
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    padding: 11px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
    text-decoration: none !important;
    transition: padding-left .15s, opacity .15s;
}

.sidebar-links li a:hover {
    padding-left: 10px;
    opacity: .85;
}

.sidebar-links li:last-child a {
    border-bottom: none;
}

/* ── CART DRAWER ── */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    transition: right .3s cubic-bezier(.16, 1, .3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 24px rgba(0, 0, 0, .12);
}

.cart-drawer.active {
    right: 0;
}

.cart-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .28);
    display: none;
    z-index: 9999;
}

.cart-backdrop.active {
    display: block;
}

a {
    text-decoration: none !important;
}

@media(max-width:767px) {
    .main-nav {
        display: none;
    }

    .pd-dropdown {
        display: none !important;
    }
}

/* ── NEW: EXTRA RIGHT SIDE ELEMENTS ── */

/* wishlist */
.hdr-wishlist {
    position: relative;
    display: flex;
    align-items: center;
    color: #888;
    padding: 5px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: color .15s, background .15s, transform .2s cubic-bezier(.34, 1.56, .64, 1);
}

.hdr-wishlist:hover {
    color: #e53e3e;
    background: #fff5f5;
    transform: scale(1.1);
}

.hdr-wishlist:hover svg {
    animation: heartbeat .4s ease;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.28);
    }

    60% {
        transform: scale(.95);
    }
}

/* user pill (logged in) */
.hdr-user-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #fff8f5;
    border: 1.5px solid #ffd5c0;
    border-radius: 50px;
    padding: 4px 12px 4px 4px;
    cursor: pointer;
    transition: background .2s, border-color .2s, box-shadow .2s;
}

.hdr-user-pill:hover {
    background: #fff4ee;
    border-color: var(--base-color);
    box-shadow: 0 2px 10px rgba(248, 86, 6, .12);
}

.hdr-user-pill-text {
    line-height: 1.2;
}

.hdr-user-pill-label {
    font-size: 9px;
    color: #bbb;
    font-weight: 500;
    display: block;
}

.hdr-user-pill-name {
    font-size: 12px;
    color: #1a1a1a;
    font-weight: 700;
    display: block;
    max-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* my orders btn */
.hdr-track {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 50px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    color: #166534;
    text-decoration: none !important;
    transition: background .2s, box-shadow .2s;
    white-space: nowrap;
}

.hdr-track:hover {
    background: #dcfce7;
    box-shadow: 0 2px 10px rgba(34, 197, 94, .15);
    color: #166534;
}

.hdr-track svg {
    color: #22c55e;
}

/* guest block */
.hdr-guest-block {
    display: flex;
    align-items: center;
    gap: 7px;
    border-right: 1px solid #f0f0f0;
    padding-right: 12px;
    margin-right: 2px;
}

.hdr-guest-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff4f0;
    border: 1.5px solid rgba(172, 8, 8, 0.39);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
}

.hdr-guest-icon svg {
    color: var(--base-color);
}

.hdr-guest-label {
    display: block;
    font-size: 9.5px;
    color: #aaa;
    font-weight: 500;
}

.hdr-guest-cta {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--base-color);
}

@media(max-width:1199px) {
    .hdr-track {
        display: none !important;
    }
}

@media(max-width:991px) {
    .hdr-guest-block {
        display: none !important;
    }
}

@media(max-width:767px) {
    .hdr-wishlist {
        display: none !important;
    }
    .logo{
        height: 32px;
    }
}