:root{--mdw-bg:#071527;--mdw-bg2:#0b2138;--mdw-panel:#0e2944;--mdw-panel2:#102f4f;--mdw-text:#f2f8ff;--mdw-muted:#b7c9db;--mdw-cyan:#1bc7ff;--mdw-cyan2:#79e7ff;--mdw-line:rgba(121,231,255,.22);--mdw-card:rgba(255,255,255,.06);--mdw-shadow:0 18px 48px rgba(0,0,0,.35)}
body{background:radial-gradient(circle at top left,#123a60 0,#071527 42%,#050b14 100%);color:var(--mdw-text);font-family:Lato,Arial,Helvetica,sans-serif}.mdw-site a{color:var(--mdw-cyan)}.mdw-site a:hover{color:var(--mdw-cyan2)}.container{max-width:1180px}.mdw-topbar{background:#06101d;border-bottom:1px solid var(--mdw-line);color:var(--mdw-muted)}.mdw-topline{padding:8px 0;color:var(--mdw-cyan2);font-size:13px;letter-spacing:.04em}.mdw-logo-row{background:linear-gradient(135deg,#071527,#0d2844);border-bottom:1px solid var(--mdw-line)}.mdw-brand a{display:inline-flex;align-items:center;gap:12px;padding:10px 0;color:#fff!important;font-weight:900;font-size:24px;letter-spacing:.02em}.mdw-logo-mark{display:inline-grid;place-items:center;width:48px;height:48px;border:1px solid var(--mdw-cyan);border-radius:14px;background:rgba(27,199,255,.12);box-shadow:0 0 24px rgba(27,199,255,.25);font-size:15px;color:var(--mdw-cyan2)}.mdw-searchbox .searchbox-icon,.mdw-searchbox .searchbox-submit{background:linear-gradient(135deg,#008ed0,#1bc7ff);border-radius:8px;color:#02111e}.mdw-searchbox .searchbox-input{background:#eef8ff;border-color:var(--mdw-cyan);border-radius:8px;color:#071527}.mdw-nav{background:#07111f;border-top:1px solid var(--mdw-line);border-bottom:1px solid var(--mdw-line)}nav.ectmegamenu{background:transparent}nav.ectmegamenu>ul>li{background:transparent}nav.ectmegamenu>ul>li>a{color:#e8f7ff!important;font-weight:700;letter-spacing:.03em}nav.ectmegamenu>ul>li:hover,nav.ectmegamenu>ul>li.ectmega-is-open{background:rgba(27,199,255,.12)}nav.ectmegamenu>ul>li>a:hover{color:var(--mdw-cyan2)!important}.mdw-hero{position:relative;overflow:hidden;border-bottom:1px solid var(--mdw-line);background:radial-gradient(circle at 80% 10%,rgba(27,199,255,.25),transparent 30%),linear-gradient(135deg,#071527,#0f3150 58%,#071527);padding:72px 0}.mdw-hero-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:44px;align-items:center}.mdw-eyebrow{text-transform:uppercase;color:var(--mdw-cyan2);letter-spacing:.14em;font-weight:900;font-size:13px;margin:0 0 14px;padding:0}.mdw-hero h1{font-size:54px;line-height:1.02;margin:0 0 18px;padding:0;color:#fff;text-align:left}.mdw-hero p{padding:0;margin:0 0 22px;color:var(--mdw-muted);font-size:18px;line-height:1.65}.mdw-hero-card{background:rgba(255,255,255,.07);border:1px solid var(--mdw-line);border-radius:28px;padding:28px;box-shadow:var(--mdw-shadow);backdrop-filter:blur(8px)}.mdw-code-window{background:#06101d;border:1px solid var(--mdw-line);border-radius:18px;padding:18px;font-family:Consolas,monospace;color:#dff8ff}.mdw-dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--mdw-cyan);box-shadow:0 0 16px var(--mdw-cyan);margin-right:7px}.mdw-actions{display:flex;gap:12px;flex-wrap:wrap}.mdw-button,input[type="button"].ectbutton,input[type="submit"].ectbutton,button.ectbutton,button.buybutton,button.detaillink,button.qbuybutton,input.buybutton,input.qbuybutton,input.detaillink{display:inline-block;border:0;border-radius:10px!important;background:linear-gradient(135deg,#009ad8,#1bc7ff)!important;color:#02111e!important;font-weight:900!important;padding:12px 18px!important;text-decoration:none!important;box-shadow:0 10px 28px rgba(27,199,255,.2);cursor:pointer;text-shadow:none!important}.mdw-button.ghost{background:transparent!important;color:var(--mdw-cyan2)!important;border:1px solid var(--mdw-line)!important;box-shadow:none}.midWrapper.mdw-main{background:transparent;padding:44px 0}.mdw-panel{background:rgba(255,255,255,.06);border:1px solid var(--mdw-line);border-radius:24px;padding:28px;box-shadow:var(--mdw-shadow);margin-bottom:26px}.mdw-panel h1,.mdw-panel h2,.mdw-section h2{color:#fff;padding:0;margin:0 0 14px;text-align:left}.mdw-panel p{color:var(--mdw-muted);padding:0}.mdw-card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.mdw-card{background:var(--mdw-card);border:1px solid var(--mdw-line);border-radius:20px;padding:22px}.mdw-card h3{padding:0;margin:0 0 8px;color:#fff}.mdw-card p{padding:0;margin:0;color:var(--mdw-muted)}.mdw-inner-title{background:linear-gradient(135deg,#081728,#103452);border-bottom:1px solid var(--mdw-line);padding:34px 0}.mdw-inner-title h1{padding:0;margin:0;color:#fff;text-align:left}.mdw-inner-title p{padding:0;margin:8px 0 0;color:var(--mdw-muted)}.mdw-content-shell{background:rgba(255,255,255,.96);color:#172333;border-radius:24px;padding:26px;box-shadow:var(--mdw-shadow);min-height:360px}.mdw-content-shell h1,.mdw-content-shell h2,.mdw-content-shell h3{color:#102033}.mdw-content-shell p{color:#24364a}.mdw-sidebar{background:rgba(255,255,255,.06);border:1px solid var(--mdw-line);border-radius:24px;padding:18px;color:var(--mdw-text)}.mdw-sidebar h2{font-size:18px;padding:0;margin:0 0 12px;color:#fff}.mdw-sidebar-box{margin-bottom:22px}.mdw-footer{background:#06101d;border-top:1px solid var(--mdw-line);color:var(--mdw-muted)}.mdw-footer h3{color:#fff}.mdw-footer a{color:var(--mdw-cyan2)!important}.project-showcase{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.project-card{background:rgba(255,255,255,.06);border:1px solid var(--mdw-line);border-radius:18px;padding:18px}.project-card h3{margin:0 0 7px;color:#fff}.project-status{display:inline-block;margin-bottom:10px;padding:5px 9px;border-radius:999px;background:rgba(27,199,255,.12);border:1px solid var(--mdw-line);color:var(--mdw-cyan2);font-size:12px;font-weight:900;text-transform:uppercase}.project-card p{color:var(--mdw-muted);margin:0 0 10px;padding:0}.ectdp_minicartmainwrapper,.ectdp_minicartcontainer,div.minicartcnt{color:#172333}.mdw-content-shell div.product,.mdw-content-shell div.category,.mdw-content-shell div.csproduct{border-radius:16px;overflow:hidden}.mdw-content-shell div.prodname a,.mdw-content-shell div.csprodname a,.mdw-content-shell div.catname a{color:#071527}.mdw-content-shell div.prodname a:hover,.mdw-content-shell div.csprodname a:hover,.mdw-content-shell div.catname a:hover{background:#1bc7ff;color:#02111e}@media(max-width:900px){.mdw-hero-grid,.mdw-card-grid{grid-template-columns:1fr}.mdw-hero h1{font-size:40px}.project-showcase{grid-template-columns:1fr}.col-3,.col-9,.col-4,.col-8,.col-4a{width:100%;float:none}.mdw-topline{text-align:left}.mdw-content-shell{padding:18px}}@media(max-width:520px){.mdw-hero{padding:46px 0}.mdw-hero h1{font-size:32px}.mdw-actions{display:block}.mdw-button{display:block;text-align:center;margin-bottom:10px}}

/* V2 refinements */
.mdw-cart-mini:empty{display:none}
.mdw-content-shell .mdw-crosssell-spacer{margin-top:26px}
.mdw-content-shell div.cartcontentsdiv,
.mdw-content-shell div.cartmaincontents{color:#172333}
.mdw-content-shell div.ectdivhead,
.mdw-content-shell div.checkoutsteps,
.mdw-content-shell div.cartheading,
.mdw-content-shell div.cart2header,
.mdw-content-shell div.cart3header,
.mdw-content-shell div.cart4header{background:#f6fbff;border-color:#b7d8ee;border-radius:12px}
.mdw-content-shell div.cartlineitems > div:not(:last-child){border-bottom-color:#c8d7e5}
.mdw-content-shell div.scwrap,
.mdw-content-shell div.qbuywrapper,
.mdw-content-shell div.iuwrap{color:#172333}
@media(max-width:900px){.mdw-cart-mini{display:none}}

/* Fix Ecommerce Templates account popup text on dark theme */
.ectsoftwrapper,
.ectsoftwrapper *,
div.ectsoftwrapper,
div.ectsoftwrapper * {
    color: #111827;
}

.ectsoftwrapper input,
.ectsoftwrapper select,
.ectsoftwrapper textarea {
    color: #111827;
    background: #ffffff;
}

.ectsoftwrapper .softformheader {
    color: #111827;
}

.ectsoftwrapper label,
.ectsoftwrapper div {
    color: #111827;
}

.category .catname,
.category-title,
div.category a {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0b2240;
    margin-bottom: 10px;
    display: block;
}


/* V3 content/download refinements */
.mdw-downloads h2,
.mdw-static-content h2 {
    margin-top: 0;
}
.mdw-download-group {
    border: 1px solid #c7d8e7;
    border-radius: 16px;
    margin: 18px 0;
    overflow: hidden;
    background: #ffffff;
}
.mdw-download-group h3 {
    margin: 0;
    padding: 14px 18px;
    background: #eef7ff;
    border-bottom: 1px solid #c7d8e7;
}
.mdw-download-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 16px 18px;
    border-top: 1px solid #edf3f8;
}
.mdw-download-row:first-of-type {
    border-top: 0;
}
.mdw-download-row span {
    display: block;
    color: #52677c;
    margin-top: 4px;
}
.mdw-card.light {
    background: #f7fbff;
    border-color: #c7d8e7;
}
.mdw-card.light h3 {
    color: #102033;
}
.mdw-card.light p {
    color: #30465c;
}
@media(max-width:700px){
    .mdw-download-row {
        display: block;
    }
    .mdw-download-row .mdw-button {
        margin-top: 12px;
    }
}

/* Murdock DevWorks logo/header refinement */
.mdw-brand a {
  gap: 10px;
  text-decoration: none !important;
}

.mdw-logo-img {
  display: inline-block;
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex: 0 0 auto;
}

.mdw-brand-text {
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.55);
  white-space: nowrap;
}

@media (max-width: 520px) {
  .mdw-logo-img {
    width: 42px;
    height: 42px;
  }

  .mdw-brand a {
    font-size: 20px;
  }
}


/* Launch polish - header spacing and project showcase readability */
.mdw-brand a {
  gap: 8px;
  padding: 12px 0;
  align-items: center;
  text-decoration: none !important;
}
.mdw-logo-img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}
.mdw-brand-text {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #ffffff;
  line-height: 1;
}
.project-showcase {
  gap: 18px;
}
.project-card {
  background: #f8fcff;
  border: 1px solid #bfefff;
  color: #102033;
}
.project-card h3 {
  color: #102033;
  font-weight: 900;
}
.project-card p {
  color: #30465c;
  line-height: 1.55;
}
.project-status {
  background: #dff8ff;
  border-color: #9beaff;
  color: #008bbd;
}
.project-card .mdw-button.ghost {
  background: #ffffff !important;
  border: 1px solid #7ddfff !important;
  color: #007da8 !important;
  box-shadow: none;
}
.project-card .mdw-button.ghost:hover {
  background: #e9faff !important;
  color: #005c7f !important;
}
@media (max-width: 520px) {
  .mdw-logo-img { width: 48px; height: 48px; }
  .mdw-brand-text { font-size: 20px; }
}


/* ============================================================
   MDW Launch Polish Patch - Sidebar, store cards, and downloads
   ============================================================ */
.mdw-sidebar {
  padding: 22px 20px;
}

.mdw-sidebar-box {
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(125,223,255,0.18);
  border-radius: 18px;
  padding: 16px 16px 18px;
  margin-bottom: 18px;
}

.mdw-sidebar h2 {
  text-align: center;
  margin-bottom: 14px;
  letter-spacing: .02em;
}

.mdw-sidebar ul,
.mdw-sidebar .ectmenu1 {
  margin-left: 0 !important;
  padding-left: 0 !important;
}

.mdw-sidebar li,
.mdw-sidebar .ectmenu1 li {
  list-style: none;
}

.mdw-sidebar a {
  display: block;
  text-align: left;
  padding: 9px 12px;
  border-radius: 10px;
  line-height: 1.35;
}

.mdw-sidebar .ectsub,
.mdw-sidebar .ectsub1,
.mdw-sidebar .ectsubverticalmenu2,
.mdw-sidebar .ectsubverticalmenu3 {
  background-position: right 12px center !important;
}

.mdw-sidebar input[type="text"],
.mdw-sidebar input[type="password"],
.mdw-sidebar input[type="email"],
.mdw-sidebar select {
  max-width: 100%;
  box-sizing: border-box;
}

.mdw-sidebar .ectdp_minicartmainwrapper,
.mdw-sidebar .ectdp_minicartcontainer,
.mdw-sidebar div.minicartcnt {
  background: #ffffff;
  border-radius: 14px;
  padding: 10px;
}

.mdw-content-shell div.prodname,
.mdw-content-shell div.detailname,
.mdw-content-shell div.catname {
  color: #102033;
  font-weight: 900;
}

.mdw-content-shell div.proddescription,
.mdw-content-shell div.detaildescription,
.mdw-content-shell div.catdesc,
.mdw-content-shell div.navdesc {
  color: #30465c;
  line-height: 1.55;
}

.mdw-content-shell div.prodprice,
.mdw-content-shell div.detailprice {
  color: #063f66;
  font-weight: 900;
}

.mdw-download-row .mdw-button {
  white-space: nowrap;
}

@media(max-width:900px){
  .mdw-sidebar {
    margin-top: 20px;
  }
}

/* ============================================================
   MDW Project Showcase Admin Sync + Status Color Polish
   Public showcase cards read from /devworks-admin/data/projects.json
   ============================================================ */
.project-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.project-card {
  background: #f8fcff;
  border: 1px solid #bfefff;
  border-left: 6px solid #bfefff;
  border-radius: 18px;
  color: #102033;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.04);
}
.project-card h3 {
  color: #102033;
  font-weight: 900;
  margin: 0 0 7px;
}
.project-card p {
  color: #30465c;
  line-height: 1.55;
  margin: 0 0 10px;
  padding: 0;
}
.project-status {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #dff8ff;
  border: 1px solid #9beaff;
  color: #008bbd;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.project-card.status-completed {
  border-color: #9beaff;
  border-left-color: #24bf75;
}
.project-card.status-completed .project-status {
  background: #dcfff0;
  border-color: #79e4ad;
  color: #008a4f;
}
.project-card.status-progress {
  border-color: #9beaff;
  border-left-color: #14aeea;
}
.project-card.status-progress .project-status {
  background: #dff8ff;
  border-color: #9beaff;
  color: #007fb2;
}
.project-card.status-planned {
  border-color: #ffd27c;
  border-left-color: #e38500;
}
.project-card.status-planned .project-status {
  background: #fff3d8;
  border-color: #ffce6a;
  color: #a76400;
}
.project-card.status-default {
  border-left-color: #9beaff;
}
.project-card .mdw-button.ghost {
  background: #ffffff !important;
  border: 1px solid #7ddfff !important;
  color: #007da8 !important;
  box-shadow: none;
}
.project-card .mdw-button.ghost:hover {
  background: #e9faff !important;
  color: #005c7f !important;
}
@media (max-width: 900px) {
  .project-showcase {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   MDW Product Detail Layout Polish
   Keep ECT layout controlled from vsadmin/includes.php, but make
   the catalog-mode detail page read cleanly inside the MDW shell.
   ============================================================ */
.mdw-content-shell div.detailname h1 {
  color: #102033;
  margin-top: 0;
  margin-bottom: 12px;
}
.mdw-content-shell div.detaillistprice,
.mdw-content-shell div.detailprice {
  float: right;
  width: 53%;
  margin: 4px 1%;
  clear: right;
}
.mdw-content-shell div.detaillistprice {
  color: #5f6f82;
  font-size: 1.05em;
}
.mdw-content-shell div.detailprice {
  color: #063f66;
  font-size: 1.65em;
  font-weight: 900;
}
.mdw-content-shell div.detailshortdescription {
  color: #102033;
  background: #eef6fb;
  border-radius: 8px;
  line-height: 1.6;
}
.mdw-content-shell div.detaildescription {
  color: #102033;
  background: #ffffff;
  border: 1px solid #9aa9b8;
  border-radius: 8px;
  padding: 16px;
  margin-top: 18px;
}
.mdw-content-shell div.detaildescription h1,
.mdw-content-shell div.detaildescription h2,
.mdw-content-shell div.detaildescription h3,
.mdw-content-shell div.detaildescription p,
.mdw-content-shell div.detaildescription li {
  color: #102033;
}
@media(max-width: 900px) {
  .mdw-content-shell div.detailimage,
  .mdw-content-shell div.detailname,
  .mdw-content-shell div.detailshortdescription,
  .mdw-content-shell div.detaillistprice,
  .mdw-content-shell div.detailprice,
  .mdw-content-shell div.detailid,
  .mdw-content-shell div.detailsku,
  .mdw-content-shell div.detaildateadded,
  .mdw-content-shell div.detailmanufacturer {
    float: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .mdw-content-shell div.detailimage {
    min-height: 0;
  }
}

/* ============================================================
   MDW ECT Cart Row Control Fix v4
   Keep Ecommerce Templates core files untouched.
   - Hide the optional Move To button on the cart page.
   - Let ECT place the Update button in the Total column.
   - Stack Update above the total price so the row reads cleanly.
   ============================================================ */
.mdw-content-shell .cartaddtolist,
.mdw-content-shell .cartaddtolist * {
  display: none !important;
}

.mdw-content-shell .cartlinecheck {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

.mdw-content-shell .cartlinecheck .cartdelete {
  display: inline-block !important;
  position: static !important;
  float: none !important;
  margin: 0 !important;
  line-height: 1;
}

.mdw-content-shell .cartlinetotal,
.mdw-content-shell [id^="cartlinetot"] {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  text-align: center !important;
  min-height: 60px;
}

.mdw-content-shell .cartlinetotal .cartlineupdate,
.mdw-content-shell [id^="cartlinetot"] .cartlineupdate,
.mdw-content-shell .cartlinetotal input[value="Update"],
.mdw-content-shell [id^="cartlinetot"] input[value="Update"] {
  display: inline-block !important;
  position: static !important;
  float: none !important;
  margin: 0 0 4px 0 !important;
  padding: 9px 14px !important;
  min-width: 78px;
  max-width: 120px;
  text-align: center;
  white-space: nowrap;
}

.mdw-content-shell .cartlinetotal strong,
.mdw-content-shell [id^="cartlinetot"] strong {
  display: block;
  margin-top: 2px;
}


/* ============================================================
   MDW ECT Cart Quantity Field Fix v5
   Avoid browser number spinners/overlays and keep quantity input clean.
   ============================================================ */
.mdw-content-shell input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
.mdw-content-shell input[type="number"]::-webkit-outer-spin-button,
.mdw-content-shell input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.mdw-content-shell input[name*="quant"],
.mdw-content-shell input[id*="quant"],
.mdw-content-shell input[name*="qty"],
.mdw-content-shell input[id*="qty"] {
  autocomplete: off;
}

/* ============================================================
   MDW Store Template Polish v1.2
   Let Ecommerce Templates control product/category internals.
   MDW should frame the store, not squeeze ECT cards.
   ============================================================ */

/* Give the store more room without forcing product internals. */
.mdw-main > .container,
.mdw-site .midWrapper.mdw-main > .container {
  max-width: 96% !important;
  width: 96% !important;
}

/* Keep the MDW shell as a clean frame only. */
.mdw-content-shell {
  padding: 24px !important;
  overflow: visible !important;
}

/* Do not clip ECT product/category boxes or image navigators. */
.mdw-content-shell div.product,
.mdw-content-shell div.category,
.mdw-content-shell div.csproduct {
  overflow: visible !important;
  border-radius: 12px !important;
}

/* Restore ECT-style two-column product/category breathing room on desktop. */
.mdw-content-shell div.categories,
.mdw-content-shell div.products,
.mdw-content-shell div.csproducts {
  justify-content: space-between !important;
  gap: 14px 12px !important;
}

@media screen and (min-width: 64em) {
  .mdw-content-shell div.categories > div.category,
  .mdw-content-shell div.products > div.product,
  .mdw-content-shell div.csproducts > div.csproduct {
    flex: 0 0 49% !important;
    max-width: 49% !important;
    width: 49% !important;
    margin: 0 0 14px 0 !important;
  }
}

@media screen and (max-width: 63.99em) {
  .mdw-content-shell div.categories > div.category,
  .mdw-content-shell div.products > div.product,
  .mdw-content-shell div.csproducts > div.csproduct {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* Make product images readable again inside the wider cards. */
.mdw-content-shell div.prodimage,
.mdw-content-shell div.csprodimage,
.mdw-content-shell div.catimage {
  min-width: 150px;
}

.mdw-content-shell img.prodimage,
.mdw-content-shell img.csprodimage,
.mdw-content-shell img.catimage,
.mdw-content-shell img.allprodimages {
  max-width: 100% !important;
  height: auto !important;
}

/* Prevent global MDW button styling from turning ECT image PREV/NEXT into large product buttons. */
.mdw-content-shell div.prodimage input.ectbutton,
.mdw-content-shell div.prodimage input.previmg,
.mdw-content-shell div.prodimage input.nextimg,
.mdw-content-shell div.prodimage button.previmg,
.mdw-content-shell div.prodimage button.nextimg,
.mdw-content-shell div.csprodimage input.ectbutton,
.mdw-content-shell div.csprodimage input.previmg,
.mdw-content-shell div.csprodimage input.nextimg,
.mdw-content-shell div.csprodimage button.previmg,
.mdw-content-shell div.csprodimage button.nextimg,
.mdw-content-shell td.prodimage input.ectbutton,
.mdw-content-shell td.prodimage input.previmg,
.mdw-content-shell td.prodimage input.nextimg {
  display: inline-block !important;
  position: static !important;
  float: none !important;
  width: auto !important;
  min-width: 46px !important;
  max-width: 64px !important;
  padding: 6px 8px !important;
  margin: 3px 2px !important;
  font-size: 11px !important;
  line-height: 1.1 !important;
  border-radius: 7px !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}

.mdw-content-shell div.prodimage .extraimage,
.mdw-content-shell div.csprodimage .extraimage,
.mdw-content-shell td.prodimage .extraimage {
  display: inline-block !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  color: #102033 !important;
}

/* Keep normal product action buttons full-width and readable. */
.mdw-content-shell div.detaillink input,
.mdw-content-shell div.qbuybutton input,
.mdw-content-shell div.addtocart input,
.mdw-content-shell div.csdetaillink input,
.mdw-content-shell div.csqbuybutton input,
.mdw-content-shell div.csaddtocart input {
  width: 100% !important;
  max-width: none !important;
}

/* Sidebar can be slightly wider but should not compress ECT cards. */
@media screen and (min-width: 1000px) {
  .mdw-main .col-9 { width: 78% !important; }
  .mdw-main .col-3 { width: 22% !important; }
}

/* Compact inner page title so store content starts sooner. */
.mdw-inner-title {
  padding: 24px 0 !important;
}
.mdw-inner-title h1 {
  font-size: 30px !important;
  line-height: 1.2 !important;
}
.mdw-inner-title p {
  display: inline-block;
  margin-left: 14px !important;
  font-size: 15px !important;
}


/* ============================================================
   MDW Light Marble / Gold Visual Test
   Visual refresh only. Store/cart structure unchanged.
   ============================================================ */
:root{
  --mdw-bg:#f6f3ed;
  --mdw-stone:#faf8f3;
  --mdw-stone2:#ece4d7;
  --mdw-navy:#17283c;
  --mdw-charcoal:#27313b;
  --mdw-muted-dark:#66727f;
  --mdw-gold:#d7a13f;
  --mdw-gold-light:#f6d27c;
  --mdw-gold-dark:#a86d19;
  --mdw-line-light:rgba(69,55,36,.14);
  --mdw-card-light:rgba(255,255,255,.82);
  --mdw-shadow-light:0 18px 48px rgba(52,43,31,.14);
}

body{
  background:
    radial-gradient(circle at 12% 0%, rgba(255,255,255,.92), rgba(255,255,255,0) 28%),
    radial-gradient(circle at 85% 10%, rgba(214,180,112,.16), rgba(255,255,255,0) 24%),
    linear-gradient(135deg, rgba(255,255,255,.58), rgba(255,255,255,.2)),
    repeating-linear-gradient(118deg, rgba(33,43,55,.035) 0px, rgba(33,43,55,.035) 1px, transparent 1px, transparent 42px),
    linear-gradient(135deg,#f7f4ee 0%,#ebe3d7 48%,#faf8f4 100%) !important;
  color:var(--mdw-charcoal) !important;
}

.mdw-site a{color:#7d551c}
.mdw-site a:hover{color:#a86d19}

.mdw-topbar{
  background:rgba(255,255,255,.72) !important;
  border-bottom:1px solid var(--mdw-line-light) !important;
  color:var(--mdw-muted-dark) !important;
  backdrop-filter:blur(8px);
}
.mdw-topline{
  color:#836222 !important;
  font-weight:900;
  letter-spacing:.06em;
}

.mdw-logo-row{
  background:
    linear-gradient(180deg,rgba(255,255,255,.92),rgba(250,246,239,.82)) !important;
  border-bottom:1px solid var(--mdw-line-light) !important;
  box-shadow:0 8px 26px rgba(58,45,29,.08);
}
.mdw-brand a{
  color:var(--mdw-navy)!important;
}
.mdw-brand-text{
  color:var(--mdw-navy)!important;
  text-shadow:none!important;
  font-weight:900!important;
}
.mdw-logo-img{
  filter:drop-shadow(0 4px 9px rgba(50,38,19,.18));
}

.mdw-searchbox .searchbox-icon,
.mdw-searchbox .searchbox-submit{
  background:linear-gradient(180deg,var(--mdw-gold-light),var(--mdw-gold)) !important;
  border:1px solid var(--mdw-gold-dark) !important;
  color:#1f1605!important;
  box-shadow:0 0 14px rgba(215,161,63,.35), inset 0 1px 0 rgba(255,255,255,.6);
}
.mdw-searchbox .searchbox-input{
  background:#fff !important;
  border-color:#d8c7a8 !important;
  color:var(--mdw-navy)!important;
}

.mdw-nav{
  background:rgba(255,255,255,.84)!important;
  border-top:1px solid var(--mdw-line-light)!important;
  border-bottom:1px solid var(--mdw-line-light)!important;
  box-shadow:0 10px 28px rgba(58,45,29,.08);
  backdrop-filter:blur(8px);
}
nav.ectmegamenu>ul>li>a{
  color:var(--mdw-navy)!important;
  font-weight:900;
}
nav.ectmegamenu>ul>li:hover,
nav.ectmegamenu>ul>li.ectmega-is-open{
  background:rgba(215,161,63,.16)!important;
}
nav.ectmegamenu>ul>li>a:hover{
  color:#8a5b14!important;
}

.mdw-hero{
  background:
    radial-gradient(circle at 76% 12%, rgba(215,161,63,.24), rgba(255,255,255,0) 24%),
    radial-gradient(circle at 10% 0%, rgba(255,255,255,.85), rgba(255,255,255,0) 30%),
    linear-gradient(135deg,rgba(255,255,255,.82),rgba(247,241,231,.62)),
    repeating-linear-gradient(125deg, rgba(35,45,56,.045) 0px, rgba(35,45,56,.045) 1px, transparent 1px, transparent 36px),
    linear-gradient(135deg,#f8f4eb 0%,#e8ded0 53%,#fffdf8 100%) !important;
  border-bottom:1px solid var(--mdw-line-light)!important;
  padding:76px 0 70px;
}
.mdw-eyebrow{
  color:#9c6a18!important;
  font-weight:900;
}
.mdw-hero h1{
  color:var(--mdw-navy)!important;
  text-shadow:none;
}
.mdw-hero p{
  color:#526171!important;
}
.mdw-hero-card,
.mdw-panel,
.mdw-sidebar{
  background:var(--mdw-card-light)!important;
  border:1px solid rgba(143,113,62,.18)!important;
  box-shadow:var(--mdw-shadow-light)!important;
  backdrop-filter:blur(8px);
}
.mdw-code-window{
  background:#17283c!important;
  border:1px solid rgba(215,161,63,.34)!important;
  color:#f7f0df!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.04);
}
.mdw-dot{
  background:var(--mdw-gold-light)!important;
  box-shadow:0 0 16px rgba(246,210,124,.7)!important;
}

.mdw-panel h1,
.mdw-panel h2,
.mdw-section h2,
.mdw-sidebar h2{
  color:var(--mdw-navy)!important;
}
.mdw-panel p,
.mdw-card p,
.mdw-sidebar,
.mdw-sidebar p{
  color:#5f6b76!important;
}

.mdw-card,
.project-card{
  background:rgba(255,255,255,.74)!important;
  border:1px solid rgba(143,113,62,.18)!important;
  box-shadow:0 12px 30px rgba(58,45,29,.08);
}
.mdw-card h3,
.project-card h3{
  color:var(--mdw-navy)!important;
}
.project-status{
  background:rgba(215,161,63,.16)!important;
  color:#835911!important;
  border-color:rgba(168,109,25,.28)!important;
}

.mdw-button,
input[type="button"].ectbutton,
input[type="submit"].ectbutton,
button.ectbutton,
button.buybutton,
button.detaillink,
button.qbuybutton,
input.buybutton,
input.qbuybutton,
input.detaillink{
  background:linear-gradient(180deg,#f8d77e 0%,#d7a13f 50%,#b8791b 100%)!important;
  color:#1f1605!important;
  border:1px solid #a86d19!important;
  border-radius:11px!important;
  box-shadow:
    0 0 15px rgba(215,161,63,.42),
    0 7px 16px rgba(67,48,14,.24),
    inset 0 1px 0 rgba(255,255,255,.58)!important;
  text-shadow:0 1px 0 rgba(255,255,255,.35)!important;
}
.mdw-button:hover,
input[type="button"].ectbutton:hover,
input[type="submit"].ectbutton:hover,
button.ectbutton:hover,
button.buybutton:hover,
button.detaillink:hover,
button.qbuybutton:hover,
input.buybutton:hover,
input.qbuybutton:hover,
input.detaillink:hover{
  background:linear-gradient(180deg,#ffe394 0%,#e4ad4d 48%,#bd8425 100%)!important;
  color:#1f1605!important;
  box-shadow:
    0 0 22px rgba(246,210,124,.66),
    0 8px 18px rgba(67,48,14,.28),
    inset 0 1px 0 rgba(255,255,255,.68)!important;
}
.mdw-button.ghost{
  background:rgba(255,255,255,.6)!important;
  color:var(--mdw-navy)!important;
  border:1px solid rgba(143,113,62,.28)!important;
  box-shadow:none!important;
}

.midWrapper.mdw-main{
  background:transparent!important;
}
.mdw-inner-title{
  background:
    linear-gradient(135deg,rgba(255,255,255,.82),rgba(239,231,217,.72)),
    repeating-linear-gradient(125deg, rgba(35,45,56,.04) 0px, rgba(35,45,56,.04) 1px, transparent 1px, transparent 38px)!important;
  border-bottom:1px solid var(--mdw-line-light)!important;
}
.mdw-inner-title h1{
  color:var(--mdw-navy)!important;
}
.mdw-inner-title p{
  color:#5c6875!important;
}
.mdw-content-shell{
  background:rgba(255,255,255,.91)!important;
  color:#172333!important;
  border:1px solid rgba(143,113,62,.18);
  box-shadow:var(--mdw-shadow-light)!important;
}
.mdw-content-shell h1,
.mdw-content-shell h2,
.mdw-content-shell h3{
  color:var(--mdw-navy)!important;
}

.mdw-footer{
  background:#1a2635!important;
  border-top:1px solid rgba(215,161,63,.32)!important;
  color:#d2d8df!important;
}
.mdw-footer h3{color:#fff!important}
.mdw-footer a{color:#f6d27c!important}
.mdw-footer .mdw-button.ghost{
  background:transparent!important;
  color:#f6d27c!important;
  border-color:rgba(246,210,124,.45)!important;
}

.category .catname,
.category-title,
div.category a{
  color:var(--mdw-navy)!important;
}

@media(max-width:900px){
  .mdw-hero{padding:50px 0}
}

/* ============================================================
   MDW Light Marble / Gold Visual Test - Cooler White Refinement
   User requested: whiter stone, softer gray marble, less yellow,
   better page balance, keep gold buttons as accents only.
   ============================================================ */
:root{
  --mdw-bg:#f7f7f5;
  --mdw-stone:#fcfcfa;
  --mdw-stone2:#f1f1ee;
  --mdw-stone3:#e6e5e1;
  --mdw-navy:#142845;
  --mdw-charcoal:#25313f;
  --mdw-muted-dark:#627082;
  --mdw-gold:#d3a24c;
  --mdw-gold-light:#f3d48d;
  --mdw-gold-dark:#9b6a1b;
  --mdw-line-light:rgba(55,65,78,.12);
  --mdw-card-light:rgba(255,255,255,.88);
  --mdw-shadow-light:0 18px 46px rgba(32,39,48,.08);
}

body{
  background-color:#f7f7f5 !important;
  background-image:
    linear-gradient(115deg, rgba(90,100,114,.065) 0%, rgba(90,100,114,0) 18%),
    linear-gradient(55deg, rgba(130,138,150,.04) 0%, rgba(130,138,150,0) 26%),
    linear-gradient(168deg, rgba(86,96,108,.05) 0%, rgba(86,96,108,0) 12%),
    radial-gradient(circle at 14% 12%, rgba(255,255,255,.96), rgba(255,255,255,0) 24%),
    radial-gradient(circle at 82% 10%, rgba(255,255,255,.86), rgba(255,255,255,0) 22%),
    linear-gradient(135deg,#fbfbf9 0%,#f3f3f0 38%,#fcfcfb 100%) !important;
  color:var(--mdw-charcoal) !important;
}

/* slightly narrower content for better balance */
.mdw-main > .container,
.mdw-site .midWrapper.mdw-main > .container,
.mdw-hero .container,
.mdw-inner-title .container,
.mdw-logo-row .container,
.mdw-topbar .container,
.mdw-footer .container{
  width:min(92%, 1260px) !important;
  max-width:1260px !important;
}

.mdw-topbar{
  background:rgba(255,255,255,.84) !important;
  border-bottom:1px solid var(--mdw-line-light) !important;
  color:var(--mdw-muted-dark) !important;
}
.mdw-topline{
  color:#8c6a2d !important;
  font-weight:800;
}

.mdw-logo-row{
  background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(248,248,245,.92)) !important;
  border-bottom:1px solid rgba(55,65,78,.10) !important;
  box-shadow:0 6px 20px rgba(38,46,58,.05);
}
.mdw-brand a,
.mdw-brand-text{
  color:var(--mdw-navy) !important;
}

.mdw-nav{
  background:rgba(255,255,255,.92) !important;
  border-top:1px solid rgba(55,65,78,.08) !important;
  border-bottom:1px solid rgba(55,65,78,.10) !important;
  box-shadow:0 8px 24px rgba(38,46,58,.045);
}
nav.ectmegamenu>ul>li>a{
  color:var(--mdw-navy) !important;
}
nav.ectmegamenu>ul>li:hover,
nav.ectmegamenu>ul>li.ectmega-is-open{
  background:rgba(211,162,76,.10) !important;
}
nav.ectmegamenu>ul>li>a:hover{
  color:#8d6318 !important;
}

.mdw-hero{
  background-color:#f7f7f5 !important;
  background-image:
    linear-gradient(125deg, rgba(98,110,122,.055) 0%, rgba(98,110,122,0) 20%),
    linear-gradient(42deg, rgba(145,152,161,.045) 0%, rgba(145,152,161,0) 18%),
    radial-gradient(circle at 84% 12%, rgba(255,255,255,.94), rgba(255,255,255,0) 22%),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(246,246,242,.88)) !important;
  border-bottom:1px solid var(--mdw-line-light) !important;
}
.mdw-eyebrow{ color:#8c6a2d !important; }
.mdw-hero h1,
.mdw-inner-title h1,
.mdw-panel h1,
.mdw-panel h2,
.mdw-section h2,
.mdw-sidebar h2,
.mdw-content-shell h1,
.mdw-content-shell h2,
.mdw-content-shell h3{
  color:var(--mdw-navy) !important;
}
.mdw-hero p,
.mdw-panel p,
.mdw-card p,
.mdw-sidebar,
.mdw-sidebar p,
.mdw-inner-title p{
  color:var(--mdw-muted-dark) !important;
}

.mdw-hero-card,
.mdw-panel,
.mdw-sidebar,
.mdw-content-shell,
.mdw-card,
.project-card{
  background:rgba(255,255,255,.90) !important;
  border:1px solid rgba(70,80,92,.10) !important;
  box-shadow:var(--mdw-shadow-light) !important;
}

.mdw-code-window{
  background:#142845 !important;
  border:1px solid rgba(211,162,76,.24) !important;
  color:#f7f2e7 !important;
}
.mdw-dot{
  background:var(--mdw-gold-light) !important;
  box-shadow:0 0 14px rgba(243,212,141,.58) !important;
}

/* gold buttons stay premium accents */
.mdw-button,
input[type="button"].ectbutton,
input[type="submit"].ectbutton,
button.ectbutton,
button.buybutton,
button.detaillink,
button.qbuybutton,
input.buybutton,
input.qbuybutton,
input.detaillink{
  background:linear-gradient(180deg,#f5d991 0%, #deb05b 52%, #bf8427 100%) !important;
  color:#1d1506 !important;
  border:1px solid var(--mdw-gold-dark) !important;
  box-shadow:0 0 14px rgba(211,162,76,.24), 0 6px 16px rgba(42,34,19,.14), inset 0 1px 0 rgba(255,255,255,.62) !important;
  text-shadow:0 1px 0 rgba(255,255,255,.35) !important;
}
.mdw-button:hover,
input[type="button"].ectbutton:hover,
input[type="submit"].ectbutton:hover,
button.ectbutton:hover,
button.buybutton:hover,
button.detaillink:hover,
button.qbuybutton:hover,
input.buybutton:hover,
input.qbuybutton:hover,
input.detaillink:hover{
  background:linear-gradient(180deg,#f8df9f 0%, #e4b45f 52%, #c58a2d 100%) !important;
  box-shadow:0 0 18px rgba(211,162,76,.34), 0 8px 18px rgba(42,34,19,.16), inset 0 1px 0 rgba(255,255,255,.68) !important;
}
.mdw-button.ghost{
  background:rgba(255,255,255,.82) !important;
  color:var(--mdw-navy) !important;
  border:1px solid rgba(70,80,92,.15) !important;
  box-shadow:none !important;
}

.mdw-inner-title{
  background:linear-gradient(135deg,rgba(255,255,255,.94),rgba(245,245,241,.88)) !important;
  border-bottom:1px solid var(--mdw-line-light) !important;
}

/* featured products / catalog balance */
.mdw-panel .products,
.mdw-panel .csproducts,
.mdw-content-shell .products,
.mdw-content-shell .csproducts{
  justify-content:center !important;
  gap:20px 16px !important;
}

@media screen and (min-width: 64em) {
  .mdw-panel div.csproducts > div.csproduct,
  .mdw-panel div.products > div.product,
  .mdw-content-shell div.csproducts > div.csproduct,
  .mdw-content-shell div.products > div.product {
    flex:0 0 31.5% !important;
    max-width:31.5% !important;
    width:31.5% !important;
  }
}

.mdw-content-shell div.product,
.mdw-content-shell div.csproduct,
.mdw-panel div.product,
.mdw-panel div.csproduct{
  background:#fff !important;
  border:1px solid rgba(70,80,92,.11) !important;
  border-radius:16px !important;
  box-shadow:0 10px 24px rgba(37,49,63,.05);
}

.mdw-footer{
  background:#162434 !important;
  border-top:1px solid rgba(211,162,76,.22) !important;
  color:#d4dae1 !important;
}
.mdw-footer a{ color:#f3d48d !important; }

/* keep mobile clean */
@media(max-width:900px){
  .mdw-main > .container,
  .mdw-site .midWrapper.mdw-main > .container,
  .mdw-hero .container,
  .mdw-inner-title .container,
  .mdw-logo-row .container,
  .mdw-topbar .container,
  .mdw-footer .container{
    width:94% !important;
  }
}


/* ============================================================
   MDW Light Marble / Gold Visual Test v3
   Theme-only pass: cooler true-white marble, gray stone veining,
   reduced yellow tint. Product-card sizing intentionally left
   mostly alone for a later ECT/layout pass.
   ============================================================ */
:root{
  --mdw-marble-white:#fbfbfa;
  --mdw-marble-off:#f3f3f1;
  --mdw-marble-line:rgba(57,68,80,.13);
  --mdw-navy:#10243b;
  --mdw-ink:#1d2b3a;
  --mdw-muted-dark:#5f6f80;
  --mdw-gold:#d4a24a;
  --mdw-gold-light:#f4d890;
  --mdw-gold-dark:#996818;
  --mdw-card-white:rgba(255,255,255,.88);
  --mdw-soft-shadow:0 18px 48px rgba(24,34,45,.09);
}

/* Make the marble visible without turning the whole site yellow. */
body{
  background-color:#f8f8f6 !important;
  background-image:
    linear-gradient(rgba(255,255,255,.58), rgba(255,255,255,.58)),
    url('../images/theme/mdw-white-marble-bg.png') !important;
  background-size:cover !important;
  background-attachment:fixed !important;
  background-position:center top !important;
  color:var(--mdw-ink) !important;
}

/* Keep main area stone-like instead of beige. */
.midWrapper.mdw-main,
.mdw-hero,
.mdw-inner-title{
  background-color:transparent !important;
  background-image:
    linear-gradient(rgba(255,255,255,.70), rgba(255,255,255,.70)),
    url('../images/theme/mdw-white-marble-bg.png') !important;
  background-size:cover !important;
  background-position:center top !important;
  border-color:var(--mdw-marble-line) !important;
}

/* Better centered page balance, still compatible with ECT pages. */
.mdw-main > .container,
.mdw-site .midWrapper.mdw-main > .container,
.mdw-hero .container,
.mdw-inner-title .container{
  width:min(90%, 1220px) !important;
  max-width:1220px !important;
}

.mdw-topbar,
.mdw-logo-row,
.mdw-nav{
  background:rgba(255,255,255,.88) !important;
  border-color:rgba(57,68,80,.10) !important;
  box-shadow:0 6px 20px rgba(24,34,45,.04) !important;
}
.mdw-logo-row{
  background:rgba(255,255,255,.94) !important;
}
.mdw-topline{
  color:#806126 !important;
}
.mdw-brand a,
.mdw-brand-text,
nav.ectmegamenu>ul>li>a{
  color:var(--mdw-navy) !important;
}

/* Glassy white panels on top of the marble. */
.mdw-hero-card,
.mdw-panel,
.mdw-sidebar,
.mdw-content-shell,
.mdw-card,
.project-card{
  background:var(--mdw-card-white) !important;
  border:1px solid rgba(57,68,80,.12) !important;
  box-shadow:var(--mdw-soft-shadow) !important;
  backdrop-filter:blur(5px);
}

.mdw-hero{
  padding-top:72px !important;
  padding-bottom:68px !important;
}
.mdw-eyebrow{
  color:#5f7185 !important;
  letter-spacing:.14em !important;
}
.mdw-hero h1,
.mdw-inner-title h1,
.mdw-panel h1,
.mdw-panel h2,
.mdw-section h2,
.mdw-sidebar h2,
.mdw-content-shell h1,
.mdw-content-shell h2,
.mdw-content-shell h3{
  color:var(--mdw-navy) !important;
}
.mdw-hero p,
.mdw-panel p,
.mdw-card p,
.mdw-sidebar,
.mdw-sidebar p,
.mdw-inner-title p,
.mdw-content-shell p{
  color:var(--mdw-muted-dark) !important;
}

/* Terminal box stays navy so the page still has contrast. */
.mdw-code-window{
  background:#142941 !important;
  color:#f7f4ee !important;
  border:1px solid rgba(212,162,74,.26) !important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.05);
}
.mdw-dot{
  background:var(--mdw-gold-light) !important;
  box-shadow:0 0 12px rgba(244,216,144,.55) !important;
}

/* Gold buttons: good glow, less heavy yellow cast. */
.mdw-button,
input[type="button"].ectbutton,
input[type="submit"].ectbutton,
button.ectbutton,
button.buybutton,
button.detaillink,
button.qbuybutton,
input.buybutton,
input.qbuybutton,
input.detaillink{
  background:linear-gradient(180deg,#f6dc96 0%,#d7a64e 54%,#b77b22 100%) !important;
  color:#1b1407 !important;
  border:1px solid var(--mdw-gold-dark) !important;
  box-shadow:
    0 0 12px rgba(212,162,74,.28),
    0 6px 14px rgba(52,39,18,.16),
    inset 0 1px 0 rgba(255,255,255,.62) !important;
}
.mdw-button:hover,
input[type="button"].ectbutton:hover,
input[type="submit"].ectbutton:hover,
button.ectbutton:hover,
button.buybutton:hover,
button.detaillink:hover,
button.qbuybutton:hover,
input.buybutton:hover,
input.qbuybutton:hover,
input.detaillink:hover{
  background:linear-gradient(180deg,#fae3a8 0%,#dfb15b 54%,#bf852b 100%) !important;
  box-shadow:
    0 0 16px rgba(212,162,74,.38),
    0 7px 16px rgba(52,39,18,.18),
    inset 0 1px 0 rgba(255,255,255,.70) !important;
}
.mdw-button.ghost{
  background:rgba(255,255,255,.72) !important;
  color:var(--mdw-navy) !important;
  border:1px solid rgba(57,68,80,.16) !important;
  box-shadow:none !important;
}

/* Give the featured/home panels a stone-white read. */
.mdw-panel{
  border-radius:24px !important;
}
.mdw-card{
  background:rgba(255,255,255,.72) !important;
}

/* Footer gives the light site a grounded finish. */
.mdw-footer{
  background:#162536 !important;
  border-top:1px solid rgba(212,162,74,.26) !important;
  color:#d7dde4 !important;
}
.mdw-footer h3{ color:#fff !important; }
.mdw-footer a{ color:#f4d890 !important; }

/* Mobile keeps the same look. */
@media(max-width:900px){
  body{ background-attachment:scroll !important; }
  .mdw-main > .container,
  .mdw-site .midWrapper.mdw-main > .container,
  .mdw-hero .container,
  .mdw-inner-title .container{
    width:94% !important;
  }
}


/* ============================================================
   MDW Light Marble / Transparent Page Test v4
   Uses a real background image behind transparent page panels.
   To change the whole site look later, replace:
   images/theme/mdw-marble-background.jpg
   ============================================================ */
:root{
  --mdw-marble-white:#fbfbf8;
  --mdw-panel-glass:rgba(255,255,255,.78);
  --mdw-panel-glass-strong:rgba(255,255,255,.88);
  --mdw-border-soft:rgba(56,66,78,.15);
  --mdw-navy:#0f243c;
  --mdw-ink:#1c2c3c;
  --mdw-muted-dark:#5d6e80;
  --mdw-gold:#d2a04a;
  --mdw-gold-light:#f4da95;
  --mdw-gold-dark:#946115;
  --mdw-shadow-glass:0 18px 48px rgba(24,34,45,.10);
}

/* One real background image behind the whole site. */
html,
body{
  min-height:100%;
}
body{
  background:#f8f8f5 url('../images/theme/mdw-marble-background.jpg') center top / cover fixed no-repeat !important;
  color:var(--mdw-ink) !important;
}

/* Let the background show through the main wrappers. */
.mainWrapper,
.mdw-site,
.midWrapper.mdw-main,
.mdw-hero,
.mdw-inner-title{
  background:transparent !important;
}

/* Keep top areas light but transparent enough to feel part of the marble site. */
.mdw-topbar{
  background:rgba(255,255,255,.72) !important;
  border-bottom:1px solid rgba(56,66,78,.10) !important;
  backdrop-filter:blur(7px);
  color:var(--mdw-muted-dark) !important;
}
.mdw-logo-row{
  background:rgba(255,255,255,.76) !important;
  border-bottom:1px solid rgba(56,66,78,.10) !important;
  backdrop-filter:blur(8px);
  box-shadow:0 8px 24px rgba(24,34,45,.05) !important;
}
.mdw-nav{
  background:rgba(255,255,255,.82) !important;
  border-top:1px solid rgba(56,66,78,.08) !important;
  border-bottom:1px solid rgba(56,66,78,.12) !important;
  backdrop-filter:blur(8px);
  box-shadow:0 8px 22px rgba(24,34,45,.05) !important;
}
.mdw-topline{
  color:#806028 !important;
  font-weight:900;
}
.mdw-brand a,
.mdw-brand-text,
nav.ectmegamenu>ul>li>a{
  color:var(--mdw-navy) !important;
}
nav.ectmegamenu>ul>li:hover,
nav.ectmegamenu>ul>li.ectmega-is-open{
  background:rgba(210,160,74,.12) !important;
}
nav.ectmegamenu>ul>li>a:hover{
  color:#835811 !important;
}

/* More balanced centered site width. */
.mdw-main > .container,
.mdw-site .midWrapper.mdw-main > .container,
.mdw-hero .container,
.mdw-inner-title .container,
.mdw-logo-row .container,
.mdw-topbar .container,
.mdw-footer .container{
  width:min(90%, 1220px) !important;
  max-width:1220px !important;
}

/* Hero is transparent, not a solid block. */
.mdw-hero{
  border-bottom:1px solid rgba(56,66,78,.13) !important;
  padding:72px 0 68px !important;
}
.mdw-eyebrow{
  color:#50657a !important;
}
.mdw-hero h1,
.mdw-inner-title h1,
.mdw-panel h1,
.mdw-panel h2,
.mdw-section h2,
.mdw-sidebar h2,
.mdw-content-shell h1,
.mdw-content-shell h2,
.mdw-content-shell h3{
  color:var(--mdw-navy) !important;
}
.mdw-hero p,
.mdw-panel p,
.mdw-card p,
.mdw-sidebar,
.mdw-sidebar p,
.mdw-inner-title p,
.mdw-content-shell p{
  color:var(--mdw-muted-dark) !important;
}

/* Transparent/glass page panels. */
.mdw-hero-card,
.mdw-panel,
.mdw-sidebar,
.mdw-content-shell{
  background:var(--mdw-panel-glass) !important;
  border:1px solid var(--mdw-border-soft) !important;
  box-shadow:var(--mdw-shadow-glass) !important;
  backdrop-filter:blur(7px);
}

.mdw-card,
.project-card,
.mdw-content-shell div.product,
.mdw-content-shell div.csproduct,
.mdw-content-shell div.category,
.mdw-panel div.product,
.mdw-panel div.csproduct,
.mdw-panel div.category{
  background:rgba(255,255,255,.70) !important;
  border:1px solid rgba(56,66,78,.14) !important;
  box-shadow:0 10px 26px rgba(24,34,45,.06) !important;
}

/* Terminal remains dark/navy for contrast. */
.mdw-code-window{
  background:#13283f !important;
  color:#f7f2e8 !important;
  border:1px solid rgba(210,160,74,.28) !important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.05);
}
.mdw-dot{
  background:var(--mdw-gold-light) !important;
  box-shadow:0 0 12px rgba(244,218,149,.55) !important;
}

/* Gold buttons: visible accent, not overpowering the marble. */
.mdw-button,
input[type="button"].ectbutton,
input[type="submit"].ectbutton,
button.ectbutton,
button.buybutton,
button.detaillink,
button.qbuybutton,
input.buybutton,
input.qbuybutton,
input.detaillink{
  background:linear-gradient(180deg,#f7dda0 0%,#d5a44e 52%,#b57920 100%) !important;
  color:#1b1407 !important;
  border:1px solid var(--mdw-gold-dark) !important;
  box-shadow:
    0 0 13px rgba(210,160,74,.30),
    0 6px 14px rgba(48,34,13,.16),
    inset 0 1px 0 rgba(255,255,255,.66) !important;
  text-shadow:0 1px 0 rgba(255,255,255,.36) !important;
}
.mdw-button:hover,
input[type="button"].ectbutton:hover,
input[type="submit"].ectbutton:hover,
button.ectbutton:hover,
button.buybutton:hover,
button.detaillink:hover,
button.qbuybutton:hover,
input.buybutton:hover,
input.qbuybutton:hover,
input.detaillink:hover{
  background:linear-gradient(180deg,#fae6b1 0%,#ddb05b 52%,#bf842a 100%) !important;
  box-shadow:
    0 0 18px rgba(210,160,74,.40),
    0 7px 16px rgba(48,34,13,.18),
    inset 0 1px 0 rgba(255,255,255,.72) !important;
}
.mdw-button.ghost{
  background:rgba(255,255,255,.70) !important;
  color:var(--mdw-navy) !important;
  border:1px solid rgba(56,66,78,.18) !important;
  box-shadow:none !important;
}

/* Inner page title floats over marble instead of becoming a stripe. */
.mdw-inner-title{
  border-bottom:1px solid rgba(56,66,78,.12) !important;
}

/* Footer anchors the page. */
.mdw-footer{
  background:rgba(16,31,47,.96) !important;
  border-top:1px solid rgba(210,160,74,.26) !important;
  color:#d7dde4 !important;
}
.mdw-footer h3{ color:#fff !important; }
.mdw-footer a{ color:#f4da95 !important; }

@media(max-width:900px){
  body{ background-attachment:scroll !important; }
  .mdw-main > .container,
  .mdw-site .midWrapper.mdw-main > .container,
  .mdw-hero .container,
  .mdw-inner-title .container,
  .mdw-logo-row .container,
  .mdw-topbar .container,
  .mdw-footer .container{
    width:94% !important;
  }
}


/* ============================================================
   MDW Marble Transparent Test v5
   Smooth hero-to-content transition: remove the dividing line
   below the hero so the marble background flows continuously.
   ============================================================ */
.mdw-hero{
  border-bottom:0 !important;
  box-shadow:none !important;
}

.midWrapper.mdw-main{
  padding-top:38px !important;
}

/* Keep the panels floating over the marble instead of sitting below a hard divider. */
.mdw-panel:first-child{
  margin-top:0 !important;
}

/* Inner store/page title dividers can stay subtle, but not heavy. */
.mdw-inner-title{
  border-bottom:1px solid rgba(56,66,78,.08) !important;
}


/* ============================================================
   MDW Header Test v6
   Front header cleanup:
   - Logo/name moved into the upper header row.
   - Login/cart/search moved to the right.
   - Separate large logo row removed.
   - Menu bar stays clean/white.
   - Marble background can show behind the top header.
   ============================================================ */
.mdw-topbar,
.mdw-logo-row,
.logo_cont.mdw-logo-row,
.logo_row{
  display:none !important;
}

.mdw-headtop{
  background:rgba(255,255,255,.72) !important;
  border-bottom:1px solid rgba(56,66,78,.10) !important;
  backdrop-filter:blur(8px);
  box-shadow:0 8px 24px rgba(24,34,45,.045);
}

.mdw-headtop-inner{
  min-height:86px;
  display:grid;
  grid-template-columns:minmax(250px,1fr) minmax(260px,.9fr) minmax(330px,1fr);
  align-items:center;
  gap:18px;
}

.mdw-brand-main a{
  display:inline-flex !important;
  align-items:center;
  gap:12px;
  padding:0 !important;
  color:var(--mdw-navy) !important;
  text-decoration:none !important;
}

.mdw-brand-main .mdw-logo-img{
  width:56px !important;
  height:56px !important;
  object-fit:contain;
  filter:drop-shadow(0 4px 8px rgba(24,34,45,.15));
}

.mdw-brand-main .mdw-brand-text{
  font-size:23px !important;
  color:var(--mdw-navy) !important;
  text-shadow:none !important;
  font-weight:900 !important;
  line-height:1.05;
  white-space:nowrap;
}

.mdw-headtagline{
  text-align:center;
  color:#77591e;
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  line-height:1.35;
  text-transform:none;
}

.mdw-head-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  min-width:0;
}

/* Keep ECT mini login/cart compact in the new header. */
.mdw-head-actions .mdw-login-mini,
.mdw-head-actions .mdw-cart-mini{
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  min-width:0;
}

.mdw-head-actions .mdw-cart-mini:empty{
  display:none !important;
}

/* Search in header should be compact and not stretch the whole row. */
.mdw-head-actions .mdw-searchbox{
  float:none !important;
  min-width:118px !important;
  width:118px !important;
  height:38px !important;
  overflow:visible;
}

.mdw-head-actions .mdw-searchbox.searchbox-open{
  width:280px !important;
}

.mdw-head-actions .searchbox-icon,
.mdw-head-actions .searchbox-submit{
  width:118px !important;
  height:36px !important;
  line-height:36px !important;
  border-radius:9px !important;
}

.mdw-head-actions .searchbox-input{
  height:36px !important;
  border-radius:9px !important;
  padding-right:122px !important;
}

/* Menu remains its own clean white bar. */
.mdw-nav{
  background:rgba(255,255,255,.90) !important;
  border-top:0 !important;
  border-bottom:1px solid rgba(56,66,78,.13) !important;
  box-shadow:0 5px 18px rgba(24,34,45,.04) !important;
}

nav.ectmegamenu>ul>li>a{
  padding-top:13px !important;
  padding-bottom:13px !important;
}

/* Remove old top-row spacing assumptions on mobile. */
@media(max-width:1050px){
  .mdw-headtop-inner{
    grid-template-columns:1fr;
    gap:10px;
    padding-top:14px;
    padding-bottom:14px;
    text-align:center;
  }

  .mdw-brand-main a,
  .mdw-head-actions{
    justify-content:center;
  }

  .mdw-head-actions{
    flex-wrap:wrap;
  }
}

@media(max-width:520px){
  .mdw-brand-main .mdw-logo-img{
    width:46px !important;
    height:46px !important;
  }
  .mdw-brand-main .mdw-brand-text{
    font-size:20px !important;
  }
  .mdw-headtagline{
    font-size:11px;
  }
}


/* ============================================================
   MDW Header Test v7
   Header polish:
   - Upper logo/action row is transparent over the marble.
   - Menu remains a clean light bar.
   - Action area spacing adjusted so login/cart/search do not crowd.
   ============================================================ */
.mdw-headtop{
  background:rgba(255,255,255,.30) !important;
  border-bottom:0 !important;
  box-shadow:none !important;
  backdrop-filter:blur(3px);
}

.mdw-headtop-inner{
  min-height:78px !important;
  grid-template-columns:minmax(260px,1fr) minmax(300px,.95fr) minmax(420px,1.1fr) !important;
  gap:24px !important;
}

.mdw-brand-main .mdw-logo-img{
  width:52px !important;
  height:52px !important;
}

.mdw-brand-main .mdw-brand-text{
  font-size:23px !important;
}

.mdw-headtagline{
  color:#74581f !important;
  background:rgba(255,255,255,.28);
  border-radius:999px;
  padding:4px 12px;
  justify-self:center;
}

.mdw-head-actions{
  gap:14px !important;
  align-items:center !important;
}

.mdw-head-actions .mdw-login-mini{
  white-space:nowrap;
}

.mdw-head-actions .mdw-cart-mini{
  white-space:nowrap;
}

/* Let cart sit below/right only if ECT injects it awkwardly; keep it compact. */
.mdw-head-actions .mdw-cart-mini,
.mdw-head-actions .mdw-cart-mini *{
  max-height:38px;
}

/* Search gets a little more room in the action row. */
.mdw-head-actions .mdw-searchbox{
  width:150px !important;
  min-width:150px !important;
}

.mdw-head-actions .mdw-searchbox.searchbox-open{
  width:300px !important;
}

.mdw-head-actions .searchbox-icon,
.mdw-head-actions .searchbox-submit{
  width:150px !important;
}

.mdw-head-actions .searchbox-input{
  padding-right:154px !important;
}

/* Keep menu clean, slightly warmer white but not marble patterned. */
.mdw-nav{
  background:rgba(255,255,255,.88) !important;
  backdrop-filter:blur(8px);
  border-top:1px solid rgba(56,66,78,.08) !important;
  border-bottom:1px solid rgba(56,66,78,.14) !important;
  box-shadow:0 6px 18px rgba(24,34,45,.045) !important;
}

@media(max-width:1160px){
  .mdw-headtop-inner{
    grid-template-columns:1fr !important;
    gap:10px !important;
    padding-top:14px;
    padding-bottom:14px;
  }
  .mdw-brand-main a,
  .mdw-head-actions{
    justify-content:center !important;
  }
  .mdw-head-actions{
    flex-wrap:wrap;
  }
}


/* ============================================================
   MDW Header Test v8
   Action-area cleanup:
   - Login/cart live together in a small top row.
   - Search sits below/right with enough room.
   - Prevents ECT mini cart/login from overlapping the search.
   ============================================================ */
.mdw-headtop-inner{
  grid-template-columns:minmax(270px,1fr) minmax(290px,.9fr) minmax(390px,1fr) !important;
  min-height:82px !important;
}

.mdw-head-actions{
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-end !important;
  justify-content:center !important;
  gap:7px !important;
  min-width:390px;
}

.mdw-mini-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  min-height:24px;
  line-height:1.1;
  white-space:nowrap;
}

.mdw-mini-actions .mdw-login-mini,
.mdw-mini-actions .mdw-cart-mini{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  position:static !important;
  float:none !important;
  min-width:0;
  max-height:32px;
}

/* Keep ECT-generated mini text/buttons compact. */
.mdw-mini-actions .mdw-login-mini *,
.mdw-mini-actions .mdw-cart-mini *{
  line-height:1.1 !important;
}

.mdw-mini-actions .mdw-cart-mini:empty{
  display:none !important;
}

.mdw-head-actions .mdw-searchbox{
  float:none !important;
  clear:none !important;
  position:relative !important;
  width:150px !important;
  min-width:150px !important;
  height:36px !important;
  margin:0 !important;
  overflow:hidden !important;
}

.mdw-head-actions .mdw-searchbox.searchbox-open{
  width:300px !important;
}

.mdw-head-actions .searchbox-icon,
.mdw-head-actions .searchbox-submit{
  width:150px !important;
  height:36px !important;
  line-height:36px !important;
  border-radius:9px !important;
}

.mdw-head-actions .searchbox-input{
  height:36px !important;
  border-radius:9px !important;
  padding-right:154px !important;
}

/* The old cart strip from ECT sometimes adds a background; soften it in this header. */
.mdw-head-actions .mdw-cart-mini .ectdp_minicartopen,
.mdw-head-actions .mdw-cart-mini .ectdp_minicartmainwrapper,
.mdw-head-actions .mdw-cart-mini .ectdp_minicartcontainer{
  background:rgba(212,160,74,.30) !important;
  border-radius:3px !important;
  margin:0 !important;
}

/* Keep the center tagline from fighting with the right side. */
.mdw-headtagline{
  max-width:300px;
  justify-self:center;
}

/* Medium screens: stack cleanly instead of crowding. */
@media(max-width:1220px){
  .mdw-headtop-inner{
    grid-template-columns:1fr !important;
    min-height:auto !important;
    padding-top:12px;
    padding-bottom:12px;
  }

  .mdw-head-actions{
    align-items:center !important;
    min-width:0;
  }

  .mdw-mini-actions{
    justify-content:center;
    flex-wrap:wrap;
  }
}


/* ============================================================
   MDW Header Test v9
   Remove header mini cart:
   - The ECT mini "View Cart" block was crowding the header and
     linking poorly on test subfolders.
   - Keep the normal CART item in the main menu.
   ============================================================ */
.mdw-head-actions{
  min-width:310px !important;
  gap:8px !important;
}

.mdw-mini-actions{
  justify-content:flex-end !important;
}

.mdw-head-actions .mdw-cart-mini{
  display:none !important;
}

.mdw-head-actions .mdw-searchbox{
  margin-top:2px !important;
}

/* With cart removed, give login/search cleaner alignment. */
@media(min-width:1221px){
  .mdw-head-actions{
    align-items:flex-end !important;
  }
}


/* ============================================================
   MDW Header Test v10
   Header simplification:
   - Removed upper quick-search box.
   - Kept Search in the main menu.
   - Tagline stays on one line when space allows.
   - Right side now only handles login.
   ============================================================ */
.mdw-headtop-inner{
  grid-template-columns:minmax(300px,1fr) minmax(470px,1.1fr) minmax(210px,1fr) !important;
  min-height:76px !important;
  gap:22px !important;
}

.mdw-headtagline{
  max-width:none !important;
  white-space:nowrap !important;
  font-size:13px !important;
  letter-spacing:.075em !important;
  padding:5px 16px !important;
  line-height:1.15 !important;
}

.mdw-head-actions{
  min-width:0 !important;
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:10px !important;
}

.mdw-mini-actions{
  display:flex !important;
  justify-content:flex-end !important;
  align-items:center !important;
  gap:10px !important;
  white-space:nowrap !important;
}

.mdw-head-actions .mdw-searchbox{
  display:none !important;
}

/* Keep login from crowding the top edge. */
.mdw-login-mini{
  line-height:1.1 !important;
}

/* Medium screens: stack gracefully and allow tagline to wrap only when needed. */
@media(max-width:1160px){
  .mdw-headtop-inner{
    grid-template-columns:1fr !important;
    gap:8px !important;
    padding-top:12px !important;
    padding-bottom:12px !important;
  }

  .mdw-headtagline{
    white-space:normal !important;
    justify-self:center !important;
    text-align:center !important;
  }

  .mdw-head-actions,
  .mdw-mini-actions{
    justify-content:center !important;
  }
}


/* ============================================================
   MDW Header/Layout Test v11
   - Uses supplied marble background image.
   - Uses supplied MDW logo image in the header.
   - Widens desktop content so ECT pages do not feel squeezed.
   ============================================================ */

/* Header logo image / wordmark */
.mdw-brand-main a{
  gap:0 !important;
}
.mdw-logo-wordmark{
  display:block;
  width:250px;
  max-width:100%;
  height:auto;
  object-fit:contain;
  filter:drop-shadow(0 3px 8px rgba(24,34,45,.12));
}
.mdw-brand-main .mdw-logo-img,
.mdw-brand-main .mdw-brand-text{
  display:none !important;
}

/* Wider desktop site frame */
.mdw-main > .container,
.mdw-site .midWrapper.mdw-main > .container,
.mdw-hero .container,
.mdw-inner-title .container,
.mdw-logo-row .container,
.mdw-topbar .container,
.mdw-headtop .container,
.mdw-footer .container{
  width:min(94%, 1460px) !important;
  max-width:1460px !important;
}

/* Header columns adjusted for real logo image */
.mdw-headtop-inner{
  grid-template-columns:minmax(280px,1.1fr) minmax(470px,1fr) minmax(210px,.8fr) !important;
}

/* Give inner ECT layouts more practical room */
@media screen and (min-width: 1000px) {
  .mdw-main .col-9 {
    width:76% !important;
  }
  .mdw-main .col-3 {
    width:24% !important;
  }
}

/* Right sidebar should not feel too skinny */
.mdw-sidebar{
  min-width:220px;
  padding-left:24px !important;
  padding-right:24px !important;
}

.mdw-sidebar-box,
.mdw-sidebar .mdw-sidebar-box{
  padding-left:18px !important;
  padding-right:18px !important;
}

/* Main content panel can use the wider layout */
.mdw-content-shell,
.mdw-panel{
  padding-left:34px !important;
  padding-right:34px !important;
}

/* Product/category pages: let two-column cards breathe better */
@media screen and (min-width: 64em) {
  .mdw-content-shell div.categories > div.category,
  .mdw-content-shell div.products > div.product,
  .mdw-content-shell div.csproducts > div.csproduct {
    flex:0 0 48.5% !important;
    max-width:48.5% !important;
    width:48.5% !important;
  }
}

/* The single-product listing page still needs more image visibility later,
   but don't let images get tiny because of older overrides. */
.mdw-content-shell div.prodimage,
.mdw-content-shell div.csprodimage,
.mdw-panel div.prodimage,
.mdw-panel div.csprodimage{
  min-width:190px !important;
}

.mdw-content-shell img.prodimage,
.mdw-content-shell img.csprodimage,
.mdw-content-shell img.allprodimages,
.mdw-panel img.prodimage,
.mdw-panel img.csprodimage,
.mdw-panel img.allprodimages{
  max-width:210px !important;
  height:auto !important;
}

/* Keep the gold buttons from overpowering wider cards */
.mdw-content-shell div.detaillink input,
.mdw-content-shell div.qbuybutton input,
.mdw-content-shell div.addtocart input,
.mdw-content-shell div.csdetaillink input,
.mdw-content-shell div.csqbuybutton input,
.mdw-content-shell div.csaddtocart input {
  max-width:260px !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

/* Mobile */
@media(max-width:1160px){
  .mdw-logo-wordmark{
    width:240px;
    margin-left:auto;
    margin-right:auto;
  }
}
@media(max-width:900px){
  .mdw-main > .container,
  .mdw-site .midWrapper.mdw-main > .container,
  .mdw-hero .container,
  .mdw-inner-title .container,
  .mdw-logo-row .container,
  .mdw-topbar .container,
  .mdw-headtop .container,
  .mdw-footer .container{
    width:94% !important;
  }
  .mdw-content-shell,
  .mdw-panel{
    padding-left:20px !important;
    padding-right:20px !important;
  }
}


/* ============================================================
   MDW Header/Product Image Test v12
   - Restores header to small logo mark + typed Murdock DevWorks.
   - Makes ECT product/detail images larger without editing ECT core.
   ============================================================ */

/* Undo v11 wordmark-only header behavior */
.mdw-logo-wordmark{
  display:none !important;
}
.mdw-brand-main a{
  display:inline-flex !important;
  align-items:center !important;
  gap:12px !important;
}
.mdw-brand-main .mdw-logo-img{
  display:block !important;
  width:58px !important;
  height:58px !important;
  object-fit:contain !important;
  filter:drop-shadow(0 3px 8px rgba(24,34,45,.13));
}
.mdw-brand-main .mdw-brand-text{
  display:inline-block !important;
  color:var(--mdw-navy) !important;
  text-shadow:none !important;
  font-size:23px !important;
  font-weight:900 !important;
  line-height:1.05 !important;
  white-space:nowrap !important;
}

/* Product listing image balance */
.mdw-content-shell div.prodimage,
.mdw-content-shell div.csprodimage,
.mdw-panel div.prodimage,
.mdw-panel div.csprodimage,
.mdw-content-shell td.prodimage,
.mdw-panel td.prodimage{
  min-width:240px !important;
  width:240px !important;
  max-width:260px !important;
  text-align:center !important;
  vertical-align:top !important;
}

.mdw-content-shell img.prodimage,
.mdw-content-shell img.csprodimage,
.mdw-content-shell img.allprodimages,
.mdw-panel img.prodimage,
.mdw-panel img.csprodimage,
.mdw-panel img.allprodimages,
.mdw-content-shell td.prodimage img,
.mdw-panel td.prodimage img{
  max-width:230px !important;
  width:auto !important;
  height:auto !important;
}

/* Detail page: give product image side real space */
.mdw-content-shell div.detailimage{
  width:43% !important;
  min-width:320px !important;
  text-align:center !important;
  padding:12px !important;
  box-sizing:border-box !important;
}

.mdw-content-shell div.detailimage img,
.mdw-content-shell div.detailimage img.detailimage,
.mdw-content-shell div.detailimage img.allprodimages{
  max-width:360px !important;
  width:100% !important;
  height:auto !important;
}

/* Keep detail text beside it at reasonable width */
.mdw-content-shell div.detailname,
.mdw-content-shell div.detailshortdescription,
.mdw-content-shell div.detaillistprice,
.mdw-content-shell div.detailprice,
.mdw-content-shell div.detailid,
.mdw-content-shell div.detailsku,
.mdw-content-shell div.detaildateadded,
.mdw-content-shell div.detailmanufacturer,
.mdw-content-shell div.detailquantity,
.mdw-content-shell div.detailaddtocart{
  width:52% !important;
  max-width:52% !important;
  box-sizing:border-box !important;
}

/* Product action buttons should not visually overpower the image */
.mdw-content-shell div.detaillink input,
.mdw-content-shell div.qbuybutton input,
.mdw-content-shell div.addtocart input,
.mdw-content-shell div.csdetaillink input,
.mdw-content-shell div.csqbuybutton input,
.mdw-content-shell div.csaddtocart input,
.mdw-content-shell button.detaillink,
.mdw-content-shell button.qbuybutton,
.mdw-content-shell input.detaillink,
.mdw-content-shell input.qbuybutton{
  max-width:220px !important;
  min-height:38px !important;
  padding-top:9px !important;
  padding-bottom:9px !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

/* Add-to-cart on detail page can stay wider, but not huge */
.mdw-content-shell div.detailaddtocart input,
.mdw-content-shell input.addtocart,
.mdw-content-shell button.addtocart{
  max-width:420px !important;
}

/* Prev/next image buttons remain compact */
.mdw-content-shell div.prodimage input.ectbutton,
.mdw-content-shell div.prodimage input.previmg,
.mdw-content-shell div.prodimage input.nextimg,
.mdw-content-shell div.csprodimage input.ectbutton,
.mdw-content-shell div.csprodimage input.previmg,
.mdw-content-shell div.csprodimage input.nextimg,
.mdw-content-shell td.prodimage input.ectbutton,
.mdw-content-shell td.prodimage input.previmg,
.mdw-content-shell td.prodimage input.nextimg,
.mdw-content-shell div.detailimage input.ectbutton,
.mdw-content-shell div.detailimage input.previmg,
.mdw-content-shell div.detailimage input.nextimg{
  width:auto !important;
  min-width:54px !important;
  max-width:76px !important;
  padding:7px 10px !important;
  font-size:12px !important;
}

/* Mobile reset */
@media(max-width:900px){
  .mdw-content-shell div.detailimage,
  .mdw-content-shell div.detailname,
  .mdw-content-shell div.detailshortdescription,
  .mdw-content-shell div.detaillistprice,
  .mdw-content-shell div.detailprice,
  .mdw-content-shell div.detailid,
  .mdw-content-shell div.detailsku,
  .mdw-content-shell div.detaildateadded,
  .mdw-content-shell div.detailmanufacturer,
  .mdw-content-shell div.detailquantity,
  .mdw-content-shell div.detailaddtocart{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    float:none !important;
  }
  .mdw-content-shell div.detailimage img{
    max-width:320px !important;
  }
}


/* ============================================================
   MDW Header Final v13
   Based on restored live v12.
   Narrow change only:
   - use new shadow/depth MDW image mark
   - keep Murdock DevWorks as live text
   - keep existing marble/menu/product sizing
   ============================================================ */
.mdw-brand-main .mdw-logo-img{
  display:block !important;
  width:76px !important;
  height:44px !important;
  object-fit:contain !important;
  filter:drop-shadow(0 4px 7px rgba(16,36,60,.17)) !important;
}
.mdw-brand-main .mdw-brand-text{
  display:inline-block !important;
  color:var(--mdw-navy) !important;
  text-shadow:none !important;
  font-size:23px !important;
  font-weight:900 !important;
  line-height:1.05 !important;
  white-space:nowrap !important;
}
.mdw-brand-main a{
  gap:11px !important;
}
@media(max-width:900px){
  .mdw-brand-main .mdw-logo-img{
    width:70px !important;
    height:40px !important;
  }
  .mdw-brand-main .mdw-brand-text{
    font-size:21px !important;
  }
}


/* ============================================================
   MDW Header Final v14
   - Corrected logo PNG color/alpha export.
   - Removed divider line under inner page headers before ECT content.
   ============================================================ */

/* Use the corrected colored MDW mark. */
.mdw-brand-main .mdw-logo-img{
  width:76px !important;
  height:44px !important;
  object-fit:contain !important;
  filter:drop-shadow(0 4px 7px rgba(16,36,60,.18)) !important;
}

/* Remove the horizontal line under Products/Categories/Downloads page headers. */
.mdw-inner-title{
  border-bottom:0 !important;
  box-shadow:none !important;
}

/* Keep spacing clean after removing the divider. */
.mdw-inner-title + .midWrapper,
.mdw-inner-title + .mdw-main{
  border-top:0 !important;
}

/* If ECT/template wrappers add the same divider, suppress it in this theme. */
.midWrapper.mdw-main{
  border-top:0 !important;
}

@media(max-width:900px){
  .mdw-brand-main .mdw-logo-img{
    width:70px !important;
    height:40px !important;
  }
}


/* ============================================================
   MDW Product Display Final v15
   Software products need wide screenshots, not tiny square-item
   previews. This keeps the current theme/header and improves
   catalog product selling cards.
   ============================================================ */

/* Product/listing cards: make room for wide screenshots */
.mdw-content-shell div.product,
.mdw-content-shell div.csproduct,
.mdw-panel div.product,
.mdw-panel div.csproduct{
  width:100% !important;
  max-width:620px !important;
  min-height:260px !important;
  padding:16px !important;
  box-sizing:border-box !important;
  display:grid !important;
  grid-template-columns:320px minmax(210px, 1fr) !important;
  gap:18px !important;
  align-items:center !important;
}

/* Center product cards nicely in the wide white content panel */
.mdw-content-shell div.products,
.mdw-content-shell div.csproducts,
.mdw-panel div.products,
.mdw-panel div.csproducts{
  display:flex !important;
  flex-wrap:wrap !important;
  justify-content:flex-start !important;
  gap:22px !important;
}

/* ECT image containers */
.mdw-content-shell div.prodimage,
.mdw-content-shell div.csprodimage,
.mdw-panel div.prodimage,
.mdw-panel div.csprodimage,
.mdw-content-shell td.prodimage,
.mdw-panel td.prodimage{
  width:320px !important;
  min-width:320px !important;
  max-width:320px !important;
  text-align:center !important;
  vertical-align:middle !important;
  grid-row:1 / span 6 !important;
}

/* Let rectangular software screenshots be visible. */
.mdw-content-shell img.prodimage,
.mdw-content-shell img.csprodimage,
.mdw-content-shell img.allprodimages,
.mdw-panel img.prodimage,
.mdw-panel img.csprodimage,
.mdw-panel img.allprodimages,
.mdw-content-shell td.prodimage img,
.mdw-panel td.prodimage img{
  max-width:300px !important;
  width:300px !important;
  height:auto !important;
  object-fit:contain !important;
  border-radius:6px !important;
}

/* Make product name/price/buttons align like a software card */
.mdw-content-shell div.prodname,
.mdw-content-shell div.csprodname,
.mdw-panel div.prodname,
.mdw-panel div.csprodname,
.mdw-content-shell .prodname,
.mdw-panel .prodname{
  text-align:left !important;
  font-size:18px !important;
  line-height:1.2 !important;
  margin-bottom:7px !important;
}

.mdw-content-shell div.prodprice,
.mdw-content-shell div.csprodprice,
.mdw-panel div.prodprice,
.mdw-panel div.csprodprice,
.mdw-content-shell .prodprice,
.mdw-panel .prodprice{
  text-align:left !important;
  font-size:16px !important;
  margin:4px 0 8px !important;
}

/* Product buttons should be strong but not larger than the product image. */
.mdw-content-shell button.detaillink,
.mdw-content-shell button.qbuybutton,
.mdw-content-shell input.detaillink,
.mdw-content-shell input.qbuybutton,
.mdw-panel button.detaillink,
.mdw-panel button.qbuybutton,
.mdw-panel input.detaillink,
.mdw-panel input.qbuybutton{
  width:100% !important;
  max-width:250px !important;
  min-height:38px !important;
  margin:5px 0 !important;
  display:block !important;
}

/* If ECT uses carousel prev/next under the image, keep it close and compact. */
.mdw-content-shell .ectmultiimage,
.mdw-panel .ectmultiimage,
.mdw-content-shell .ectimagebuttons,
.mdw-panel .ectimagebuttons{
  text-align:center !important;
  max-width:300px !important;
}

/* Product detail page: make the main screenshot a true selling preview. */
.mdw-content-shell div.detailimage{
  width:46% !important;
  min-width:380px !important;
  text-align:center !important;
  padding:16px !important;
  box-sizing:border-box !important;
}

.mdw-content-shell div.detailimage img,
.mdw-content-shell div.detailimage img.detailimage,
.mdw-content-shell div.detailimage img.allprodimages{
  max-width:520px !important;
  width:100% !important;
  height:auto !important;
  border-radius:8px !important;
}

/* Mobile: stack screenshot above product info. */
@media(max-width:900px){
  .mdw-content-shell div.product,
  .mdw-content-shell div.csproduct,
  .mdw-panel div.product,
  .mdw-panel div.csproduct{
    max-width:100% !important;
    grid-template-columns:1fr !important;
    min-height:0 !important;
  }

  .mdw-content-shell div.prodimage,
  .mdw-content-shell div.csprodimage,
  .mdw-panel div.prodimage,
  .mdw-panel div.csprodimage,
  .mdw-content-shell td.prodimage,
  .mdw-panel td.prodimage{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    grid-row:auto !important;
  }

  .mdw-content-shell img.prodimage,
  .mdw-content-shell img.csprodimage,
  .mdw-content-shell img.allprodimages,
  .mdw-panel img.prodimage,
  .mdw-panel img.csprodimage,
  .mdw-panel img.allprodimages,
  .mdw-content-shell td.prodimage img,
  .mdw-panel td.prodimage img{
    max-width:100% !important;
    width:100% !important;
  }

  .mdw-content-shell div.detailimage{
    width:100% !important;
    min-width:0 !important;
  }
}


/* ============================================================
   MDW Product Display Final v16
   Restores a more compact ECT-style product listing while making
   software screenshots more useful. Goal: more products visible
   per screen, image fills its preview area better.
   ============================================================ */

/* Undo the v15 wide two-column grid cards. */
.mdw-content-shell div.product,
.mdw-content-shell div.csproduct,
.mdw-panel div.product,
.mdw-panel div.csproduct{
  display:block !important;
  width:360px !important;
  max-width:360px !important;
  min-height:0 !important;
  padding:14px !important;
  box-sizing:border-box !important;
  text-align:center !important;
}

/* Let multiple products fit across the content area. */
.mdw-content-shell div.products,
.mdw-content-shell div.csproducts,
.mdw-panel div.products,
.mdw-panel div.csproducts{
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:flex-start !important;
  justify-content:flex-start !important;
  gap:18px !important;
}

/* Product image area: compact, but wide enough for software screenshots. */
.mdw-content-shell div.prodimage,
.mdw-content-shell div.csprodimage,
.mdw-panel div.prodimage,
.mdw-panel div.csprodimage,
.mdw-content-shell td.prodimage,
.mdw-panel td.prodimage{
  display:block !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  margin:0 auto 10px !important;
  padding:0 !important;
  text-align:center !important;
  vertical-align:top !important;
  background:transparent !important;
}

/* Image should fill most of the preview box instead of floating tiny inside it. */
.mdw-content-shell img.prodimage,
.mdw-content-shell img.csprodimage,
.mdw-content-shell img.allprodimages,
.mdw-panel img.prodimage,
.mdw-panel img.csprodimage,
.mdw-panel img.allprodimages,
.mdw-content-shell td.prodimage img,
.mdw-panel td.prodimage img{
  display:block !important;
  width:100% !important;
  max-width:320px !important;
  height:auto !important;
  max-height:185px !important;
  object-fit:contain !important;
  margin:0 auto !important;
  border-radius:7px !important;
}

/* Keep multi-image prev/next compact and near the image. */
.mdw-content-shell .ectmultiimage,
.mdw-panel .ectmultiimage,
.mdw-content-shell .ectimagebuttons,
.mdw-panel .ectimagebuttons{
  max-width:320px !important;
  margin:5px auto 8px !important;
  text-align:center !important;
}

/* Product text below image, compact enough for more products on screen. */
.mdw-content-shell div.prodname,
.mdw-content-shell div.csprodname,
.mdw-panel div.prodname,
.mdw-panel div.csprodname,
.mdw-content-shell .prodname,
.mdw-panel .prodname{
  text-align:center !important;
  font-size:17px !important;
  line-height:1.15 !important;
  margin:8px 0 5px !important;
}

.mdw-content-shell div.prodprice,
.mdw-content-shell div.csprodprice,
.mdw-panel div.prodprice,
.mdw-panel div.csprodprice,
.mdw-content-shell .prodprice,
.mdw-panel .prodprice{
  text-align:center !important;
  font-size:15px !important;
  margin:3px 0 7px !important;
}

/* Product buttons: full card width, but shorter. */
.mdw-content-shell button.detaillink,
.mdw-content-shell button.qbuybutton,
.mdw-content-shell input.detaillink,
.mdw-content-shell input.qbuybutton,
.mdw-panel button.detaillink,
.mdw-panel button.qbuybutton,
.mdw-panel input.detaillink,
.mdw-panel input.qbuybutton{
  width:100% !important;
  max-width:260px !important;
  min-height:34px !important;
  margin:5px auto !important;
  display:block !important;
}

/* Make the card itself look less like a gray empty box. */
.mdw-content-shell div.product,
.mdw-content-shell div.csproduct,
.mdw-panel div.product,
.mdw-panel div.csproduct{
  background:rgba(255,255,255,.70) !important;
  border:1px solid rgba(56,66,78,.14) !important;
  box-shadow:0 8px 22px rgba(24,34,45,.055) !important;
}

/* Sidebar contrast/padding: a little clearer and shorter without changing layout. */
.mdw-sidebar{
  background:rgba(255,255,255,.84) !important;
  border:1px solid rgba(31,48,68,.16) !important;
  box-shadow:0 10px 28px rgba(24,34,45,.07) !important;
  padding:18px !important;
}
.mdw-sidebar .sidebox,
.mdw-sidebar .ectsidebox,
.mdw-sidebar .sideBox{
  padding:14px !important;
  margin-bottom:14px !important;
  border-color:rgba(31,48,68,.16) !important;
}

/* Mobile: product card fills available width. */
@media(max-width:900px){
  .mdw-content-shell div.product,
  .mdw-content-shell div.csproduct,
  .mdw-panel div.product,
  .mdw-panel div.csproduct{
    width:100% !important;
    max-width:100% !important;
  }

  .mdw-content-shell img.prodimage,
  .mdw-content-shell img.csprodimage,
  .mdw-content-shell img.allprodimages,
  .mdw-panel img.prodimage,
  .mdw-panel img.csprodimage,
  .mdw-panel img.allprodimages,
  .mdw-content-shell td.prodimage img,
  .mdw-panel td.prodimage img{
    max-width:100% !important;
    max-height:none !important;
  }
}


/* ============================================================
   MDW Footer + CMS Page Regions v17
   ============================================================ */
html, body{
  min-height:100%;
}
.mdw-site{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}
.mdw-site .midWrapper.mdw-main{
  flex:1 0 auto;
}
.mdw-footer{
  flex:0 0 auto;
  position:relative !important;
  left:auto !important;
  right:auto !important;
  bottom:auto !important;
  width:100% !important;
  margin-top:28px;
  padding:28px 0 18px;
  background:linear-gradient(135deg,rgba(12,31,51,.96),rgba(19,48,78,.96)) !important;
  border-top:1px solid rgba(255,255,255,.18) !important;
  color:#d8e6f2 !important;
  box-shadow:0 -12px 34px rgba(11,24,40,.10);
}
.mdw-footer-grid{
  display:grid;
  grid-template-columns:1.35fr repeat(4,1fr);
  gap:26px;
  align-items:start;
}
.mdw-footer h3{
  margin:0 0 10px !important;
  padding:0 !important;
  color:#fff !important;
  font-size:18px !important;
  line-height:1.2;
}
.mdw-footer p{
  color:#d8e6f2 !important;
  margin:0 0 12px !important;
  padding:0 !important;
  line-height:1.55;
}
.mdw-footer ul{
  list-style:none !important;
  margin:0 !important;
  padding:0 !important;
}
.mdw-footer li{
  margin:0 0 7px !important;
  padding:0 !important;
}
.mdw-footer a{
  color:#f2d18b !important;
  text-decoration:none !important;
  font-weight:700;
}
.mdw-footer a:hover{
  color:#fff !important;
  text-decoration:underline !important;
}
.mdw-footer .mdw-button.ghost{
  display:inline-block !important;
  color:#f2d18b !important;
  border-color:rgba(242,209,139,.55) !important;
  background:rgba(255,255,255,.04) !important;
}
.mdw-footer .copyright_text{
  border-top:1px solid rgba(255,255,255,.14);
  margin-top:20px;
  padding-top:14px;
  color:#b9c8d6 !important;
  font-size:13px;
}
.mdw-cms-region{
  background:rgba(255,255,255,.86) !important;
  border:1px solid rgba(203,213,225,.95) !important;
  border-radius:18px !important;
  padding:22px 24px !important;
  margin:0 0 26px !important;
  box-shadow:0 14px 34px rgba(15,35,55,.08) !important;
  color:#38516a !important;
  line-height:1.65 !important;
}
.mdw-cms-region:empty{
  display:none;
}
.mdw-cms-region p{
  margin:0 0 .85rem !important;
  color:#38516a !important;
}
.mdw-cms-region p:last-child{
  margin-bottom:0 !important;
}
.mdw-cms-region h1,
.mdw-cms-region h2,
.mdw-cms-region h3{
  margin-top:0 !important;
  color:#0f2742 !important;
}
.mdw-cms-region a{
  color:#0e4a78 !important;
  font-weight:800 !important;
}
.mdw-cms-region ul,
.mdw-cms-region ol{
  margin-top:.5rem !important;
  margin-bottom:.5rem !important;
  padding-left:1.35rem !important;
}
.mdw-sitemap-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}
.mdw-sitemap .mdw-card ul{
  margin:8px 0 0 0 !important;
  padding:0 !important;
  list-style:none !important;
}
.mdw-sitemap .mdw-card li{
  margin:0 0 8px !important;
  padding:0 !important;
}
.mdw-sitemap .mdw-card a{
  color:#0e4a78 !important;
  font-weight:800;
}
@media(max-width:1000px){
  .mdw-footer-grid{grid-template-columns:repeat(2,1fr);}
  .mdw-sitemap-grid{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:640px){
  .mdw-footer-grid,
  .mdw-sitemap-grid{grid-template-columns:1fr;}
  .mdw-footer{padding-bottom:78px;}
}
