/* GG Premium Product Layout — mobile-first */
:root{--ggp-pink:#eb27c2;--ggp-green:rgb(96,111,16);--ggp-black:#0b0b0b;--ggp-gray:#f5f5f5;--ggp-line:#e9e9e9;--ggp-text:#151515;--ggp-muted:#6b6b6b;}
.ggp-card,.ggp-section{box-sizing:border-box;width:100%;margin:14px 0;padding:18px;border:1px solid var(--ggp-line);border-radius:22px;background:#fff;color:var(--ggp-text);box-shadow:0 12px 34px rgba(0,0,0,.045)}
.ggp-card--hero{background:linear-gradient(135deg,#fff 0%,#fff 58%,rgba(235,39,194,.055) 100%);}
.ggp-eyebrow,.ggp-kicker{display:inline-flex;align-items:center;gap:7px;margin-bottom:7px;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--ggp-green)}
.ggp-eyebrow:before,.ggp-kicker:before{content:"";display:inline-block;width:7px;height:7px;border-radius:99px;background:var(--ggp-pink);box-shadow:0 0 0 4px rgba(235,39,194,.12)}
.ggp-title{margin:0 0 10px!important;font-size:24px!important;line-height:1.08!important;letter-spacing:-.035em;color:#0a0a0a;font-weight:800!important}
.ggp-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.ggp-row--rating-price{margin:8px 0 12px;align-items:flex-start}.ggp-price{font-size:22px;font-weight:850;line-height:1;color:#000;white-space:nowrap}.ggp-price del{font-size:14px;color:#999}.ggp-price ins{text-decoration:none;color:#000}
.ggp-rating{display:flex;flex-direction:column;gap:2px}.ggp-rating span{font-size:12px;letter-spacing:.04em;color:var(--ggp-pink)}.ggp-rating small{font-size:12px;color:var(--ggp-muted)}
.ggp-tagline{margin:0;font-size:15px;line-height:1.55;color:#2b2b2b}.ggp-scroll-row,.ggp-product-scroll{display:flex;gap:10px;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;margin:12px 0 16px;padding:1px 2px 8px}.ggp-scroll-row::-webkit-scrollbar,.ggp-product-scroll::-webkit-scrollbar{display:none}
.ggp-mini-card{min-width:152px;flex:0 0 152px;padding:14px;border-radius:18px;background:#fff;border:1px solid var(--ggp-line);box-shadow:0 10px 25px rgba(0,0,0,.04);display:flex;flex-direction:column;gap:4px}.ggp-mini-card .ggp-icon{width:34px;height:34px;border-radius:12px;display:grid;place-items:center;background:#f8f8f8;font-size:16px;margin-bottom:4px}.ggp-mini-card strong{font-size:13px;line-height:1.2;color:#111}.ggp-mini-card small{font-size:11px;line-height:1.35;color:var(--ggp-muted)}
.ggp-section-head{margin-bottom:14px}.ggp-section-head h2,.ggp-card h2{margin:0!important;font-size:19px!important;line-height:1.15!important;letter-spacing:-.025em;font-weight:850!important;color:#0d0d0d}.ggp-section-head--row{display:flex;justify-content:space-between;gap:12px;align-items:flex-end}.ggp-section-head--row small{font-size:11px;color:var(--ggp-muted);text-align:right;max-width:110px}
.ggp-benefit-grid{display:grid;grid-template-columns:1fr;gap:10px}.ggp-benefit-card{position:relative;padding:15px;border-radius:18px;background:linear-gradient(180deg,#fff,#fafafa);border:1px solid var(--ggp-line)}.ggp-benefit-card .ggp-dot{width:8px;height:8px;border-radius:50%;background:var(--ggp-pink);display:block;margin-bottom:10px}.ggp-benefit-card h3{margin:0 0 6px!important;font-size:15px!important;font-weight:800!important;color:#111}.ggp-benefit-card p{margin:0;font-size:13px;line-height:1.45;color:#555}
.ggp-size-card{display:flex;flex-direction:column;gap:14px;background:linear-gradient(135deg,#101010,#252525);color:#fff;border:none}.ggp-size-card .ggp-kicker{color:#fff}.ggp-size-card p{margin:9px 0 0;color:rgba(255,255,255,.74);font-size:13px;line-height:1.5}.ggp-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border-radius:999px;background:#fff;color:#111!important;font-weight:800;text-decoration:none!important;font-size:13px}.ggp-size-card .ggp-kicker:before{background:var(--ggp-pink)}
.ggp-product-card{width:132px;min-width:132px;text-decoration:none!important;color:#111!important;display:flex;flex-direction:column;gap:7px}.ggp-product-img{display:block;aspect-ratio:4/5;border-radius:18px;overflow:hidden;background:#f4f4f4;border:1px solid var(--ggp-line)}.ggp-product-img img{width:100%;height:100%;object-fit:cover;display:block}.ggp-product-card strong{font-size:12px;line-height:1.25;font-weight:750}.ggp-product-card span:not(.ggp-product-img){font-size:12px;font-weight:800;color:#111}.ggp-product-card del{color:#999;font-weight:400}.ggp-product-card ins{text-decoration:none}
.ggp-faq-list{display:flex;flex-direction:column;gap:8px}.ggp-faq-item{border:1px solid var(--ggp-line);border-radius:16px;background:#fff;overflow:hidden}.ggp-faq-item summary{cursor:pointer;padding:14px 15px;font-weight:800;font-size:14px;list-style:none;display:flex;justify-content:space-between;gap:12px}.ggp-faq-item summary:after{content:"+";font-size:18px;line-height:1;color:var(--ggp-pink)}.ggp-faq-item[open] summary:after{content:"–"}.ggp-faq-item p{margin:0;padding:0 15px 15px;color:#555;font-size:13px;line-height:1.5}.ggp-story-pills{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.ggp-story-pills span{padding:8px 10px;border-radius:999px;background:#f7f7f7;font-size:12px;font-weight:750;color:#222}.ggp-story p{font-size:14px;line-height:1.55;color:#555;margin:10px 0 0}
@media(min-width:850px){.ggp-title{font-size:30px!important}.ggp-benefit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ggp-mini-card{min-width:0;flex:1}.ggp-scroll-row{overflow:visible}.ggp-size-card{flex-direction:row;align-items:center;justify-content:space-between}.ggp-product-scroll{overflow:visible;flex-wrap:wrap}.ggp-product-card{width:150px;min-width:150px}}


/* v0.2 — Flatsome Custom Product Layout control
   Use these classes in UX Builder:
   section class="ggp-product-shell"
   gallery col class="ggp-gallery-col"
   info col class="ggp-info-col"
*/
.ggp-product-enabled .ggp-product-shell {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 14px;
    padding-right: 14px;
}

.ggp-product-enabled .ggp-product-shell .section-content,
.ggp-product-enabled .ggp-product-shell > .section-content {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.ggp-product-enabled .ggp-product-shell .row {
    max-width: 1180px;
}

.ggp-product-enabled .ggp-top-row {
    align-items: flex-start;
}

.ggp-product-enabled .ggp-gallery-col,
.ggp-product-enabled .ggp-info-col {
    box-sizing: border-box;
}

.ggp-product-enabled .ggp-gallery-col {
    max-width: 560px;
}

.ggp-product-enabled .ggp-gallery-col .col-inner {
    width: 100%;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.ggp-product-enabled .ggp-gallery-col .product-gallery,
.ggp-product-enabled .ggp-gallery-col .woocommerce-product-gallery,
.ggp-product-enabled .ggp-gallery-col .product-images,
.ggp-product-enabled .ggp-gallery-col .flickity-viewport,
.ggp-product-enabled .ggp-gallery-col .slide,
.ggp-product-enabled .ggp-gallery-col .woocommerce-product-gallery__wrapper {
    max-width: 560px !important;
}

.ggp-product-enabled .ggp-gallery-col img {
    max-width: 100%;
    height: auto;
}

.ggp-product-enabled .ggp-info-col .col-inner {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.ggp-product-enabled .ggp-info-col form.cart,
.ggp-product-enabled .ggp-info-col .cart {
    margin-top: 0;
}

.ggp-product-enabled .ggp-info-col .variations {
    margin-bottom: 12px;
}

.ggp-product-enabled .ggp-info-col .single_add_to_cart_button,
.ggp-product-enabled .ggp-info-col button.single_add_to_cart_button {
    min-height: 52px;
    border-radius: 999px !important;
    font-weight: 800;
    letter-spacing: .02em;
}

.ggp-product-enabled .ggp-info-col .quantity input.qty {
    border-radius: 999px;
    min-height: 44px;
}

.ggp-product-enabled .ggp-info-col .variations .label label,
.ggp-product-enabled .ggp-info-col .variations label {
    font-size: 13px;
    font-weight: 800;
    color: #111;
}

.ggp-product-enabled .ggp-info-col .ux-swatches .ux-swatch,
.ggp-product-enabled .ggp-info-col .variable-item,
.ggp-product-enabled .ggp-info-col .button-variable-item {
    min-height: 42px;
    border-radius: 14px !important;
}

.ggp-product-enabled .ggp-wide-block {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.ggp-product-enabled .ggp-card,
.ggp-product-enabled .ggp-section {
    isolation: isolate;
}

@media (max-width: 849px) {
    .ggp-product-enabled .ggp-product-shell {
        padding-left: 0;
        padding-right: 0;
    }

    .ggp-product-enabled .ggp-product-shell .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .ggp-product-enabled .ggp-gallery-col,
    .ggp-product-enabled .ggp-info-col {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .ggp-product-enabled .ggp-gallery-col {
        max-width: 100%;
        margin-bottom: 8px;
    }

    .ggp-product-enabled .ggp-gallery-col .col-inner,
    .ggp-product-enabled .ggp-gallery-col .product-gallery,
    .ggp-product-enabled .ggp-gallery-col .woocommerce-product-gallery,
    .ggp-product-enabled .ggp-gallery-col .product-images,
    .ggp-product-enabled .ggp-gallery-col .flickity-viewport,
    .ggp-product-enabled .ggp-gallery-col .slide,
    .ggp-product-enabled .ggp-gallery-col .woocommerce-product-gallery__wrapper {
        max-width: 100% !important;
    }

    .ggp-product-enabled .ggp-gallery-col .product-gallery,
    .ggp-product-enabled .ggp-gallery-col .woocommerce-product-gallery {
        border-radius: 22px;
        overflow: hidden;
    }

    .ggp-product-enabled .ggp-info-col .col-inner {
        max-width: 100%;
    }

    .ggp-product-enabled .ggp-card,
    .ggp-product-enabled .ggp-section {
        margin: 10px 0;
        border-radius: 20px;
        padding: 16px;
        box-shadow: 0 8px 22px rgba(0,0,0,.04);
    }

    .ggp-product-enabled .ggp-title {
        font-size: 23px !important;
    }

    .ggp-product-enabled .ggp-price {
        font-size: 21px;
    }

    .ggp-product-enabled .ggp-scroll-row {
        margin-left: -2px;
        margin-right: -2px;
    }

    .ggp-product-enabled .ggp-mini-card {
        min-width: 145px;
        flex-basis: 145px;
    }
}

@media (min-width: 850px) {
    .ggp-product-enabled .ggp-info-col {
        position: sticky;
        top: 92px;
        align-self: flex-start;
    }
}


/* v0.3 — aggressive mobile overflow containment */
.ggp-product-enabled,
.ggp-product-enabled body {
    overflow-x: hidden;
}

.ggp-product-enabled .ggp-product-shell,
.ggp-product-enabled .ggp-product-shell * {
    box-sizing: border-box;
}

.ggp-product-enabled .ggp-product-shell {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.ggp-product-enabled .ggp-product-shell .section-content,
.ggp-product-enabled .ggp-product-shell .row,
.ggp-product-enabled .ggp-product-shell .col,
.ggp-product-enabled .ggp-product-shell .col-inner,
.ggp-product-enabled .ggp-gallery-col,
.ggp-product-enabled .ggp-info-col,
.ggp-product-enabled .ggp-wide-block {
    max-width: 100%;
    min-width: 0;
}

.ggp-product-enabled .ggp-title,
.ggp-product-enabled .ggp-card,
.ggp-product-enabled .ggp-section,
.ggp-product-enabled .ggp-tagline,
.ggp-product-enabled .ggp-mini-card,
.ggp-product-enabled .ggp-product-card {
    overflow-wrap: anywhere;
    word-break: normal;
}

.ggp-product-enabled .ggp-gallery-col .flickity-slider,
.ggp-product-enabled .ggp-gallery-col .flickity-viewport,
.ggp-product-enabled .ggp-gallery-col .woocommerce-product-gallery,
.ggp-product-enabled .ggp-gallery-col .woocommerce-product-gallery__wrapper,
.ggp-product-enabled .ggp-gallery-col .product-gallery,
.ggp-product-enabled .ggp-gallery-col .product-images,
.ggp-product-enabled .ggp-gallery-col .slider,
.ggp-product-enabled .ggp-gallery-col .slider-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.ggp-product-enabled .ggp-gallery-col img,
.ggp-product-enabled .ggp-gallery-col picture,
.ggp-product-enabled .ggp-gallery-col video,
.ggp-product-enabled .ggp-info-col img {
    max-width: 100% !important;
    height: auto;
}

.ggp-product-enabled .ggp-info-col table,
.ggp-product-enabled .ggp-info-col tbody,
.ggp-product-enabled .ggp-info-col tr,
.ggp-product-enabled .ggp-info-col td,
.ggp-product-enabled .ggp-info-col th,
.ggp-product-enabled .ggp-info-col form,
.ggp-product-enabled .ggp-info-col .variations_form,
.ggp-product-enabled .ggp-info-col .cart,
.ggp-product-enabled .ggp-info-col .variations {
    max-width: 100%;
}

@media (max-width: 849px) {
    html.ggp-product-enabled,
    body.ggp-product-enabled {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .ggp-product-enabled .ggp-product-shell,
    .ggp-product-enabled .ggp-product-shell .section-content,
    .ggp-product-enabled .ggp-product-shell .row,
    .ggp-product-enabled .ggp-product-shell .col,
    .ggp-product-enabled .ggp-product-shell .col-inner {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        left: auto !important;
        right: auto !important;
        transform: none;
    }

    .ggp-product-enabled .ggp-product-shell .section-content {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .ggp-product-enabled .ggp-gallery-col,
    .ggp-product-enabled .ggp-info-col,
    .ggp-product-enabled .ggp-wide-block .col {
        flex-basis: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .ggp-product-enabled .ggp-gallery-col .col-inner,
    .ggp-product-enabled .ggp-info-col .col-inner {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .ggp-product-enabled .ggp-gallery-col .flickity-viewport,
    .ggp-product-enabled .ggp-gallery-col .slide,
    .ggp-product-enabled .ggp-gallery-col .product-gallery,
    .ggp-product-enabled .ggp-gallery-col .woocommerce-product-gallery,
    .ggp-product-enabled .ggp-gallery-col .product-images {
        overflow: hidden !important;
    }

    .ggp-product-enabled .ggp-gallery-col .slide,
    .ggp-product-enabled .ggp-gallery-col .woocommerce-product-gallery__image {
        width: 100% !important;
        max-width: 100% !important;
    }

    .ggp-product-enabled .ggp-title {
        max-width: 100%;
        font-size: clamp(20px, 6vw, 25px) !important;
        line-height: 1.08 !important;
        letter-spacing: -0.03em;
    }

    .ggp-product-enabled .ggp-row--rating-price {
        flex-wrap: wrap;
    }

    .ggp-product-enabled .ggp-price {
        white-space: normal;
    }

    .ggp-product-enabled .ggp-scroll-row,
    .ggp-product-enabled .ggp-product-scroll,
    .ggp-product-enabled .gg-color-swatches__list {
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .ggp-product-enabled .ggp-info-col .variations,
    .ggp-product-enabled .ggp-info-col .variations tbody,
    .ggp-product-enabled .ggp-info-col .variations tr,
    .ggp-product-enabled .ggp-info-col .variations td,
    .ggp-product-enabled .ggp-info-col .variations th {
        display: block;
        width: 100% !important;
    }

    .ggp-product-enabled .ggp-info-col .single_variation_wrap,
    .ggp-product-enabled .ggp-info-col .woocommerce-variation-add-to-cart,
    .ggp-product-enabled .ggp-info-col .single_add_to_cart_button {
        width: 100%;
        max-width: 100%;
    }

    .ggp-product-enabled .ggp-info-col .ux-swatches,
    .ggp-product-enabled .ggp-info-col .variable-items-wrapper,
    .ggp-product-enabled .ggp-info-col .gg-color-swatches {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
}


/* v0.4 — one-shortcode full product page layout */
.ggp-page,
.ggp-page * { box-sizing: border-box; }

.ggp-page {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px 14px 30px;
    overflow-x: hidden;
}

.ggp-page-top {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr);
    gap: 28px;
    align-items: start;
}

.ggp-gallery-panel,
.ggp-buy-panel,
.ggp-page-content,
.ggp-gallery-frame {
    min-width: 0;
    max-width: 100%;
}

.ggp-buy-panel {
    position: sticky;
    top: 92px;
    align-self: start;
}

.ggp-breadcrumb-wrap {
    margin-bottom: 10px;
    font-size: 12px;
}

.ggp-gallery-frame {
    border-radius: 26px;
    overflow: hidden;
    background: #f7f7f7;
}

.ggp-gallery-frame .woocommerce-product-gallery,
.ggp-gallery-frame .product-gallery,
.ggp-gallery-frame .product-images,
.ggp-gallery-frame .woocommerce-product-gallery__wrapper,
.ggp-gallery-frame .flickity-viewport,
.ggp-gallery-frame .slider,
.ggp-gallery-frame .slider-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.ggp-gallery-frame img,
.ggp-gallery-frame picture,
.ggp-gallery-frame video {
    max-width: 100% !important;
    height: auto;
}

.ggp-cart-wrap {
    width: 100%;
    max-width: 100%;
    margin: 12px 0 0;
}

.ggp-cart-wrap form.cart,
.ggp-cart-wrap .cart,
.ggp-cart-wrap table,
.ggp-cart-wrap tbody,
.ggp-cart-wrap tr,
.ggp-cart-wrap td,
.ggp-cart-wrap th,
.ggp-cart-wrap .variations_form,
.ggp-cart-wrap .variations,
.ggp-cart-wrap .single_variation_wrap,
.ggp-cart-wrap .woocommerce-variation-add-to-cart {
    width: 100%;
    max-width: 100%;
}

.ggp-cart-wrap .single_add_to_cart_button,
.ggp-cart-wrap button.single_add_to_cart_button {
    min-height: 54px;
    border-radius: 999px !important;
    font-weight: 850;
    letter-spacing: .02em;
}

.ggp-cart-wrap .quantity input.qty { border-radius: 999px; min-height: 44px; }

.ggp-cart-wrap .variations .label label,
.ggp-cart-wrap .variations label {
    font-size: 13px;
    font-weight: 850;
    color: #111;
}

.ggp-cart-wrap .gg-color-swatches { margin-top: 0; }
.ggp-cart-wrap .gg-color-swatches__list { max-width: 100%; }

.ggp-extra-info-block {
    margin: 12px 0;
    max-width: 100%;
    overflow: hidden;
}

.ggp-tabs-in-panel {
    margin-top: 10px;
    max-width: 100%;
    overflow: hidden;
}

.ggp-tabs-in-panel .woocommerce-tabs,
.ggp-tabs-in-panel .tab-panels,
.ggp-tabs-in-panel .panel,
.ggp-tabs-in-panel table {
    max-width: 100%;
}

.ggp-page-content {
    margin-top: 18px;
}

.ggp-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.ggp-related-section .related,
.ggp-related-section .products,
.ggp-related-section .row,
.ggp-related-section .col {
    max-width: 100%;
}

.ggp-page--fallback .ggp-buy-panel { position: sticky; top: 92px; }

@media (max-width: 849px) {
    .ggp-page {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 12px 24px !important;
        margin: 0 !important;
    }

    .ggp-page-top {
        display: block;
        width: 100%;
        max-width: 100%;
    }

    .ggp-buy-panel {
        position: static;
        width: 100%;
        max-width: 100%;
    }

    .ggp-gallery-panel {
        width: 100%;
        max-width: 100%;
        margin-bottom: 10px;
    }

    .ggp-gallery-frame {
        width: 100%;
        max-width: 100%;
        border-radius: 22px;
    }

    .ggp-gallery-frame .woocommerce-product-gallery,
    .ggp-gallery-frame .product-gallery,
    .ggp-gallery-frame .product-images,
    .ggp-gallery-frame .woocommerce-product-gallery__wrapper,
    .ggp-gallery-frame .flickity-viewport,
    .ggp-gallery-frame .slider,
    .ggp-gallery-frame .slider-wrapper,
    .ggp-gallery-frame .slide,
    .ggp-gallery-frame .woocommerce-product-gallery__image {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .ggp-cart-wrap .variations,
    .ggp-cart-wrap .variations tbody,
    .ggp-cart-wrap .variations tr,
    .ggp-cart-wrap .variations td,
    .ggp-cart-wrap .variations th {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
    }

    .ggp-cart-wrap .single_add_to_cart_button,
    .ggp-cart-wrap button.single_add_to_cart_button,
    .ggp-cart-wrap .woocommerce-variation-add-to-cart {
        width: 100% !important;
        max-width: 100% !important;
    }

    .ggp-two-col { display: block; }

    .ggp-page .ggp-card,
    .ggp-page .ggp-section {
        width: 100%;
        max-width: 100%;
    }

    .ggp-page .ggp-scroll-row,
    .ggp-page .ggp-product-scroll,
    .ggp-page .gg-color-swatches__list {
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
    }
}


/* v0.5 — fixes after live mobile test */
.ggp-product-enabled .ggp-gallery-frame .badge,
.ggp-product-enabled .ggp-gallery-frame .onsale,
.ggp-product-enabled .ggp-gallery-frame .sale-flash,
.ggp-product-enabled .ggp-gallery-frame .callout.badge,
.ggp-product-enabled .ggp-gallery-frame .badge-container { display:none !important; }

.ggp-size-card h2,
.ggp-size-card .ggp-section-head h2,
.ggp-size-card.ggp-card h2 { color:#fff !important; }
.ggp-size-card .ggp-button { border:0; cursor:pointer; }

.ggp-size-modal{position:fixed;inset:0;z-index:99999;display:none;align-items:center;justify-content:center;padding:18px;}
.ggp-size-modal.is-open{display:flex;}
.ggp-size-modal__overlay{position:absolute;inset:0;background:rgba(0,0,0,.58);backdrop-filter:blur(4px);}
.ggp-size-modal__dialog{position:relative;z-index:1;width:min(720px,100%);max-height:min(82vh,760px);overflow:auto;background:#fff;border-radius:24px;padding:20px;box-shadow:0 28px 80px rgba(0,0,0,.25);}
.ggp-size-modal__close{position:sticky;top:0;float:right;width:38px;height:38px;border-radius:50%;border:1px solid var(--ggp-line);background:#fff;font-size:26px;line-height:1;cursor:pointer;z-index:2;}
.ggp-size-modal__head{margin-bottom:14px;clear:both;}
.ggp-size-modal__head h2{margin:0!important;font-size:21px!important;line-height:1.15!important;color:#111!important;font-weight:850!important;}
.ggp-size-modal__content{font-size:14px;line-height:1.55;color:#222;}
.ggp-size-modal__content table{width:100%;border-collapse:collapse;margin:12px 0;display:table!important;}
.ggp-size-modal__content th,.ggp-size-modal__content td{border:1px solid #ececec;padding:10px 8px;text-align:left;font-size:13px;}
.ggp-size-modal__content th{background:#f7f7f7;font-weight:850;}
body.ggp-modal-open{overflow:hidden;}

.ggp-related-section .ux-products,
.ggp-related-section .slider,
.ggp-related-section .flickity-viewport{display:none!important;}
.ggp-related-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;}
.ggp-related-card{text-decoration:none!important;color:#111!important;display:flex;flex-direction:column;gap:8px;min-width:0;}
.ggp-related-card__img{display:block;aspect-ratio:4/5;border-radius:18px;overflow:hidden;background:#f5f5f5;border:1px solid var(--ggp-line);}
.ggp-related-card__img img{width:100%;height:100%;object-fit:cover;display:block;}
.ggp-related-card strong{font-size:13px;line-height:1.25;font-weight:780;}
.ggp-related-card__price{font-size:13px;font-weight:850;color:#111;}
.ggp-related-card__price del{color:#999;font-weight:400}.ggp-related-card__price ins{text-decoration:none;}

/* Flatsome gallery containment: keep native theme gallery but prevent oversized thumbs on mobile */
.ggp-gallery-frame .product-thumbnails,
.ggp-gallery-frame .product-thumbnails .flickity-slider,
.ggp-gallery-frame .product-thumbnails .flickity-viewport{max-width:100%!important;}
.ggp-gallery-frame .product-thumbnails a,
.ggp-gallery-frame .product-thumbnails .col,
.ggp-gallery-frame .product-thumbnails .is-nav-selected{max-width:72px!important;width:72px!important;flex:0 0 72px!important;}
.ggp-gallery-frame .product-thumbnails img{width:64px!important;height:64px!important;object-fit:cover!important;border-radius:12px;}

@media(max-width:849px){
  .ggp-gallery-frame{border-radius:18px;background:transparent;overflow:hidden;}
  .ggp-gallery-frame .product-gallery,
  .ggp-gallery-frame .product-images,
  .ggp-gallery-frame .woocommerce-product-gallery{border-radius:18px;overflow:hidden;}
  .ggp-gallery-frame .product-thumbnails{display:flex!important;gap:8px!important;overflow-x:auto!important;padding:8px 2px 2px!important;scrollbar-width:none;}
  .ggp-gallery-frame .product-thumbnails::-webkit-scrollbar{display:none;}
  .ggp-gallery-frame .product-thumbnails a,
  .ggp-gallery-frame .product-thumbnails .col{max-width:58px!important;width:58px!important;flex:0 0 58px!important;padding:0!important;}
  .ggp-gallery-frame .product-thumbnails img{width:54px!important;height:54px!important;border-radius:10px;}
  .ggp-related-grid{display:flex;gap:10px;overflow-x:auto;padding:2px 2px 8px;scrollbar-width:none;}
  .ggp-related-grid::-webkit-scrollbar{display:none;}
  .ggp-related-card{width:132px;min-width:132px;}
  .ggp-size-modal{padding:10px;align-items:flex-end;}
  .ggp-size-modal__dialog{width:100%;max-height:86vh;border-radius:22px 22px 0 0;padding:18px 14px 22px;}
  .ggp-size-modal__content{overflow-x:auto;}
}


/* v0.7 Premium size guide modal */
.ggp-size-modal__dialog{
    width:min(930px,calc(100vw - 24px));
    max-height:min(86vh,920px);
    border-radius:28px;
    padding:0;
    overflow:hidden;
    background:#fff;
    box-shadow:0 30px 90px rgba(0,0,0,.30);
}
.ggp-size-modal__head{
    padding:26px 22px 16px;
    background:linear-gradient(135deg,#fff 0%,#fff 55%,rgba(235,39,194,.07) 100%);
    border-bottom:1px solid #eeeeee;
}
.ggp-size-modal__head h2{margin:8px 0 8px!important;font-size:24px!important;line-height:1.08!important;letter-spacing:-.04em!important;font-weight:900!important;color:#080808!important;}
.ggp-size-modal__head p{margin:0;font-size:14px;line-height:1.45;color:#555;max-width:680px;}
.ggp-size-modal__close{top:16px!important;right:16px!important;width:52px!important;height:52px!important;border-radius:18px!important;background:#fff!important;border:1px solid #e8e8e8!important;box-shadow:0 10px 24px rgba(0,0,0,.06)!important;font-size:30px!important;line-height:1!important;color:#111!important;}
.ggp-size-modal__advice{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:14px 22px 0;background:#fff;}
.ggp-advice-card{border:1px solid #eee;border-radius:18px;padding:14px;background:#fafafa;}
.ggp-advice-card strong{display:block;font-size:14px;line-height:1.15;color:#111;margin-bottom:5px;}
.ggp-advice-card span{display:block;font-size:12px;line-height:1.38;color:#666;}
.ggp-size-recommender{margin:14px 22px 0;padding:16px;border-radius:22px;background:#111;color:#fff;}
.ggp-size-recommender__head h3{margin:5px 0 5px!important;font-size:18px!important;line-height:1.15!important;color:#fff!important;font-weight:850!important;letter-spacing:-.025em!important;}
.ggp-size-recommender__head p{margin:0 0 12px;font-size:12px;line-height:1.4;color:rgba(255,255,255,.72);}
.ggp-size-input-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;}
.ggp-size-input-grid label{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:800;color:rgba(255,255,255,.82);}
.ggp-size-input-grid input{width:100%;height:42px;border-radius:13px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.08);color:#fff;padding:0 11px;font-size:14px;box-shadow:none;}
.ggp-size-input-grid input::placeholder{color:rgba(255,255,255,.36);}
.ggp-size-calc-btn{margin-top:10px;width:100%;height:44px;border:0;border-radius:999px;background:#fff;color:#111;font-weight:900;font-size:13px;letter-spacing:.02em;}
.ggp-size-result{margin-top:10px;padding:12px 13px;border-radius:16px;background:rgba(255,255,255,.08);font-size:13px;line-height:1.4;color:rgba(255,255,255,.86);}
.ggp-size-result strong{color:#fff;}
.ggp-size-modal__content{padding:16px 22px 24px;overflow:auto;max-height:calc(86vh - 390px);}
.ggp-size-table-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:4px;}
.ggp-size-table-wrap table,.ggp-size-table{width:100%;border-collapse:separate!important;border-spacing:0!important;min-width:560px;background:#fff;border:1px solid #ebebeb;border-radius:20px;overflow:hidden;box-shadow:0 12px 34px rgba(0,0,0,.045);}
.ggp-size-table-wrap th,.ggp-size-table-wrap td{border:0!important;border-bottom:1px solid #ededed!important;border-right:1px solid #ededed!important;padding:14px 16px!important;text-align:left;font-size:14px;line-height:1.2;color:#555;background:#fff;}
.ggp-size-table-wrap th{background:#f7f7f7!important;color:#111!important;font-weight:850!important;font-size:13px;text-transform:none;}
.ggp-size-table-wrap tr:last-child td{border-bottom:0!important;}
.ggp-size-table-wrap tr td:last-child,.ggp-size-table-wrap tr th:last-child{border-right:0!important;}
.ggp-size-table-wrap td:first-child{font-weight:900;color:#111;background:#fcfcfc;}
.ggp-size-table-wrap p{font-size:13px;line-height:1.5;color:#555;}

@media (max-width: 849px){
  .ggp-size-modal__dialog{width:calc(100vw - 20px);max-height:84vh;border-radius:26px;}
  .ggp-size-modal__head{padding:24px 18px 14px;}
  .ggp-size-modal__head h2{font-size:22px!important;max-width:calc(100% - 58px);}
  .ggp-size-modal__advice{grid-template-columns:1fr;padding:12px 18px 0;}
  .ggp-size-recommender{margin:12px 18px 0;padding:14px;border-radius:20px;}
  .ggp-size-input-grid{grid-template-columns:1fr 1fr;gap:8px;}
  .ggp-size-input-grid label:last-child{grid-column:1 / -1;}
  .ggp-size-modal__content{padding:14px 18px 20px;max-height:calc(84vh - 535px);}
  .ggp-size-table-wrap table,.ggp-size-table{min-width:520px;}
  .ggp-size-table-wrap th,.ggp-size-table-wrap td{font-size:13px;padding:13px 12px!important;}
}

@media (max-width: 390px){
  .ggp-size-input-grid{grid-template-columns:1fr;}
  .ggp-size-modal__content{max-height:calc(84vh - 650px);}
}


/* v0.8.1 modal scroll + close button fix */
html:has(.ggp-size-modal.is-open){
    overflow:hidden;
}
body.ggp-modal-open{
    overflow:hidden!important;
    overscroll-behavior:none;
    touch-action:none;
}
.ggp-size-modal{
    position:fixed!important;
    inset:0!important;
    z-index:999999!important;
    display:none;
    align-items:center!important;
    justify-content:center!important;
    padding:12px!important;
    overflow:hidden!important;
    overscroll-behavior:contain;
    touch-action:none;
}
.ggp-size-modal.is-open{
    display:flex!important;
}
.ggp-size-modal__overlay{
    position:absolute!important;
    inset:0!important;
    z-index:0!important;
}
.ggp-size-modal__dialog{
    position:relative!important;
    z-index:1!important;
    width:min(930px, calc(100vw - 24px))!important;
    max-height:calc(100dvh - 24px)!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
    touch-action:pan-y;
    display:block!important;
    padding:0!important;
}
.ggp-size-modal__close{
    position:absolute!important;
    top:16px!important;
    right:16px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
    padding:0!important;
    margin:0!important;
    line-height:1!important;
    font-size:31px!important;
    font-weight:700!important;
    transform:none!important;
    z-index:5!important;
    -webkit-appearance:none!important;
    appearance:none!important;
}
.ggp-size-modal__close:hover,
.ggp-size-modal__close:focus{
    color:#111!important;
    background:#fff!important;
}
.ggp-size-modal__content{
    max-height:none!important;
    overflow:visible!important;
}
.ggp-size-table-wrap{
    overflow-x:auto!important;
    overflow-y:visible!important;
    -webkit-overflow-scrolling:touch;
    touch-action:pan-x pan-y;
}

@media (max-width:849px){
    .ggp-size-modal{
        align-items:flex-end!important;
        padding:0!important;
    }
    .ggp-size-modal__dialog{
        width:100vw!important;
        max-height:calc(100dvh - 18px)!important;
        border-radius:28px 28px 0 0!important;
        padding-bottom:calc(14px + env(safe-area-inset-bottom))!important;
    }
    .ggp-size-modal__close{
        top:14px!important;
        right:14px!important;
        width:52px!important;
        height:52px!important;
    }
    .ggp-size-modal__head h2{
        padding-right:62px!important;
        max-width:100%!important;
    }
}

@media (max-width:390px){
    .ggp-size-modal__dialog{
        max-height:calc(100dvh - 10px)!important;
    }
    .ggp-size-modal__close{
        width:48px!important;
        height:48px!important;
        border-radius:16px!important;
        font-size:29px!important;
    }
}


/* v1.0 fuller size recommendation logic */
.ggp-size-result-card{padding:14px 14px 13px;border-radius:18px;background:#fff;color:#111;margin-bottom:10px;}
.ggp-size-result-card span{display:block;font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#606f10;margin-bottom:5px;}
.ggp-size-result-card strong{display:block;font-size:30px;line-height:1;font-weight:950;color:#111;margin-bottom:6px;}
.ggp-size-result-card p{margin:0!important;color:#444!important;font-size:13px!important;line-height:1.4!important;}
.ggp-size-note,.ggp-size-error{margin-top:8px;padding:11px 12px;border-radius:15px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.14);color:rgba(255,255,255,.88);font-size:12px;line-height:1.42;}
.ggp-size-note strong,.ggp-size-error strong{color:#fff;}
.ggp-size-note--soft{background:rgba(235,39,194,.12);border-color:rgba(235,39,194,.25);}
.ggp-size-error{background:rgba(235,39,194,.16);border-color:rgba(235,39,194,.35);}

/* v1.2 AI-generated review summary */
.ggp-review-summary {
    margin: 12px 0 0;
    padding: 12px 14px;
    border-radius: 16px;
    background: #f7f7f7;
    color: #202020;
    font-size: 13px;
    line-height: 1.5;
}
.ggp-review-summary span {
    display: block;
    margin-bottom: 3px;
    font-size: 10px;
    line-height: 1.1;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 800;
    color: #606f10;
}


/* v1.8.1 — product tabs/pills closed by default */
.ggp-tabs-in-panel .woocommerce-tabs .panel,
.ggp-tabs-in-panel .woocommerce-tabs .woocommerce-Tabs-panel {
    display: none;
}
.ggp-tabs-in-panel .woocommerce-tabs .tabs li.active a,
.ggp-tabs-in-panel .woocommerce-tabs .wc-tabs li.active a {
    font-weight: 850;
}
.ggp-tabs-in-panel .woocommerce-tabs.ggp-tabs-collapsed .tabs li.active,
.ggp-tabs-in-panel .woocommerce-tabs.ggp-tabs-collapsed .wc-tabs li.active {
    background: #111;
}
