/* =============================================================================
   Product Save & Share — Styles  v2.0.0
   ============================================================================= */

/* ── Action button row ─────────────────────────────────────────────────────── */
.pss-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    
}

/* ── Floating actions (mobile + desktop variants) ─────────────────────────── */
.pss-fab {
    position: fixed;
    right: 3px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 100008;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    transition: bottom .25s ease;
}
.pss-fab.pss-fab--lift{
    bottom:76px;
}
.pss-fab[hidden] {
    display: none;
}

.pss-fab__menu {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    opacity: 0;
    transform: translateY(8px) scale(0.92);
    transform-origin: bottom right;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pss-fab.is-open .pss-fab__menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.pss-fab__toggle,
.pss-fab__action {
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    box-shadow: 0 8px 18px rgba(0,0,0,0.24);
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, width 0.2s ease, padding 0.2s ease;
}

.pss-fab__toggle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #735CFF;
}

.pss-fab__toggle:hover {
    background: #735CFF;
}

.pss-fab__toggle-icon {
    
    line-height: 1;
    font-weight: 300;
    transition: transform 0.2s ease;
}

.pss-fab.is-open .pss-fab__toggle-icon {
    transform: rotate(45deg);
}

.pss-fab__action {
    width: auto;
    min-width: 48px;
    height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    gap:8px;
    
}

.pss-fab__action--save {
    background: #404040;
}

.pss-fab__action--share {
    background: #735cff;
}

.pss-fab__action:hover,
.pss-fab__toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.28);
}

.pss-fab__action .pss-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.pss-fab__action-label {
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.pss-fab__action-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: pss-spin 0.7s linear infinite;
}

.pss-fab__action--loading .pss-icon {
    display: none;
}

.pss-fab__action--loading .pss-fab__action-spinner {
    display: inline-block;
}

@media (min-width: 768px) {
    .pss-fab {
        right: 0;
        bottom: auto;
        top: 50%;
        transform: translateY(-50%);
    }

    .pss-fab__toggle {
        display: none;
    }

    .pss-fab__menu {
        opacity: 1;
        transform: none;
        pointer-events: auto;
        gap: 8px;
    }

    .pss-fab__action {
        width: 46px;
        min-width: 46px;
        height: 46px;
        padding: 0;
        border-radius: 23px 0 0 23px;
        justify-content: center;
       gap:0;
        overflow: hidden;
    }

    .pss-fab__action-label {
        opacity: 0;
        max-width: 0;
        margin-right: 0;
        transition: opacity 0.16s ease, max-width 0.2s ease, margin 0.2s ease;
    }

    .pss-fab__action:hover,
    .pss-fab__action:focus-visible {
        width: 130px;
        padding-left: 14px;
        padding-right: 14px;
        gap:8px;
    }

    .pss-fab__action:hover .pss-fab__action-label,
    .pss-fab__action:focus-visible .pss-fab__action-label {
        opacity: 1;
        max-width: 72px;
        margin-right: 4px;
    }
}

.pss-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Base button ───────────────────────────────────────────────────────────── */
.pss-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    flex:1;
    cursor: pointer;
    justify-content: center;
    border: 1px solid transparent;
    background: transparent;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
                transform 0.1s ease, box-shadow 0.18s ease;
    white-space: nowrap;
    user-select: none;
    -webkit-font-smoothing: antialiased;
}

.pss-btn:focus-visible {
    outline: 3px solid #4f8ef7;
    outline-offset: 2px;
}

.pss-btn:active {
    
}

.pss-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── Save button ───────────────────────────────────────────────────────────── */
.pss-btn--save {
    color: #735CFF;
    border-color: #735CFF;
}
.pss-btn--save:hover {
    background: #735CFF;
    color: #ffffff;
    
}

/* ── Share button ──────────────────────────────────────────────────────────── */
.pss-btn--share {
    color: #735CFF;
    border-color: #735CFF;
}
.pss-btn--share:hover {
    background: #735CFF;
    color: #ffffff;
}

/* ── Icons ─────────────────────────────────────────────────────────────────── */
.pss-icon {
    flex-shrink: 0;
    vertical-align: middle;
    transition: transform 0.18s ease;
}
.pss-btn--save:hover  .pss-icon { transform: scale(1.12); }
.pss-btn--share:hover .pss-icon { transform: scale(1.12); }

/* ── Loading spinner ───────────────────────────────────────────────────────── */
.pss-btn__spinner {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: pss-spin 0.7s linear infinite;
    flex-shrink: 0;
}
.pss-btn--loading .pss-btn__spinner { display: inline-block; }
.pss-btn--loading .pss-icon         { display: none; }

@keyframes pss-spin {
    to { transform: rotate(360deg); }
}

/* ── Toast notification ────────────────────────────────────────────────────── */
.pss-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    max-width: 90vw;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    color: #fff;
    background: #333;
    box-shadow: 0 6px 24px rgba(0,0,0,0.2);
    z-index: 100010;
    animation: pss-toast-in 0.25s ease;
}
.pss-toast[hidden] { display: none; }

.pss-toast--success { background: #2e7d32; }
.pss-toast--error   { background: #c62828; }
.pss-toast--info    { background: #1565c0; }

@keyframes pss-toast-in {
    from { opacity: 0; transform: translateX(-50%) translateY(12px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Share modal overlay ───────────────────────────────────────────────────── */
.pss-share-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 100009;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: pss-overlay-in 0.2s ease;
    backdrop-filter: blur(2px);
}

@keyframes pss-overlay-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Share modal card ──────────────────────────────────────────────────────── */
.pss-share-modal {
    background: #ffffff;
    border-radius: 14px;
    padding: 28px 28px 24px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.18);
    animation: pss-modal-in 0.22s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes pss-modal-in {
    from { transform: scale(0.92); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

.pss-share-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.pss-share-modal__title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #111;
}

.pss-share-modal__close {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}
.pss-share-modal__close:hover { color: #111; background: #f3f3f3; }

/* ── URL row ───────────────────────────────────────────────────────────────── */
.pss-share-modal__url-row {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}

.pss-share-modal__url-input {
    flex: 1;
    min-width: 0;
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    color: #444;
    background: #f9f9f9;
    cursor: default;
}
.pss-share-modal__url-input:focus { outline: 2px solid #0071a1; }

/* ── Share option buttons ──────────────────────────────────────────────────── */
.pss-share-modal__options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pss-share-opt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    color: #fff;
    transition: filter 0.15s, transform 0.1s;
}
.pss-share-opt:hover  { filter: brightness(1.12); }
.pss-share-opt:active { transform: scale(0.97); }

.pss-share-opt--whatsapp { background: #25D366; }
.pss-share-opt--facebook { background: #1877F2; }
.pss-share-opt--twitter  { background: #1DA1F2; }
.pss-share-opt--email    { background: #555e6e; }
.pss-share-opt--copy     { background: #6c757d; }

