/* V632.1 restore admin design variables */
.brand-promise-crest img{width:100%;height:100%;object-fit:contain}
.contact-social-panel{display:flex!important;flex-wrap:wrap;gap:10px;justify-content:center}
.contact-social-panel[hidden]{display:none!important}
.contact-social-panel .social-action{min-width:72px;min-height:48px;border:1px solid var(--accent);border-radius:12px;background:var(--surface);color:var(--navy);padding:7px}
.contact-card{border-color:var(--accent)!important;background:var(--surface)!important}
.contact-aside img{max-width:150px;max-height:135px;object-fit:contain}
.mg627-register-wrap,.mg631-open,#mg623-privacy,#mg627-shipping-track,#mg622-home-payment{display:none!important}
.mg632-privacy-link{display:block;margin:8px auto;color:inherit;background:transparent;border:none;text-decoration:underline;font:inherit;font-size:11px;cursor:pointer}
.mg632-locked body{overflow:hidden}
.mg631-dialog .mg631-primary{background:var(--navy)!important}
.mg631-dialog .mg631-secondary{color:var(--navy)!important;text-decoration:underline}
.mg631-dialog .mg631-privacy{display:block!important;font-size:11px!important}
.mg631-dialog h2{font-size:23px!important}
.mg631-dialog{max-width:390px;border-radius:19px!important}
.mg61-shell{padding-top:3px!important}
.mg61-hero{padding:9px 12px!important;background:var(--navy2)!important;border-color:var(--accent)!important;margin:0 0 7px!important}
.mg61-hero span:empty{display:none}
.mg61-hero h1{font-size:21px!important;margin:0 0 3px!important}
.mg61-hero p{font-size:12px!important;margin:0!important}
.mg61-card{padding:10px!important;margin-block:7px!important}
.mg61-card h2{font-size:17px!important;margin:2px 0 6px!important}
.mg617-help p{font-size:12px;margin:4px 0!important}
.mg617-help .mg61-primary{min-height:40px!important}
.mg618-photo-card .mg61-file{min-height:43px!important}
.mg61-card details summary{font-size:12px!important}
.mg-ship-intro{padding:12px!important}
.mg-ship-benefit{font-size:14px!important}
.mg-ship-estimate{background:var(--ivory)!important;color:var(--navy)!important}
.mg-ship-badge{font-size:11px!important}
.cart-floating small{display:none!important}
@media(max-width:850px){body.shop-page .floating-shop-tools{bottom:calc(64px + env(safe-area-inset-bottom,0px));left:8px;gap:3px}}

/* V632.2: owner-controlled, full size product and cart media. */
body.shop-page[data-product-image-fit="cover"] .product-card .product-image-btn img,body.shop-page[data-product-image-fit="cover"] .product-card .product-image-btn video{object-fit:cover!important}
body.shop-page[data-product-image-ratio="natural"][data-product-layout="grid"] .product-card .product-image-btn{max-height:none!important}
body.shop-page[data-product-image-ratio="natural"][data-product-layout="grid"] .product-card .product-image-btn img{height:auto!important;max-height:none!important;width:100%!important}
.cart-item{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}.cart-media{display:grid;gap:8px;min-width:0}.cart-photo-open{display:block;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in}.cart-media .cart-photo,.cart-video{display:block;width:100%;height:auto;max-height:420px;object-fit:contain;border-radius:12px;background:var(--surface);aspect-ratio:auto}.cart-video{max-height:360px;min-height:120px}.cart-placeholder{min-height:90px;display:grid!important;place-items:center}.cart-item-body{min-width:0}.cart-item-body .cart-qty{flex-wrap:wrap}.cart-panel{width:min(560px,100%)}body[data-cart-media-size="compact"] .cart-media .cart-photo,body[data-cart-media-size="compact"] .cart-video{max-height:120px}body[data-cart-media-size="regular"] .cart-media .cart-photo,body[data-cart-media-size="regular"] .cart-video{max-height:230px}
body.mg622-catalog #homeCats.mg627-grid{grid-template-columns:repeat(var(--mg-main-columns,2),minmax(0,1fr));gap:12px}body.mg622-catalog #homeCats .mg627-main-card{border-radius:var(--card-radius,14px);border-color:var(--accent);background:var(--surface);color:var(--ink);min-height:96px;grid-column:auto}body.mg622-catalog #homeCats .mg627-main-card[data-main=products]{grid-column:1/-1;background:var(--navy);color:var(--surface)}body[data-main-card-size="compact"] #homeCats .mg627-main-card{min-height:68px;padding:9px}body[data-main-card-size="large"] #homeCats .mg627-main-card{min-height:140px;padding:20px}
@media(max-width:700px){body.mg622-catalog #homeCats.mg627-grid{grid-template-columns:repeat(var(--mg-main-mobile-columns,2),minmax(0,1fr))}body.shop-page[data-studio-mobile-products="true"] .product-grid:is(.listing,.featured-grid){grid-template-columns:repeat(var(--mg-mobile-products,1),minmax(0,1fr))}.cart-panel .cart-media .cart-photo{width:100%;height:auto}.cart-panel .cart-top{padding:14px}.cart-panel .cart-items{padding:10px}}

body.shop-page .product-card :is(button,a){scroll-margin-block-start:calc(var(--header-h,66px) + 24px)}

/* V632.3: refined brand, compact contact and identity. Media sizing remains owner-controlled. */
body.shop-page .brand em{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;text-align:center!important;overflow-wrap:normal!important;line-height:1.1!important;min-width:0}
body.shop-page .brand em .mg632-brand-name{white-space:nowrap;font-size:1em;font-weight:850;letter-spacing:0}
body.shop-page .brand em .mg632-brand-sub{font-size:.68em;font-weight:600;letter-spacing:.22em;white-space:nowrap}
body.shop-page .brand>span{min-width:0;flex:1}body.shop-page .brand img{border-radius:0!important}
body.shop-page .header-inner{gap:8px}body.shop-page .header-utilities{flex-shrink:0}
body.shop-page .brand-credentials{padding:8px 12px;background:transparent;border:0}
body.shop-page .brand-credentials[hidden]{display:none!important}
body.shop-page .brand-credentials-inner{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:8px;padding:12px 13px;border:1px solid color-mix(in srgb,var(--accent) 65%,transparent);background:color-mix(in srgb,var(--surface) 83%,var(--ivory))!important;border-radius:15px;color:var(--ink);max-width:1100px;box-shadow:0 4px 18px #14202a09}
body.shop-page .brand-credentials-inner>.credential-icon{display:none}
body.shop-page .brand-credentials-inner>strong{grid-column:1/-1;font-size:13px;font-weight:800;color:var(--ink);text-align:center;padding:0 0 4px}
body.shop-page .brand-credentials-inner>span:not(.credential-icon){min-width:0;display:flex;flex-direction:column;align-items:center;gap:3px;background:color-mix(in srgb,var(--navy) 5%,var(--surface));border:1px solid color-mix(in srgb,var(--accent) 28%,transparent);padding:6px 5px;border-radius:9px;text-align:center;color:var(--ink)}
body.shop-page .brand-credentials-inner>span[hidden]{display:none!important}
.mg632-credential-label{font-size:10px;opacity:.8;font-weight:650}.mg632-credential-value{font-size:clamp(10px,2.9vw,14px);font-weight:800;overflow-wrap:anywhere;line-height:1.3;max-width:100%;font-variant-numeric:tabular-nums}
.mg632-location{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:8px;text-decoration:none;font-weight:750;color:var(--ink);padding:7px 2px 0;font-size:12px;text-align:right;border-top:1px solid color-mix(in srgb,var(--accent) 28%,transparent)}
.mg632-location svg{width:21px;height:21px;color:var(--accent);flex:none}.mg632-location-copy{min-width:0;flex:1;display:grid;gap:2px}.mg632-location-copy strong{font-size:11px}.mg632-location-copy small{font-weight:500;opacity:.85;font-size:11px;overflow-wrap:anywhere}.mg632-map-arrow{font-size:18px;opacity:.8}
.mg632-call-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;flex:1 1 100%;max-width:500px;margin:0 auto;width:100%}
body.shop-page .mg632-call-pair .hero-call-link,body.shop-page .mg632-service{min-height:52px!important;height:auto;box-sizing:border-box;min-width:0;display:flex;align-items:center;justify-content:center;gap:8px;border-radius:12px!important;padding:8px 9px!important;text-decoration:none;box-shadow:0 4px 12px #13221c14!important;line-height:1.25;white-space:normal}
body.shop-page .mg632-call-pair .hero-call-link{background:linear-gradient(140deg,#26734e,#15553f)!important;color:#f4f8f2!important;border:1px solid #43886b!important;max-width:none!important;width:100%}
body.shop-page .mg632-service{background:linear-gradient(140deg,color-mix(in srgb,var(--navy) 82%,var(--accent)),var(--navy))!important;color:#f4f2e9!important;border:1px solid color-mix(in srgb,var(--accent) 65%,transparent)!important}
body.shop-page .mg632-call-pair .hero-call-link svg,body.shop-page .mg632-service svg{width:24px!important;height:24px!important;flex:none;color:#dfece4!important}
.mg632-service-copy,.mg632-call-pair .hero-call-copy{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0;text-align:center}
body.shop-page .mg632-call-pair .hero-call-copy strong,.mg632-service-copy strong{font-size:12px!important;color:inherit!important;font-weight:750;white-space:nowrap;direction:rtl}.mg632-service-copy bdi,.mg632-call-pair .hero-call-copy b{font-size:11px!important;font-weight:650;color:inherit!important;direction:ltr;white-space:nowrap}
body.shop-page .floating-shop-tools .cart-floating{background:linear-gradient(135deg,#267d51,#145a3e)!important;border:1px solid #82bf93!important;box-shadow:0 4px 15px #19452a35!important;color:#f3fff5!important;max-width:145px!important;width:auto!important;padding:7px 10px!important;gap:5px!important;min-height:38px!important;white-space:nowrap!important;flex-wrap:nowrap!important;font-size:12px!important;border-radius:24px!important}
body.shop-page .floating-shop-tools .cart-floating b{background:#e2f0df!important;color:#164c36!important;min-width:20px!important;height:20px!important}.cart-floating span{display:inline!important;font-size:12px!important}
body.shop-page .floating-shop-tools .developer-credit{width:max-content!important;max-width:calc(100vw - 16px)!important;min-width:0!important;padding:5px 9px!important;background:linear-gradient(135deg,#152b38,#0c1d27)!important;border:1px solid #bca37b!important;border-radius:10px!important;gap:2px!important;text-align:center;box-shadow:0 4px 10px #0a1c2a22!important}
body.shop-page .floating-shop-tools .developer-credit strong{font:700 10px/1.15 Arial,sans-serif!important;letter-spacing:.25px;white-space:nowrap!important;display:block;color:#f0e9da!important}
body.shop-page .floating-shop-tools .developer-credit small{font:700 6.5px/1.15 Arial,sans-serif!important;letter-spacing:1.8px;white-space:nowrap;color:#d1b986!important}
.mg631-dialog .mg631-head img{display:block;width:150px!important;height:auto!important;max-height:106px;object-fit:contain;image-rendering:auto;filter:none}
@media(max-width:700px){body.shop-page .brand em{font-size:clamp(11px,var(--header-text,19px),15px)!important}body.shop-page .brand em .mg632-brand-name{font-size:clamp(10px,3.5vw,15px);letter-spacing:0}body.shop-page .brand em .mg632-brand-sub{font-size:10px;letter-spacing:.16em}body.shop-page .brand img{max-width:42px!important;max-height:42px!important}.mg632-call-pair{gap:6px}.mg632-call-pair .hero-call-link,.mg632-service{padding:7px 5px!important;gap:4px}.mg632-credential-value{font-size:clamp(10px,2.9vw,13px)}body.shop-page .floating-shop-tools .developer-credit{padding:4px 7px!important}}
@media(max-width:350px){body.shop-page .brand em .mg632-brand-name{font-size:10px}body.shop-page .brand img{max-width:32px!important;max-height:32px!important}body.shop-page .header-utilities{gap:3px}.mg632-call-pair .hero-call-link svg,.mg632-service svg{width:18px!important;height:18px!important}}
/* Keep the header within the viewport, even with many optional actions. */
@media(max-width:700px){
 body.shop-page .header-inner{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,auto);width:100%;max-width:100%;gap:7px!important;overflow:hidden}
 body.shop-page .header-inner .brand{min-width:0;max-width:100%;transform:translate(clamp(-3px,var(--brand-x,0px),3px),var(--brand-y,0px))}
 body.shop-page .header-inner .brand>span{min-width:0;overflow:hidden}
 body.shop-page .header-utilities{min-width:0;max-width:39vw;width:auto!important;margin:0;gap:4px!important;flex-wrap:wrap;justify-content:flex-end;flex-shrink:1}
 body.shop-page .header-utilities .header-quick-links{min-width:0;max-width:100%;gap:3px;flex-wrap:wrap}
 body.shop-page .header-utilities :is(.icon-btn,.mg611-contact){width:31px!important;min-width:31px!important;height:31px!important;min-height:31px!important;padding:5px!important;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;border:1px solid var(--accent);background:transparent;color:inherit}
 body.shop-page .header-utilities .mg611-contact[hidden]{display:none!important}
 body.shop-page .header-utilities .mg611-contact svg{width:19px!important;height:19px!important}.header-utilities .mg611-contact span{display:none!important}
 body.shop-page:has(.mobile-nav [data-nav=interior]:not([hidden])) .header-utilities [data-nav=interior],body.shop-page:has(.mobile-nav [data-nav=customDesign]:not([hidden])) .header-utilities [data-nav=customDesign]{display:none!important}
 body.shop-page .header-inner .brand em .mg632-brand-name{white-space:normal;overflow-wrap:normal;text-align:center}
 body.shop-page .floating-shop-tools{left:max(8px,calc(8px - var(--dock-x,0px)));bottom:calc(76px + max(0px,var(--dock-y,0px)) + env(safe-area-inset-bottom,0px));gap:4px;}
}
@media(min-width:701px){body.shop-page .floating-shop-tools{left:max(14px,calc(14px - var(--dock-x,0px)));bottom:calc(16px + max(0px,var(--dock-y,0px)))}}
/* Home services use the owner's current palette without changing product/card media sizes. */
body.mg622-catalog #homeCats .mg627-main-card{background:linear-gradient(140deg,color-mix(in srgb,var(--surface) 88%,var(--ivory)),color-mix(in srgb,var(--surface) 93%,var(--navy)));border:1px solid color-mix(in srgb,var(--accent) 46%,transparent);box-shadow:0 3px 12px #1220220c;min-height:82px;padding:11px 12px}
body.mg622-catalog #homeCats .mg627-main-card[data-main=products]{background:linear-gradient(135deg,var(--navy),color-mix(in srgb,var(--navy) 82%,var(--accent)));color:#fff4dc;border-color:color-mix(in srgb,var(--accent) 85%,transparent)}
body.mg622-catalog #homeCats .mg627-main-card:not([data-main=products]) .mg627-symbol{background:color-mix(in srgb,var(--accent) 21%,var(--surface));color:var(--ink);border:1px solid color-mix(in srgb,var(--accent) 26%,transparent)}
body.mg622-catalog #homeCats .mg627-main-card .mg627-copy strong{font-size:clamp(13px,3.5vw,17px);line-height:1.25}
body.mg622-catalog #homeCats .mg627-main-card .mg627-copy small{font-size:11px;line-height:1.4}
body.mg622-catalog[data-main-card-size=compact] #homeCats .mg627-main-card{min-height:65px;padding:8px}
body.mg622-catalog[data-main-card-size=large] #homeCats .mg627-main-card{min-height:135px;padding:19px}
@media(max-width:700px){body.shop-page .header-utilities :is(.icon-btn,.mg611-contact){color:#f2e4ce!important}body.shop-page .header-utilities :is(.icon-btn,.mg611-contact) svg{color:inherit}body.shop-page .header-utilities .mg611-contact svg{stroke:currentColor}}

/* V634 Ultimate: Smooth transitions, micro-interactions, and 6-theme polish */
.view.active{animation:mg634FadeIn .32s cubic-bezier(.22,.61,.36,1) both}
@keyframes mg634FadeIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.product-card,.category-card,.mg632-card{transition:transform .24s cubic-bezier(.22,.61,.36,1),box-shadow .24s ease,border-color .24s ease}
@media(hover:hover){.product-card:hover,.category-card:hover{transform:translateY(-4px);box-shadow:0 14px 30px rgba(0,0,0,.11)}}
.primary-btn,.outline-btn,.cart-add-detail{transition:transform .16s ease,box-shadow .2s ease,background-color .2s ease}
.primary-btn:active,.outline-btn:active,.cart-add-detail:active{transform:scale(.98)}
body[data-studio-finish="luxe"] .product-card{border-color:color-mix(in srgb,var(--accent,#c9974b) 35%,transparent)}
body[data-studio-finish="editorial"] .product-card{border-radius:4px;box-shadow:none;border:1px solid rgba(0,0,0,.12)}
body[data-studio-finish="minimal"] .product-card{box-shadow:0 2px 10px rgba(0,0,0,.04)}
