/* =========================================================
   Mahadi Fashion – custom styles
   Main color : #3E8E5E (green)
   Dark       : #163B26   Accent : #E9B949 (gold)
   ========================================================= */

body {
    font-family: 'Poppins', sans-serif;
}

body.no-scroll {
    overflow: hidden;
}

/* ---------- Top bar (light green) + marquee ---------- */
.topbar-label {
    position: relative;
    z-index: 2;
    clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
    padding-right: 1.9rem;
}

.marquee {
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.marquee-group span {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: 0 1.9rem;
    white-space: nowrap;
    position: relative;
    color: #163B26;
    font-weight: 500;
    letter-spacing: .02em;
}

.marquee-group span i {
    color: #3E8E5E;
    font-size: 11px;
}

.marquee-group span b {
    color: #3E8E5E;
    font-weight: 700;
}

/* gold diamond between items */
.marquee-group span::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    background: #E9B949;
    transform: translate(50%, -50%) rotate(45deg);
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none;
    }
}

/* Navbar + dropdown + mobile sidebar are now styled with Tailwind classes in the HTML */

/* ---------- Thin scrollbar ---------- */
.thin-scroll::-webkit-scrollbar {
    width: 6px;
}

.thin-scroll::-webkit-scrollbar-thumb {
    background: #bfdcc9;
    border-radius: 10px;
}

.thin-scroll::-webkit-scrollbar-track {
    background: transparent;
}

/* ---------- Slider (image never cropped: w-full h-auto) ---------- */
.slide-tag {
    display: inline-block;
    width: fit-content;
    background: #3E8E5E;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 3px;
}

.slide-tag-red {
    background: #E41E26;
}

.slide-title {
    margin-top: .6rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.12;
    font-size: 22px;
    max-width: 34rem;
}

.slide-text {
    margin-top: .5rem;
    font-size: 12px;
    color: rgba(255, 255, 255, .88);
    max-width: 26rem;
    display: none;
}

.slide-btns {
    margin-top: .9rem;
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.btn-primary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    height: 34px;
    padding: 0 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    transition: all .3s;
}

.btn-primary {
    background: #3E8E5E;
    color: #fff;
}

.btn-primary:hover {
    background: #fff;
    color: #3E8E5E;
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, .85);
    color: #fff;
}

.btn-outline:hover {
    background: #fff;
    color: #3E8E5E;
}

@media (min-width: 640px) {
    .slide-tag {
        font-size: 11px;
        padding: 6px 14px;
    }

    .slide-title {
        font-size: 36px;
        margin-top: 1rem;
    }

    .slide-text {
        display: block;
        font-size: 14px;
        margin-top: .9rem;
    }

    .slide-btns {
        margin-top: 1.4rem;
    }

    .btn-primary,
    .btn-outline {
        height: 44px;
        padding: 0 26px;
        font-size: 14px;
    }
}

@media (min-width: 1024px) {
    .slide-title {
        font-size: 54px;
    }

    .slide-text {
        font-size: 16px;
    }

    .btn-primary,
    .btn-outline {
        height: 50px;
        padding: 0 32px;
    }
}

/* text animation */
.slide .slide-content>* {
    opacity: 0;
    transform: translateY(20px);
    transition: all .7s ease;
}

.slide.is-active .slide-content>* {
    opacity: 1;
    transform: translateY(0);
}

.slide.is-active .slide-content>*:nth-child(2) {
    transition-delay: .15s;
}

.slide.is-active .slide-content>*:nth-child(3) {
    transition-delay: .3s;
}

.slide.is-active .slide-content>*:nth-child(4) {
    transition-delay: .45s;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    color: #3E8E5E;
    font-size: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
    transition: all .3s;
}

.slider-arrow:hover {
    background: #3E8E5E;
    color: #fff;
}

@media (min-width: 640px) {
    .slider-arrow {
        width: 48px;
        height: 48px;
        font-size: 15px;
        opacity: 0;
    }

    #slider:hover .slider-arrow {
        opacity: 1;
    }
}

#sliderDots .dot {
    width: 9px;
    height: 9px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, .6);
    transition: all .3s;
}

#sliderDots .dot.active {
    width: 28px;
    background: #E9B949;
}

#sliderProgress {
    width: 0;
}

#sliderProgress.run {
    width: 100%;
    transition: width 5s linear;
}

/* ---------- Feature strip ---------- */
.feature {
    display: flex;
    align-items: center;
    gap: .8rem;
}

.feature-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #E9F4ED;
    color: #3E8E5E;
    font-size: 17px;
    transition: all .3s;
}

.feature:hover .feature-icon {
    background: #3E8E5E;
    color: #fff;
}

.feature h6 {
    font-size: 14px;
    font-weight: 600;
    color: #163B26;
}

.feature p {
    font-size: 12px;
    color: #6b7280;
}

/* ---------- Footer ---------- */
.footer-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 1.4rem;
    position: relative;
    padding-bottom: .7rem;
}

.footer-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 2px;
    background: #E9B949;
}

.footer-links li+li {
    margin-top: .75rem;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, .7);
    transition: all .3s;
    display: inline-block;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(5px);
}

.social a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
    font-size: 14px;
    transition: all .3s;
}

.social a:hover {
    background: #3E8E5E;
    border-color: #3E8E5E;
    transform: translateY(-3px);
}

.contact-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(62, 142, 94, .25);
    color: #7fc89c;
}

.pay {
    height: 30px;
    min-width: 52px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
}

/* ---------- Floating button pulse ---------- */
.ring-pulse::before,
.ring-pulse::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background: inherit;
    z-index: -1;
    animation: pulse 2s ease-out infinite;
}

.ring-pulse::after {
    animation-delay: 1s;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: .6;
    }

    100% {
        transform: scale(1.7);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {

    .marquee-track,
    .ring-pulse::before,
    .ring-pulse::after {
        animation: none;
    }
}

/* category section */

/* ---------- Popular Category marquee ---------- */
.cat-marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.cat-track {
    display: flex;
    width: max-content;
    animation: catScroll 40s linear infinite;
}

.cat-marquee:hover .cat-track {
    animation-play-state: paused;
}

.cat-group {
    display: flex;
    flex-shrink: 0;
}

@keyframes catScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.cat-card {
    display: block;
    width: 150px;
    margin: 0 8px;
    text-align: center;
}

@media (min-width: 640px) {
    .cat-card {
        width: 200px;
        margin: 0 12px;
    }
}

@media (min-width: 1024px) {
    .cat-card {
        width: 240px;
    }
}

.cat-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    background: #E9F4ED;
    border: 3px solid #fff;
    box-shadow: 0 8px 24px rgba(22, 59, 38, .08);
    transition: all .4s;
}

.cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s ease;
}

.cat-img::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 11px;
    background: rgba(62, 142, 94, 0);
    transition: background .4s;
}

.cat-card:hover .cat-img {
    border-color: #3E8E5E;
    box-shadow: 0 14px 30px rgba(62, 142, 94, .25);
    transform: translateY(-4px);
}

.cat-card:hover .cat-img img {
    transform: scale(1.08);
}

.cat-card:hover .cat-img::after {
    background: rgba(62, 142, 94, .12);
}

.cat-card h3 {
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
    color: #163B26;
    letter-spacing: .03em;
    text-transform: uppercase;
    transition: color .3s;
}

@media (min-width: 640px) {
    .cat-card h3 {
        font-size: 16px;
    }
}

.cat-card:hover h3 {
    color: #3E8E5E;
}


@media (prefers-reduced-motion: reduce) {
    .cat-track {
        animation: none;
    }
}


/* start */
/* ---------- New Arrival (auto slider) ---------- */
.new-arrival {
    background: #fff;
}

/* heading */
.na-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 1.25rem;
}

.na-line {
    flex: 1;
    max-width: 340px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3E8E5E);
}

.na-line-r {
    background: linear-gradient(90deg, #3E8E5E, transparent);
}

.na-ribbon {
    position: relative;
    padding: 10px 34px;
    min-width: 210px;
    text-align: center;
    background: linear-gradient(135deg, #3E8E5E 0%, #25603D 100%);
    clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
    box-shadow: 0 10px 25px rgba(62, 142, 94, .3);
}

.na-ribbon h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #fff;
    font-size: 20px;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.na-ribbon h2 span {
    color: #E9B949;
    font-style: italic;
}

@media (min-width: 768px) {
    .na-ribbon {
        padding: 12px 56px;
        min-width: 320px;
    }

    .na-ribbon h2 {
        font-size: 30px;
    }
}

/* slider */
.na-slider {
    position: relative;
}

.na-viewport {
    overflow: hidden;
    margin: 0 -6px;
    padding: 6px 0 14px;
}

.na-track {
    display: flex;
    will-change: transform;
}

.na-item {
    flex: 0 0 50%;
    padding: 0 6px;
}

@media (min-width: 768px) {
    .na-item {
        flex-basis: 33.3333%;
        padding: 0 8px;
    }

    .na-viewport {
        margin: 0 -8px;
    }
}

@media (min-width: 1024px) {
    .na-item {
        flex-basis: 25%;
    }
}

/* Desktop: exact 300 x 400 image, 4 products in a row (300 + 16 gap = 316) */
@media (min-width: 1280px) {
    .na-item {
        flex: 0 0 316px;
    }

    .na-viewport {
        width: 1264px;
        max-width: calc(100% + 16px);
    }
}

.na-arrow {
    position: absolute;
    top: 38%;
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: none;
    place-items: center;
    background: #fff;
    color: #3E8E5E;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
    opacity: 0;
    transition: all .3s;
}

.na-prev {
    left: -12px;
}

.na-next {
    right: -12px;
}

.na-slider:hover .na-arrow {
    opacity: 1;
}

.na-arrow:hover {
    background: #3E8E5E;
    color: #fff;
}

@media (min-width: 1024px) {
    .na-arrow {
        display: grid;
    }
}

/* card – white product card */
.na-card {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    /* border made with shadow so the image stays exactly 300 x 400 */
    box-shadow: 0 0 0 1px #e4ece6, 0 4px 14px rgba(22, 59, 38, .06);
    transition: transform .4s ease, box-shadow .4s ease;
}

.na-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 0 1px #cfe3d6, 0 16px 32px rgba(22, 59, 38, .14);
}

.na-img {
    position: relative;
    display: block;
    aspect-ratio: 300 / 400;
    overflow: hidden;
    background: #E9F4ED;
    border-radius: 0;
}

@media (min-width: 1280px) {
    .na-img {
        width: 300px;
        height: 400px;
    }
}

.na-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* main image: slow zoom on hover */
.na-img-main {
    transition: transform .9s ease;
}

.na-card:hover .na-img-main {
    transform: scale(1.06);
}

/* hover image: slides in from the right */
.na-img-hover {
    transform: translateX(100%);
    transition: transform .6s cubic-bezier(.4, 0, .2, 1);
}

.na-card:hover .na-img-hover {
    transform: translateX(0);
}

/* NEW tag (white box, top-right) */
.na-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: #fff;
    color: #163B26;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    padding: 5px 9px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

@media (min-width: 768px) {
    .na-tag {
        top: 14px;
        right: 14px;
        font-size: 11px;
        padding: 7px 14px;
    }
}

/* wishlist heart (top-left, outline) */
.na-wish {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    color: #1f2937;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    transition: all .3s;
}

.na-wish:hover {
    background: rgba(255, 255, 255, .85);
    color: #3E8E5E;
}

.na-wish.active {
    color: #E41E26;
}

.na-wish.active i {
    animation: heartPop .35s ease;
}

@keyframes heartPop {
    50% {
        transform: scale(1.35);
    }
}

@media (min-width: 768px) {
    .na-wish {
        top: 12px;
        left: 12px;
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
}

/* text under image */
.na-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 12px 10px 12px;
    text-align: center;
    border-top: 1px solid #eef3ef;
}

@media (min-width: 768px) {
    .na-body {
        padding: 14px 16px 16px;
    }
}

.na-title {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    font-weight: 500;
    color: #1f2937;
    transition: color .3s;
}

.na-card:hover .na-title {
    color: #3E8E5E;
}

@media (min-width: 768px) {
    .na-title {
        font-size: 15px;
    }
}

.na-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px 8px;
    margin-top: 4px;
    margin-bottom: auto;
}

.na-new {
    font-size: 14px;
    font-weight: 700;
    color: #3E8E5E;
}

.na-old {
    font-size: 11px;
    color: #9ca3af;
    text-decoration: line-through;
}

.na-off {
    font-size: 11px;
    font-weight: 600;
    color: #E41E26;
}

@media (min-width: 768px) {
    .na-new {
        font-size: 17px;
    }

    .na-old,
    .na-off {
        font-size: 13px;
    }
}

/* Buy Now button */
.na-btn {
    width: 100%;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 34px;
    border-radius: 4px;
    background: #3E8E5E;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: all .3s;
}

.na-btn i {
    font-size: 12px;
}

.na-btn:hover {
    background: #163B26;
}

@media (min-width: 768px) {
    .na-btn {
        height: 40px;
        margin-top: 10px;
        font-size: 13px;
    }
}

.na-viewall {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 28px;
    border: 2px solid #3E8E5E;
    border-radius: 6px;
    color: #3E8E5E;
    font-size: 14px;
    font-weight: 600;
    transition: all .3s;
}

.na-viewall:hover {
    background: #3E8E5E;
    color: #fff;
}

.na-viewall i {
    font-size: 12px;
    transition: transform .3s;
}

.na-viewall:hover i {
    transform: translateX(4px);
}

/* end */

/* start */
/* ---------- Best Selling (4 products, no slider) ----------
   Uses the same card styles as New Arrival (.na-card, .na-img, .na-btn ...) */
.best-selling {
    background: #F5FAF7;
}

/* heading row */
.bs-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 22px;
    border-bottom: 1px solid #dcebe1;
    position: relative;
}

.bs-head::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 70px;
    height: 3px;
    background: #3E8E5E;
    border-radius: 3px;
}

.bs-sub {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #3E8E5E;
    margin-bottom: 4px;
}

.bs-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #163B26;
    font-size: 22px;
    line-height: 1.1;
}

.bs-title span {
    color: #3E8E5E;
    font-style: italic;
}

.bs-more {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 14px;
    border: 1.5px solid #3E8E5E;
    border-radius: 4px;
    color: #3E8E5E;
    font-size: 12px;
    font-weight: 600;
    transition: all .3s;
}

.bs-more i {
    font-size: 10px;
    transition: transform .3s;
}

.bs-more:hover {
    background: #3E8E5E;
    color: #fff;
}

.bs-more:hover i {
    transform: translateX(4px);
}

@media (min-width: 768px) {
    .bs-head {
        margin-bottom: 30px;
        padding-bottom: 18px;
    }

    .bs-sub {
        font-size: 11px;
    }

    .bs-title {
        font-size: 34px;
    }

    .bs-more {
        height: 42px;
        padding: 0 22px;
        font-size: 14px;
    }
}

/* grid: mobile 2 | tablet & desktop 4 */
.bs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 12px;
}

@media (min-width: 768px) {
    .bs-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 28px 16px;
    }
}

/* product image 300 x 400 (3:4) – exact 300 x 400 on desktop */
.bs-item .na-img {
    aspect-ratio: 300 / 400;
}

@media (min-width: 1280px) {
    .bs-grid {
        grid-template-columns: repeat(4, 300px);
        justify-content: space-between;
    }

    .bs-item .na-img {
        width: 300px;
        height: 400px;
    }
}

/* ===== product card (white box) ===== */
.bs-item .na-card {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    /* border made with shadow so the image stays exactly 300 x 400 */
    box-shadow: 0 0 0 1px #e4ece6, 0 4px 14px rgba(22, 59, 38, .06);
    transition: transform .4s ease, box-shadow .4s ease;
}

.bs-item .na-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 0 1px #cfe3d6, 0 16px 32px rgba(22, 59, 38, .14);
}

.bs-item .na-img {
    border-radius: 0;
}

/* heart on white circle so it shows on any image */
.bs-item .na-wish {
    background: rgba(255, 255, 255, .9);
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

@media (min-width: 768px) {
    .bs-item .na-wish {
        font-size: 18px;
    }
}

/* text area inside the card */
.bs-item .na-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 12px 10px;
    text-align: center;
    border-top: 1px solid #eef3ef;
}

@media (min-width: 768px) {
    .bs-item .na-body {
        padding: 14px 16px 16px;
    }
}

/* keeps all Buy Now buttons on one line */
.bs-item .na-price {
    margin-bottom: auto;
}

/* end */