/* =========================================================
   ESHA Corporation — Brand: Black #111111 | Red #E31E24 | White
   ========================================================= */
:root {
    --esha-black: #111111;
    --esha-dark: #1C1C1C;
    --esha-red: #E31E24;
    --esha-red2: #C1141A;
    --esha-light: #F5F5F5;
}

html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; }
.no-scroll { overflow: hidden; }

/* ---------- Desktop nav ---------- */
.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: .5rem;
    height: 100%;
    padding: 1rem 1.1rem;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    white-space: nowrap;
    transition: background .3s, color .3s;
}
@media (min-width: 1280px) { .nav-link { font-size: 14px; padding: 1rem 1.35rem; } }

.nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 3px;
    background: var(--esha-red);
    transform: translateX(-50%);
    transition: width .3s ease;
}
.group:hover > .nav-link,
.nav-link.active { background: var(--esha-dark); }
.group:hover > .nav-link::after,
.nav-link.active::after { width: 100%; }

.nav-chev { font-size: 9px; transition: transform .3s; }
.group:hover .nav-chev { transform: rotate(180deg); }

/* ---------- Dropdown (pure CSS hover) ---------- */
.dropdown {
    position: absolute;
    top: 100%;
    z-index: 50;
    padding-top: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all .3s ease;
}
.group:hover > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dd-box {
    background: #fff;
    border-top: 4px solid var(--esha-red);
    border-radius: 0 0 .75rem .75rem;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .25);
    padding: .5rem 0;
    overflow: hidden;
}
.dd-box li { border-bottom: 1px solid #f1f1f1; }
.dd-box li:last-child { border-bottom: 0; }

.dd-link {
    position: relative;
    display: block;
    padding: .75rem 1.25rem;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    transition: all .3s ease;
}
.dd-link::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 3px; height: 100%;
    background: var(--esha-red);
    transform: scaleY(0);
    transition: transform .3s ease;
}
.dd-link:hover {
    color: var(--esha-red);
    background: var(--esha-light);
    padding-left: 1.75rem;
}
.dd-link:hover::before { transform: scaleY(1); }

/* Account dropdown links */
.acc-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem 1.1rem;
    font-size: 14px;
    color: #374151;
    transition: all .25s;
}
.acc-link i { width: 1rem; color: var(--esha-red); }
.acc-link:hover { background: var(--esha-light); color: var(--esha-red); padding-left: 1.4rem; }

/* ---------- Mobile sidebar (static <details> accordion) ---------- */
.m-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .8rem 1.25rem;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    list-style: none;
    border-bottom: 1px solid #f1f1f1;
    transition: color .25s;
}
.m-link:hover { color: var(--esha-red); }
summary.m-link::-webkit-details-marker { display: none; }
summary.m-link::marker { content: ''; }

.m-icon {
    width: 2.25rem; height: 2.25rem;
    display: grid; place-items: center;
    border-radius: .5rem;
    background: var(--esha-black);
    color: #fff;
    font-size: 13px;
    flex-shrink: 0;
}
.m-acc[open] > summary { color: var(--esha-red); }
.m-acc[open] > summary .m-icon { background: var(--esha-red); }

.m-sub { background: #fafafa; padding: .4rem 0; border-bottom: 1px solid #f1f1f1; }
.m-sub a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem 1.25rem .6rem 4.25rem;
    font-size: 14px;
    color: #4b5563;
    transition: color .25s;
}
.m-sub a::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 9999px;
    background: var(--esha-red);
    flex-shrink: 0;
}
.m-sub a:hover { color: var(--esha-red); }

/* ---------- Banner slider ---------- */
/* Full image on every device — never cropped */
.banner-img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    user-select: none;
    -webkit-user-drag: none;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem; height: 2rem;
    display: grid; place-items: center;
    border-radius: 9999px;
    background: rgba(255, 255, 255, .9);
    color: var(--esha-black);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
    transition: all .3s;
}
.slider-arrow:hover { background: var(--esha-red); color: #fff; }
@media (min-width: 640px) {
    .slider-arrow { width: 2.75rem; height: 2.75rem; opacity: 0; }
    #slider:hover .slider-arrow { opacity: 1; }
}
/* Small phones: smaller arrows & dots so they don't cover the banner */
@media (max-width: 479px) {
    .slider-arrow { width: 1.75rem; height: 1.75rem; }
}

.dot {
    height: 8px; width: 8px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, .7);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
    transition: all .3s;
}
@media (min-width: 640px) { .dot { height: 10px; width: 10px; } }
.dot.active { width: 24px; background: var(--esha-red); }
@media (min-width: 640px) { .dot.active { width: 28px; } }

/* ---------- Footer ---------- */
.social-btn {
    width: 2.5rem; height: 2.5rem;
    display: grid; place-items: center;
    border-radius: 9999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
    transition: all .3s;
}
.social-btn:hover { background: var(--esha-red); border-color: var(--esha-red); transform: translateY(-4px); }

.f-list { font-size: 14px; color: rgba(255, 255, 255, .8); }
.f-list li + li { margin-top: .75rem; }
.f-list a { display: inline-flex; align-items: center; gap: .6rem; transition: all .3s; }
.f-list a i { font-size: 9px; color: var(--esha-red); }
.f-list a:hover { color: #fff; transform: translateX(4px); }

.f-icon {
    width: 2.5rem; height: 2.5rem;
    flex-shrink: 0;
    display: grid; place-items: center;
    border-radius: .5rem;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    color: var(--esha-red);
    transition: all .3s;
}
.group:hover .f-icon { background: var(--esha-red); color: #fff; border-color: var(--esha-red); }

.pay-badge {
    height: 2rem; width: 3.5rem;
    display: grid; place-items: center;
    background: #fff;
    border-radius: .375rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}

/* ---------- Misc ---------- */
.thin-scroll::-webkit-scrollbar { width: 5px; }
.thin-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

@keyframes ring {
    0% { transform: scale(1); opacity: .6 }
    100% { transform: scale(1.7); opacity: 0 }
}
.ring-pulse::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background: inherit;
    animation: ring 1.8s ease-out infinite;
    z-index: -1;
}

/* ---------- Category / product sliders (other sections) ---------- */
#catTrack, .ps-track, .pd-thumbs { scrollbar-width: none; }
#catTrack::-webkit-scrollbar, .ps-track::-webkit-scrollbar, .pd-thumbs::-webkit-scrollbar { display: none; }

.cat-card { flex: 0 0 calc((100% - 0.75rem) / 2); }
@media (min-width: 640px) { .cat-card { flex-basis: calc((100% - 2rem) / 3); } }
@media (min-width: 768px) { .cat-card { flex-basis: calc((100% - 3rem) / 4); } }
@media (min-width: 1024px) { .cat-card { flex-basis: calc((100% - 5rem) / 6); } }
@media (min-width: 1280px) { .cat-card { flex-basis: calc((100% - 7rem) / 8); } }

.ps-card { flex: 0 0 calc((100% - 0.75rem) / 2); }
@media (min-width: 640px) { .ps-card { flex-basis: calc((100% - 2rem) / 3); } }
@media (min-width: 768px) { .ps-card { flex-basis: calc((100% - 3rem) / 4); } }
@media (min-width: 1024px) { .ps-card { flex-basis: calc((100% - 5rem) / 5); } }

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .wcu-panel { clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%); }
}

.pd-zoom-img { transition: transform .25s ease; }