/* MODETO reference adaptation v1.0.3 — presentation only, front page/shop/categories. */
.modeto-rd-home .wp-block-group__inner-container{display:contents}
.modeto-store-design{--ms-wine:#621923;--ms-deep:#351017;--ms-cream:#faf7f3;--ms-ink:#241b1e;--ms-sub:#65595b;--ms-stroke:#e8dedb;background:var(--ms-cream);color:var(--ms-ink)}
.modeto-store-design :is(.modeto-rd-home,.modeto-sd-shop-hero,.modeto-sd-category-nav) *{box-sizing:border-box}
.modeto-store-design :is(.modeto-rd-home,.modeto-sd-category-nav) a:focus-visible,.modeto-store-design .products a:focus-visible{outline:3px solid #88333f!important;outline-offset:4px}
.modeto-rd-home{max-width:1340px!important;width:calc(100% - 48px)!important;margin:32px auto 72px!important;color:var(--ms-ink);direction:rtl}
.modeto-rd-home p{font-size:15px;line-height:1.95;color:var(--ms-sub)}
.modeto-rd-home h1,.modeto-rd-home h2,.modeto-rd-home h3{color:var(--ms-ink);line-height:1.55;font-weight:800}
.modeto-rd-home h2{font-size:clamp(26px,3vw,42px);margin:8px 0 12px}
.modeto-rd-home h3{font-size:20px;margin:8px 0}
.modeto-rd-home a{color:var(--ms-wine);text-decoration:none}
.modeto-rd-eyebrow,.modeto-sd-eyebrow{font-size:11px!important;font-weight:800;letter-spacing:.18em;direction:ltr;text-align:right;color:var(--ms-wine)!important;margin-bottom:14px}
.modeto-rd-section{margin-block:76px!important}
.modeto-rd-grid{display:grid!important;gap:18px;min-width:0}
.modeto-rd-grid>*{min-width:0;margin:0!important}
.modeto-rd-hero{display:grid!important;grid-template-columns:1.12fr 1fr;gap:18px;align-items:stretch}
.modeto-rd-hero-copy{background:#f3e6e1;border-radius:24px;padding:clamp(28px,4vw,65px);display:flex;flex-direction:column;justify-content:center}
.modeto-rd-hero h1{font-size:clamp(34px,4.7vw,65px);line-height:1.55;margin:8px 0 20px!important}
.modeto-rd-hero-art{margin:0!important;border-radius:24px;overflow:hidden;background:#e8bfc0;min-height:440px}
.modeto-rd-hero-art img{width:100%;height:100%;object-fit:cover;display:block}
.modeto-rd-actions{display:flex!important;flex-wrap:wrap;gap:10px;margin-block:18px!important}
.modeto-rd-actions .wp-block-button__link{display:inline-flex;align-items:center;justify-content:center;min-height:48px;background:var(--ms-wine);color:#fff;border-radius:12px;padding:12px 22px;font-size:15px;font-weight:700;line-height:1.6;text-decoration:none}
.modeto-rd-actions .is-style-outline .wp-block-button__link{background:transparent;color:var(--ms-wine);border:1px solid #bda39f}
.modeto-rd-notice{font-size:13px!important;line-height:1.8!important}
.modeto-rd-paths{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:18px!important}
.modeto-rd-card{border:1px solid var(--ms-stroke);border-radius:18px;background:#fff;padding:24px}
.modeto-rd-card p{margin-bottom:14px}
.modeto-rd-card a{display:inline-block;min-height:32px;font-weight:700}
.modeto-rd-categories{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:24px!important}
.modeto-rd-category{position:relative;overflow:hidden;border:0;min-height:255px;display:flex;flex-direction:column;justify-content:flex-end;padding:28px}
.modeto-rd-category::before{content:"";position:absolute;width:135px;height:135px;border:1px solid #ffffffb0;border-radius:50%;inset-inline-start:-24px;top:-30px;box-shadow:0 0 0 28px #ffffff35,0 0 0 56px #ffffff25;pointer-events:none}
.modeto-rd-category:nth-child(1){background:#f0dddd}.modeto-rd-category:nth-child(2){background:#e6ebdf}.modeto-rd-category:nth-child(3){background:#f0e4d5}.modeto-rd-category:nth-child(4){background:#eae0ed}
.modeto-rd-category .modeto-rd-symbol{font-size:42px;line-height:1;color:#62192390;margin-bottom:32px}
.modeto-rd-concerns{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:24px!important}
.modeto-rd-concerns .modeto-rd-card{padding:24px;min-height:160px}
.modeto-rd-concerns .modeto-rd-symbol{display:inline-flex;align-items:center;justify-content:center;background:#f8eae7;border-radius:13px;width:46px;height:46px;color:var(--ms-wine);font-size:24px}
.modeto-rd-products{background:transparent!important;padding:0!important}
.modeto-rd-ai{display:grid!important;grid-template-columns:1.2fr .8fr;gap:36px;align-items:center;background:var(--ms-deep);border-radius:24px;padding:48px;color:#fff}
.modeto-rd-ai h2,.modeto-rd-ai p{color:#fff}.modeto-rd-ai .modeto-rd-eyebrow{color:#e8bfc0!important}
.modeto-rd-ai-art{position:relative;border:1px solid #e8bfc080;border-radius:50%;aspect-ratio:1;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle,#e8bfc02b,transparent 70%);color:#e8bfc0;font-size:clamp(42px,6vw,86px);letter-spacing:.04em;font-weight:300;direction:ltr}
.modeto-rd-routine{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:24px!important;counter-reset:ms-step}
.modeto-rd-routine .modeto-rd-card{counter-increment:ms-step}.modeto-rd-routine .modeto-rd-card::before{content:"0" counter(ms-step);font-size:26px;font-weight:800;color:#bf9599;display:block;margin-bottom:32px;direction:ltr;text-align:right}
.modeto-rd-brands{grid-template-columns:repeat(6,minmax(0,1fr));margin-top:24px!important}
.modeto-rd-brands a{display:flex;align-items:center;justify-content:center;min-height:74px;background:white;border:1px solid var(--ms-stroke);border-radius:12px;font-weight:800;direction:ltr;color:var(--ms-sub)}
.modeto-rd-journal{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:24px!important}.modeto-rd-journal .modeto-rd-card{padding-top:70px;background:#eee1d2}.modeto-rd-journal .modeto-rd-card:nth-child(2){background:#e2e8dd}.modeto-rd-journal .modeto-rd-card:nth-child(3){background:#f0dddd}
.modeto-rd-trust{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:24px!important}.modeto-rd-trust h3{font-size:18px}
.modeto-rd-final{display:flex!important;justify-content:space-between;align-items:center;gap:24px;background:linear-gradient(100deg,#621923,#351017);padding:36px;border-radius:22px}.modeto-rd-final h2,.modeto-rd-final p{color:#fff}.modeto-rd-final .wp-block-button__link{background:#fff;color:var(--ms-wine)}
/* Native Bakala/WooCommerce card adapter. No template/query/commerce replacement. */
.modeto-store-design .products-box .products:not(.listing),.modeto-rd-home .woocommerce ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;width:100%;padding:0;margin:20px 0}
.modeto-store-design ul.products::before,.modeto-store-design ul.products::after{display:none!important;content:none!important}
.modeto-store-design ul.products>li.product{float:none!important;min-width:0!important;width:auto!important;max-width:none!important;margin:0!important;padding:0!important;background:#fff;border:1px solid var(--ms-stroke);border-radius:16px;box-shadow:none!important;overflow:visible!important}
.modeto-store-design li.product :is(.product-box-inner,.info-product,.products__item-img-color-wrapper){width:100%;min-width:0;box-shadow:none!important;border-radius:16px;background:transparent;overflow:visible!important}
.modeto-store-design li.product .products__item-image-wrapper{position:relative;height:auto!important;aspect-ratio:1;margin:10px;border-radius:12px;overflow:hidden!important;background:#faf7f3}
.modeto-store-design li.product .products__item-image-wrapper a{height:100%;width:100%;display:block}
.modeto-store-design li.product img.products__item-image{width:100%!important;max-width:100%!important;height:100%!important;max-height:none!important;margin:0!important;object-fit:contain!important;position:absolute;inset:0}
.modeto-store-design li.product .products__item-info{padding:8px 16px 16px!important;min-width:0;width:100%!important;position:static!important}
.modeto-store-design li.product .products__item-fatitle{height:auto!important;min-height:66px!important;max-height:none!important;white-space:normal!important;overflow:visible!important;line-height:1.8!important;font-size:14px!important;margin:8px 0 16px!important}
.modeto-store-design li.product .products__item-fatitle a{white-space:normal!important;display:block!important;width:auto!important;text-overflow:clip!important;overflow-wrap:anywhere;color:var(--ms-ink)!important}
.modeto-store-design li.product .products__item-gift-price{display:block!important;position:static!important;min-height:42px;margin:8px 0 0!important;width:100%!important}
.modeto-store-design li.product .products__item-price,.modeto-store-design li.product .white_catfinal-price{display:block!important;position:static!important;float:none!important;max-width:100%;white-space:normal;line-height:1.8}
.modeto-store-design li.product .modified-info{display:none!important}
.modeto-store-design li.product .box-footer{display:flex!important;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;position:static!important;margin:12px 0 0!important;padding:0!important;width:100%!important;transform:none!important}
.modeto-store-design li.product .loop-add-to-cart a{background:var(--ms-wine)!important;border-radius:10px!important;color:#fff!important;min-height:42px;min-width:42px;box-shadow:none!important}
.modeto-store-design li.product .custom-stars{display:none!important} /* Reference cards omit ratings; product reviews are untouched. */
.modeto-store-design .archive-list-products.listing ul.products{display:block!important}.modeto-store-design .archive-list-products.listing li.product{margin-bottom:16px!important}
.modeto-sd-shop-hero{max-width:1340px;margin:24px auto;display:flex;justify-content:space-between;align-items:center;gap:24px;padding:42px;background:#f0dfdc;border:1px solid #e8dedb;border-radius:22px;overflow:hidden}
.modeto-sd-shop-hero h1{font-size:clamp(30px,4vw,46px);line-height:1.5;color:var(--ms-ink);margin:8px 0 14px;font-weight:800}
.modeto-sd-shop-hero p{max-width:70ch;line-height:1.9;color:var(--ms-sub);font-size:15px}
.modeto-sd-orbit{display:block;flex:0 0 130px;aspect-ratio:1;border-radius:50%;border:1px solid #b58c91;box-shadow:0 0 0 24px #ffffff3f,0 0 0 48px #ffffff29}
.modeto-sd-category-nav{display:flex;flex-wrap:wrap;gap:10px;max-width:1340px;margin:24px auto 32px;padding:0 12px;direction:rtl}
.modeto-sd-category-nav a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 20px;border:1px solid var(--ms-stroke);border-radius:999px;color:var(--ms-ink);background:#fff;font-size:14px;text-decoration:none}
.modeto-sd-category-nav a[aria-current]{background:var(--ms-wine);color:#fff;border-color:var(--ms-wine)}
.modeto-store-design .archive-content__wrapper{border:1px solid var(--ms-stroke);border-radius:18px;background:#f0dfdc;padding:26px!important;margin:24px 12px!important;box-shadow:none}
.modeto-store-design .archive-content__wrapper-head-title h1{font-size:32px;line-height:1.6;color:var(--ms-ink);margin:0}
.modeto-store-design .shop-page{padding-top:12px}
.modeto-store-design .shop-page .widget{box-shadow:none!important;border:1px solid var(--ms-stroke);border-radius:16px!important;background:#fff}
@media(max-width:1100px){.modeto-store-design .products-box .products:not(.listing){grid-template-columns:repeat(3,minmax(0,1fr))}.modeto-rd-hero{grid-template-columns:1fr 1fr}.modeto-rd-brands{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:767px){.modeto-rd-home{width:calc(100% - 32px)!important;margin-top:18px!important}.modeto-rd-hero{grid-template-columns:1fr}.modeto-rd-hero h1{font-size:36px}.modeto-rd-hero-art{min-height:0;height:320px}.modeto-rd-section{margin-block:48px!important}.modeto-rd-paths,.modeto-rd-journal{grid-template-columns:1fr}.modeto-rd-categories,.modeto-rd-concerns,.modeto-rd-routine,.modeto-rd-trust{grid-template-columns:repeat(2,minmax(0,1fr))}.modeto-rd-category{min-height:220px;padding:20px}.modeto-rd-card{padding:20px}.modeto-rd-ai{grid-template-columns:1fr;padding:28px;gap:20px}.modeto-rd-ai-art{max-width:230px;width:100%;margin:auto!important}.modeto-rd-final{flex-direction:column;align-items:stretch;padding:26px}.modeto-store-design .products-box .products:not(.listing),.modeto-rd-home .woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.modeto-store-design li.product .products__item-info{padding:8px 12px 12px!important}.modeto-store-design li.product .products__item-fatitle{font-size:13px!important;min-height:94px!important;line-height:1.85!important}.modeto-store-design li.product .box-footer{justify-content:flex-start}.modeto-sd-shop-hero{margin:18px 12px;padding:28px;display:block}.modeto-sd-orbit{display:none}.modeto-sd-category-nav{gap:8px;margin:18px 0}.modeto-sd-category-nav a{font-size:13px;padding:9px 14px}.modeto-store-design .archive-content__wrapper-head-title h1{font-size:26px}}
@media(max-width:350px){.modeto-rd-categories,.modeto-rd-concerns,.modeto-rd-trust{grid-template-columns:1fr}.modeto-store-design .products-box .products:not(.listing),.modeto-rd-home .woocommerce ul.products{grid-template-columns:1fr}.modeto-rd-hero-copy{padding:24px}.modeto-rd-hero h1{font-size:32px}}
@media(prefers-reduced-motion:reduce){.modeto-store-design *{scroll-behavior:auto!important}}

/* Phase 3: native product and commerce presentation. No templates or controls replaced. */
.modeto-store-design.single-product{background:#faf7f3}
.modeto-store-design.single-product div.product>.p-section-one{background:transparent;border:0;box-shadow:none;padding-block:24px;row-gap:24px}
.modeto-store-design.single-product .product-gallery{padding:20px;background:#f2e5e2;border:1px solid var(--ms-stroke);border-radius:24px;align-self:flex-start}
.modeto-store-design.single-product .product-gallery .woocommerce-product-gallery{margin-bottom:0}
.modeto-store-design.single-product .product-gallery .wp-post-image{border-radius:18px;background:white;object-fit:contain}
.modeto-store-design.single-product .product-title h1{font-size:clamp(23px,2.3vw,34px)!important;line-height:1.8!important;color:var(--ms-ink);font-weight:800;margin-block:8px 18px}
.modeto-store-design.single-product .product-det .product-info-box{background:#fff;border:1px solid var(--ms-stroke);border-radius:20px;padding:24px!important;box-shadow:0 12px 32px #62192308}
.modeto-store-design.single-product .product-info-box .price-section{border-block:1px solid var(--ms-stroke);padding-block:18px;margin-block:18px}
.modeto-store-design.single-product .product-info-box .price{color:var(--ms-wine);font-size:23px;line-height:1.8}
.modeto-store-design.single-product .product-info-box .single_add_to_cart_button{background:var(--ms-wine)!important;border-radius:12px!important;min-height:50px;box-shadow:none!important;font-size:15px!important;line-height:1.7}
.modeto-store-design.single-product .bakala-product-specifications{border:1px solid var(--ms-stroke);border-radius:16px;background:#fff;padding:14px;margin-block:16px}
.modeto-store-design.single-product .main-features-title{color:var(--ms-wine);font-weight:700}
.modeto-store-design.single-product .products-tabs{background:white;border:1px solid var(--ms-stroke);border-radius:20px;padding:24px;margin-block:32px}
.modeto-store-design.single-product .products-tabs .wc-tab{line-height:2;overflow-wrap:anywhere}
.modeto-store-design.single-product .products-tabs ul.tabs li.active a{color:var(--ms-wine)}
.modeto-store-design.single-product .section-products-carousel{margin-block:40px}
/* Native cart/account/checkout cards; address, payment and session logic stays untouched. */
.modeto-store-design.woocommerce-cart,.modeto-store-design.woocommerce-checkout,.modeto-store-design.woocommerce-account{background:#faf7f3}
.modeto-store-design.woocommerce-cart .woocommerce-cart-form,.modeto-store-design.woocommerce-cart .cart-collaterals,
.modeto-store-design.woocommerce-checkout form.checkout,.modeto-store-design.woocommerce-account form.woocommerce-form-login,
.modeto-store-design.woocommerce-account form.register,.modeto-store-design.woocommerce-account .woocommerce-MyAccount-content,
.modeto-store-design.woocommerce-account .woocommerce-MyAccount-navigation{background:#fff;border:1px solid var(--ms-stroke);border-radius:18px;padding:24px;box-shadow:none}
.modeto-store-design.woocommerce-cart .cart-collaterals{padding:20px}
.modeto-store-design.woocommerce-cart .cart_totals table{width:100%;line-height:2}
.modeto-store-design.woocommerce-cart .woocommerce-cart-form__contents{width:100%;border:0}
.modeto-store-design.woocommerce-cart .woocommerce-cart-form__cart-item{border-bottom:1px solid var(--ms-stroke)}
.modeto-store-design.woocommerce-cart .go-to-checkout a,.modeto-store-design.woocommerce-cart .checkout-button,
.modeto-store-design.woocommerce-account .woocommerce-form-login__submit,.modeto-store-design.woocommerce-account .woocommerce-form-register__submit,
.modeto-store-design.woocommerce-checkout #place_order{background:var(--ms-wine)!important;color:#fff!important;border-radius:12px!important;min-height:48px;box-shadow:none!important}
.modeto-store-design.woocommerce-account .woocommerce-MyAccount-navigation a{display:block;padding:12px;border-radius:10px;color:var(--ms-ink)}
.modeto-store-design.woocommerce-account .woocommerce-MyAccount-navigation .is-active a{background:#f3e6e1;color:var(--ms-wine)}
.modeto-store-design.woocommerce-account .woocommerce-form input.input-text,
.modeto-store-design.woocommerce-checkout form.checkout input.input-text,
.modeto-store-design.woocommerce-checkout form.checkout textarea{border:1px solid #bfa9a6;border-radius:10px;min-height:46px;background:#fff;color:var(--ms-ink)}
.modeto-store-design.woocommerce-checkout #order_review{border:1px solid var(--ms-stroke);border-radius:14px;padding:18px}
.modeto-store-design :is(.product-info-box,.products-tabs,.woocommerce-cart-form,.cart-collaterals,.woocommerce-form,.checkout,.woocommerce-MyAccount-navigation) :is(a,button,input,select,textarea):focus-visible{outline:3px solid #8a4553!important;outline-offset:3px}
@media(max-width:767px){
 .modeto-store-design.single-product div.product>.p-section-one{margin-inline:0;padding-block:16px;row-gap:20px}
 .modeto-store-design.single-product div.product>.p-section-one,.modeto-store-design.single-product .product-det>.main-content{display:flex!important;flex-direction:column;flex-wrap:wrap}
 .modeto-store-design.single-product div.product>.p-section-one>div,.modeto-store-design.single-product .product-det>.main-content>div,.modeto-store-design.single-product .product-det .info-header{width:100%!important;max-width:100%!important;flex:0 0 auto!important;min-width:0}
 .modeto-store-design.single-product .product-gallery{padding:16px;border-radius:18px}
 .modeto-store-design.single-product .product-det{padding-inline:0}
 .modeto-store-design.single-product .product-title h1{font-size:24px!important;line-height:1.8!important}
 .modeto-store-design.single-product .product-det .product-info-box{padding:20px!important;margin-top:20px}
 .modeto-store-design.single-product .products-tabs{padding:18px;border-radius:16px}
 .modeto-store-design.single-product .products-tabs ul.tabs{overflow-x:auto;max-width:100%}
 .modeto-store-design.woocommerce-cart .woocommerce-cart-form,.modeto-store-design.woocommerce-cart .cart-collaterals,
 .modeto-store-design.woocommerce-checkout form.checkout,.modeto-store-design.woocommerce-account form.woocommerce-form-login,
 .modeto-store-design.woocommerce-account form.register,.modeto-store-design.woocommerce-account .woocommerce-MyAccount-content{padding:18px}
 .modeto-store-design.woocommerce-cart .cart-collaterals{margin-top:20px}
}
