/* ══════════════════════════════════════════════════════════════════
   SINGLE PRODUCT — Share Section
   Appears in .entry-summary, directly before Delivery Options
   ══════════════════════════════════════════════════════════════════ */
.gt-product-share {
    position: relative;
    margin-top: 20px;
    padding: 16px;
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.gt-share-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.gt-share-header__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.gt-share-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gt-share-item {
    margin: 0;
}

.gt-share-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.gt-share-link:hover,
.gt-share-link:focus-visible {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--bg-brand);
}

.gt-share-link__icon {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    color: inherit;
}

.gt-share-link__label {
    white-space: nowrap;
}

/* Below ~380px, collapse to icon-only chips so the row never wraps to
   an awkward, uneven third line on small phones. */
@media (max-width: 380px) {
    .gt-share-link {
        padding: 9px;
    }

    .gt-share-link__label {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

/* Brand-tinted hover per network, matching each platform's own colour
   so the row still feels intentional rather than a flat, uniform grey. */
.gt-share-link--facebook:hover,
.gt-share-link--facebook:focus-visible {
    border-color: #1877F2;
    color: #1877F2;
    background: #EAF3FF;
}

.gt-share-link--instagram:hover,
.gt-share-link--instagram:focus-visible {
    border-color: #C13584;
    color: #C13584;
    background: #FBEAF3;
}

.gt-share-link--twitter:hover,
.gt-share-link--twitter:focus-visible {
    border-color: #171717;
    color: #171717;
    background: #F0F0F0;
}

.gt-share-link--pinterest:hover,
.gt-share-link--pinterest:focus-visible {
    border-color: #E60023;
    color: #E60023;
    background: #FDEAEC;
}

.gt-share-link--linkedin:hover,
.gt-share-link--linkedin:focus-visible {
    border-color: #0A66C2;
    color: #0A66C2;
    background: #E8F1FB;
}

.gt-share-link--email:hover,
.gt-share-link--email:focus-visible {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--bg-brand);
}

/* "Link copied" toast, shown briefly after tapping Instagram */
.gt-share-copy-toast {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: -14px;
    transform: translateY(100%);
    padding: 8px 12px;
    background: var(--text-primary);
    color: var(--text-white);
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-md);
    z-index: 2;
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.gt-share-copy-toast.is-visible {
    opacity: 1;
}
