/* Closest.in — Product Share
   Share button sits directly BELOW the wishlist heart on product cards.
*/

.product-card {
    position: relative;
}

.product-share-button {
    position: absolute;
    top: 54px;
    right: 11px;
    z-index: 5;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.96);
    color: #555d66;
    font: inherit;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,.10);
    cursor: pointer;
    transition:
        transform .18s ease,
        background .18s ease,
        color .18s ease,
        box-shadow .18s ease;
}

.product-share-button:hover,
.product-share-button:focus-visible {
    transform: translateY(-1px);
    background: #fff7ed;
    color: #f28b18;
    box-shadow: 0 6px 15px rgba(0,0,0,.13);
}

.product-share-button:disabled {
    cursor: wait;
    opacity: .65;
}

.product-share-button .product-share-label {
    display: none;
}

/* Compact home/product cards */
.landing-product-section .product-share-button {
    top: 38px;
    right: 6px;
    width: 27px;
    height: 27px;
    font-size: 11px;
}

/* Product-detail page: normal action button below/with Wishlist */
.product-buy-actions .product-share-button {
    position: static;
    width: auto;
    height: auto;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    color: #333;
    box-shadow: none;
    font-size: 14px;
    font-weight: 800;
}

.product-buy-actions .product-share-button .product-share-label {
    display: inline;
}

@media (max-width: 760px) {
    .product-share-button {
        top: 48px;
        right: 9px;
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .landing-product-section .product-share-button {
        top: 37px;
        right: 6px;
        width: 27px;
        height: 27px;
    }
}

@media (max-width: 680px) {
    .product-buy-actions .product-share-button {
        width: 46px;
        padding: 0;
    }

    .product-buy-actions .product-share-button .product-share-label {
        display: none;
    }
}


/* =========================================================
   MOBILE PRODUCT CARDS
   Keep Wishlist + Share compact on the right edge so they do
   not cover the product artwork on narrow cards.
   ========================================================= */
@media (max-width: 760px) {
    .landing-product-section .wishlist-button {
        top: 5px;
        right: 5px;
        width: 23px;
        height: 23px;
        font-size: 10px;
        box-shadow: 0 2px 7px rgba(0,0,0,.10);
    }

    .landing-product-section .product-share-button {
        top: 31px;
        right: 5px;
        width: 23px;
        height: 23px;
        font-size: 9px;
        box-shadow: 0 2px 7px rgba(0,0,0,.10);
    }

    .landing-product-section .product-image {
        padding-right: 14px;
    }
}

@media (max-width: 420px) {
    .landing-product-section .wishlist-button,
    .landing-product-section .product-share-button {
        right: 4px;
        width: 22px;
        height: 22px;
    }

    .landing-product-section .wishlist-button { top: 4px; }
    .landing-product-section .product-share-button { top: 29px; }
    .landing-product-section .product-image { padding-right: 12px; }
}


/* =========================================================
   2026-09-01 HOME PRODUCT CARD — action rail alignment
   Keep Wishlist and Share in a tight vertical stack and leave
   room for the image and add-to-cart control.
   ========================================================= */
.landing-product-section .wishlist-button,
.landing-product-section .product-share-button{
    position:absolute !important;
    z-index:8 !important;
    right:8px !important;
    width:28px !important;
    height:28px !important;
    border-radius:50% !important;
    background:rgba(255,255,255,.98) !important;
    box-shadow:0 3px 10px rgba(15,23,42,.10) !important;
}

.landing-product-section .wishlist-button{
    top:8px !important;
}

.landing-product-section .product-share-button{
    top:42px !important;
    font-size:11px !important;
}

@media (max-width: 700px){
    .landing-product-section .wishlist-button,
    .landing-product-section .product-share-button{
        right:7px !important;
        width:26px !important;
        height:26px !important;
    }

    .landing-product-section .wishlist-button{
        top:7px !important;
    }

    .landing-product-section .product-share-button{
        top:39px !important;
        font-size:10px !important;
    }
}


/* 2026-09-01 final compact card action positions */
.landing-product-section .wishlist-button,
.landing-product-section .product-share-button{
    right:6px !important;
    width:23px !important;
    height:23px !important;
    min-width:23px !important;
    min-height:23px !important;
}
.landing-product-section .wishlist-button{ top:6px !important; }
.landing-product-section .product-share-button{ top:33px !important; }

@media (max-width:700px){
    .landing-product-section .wishlist-button,
    .landing-product-section .product-share-button{
        right:5px !important;
        width:21px !important;
        height:21px !important;
        min-width:21px !important;
        min-height:21px !important;
    }
    .landing-product-section .wishlist-button{ top:5px !important; }
    .landing-product-section .product-share-button{ top:30px !important; }
}
