/* Giolleria 2.9.1 | Soft-edged storefront surfaces.
 * Scoped to the plugin's editorial pages; admin, checkout calculations,
 * WordPress dialogs and the fullscreen jewellery viewer are untouched.
 * Loaded after the commerce and editorial styles to avoid theme overrides.
 */
body.ge-site {
    --ge-corner-xl: 24px;
    --ge-corner-lg: 20px;
    --ge-corner-md: 14px;
    --ge-corner-sm: 10px;
}

/* Preserve the Giolleria homepage hero's square, edge-to-edge shape. */
.ge-site .ge-hero { border-radius: 0 !important; }

/* Other major coloured website sections keep their existing size and spacing. */
.ge-site .ge-feature,
.ge-site .ge-luxury-band,
.ge-site .ge-page-hero,
.ge-site .gs-shop-hero,
.ge-site .gs-brand-story {
    border-radius: var(--ge-corner-xl);
    overflow: hidden;
}

/* Collection and product photography, including cropped grid imagery. */
.ge-site .ge-product-photo,
.ge-site .ge-category-photo,
.ge-site .ge-store-image,
.ge-site .ge-launch-cards figure,
.ge-site .gs-product-image,
.ge-site .gs-product-gallery,
.ge-site .gs-gallery-stage,
.ge-site .gs-gallery-main,
.ge-site .gs-gallery-empty {
    border-radius: var(--ge-corner-lg);
    overflow: hidden;
}
.ge-site .ge-editorial-img {
    border-radius: var(--ge-corner-lg);
    overflow: hidden;
}
/* Preserve the collection's intentional arched silhouette, softening the bottom. */
.ge-site .ge-editorial-card:first-child .ge-editorial-img,
.ge-site .ge-editorial-card:nth-child(3) .ge-editorial-img {
    border-radius: 170px 170px var(--ge-corner-md) var(--ge-corner-md);
}

/* Gallery: rounded image stage, enlargement label, selected thumbnails. */
.ge-site .gs-gallery-enlarge,
.ge-site .gs-gallery-tools button,
.ge-site .gs-gallery-thumbs button,
.ge-site .gs-gallery-thumbs img {
    border-radius: var(--ge-corner-sm);
}
.ge-site .gs-gallery-thumbs button { overflow: hidden; }
.ge-site .gs-gallery-stage:focus-visible,
.ge-site .gs-product-image:focus-visible {
    outline-offset: -4px;
}
/* The classic storefront includes stronger zero-radius gallery rules. */
body.gs-storefront.gs-view-product .gs-gallery-stage { border-radius: 20px; }
body.gs-storefront.gs-view-product .gs-gallery-thumbs button { border-radius: 10px; overflow: hidden; }
body.gs-storefront.gs-view-product .gs-gallery-tools button { border-radius: 10px; }

/* Product options and calls to action remain rectangular, not pill-shaped. */
.ge-site .gs-shop-primary,
.ge-site .gs-reserve-button,
.ge-site #gs-variant-chips button,
.ge-site .gs-filter-toggle,
.ge-site .gs-sort-submit,
.ge-site .ge-btn,
.ge-site .gs-gallery-enlarge,
.ge-site .gs-product-secondary-actions .gs-advisor-link {
    border-radius: var(--ge-corner-md);
}
.ge-site .gs-filters input,
.ge-site .gs-filters select,
.ge-site .gs-sort-form select,
.ge-site .gs-variant-label select,
.ge-site .gs-address-form input,
.ge-site .gs-address-form select,
.ge-site .gs-address-form textarea,
.ge-site .ge-form-card input,
.ge-site .ge-form-card select,
.ge-site .ge-form-card textarea {
    border-radius: var(--ge-corner-sm);
}

/* Supporting panels and editorial cards. */
.ge-site .gs-item-panel,
.ge-site .gs-price-lines,
.ge-site .gs-cart-summary,
.ge-site .gs-auth-card,
.ge-site .gs-account-panel,
.ge-site .gs-address-card,
.ge-site .gs-customer-order,
.ge-site .gs-account-login,
.ge-site .gs-account-empty,
.ge-site .gs-confirmation-page > section,
.ge-site .gs-shop-empty,
.ge-site .ge-form-card,
.ge-site .ge-account-card,
.ge-site .ge-cart-summary,
.ge-site .ge-colour-stage,
.ge-site .ge-search-dialog,
.ge-site .gs-return-modal > section {
    border-radius: var(--ge-corner-lg);
}
.ge-site .gs-customer-order,
.ge-site .gs-account-login,
.ge-site .gs-confirmation-page > section,
.ge-site .ge-colour-stage {
    overflow: hidden;
}
.ge-site .gs-gallery-enlarge { border-radius: var(--ge-corner-sm); }

/* Mobile: refined, smaller corners with no loss of usable image area. */
@media (max-width: 760px) {
    body.ge-site {
        --ge-corner-xl: 18px;
        --ge-corner-lg: 16px;
        --ge-corner-md: 12px;
        --ge-corner-sm: 9px;
    }
    .ge-site .ge-editorial-card:first-child .ge-editorial-img,
    .ge-site .ge-editorial-card:nth-child(3) .ge-editorial-img {
        border-radius: 150px 150px var(--ge-corner-md) var(--ge-corner-md);
    }
}
