/* =========================================================
   SAVVY LEATHER CRAFT
   FLOATING SOCIAL MEDIA
   ========================================================= */

.social-media-widget {
    position: fixed;

    left: 0;
    top: 50%;

    transform: translateY(-50%);

    z-index: 1040;

    display: flex;
    flex-direction: column;

    padding: 7px 5px 7px 0;

    background: rgba(255, 255, 255, 0.94);

    border: 1px solid rgba(33, 27, 23, 0.08);
    border-left: none;

    border-radius: 0 10px 10px 0;

    box-shadow:
        4px 8px 25px rgba(33, 27, 23, 0.08);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}


/* =========================================================
   SOCIAL LINK
   ========================================================= */

.social-media-link {
    position: relative;

    width: 42px;
    height: 42px;

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

    color: #211b17;

    text-decoration: none;

    border-radius: 0 7px 7px 0;

    overflow: hidden;

    transition:
        width 0.35s cubic-bezier(.22, 1, .36, 1),
        color 0.25s ease,
        background 0.25s ease;
}


/* =========================================================
   ICON
   ========================================================= */

.social-media-link svg {
    width: 18px;
    height: 18px;

    flex-shrink: 0;

    fill: currentColor;

    transition:
        transform 0.3s ease;
}


/* Instagram outline corrections */

.social-instagram svg rect,
.social-instagram svg circle:first-of-type {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.social-instagram svg circle:last-of-type {
    fill: currentColor;
}


/* =========================================================
   LABEL
   ========================================================= */

.social-media-link span {
    position: absolute;

    left: 43px;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.5px;
    text-transform: uppercase;

    white-space: nowrap;

    opacity: 0;

    transform: translateX(-8px);

    transition:
        opacity 0.25s ease,
        transform 0.3s ease;
}


/* =========================================================
   HOVER
   ========================================================= */

.social-media-link:hover {
    width: 132px;

    justify-content: flex-start;

    padding-left: 12px;
}

.social-media-link:hover svg {
    transform: scale(1.08);
}

.social-media-link:hover span {
    opacity: 1;

    transform: translateX(0);
}


/* =========================================================
   BRAND HOVER COLORS
   ========================================================= */

.social-instagram:hover {
    color: #c13584;
    background: #fff5fa;
}

.social-facebook:hover {
    color: #1877f2;
    background: #f2f7ff;
}

.social-tiktok:hover {
    color: #111111;
    background: #f4f4f4;
}

.social-youtube:hover {
    color: #ff0000;
    background: #fff3f3;
}


/* =========================================================
   SEPARATOR
   ========================================================= */

.social-media-link + .social-media-link {
    border-top: 1px solid rgba(33, 27, 23, 0.06);
}


/* =========================================================
   SMALL SCREEN
   ========================================================= */

@media (max-width: 820px) {

    .social-media-widget {
        left: 0;

        padding: 5px 4px 5px 0;

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

    .social-media-link {
        width: 36px;
        height: 36px;
    }

    .social-media-link svg {
        width: 16px;
        height: 16px;
    }

    .social-media-link span {
        display: none;
    }

    .social-media-link:hover {
        width: 36px;

        justify-content: center;

        padding-left: 0;
    }
}


/* =========================================================
   VERY SMALL SCREENS
   ========================================================= */

/* @media (max-width: 480px) {

    .social-media-widget {
        display: none;
    }
} */


/* =========================================================
   SAVVY LEATHER CRAFT
   FLOATING SOCIAL MEDIA
   INITIAL SHOW → 15 SEC → BEAUTIFUL HIDE
   CSS ONLY
   ========================================================= */

.social-media-widget {
    position: fixed;

    left: 0;
    top: 50%;

    transform: translateY(-50%);

    z-index: 1040;

    display: flex;
    flex-direction: column;

    padding: 7px 5px 7px 0;

    background: rgba(255, 255, 255, 0.94);

    border: 1px solid rgba(33, 27, 23, 0.08);
    border-left: none;

    border-radius: 0 10px 10px 0;

    box-shadow:
        4px 8px 25px rgba(33, 27, 23, 0.08);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    /* Initial entrance */
    opacity: 0;

    transform:
        translate(-100%, -50%);

    animation:
        social-bar-show 1s
        cubic-bezier(.22, 1, .36, 1)
        0.25s forwards,

        social-bar-hide 1.2s
        cubic-bezier(.22, 1, .36, 1)
        15s forwards;
}


/* =========================================================
   ENTRANCE ANIMATION
   ========================================================= */

@keyframes social-bar-show {

    0% {
        opacity: 0;

        transform:
            translate(-100%, -50%);
    }

    60% {
        opacity: 1;

        transform:
            translate(7px, -50%);
    }

    100% {
        opacity: 1;

        transform:
            translate(0, -50%);
    }
}


/* =========================================================
   HIDE AFTER 15 SECONDS
   ========================================================= */

@keyframes social-bar-hide {

    0% {
        opacity: 1;

        transform:
            translate(0, -50%);
    }

    70% {
        opacity: 0.35;

        transform:
            translate(-35%, -50%);
    }

    100% {
        opacity: 0;

        transform:
            translate(-100%, -50%);
    }
}


/* =========================================================
   SOCIAL LINK
   ========================================================= */

.social-media-link {
    position: relative;

    width: 42px;
    height: 42px;

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

    color: #211b17;

    text-decoration: none;

    border-radius: 0 7px 7px 0;

    overflow: hidden;

    transition:
        width 0.35s cubic-bezier(.22, 1, .36, 1),
        color 0.25s ease,
        background 0.25s ease,
        transform 0.3s ease;
}


/* =========================================================
   ICON
   ========================================================= */

.social-media-link svg {
    width: 18px;
    height: 18px;

    flex-shrink: 0;

    fill: currentColor;

    transition:
        transform 0.3s ease;
}


/* Instagram */

.social-instagram svg rect,
.social-instagram svg circle:first-of-type {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.social-instagram svg circle:last-of-type {
    fill: currentColor;
}


/* =========================================================
   LABEL
   ========================================================= */

.social-media-link span {
    position: absolute;

    left: 43px;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.5px;
    text-transform: uppercase;

    white-space: nowrap;

    opacity: 0;

    transform: translateX(-8px);

    transition:
        opacity 0.25s ease,
        transform 0.3s ease;
}


/* =========================================================
   HOVER
   ========================================================= */

.social-media-link:hover {
    width: 132px;

    justify-content: flex-start;

    padding-left: 12px;
}

.social-media-link:hover svg {
    transform: scale(1.08);
}

.social-media-link:hover span {
    opacity: 1;

    transform: translateX(0);
}


/* =========================================================
   PLATFORM COLORS
   ========================================================= */

.social-instagram:hover {
    color: #c13584;
    background: #fff5fa;
}

.social-facebook:hover {
    color: #1877f2;
    background: #f2f7ff;
}

.social-tiktok:hover {
    color: #111111;
    background: #f4f4f4;
}

.social-youtube:hover {
    color: #ff0000;
    background: #fff3f3;
}


/* =========================================================
   SEPARATOR
   ========================================================= */

.social-media-link + .social-media-link {
    border-top: 1px solid rgba(33, 27, 23, 0.06);
}


/* =========================================================
   HOVER = KEEP SOCIAL BAR AVAILABLE
   ========================================================= */

.social-media-widget:hover {
    animation-play-state: paused;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 820px) {

    .social-media-widget {
        padding: 5px 4px 5px 0;
    }

    .social-media-link {
        width: 36px;
        height: 36px;
    }

    .social-media-link svg {
        width: 16px;
        height: 16px;
    }

    .social-media-link span {
        display: none;
    }

    .social-media-link:hover {
        width: 36px;

        justify-content: center;

        padding-left: 0;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .social-media-widget {
        display: none;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

/* =========================================================
   SAVVY LEATHER CRAFT
   SMART SOCIAL MEDIA RAIL
   CSS ONLY
   ========================================================= */


/* =========================================================
   HOVER AREA
   This remains at the left edge after the icons disappear.
   ========================================================= */

.social-media-area {
    position: fixed;

    left: 0;
    top: 50%;

    width: 65px;
    height: 230px;

    transform: translateY(-50%);

    z-index: 1040;

    pointer-events: auto;
}


/* =========================================================
   SOCIAL WIDGET
   ========================================================= */

.social-media-widget {
    position: absolute;

    left: 0;
    top: 50%;

    display: flex;
    flex-direction: column;

    padding: 7px 5px 7px 0;

    background: rgba(255, 255, 255, 0.96);

    border: 1px solid rgba(33, 27, 23, 0.08);
    border-left: none;

    border-radius: 0 10px 10px 0;

    box-shadow:
        4px 8px 25px rgba(33, 27, 23, 0.08);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    transform:
        translate(-100%, -50%);

    opacity: 0;

    pointer-events: none;

    animation:
        social-initial-show 1s
        cubic-bezier(.22, 1, .36, 1)
        0.25s forwards,

        social-initial-hide 1s
        cubic-bezier(.22, 1, .36, 1)
        15s forwards;
}


/* =========================================================
   INITIAL SHOW
   ========================================================= */

@keyframes social-initial-show {

    0% {
        opacity: 0;
        transform: translate(-100%, -50%);
    }

    70% {
        opacity: 1;
        transform: translate(7px, -50%);
    }

    100% {
        opacity: 1;
        transform: translate(0, -50%);
    }
}


/* =========================================================
   INITIAL HIDE
   ========================================================= */

@keyframes social-initial-hide {

    0% {
        opacity: 1;
        transform: translate(0, -50%);
    }

    70% {
        opacity: 0.3;
        transform: translate(-40%, -50%);
    }

    100% {
        opacity: 0;
        transform: translate(-100%, -50%);
    }
}


/* =========================================================
   WHEN MOUSE ENTERS THE AREA
   SHOW SOCIAL MEDIA AGAIN
   ========================================================= */

.social-media-area:hover .social-media-widget {

    opacity: 1;

    pointer-events: auto;

    animation:
        social-reveal 0.55s
        cubic-bezier(.22, 1, .36, 1)
        forwards,

        social-hide-again 1s
        cubic-bezier(.22, 1, .36, 1)
        15s forwards;
}


/* =========================================================
   REVEAL AGAIN
   ========================================================= */

@keyframes social-reveal {

    0% {
        opacity: 0;

        transform:
            translate(-100%, -50%);
    }

    100% {
        opacity: 1;

        transform:
            translate(0, -50%);
    }
}


/* =========================================================
   HIDE AGAIN
   ========================================================= */

@keyframes social-hide-again {

    0% {
        opacity: 1;

        transform:
            translate(0, -50%);
    }

    70% {
        opacity: 0.3;

        transform:
            translate(-40%, -50%);
    }

    100% {
        opacity: 0;

        transform:
            translate(-100%, -50%);
    }
}


/* =========================================================
   SOCIAL LINK
   ========================================================= */

.social-media-link {

    position: relative;

    width: 42px;
    height: 42px;

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

    color: #211b17;

    text-decoration: none;

    border-radius: 0 7px 7px 0;

    overflow: hidden;

    transition:
        width 0.35s cubic-bezier(.22, 1, .36, 1),
        color 0.25s ease,
        background 0.25s ease;
}


/* =========================================================
   ICON
   ========================================================= */

.social-media-link svg {

    width: 18px;
    height: 18px;

    flex-shrink: 0;

    fill: currentColor;

    transition:
        transform 0.3s ease;
}


/* Instagram */

.social-instagram svg rect,
.social-instagram svg circle:first-of-type {

    fill: none;

    stroke: currentColor;

    stroke-width: 1.7;
}

.social-instagram svg circle:last-of-type {
    fill: currentColor;
}


/* =========================================================
   LABEL
   ========================================================= */

.social-media-link span {

    position: absolute;

    left: 43px;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.5px;

    text-transform: uppercase;

    white-space: nowrap;

    opacity: 0;

    transform: translateX(-8px);

    transition:
        opacity 0.25s ease,
        transform 0.3s ease;
}


/* =========================================================
   SOCIAL HOVER
   ========================================================= */

.social-media-link:hover {

    width: 132px;

    justify-content: flex-start;

    padding-left: 12px;
}

.social-media-link:hover svg {

    transform:
        scale(1.08);
}

.social-media-link:hover span {

    opacity: 1;

    transform:
        translateX(0);
}


/* =========================================================
   PLATFORM COLORS
   ========================================================= */

.social-instagram:hover {
    color: #c13584;
    background: #fff5fa;
}

.social-facebook:hover {
    color: #1877f2;
    background: #f2f7ff;
}

.social-tiktok:hover {
    color: #111111;
    background: #f4f4f4;
}

.social-youtube:hover {
    color: #ff0000;
    background: #fff3f3;
}


/* =========================================================
   SEPARATOR
   ========================================================= */

.social-media-link + .social-media-link {

    border-top:
        1px solid rgba(33, 27, 23, 0.06);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 820px) {

    .social-media-area {

        width: 50px;
        height: 200px;
    }

    .social-media-link {

        width: 36px;
        height: 36px;
    }

    .social-media-link svg {

        width: 16px;
        height: 16px;
    }

    .social-media-link span {
        display: none;
    }

    .social-media-link:hover {

        width: 36px;

        justify-content: center;

        padding-left: 0;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .social-media-area {
        display: none;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

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

    .social-media-widget {

        animation: none;

        opacity: 1;

        transform:
            translate(0, -50%);

        pointer-events: auto;
    }

    .social-media-link,
    .social-media-link span,
    .social-media-link svg {

        transition: none;
    }
}