/*
Theme Name: M2M Catalog Launch
Template: blocksy
Version: 0.2.0-review
Requires PHP: 7.4
Description: Design-preserving display extraction; no campaign or inventory writers.
*/
/* M2M P1.3C/E — staging catalog foundation */
:root {
 --theme-palette-color-1:#6E3B6E;
 --theme-palette-color-2:#4E284E;
 --theme-palette-color-3:#2F2630;
 --theme-palette-color-4:#2F2630;
 --theme-palette-color-5:#E6D9E3;
 --theme-palette-color-6:#F1EAF5;
 --theme-palette-color-7:#FFFFFF;
 --theme-palette-color-8:#ffffff;
 --theme-font-family:Arial,Helvetica,sans-serif;
 --theme-font-size:16px;
 --theme-line-height:1.65;
 --theme-container-max-width:1200px;
 --theme-container-edge-spacing:90vw;
 --theme-button-background-initial:#6E3B6E;
 --theme-button-background-hover:#4E284E;
 --theme-button-text-initial:#ffffff;
 --theme-button-text-hover:#ffffff;
 --theme-button-border-radius:8px;
 --theme-button-min-height:46px;
}
body { font-family:Arial,Helvetica,sans-serif; color:#2F2630; background:#FFFFFF; }
h1,h2,h3,h4,h5,h6 { font-family:Arial,Helvetica,sans-serif; color:#2F2630; }
a { --theme-link-initial-color:#6E3B6E; --theme-link-hover-color:#4E284E; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible { outline:3px solid #4E284E; outline-offset:3px; }
.woocommerce ul.products { --shop-columns:repeat(4,minmax(0,1fr)); gap:28px; }
.woocommerce ul.products li.product { background:#fff; border:1px solid #E6D9E3; border-radius:12px; padding:16px; overflow:hidden; }
.woocommerce ul.products li.product figure { background:#fff; }
.woocommerce ul.products li.product img { aspect-ratio:1/1; object-fit:contain; }
.woocommerce ul.products .woocommerce-loop-product__title { font-size:17px; line-height:1.4; }
.woocommerce .price { color:#4E284E; font-weight:600; }
.woocommerce div.product .woocommerce-product-gallery img { object-fit:contain; }
.woocommerce div.product .woocommerce-tabs { border-top:1px solid #E6D9E3; margin-top:40px; }
.woocommerce .woocommerce-breadcrumb { font-size:14px; }
[data-header] { border-bottom:1px solid #E6D9E3; }
[data-footer] { border-top:1px solid #E6D9E3; background:#F1EAF5; }
@media(max-width:999px) { .woocommerce ul.products { --shop-columns:repeat(3,minmax(0,1fr)); gap:20px; } }
@media(max-width:689px) { .woocommerce ul.products { --shop-columns:repeat(2,minmax(0,1fr)); gap:12px; } .woocommerce ul.products li.product { padding:10px; } .woocommerce ul.products .woocommerce-loop-product__title { font-size:15px; } }

/* Final product layout and consistent container */
[data-header] .ct-container,main .ct-container,[data-footer] .ct-container {max-width:1200px;}
.woocommerce-product-gallery .ct-media-container img {max-height:560px;object-fit:contain;}
@media(max-width:999px){.woocommerce-product-gallery .ct-media-container img{max-height:420px;}}
@media(max-width:689px){.woocommerce-product-gallery .ct-media-container img{max-height:340px;}.site-title{font-size:20px;}}
/* M2M luxury palette — original gold logo remains unchanged */
:root { --m2m-plum:#6E3B6E; --m2m-rose:#C96A9F; --m2m-blush:#F8EAF2; --m2m-lavender:#F1EAF5; --m2m-gold:#CFAF62; --m2m-ink:#2F2630; --m2m-border:#E6D9E3; --theme-palette-color-2:#C96A9F; --theme-palette-color-6:#F1EAF5; --theme-palette-color-7:#F8EAF2; }
body {background:#FFFFFF;color:#2F2630;}
#header [data-row] {background:#FFFFFF!important;}
#header {border-bottom:1px solid #E6D9E3;}
#header .site-title {color:#6E3B6E;}
.hero-section {background:linear-gradient(110deg,#F8EAF2,#F1EAF5);}
.woocommerce ul.products .woocommerce-loop-product__title {color:#2F2630;}
.woocommerce .price {color:#2F2630;}
.woocommerce .onsale {background:#6E3B6E!important;color:#FFFFFF!important;}
.m2m-catalog-note {background:#F8EAF2!important;border-left-color:#CFAF62!important;color:#2F2630;}
#footer {background:#2F2630;color:#FFFFFF;border-top:3px solid #CFAF62;--theme-text-color:#FFFFFF;--theme-link-initial-color:#FFFFFF;--theme-link-hover-color:#CFAF62;}
#footer [data-row] {background:#2F2630!important;}
#footer .ct-footer-copyright,#footer p {color:#FFFFFF;}
#footer a {color:#FFFFFF;}
#footer a:hover {color:#CFAF62;}

/* Keep the catalog predominantly white; soft color belongs to the hero. */
body {background:#FFFFFF!important;}
.hero-section {background:linear-gradient(110deg,#F8EAF2,#F1EAF5)!important;}
.woocommerce ul.products .woocommerce-loop-product__title a {color:#2F2630;}

/* M2M Gutenberg homepage — staging, October 2026 */
:root{--theme-palette-color-1:#C96A9F;--theme-palette-color-2:#6E3B6E;--theme-palette-color-7:#F8EAF2;}
.m2m-home{max-width:1200px!important;margin:auto;color:#2F2630;}
.m2m-home>.wp-block-columns{margin:24px 0 0;gap:24px;}
.m2m-hero{padding:clamp(32px,7vw,88px)!important;border-radius:24px;background:radial-gradient(circle at 90% 20%,#cfaf6240 0,transparent 30%),linear-gradient(120deg,#F8EAF2 25%,#F1EAF5);border:1px solid #E6D9E3;}
.m2m-hero h1{font-size:clamp(38px,5vw,68px);line-height:1.08;letter-spacing:-2px;max-width:820px;margin:20px 0;}
.m2m-hero p{max-width:580px;}
.m2m-hero p:first-child,.m2m-section>p:first-child,.m2m-feature>p:first-child,.m2m-promo>p:first-child,.m2m-visit>p:first-child{font-size:12px;font-weight:700;letter-spacing:2px;color:#6E3B6E;}
.m2m-section{padding:64px 0!important;scroll-margin-top:30px;}
.m2m-section h2{font-size:clamp(28px,3vw,38px);letter-spacing:-.7px;}
.m2m-home h3{font-size:23px;line-height:1.3;}
.m2m-feature{padding:34px!important;border-radius:18px;height:100%;border:1px solid #E6D9E3;}
.m2m-lavender{background:#F1EAF5;}.m2m-blush{background:#F8EAF2;}
.m2m-category{background:#fff;border:1px solid #E6D9E3;border-top:3px solid #CFAF62;padding:26px!important;border-radius:14px;height:100%;}
.m2m-category a,.m2m-brand a{color:#6E3B6E;text-decoration:none;}
.m2m-category:hover,.m2m-brand:hover{border-color:#C96A9F;}
.m2m-brand{background:#fff;border:1px solid #E6D9E3;border-radius:12px;padding:24px!important;text-align:center;}
.m2m-brand h3{margin:0;}
.m2m-promo{background:#6E3B6E;padding:48px!important;border-radius:20px;color:#fff;}
.m2m-promo h2,.m2m-promo>p:first-child{color:#fff;}
.m2m-home .wp-block-button__link{background:#6E3B6E;color:#fff;border-radius:8px;padding:14px 24px;font-size:15px;font-weight:600;}
.m2m-home .wp-block-button__link:hover{background:#4E284E;color:#fff;}
.m2m-promo .wp-block-button__link{background:#fff;color:#6E3B6E;}
.m2m-visit{padding:50px!important;background:#F1EAF5;border-top:3px solid #CFAF62;border-radius:18px;margin:20px 0 64px;scroll-margin-top:30px;}
.m2m-home .wc-block-product-template{gap:22px;}
.m2m-home .wc-block-product-template>li{background:#fff;border:1px solid #E6D9E3;border-radius:14px;padding:16px;min-width:0;}
.m2m-home .wc-block-product-template img{aspect-ratio:1;object-fit:contain;}
.m2m-home .wc-block-product-template h2{font-size:17px!important;line-height:1.4;letter-spacing:0;}
.m2m-home .wc-block-product-template .price{color:#2F2630;}
.m2m-home .wc-block-product-template .wp-block-button__link{padding:10px 14px;}
@media(max-width:781px){.m2m-section{padding:40px 0!important;}.m2m-hero{border-radius:16px;}.m2m-hero h1{letter-spacing:-1px;}.m2m-home .wp-block-columns{gap:16px;}.m2m-feature,.m2m-promo,.m2m-visit{padding:26px!important;}.m2m-home .wc-block-product-template{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px;}.m2m-home .wc-block-product-template>li{padding:10px;}.m2m-home .wc-block-product-template h2{font-size:15px!important;}}

/* Home header: editable Gutenberg blocks; inner pages retain Blocksy header. */
.m2m-home-header{max-width:1200px!important;margin:0 auto 34px!important;}
.m2m-announcement{background:#6E3B6E;color:#fff;text-align:center;padding:10px 16px!important;font-size:13px;letter-spacing:.3px;}
.m2m-announcement p{margin:0;}
.m2m-home-header>.wp-block-columns{align-items:center;gap:24px;margin:0;padding:22px 0;}
.m2m-home-header>.wp-block-columns>.wp-block-column:first-child{flex-basis:20%!important;}
.m2m-home-header>.wp-block-columns>.wp-block-column:nth-child(2){flex-basis:55%!important;}
.m2m-home-header>.wp-block-columns>.wp-block-column:last-child{flex-basis:25%!important;text-align:right;font-size:14px;font-weight:600;}
.m2m-home-header figure{margin:0;}.m2m-home-header img{width:86px;height:auto;}
.m2m-home-header .wp-block-search__inside-wrapper{border:1px solid #E6D9E3;border-radius:8px;padding:3px;}
.m2m-home-header .wp-block-search__button{background:#6E3B6E;color:white;border:0;border-radius:6px;padding:10px 18px;}
.m2m-home-header input{min-width:0;border:0;}
.m2m-home-header a{color:#6E3B6E;text-decoration:none;}
.m2m-home-nav{border-top:1px solid #E6D9E3;border-bottom:1px solid #E6D9E3;padding:16px 0!important;}
.m2m-home-nav p{display:flex;justify-content:center;gap:26px;flex-wrap:wrap;line-height:1.5;margin:0;font-size:14px;font-weight:600;}
.m2m-home-header a:hover{color:#4E284E;text-decoration:underline;}
@media(max-width:781px){.m2m-home-header{margin-bottom:24px!important;}.m2m-home-header>.wp-block-columns{display:grid;grid-template-columns:1fr 1fr;padding:16px 0;gap:16px;}.m2m-home-header>.wp-block-columns>.wp-block-column:first-child{grid-row:1;grid-column:1;}.m2m-home-header>.wp-block-columns>.wp-block-column:last-child{grid-row:1;grid-column:2;}.m2m-home-header>.wp-block-columns>.wp-block-column:nth-child(2){grid-row:2;grid-column:1/-1;}.m2m-home-nav p{gap:12px 18px;font-size:13px;}.m2m-announcement{font-size:12px;}.m2m-home-header img{width:70px;}}

.m2m-home-header img{width:200px;}
@media(max-width:781px){.m2m-home-header img{width:160px;}}

.m2m-home .wp-block-woocommerce-product-collection>.wp-block-heading{font-size:clamp(28px,3vw,38px)!important;line-height:1.2;font-weight:700;}

@media(min-width:1000px){.m2m-home .wc-block-product-template{grid-template-columns:repeat(4,minmax(0,1fr))!important;}}

/* M2M Shop categories and dropdown navigation — staging */
.m2m-shop-sidebar{color:#2F2630;font-size:14px;background:#fff;}
.m2m-shop-sidebar summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;}
.m2m-shop-sidebar summary::-webkit-details-marker,.m2m-nav-dropdown summary::-webkit-details-marker{display:none;}
.m2m-shop-sidebar summary::after{content:'⌄';display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#F1EAF5;color:#6E3B6E;font-size:16px;}
.m2m-shop-sidebar details[open]>summary::after{content:'⌃';}
.m2m-sidebar-shell>summary{font-size:17px;font-weight:700;padding:0 0 20px;border-bottom:2px solid #CFAF62;}
.m2m-sidebar-all{margin:0;padding:20px 0;font-weight:600;border-bottom:1px solid #E6D9E3;}
.m2m-sidebar-group{border-bottom:1px solid #E6D9E3;}
.m2m-sidebar-group>summary{font-weight:600;padding:20px 0;}
.m2m-shop-sidebar ul{list-style:none;padding:0 0 16px;margin:0;}
.m2m-shop-sidebar li{padding:6px 0;}
.m2m-shop-sidebar a{color:#6E3B6E;text-decoration:none;}
.m2m-shop-sidebar a:hover{color:#C96A9F;text-decoration:underline;}
.m2m-shop-sidebar summary:focus-visible,.m2m-nav-dropdown summary:focus-visible{outline:3px solid #C96A9F;outline-offset:3px;}
.m2m-home-nav{position:relative;z-index:20;}
.m2m-nav-list{display:flex;justify-content:center;align-items:center;gap:28px;flex-wrap:wrap;font-size:14px;font-weight:600;}
.m2m-nav-dropdown{position:relative;}
.m2m-nav-dropdown summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:9px;}
.m2m-nav-dropdown summary::after{content:'⌄';color:#6E3B6E;}
.m2m-nav-dropdown[open]>summary::after{content:'⌃';}
.m2m-nav-panel{position:absolute;top:calc(100% + 14px);left:0;min-width:240px;background:#fff;border:1px solid #E6D9E3;border-top:3px solid #CFAF62;border-radius:0 0 12px 12px;box-shadow:0 12px 32px #2F26301A;padding:10px;z-index:30;}
.m2m-nav-panel ul{list-style:none;margin:0;padding:0;}
.m2m-nav-panel a{display:block;padding:10px 12px;border-radius:6px;}
.m2m-nav-panel a:hover{background:#F8EAF2;color:#6E3B6E;}
#header .sub-menu{background:#fff;border-top:3px solid #CFAF62;box-shadow:0 12px 32px #2F26301A;}
@media(min-width:1000px){body.woocommerce.archive .ct-container[data-sidebar]{--sidebar-width:23%;--sidebar-gap:36px;}body.woocommerce.archive ul.products{--shop-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:999px){body.woocommerce.archive #sidebar{display:block!important;order:-1;margin-bottom:28px;}body.woocommerce.archive .ct-container[data-sidebar]{display:flex;flex-direction:column;}body.woocommerce.archive .ct-container[data-sidebar]>section{width:100%;}body.woocommerce.archive #sidebar{width:100%;}.m2m-sidebar-shell>summary{padding:14px 16px;background:#F1EAF5;border:1px solid #E6D9E3;border-radius:8px;}.m2m-sidebar-content{padding:0 16px;}.m2m-sidebar-group>summary{padding:14px 0;}}
@media(max-width:781px){.m2m-nav-list{gap:12px 20px;font-size:13px;}.m2m-nav-dropdown{position:static;}.m2m-nav-panel{top:100%;left:50%;transform:translateX(-50%);width:min(300px,90vw);min-width:0;}}

#header .sub-menu .ct-menu-link{color:#2F2630!important;}
#header .sub-menu .ct-menu-link:hover,#header .sub-menu .ct-menu-link:focus{color:#6E3B6E!important;background:#F8EAF2;}

#offcanvas .ct-panel-inner{background:#FFFFFF!important;}
#offcanvas .ct-menu-link{color:#2F2630!important;}
#offcanvas .ct-menu-link:hover,#offcanvas .ct-menu-link:focus{color:#6E3B6E!important;}
#offcanvas .ct-toggle-close,#offcanvas .ct-toggle-dropdown-mobile{color:#6E3B6E!important;--theme-icon-color:#6E3B6E;}
@media(max-width:999px){body.woocommerce.archive .hero-section[data-type="type-2"]{height:140px!important;}body.woocommerce.archive .ct-container[data-sidebar]{padding-top:32px;}}

@media(max-width:999px){body.woocommerce.archive .hero-section[data-type="type-2"] .entry-header{min-height:140px!important;height:140px!important;padding:24px 0!important;}}


/* Align desktop hero text with its heading and button. */
@media (min-width: 782px) {
.m2m-home .m2m-hero > p,
.m2m-home .m2m-hero > h1,
.m2m-home .m2m-hero > .wp-block-buttons {
margin-left: 0 !important;
margin-right: 0 !important;
}
}


/* Desktop logo: preserve source detail and aspect ratio. */
@media (min-width: 1000px) {
.m2m-home-header > .wp-block-columns > .wp-block-column:first-child { flex-basis: 24% !important; }
.m2m-home-header > .wp-block-columns > .wp-block-column:nth-child(2) { flex-basis: 51% !important; }
.m2m-home-header figure img { width: 240px !important; max-width: 100%; height: auto !important; }
}

/* Global wrapper and native-search layout only; original responsive rules retained. */
.m2m-home-header{padding:0 24px;box-sizing:border-box}
.m2m-home-header .wp-block-search{margin:0}.m2m-home-header .wp-block-search__inside-wrapper{display:flex}
.m2m-home-header .wp-block-search__input{flex:1;width:100%;min-width:0}
.m2m-home-header .wp-block-search__button{flex-shrink:0}
.m2m-launch-content{max-width:1200px;margin:0 auto;padding:0 24px;box-sizing:border-box}
.m2m-home-header>.wp-block-columns{display:flex}.m2m-home-header>.wp-block-columns>.wp-block-column{min-width:0}
.m2m-loop-availability{font-size:14px;font-weight:600;color:#4e284e}
.m2m-preview-grid{padding:24px;border:1px dashed #6e3b6e;background:#faf7fb;border-radius:12px}
@media(max-width:781px){.m2m-home-header>.wp-block-columns{display:grid}.m2m-home-header,.m2m-launch-content{padding-left:16px;padding-right:16px}}
