/* SG Organic Elementor Widgets — isolated styles */
.sgo-pl-widget,
.sgo-pl-widget * {
    box-sizing: border-box;
}

.sgo-pl-widget {
    --sgo-pl-columns: 7;
    --sgo-pl-rows: 3;
    --sgo-pl-column-gap: 12px;
    --sgo-pl-row-gap: 12px;
    --sgo-pl-card-width: 240px;
    width: 100%;
    min-width: 0;
    color: #211735;
}

.sgo-pl-shell {
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.sgo-pl-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
}

.sgo-pl-heading-copy {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.sgo-pl-icon-above .sgo-pl-heading-copy {
    align-items: flex-start;
    flex-direction: column;
}

.sgo-pl-heading-icon {
    display: inline-flex;
    flex: 0 0 auto;
    line-height: 1;
}

.sgo-pl-heading-icon svg {
    display: block;
    width: 1em;
    height: 1em;
}

.sgo-pl-heading-text {
    min-width: 0;
}

.sgo-pl-title {
    margin: 0;
    font-size: clamp(28px, 3vw, 46px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.sgo-pl-subtitle {
    margin-top: 6px;
    font-size: 15px;
    line-height: 1.5;
}

.sgo-pl-view-all {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 7px 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.sgo-pl-view-all:hover,
.sgo-pl-view-all:focus-visible {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.sgo-pl-carousel-frame {
    position: relative;
    width: 100%;
    min-width: 0;
}

.sgo-pl-products {
    width: 100%;
    min-width: 0;
}

.sgo-pl-layout-grid .sgo-pl-products {
    display: grid;
    grid-template-columns: repeat(var(--sgo-pl-columns), minmax(0, 1fr));
    column-gap: var(--sgo-pl-column-gap);
    row-gap: var(--sgo-pl-row-gap);
}

.sgo-pl-layout-carousel .sgo-pl-products {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(var(--sgo-pl-rows), minmax(0, auto));
    grid-auto-columns: var(--sgo-pl-card-width);
    column-gap: var(--sgo-pl-column-gap);
    row-gap: var(--sgo-pl-row-gap);
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.sgo-pl-layout-carousel .sgo-pl-products::-webkit-scrollbar {
    display: none;
}

.sgo-pl-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(74, 54, 114, 0.13);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
    isolation: isolate;
}

.sgo-pl-layout-carousel .sgo-pl-card {
    scroll-snap-align: start;
}

.sgo-pl-card-link-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.sgo-pl-card > :not(.sgo-pl-card-link-overlay) {
    position: relative;
    z-index: 2;
}

.sgo-pl-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    pointer-events: none;
}

.sgo-pl-content a,
.sgo-pl-content button,
.sgo-pl-content input,
.sgo-pl-content select {
    pointer-events: auto;
}

.sgo-pl-image {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.sgo-pl-image img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    transition: transform 260ms ease;
}

.sgo-pl-ratio-square { aspect-ratio: 1 / 1; }
.sgo-pl-ratio-portrait { aspect-ratio: 4 / 5; }
.sgo-pl-ratio-landscape { aspect-ratio: 4 / 3; }
.sgo-pl-ratio-wide { aspect-ratio: 16 / 9; }
.sgo-pl-ratio-original img { height: auto; }

.sgo-pl-sale {
    position: absolute !important;
    top: 10px;
    left: 10px;
    z-index: 5 !important;
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.sgo-pl-actions {
    position: absolute !important;
    top: 10px;
    right: 10px;
    z-index: 6 !important;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.sgo-pl-actions-hover .sgo-pl-actions {
    opacity: 0;
    transform: translateX(6px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.sgo-pl-actions-hover:hover .sgo-pl-actions,
.sgo-pl-actions-hover:focus-within .sgo-pl-actions {
    opacity: 1;
    transform: translateX(0);
}

.sgo-pl-action,
.sgo-pl-action.button,
.sgo-pl-yith .yith-wcwl-add-button a,
.sgo-pl-yith .yith-wcwl-wishlistexistsbrowse a,
.sgo-pl-yith .yith-wcwl-wishlistaddedbrowse a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    box-shadow: 0 8px 24px rgba(31, 24, 49, 0.14);
    line-height: 1 !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.sgo-pl-action:hover,
.sgo-pl-action:focus-visible,
.sgo-pl-yith a:hover,
.sgo-pl-yith a:focus-visible {
    transform: translateY(-1px);
}

.sgo-pl-action svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sgo-pl-wishlist.is-saved svg {
    fill: currentColor;
}

.sgo-pl-yith .feedback,
.sgo-pl-yith .yith-wcwl-icon,
.sgo-pl-yith img,
.sgo-pl-yith .separator {
    display: none !important;
}

.sgo-pl-yith a {
    font-size: 0 !important;
}

.sgo-pl-yith a::before {
    content: "♡";
    font-size: 22px;
    line-height: 1;
}

.sgo-pl-product-title {
    margin: 0;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.42;
}

.sgo-pl-product-title a {
    color: inherit;
    text-decoration: none;
}

.sgo-pl-meta,
.sgo-pl-excerpt {
    font-size: 12px;
    line-height: 1.45;
}

.sgo-pl-category {
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.sgo-pl-vendor {
    margin-top: 6px;
}

.sgo-pl-excerpt {
    margin-top: 8px;
}

.sgo-pl-rating {
    display: flex;
    align-items: center;
    margin-top: 9px;
    min-height: 16px;
}

.sgo-pl-rating .star-rating {
    float: none;
    margin: 0;
    font-size: 12px;
}

.sgo-pl-price {
    margin-top: 9px;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.25;
}

.sgo-pl-price del {
    margin-right: 5px;
    opacity: 0.5;
    font-size: 0.84em;
    font-weight: 500;
}

.sgo-pl-price ins {
    text-decoration: none;
}

.sgo-pl-bottom-meta {
    margin-top: auto;
    padding-top: 9px;
}

.sgo-pl-nav {
    position: absolute;
    top: 50%;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(46, 37, 68, 0.14);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    color: #241b35;
    box-shadow: 0 12px 32px rgba(31, 24, 49, 0.18);
    transform: translateY(-50%);
    cursor: pointer;
}

.sgo-pl-nav:hover,
.sgo-pl-nav:focus-visible {
    background: #fff;
    transform: translateY(-50%) scale(1.04);
}

.sgo-pl-nav:disabled {
    opacity: 0.35;
    cursor: default;
}

.sgo-pl-nav svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sgo-pl-prev { left: 10px; }
.sgo-pl-next { right: 10px; }

.sgo-pl-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 16px;
}

.sgo-pl-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(64, 37, 143, 0.25);
    cursor: pointer;
}

.sgo-pl-dot.is-active {
    width: 22px;
    border-radius: 999px;
    background: #40258f;
}

.sgo-pl-empty,
.sgo-pl-editor-notice {
    width: 100%;
    padding: 24px;
    border: 1px dashed rgba(45, 35, 67, 0.25);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.68);
    color: #5d5669;
    text-align: center;
}

/* Quick view */
.sgo-pl-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.sgo-pl-modal.is-open {
    display: flex;
}

.sgo-pl-modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(10, 17, 13, 0.72);
    cursor: pointer;
}

.sgo-pl-modal-dialog {
    position: relative;
    z-index: 2;
    width: min(920px, 100%);
    max-height: min(760px, calc(100vh - 48px));
    overflow: auto;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.34);
}

.sgo-pl-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #18251e;
    font-size: 25px;
    line-height: 1;
    box-shadow: 0 8px 25px rgba(0,0,0,.14);
    cursor: pointer;
}

.sgo-pl-modal-body {
    min-height: 220px;
}

.sgo-pl-modal-loading,
.sgo-pl-modal-error {
    display: grid;
    place-items: center;
    min-height: 260px;
    padding: 30px;
    color: #5d5669;
    text-align: center;
}

.sgo-pl-quick-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.sgo-pl-quick-image {
    min-height: 420px;
    background: #f5f3f8;
}

.sgo-pl-quick-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

.sgo-pl-quick-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 54px 46px;
}

.sgo-pl-quick-copy h2 {
    margin: 0 46px 14px 0;
    color: #211735;
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1.12;
}

.sgo-pl-quick-price {
    margin-bottom: 18px;
    color: #5c2cc5;
    font-size: 22px;
    font-weight: 750;
}

.sgo-pl-quick-description {
    color: #5f586a;
    font-size: 15px;
    line-height: 1.65;
}

.sgo-pl-quick-stock {
    margin-top: 16px;
    color: #34784d;
    font-size: 14px;
    font-weight: 650;
}

.sgo-pl-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.sgo-pl-quick-actions .button {
    min-height: 46px;
    padding: 12px 20px;
    border: 0;
    border-radius: 9px;
    background: #138f49;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.sgo-pl-quick-actions .sgo-pl-view-product {
    background: #eef5f0;
    color: #173d28;
}

body.sgo-pl-modal-lock {
    overflow: hidden;
}

@media (hover: none), (pointer: coarse) {
    .sgo-pl-actions-hover .sgo-pl-actions {
        opacity: 1;
        transform: none;
    }
}

@media (min-width: 1025px) {
    .sgo-pl-hide-desktop { display: none !important; }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .sgo-pl-hide-tablet { display: none !important; }
}

@media (max-width: 767px) {
    .sgo-pl-hide-mobile { display: none !important; }

    .sgo-pl-header {
        align-items: flex-start;
        gap: 14px;
    }

    .sgo-pl-title {
        font-size: clamp(25px, 8vw, 34px);
    }

    .sgo-pl-view-all {
        padding-top: 5px;
        font-size: 13px;
    }

    .sgo-pl-nav {
        display: none;
    }

    .sgo-pl-sale {
        top: 7px;
        left: 7px;
    }

    .sgo-pl-actions {
        top: 7px;
        right: 7px;
        gap: 5px;
    }

    .sgo-pl-action,
    .sgo-pl-action.button,
    .sgo-pl-yith a {
        width: 34px !important;
        min-width: 34px !important;
        height: 34px !important;
        min-height: 34px !important;
    }

    .sgo-pl-quick-content {
        grid-template-columns: 1fr;
    }

    .sgo-pl-quick-image,
    .sgo-pl-quick-image img {
        min-height: 280px;
        max-height: 360px;
    }

    .sgo-pl-quick-copy {
        padding: 28px 22px 30px;
    }

    .sgo-pl-modal {
        align-items: flex-end;
        padding: 0;
    }

    .sgo-pl-modal-dialog {
        width: 100%;
        max-height: 92vh;
        border-radius: 20px 20px 0 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sgo-pl-card,
    .sgo-pl-image img,
    .sgo-pl-actions,
    .sgo-pl-action,
    .sgo-pl-products {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

/* Unify legacy Product Listing actions with all SGO product widgets. */
.sgo-pl-card { position: relative; }
.sgo-pl-actions.sgo-product-actions { margin: 0; bottom: auto; left: auto; width: auto; }
.sgo-pl-actions.sgo-product-actions .sgo-pl-action { position: relative; inset: auto; width: auto; height: auto; margin: 0; opacity: inherit; transform: inherit; }

/* v1.5.8 product listing actions */
.sgo-pl-card{position:relative}.sgo-pl-actions{z-index:20!important}.sgo-pl-actions-hover:hover .sgo-pl-actions,.sgo-pl-actions-hover:focus-within .sgo-pl-actions{opacity:1!important;transform:none!important}@media(hover:none),(pointer:coarse){.sgo-pl-actions-hover .sgo-pl-actions{opacity:1!important;transform:none!important}}
