/* My Mart Shop Preview — styles are scoped to this shortcode only */
.mymart-preview{--mm-green:#024c2e;--mm-orange:#f37321;--mm-ink:#202923;--mm-muted:#6f7973;--mm-line:#e8eee9;color:var(--mm-ink);font-family:inherit;max-width:100%;margin:0 auto}
.mymart-preview *{box-sizing:border-box}
.mymart-category-rail{position:sticky;top:var(--mymart-sticky-offset,50px);z-index:50;display:flex;gap:10px;overflow-x:auto;white-space:nowrap;padding:12px 4px;background:#fff;border-bottom:1px solid var(--mm-line);scrollbar-width:thin}
.mymart-category-chip{display:flex;flex:0 0 auto;align-items:center;gap:7px;padding:9px 14px;border:1px solid var(--mm-line);border-radius:9px;color:var(--mm-ink);text-decoration:none;font-size:13px;font-weight:600;background:#fff}
.mymart-category-chip:hover,.mymart-category-chip.is-active{background:#eaf4ee;border-color:#c8dfd0;color:var(--mm-green)}
.mymart-category-icon{font-size:18px}
.mymart-preview-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:18px 0 22px;padding:28px 34px;border-radius:12px;color:#fff;background:linear-gradient(105deg,#013d27,#087348);min-height:185px}
.mymart-eyebrow{display:inline-block;color:#ffd3b4;font-size:11px;font-weight:800;letter-spacing:1.4px}
.mymart-hero-copy h1{margin:8px 0;font-size:clamp(28px,4vw,42px);line-height:1.08;color:#fff;font-weight:800}
.mymart-hero-copy h1 em{font-style:normal;color:#ff9a51}
.mymart-hero-copy p{margin:8px 0 16px;color:#e6f2eb;font-size:14px;max-width:520px}
.mymart-hero-button{display:inline-block;padding:11px 17px;border-radius:7px;background:var(--mm-orange);color:#fff!important;text-decoration:none;font-size:13px;font-weight:700}
.mymart-hero-button span{padding-left:12px}
.mymart-hero-points{display:grid;gap:14px;min-width:220px;color:#fff;font-size:13px;font-weight:600}
.mymart-shop-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:22px;align-items:start}
.mymart-filters{position:sticky;top:calc(var(--wd-header-h,90px) + 54px);max-height:calc(100vh - 100px);overflow:auto;border:1px solid var(--mm-line);border-radius:10px;padding:16px;background:#fff}
.mymart-filter-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;font-size:15px}
.mymart-clear{border:0;background:none;color:var(--mm-green);font-size:12px;cursor:pointer}
.mymart-filter-list{display:grid;gap:4px}
.mymart-filter-category{display:flex;justify-content:space-between;gap:8px;padding:8px 5px;border:0;background:transparent;text-align:left;color:var(--mm-ink);cursor:pointer;border-radius:6px;font-size:13px}
.mymart-filter-category:hover{background:#eef6f1;color:var(--mm-green)}
.mymart-filter-category small{color:var(--mm-muted)}
.mymart-filter-block{border-top:1px solid var(--mm-line);margin-top:14px;padding-top:14px;font-size:13px}
.mymart-filter-block label{display:flex;gap:8px;align-items:center}
.mymart-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:2px 0 14px;font-size:14px}
.mymart-toolbar select{min-width:170px;padding:10px 12px;border:1px solid var(--mm-line);border-radius:7px;background:#fff;color:var(--mm-ink)}
.mymart-product-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.mymart-product-card{min-width:0;border:1px solid var(--mm-line);border-radius:9px;background:#fff;overflow:hidden;transition:box-shadow .2s,border-color .2s}
.mymart-product-card:hover{border-color:#c8dfd0;box-shadow:0 7px 22px rgba(12,55,32,.08)}
.mymart-product-image-wrap{display:flex;align-items:center;justify-content:center;position:relative;height:155px;padding:12px;background:#fff}
.mymart-product-image{width:100%;height:100%;object-fit:contain}
.mymart-sale-tag{position:absolute;top:9px;left:9px;background:#f37321;color:#fff;padding:4px 7px;border-radius:4px;font-size:10px;font-weight:800}
.mymart-product-info{padding:10px 11px 12px}
.mymart-product-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:36px;color:var(--mm-ink);font-size:13px;font-weight:700;line-height:1.35;text-decoration:none}
.mymart-product-pack{display:block;margin-top:4px;color:var(--mm-muted);font-size:12px;min-height:16px}
.mymart-product-price{min-height:27px;margin-top:8px;font-size:13px;font-weight:700;color:var(--mm-green)}
.mymart-product-price a{color:#e64e22;text-decoration:none}
.mymart-card-actions{display:flex;gap:6px;margin-top:5px}
.mymart-add-cart{display:block;width:100%;padding:9px 7px;border-radius:6px;background:var(--mm-green);color:#fff!important;text-align:center;text-decoration:none;font-size:12px;font-weight:700;line-height:1.2}
.mymart-add-cart:hover{background:#03633b}
.mymart-infinite-status{text-align:center;padding:24px 8px;color:var(--mm-muted);font-size:13px}
#mymart-scroll-sentinel{height:2px}
.mymart-empty{grid-column:1/-1;padding:30px;text-align:center;color:var(--mm-muted)}
@media(max-width:1200px){.mymart-product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:850px){.mymart-shop-layout{grid-template-columns:190px minmax(0,1fr);gap:14px}.mymart-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.mymart-preview-hero{padding:22px}.mymart-hero-points{min-width:170px}}
@media(max-width:600px){.mymart-category-rail{top:0;padding:8px 2px;gap:7px}.mymart-category-chip{padding:8px 10px;font-size:11px}.mymart-preview-hero{margin:12px 0;padding:20px;min-height:auto}.mymart-hero-points{display:none}.mymart-hero-copy h1{font-size:29px}.mymart-shop-layout{display:block}.mymart-filters{position:static;max-height:none;margin-bottom:14px;padding:12px}.mymart-filter-list{display:flex;overflow-x:auto;gap:6px}.mymart-filter-category{flex:0 0 auto;border:1px solid var(--mm-line);padding:7px 9px}.mymart-filter-block{display:none}.mymart-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.mymart-product-image-wrap{height:135px}.mymart-product-info{padding:9px}.mymart-toolbar{align-items:flex-start}.mymart-toolbar select{min-width:145px;max-width:155px}.mymart-product-title{font-size:12px}.mymart-add-cart{font-size:11px}}


/* Full-width preview page: hide the theme's shop title/banner and sidebar widgets.
   All selectors are limited to the page containing [mymart_shop_preview]. */
body.mymart-shop-preview-page .wd-page-title,
body.mymart-shop-preview-page .woodmart-page-title,
body.mymart-shop-preview-page .page-title,
body.mymart-shop-preview-page .title-shop,
body.mymart-shop-preview-page .shop-title-wrapper,
body.mymart-shop-preview-page .breadcrumbs-location,
body.mymart-shop-preview-page .wd-breadcrumbs,
body.mymart-shop-preview-page .page-title-default,
body.mymart-shop-preview-page .page-title-shop,
body.mymart-shop-preview-page .entry-header .entry-title,
body.mymart-shop-preview-page #sidebar,
body.mymart-shop-preview-page .sidebar-container,
body.mymart-shop-preview-page .wd-sidebar,
body.mymart-shop-preview-page .widget-area,
body.mymart-shop-preview-page .widget_recent_comments,
body.mymart-shop-preview-page .widget_categories{display:none!important}
body.mymart-shop-preview-page .site-content,
body.mymart-shop-preview-page .main-page-wrapper,
body.mymart-shop-preview-page .container,
body.mymart-shop-preview-page .content-area,
body.mymart-shop-preview-page .site-content .row,
body.mymart-shop-preview-page .main-content,
body.mymart-shop-preview-page .wd-content-layout,
body.mymart-shop-preview-page .wd-content-area{width:100%!important;max-width:100%!important}
body.mymart-shop-preview-page .site-content .row,
body.mymart-shop-preview-page .wd-content-layout{display:block!important;margin-left:0!important;margin-right:0!important}
body.mymart-shop-preview-page .content-area,
body.mymart-shop-preview-page .main-content,
body.mymart-shop-preview-page .wd-content-area{float:none!important;flex:0 0 100%!important;width:100%!important;padding-left:0!important;padding-right:0!important}
body.mymart-shop-preview-page .main-page-wrapper{padding-top:0!important}
body.mymart-shop-preview-page .mymart-preview{width:100%;max-width:100%;margin:0 auto;padding:0 18px}
body.mymart-shop-preview-page .mymart-preview-hero{margin-top:16px}


/* Refined product tiles, clearer add-to-cart actions and editable rotating banners */
.mymart-preview-hero{position:relative;display:block;overflow:hidden;padding:0;min-height:220px;background:#024c2e}
.mymart-banner-slide{display:none;position:relative;min-height:220px;align-items:center;justify-content:space-between;gap:24px;padding:30px 34px;background-color:var(--mymart-banner-bg,#024c2e);background-image:linear-gradient(90deg,rgba(1,54,35,.96) 0%,rgba(1,72,47,.86) 58%,rgba(1,72,47,.28) 100%),var(--mymart-banner-image);background-size:cover;background-position:center}
.mymart-banner-slide.is-active{display:flex;animation:mymartBannerIn .45s ease}
@keyframes mymartBannerIn{from{opacity:.45}to{opacity:1}}
.mymart-banner-slide .mymart-hero-copy{position:relative;z-index:1;max-width:650px}
.mymart-banner-slide .mymart-hero-points{position:relative;z-index:1}
.mymart-banner-dots{position:absolute;z-index:3;right:22px;bottom:15px;display:flex;gap:7px}
.mymart-banner-dots button{width:8px;height:8px;padding:0;border:0;border-radius:20px;background:rgba(255,255,255,.55);cursor:pointer}
.mymart-banner-dots button.is-active{width:23px;background:#fff}
.mymart-product-card{display:flex;flex-direction:column;border:1px solid #e6ece7;border-radius:12px;background:#fff;box-shadow:0 2px 9px rgba(20,55,35,.045);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.mymart-product-card:hover{transform:translateY(-3px);border-color:#c8ddce;box-shadow:0 9px 22px rgba(20,55,35,.11)}
.mymart-product-image-wrap{height:170px;margin:7px 7px 0;border-radius:9px;background:linear-gradient(145deg,#f7faf7,#eef4ef);padding:13px}
.mymart-product-image{mix-blend-mode:multiply;transition:transform .25s ease}
.mymart-product-card:hover .mymart-product-image{transform:scale(1.045)}
.mymart-product-badges{position:absolute;top:9px;left:9px;display:flex;flex-wrap:wrap;gap:4px;max-width:calc(100% - 18px)}
.mymart-product-badges .mymart-sale-tag,.mymart-featured-tag{position:static;display:inline-block;padding:4px 7px;border-radius:4px;background:#f37321;color:#fff;font-size:9px;font-weight:800;letter-spacing:.25px}
.mymart-product-badges .mymart-featured-tag{background:#024c2e}
.mymart-product-info{display:flex;flex:1;flex-direction:column;padding:11px 11px 12px}
.mymart-product-title{min-height:37px;font-size:13px;line-height:1.4}
.mymart-product-pack{margin-top:5px}
.mymart-product-price{min-height:30px;margin-top:9px;font-size:14px}
.mymart-product-price del{color:#9aa39d;font-size:11px;font-weight:400}
.mymart-product-price ins{color:#024c2e;text-decoration:none}
.mymart-card-actions{margin-top:auto;padding-top:9px}
.mymart-add-cart{display:flex;align-items:center;justify-content:center;gap:7px;min-height:39px;padding:10px 9px;border:1px solid #024c2e;border-radius:7px;background:#024c2e;color:#fff!important;font-size:12px;font-weight:800;letter-spacing:.15px;text-transform:uppercase;transition:background .18s,border-color .18s,transform .18s}
.mymart-add-cart:hover{background:#f37321;border-color:#f37321;color:#fff!important;transform:translateY(-1px)}
.mymart-add-cart.added{background:#147a3c;border-color:#147a3c}
.mymart-add-cart.loading{opacity:.7;pointer-events:none}
.mymart-product-card .added_to_cart{display:block;margin-top:5px;color:#024c2e;font-size:11px;text-align:center;text-decoration:underline}
@media(max-width:850px){.mymart-product-image-wrap{height:150px}.mymart-banner-slide{padding:24px}}
@media(max-width:600px){.mymart-banner-slide{min-height:190px;padding:20px;align-items:flex-start}.mymart-banner-slide .mymart-hero-points{display:none}.mymart-product-image-wrap{height:135px;margin:5px 5px 0;padding:10px}.mymart-product-info{padding:9px}.mymart-add-cart{min-height:36px;font-size:11px}}


/* Compact Milan-style ADD / options controls */
.mymart-card-actions{display:flex;justify-content:flex-end;align-items:flex-end;gap:6px;margin-top:auto;padding-top:6px;min-height:38px}
.mymart-add-cart.mymart-add-compact{display:flex;flex:0 0 auto;flex-direction:column;align-items:center;justify-content:center;gap:0;width:auto;min-width:66px;min-height:34px;padding:4px 12px;border:1px solid #238b35;border-radius:7px;background:#fff;color:#18832c!important;text-align:center;text-transform:uppercase;line-height:1.05;letter-spacing:0}
.mymart-add-cart.mymart-add-compact .mymart-add-label{font-size:13px;font-weight:800;line-height:15px}
.mymart-add-cart.mymart-add-compact small{display:block;margin-top:1px;color:#438b4d;font-size:9px;font-weight:500;line-height:10px;text-transform:none}
.mymart-add-cart.mymart-add-compact:hover{background:#eff9f0;border-color:#167c2b;color:#126d25!important;transform:none}
.mymart-add-cart.mymart-add-compact.loading{background:#f3f8f3}
.mymart-add-cart.mymart-add-compact.added{background:#eef8ef;border-color:#218b36;color:#167c2b!important}
.mymart-product-info{padding:9px 10px 10px}
.mymart-product-price{display:flex;align-items:flex-end;justify-content:space-between;gap:6px;min-height:28px;margin-top:5px}
.mymart-product-card .added_to_cart{display:none}

.mymart-add-cart.mymart-custom-add-to-cart.loading{opacity:.65;cursor:wait}
.mymart-add-cart.mymart-custom-add-to-cart.added{background:#edf8ef;color:#147a3c!important;border-color:#238b35}

/* Cart quantity stepper matching the supplied My Mart reference */
.mymart-card-actions{display:flex;justify-content:flex-end;align-items:center;gap:7px;min-height:36px}
.mymart-quantity-control{display:none;align-items:center;justify-content:center;gap:0;min-width:66px;height:34px;border:1px solid #238b35;border-radius:7px;background:#238b35;overflow:hidden}
.mymart-quantity-control.is-active{display:flex}
.mymart-qty-btn{display:flex;align-items:center;justify-content:center;width:25px;height:32px;padding:0;border:0;background:#238b35;color:#fff;font-size:19px;font-weight:700;line-height:1;cursor:pointer}
.mymart-qty-btn:hover{background:#176f2a;color:#fff}
.mymart-qty-btn:disabled{opacity:.5;cursor:not-allowed}
.mymart-qty-value{min-width:22px;color:#fff;text-align:center;font-size:13px;font-weight:800}
.mymart-quantity-control.is-loading{opacity:.6;pointer-events:none}
.mymart-custom-add-to-cart[hidden]{display:none!important}
.mymart-add-cart.mymart-custom-add-to-cart{min-width:66px}

.mymart-pricing-options{display:block;margin-top:3px;color:#69766d;font-size:10px;line-height:1.2}
.mymart-quantity-control{transition:opacity .12s ease}
.mymart-quantity-control.is-loading{opacity:.85;pointer-events:none}

/* B2BKing quantity-tier picker and reliable product-card cart state */
.mymart-product-card{position:relative}
.mymart-add-cart.mymart-custom-add-to-cart .mymart-options-trigger{cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.mymart-add-cart.mymart-custom-add-to-cart .mymart-options-trigger:hover{color:#024c2e}
.mymart-tier-picker{position:absolute;z-index:30;right:8px;bottom:54px;width:min(285px,calc(100% - 16px));padding:10px;background:#fff;border:1px solid #dce8de;border-radius:11px;box-shadow:0 12px 30px rgba(0,0,0,.16)}
.mymart-tier-picker[hidden]{display:none!important}
.mymart-tier-picker-head{display:flex;align-items:center;justify-content:space-between;padding:2px 2px 8px;color:#183d27;font-size:12px}
.mymart-tier-close{width:24px;height:24px;border:0;border-radius:50%;background:#eef4ef;color:#35533d;font-size:18px;line-height:1;cursor:pointer}
.mymart-tier-option{display:flex;width:100%;align-items:center;justify-content:space-between;gap:10px;padding:9px 7px;border:0;border-top:1px solid #edf1ed;background:#fff;color:#26382b;text-align:left;cursor:pointer}
.mymart-tier-option:hover{background:#f1f8f2}
.mymart-tier-option>span,.mymart-tier-option>strong{display:flex;flex-direction:column;gap:3px}
.mymart-tier-option>strong{color:#024c2e;text-align:right;font-size:12px}
.mymart-tier-option small{color:#758078;font-size:10px;font-weight:500}
.mymart-tier-option .mymart-per-unit{display:inline;color:#758078}
.mymart-quantity-control.is-active{min-width:88px}


/* Keep the pinned category rail directly under the real sticky header.
   WoodMart's --wd-header-h can include extra spacing on some header layouts. */
body.mymart-shop-preview-page .mymart-category-rail{top:var(--mymart-sticky-offset,50px)!important;margin-top:0!important}
body.mymart-shop-preview-page .mymart-preview{margin-top:0!important}



/* Category navigation stays visible directly below the live WoodMart header. */
body.mymart-shop-preview-page .mymart-category-rail{position:relative;top:auto;z-index:9999;overflow-x:auto;overscroll-behavior-x:contain;}
body.mymart-shop-preview-page .mymart-category-rail.is-pinned{position:fixed!important;z-index:99999!important;margin:0!important;background:#fff!important;box-shadow:0 5px 14px rgba(0,0,0,.09);border-bottom:1px solid #e4ebe5;}
body.mymart-shop-preview-page .mymart-category-rail-spacer[hidden]{display:none!important}
body.mymart-shop-preview-page .mymart-category-rail-spacer{height:0;pointer-events:none}
body.mymart-shop-preview-page .mymart-category-chip{flex-direction:row;align-items:center;gap:8px;min-height:42px}
body.mymart-shop-preview-page .mymart-category-icon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;font-size:18px;line-height:1}
@media(max-width:600px){body.mymart-shop-preview-page .mymart-category-rail{padding:8px 6px;gap:7px}body.mymart-shop-preview-page .mymart-category-chip{min-height:38px;padding:7px 10px}}

/* Sticky category rail: keep it below both the WordPress admin bar and visible WoodMart header. */
body.mymart-shop-preview-page .mymart-category-rail.is-pinned{
  position:fixed!important;
  top:var(--mymart-sticky-offset,90px)!important;
  z-index:99999!important;
  background:#fff!important;
  box-shadow:0 5px 14px rgba(0,0,0,.09);
}


/* V13: break the preview out of WoodMart's fixed-width content container.
   Scoped strictly to the page that contains the My Mart preview shortcode. */
body.mymart-shop-preview-page {
  overflow-x: hidden;
}
/* Expand only the content wrappers on this preview page. Do not use 100vw
   on the shortcode itself: WoodMart clips that breakout inside its container. */
body.mymart-shop-preview-page .main-page-wrapper,
body.mymart-shop-preview-page .main-page-wrapper > .container,
body.mymart-shop-preview-page .site-content,
body.mymart-shop-preview-page .site-content > .container,
body.mymart-shop-preview-page .wd-content-layout,
body.mymart-shop-preview-page .wd-page-content,
body.mymart-shop-preview-page .entry-content {
  width: 100% !important;
  max-width: none !important;
  overflow: visible !important;
}
body.mymart-shop-preview-page .main-page-wrapper > .container,
body.mymart-shop-preview-page .site-content > .container {
  padding-left: clamp(16px, 2.2vw, 34px) !important;
  padding-right: clamp(16px, 2.2vw, 34px) !important;
}
body.mymart-shop-preview-page .mymart-preview {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.mymart-shop-preview-page .mymart-category-rail,
body.mymart-shop-preview-page .mymart-preview-hero,
body.mymart-shop-preview-page .mymart-shop-layout {
  width: 100% !important;
  max-width: none !important;
}
body.mymart-shop-preview-page .mymart-products-area {
  min-width: 0 !important;
}
@media (max-width: 600px) {
  body.mymart-shop-preview-page .mymart-preview {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}


/* V15: remove WoodMart's reserved theme-sidebar column on the preview page.
   The previous full-width rule expanded the inner container but left the
   theme's 25% sidebar column reserved, creating the large blank right panel. */
body.mymart-shop-preview-page .wd-content-layout {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
}
body.mymart-shop-preview-page .wd-content-area,
body.mymart-shop-preview-page .site-content .content-area,
body.mymart-shop-preview-page .site-content main,
body.mymart-shop-preview-page .main-page-wrapper .col-lg-9,
body.mymart-shop-preview-page .content-layout-wrapper .col-lg-9 {
  display: block !important;
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}
body.mymart-shop-preview-page .wd-sidebar,
body.mymart-shop-preview-page .sidebar-container,
body.mymart-shop-preview-page .site-content .widget-area,
body.mymart-shop-preview-page .main-page-wrapper .col-lg-3,
body.mymart-shop-preview-page .content-layout-wrapper .col-lg-3 {
  display: none !important;
}
body.mymart-shop-preview-page .wd-content-layout,
body.mymart-shop-preview-page .wd-content-area,
body.mymart-shop-preview-page .wd-page-content,
body.mymart-shop-preview-page .entry-content,
body.mymart-shop-preview-page .mymart-preview,
body.mymart-shop-preview-page .mymart-preview-hero,
body.mymart-shop-preview-page .mymart-shop-layout {
  box-sizing: border-box !important;
}
body.mymart-shop-preview-page .mymart-preview-hero,
body.mymart-shop-preview-page .mymart-category-rail,
body.mymart-shop-preview-page .mymart-shop-layout {
  width: 100% !important;
  max-width: 100% !important;
}
