/* Storefront — shared tokens, product cards, rails and footer. Loaded on every page. */

:root {
    --pd-ink: #16241d;
    --pd-muted: #5f6d66;
    --pd-line: #e2e8e4;
    --pd-green: #24a86c;
    --pd-green-deep: #137a4b;
    --pd-green-dark: #0e6139;
    --pd-mint: #edf7f1;
    --pd-leaf: #9fe0bf;
    --pd-forest: #0f3325;
    --pd-red: #d23a2e;
    --pd-sunk: #f4f6f5;
    --pd-ring: 0 0 0 3px rgba(19, 122, 75, .35);
    --pd-font: 'Anek Bangla', 'Hind Siliguri', 'Noto Sans Bengali', system-ui, sans-serif;
}

.pd {
    font-family: var(--pd-font);
    color: var(--pd-ink);
    padding-block: 20px 32px;
}

.pd-panel {
    background: #fff;
    border: 1px solid var(--pd-line);
    border-radius: 14px;
}

.pd-panel + .pd-panel {
    margin-top: 20px;
}

.pd-h2 {
    margin: 0 0 14px;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Discount shaped like a garment hang-tag */
.pd-tag {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 14px 0 28px;
    background: var(--pd-red);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    border-radius: 0 6px 6px 0;
    clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%);
    transform-origin: 16px 50%;
    animation: pd-tag-swing 1s cubic-bezier(.34, 1.56, .64, 1) .25s both;
}

.pd-tag::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-radius: 50%;
    background: #fff;
}

@keyframes pd-tag-swing {
    from {
        transform: rotate(-12deg);
    }

    to {
        transform: rotate(0);
    }
}

/* ---------- Product rails ---------- */

.pd-rail {
    padding: 20px 20px 24px;
}

.pd-rail__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.pd-rail__head .pd-h2 {
    margin: 0;
}

.pd-rail__more {
    font-weight: 600;
    color: var(--pd-green-deep);
    text-decoration: none;
    white-space: nowrap;
}

.pd-rail__more:hover {
    color: var(--pd-green-dark);
    text-decoration: underline;
}

.pd-rail .owl-carousel {
    position: relative;
}

.pd-rail .owl-stage {
    display: flex;
}

.pd-rail .owl-item {
    display: flex;
}

.pd-rail .owl-carousel .owl-nav {
    margin: 0;
}

.pd-rail .owl-carousel .owl-nav button.owl-prev,
.pd-rail .owl-carousel .owl-nav button.owl-next {
    position: absolute;
    top: 34%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0 !important;
    border: 1px solid var(--pd-line) !important;
    border-radius: 50%;
    background: #fff !important;
    color: var(--pd-ink) !important;
    box-shadow: 0 2px 10px rgba(22, 36, 29, .14);
    font-size: 24px !important;
    line-height: 1;
    transform: translateY(-50%);
}

.pd-rail .owl-carousel .owl-nav button.owl-prev {
    left: -10px;
}

.pd-rail .owl-carousel .owl-nav button.owl-next {
    right: -10px;
}

.pd-rail .owl-carousel .owl-nav button.owl-prev:hover,
.pd-rail .owl-carousel .owl-nav button.owl-next:hover {
    background: var(--pd-mint) !important;
}

.pd-rail .owl-carousel .owl-nav button.disabled {
    display: none;
}

.pd-rail .owl-carousel .owl-nav button span {
    display: block;
    margin-top: -3px;
}

/* ---------- Product card ---------- */

.pd-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 1px solid var(--pd-line);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.pd-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: var(--pd-sunk);
}

.pd-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pd-card__off {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 7px 2px;
    border-radius: 4px;
    background: var(--pd-red);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.2;
}

.pd-card__body {
    flex: 1;
    padding: 10px 10px 8px;
}

.pd-card__name {
    display: -webkit-box;
    min-height: 2.7em;
    margin: 0 0 6px;
    overflow: hidden;
    font-size: .92rem;
    font-weight: 500;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.pd-card__name a {
    color: var(--pd-ink);
    text-decoration: none;
}

.pd-card__name a:hover {
    color: var(--pd-green-deep);
}

.pd-card__price strong {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--pd-green-deep);
}

.pd-card__price del {
    margin-left: 6px;
    font-size: .85rem;
    color: var(--pd-muted);
}

.pd-card form {
    margin: 0;
    padding: 0 10px 10px;
}

.pd-card__buy {
    width: 100%;
    min-height: 38px;
    border: 0;
    border-radius: 8px;
    background: var(--pd-mint);
    color: var(--pd-green-deep);
    font: inherit;
    font-size: .95rem;
    font-weight: 600;
    transition: background-color .15s, color .15s;
}

.pd-card__buy:hover {
    background: var(--pd-green-deep);
    color: #fff;
}

.pd-card__buy:focus-visible {
    outline: none;
    box-shadow: var(--pd-ring);
}

/* ---------- Footer ---------- */

.sf-footer {
    margin-top: 8px;
    background: var(--pd-forest);
    color: rgba(255, 255, 255, .78);
    font-family: var(--pd-font);
    font-size: .95rem;
}

.sf-footer a {
    color: rgba(255, 255, 255, .78);
    text-decoration: none;
    transition: color .15s;
}

.sf-footer a:hover {
    color: #fff;
}

.sf-footer a:focus-visible {
    outline: 2px solid var(--pd-leaf);
    outline-offset: 2px;
    border-radius: 4px;
}

.sf-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: 40px;
    padding-block: 48px 40px;
}

.sf-footer__logo {
    display: inline-block;
    padding: 10px 14px;
    background: #fff;
    border-radius: 10px;
}

.sf-footer__logo img {
    display: block;
    width: auto;
    height: 40px;
    max-width: 200px;
    object-fit: contain;
}

.sf-footer__about {
    max-width: 42ch;
    margin: 16px 0 0;
    line-height: 1.6;
}

.sf-footer__contact {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.sf-footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.sf-footer__contact .svg-inline--fa,
.sf-footer__contact i {
    flex: none;
    width: 16px;
    margin-top: 4px;
    color: var(--pd-leaf);
}

.sf-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.sf-footer__social a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    transition: background-color .15s;
}

.sf-footer__social a:hover {
    background: var(--pd-green);
}

.sf-footer__title {
    margin: 0 0 14px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
}

.sf-footer__col ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sf-footer__bar {
    background: #0a261b;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.sf-footer__bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 24px;
    padding-block: 16px;
    font-size: .88rem;
}

.sf-footer__bar p {
    margin: 0;
}

.sf-footer__credit a {
    font-weight: 600;
    color: var(--pd-leaf);
}

.sf-footer__credit a:hover {
    color: #fff;
    text-decoration: underline;
}

/* ---------- Header ---------- */

:root {
    --sf-bar-h: 76px;
}

.sf-header {
    font-family: var(--pd-font);
}

.sf-topbar {
    background: var(--pd-forest);
    color: rgba(255, 255, 255, .72);
    font-size: .86rem;
}

.sf-topbar__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 36px;
}

.sf-topbar a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, .86);
    text-decoration: none;
    white-space: nowrap;
}

.sf-topbar a:hover {
    color: #fff;
}

.sf-topbar__phone .svg-inline--fa,
.sf-topbar__links .svg-inline--fa {
    color: var(--pd-leaf);
}

.sf-topbar__note {
    flex: 1;
    min-width: 0;
}

.sf-topbar__note marquee,
.sf-announce marquee {
    display: block;
}

.sf-topbar__links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sf-announce {
    display: none;
}

.sf-header__holder {
    min-height: var(--sf-bar-h);
}

.sf-header__bar {
    background: #fff;
    border-bottom: 1px solid var(--pd-line);
}

/* master.blade.php adds .sticky (position: fixed) once the page scrolls past the bar */
.sf-header__bar.sticky {
    box-shadow: 0 6px 20px rgba(22, 36, 29, .08);
}

.sf-header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: var(--sf-bar-h);
}

.sf-header__logo {
    display: block;
    flex: none;
}

.sf-header__logo img {
    display: block;
    width: auto;
    height: 46px;
    max-width: 220px;
    object-fit: contain;
}

.sf-search {
    display: flex;
    flex: 1;
    max-width: 640px;
    height: 46px;
    margin: 0 auto;
    border: 1.5px solid #cfd9d3;
    border-radius: 12px;
    background: var(--pd-sunk);
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}

.sf-search:focus-within {
    border-color: var(--pd-green-deep);
    background: #fff;
    box-shadow: var(--pd-ring);
}

.sf-search input {
    flex: 1;
    min-width: 0;
    padding: 0 16px;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 1rem;
    color: var(--pd-ink);
    outline: none;
}

.sf-search input::placeholder {
    color: #86938c;
}

.sf-search button {
    flex: none;
    width: 56px;
    border: 0;
    background: var(--pd-green-deep);
    color: #fff;
    font-size: 1.05rem;
    transition: background-color .15s;
}

.sf-search button:hover {
    background: var(--pd-green-dark);
}

.sf-header__actions {
    display: flex;
    flex: none;
    align-items: center;
    gap: 6px;
}

.sf-iconbtn {
    display: none;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--pd-ink);
    font-size: 1.2rem;
}

.sf-iconbtn:hover {
    background: var(--pd-mint);
}

.sf-iconbtn:focus-visible,
.sf-action:focus-visible {
    outline: none;
    box-shadow: var(--pd-ring);
}

.sf-action {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    border-radius: 12px;
    color: var(--pd-ink);
    line-height: 1.2;
    text-decoration: none;
    transition: background-color .15s;
}

.sf-action:hover {
    background: var(--pd-mint);
    color: var(--pd-ink);
}

.sf-action__icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--pd-mint);
    color: var(--pd-green-deep);
    font-size: 1.1rem;
}

.sf-action__text {
    display: flex;
    flex-direction: column;
    font-size: .95rem;
    font-weight: 600;
    white-space: nowrap;
}

.sf-action__text small {
    font-size: .78rem;
    font-weight: 400;
    color: var(--pd-muted);
}

.sf-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 11px;
    background: var(--pd-red);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

/* Cart dropdown */

.sf-cart {
    position: relative;
}

.sf-cart__menu {
    width: 320px;
    max-width: calc(100vw - 24px);
    padding: 0;
    border: 1px solid var(--pd-line);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(22, 36, 29, .16);
    overflow: hidden;
    font-family: var(--pd-font);
}

.sf-minicart__head {
    display: flex;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--pd-line);
    font-weight: 600;
}

.sf-minicart__head span {
    font-weight: 400;
    color: var(--pd-muted);
}

.sf-minicart__list {
    max-height: 300px;
    margin: 0;
    padding: 4px 0;
    overflow-y: auto;
    list-style: none;
}

.sf-minicart__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px 8px 16px;
}

.sf-minicart__item img {
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: var(--pd-sunk);
    object-fit: cover;
}

.sf-minicart__info {
    flex: 1;
    min-width: 0;
}

.sf-minicart__name {
    margin: 0;
    overflow: hidden;
    font-size: .9rem;
    font-weight: 500;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sf-minicart__meta {
    margin: 2px 0 0;
    font-size: .84rem;
    color: var(--pd-muted);
}

.sf-minicart__remove {
    display: grid;
    flex: none;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--pd-muted);
}

.sf-minicart__remove:hover {
    background: #fdecea;
    color: var(--pd-red);
}

.sf-minicart__foot {
    display: grid;
    gap: 8px;
    padding: 12px 16px 16px;
    border-top: 1px solid var(--pd-line);
    background: var(--pd-sunk);
}

.sf-minicart__total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.sf-minicart__total strong {
    color: var(--pd-green-deep);
}

.sf-minicart__cta,
.sf-minicart__link {
    display: grid;
    place-items: center;
    min-height: 42px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
}

.sf-minicart__cta {
    background: var(--pd-green-deep);
    color: #fff;
}

.sf-minicart__cta:hover {
    background: var(--pd-green-dark);
    color: #fff;
}

.sf-minicart__link {
    border: 1.5px solid var(--pd-line);
    background: #fff;
    color: var(--pd-ink);
}

.sf-minicart__link:hover {
    border-color: var(--pd-green);
    color: var(--pd-ink);
}

.sf-minicart__empty {
    padding: 28px 16px;
    text-align: center;
}

.sf-minicart__empty-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: var(--pd-mint);
    color: var(--pd-green-deep);
    font-size: 1.3rem;
}

.sf-minicart__empty p {
    margin: 0 0 8px;
    font-weight: 600;
}

.sf-minicart__empty a {
    color: var(--pd-green-deep);
    font-weight: 600;
}

/* Search popup (mobile) */

.sf-search-modal .modal-content {
    border: 0;
    border-radius: 14px;
    overflow: hidden;
}

.sf-search-modal__bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 8px 16px;
    font-family: var(--pd-font);
}

.sf-search-modal__bar > .svg-inline--fa {
    color: var(--pd-muted);
}

.sf-search-modal__bar input {
    flex: 1;
    min-width: 0;
    height: 44px;
    border: 0;
    font: inherit;
    font-size: 1.05rem;
    outline: none;
}

.sf-search-modal__bar button {
    display: grid;
    flex: none;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: var(--pd-sunk);
    color: var(--pd-ink);
}

.sf-search-modal__results {
    max-height: 70vh;
    margin: 0 .5rem;
    overflow: auto;
    border-radius: 14px;
    background: #fff;
}

/* Mobile category drawer — main.js animates its width */

.sf-drawer {
    height: 100%;
    height: 100dvh;
    overflow-y: auto;
    font-family: var(--pd-font);
}

.sf-drawer__head {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 8px 0 20px;
    background: var(--pd-forest);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
}

.sf-drawer__close {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.sf-drawer li {
    border-bottom: 1px solid var(--pd-line) !important;
}

.sf-drawer.sidepanel .level1-styles > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px 12px 20px;
    color: var(--pd-ink);
    font-size: .98rem;
    white-space: nowrap;
}

.sf-drawer a span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sf-drawer.sidepanel .level2-styles a {
    padding: 10px 16px 10px 32px;
    color: #3a4a42;
    font-size: .92rem;
    white-space: nowrap;
}

.sf-drawer__plus {
    flex: none;
    font-size: .75rem;
    color: var(--pd-muted);
    transition: transform .2s;
}

.sf-drawer a[aria-expanded="true"] .sf-drawer__plus {
    transform: rotate(45deg);
}

@media (min-width: 992px) {
    .sf-header__search-toggle,
    .sf-header__menu {
        display: none;
    }
}

@media (max-width: 991.98px) {
    :root {
        --sf-bar-h: 62px;
    }

    .sf-topbar {
        display: none;
    }

    .sf-announce {
        display: block;
        padding: 4px 0;
        background: var(--pd-mint);
        color: var(--pd-green-dark);
        font-family: var(--pd-font);
        font-size: .82rem;
    }

    .sf-header__inner {
        gap: 6px;
    }

    .sf-header__menu,
    .sf-header__search-toggle {
        display: grid;
    }

    .sf-header__menu {
        margin-left: -8px;
    }

    .sf-header__logo img {
        height: 36px;
        max-width: 150px;
    }

    .sf-search,
    .sf-action--account,
    .sf-action--cart .sf-action__text {
        display: none;
    }

    .sf-header__actions {
        gap: 2px;
        margin-left: auto;
    }

    .sf-action {
        padding: 4px;
    }

    .sf-action__icon {
        width: 40px;
        height: 40px;
    }
}

/* ---------- Responsive ---------- */

@media (max-width: 991.98px) {
    .pd {
        padding-block: 12px 24px;
    }

    .pd-rail {
        padding: 16px 12px 20px;
    }

    .pd-rail .owl-carousel .owl-nav button.owl-prev {
        left: -4px;
    }

    .pd-rail .owl-carousel .owl-nav button.owl-next {
        right: -4px;
    }

    .sf-footer__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 32px 24px;
        padding-block: 36px 28px;
    }

    .sf-footer__brand {
        grid-column: 1 / -1;
    }

    /* Leave room for the fixed mobile bottom navbar */
    .sf-footer__bar {
        padding-bottom: 64px;
    }

    .sf-footer__bar-inner {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .sf-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .pd-tag {
        animation: none;
    }

    .pd *,
    .pd *::before,
    .sf-footer * {
        transition: none !important;
    }
}
