/* ========================================================================
   SECRET PLEASURES — STOREFRONT WIDGET SUITE
   ======================================================================== */

:root {
    --spw-bg: #faf7ef;
    --spw-dark: #171411;
    --spw-burgundy: #761b34;
    --spw-gold: #c6a35d;
    --spw-gold-light: #e1c98f;
    --spw-border: rgba(155, 119, 57, .34);
    --spw-shadow: 0 20px 60px rgba(0,0,0,.20);
}


/* ------------------------------------------------------------------------
   COMMON
   ------------------------------------------------------------------------ */

.spw-hidden {
    display: none !important;
}

.spw-no-scroll {
    overflow: hidden !important;
}

.spw-btn {
    appearance: none;
    border: 0;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    transition:
        transform .15s ease,
        opacity .15s ease,
        background .15s ease;
}

.spw-btn:hover {
    transform: translateY(-1px);
}

.spw-btn-primary {
    background: var(--spw-burgundy);
    color: #fff;
}

.spw-btn-secondary {
    background: transparent;
    color: var(--spw-dark);
    border: 1px solid var(--spw-border);
}

.spw-product-price {
    margin-top: 5px;
    font-size: 14px;
    font-weight: 800;
    color: var(--spw-burgundy);
}


/* ------------------------------------------------------------------------
   POPULAR NOW
   ------------------------------------------------------------------------ */

.spw-popular {
    position: fixed;
    left: 22px;
    bottom: 22px;

    width: min(390px, calc(100vw - 32px));

    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;

    padding: 12px;

    background: rgba(250,247,239,.985);
    color: var(--spw-dark);

    border: 1px solid rgba(176,140,72,.52);
    border-radius: 12px;

    box-shadow: var(--spw-shadow);

    z-index: 8800;

    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;

    transition:
        opacity .3s ease,
        transform .3s ease;
}

.spw-popular.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.spw-popular img {
    width: 76px;
    height: 76px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
}

.spw-popular__body {
    min-width: 0;
    padding-right: 22px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.spw-popular__label {
    margin: 0 0 4px;
    color: var(--spw-burgundy);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .035em;
}

.spw-popular__name {
    margin: 0 0 6px;

    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    font-size: 14px;
    line-height: 1.35;
    font-weight: 750;
}

.spw-popular__link {
    color: var(--spw-burgundy);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
}

.spw-popular__close {
    position: absolute;
    top: 6px;
    right: 7px;

    width: 27px;
    height: 27px;

    border: 0;
    background: transparent;

    font-size: 20px;
    cursor: pointer;
    opacity: .65;
}


/* ------------------------------------------------------------------------
   FREE SHIPPING
   ------------------------------------------------------------------------ */

.spw-shipping {
    position: fixed;
    left: 50%;
    bottom: 22px;

    transform: translateX(-50%) translateY(18px);

    width: min(520px, calc(100vw - 40px));

    padding: 10px 15px 12px;

    background: rgba(23,20,17,.975);
    color: #f8f2e8;

    border: 1px solid rgba(198,163,93,.5);
    border-radius: 11px;

    box-shadow: 0 15px 42px rgba(0,0,0,.23);

    z-index: 8700;

    opacity: 0;
    pointer-events: none;

    transition:
        opacity .25s ease,
        transform .25s ease;
}

.spw-shipping.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.spw-shipping__row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.spw-shipping__text {
    font-size: 13px;
    font-weight: 650;
}

.spw-shipping__text strong,
.spw-shipping__target {
    color: var(--spw-gold-light);
}

.spw-shipping__target {
    font-size: 12px;
    font-weight: 800;
    flex: 0 0 auto;
}

.spw-shipping__track {
    height: 5px;
    margin-top: 8px;

    overflow: hidden;

    background: rgba(255,255,255,.13);
    border-radius: 999px;
}

.spw-shipping__bar {
    width: 0;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            #9b7137,
            #dfc47f
        );

    border-radius: inherit;

    transition: width .35s ease;
}


/* ------------------------------------------------------------------------
   WISHLIST + RECENTLY VIEWED FLOATING UTILITIES
   ------------------------------------------------------------------------ */

.spw-tools {
    position: fixed;
    right: 20px;
    bottom: 22px;

    display: flex;
    gap: 8px;

    z-index: 8600;
}

.spw-tool {
    height: 42px;
    min-width: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 0 12px;

    border: 1px solid rgba(198,163,93,.55);
    border-radius: 999px;

    background: rgba(23,20,17,.97);
    color: #fff;

    box-shadow: 0 10px 30px rgba(0,0,0,.18);

    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
}

.spw-tool__count {
    min-width: 18px;
    height: 18px;

    display: inline-flex;
    justify-content: center;
    align-items: center;

    border-radius: 999px;

    background: var(--spw-burgundy);
    color: #fff;

    padding: 0 5px;

    font-size: 10px;
}


/* ------------------------------------------------------------------------
   PRODUCT CARD ACTIONS
   ------------------------------------------------------------------------ */

.spw-card-actions {
    position: absolute;
    top: 9px;
    right: 9px;

    display: flex;
    flex-direction: column;
    gap: 7px;

    z-index: 15;
}

.spw-heart,
.spw-quick {
    width: 36px;
    height: 36px;

    display: inline-flex;
    justify-content: center;
    align-items: center;

    border: 1px solid rgba(198,163,93,.45);
    border-radius: 50%;

    background: rgba(250,247,239,.96);
    color: var(--spw-dark);

    box-shadow: 0 5px 16px rgba(0,0,0,.10);

    cursor: pointer;
    font-size: 17px;
}

.spw-heart.is-active {
    background: var(--spw-burgundy);
    border-color: var(--spw-burgundy);
    color: #fff;
}

.spw-card-enhanced {
    position: relative !important;
}

.spw-quick-add {
    width: calc(100% - 18px);
    margin: 8px 9px 10px;

    border: 1px solid rgba(118,27,52,.22);
    border-radius: 7px;

    background: #fff;
    color: var(--spw-burgundy);

    padding: 8px 10px;

    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
}

.spw-quick-add:hover {
    background: var(--spw-burgundy);
    color: #fff;
}


/* ------------------------------------------------------------------------
   DRAWERS
   ------------------------------------------------------------------------ */

.spw-backdrop {
    position: fixed;
    inset: 0;

    background: rgba(0,0,0,.42);

    z-index: 9300;

    opacity: 0;
    pointer-events: none;

    transition: opacity .2s ease;
}

.spw-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.spw-drawer {
    position: fixed;
    top: 0;
    right: 0;

    width: min(440px, 94vw);
    height: 100dvh;

    background: var(--spw-bg);

    box-shadow: -20px 0 60px rgba(0,0,0,.20);

    z-index: 9400;

    transform: translateX(103%);

    transition: transform .3s ease;

    display: flex;
    flex-direction: column;
}

.spw-drawer.is-visible {
    transform: translateX(0);
}

.spw-drawer__header {
    min-height: 70px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 18px 20px;

    border-bottom: 1px solid rgba(0,0,0,.08);
}

.spw-drawer__header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
}

.spw-drawer__close {
    width: 34px;
    height: 34px;

    border: 0;
    background: transparent;

    font-size: 24px;
    cursor: pointer;
}

.spw-drawer__body {
    overflow-y: auto;
    padding: 16px 18px 30px;
}

.spw-drawer__empty {
    padding: 44px 15px;
    text-align: center;
    opacity: .65;
}

.spw-drawer-product {
    display: grid;
    grid-template-columns: 72px minmax(0,1fr) auto;
    gap: 12px;

    padding: 12px 0;

    border-bottom: 1px solid rgba(0,0,0,.08);
}

.spw-drawer-product img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    background: #fff;
    border-radius: 7px;
}

.spw-drawer-product__name {
    color: var(--spw-dark);
    text-decoration: none;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.35;
}

.spw-remove {
    width: 28px;
    height: 28px;

    border: 0;
    background: transparent;

    cursor: pointer;
    opacity: .55;
}


/* ------------------------------------------------------------------------
   QUICK VIEW
   ------------------------------------------------------------------------ */

.spw-modal {
    position: fixed;
    inset: 0;

    z-index: 9600;

    display: none;
    justify-content: center;
    align-items: center;

    padding: 24px;

    background: rgba(0,0,0,.56);
}

.spw-modal.is-visible {
    display: flex;
}

.spw-modal__panel {
    position: relative;

    width: min(850px, 96vw);
    max-height: 90dvh;
    overflow-y: auto;

    display: grid;
    grid-template-columns: minmax(260px, .95fr) minmax(280px, 1fr);

    background: var(--spw-bg);

    border: 1px solid rgba(198,163,93,.42);
    border-radius: 14px;

    box-shadow: 0 25px 80px rgba(0,0,0,.34);
}

.spw-modal__media {
    min-height: 420px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff;

    border-radius: 14px 0 0 14px;
}

.spw-modal__media img {
    max-width: 92%;
    max-height: 420px;
    object-fit: contain;
}

.spw-modal__content {
    padding: 46px 36px 36px;
}

.spw-modal__eyebrow {
    color: var(--spw-burgundy);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.spw-modal__content h2 {
    margin: 8px 0 9px;
    font-size: 27px;
    line-height: 1.17;
}

.spw-modal__description {
    margin: 16px 0 22px;
    opacity: .75;
    font-size: 14px;
    line-height: 1.6;
}

.spw-modal__buttons {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}

.spw-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;

    width: 36px;
    height: 36px;

    border: 0;
    border-radius: 50%;

    background: rgba(255,255,255,.87);

    cursor: pointer;
    font-size: 22px;

    z-index: 3;
}


/* ------------------------------------------------------------------------
   RELATED PRODUCTS
   ------------------------------------------------------------------------ */

.spw-related {
    width: min(1280px, calc(100% - 36px));
    margin: 54px auto;

    padding: 34px 0;
}

.spw-related__head {
    margin-bottom: 20px;
}

.spw-related__head small {
    color: var(--spw-burgundy);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.spw-related__head h2 {
    margin: 5px 0 0;
    font-size: clamp(25px, 3vw, 38px);
}

.spw-related__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 18px;
}

.spw-related-card {
    position: relative;

    background: #fff;

    border: 1px solid rgba(0,0,0,.08);
    border-radius: 10px;

    overflow: hidden;

    text-decoration: none;
    color: var(--spw-dark);

    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.spw-related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 35px rgba(0,0,0,.11);
}

.spw-related-card img {
    width: 100%;
    aspect-ratio: 1 / 1;

    object-fit: contain;

    background: #fff;
}

.spw-related-card__body {
    padding: 13px 14px 16px;
}

.spw-related-card__name {
    min-height: 38px;

    font-size: 13px;
    font-weight: 750;
    line-height: 1.4;

    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}


/* ------------------------------------------------------------------------
   STICKY ADD-TO-CART
   ------------------------------------------------------------------------ */

.spw-sticky-cart {
    display: none;

    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;

    z-index: 9200;

    background: rgba(250,247,239,.985);

    border-top: 1px solid rgba(198,163,93,.44);

    box-shadow: 0 -12px 35px rgba(0,0,0,.14);

    padding: 10px 14px;
}

.spw-sticky-cart__inner {
    width: min(1180px, 100%);
    margin: auto;

    display: flex;
    align-items: center;
    gap: 12px;
}

.spw-sticky-cart__info {
    min-width: 0;
    flex: 1;
}

.spw-sticky-cart__name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    font-size: 13px;
    font-weight: 750;
}

.spw-sticky-cart__price {
    color: var(--spw-burgundy);
    font-size: 12px;
    font-weight: 800;
}


/* ------------------------------------------------------------------------
   DISCRETION TRUST BADGE
   ------------------------------------------------------------------------ */

.spw-discretion {
    width: min(620px, calc(100% - 28px));
    margin: 25px auto;

    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 12px;

    padding: 15px 17px;

    border: 1px solid rgba(198,163,93,.38);
    border-radius: 10px;

    background: rgba(250,247,239,.74);
}

.spw-discretion__icon {
    width: 38px;
    height: 38px;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 50%;

    background: var(--spw-dark);
    color: #fff;
}

.spw-discretion strong {
    display: block;
    margin-bottom: 2px;
}

.spw-discretion span {
    font-size: 12px;
    opacity: .73;
}


/* ------------------------------------------------------------------------
   MOBILE
   ------------------------------------------------------------------------ */

@media (max-width: 780px) {

    .spw-modal__panel {
        grid-template-columns: 1fr;
    }

    .spw-modal__media {
        min-height: 280px;
        border-radius: 14px 14px 0 0;
    }

    .spw-modal__media img {
        max-height: 280px;
    }

    .spw-modal__content {
        padding: 25px 22px 28px;
    }

    .spw-related__grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 11px;
    }

    .spw-tools {
        right: 12px;
        bottom: 70px;
    }

    .spw-tool span.spw-tool-label {
        display: none;
    }

    .spw-shipping {
        left: 12px;
        right: 12px;
        bottom: 12px;

        width: auto;

        transform: translateY(18px);
    }

    .spw-shipping.is-visible {
        transform: translateY(0);
    }

    .spw-popular {
        left: 12px;
        bottom: 78px;

        width: min(360px, calc(100vw - 24px));
    }

    body.spw-product-page .spw-shipping {
        bottom: 72px;
    }

    body.spw-product-page .spw-tools {
        bottom: 130px;
    }

    body.spw-product-page .spw-popular {
        bottom: 138px;
    }

    .spw-sticky-cart {
        display: block;
    }

}


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

    .spw-popular,
    .spw-shipping,
    .spw-drawer,
    .spw-backdrop,
    .spw-shipping__bar {
        transition: none !important;
    }

}


/* ========================================================================
   PRODUCT SHARE
   ======================================================================== */

.spw-share {
    width: min(620px, calc(100% - 28px));
    margin: 14px auto 25px;
}

.spw-share__main {
    display: flex;
    align-items: center;
    gap: 9px;

    width: fit-content;

    padding: 9px 14px;

    border: 1px solid rgba(198,163,93,.42);
    border-radius: 999px;

    background: rgba(250,247,239,.92);
    color: var(--spw-dark);

    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
}

.spw-share__main:hover {
    border-color: var(--spw-gold);
}

.spw-share__menu {
    display: none;

    margin-top: 10px;

    flex-wrap: wrap;
    gap: 7px;
}

.spw-share.is-open
.spw-share__menu {
    display: flex;
}

.spw-share__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 36px;

    padding: 7px 11px;

    border: 1px solid rgba(0,0,0,.12);
    border-radius: 7px;

    background: #fff;
    color: var(--spw-dark);

    cursor: pointer;
    text-decoration: none;

    font: inherit;
    font-size: 12px;
    font-weight: 700;
}

.spw-share__button:hover {
    border-color: var(--spw-gold);
    color: var(--spw-burgundy);
}

.spw-share__copied {
    color: var(--spw-burgundy);
}

.spw-modal-share {
    margin-top: 12px;
}

@media (max-width: 640px) {

    .spw-share__main {
        width: 100%;
        justify-content: center;
    }

    .spw-share__menu {
        display: none;
        grid-template-columns: repeat(2, 1fr);
    }

    .spw-share.is-open
    .spw-share__menu {
        display: grid;
    }

}


/* ========================================================================
   PRODUCT SHARE — ALWAYS VISIBLE
   ======================================================================== */

.spw-share {
    width: min(680px, calc(100% - 28px));
    margin: 18px auto 26px;

    padding: 14px 16px;

    background: rgba(250, 247, 239, .76);

    border:
        1px solid rgba(198, 163, 93, .38);

    border-radius: 10px;
}


.spw-share__title {
    margin-bottom: 10px;

    color: var(--spw-dark);

    font-size: 13px;
    font-weight: 800;
}


.spw-share__menu {
    display: flex !important;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 0 !important;
}


.spw-share__button {
    min-height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 8px 13px;

    border:
        1px solid rgba(0, 0, 0, .12);

    border-radius: 8px;

    background: #fff;

    color: var(--spw-dark);

    cursor: pointer;

    text-decoration: none;

    font: inherit;

    font-size: 12px;
    font-weight: 750;

    transition:
        transform .15s ease,
        border-color .15s ease,
        color .15s ease;
}


.spw-share__button:hover {
    transform:
        translateY(-1px);

    border-color:
        var(--spw-gold);

    color:
        var(--spw-burgundy);
}


.spw-share__button--whatsapp {
    font-weight: 800;
}


.spw-share__button--copy.is-copied {
    color:
        var(--spw-burgundy);

    border-color:
        var(--spw-gold);
}


.spw-modal-sharebox {
    width: 100%;

    margin-top: 16px;

    padding-top: 14px;

    border-top:
        1px solid rgba(0, 0, 0, .09);
}


.spw-modal-sharebox .spw-share {
    width: 100%;

    margin: 0;

    padding: 0;

    border: 0;

    background: transparent;
}


@media (max-width: 640px) {

    .spw-share__menu {
        display: grid !important;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .spw-share__button {
        width: 100%;
    }

}
