.cmec-shell{display:grid;grid-template-columns:320px 1fr;gap:24px;align-items:start}
.cmec-shell-left{position:sticky;top:12px}
.cmec-shell-main{min-width:0}
.cmec-topbar{display:flex;gap:12px;align-items:center;justify-content:space-between;margin:0 0 14px}
.cmec-search{padding:10px 12px;border:1px solid #ddd;border-radius:10px;min-width:260px}
.cmec-count{color:#666;font-size:13px}

.cmec-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
@media (max-width: 1100px){.cmec-shell{grid-template-columns:1fr}.cmec-shell-left{position:static}.cmec-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width: 640px){.cmec-grid{grid-template-columns:1fr}}

.cmec-card{border:1px solid #eee;border-radius:16px;overflow:hidden;background:#fff;box-shadow:0 1px 8px rgba(0,0,0,.04)}
.cmec-card-body{padding:12px 12px 14px}
.cmec-card-imgwrap{display:block;position:relative;background:#fafafa}
.cmec-img{width:100%;height:220px;object-fit:contain;display:block}
.cmec-badge{position:absolute;left:10px;top:10px;background:#111;color:#fff;font-size:12px;padding:4px 8px;border-radius:999px;opacity:.9}
.cmec-badge-inline{background:#111;color:#fff;font-size:12px;padding:4px 8px;border-radius:999px;margin-left:8px}

.cmec-producer{color:#c6005c;font-weight:700;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cmec-title{display:block;color:#111;text-decoration:none;font-weight:700;margin:6px 0 6px;line-height:1.25}
.cmec-title-lg{font-size:24px;font-weight:800;margin:6px 0 10px;line-height:1.15}
.cmec-h2{font-size:18px;font-weight:800;margin:18px 0 10px}

.cmec-meta{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap}
.cmec-price{font-weight:800;color:#c6005c}
.cmec-pack{color:#666;font-size:13px}

.cmec-buyrow{display:flex;gap:6px;margin-top:10px;align-items:center}
.cmec-qty{width:56px;padding:8px;border:1px solid #ddd;border-radius:10px;text-align:center}
.cmec-qtybtn{padding:8px 10px;border:1px solid #ddd;border-radius:10px;background:#fff;cursor:pointer}
.cmec-btn{padding:10px 12px;border:none;border-radius:12px;background:#c6005c;color:#fff;font-weight:800;cursor:pointer}
.cmec-btn-cart{margin-left:auto}
.cmec-btn-light{background:#fff;color:#c6005c;border:1px solid #c6005c}
.cmec-link{margin-top:8px;background:none;border:none;color:#333;text-decoration:underline;cursor:pointer;padding:0}
.cmec-linkbtn{background:none;border:none;color:#333;text-decoration:underline;cursor:pointer;padding:0}

.cmec-loginhint{margin-top:10px;font-size:13px}
.cmec-loginhint a{color:#c6005c;font-weight:800;text-decoration:none}

.cmec-filters{border:1px solid #eee;border-radius:16px;padding:14px;background:#fff;box-shadow:0 1px 10px rgba(0,0,0,.04)}
.cmec-filters-title{font-weight:900;margin-bottom:10px}
.cmec-field{display:flex;flex-direction:column;gap:6px;margin-bottom:10px;font-size:13px}
.cmec-field input,.cmec-field select{padding:10px;border:1px solid #ddd;border-radius:12px}
.cmec-field-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.cmec-field-inline{flex-direction:row;align-items:center}
.cmec-hint{margin-top:12px;color:#666;font-size:12px}

.cmec-sentinel{height:1px}
.cmec-loading{padding:14px;color:#666}

.cmec-modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;z-index:9999}
.cmec-modal{position:fixed;inset:0;background:rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;padding:24px;z-index:99999;}
.cmec-modal-x{position:absolute;right:10px;top:10px;border:none;background:#111;color:#fff;border-radius:999px;width:34px;height:34px;cursor:pointer}
.cmec-modal-grid{display:grid;grid-template-columns:420px 1fr;gap:18px}
@media (max-width:1100px){.cmec-modal-grid{grid-template-columns:1fr}}
.cmec-modal-img{width:100%;height:360px;object-fit:contain;background:#fafafa;border-radius:14px}
.cmec-thumbs{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.cmec-thumb{width:60px;height:60px;object-fit:cover;border-radius:10px;border:1px solid #eee;cursor:pointer}
.cmec-desc{margin:10px 0;color:#333;line-height:1.4}
.cmec-kv{margin:8px 0;color:#333;font-size:14px}

.cmec-menu{display:grid;grid-template-columns:260px 1fr;gap:12px;border:1px solid #eee;border-radius:16px;background:#fff;box-shadow:0 1px 10px rgba(0,0,0,.04);overflow:hidden}
.cmec-menu-col{padding:12px}
.cmec-menu-col-wide{background:#fafafa}
.cmec-menu-title{font-weight:900;margin-bottom:10px}
.cmec-menu-list{display:flex;flex-direction:column;gap:6px}
.cmec-menu-item{background:#fff;border:1px solid #eee;border-radius:12px;padding:10px;text-align:left;cursor:pointer}
.cmec-menu-item:hover{border-color:#c6005c}
.cmec-menu-grid{display:grid;grid-template-columns:repeat(3, minmax(0,1fr));gap:10px}
@media (max-width:1100px){.cmec-menu{grid-template-columns:1fr}.cmec-menu-grid{grid-template-columns:repeat(2,1fr)}}
.cmec-menu-link{display:block;background:#fff;border:1px solid #eee;border-radius:12px;padding:10px;color:#111;text-decoration:none}
.cmec-menu-link:hover{border-color:#c6005c}
.cmec-menu-count{color:#666;font-size:12px;margin-left:6px}
.cmec-mt{margin-top:14px}

.cmec-carticon{display:inline-flex;gap:8px;align-items:center;text-decoration:none;color:#111;position:relative}
.cmec-badge{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;border-radius:999px;background:#c6005c;color:#fff;font-weight:900;font-size:12px;padding:0 7px}
.cmec-ic{font-size:18px;margin-right: 20px;}

.cmec-usericon{display:inline-block;position:relative; margin-right: 10px;}
.cmec-useric{text-decoration:none;color:#111;font-size:18px}
.cmec-usermenu{display:none;position:absolute;right:0;top:28px;background:#fff;border:1px solid #eee;border-radius:14px;min-width:240px;box-shadow:0 10px 30px rgba(0,0,0,.12);padding:8px;z-index:999}
.cmec-usericon:hover .cmec-usermenu{display:block}
.cmec-usermenu a,.cmec-usermenu button{display:block;width:100%;text-align:left;padding:10px;border-radius:12px;color:#111;text-decoration:none;border:none;background:none;cursor:pointer}
.cmec-usermenu a:hover,.cmec-usermenu button:hover{background:#fafafa}
.cmec-usermenu-head{padding:10px}
.cmec-usermenu-name{font-weight:900}
.cmec-usermenu-email{color:#666;font-size:12px;margin-top:2px}

.cmec-auth{max-width:420px;margin:0 auto}
.cmec-error{margin-top:10px;color:#b00020}
.cmec-panel{border:1px solid #eee;border-radius:16px;padding:14px;background:#fff;margin:12px 0}
.cmec-account-tabs{display:flex;gap:10px;flex-wrap:wrap}
.cmec-account-tabs a{padding:10px 12px;border:1px solid #eee;border-radius:12px;text-decoration:none;color:#111}
.cmec-account-tabs a.active{border-color:#c6005c;color:#c6005c;font-weight:900}
.cmec-order{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #f1f1f1}
.cmec-row{display:flex;gap:12px;align-items:center;margin:10px 0}
.cmec-addr{border:1px solid #eee;border-radius:14px;padding:12px;margin:10px 0;background:#fff}

.cmec-cartrow{display:grid;grid-template-columns:90px 1fr 220px;gap:14px;align-items:center;border-bottom:1px solid #f1f1f1;padding:12px 0}
@media (max-width:1100px){.cmec-cartrow{grid-template-columns:80px 1fr}.cmec-cartqty{grid-column:1/-1}}
.cmec-cartimg{width:90px;height:80px;object-fit:contain;background:#fafafa;border-radius:12px;border:1px solid #eee}
.cmec-cartqty{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.cmec-cartfooter{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:14px}
.cmec-total{font-size:16px}
.cmec-product-grid{display:grid;grid-template-columns:520px 1fr;gap:18px}
@media (max-width: 1100px){.cmec-product-grid{grid-template-columns:1fr}}
.cmec-product-img{width:100%;height:420px;object-fit:contain;background:#fafafa;border-radius:16px;border:1px solid #eee}
.cmec-chip{border:1px solid #eee;border-radius:999px;padding:8px 10px;background:#fff;cursor:pointer;margin-right:8px;margin-top:8px}
.cmec-producer-hero{display:grid;grid-template-columns:220px 1fr;gap:16px;align-items:start}
@media (max-width:1100px){.cmec-producer-hero{grid-template-columns:1fr}}
.cmec-producer-img{width:220px;height:180px;object-fit:cover;border-radius:16px;border:1px solid #eee;background:#fafafa}

.cmec-brand-hero{border:1px solid #eee;border-radius:18px;padding:18px;background:linear-gradient(135deg,#fff,#fafafa);box-shadow:0 1px 10px rgba(0,0,0,.04);margin-bottom:14px}
.cmec-brand-kicker{font-weight:900;color:#c6005c;letter-spacing:.4px;text-transform:uppercase;font-size:12px}
.cmec-brand-title{margin:6px 0 6px;font-size:28px;line-height:1.1}
.cmec-brand-sub{color:#444;max-width:70ch}
.cmec-preview{margin-top:10px;border-top:1px solid #f1f1f1;padding-top:10px}
.cmec-preview-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
@media (max-width:1100px){.cmec-preview-grid{grid-template-columns:repeat(2,1fr)}}
.cmec-preview-item{display:block;text-decoration:none;color:#111;border:1px solid #eee;border-radius:14px;padding:10px;background:#fff}
.cmec-preview-img{width:100%;height:90px;object-fit:contain;background:#fafafa;border-radius:12px}
.cmec-preview-name{font-weight:800;font-size:12px;margin-top:6px;line-height:1.2;max-height:2.4em;overflow:hidden}
.cmec-preview-price{color:#c6005c;font-weight:900;font-size:12px;margin-top:4px}

.cmec-prerender{max-width:980px;margin:0 auto;padding:14px}
.cmec-prerender h1{font-size:30px;line-height:1.15;margin:10px 0}
.cmec-prerender-desc{margin-top:10px;color:#222}

.cmec-fatal{max-width:920px;margin:14px auto;padding:16px;border:1px solid #ffd2d2;border-radius:16px;background:#fff5f5}
.cmec-fatal-title{font-weight:900;color:#b00020;margin-bottom:6px}
.cmec-fatal-body{color:#333}

.cmec-loading-overlay{
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}
.cmec-loading-spinner{
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 6px solid rgba(0,0,0,0.15);
  border-top-color: rgba(0,0,0,0.65);
  animation: cmec-spin 0.9s linear infinite;
}
@keyframes cmec-spin{
  to { transform: rotate(360deg); }
}

/* Producers: allow top-products panel to expand without clipping */
.cmec-card{ overflow: visible; }
.cmec-card-body{ overflow: visible; }
.cmec-preview{ margin-top: 12px; }
.cmec-preview-grid{ display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.cmec-preview-item{ display:block; text-decoration:none; }
.cmec-preview-img{ width:100%; height:90px; object-fit:cover; border-radius:10px; display:block; }
.cmec-preview-name{ font-size:12px; line-height:1.2; margin-top:6px; }
.cmec-preview-price{ font-size:12px; opacity:.85; margin-top:2px; }

.cmec-card-imgwrap{ position: relative; }
.cmec-weekend-badge{
  position:absolute;
  top:10px;
  right:10px;
  background: rgba(0,0,0,0.75);
  color:#fff;
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  z-index:2;
}

.cmec-acc{border-top:1px solid rgba(0,0,0,0.12);padding-top:10px;margin-top:14px}
.cmec-acc>summary{cursor:pointer;font-weight:700;list-style:none}
.cmec-acc>summary::-webkit-details-marker{display:none}
.cmec-acc>summary::after{content:"▾";float:right;opacity:.7}
.cmec-acc[open]>summary::after{content:"▴"}
.cmec-acc-body{padding:10px 0 4px 0;color:rgba(0,0,0,0.78);white-space:pre-line}

.cmec-subdesc{
  margin-top: 6px;
  margin-bottom: 10px;
  color: rgba(0,0,0,0.68);
  font-size: 14px;
  line-height: 1.35;
}
.cmec-acc-body ul{
  margin: 8px 0 4px 18px;
}
.cmec-acc-body li{
  margin: 4px 0;
}


.cmec-loader{
  position:fixed;
  inset:0;
  background:rgba(255,255,255,.65);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
}
.cmec-loader::after{
  content:'';
  width:40px;
  height:40px;
  border:4px solid #ddd;
  border-top:4px solid #2a7a2a;
  border-radius:50%;
  animation:spin .8s linear infinite;
}
@keyframes spin{
  to{transform:rotate(360deg)}
}

.cmec-card{ background:#fff; border:1px solid rgba(0,0,0,.08); border-radius:12px; padding:16px; }
.cmec-kv{ display:grid; grid-template-columns:160px 1fr; gap:10px 14px; margin-top:12px; }
.cmec-kv .k{ color:rgba(0,0,0,.6); font-weight:600; }
.cmec-kv .v{ font-weight:600; }

.cmec-orders{ display:flex; flex-direction:column; gap:12px; }
.cmec-order-row{
  display:grid;
  grid-template-columns: 1.2fr .6fr .6fr 1.3fr 1fr 56px;
  gap:14px;
  background:#f1bf4b;
  border-radius:2px;
  padding:14px 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  align-items:center;
}
.cmec-order-row .t{ font-weight:800; font-size:14px; }
.cmec-order-row .s{ margin-top:4px; font-weight:600; }
.cmec-order-row .c4,.cmec-order-row .c5{ align-self:stretch; }
.cmec-ship-name{ display:flex; align-items:center; gap:8px; color:#fff; }
.cmec-order-addr-hover{ position:relative; display:inline-flex; align-items:center; }
.cmec-order-addr-icon{ display:inline-flex; align-items:center; justify-content:center; width:16px; height:16px; border-radius:50%; border:2px solid rgba(255,255,255,.95); color:#fff; font-size:10px; line-height:1; font-weight:900; cursor:default; }
.cmec-order-addr-pop{ display:none; position:absolute; left:18px; top:18px; width:220px; background:#fff; color:#222; padding:14px 16px; box-shadow:0 8px 22px rgba(0,0,0,.25); z-index:50; }
.cmec-order-addr-hover:hover .cmec-order-addr-pop{ display:block; }
.cmec-order-addr-pop .lbl{ color:#666; font-weight:500; margin:0 0 2px; }
.cmec-order-addr-pop .val{ font-weight:700; margin:0 0 12px; line-height:1.25; }
.cmec-order-addr-pop .val.accent{ color:#e0a52a; }
.cmec-order-btn{
  width:42px; height:42px; border:0; border-radius:21px;
  cursor:pointer; background: rgba(255,255,255,.25);
  box-shadow:0 2px 6px rgba(0,0,0,.18);
  font-size:18px;
}

.cmec-order-detail{ width:min(1080px, 96vw); padding:0; overflow:hidden; }
.cmec-order-hero{ display:flex; justify-content:space-between; align-items:flex-start; gap:12px; background:#f1bf4b; padding:14px 24px 10px; }
.cmec-order-hero-title{ color:#fff; font-size:18px; font-weight:900; }
.cmec-order-hero-right{ display:flex; align-items:center; gap:12px; }
.cmec-order-badge{ background:#ff5a5a; color:#fff; padding:10px 18px; border-radius:4px; font-weight:900; box-shadow:0 4px 8px rgba(0,0,0,.18); }
.cmec-order-detail .x{ border:0; background:transparent; font-size:18px; cursor:pointer; color:#fff; }
.cmec-order-trans{ background:#f1bf4b; color:#fff; text-align:right; padding:0 24px 18px; font-weight:800; }
.cmec-order-panels{ display:grid; grid-template-columns:1fr 1fr; gap:0; }
.cmec-order-panel{ padding:26px 40px 20px 24px; background:#fff; }
.cmec-order-panel h4{ margin:0 0 32px; color:#f1bf4b; font-size:18px; font-weight:900; }
.cmec-order-addr-block .lbl{ color:#555; margin:0 0 2px; }
.cmec-order-addr-block .val{ margin:0 0 18px; font-weight:700; line-height:1.3; }
.cmec-order-addr-block .val.strong{ font-weight:900; }
.cmec-order-addr-block .val.accent{ color:#e0a52a; text-decoration:underline; }
.cmec-order-products-head{ margin:18px 24px 0; background:#f1bf4b; color:#fff; font-size:18px; font-weight:900; padding:16px 14px; }
.cmec-table{ width:calc(100% - 48px); border-collapse:collapse; margin:0 24px; }
.cmec-table th, .cmec-table td{ border-bottom:1px solid rgba(0,0,0,.12); padding:14px 16px; text-align:left; }
.cmec-order-products-table th{ color:#666; font-size:13px; font-weight:700; }
.cmec-totals{ margin:0 24px 24px auto; display:flex; flex-direction:column; gap:0; align-items:flex-end; }
.cmec-totals div{ display:flex; gap:16px; width:280px; justify-content:space-between; font-weight:900; padding:14px 16px; border-bottom:1px solid rgba(0,0,0,.12); }
.cmec-totals .grand{ background:#f1bf4b; border-bottom:0; border-radius:0; color:#fff; }

.cmec-addresses .cmec-actions{ margin:10px 0 14px; }
.cmec-addr-card{ border:1px solid rgba(0,0,0,.08); border-radius:12px; padding:14px; background:#fff; }
.cmec-addr-top{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.cmec-addr-top .who{ font-weight:900; }
.cmec-addr-top .tags{ display:flex; gap:8px; }
.cmec-addr-top .tag{ background:#f1bf4b; padding:4px 8px; border-radius:999px; font-weight:800; font-size:12px; }
.cmec-addr-body{ margin-top:10px; font-weight:700; line-height:1.45; }
.cmec-addr-actions{ margin-top:12px; display:flex; gap:14px; }
.cmec-addr-actions a{ font-weight:900; }

.cmec-form{ display:flex; flex-direction:column; gap:10px; }
.cmec-form label{ font-weight:800; display:flex; flex-direction:column; gap:6px; }
.cmec-form input{ padding:10px 12px; border:1px solid rgba(0,0,0,.18); border-radius:10px; }
.cmec-form .row{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.cmec-form .chk{ flex-direction:row; align-items:center; gap:10px; font-weight:900; }
.cmec-muted{ color:rgba(0,0,0,.6); font-weight:700; margin-top:10px; }

@media(max-width:1100px){
  .cmec-order-row{ grid-template-columns:1fr; }
  .cmec-order-panels{ grid-template-columns:1fr; }
  .cmec-table{ width:calc(100% - 24px); margin:0 12px; }
  .cmec-totals{ margin:0 12px 12px; }
  .cmec-totals div{ width:100%; }
  .cmec-form .row{ grid-template-columns:1fr; }
}

/* v11 modal fix: template uses .cmec-modal as backdrop and .cmec-modal-card as panel */
.cmec-modal{position:fixed;inset:0;background:rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;z-index:999999;padding:14px}
.cmec-modal-card{background:#fff;border-radius:16px;max-width:980px;width:100%;max-height:88vh;overflow:auto;box-shadow:0 18px 60px rgba(0,0,0,.25);}
.cmec-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.cmec-modal-head .x{border:none;background:#111;color:#fff;border-radius:999px;width:34px;height:34px;cursor:pointer}


/* v11.2 modal fixes */
.cmec-modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(2px);
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.cmec-modal{
  position: relative;
  z-index: 99999;
  background: #fff;
  width: min(980px, calc(100vw - 32px));
  max-height: min(86vh, 860px);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
}
.cmec-modal .cmec-modal-header{
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f0b93b;
  padding: 14px 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.cmec-modal .cmec-modal-body{
  padding: 18px;
  overflow: auto;
  max-height: calc(86vh - 64px);
}
.cmec-modal .cmec-modal-close{
  border: 0;
  background: rgba(0,0,0,.08);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  cursor: pointer;
}
.cmec-modal .cmec-modal-close:hover{ background: rgba(0,0,0,.14); }

/* v11.4.1 cart refresh */
.cmec-cart-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.cmec-clearcart{white-space:nowrap}
.cmec-cart-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:22px;align-items:start}
.cmec-cartcard{background:#fff;border:1px solid #ddd;box-shadow:0 2px 8px rgba(0,0,0,.08);padding:26px;margin-bottom:18px}
.cmec-cartrow-top{display:grid;grid-template-columns:80px minmax(0,1fr) auto;gap:16px;align-items:center;margin-bottom:20px}
.cmec-subtitle{color:#666;margin:6px 0}
.cmec-carttablewrap{overflow:auto}
.cmec-carttable{width:100%;border-collapse:collapse;font-size:14px}
.cmec-carttable th,.cmec-carttable td{padding:12px 14px;border-top:1px solid #e3e3e3;text-align:left;vertical-align:middle}
.cmec-carttable th.right,.cmec-carttable td.right{text-align:right}
.cmec-summarycard{background:#fff;border:1px solid #ddd;box-shadow:0 2px 8px rgba(0,0,0,.08);position:sticky;top:20px}
.cmec-summaryhead{background:#e6b33f;padding:14px 16px;font-size:18px}
.cmec-summarybody{padding:18px}
.cmec-summaryline{margin-bottom:18px;color:#333}
.cmec-summarynote{font-weight:700;text-align:center;border-top:1px solid #eee;border-bottom:1px solid #eee;padding:18px 0;margin:16px 0}
.cmec-checkoutbtn{display:block;text-align:center;width:100%}
@media (max-width: 960px){
  .cmec-cart-layout{grid-template-columns:1fr}
  .cmec-cartrow-top{grid-template-columns:80px 1fr}
  .cmec-cartqty{grid-column:1 / -1;justify-content:flex-start}
}

.cmec-checkout-step{padding:4px 0 24px}
.cmec-checkout-grid{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:28px;align-items:start}
.cmec-checkout-right .cmec-summarycard{position:sticky;top:20px}
.cmec-step{display:grid;grid-template-columns:36px minmax(0,1fr);column-gap:16px;align-items:start;position:relative;margin-bottom:10px}
.cmec-step::before{content:"";position:absolute;left:17px;top:38px;bottom:-12px;width:1px;background:#d7d7d7}
.cmec-step:last-child::before{display:none}
.cmec-step-num{width:28px;height:28px;border-radius:50%;background:#9d9d9d;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;position:relative;z-index:1}
.cmec-step.active .cmec-step-num,.cmec-step.complete .cmec-step-num{background:#e6b33f}
.cmec-step-title{font-size:17px;color:#222;padding:2px 0 12px}
.cmec-step.complete .cmec-step-title{color:#444}
.cmec-step-card{background:#fff;border:1px solid #ececec;min-height:120px;padding:18px 20px 16px}
.cmec-field label{display:block;font-size:13px;color:#b28d31;margin:0 0 4px}
.cmec-field select{width:100%;padding:10px 0;border:none;border-bottom:2px solid #bdbdbd;background:transparent;font-size:16px;color:#444}
.cmec-step-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.cmec-alert{font-weight:700;text-transform:uppercase;margin:0 0 18px}
.cmec-address-choice{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0}
.cmec-address-choice label{display:flex;align-items:center;gap:14px;cursor:pointer;flex-wrap:wrap;flex:1;color:#666}
.cmec-address-choice input[type=radio]{width:22px;height:22px;accent-color:#e6b33f}
.cmec-address-choice b{color:#666}
.cmec-address-choice.selected b,.cmec-address-choice.static b{color:#222}
.cmec-address-choice-actions{display:flex;gap:14px;font-size:20px}
.cmec-address-choice-actions a{text-decoration:none;color:#777}
.cmec-linkplus{margin-top:18px;background:none;border:none;color:#e0a800;font-weight:700;letter-spacing:.04em;padding:0;cursor:pointer}
.cmec-delivery-rules{margin-bottom:14px;color:#333}
.cmec-delivery-rules ul{margin:6px 0 0 24px;padding:0}
.cmec-checkout-cartcard{box-shadow:none;border:none;border-bottom:1px solid #eee;border-radius:0;padding:0 0 18px;margin-bottom:18px}
.cmec-checkout-cartcard .cmec-cartrow-top{padding:0}
.cmec-checkout-done{padding:30px 0}
@media (max-width: 980px){.cmec-checkout-grid{grid-template-columns:1fr}.cmec-checkout-right .cmec-summarycard{position:static}}


.cmec-preview-dialog{width:min(920px,calc(100vw - 32px));}
.cmec-preview-grid-dialog{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
@media (max-width:1100px){.cmec-preview-grid-dialog{grid-template-columns:repeat(2,minmax(0,1fr));}}

.cmec-auth-links{ margin-top:12px; }
.cmec-auth-links a{ font-size:14px; }
.cmec-reset-captcha-box{ display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.cmec-reset-captcha-image{ display:block; width:180px; height:56px; border:1px solid #dce2e8; border-radius:8px; background:#f4f6f8; }
.cmec-reset-captcha-meta{ display:flex; flex-direction:column; gap:8px; }
.cmec-reset-captcha-hint{ font-size:13px; color:#666; max-width:240px; }
.cmec-auth-actions{ display:flex; gap:10px; flex-wrap:wrap; }
.cmec-btn-secondary{ background:#f3f3f3; color:#222; border:1px solid #ddd; }

.cmec-success{ margin-top:12px; padding:10px 12px; border-radius:8px; background:#ecf8ee; color:#1f6b34; border:1px solid #bfe0c7; }
.cmec-reset-only{ margin-top:0; }


/* v11.6 responsive and auth hardening */
.cmec-mount, .cmec-mount *{box-sizing:border-box}
.cmec-mount{width:100%;max-width:100%;min-width:0}
.cmec-mount img{max-width:100%}
.cmec-auth-required{padding:24px;margin-top:16px}
.cmec-success{margin-top:10px;color:#176b35;font-weight:700}
@media (max-width: 767px){
  .cmec-topbar,.cmec-cart-head,.cmec-cartfooter,.cmec-addr-top,.cmec-address-choice{align-items:stretch;flex-direction:column}
  .cmec-search{width:100%;min-width:0}
  .cmec-menu-grid,.cmec-preview-grid,.cmec-preview-grid-dialog,.cmec-grid2{grid-template-columns:1fr!important}
  .cmec-product-img,.cmec-modal-img{height:auto;max-height:62vh}
  .cmec-card-imgwrap .cmec-img{height:190px}
  .cmec-account-tabs{display:grid;grid-template-columns:1fr}
  .cmec-account-tabs a{text-align:center}
  .cmec-order-row{padding:16px;gap:12px}
  .cmec-order-detail{width:calc(100vw - 16px);border-radius:10px}
  .cmec-order-hero,.cmec-order-trans,.cmec-order-panel{padding-left:14px;padding-right:14px}
  .cmec-order-hero{flex-direction:column}
  .cmec-order-hero-right{width:100%;justify-content:space-between}
  .cmec-table{display:block;overflow-x:auto;white-space:nowrap}
  .cmec-cartcard{padding:16px}
  .cmec-cartrow-top{grid-template-columns:64px minmax(0,1fr)}
  .cmec-cartimg{width:64px;height:64px}
  .cmec-carttable{min-width:680px}
  .cmec-checkout-grid{gap:16px}
  .cmec-step{grid-template-columns:30px minmax(0,1fr);column-gap:10px}
  .cmec-step-card{padding:14px}
  .cmec-modal-backdrop{padding:8px}
  .cmec-modal-card{max-height:94vh;border-radius:10px}
  .cmec-form .row,.cmec-field-row{grid-template-columns:1fr}
  .cmec-usermenu{position:fixed;left:12px;right:12px;top:auto;min-width:0}
}
@media (hover:none){
  .cmec-usericon:focus-within .cmec-usermenu{display:block}
}

/* v11.6.5 - Mercato Circo Massimo theme responsive adapter */
:root{
  --cmec-theme-primary:#833350;
  --cmec-theme-accent:#F3BC4F;
  --cmec-theme-text:#111;
  --cmec-theme-muted:#6f6f6f;
  --cmec-theme-border:rgba(0,0,0,.12);
}

.cmec-mount{
  color:var(--cmec-theme-text);
  font-family:"Roboto-Regular",Roboto,Arial,sans-serif;
  line-height:1.45;
  clear:both;
}
.cmec-mount:not([data-cmec="cart_icon"]):not([data-cmec="user_icon"]):not([data-cmec="search"]){
  width:min(1320px,calc(100vw - 32px));
  max-width:none;
  margin-left:50%;
  margin-right:0;
  transform:translateX(-50%);
  padding:12px 0 36px;
}
.cmec-mount h1,.cmec-mount h2,.cmec-mount h3,.cmec-mount h4,.cmec-mount h5,.cmec-mount h6,
.cmec-title-lg,.cmec-h2,.cmec-brand-title{
  font-family:"Roboto-Black","Roboto-Bold",Roboto,Arial,sans-serif;
  color:var(--cmec-theme-primary);
  text-transform:none;
  letter-spacing:0;
}
.cmec-mount p{font-size:16px;line-height:1.55;margin-top:0}
.cmec-mount a{overflow-wrap:anywhere}
.cmec-mount button,.cmec-mount input,.cmec-mount select,.cmec-mount textarea{font:inherit;max-width:100%}
.cmec-mount input,.cmec-mount select,.cmec-mount textarea{min-height:44px}
.cmec-mount textarea{width:100%;resize:vertical}

.cmec-shell{grid-template-columns:minmax(220px,280px) minmax(0,1fr);gap:24px;width:100%}
.cmec-shell-left{top:24px;min-width:0}
.cmec-grid{
  grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr));
  gap:20px;
}
.cmec-grid2,.cmec-preview-grid,.cmec-preview-grid-dialog{
  grid-template-columns:repeat(auto-fit,minmax(min(190px,100%),1fr));
}
.cmec-card{min-width:0;border-radius:8px;border-color:var(--cmec-theme-border);padding:0;overflow:hidden;box-shadow:0 3px 14px rgba(0,0,0,.08)}
.cmec-card-body{padding:16px}
.cmec-img{height:clamp(180px,20vw,250px)}
.cmec-producer,.cmec-price,.cmec-brand-kicker,.cmec-loginhint a{color:var(--cmec-theme-primary)}
.cmec-title{font-size:17px;min-height:2.5em}
.cmec-btn{background:var(--cmec-theme-primary);border-radius:6px;min-height:44px;padding:10px 16px}
.cmec-btn:hover,.cmec-btn:focus{filter:brightness(.92);color:#fff}
.cmec-btn-light{background:#fff;color:var(--cmec-theme-primary);border:2px solid var(--cmec-theme-primary)}
.cmec-qtybtn,.cmec-chip{min-width:42px;min-height:42px;border-radius:6px}
.cmec-badge{background:var(--cmec-theme-primary)}
.cmec-filters,.cmec-panel,.cmec-cartcard,.cmec-summarycard,.cmec-step-card,.cmec-addr-card,.cmec-brand-hero{border-radius:8px}
.cmec-filters{position:relative;padding:18px}
.cmec-field input,.cmec-field select,.cmec-form input{width:100%;border-radius:5px;background:#fff}
.cmec-topbar{flex-wrap:wrap}
.cmec-search{flex:1 1 260px;width:auto}

.cmec-product-grid{grid-template-columns:minmax(280px,46%) minmax(0,1fr);gap:32px}
.cmec-product-img{height:min(520px,52vw);border-radius:8px}
.cmec-producer-hero{grid-template-columns:minmax(180px,260px) minmax(0,1fr)}
.cmec-producer-img{width:100%;height:auto;aspect-ratio:4/3;border-radius:8px}

.cmec-cart-layout{grid-template-columns:minmax(0,1fr) minmax(280px,340px)}
.cmec-carttablewrap,.cmec-order-products-table{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.cmec-carttable,.cmec-order-products-table{min-width:640px}
.cmec-summaryhead,.cmec-step.active .cmec-step-num,.cmec-step.complete .cmec-step-num,
.cmec-order-row,.cmec-order-hero,.cmec-order-trans,.cmec-order-products-head,.cmec-totals .grand,.cmec-addr-top .tag{background:var(--cmec-theme-accent)}
.cmec-step-title,.cmec-summaryhead{font-family:"Roboto-Bold",Roboto,Arial,sans-serif}

.cmec-account-tabs{gap:8px;border-bottom:2px solid var(--cmec-theme-accent);padding-bottom:10px}
.cmec-account-tabs a{border-radius:5px;flex:1 1 180px;text-align:center}
.cmec-account-tabs a.active{border-color:var(--cmec-theme-primary);color:var(--cmec-theme-primary)}
.cmec-kv{grid-template-columns:minmax(120px,180px) minmax(0,1fr)}
.cmec-order-row{grid-template-columns:minmax(130px,1.2fr) repeat(2,minmax(90px,.6fr)) minmax(150px,1.3fr) minmax(120px,1fr) 48px}

.cmec-modal-backdrop{padding:clamp(8px,3vw,28px)}
.cmec-modal{width:min(1040px,100%);max-width:100%;max-height:calc(100dvh - 16px);border-radius:8px}
.cmec-modal .cmec-modal-body{max-height:calc(100dvh - 84px);overscroll-behavior:contain}
.cmec-modal-grid{grid-template-columns:minmax(260px,42%) minmax(0,1fr)}
.cmec-modal-img{height:min(430px,50vh)}
.cmec-usermenu{border-radius:6px;border-top:4px solid var(--cmec-theme-accent)}

@media (max-width:1199.98px){
  .cmec-shell{grid-template-columns:minmax(210px,250px) minmax(0,1fr);gap:18px}
  .cmec-grid{grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr));gap:16px}
  .cmec-order-row{grid-template-columns:repeat(3,minmax(0,1fr));}
  .cmec-order-row .c4,.cmec-order-row .c5{min-width:0}
}

@media (max-width:991.98px){
  .cmec-mount:not([data-cmec="cart_icon"]):not([data-cmec="user_icon"]):not([data-cmec="search"]){width:calc(100vw - 24px);padding-top:8px}
  .cmec-shell{grid-template-columns:1fr}
  .cmec-shell-left{position:static}
  .cmec-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;align-items:end}
  .cmec-filters-title,.cmec-filters .cmec-hint,.cmec-filters>.cmec-btn{grid-column:1/-1}
  .cmec-field{margin-bottom:0}
  .cmec-product-grid,.cmec-modal-grid{grid-template-columns:1fr}
  .cmec-product-img{height:auto;max-height:520px}
  .cmec-cart-layout,.cmec-checkout-grid{grid-template-columns:1fr}
  .cmec-summarycard,.cmec-checkout-right .cmec-summarycard{position:static}
  .cmec-order-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cmec-order-row>div:last-child{grid-column:1/-1}
  .cmec-order-btn{width:100%;border-radius:6px}
  .cmec-order-panels{grid-template-columns:1fr}
}

@media (max-width:767.98px){
  .cmec-mount:not([data-cmec="cart_icon"]):not([data-cmec="user_icon"]):not([data-cmec="search"]){width:calc(100vw - 20px);padding-bottom:24px}
  .cmec-mount p{font-size:15px}
  .cmec-filters{display:block;padding:14px}
  .cmec-field{margin-bottom:12px}
  .cmec-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .cmec-card-body{padding:12px}
  .cmec-img{height:170px}
  .cmec-title{font-size:15px;min-height:0}
  .cmec-buyrow{display:grid;grid-template-columns:42px minmax(46px,60px) 42px;gap:6px}
  .cmec-buyrow .cmec-btn-cart{grid-column:1/-1;width:100%;margin-left:0}
  .cmec-topbar,.cmec-cart-head,.cmec-cartfooter{gap:10px}
  .cmec-cartfooter .cmec-qtybtn{flex:1}
  .cmec-product-grid{gap:18px}
  .cmec-title-lg{font-size:24px}
  .cmec-producer-hero{grid-template-columns:1fr}
  .cmec-producer-img{max-width:360px}
  .cmec-kv{grid-template-columns:1fr;gap:2px}
  .cmec-kv .v{margin-bottom:10px}
  .cmec-cartcard{padding:12px}
  .cmec-cartrow-top{grid-template-columns:64px minmax(0,1fr);gap:10px}
  .cmec-cartqty{justify-content:flex-start}
  .cmec-order-row{grid-template-columns:1fr;background:#fff;border-left:7px solid var(--cmec-theme-accent)}
  .cmec-ship-name{color:var(--cmec-theme-text)}
  .cmec-order-addr-icon{border-color:var(--cmec-theme-primary);color:var(--cmec-theme-primary)}
  .cmec-order-detail{width:calc(100vw - 12px);max-height:calc(100dvh - 12px)}
  .cmec-order-hero-right{flex-wrap:wrap}
  .cmec-order-badge{padding:8px 10px}
  .cmec-order-panel{padding:18px 14px}
  .cmec-order-panel h4{margin-bottom:18px}
  .cmec-order-products-head{margin:10px 8px 0}
  .cmec-table{width:calc(100% - 16px);margin:0 8px}
  .cmec-totals{margin:0 8px 8px}
  .cmec-account-tabs{display:flex;overflow-x:auto;flex-wrap:nowrap;scroll-snap-type:x proximity;padding-bottom:8px}
  .cmec-account-tabs a{flex:0 0 auto;min-width:180px;scroll-snap-align:start}
  .cmec-modal .cmec-modal-header{padding:10px 12px}
  .cmec-modal .cmec-modal-body{padding:12px;max-height:calc(100dvh - 66px)}
  .cmec-modal-grid{gap:12px}
  .cmec-modal-img{height:auto;max-height:40vh}
  .cmec-step{grid-template-columns:28px minmax(0,1fr);column-gap:8px}
  .cmec-step::before{left:13px}
  .cmec-step-card{padding:12px}
  .cmec-step-actions .cmec-btn{width:100%}
  .cmec-usermenu{position:fixed;left:10px;right:10px;top:72px;bottom:auto;max-height:calc(100dvh - 84px);overflow:auto}
}

@media (max-width:479.98px){
  .cmec-grid{grid-template-columns:1fr}
  .cmec-img{height:min(260px,70vw)}
  .cmec-preview-grid,.cmec-preview-grid-dialog,.cmec-grid2{grid-template-columns:1fr!important}
  .cmec-row{align-items:stretch;flex-direction:column}
  .cmec-btn,.cmec-btn-light{width:100%}
  .cmec-auth{max-width:none}
  .cmec-address-choice-actions{justify-content:flex-end}
  .cmec-order-hero-title{font-size:16px}
}


/* Header icon mounts must size to their own content inside theme flex/grid wrappers. */
.cmec-mount[data-cmec="cart_icon"],
.cmec-mount[data-cmec="user_icon"],
.cmec-mount[data-cmec="search"]{width:fit-content!important;max-width:100%;}

.cmec-orders-loader{display:flex;min-height:180px;align-items:center;justify-content:center;flex-direction:column;gap:10px;text-align:center;padding:32px}.cmec-orders-loader small{opacity:.72}.cmec-spinner{width:42px;height:42px;border:4px solid rgba(131,51,80,.18);border-top-color:#833350;border-radius:50%;animation:cmec-spin .8s linear infinite}@keyframes cmec-spin{to{transform:rotate(360deg)}}

/* v12.3.19: notice dialog spacing */
.cmec-notice-dialog{padding:0;overflow:hidden;}
.cmec-notice-dialog .cmec-modal-head{margin:0;padding:16px 18px;border-bottom:1px solid rgba(0,0,0,.08);}
.cmec-notice-dialog .cmec-form{padding:18px!important;}
.cmec-notice-dialog .cmec-actions{margin-top:18px;display:flex;gap:10px;}
@media (max-width:767.98px){
  .cmec-notice-dialog .cmec-modal-head{padding:14px;}
  .cmec-notice-dialog .cmec-form{padding:14px!important;}
}
