/* =========================================================
   RAFYZO Storefront Enhancements
   - Responsive standalone image widths
   - RAFYZO profile template
   ========================================================= */

/* Standalone image sections stay readable on large screens. */
.px-sf-responsive-image {
    margin-inline: auto;
}

.px-sf-responsive-image.is-desktop-compact {
    max-width: 560px;
}

.px-sf-responsive-image.is-desktop-medium {
    max-width: 860px;
}

.px-sf-responsive-image.is-desktop-full {
    max-width: 100%;
}

/* RAFYZO profile template. */
.px-sf-main.is-rafyzo-profile-layout {
    width: min(100% - 28px, 980px);
    padding-top: 18px;
}

.px-sf-profile-hero {
    margin-bottom: 28px;
    overflow: hidden;
    border: 1px solid rgba(65, 45, 105, .12);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(38, 23, 70, .08);
}

.px-sf-profile-cover {
    min-height: 220px;
    background-image: var(--px-profile-cover-desktop), linear-gradient(135deg, #6d28ff, #a56cff);
    background-position: center;
    background-size: cover;
}

.px-sf-profile-card {
    position: relative;
    min-height: 150px;
    padding: 26px 28px 24px 150px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
}

.px-sf-profile-avatar {
    position: absolute;
    left: 28px;
    top: -54px;
    width: 104px;
    height: 104px;
    border: 6px solid #fff;
    border-radius: 26px;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 12px 28px rgba(34, 19, 65, .16);
}

.px-sf-profile-copy h1 {
    margin: 0 0 8px;
    color: #20192f;
    font-size: clamp(24px, 3vw, 36px);
}

.px-sf-profile-copy p {
    max-width: 650px;
    margin: 0;
    color: #746d80;
    line-height: 1.7;
}

.px-sf-profile-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.px-sf-profile-links a {
    min-height: 40px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    border: 1px solid #dfd7eb;
    border-radius: 12px;
    color: var(--px-sf-primary);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.px-sf-main.is-rafyzo-profile-layout .px-sf-section,
.px-sf-main.is-rafyzo-profile-layout .px-sf-gallery,
.px-sf-main.is-rafyzo-profile-layout .px-sf-buttons-slider,
.px-sf-main.is-rafyzo-profile-layout .px-sf-category-products,
.px-sf-main.is-rafyzo-profile-layout .px-sf-products {
    margin-inline: 0;
}

@media (max-width: 1024px) {
    .px-sf-responsive-image.is-tablet-compact {
        max-width: 480px;
    }

    .px-sf-responsive-image.is-tablet-medium {
        max-width: 720px;
    }

    .px-sf-responsive-image.is-tablet-full {
        max-width: 100%;
    }

    .px-sf-profile-cover {
        min-height: 190px;
        background-image: var(--px-profile-cover-tablet), linear-gradient(135deg, #6d28ff, #a56cff);
    }
}

@media (max-width: 700px) {
    .px-sf-responsive-image,
    .px-sf-responsive-image.is-desktop-compact,
    .px-sf-responsive-image.is-desktop-medium,
    .px-sf-responsive-image.is-desktop-full,
    .px-sf-responsive-image.is-tablet-compact,
    .px-sf-responsive-image.is-tablet-medium,
    .px-sf-responsive-image.is-tablet-full {
        max-width: 100%;
    }

    .px-sf-main.is-rafyzo-profile-layout {
        width: min(100% - 16px, 980px);
        padding-top: 8px;
    }

    .px-sf-profile-hero {
        border-radius: 18px;
    }

    .px-sf-profile-cover {
        min-height: 150px;
        background-image: var(--px-profile-cover-mobile), linear-gradient(135deg, #6d28ff, #a56cff);
    }

    .px-sf-profile-card {
        min-height: 0;
        padding: 66px 18px 20px;
        display: block;
    }

    .px-sf-profile-avatar {
        left: 18px;
        top: -42px;
        width: 82px;
        height: 82px;
        border-width: 5px;
        border-radius: 21px;
    }

    .px-sf-profile-copy h1 {
        font-size: 24px;
    }

    .px-sf-profile-links {
        margin-top: 16px;
        justify-content: flex-start;
    }
}
