/* Product share menu — product details page + quick view (default theme) */
.product-share--floating {
    position: absolute;
    z-index: 99;
    top: 20px;
    right: 29px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

@media (max-width: 575px) {
    .product-share--floating {
        top: 64px;
    }
}

.product-share .product-share__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(27, 127, 237, 0.2);
    box-shadow: 0 4px 15px rgba(27, 127, 237, 0.12);
    font-size: 15px;
    line-height: 1;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.product-share .product-share__toggle:hover,
.product-share.is-open .product-share__toggle {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(27, 127, 237, 0.22);
}

.product-share .product-share__toggle:focus {
    outline: none;
}

.product-share .product-share__toggle:focus-visible,
.product-share .product-share__item:focus-visible {
    outline: 2px solid #1b7fed;
    outline-offset: 2px;
}

.product-share .product-share__menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.product-share.is-open .product-share__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.product-share .product-share__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.product-share .product-share__item:hover,
.product-share .product-share__item:focus {
    color: #fff;
    text-decoration: none;
    transform: scale(1.1);
    filter: brightness(1.08);
}

.product-share .product-share__item i,
.product-share .product-share__item svg {
    color: #fff;
    fill: currentColor;
}

.product-share .product-share__item.d-none {
    display: none;
}

.product-share .product-share__item--facebook { background: #1877f2; }
.product-share .product-share__item--x { background: #111; }
.product-share .product-share__item--whatsapp { background: #25d366; }
.product-share .product-share__item--telegram { background: #229ed9; }
.product-share .product-share__item--email { background: #6c757d; }
.product-share .product-share__item--copy { background: var(--web-primary, #1b7fed); }
.product-share .product-share__item--native { background: #343a40; }

/* Inline variant: labelled button next to "Add to cart", menu opens above it as a row */
.product-share--inline {
    position: relative;
    display: inline-flex;
}

.product-share--inline .product-share__toggle.product-share__toggle--labelled {
    width: auto;
    height: 42px;
    padding: 0 20px;
    gap: 8px;
    border-radius: 5px;
    border: 1px solid var(--web-primary, #1b7fed);
    color: var(--web-primary, #1b7fed);
    background: #fff;
    box-shadow: none;
    font-size: 15px;
    font-weight: 600;
    line-height: 40px;
}

.product-share--inline .product-share__toggle.product-share__toggle--labelled:hover,
.product-share--inline.is-open .product-share__toggle.product-share__toggle--labelled {
    color: #fff;
    background: var(--web-primary, #1b7fed);
    border-color: var(--web-primary, #1b7fed);
    transform: none;
    box-shadow: 0 4px 12px var(--web-primary-40, rgba(27, 127, 237, 0.25));
}

.product-share--inline .product-share__menu {
    position: absolute;
    z-index: 100;
    bottom: calc(100% + 8px);
    left: 0;
    flex-direction: row;
    transform: translateY(6px);
}

.product-share--inline.is-open .product-share__menu {
    transform: translateY(0);
}

[dir="rtl"] .product-share--inline .product-share__menu {
    left: auto;
    right: 0;
}

@media (max-width: 575px) {
    .product-share--inline .product-share__toggle.product-share__toggle--labelled {
        height: 38px;
        padding: 0 15px;
        font-size: 14px;
        line-height: 38px;
    }
}
