/* EGYPT'M — PRECISION EDITORIAL FINISH V2.0.4
   Non-destructive finishing layer. Actual class names verified in plugin. */
:is(#pmg-egm-home-v1,#egms-shop,#egmc-categories,#pmg-egm-about-v13,#pmg-egm-contact-v14,#pmg-egm-policy-center,.ega-root,.pmg-egm-footer){
 --em4-ink:#080808;--em4-gold:#d5a348;--em4-gold-bright:#f3d17a;--em4-paper:#f7f5f0;
 --em4-gap:clamp(14px,1.65vw,26px);--em4-round:14px;--em4-motion:cubic-bezier(.22,1,.36,1);
}
/* Actual component wrappers: consistent reading width, no forced width on full-bleed media */
#pmg-egm-home-v1 .pmg-egm-wrap,#egms-shop .egms-inner,#egmc-categories .egmc-shell,
#pmg-egm-about-v13 .ega-shell,#pmg-egm-contact-v14 .egc-container {
 max-width:1360px;margin-inline:auto;
}
/* Typographic balance and measurable rhythm */
#pmg-egm-home-v1 .pmg-egm-section-head,#egms-shop .egms-intro{margin-block-end:clamp(22px,3.2vw,48px)}
#pmg-egm-home-v1 .pmg-egm-section-head h2,#egms-shop .egms-intro h2{letter-spacing:-.018em;line-height:1.3}
#pmg-egm-home-v1 .pmg-egm-hero-copy p,#egms-shop .egms-hero-content p{max-width:60ch;line-height:1.85}
/* Product photos must never crop garments or footwear */
#pmg-egm-home-v1 .pmg-egm-product-visual,#egms-shop .egms-product-media{overflow:hidden;background:#f7f5f0;position:relative}
#pmg-egm-home-v1 .pmg-egm-product-visual img,#egms-shop .egms-product-image{object-fit:contain!important;object-position:center!important;transform:none!important;transition:opacity .3s ease!important}
#pmg-egm-home-v1 .pmg-egm-product-info,#egms-shop .egms-product-info{min-width:0}
#pmg-egm-home-v1 .pmg-egm-product-price,#egms-shop .egms-product-price{font-weight:700}
/* Card grids and forms retain their own layout rules, but consistent separators and focus */
#egms-shop .egms-filters{border-color:#e2d9c8;box-shadow:0 14px 32px rgba(8,8,8,.045)}
#egms-shop :is(input,select):focus-visible,#pmg-egm-contact-v14 :is(input,textarea):focus-visible{outline:2px solid #a2772c;outline-offset:2px}
#egms-shop .egms-filter-apply,#pmg-egm-home-v1 .pmg-egm-product-action{transition:background-color .22s ease,color .22s ease,box-shadow .22s ease}
/* Semantic visual hierarchy for callouts and editorial surfaces */
#pmg-egm-home-v1 .pmg-egm-editorial-grid,#pmg-egm-home-v1 .pmg-egm-about-grid{gap:clamp(24px,4vw,64px)}
#pmg-egm-home-v1 .pmg-egm-editorial-copy,#pmg-egm-home-v1 .pmg-egm-contact-copy{min-width:0}
/* Long Arabic titles and real product data */
:is(#egms-shop,#pmg-egm-home-v1,.ega-root) :is(.egms-product-title,.pmg-egm-product-title,.ega-card-title){overflow-wrap:anywhere;hyphens:auto}
/* Responsive editorial: no overflow, comfortable hit targets */
@media(max-width:767px){
 #pmg-egm-home-v1 .pmg-egm-hero-copy p,#egms-shop .egms-hero-content p{font-size:clamp(13px,3.6vw,15px)}
 #pmg-egm-home-v1 .pmg-egm-editorial-grid,#pmg-egm-home-v1 .pmg-egm-about-grid{gap:20px}
 #egms-shop .egms-pagination a,.ega-root .ega-pagination a{min-width:38px;min-height:38px;display:inline-flex;align-items:center;justify-content:center}
 #egms-shop .egms-filters :is(input,select){min-width:0;max-width:100%}
}
@media(prefers-reduced-motion:reduce){
 #pmg-egm-home-v1 .pmg-egm-product-visual img,#egms-shop .egms-product-image{transition:none!important}
}
