/*
Theme Name: Bin-Muslim
Author: Bin-Muslim
Description: Perfumes & Itars catalogue theme. Products managed from admin, orders via WhatsApp.
Version: 1.6.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: bin-muslim
*/
:root {
    --bg: #fbf8f3;
    --ink: #1a1512;
    --gold: #b08d57;
    --dark: #15100c;
    --wa: #25d366
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 15px/1.6 Poppins, system-ui, sans-serif
}

a {
    color: inherit;
    text-decoration: none
}

img {
    max-width: 100%;
    height: auto;
    display: block
}

h1,
h2,
h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    margin: 0 0 .4em;
    line-height: 1.2
}

.bm-hero {
    text-align: center;
    padding: 90px 20px;
    background: var(--dark);
    color: #fff
}

.bm-hero h1 {
    font-size: clamp(38px, 7vw, 68px);
    color: var(--gold);
    letter-spacing: 3px;
    text-transform: uppercase
}

.bm-wrap {
    max-width: 1200px;
    margin: auto;
    padding: 50px 20px
}

.bm-title {
    text-align: center;
    font-size: clamp(28px, 4vw, 38px)
}

.bm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    background: var(--gold);
    color: #fff;
    border-radius: 4px;
    font-weight: 500;
    margin-top: 14px
}

.bm-wa {
    background: var(--wa);
    width: 100%;
    margin-top: 10px
}

.bm-cats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 24px
}

.bm-cat {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    background: var(--dark);
    color: var(--gold);
    font: 600 30px 'Cormorant Garamond', serif;
    letter-spacing: 2px;
    border-radius: 6px;
    text-transform: uppercase
}

.bm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 22px;
    margin-top: 24px
}

.bm-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px #0000000d
}

.bm-img {
    display: block;
    aspect-ratio: 4/5;
    background: #eee;
    overflow: hidden
}

.bm-img img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.bm-info {
    padding: 14px
}

.bm-info h3 {
    font-size: 20px
}

.bm-price del {
    color: #999;
    margin-right: 6px
}

.bm-price ins {
    text-decoration: none;
    color: var(--gold);
    font-weight: 500
}

.bm-single {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px
}

.bm-det h1 {
    font-size: 40px
}

.bm-det .bm-price {
    font-size: 22px;
    margin: 8px 0
}

.bm-tag {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    margin: 0
}

.bm-meta {
    color: #666;
    margin: 0 0 10px
}

.bm-desc {
    margin: 8px 0 18px
}

/* .bm-desc{margin-top:22px;border-top:1px solid #0000001a;padding-top:16px} */
.bm-foot {
    background: var(--dark);
    color: #bbb;
    text-align: center;
    padding: 26px 20px
}

.bm-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--wa);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px #0004;
    z-index: 40
}

.bm-float svg {
    width: 30px;
    height: 30px
}

.navigation.pagination {
    text-align: center;
    margin-top: 30px
}

.page-numbers {
    padding: 6px 12px
}

.bm-rowsec {
    padding-top: 28px;
    padding-bottom: 10px
}

.bm-rowhead {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid #0000001a;
    margin-bottom: 16px
}

.bm-rowhead h2 {
    font-size: 30px;
    margin: 0
}

.bm-rowhead a {
    color: var(--gold);
    font-weight: 500
}

.bm-rowwrap {
    position: relative
}

.bm-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 4px 2px 10px
}

.bm-row::-webkit-scrollbar {
    display: none
}

.bm-row .bm-card {
    flex: 0 0 230px;
    scroll-snap-align: start
}

.bm-arr {
    position: absolute;
    top: 35%;
    z-index: 5;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0;
    background: var(--dark);
    color: var(--gold);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px #0003
}

.bm-prev {
    left: -14px
}

.bm-next {
    right: -14px
}

.bm-img {
    position: relative
}

.bm-new {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: var(--gold);
    color: #fff;
    font-style: normal;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 2px 9px;
    border-radius: 3px
}

/* Product card */
.bm-card {
    border-radius: 14px;
    border: 1px solid #b08d5726;
    box-shadow: 0 4px 18px #1a15120f;
    transition: transform .35s ease, box-shadow .35s ease
}

.bm-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px #1a151230
}

.bm-img img {
    transition: transform .7s ease
}

.bm-card:hover .bm-img img {
    transform: scale(1.08)
}

.bm-img::after {
    content: "";
    position: absolute;
    inset: -50%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(135deg, transparent 42%, rgba(255, 255, 255, .6) 50%, transparent 58%);
    transform: translate(-60%, -60%);
    animation: bmshine 5s ease-in-out infinite
}

.bm-card:nth-child(3n+2) .bm-img::after {
    animation-delay: 1.2s
}

.bm-card:nth-child(3n) .bm-img::after {
    animation-delay: 2.4s
}

.bm-card:hover .bm-img::after {
    animation-duration: 1.3s;
    animation-delay: 0s
}

@keyframes bmshine {
    0% {
        transform: translate(-60%, -60%)
    }

    40%,
    100% {
        transform: translate(60%, 60%)
    }
}

.bm-info {
    text-align: center;
    padding: 16px 14px 18px
}

.bm-info h3 {
    font-size: 19px;
    line-height: 1.3;
    min-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.bm-info h3 a:hover {
    color: var(--gold)
}

.bm-price {
    font-size: 17px;
    min-height: 1.6em
}

.bm-card .bm-wa {
    border-radius: 30px;
    padding: 10px 14px;
    font-size: 14px;
    transition: filter .3s, box-shadow .3s
}

.bm-card .bm-wa:hover {
    filter: brightness(1.08);
    box-shadow: 0 6px 16px #25d36655
}

.bm-sale {
    left: auto;
    right: 10px;
    background: #b3362b
}

@media(prefers-reduced-motion:reduce) {
    .bm-img::after {
        animation: none
    }

    .bm-card,
    .bm-img img {
        transition: none
    }
}

@media(max-width:768px) {
    .bm-single {
        grid-template-columns: 1fr
    }

    .bm-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px
    }

    .bm-info h3 {
        font-size: 17px
    }

    .bm-row .bm-card {
        flex-basis: 165px
    }

    .bm-arr {
        display: none
    }

    .bm-rowhead h2 {
        font-size: 24px
    }

    .bm-wa {
        font-size: 13px;
        padding: 10px 6px
    }
}

/* Header: logo + search (top), menu (below) */
.bm-head {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--dark);
    color: #fff;
    box-shadow: 0 2px 14px #0005
}

.bm-top {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr minmax(280px, 540px) 1fr;
    align-items: center;
    gap: 16px;
    padding: 14px 20px 8px
}

.bm-logo {
    justify-self: start;
    font: 600 28px 'Cormorant Garamond', Georgia, serif;
    letter-spacing: 2px;
    color: var(--gold);
    text-transform: uppercase;
    white-space: nowrap
}

.bm-logo img {
    max-height: 52px;
    width: auto
}

.bm-wa-top {
    justify-self: end;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--wa);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .3s
}

.bm-wa-top:hover {
    transform: scale(1.12)
}

.bm-search {
    justify-self: center;
    display: flex;
    align-items: center;
    width: 80%;
    background: #ffffff12;
    border: 1px solid #b08d5766;
    border-radius: 40px;
    overflow: hidden;
    transition: width .45s cubic-bezier(.4, 0, .2, 1), border-color .35s, background .35s, box-shadow .35s
}

.bm-search:hover {
    border-color: var(--gold)
}

.bm-search:focus-within {
    width: 100%;
    border-color: var(--gold);
    background: #ffffff1c;
    box-shadow: 0 0 0 4px #b08d5733, 0 0 22px #b08d5755;
    animation: bmglow 1.8s ease-in-out infinite
}

@keyframes bmglow {
    50% {
        box-shadow: 0 0 0 6px #b08d5722, 0 0 30px #b08d5766
    }
}

.bm-search input[type=search] {
    flex: 1;
    min-width: 0;
    background: none;
    border: 0;
    outline: 0;
    color: #fff;
    font: 400 14px Poppins, system-ui, sans-serif;
    padding: 11px 8px 11px 20px;
    -webkit-appearance: none
}

.bm-search input::placeholder {
    color: #ffffff99
}

.bm-search button {
    background: none;
    border: 0;
    color: var(--gold);
    padding: 0 16px;
    cursor: pointer;
    display: flex;
    transition: transform .3s
}

.bm-search button:hover,
.bm-search:focus-within button {
    transform: scale(1.18) rotate(-8deg)
}

.bm-search button svg {
    width: 20px;
    height: 20px
}

.bm-nav {
    border-top: 1px solid #ffffff14;
    overflow-x: auto;
    scrollbar-width: none
}

.bm-nav::-webkit-scrollbar {
    display: none
}

.bm-menu {
    list-style: none;
    margin: 0 auto;
    padding: 0 12px;
    display: flex;
    gap: 4px;
    width: max-content
}

.bm-menu a {
    position: relative;
    display: block;
    padding: 13px 22px;
    color: #e9dcc3;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color .3s, transform .3s
}

.bm-menu a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 7px;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width .35s, left .35s
}

.bm-menu a:hover,
.bm-menu .active>a,
.bm-menu .current-menu-item>a {
    color: var(--gold);
    transform: translateY(-2px)
}

.bm-menu a:hover::after,
.bm-menu .active>a::after,
.bm-menu .current-menu-item>a::after {
    width: 60%;
    left: 20%
}

/* Homepage slider */
.bm-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: var(--dark)
}

.bm-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s
}

.bm-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1
}

.bm-slide picture,
.bm-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.bm-slide.active img {
    animation: bmzoom 9s ease-in-out infinite alternate
}

@keyframes bmzoom {
    from {
        transform: scale(1)
    }

    to {
        transform: scale(1.09)
    }
}

.bm-cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 80px 8% 50px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .65));
    color: #fff
}

.bm-cap h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(26px, 4vw, 48px);
    text-shadow: 0 2px 12px #0008
}

.bm-slide.active .bm-cap h2 {
    animation: bmup .9s .3s both
}

@keyframes bmup {
    from {
        opacity: 0;
        transform: translateY(24px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.bm-sarr {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 0;
    background: #15100ccc;
    color: var(--gold);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background .3s, color .3s
}

.bm-sarr:hover {
    background: var(--gold);
    color: #fff
}

.bm-sprev {
    left: 18px
}

.bm-snext {
    right: 18px
}

.bm-dots {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 9px
}

.bm-dot {
    width: 10px;
    height: 10px;
    border-radius: 10px;
    border: 0;
    padding: 0;
    background: #ffffff88;
    cursor: pointer;
    transition: width .35s, background .35s
}

.bm-dot.on {
    width: 30px;
    background: var(--gold)
}

@media(prefers-reduced-motion:reduce) {

    .bm-slide.active img,
    .bm-search:focus-within {
        animation: none
    }
}

@media(max-width:1024px) {
    .bm-slider {
        height: 400px
    }
}

@media(max-width:768px) {
    .bm-head {
        position: static
    }

    .bm-top {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 10px;
        padding: 12px 14px 8px
    }

    .bm-logo {
        justify-self: center;
        font-size: 24px
    }

    .bm-search,
    .bm-search:focus-within {
        width: 100%
    }

    .bm-wa-top {
        display: none
    }

    .bm-menu a {
        padding: 12px 14px;
        font-size: 12px;
        letter-spacing: 1px
    }

    .bm-slider {
        height: 320px
    }

    .bm-sarr {
        width: 36px;
        height: 36px;
        font-size: 22px
    }

    .bm-sprev {
        left: 8px
    }

    .bm-snext {
        right: 8px
    }

    .bm-cap {
        padding: 60px 6% 40px
    }
}

/* Mobile: chota WhatsApp button */
@media(max-width:768px) {
    .bm-card .bm-wa {
        font-size: 11px;
        padding: 7px 8px;
        gap: 5px;
        margin-top: 8px
    }

    .bm-card .bm-wa svg {
        width: 14px;
        height: 14px
    }
}

/* Product page: price, gallery, color/size */
.bm-sl {
    color: #666;
    font-size: 15px
}

.bm-save {
    display: inline-block;
    background: #e6f6ec;
    color: #16803c;
    font-size: 13px;
    font-weight: 600;
    padding: 3px 11px;
    border-radius: 20px;
    margin-left: 6px;
    vertical-align: middle
}

.bm-gal {
    min-width: 0
}

.bm-mainimg {
    border-radius: 12px;
    overflow: hidden;
    background: #fff
}

.bm-mainimg img {
    display: block;
    width: 100%
}

.bm-fade {
    animation: bmfade .45s ease
}

@keyframes bmfade {
    from {
        opacity: .25
    }

    to {
        opacity: 1
    }
}

.bm-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding: 2px 2px 6px
}

.bm-thumb {
    flex: 0 0 74px;
    width: 74px;
    height: 74px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    opacity: .65;
    transition: opacity .25s, border-color .25s
}

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

.bm-thumb:hover,
.bm-thumb.on {
    opacity: 1;
    border-color: var(--gold)
}

.bm-var {
    margin-top: 22px;
    border-top: 1px solid #0000001a;
    padding-top: 4px
}

.bm-vlabel {
    font: 500 14px Poppins, system-ui, sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 16px 0 10px
}

.bm-vlabel span {
    color: var(--gold);
    text-transform: none;
    letter-spacing: 0
}

.bm-chips,
.bm-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.bm-chip,
.bm-sz {
    background: #fff;
    border: 1.5px solid #00000026;
    color: var(--ink);
    font: 500 14px Poppins, system-ui, sans-serif;
    cursor: pointer;
    transition: all .25s
}

.bm-chip {
    border-radius: 30px;
    padding: 8px 20px
}

.bm-sz {
    border-radius: 8px;
    padding: 8px 14px;
    min-width: 54px
}

.bm-chip:hover,
.bm-sz:hover {
    border-color: var(--gold)
}

.bm-chip.on,
.bm-sz.on {
    background: var(--dark);
    border-color: var(--dark);
    color: var(--gold)
}

.bm-sizemsg {
    color: #b3362b;
    min-height: 20px;
    margin: 8px 0 0;
    font-size: 13px
}

/* Details accordion (watches) */
.bm-details {
    margin-top: 22px;
    border-top: 1px solid #aaa;
    border-bottom: 1px solid #aaa;
    padding: 18px 0
}

.bm-details summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    cursor: pointer;
    font: 400 18px Poppins, system-ui, sans-serif;
    text-transform: uppercase;
    letter-spacing: .5px
}

.bm-details summary::-webkit-details-marker {
    display: none
}

.bm-details summary::after {
    content: "";
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    transform: rotate(-135deg);
    margin: 4px 4px 0 0;
    transition: transform .25s
}

.bm-details:not([open]) summary::after {
    transform: rotate(45deg);
    margin-top: -4px
}

.bm-dlist {
    padding-top: 14px
}

.bm-dlist p {
    margin: 0 0 10px;
    font-size: 15px;
    color: var(--ink)
}

.bm-dlist span {
    color: #888;
    border-bottom: 1px solid #aaa
}

/* Footer */
.bm-foot {
    padding: 40px 20px 22px
}

.bm-foot-in {
    max-width: 1200px;
    margin: 0 auto 22px;
    display: flex;
    justify-content: center;
    gap: 70px;
    flex-wrap: wrap
}

.bm-foot-col {
    max-width: 360px
}

.bm-foot h4 {
    color: var(--gold);
    font: 600 22px 'Cormorant Garamond', Georgia, serif;
    letter-spacing: 1px;
    margin: 0 0 10px;
    text-transform: uppercase
}

.bm-foot p {
    margin: 0 0 6px
}

.bm-foot a {
    color: #e9dcc3;
    transition: color .3s
}

.bm-foot a:hover {
    color: var(--gold)
}

.bm-copy {
    border-top: 1px solid #ffffff1f;
    padding-top: 16px;
    margin-top: 10px !important;
    font-size: 13px
}

@media(max-width:768px) {
    .bm-foot-in {
        gap: 28px
    }
}
/* Out of Stock */
.bm-oos-label{display:flex;align-items:center;justify-content:center;width:100%;margin-top:10px;padding:10px 14px;border:1.5px solid #b3362b;border-radius:30px;color:#b3362b;font-weight:500;font-size:14px;letter-spacing:.5px;background:#b3362b0f;cursor:not-allowed}
.bm-det .bm-oos-label{border-radius:4px;padding:11px 22px;margin-top:14px;font-size:15px}
.bm-oosb{background:#b3362b}
.is-oos .bm-img img{opacity:.55;filter:grayscale(.5)}
@media(max-width:768px){.bm-card .bm-oos-label{font-size:11px;padding:7px 8px;margin-top:8px}}
