/* Shared visual rhythm for the active Glamics storefront. */
body.mp-glamics-theme {
    --mp-ui-ink: #20232b;
    --mp-ui-muted: #5f6877;
    --mp-ui-line: #e9e8ec;
    --mp-ui-radius: 24px;
    --mp-ui-shadow: 0 16px 38px rgba(24, 31, 43, .055);
    --mp-section-gap: clamp(28px, 3vw, 46px);
    --mp-order-gap: clamp(18px, 2vw, 26px);
    --mp-order-radius: 24px;
    line-height: 1.65;
}
body.mp-glamics-theme :is(p, li, dd) { overflow-wrap: break-word; }
body.mp-glamics-theme :is(.ul-container, .ul-inner-page-container) { min-width: 0; }
body.mp-glamics-theme .ul-inner-page-container {
    margin-top: clamp(28px, 3.4vw, 54px);
    margin-bottom: clamp(48px, 5vw, 82px);
}
/* Remove stacked top and bottom padding inside pages that already have an outer gutter. */
body.mp-glamics-theme .ul-inner-page-container > .mp-page-hero--compact { margin-top: 0; }
body.mp-glamics-theme .mp-product-page { padding-top: 0; padding-bottom: 0; }
body.mp-glamics-theme .mp-blog-index { padding-top: 0; padding-bottom: 0; }
body.mp-glamics-theme .mp-blog-post-hero { padding-top: 0; padding-bottom: 0; margin-bottom: clamp(28px, 3vw, 46px); }
body.mp-glamics-theme .ul-inner-page-container > .mp-account-page { margin-top: 0; padding-bottom: 0; }
body.mp-glamics-theme .ul-inner-page-container > .mp-order-success-v2 { padding-top: 0; padding-bottom: 0; }
body.mp-glamics-theme .ul-inner-page-container > .mp-cart-page,
body.mp-glamics-theme .ul-inner-page-container > .mp-checkout-layout { padding-bottom: 0; }
body.mp-glamics-theme .mp-info-page { padding-top: clamp(30px, 3.4vw, 54px); padding-bottom: clamp(48px, 5vw, 82px); }

/* Consistent headings throughout editorial and commerce pages. */
body.mp-glamics-theme .ul-section-heading { gap: clamp(15px, 2vw, 28px); margin-bottom: clamp(23px, 2.2vw, 34px); }
body.mp-glamics-theme .ul-section-sub-title { margin-bottom: 12px; font-size: clamp(11px, .8vw, 13px); font-weight: 700; letter-spacing: .16em; }
body.mp-glamics-theme .ul-section-title { font-size: clamp(28px, 2.35vw, 40px); font-weight: 650; line-height: 1.15; letter-spacing: -.035em; }
body.mp-glamics-theme :is(.mp-content-section-head, .mp-landing-heading) { margin-bottom: clamp(22px, 2.2vw, 32px); }
body.mp-glamics-theme .mp-content-section-head h2 { font-size: clamp(27px, 2.2vw, 38px); line-height: 1.16; letter-spacing: -.035em; }
body.mp-glamics-theme :is(.mp-blog-index-head h1, .mp-account-page-head h1, .mp-info-hero h1, .mp-catalog-hero .ul-breadcrumb-title, .mp-page-hero--compact .ul-breadcrumb-title) {
    font-size: clamp(34px, 3.3vw, 52px);
    line-height: 1.09;
    font-weight: 700;
    letter-spacing: -.04em;
}
body.mp-glamics-theme .mp-blog-post-hero-copy h1 { font-size: clamp(36px, 3.7vw, 58px); line-height: 1.08; font-weight: 700; }
body.mp-glamics-theme .mp-product-heading-block h1 { font-size: clamp(29px, 2.5vw, 42px); line-height: 1.14; }
body.mp-glamics-theme :is(.mp-blog-index-head p, .mp-account-page-head p, .mp-info-hero p, .mp-blog-post-hero-copy > p, .mp-breadcrumb-descr) {
    max-width: 780px;
    color: var(--mp-ui-muted);
    font-size: clamp(14px, 1vw, 16px);
    line-height: 1.7;
}
body.mp-glamics-theme .mp-blog-index-head { margin-bottom: clamp(24px, 2.8vw, 38px); }
body.mp-glamics-theme .mp-blog-index-head h1 { margin-block: 10px 12px; }
body.mp-glamics-theme .mp-page-hero--compact { padding: clamp(24px, 2.7vw, 42px); }
body.mp-glamics-theme :is(.mp-page-hero--compact, .mp-catalog-hero) { border-radius: var(--mp-ui-radius); }
body.mp-glamics-theme :is(.ul-breadcrumb-nav, .mp-product-breadcrumbs, .mp-info-breadcrumb) { color: var(--mp-ui-muted); font-size: 13px; line-height: 1.55; }

/* Cards keep their original colors and images, while sharing proportions. */
body.mp-glamics-theme :is(.mp-product-card-marketplace, .mp-blog-card, .mp-blog-related-grid article, .mp-account-card, .mp-account-auth-card, .mp-info-sections article) {
    border-radius: var(--mp-ui-radius);
    box-shadow: var(--mp-ui-shadow);
}
body.mp-glamics-theme .mp-product-card-marketplace { height: 100%; }
body.mp-glamics-theme .mp-product-card-marketplace .ul-product-txt { gap: 9px; padding: 0 16px 18px; }
body.mp-glamics-theme .mp-product-card-marketplace .ul-product-title { min-height: 2.7em; font-size: 15px; line-height: 1.36; font-weight: 650; }
body.mp-glamics-theme .mp-product-card-marketplace .ul-product-price { font-size: clamp(19px, 1.3vw, 23px); line-height: 1.15; }
body.mp-glamics-theme .mp-product-card-marketplace .ul-product-category { color: var(--mp-ui-muted); font-size: 12px; }
body.mp-glamics-theme .mp-product-grid { gap: clamp(14px, 1.7vw, 26px); }
body.mp-glamics-theme .mp-catalog-form { margin-top: clamp(24px, 2.5vw, 38px); }
body.mp-glamics-theme .mp-catalog-toolbar { margin-bottom: 22px; }
body.mp-glamics-theme .mp-catalog-page .ul-products-sidebar.mp-filter-panel {
    border: 1px solid var(--mp-ui-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--mp-ui-shadow);
}
body.mp-glamics-theme .mp-catalog-page .mp-filter-group { padding-block: 16px; }
body.mp-glamics-theme .mp-catalog-page .mp-filter-panel-head span { color: var(--mp-ui-muted); }
body.mp-glamics-theme .mp-product-page .ul-product-details-img,
body.mp-glamics-theme .mp-product-page .mp-product-thumbs button { border-radius: 18px; }
body.mp-glamics-theme .mp-product-page .mp-product-thumbs { gap: 12px; }
body.mp-glamics-theme .mp-product-specs dl div { gap: 18px; padding-block: 14px; }
body.mp-glamics-theme .mp-blog-card-media { height: auto; min-height: 210px; aspect-ratio: 4 / 3; }
body.mp-glamics-theme .mp-blog-card-copy { padding: clamp(19px, 1.8vw, 26px); }
body.mp-glamics-theme .mp-blog-card h2 { margin-top: 12px; font-size: clamp(19px, 1.45vw, 23px); line-height: 1.25; }
body.mp-glamics-theme .mp-blog-card p { color: var(--mp-ui-muted); font-size: 14px; line-height: 1.7; }
body.mp-glamics-theme .mp-blog-related-grid article > div { padding: 21px; }
body.mp-glamics-theme .mp-info-sections article { gap: 18px; }
body.mp-glamics-theme .mp-info-sections article p { color: var(--mp-ui-muted); line-height: 1.75; }
body.mp-glamics-theme .ul-footer-top-widget-links a,
body.mp-glamics-theme .ul-footer-middle-widget-content,
body.mp-glamics-theme .mp-footer-brand p { line-height: 1.6; }

/* Checkout and customer account use the same spacing and form language. */
body.mp-glamics-theme :is(.mp-cart-toolbar-card, .mp-cart-item-card, .mp-cart-summary-card, .mp-checkout-card, .mp-checkout-order-card, .mp-account-card, .mp-account-auth-card) {
    border-radius: var(--mp-ui-radius);
}
body.mp-glamics-theme :is(.mp-cart-toolbar-card, .mp-checkout-card, .mp-account-card) { padding: clamp(20px, 2.2vw, 34px); }
body.mp-glamics-theme :is(.mp-cart-toolbar-card h2, .mp-cart-summary-head h2, .mp-checkout-card-head h2, .mp-account-card-head h2) {
    font-size: clamp(22px, 1.8vw, 29px);
    line-height: 1.18;
    font-weight: 700;
    letter-spacing: -.03em;
}
body.mp-glamics-theme :is(.mp-cart-toolbar-card p, .mp-cart-summary-head p, .mp-checkout-card-head p, .mp-account-card p) { line-height: 1.65; }
body.mp-glamics-theme .mp-checkout-card label { letter-spacing: .035em; }
body.mp-glamics-theme .mp-checkout-card input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
body.mp-glamics-theme .mp-checkout-card textarea,
body.mp-glamics-theme .mp-account-form input:not([type="checkbox"]):not([type="hidden"]),
body.mp-glamics-theme .mp-account-form textarea {
    border-radius: 13px;
    border-color: #dedfe5;
}
body.mp-glamics-theme .mp-account-form input:not([type="checkbox"]):not([type="hidden"]) { min-height: 52px; }
body.mp-glamics-theme .mp-account-form textarea { min-height: 112px; }
body.mp-glamics-theme .mp-account-metrics article { border-radius: 19px; }
body.mp-glamics-theme :is(.mp-account-nav, .mp-account-auth-tabs) { border-radius: 16px; }
body.mp-glamics-theme :is(.mp-account-nav a, .mp-account-auth-tabs a) { border-radius: 12px; }

/* Consistent interaction feedback, without changing checkout selection logic. */
body.mp-glamics-theme :is(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--ul-primary); outline-offset: 3px; }
body.mp-glamics-theme :is(.ul-btn, .mp-cart-primary-btn, .mp-product-cart-button) { font-weight: 700; }

@media (max-width: 991px) {
    body.mp-glamics-theme .mp-catalog-page .ul-products-sidebar.mp-filter-panel { position: static; }
}
@media (max-width: 767px) {
    body.mp-glamics-theme { --mp-section-gap: 25px; --mp-order-gap: 17px; --mp-order-radius: 19px; --mp-ui-radius: 19px; }
    body.mp-glamics-theme .ul-inner-page-container { margin-top: 22px; margin-bottom: 48px; }
    body.mp-glamics-theme .ul-section-heading { margin-bottom: 22px; }
    body.mp-glamics-theme .ul-section-title { font-size: clamp(26px, 6.7vw, 33px); }
    body.mp-glamics-theme :is(.mp-blog-index-head h1, .mp-account-page-head h1, .mp-info-hero h1, .mp-catalog-hero .ul-breadcrumb-title, .mp-page-hero--compact .ul-breadcrumb-title) { font-size: clamp(29px, 8vw, 38px); }
    body.mp-glamics-theme .mp-blog-post-hero-copy h1 { font-size: clamp(32px, 8vw, 42px); }
    body.mp-glamics-theme .mp-product-heading-block h1 { font-size: clamp(27px, 7vw, 35px); }
    body.mp-glamics-theme :is(.mp-page-hero--compact, .mp-catalog-hero) { border-radius: 19px; }
    body.mp-glamics-theme .mp-product-card-marketplace .ul-product-txt { padding: 0 12px 15px; }
    body.mp-glamics-theme .mp-product-card-marketplace .ul-product-title { font-size: 13px; line-height: 1.35; }
    body.mp-glamics-theme .mp-catalog-product-grid .mp-product-card-marketplace .ul-product-price { font-size: 17px; }
    body.mp-glamics-theme .mp-blog-card-media { min-height: 0; }
    body.mp-glamics-theme .mp-blog-card-copy { padding: 19px; }
    body.mp-glamics-theme :is(.mp-checkout-card, .mp-account-card, .mp-cart-toolbar-card) { padding: 18px; }
    body.mp-glamics-theme .mp-checkout-card input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
    body.mp-glamics-theme .mp-checkout-card textarea,
    body.mp-glamics-theme .mp-account-form input:not([type="checkbox"]):not([type="hidden"]),
    body.mp-glamics-theme .mp-account-form textarea { font-size: 16px; }
}
@media (max-width: 420px) {
    body.mp-glamics-theme .mp-catalog-product-grid .mp-product-card-marketplace .ul-product-title { font-size: 12.5px; }
    body.mp-glamics-theme .mp-catalog-product-grid .mp-product-card-marketplace .ul-product-txt { padding-inline: 10px; }
    body.mp-glamics-theme .mp-catalog-product-grid .mp-product-card-marketplace .ul-product-price { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    body.mp-glamics-theme :is(.mp-blog-card, .mp-product-card-marketplace) { transition: none; }
}
