/*
 * MessageCard Boutique v1.1 — layout and visual polish ONLY.
 * Zen Cart 2.1.0 / PHP 8.3. Loaded AFTER stylesheet_zz_messagecard.css.
 * Do not modify or override Zen Cart cart, order, checkout or payment styles.
 */

/* The stock Responsive Classic template may leave side-column proportions on
   the index even though the custom home page has no sideboxes. Apply only on
   a document which actually contains our home page, not on checkout pages. */
body.tpl_messagecard:has(.mc-home) #mainWrapper,
body.tpl_messagecard:has(.mc-home) #contentMainWrapper {
  width:100% !important;
  max-width:none !important;
  margin-left:0 !important;
  margin-right:0 !important;
}
body.tpl_messagecard:has(.mc-home) #contentMainWrapper > div:has(> .mc-home),
body.tpl_messagecard:has(.mc-home) #contentMainWrapper > div:has(.mc-home) {
  display:block !important;
  width:100% !important;
  max-width:none !important;
  float:none !important;
  clear:both !important;
  margin:0 !important;
  padding:0 !important;
}
body.tpl_messagecard:has(.mc-home) #contentMainWrapper > div:has(#navColumnOne),
body.tpl_messagecard:has(.mc-home) #contentMainWrapper > div:has(#navColumnTwo) {
  display:none !important;
}
body.tpl_messagecard:has(.mc-home) .mc-home,
body.tpl_messagecard:has(.mc-home) #indexDefault {
  display:block;
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:0 !important;
}
/* Breadcrumbs belong on category/product pages, not the editorial top. */
body.tpl_messagecard:has(.mc-home) #navBreadCrumb {display:none !important;}

/* Tighter and more confident desktop typography and horizontal rhythm. */
body.tpl_messagecard .mc-wrap {max-width:1240px;}
body.tpl_messagecard .mc-header-inner {min-height:88px;}
body.tpl_messagecard .mc-announcement {padding-block:7px;}
body.tpl_messagecard .mc-hero-grid {min-height:530px;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:50px;}
body.tpl_messagecard .mc-hero-copy {padding-block:65px;}
body.tpl_messagecard .mc-hero-copy h1 {font-size:clamp(35px,3.4vw,53px);letter-spacing:.025em;line-height:1.55;}
body.tpl_messagecard .mc-lead {font-size:14px;}
body.tpl_messagecard .mc-hero-visual {height:440px;}
body.tpl_messagecard .mc-hero-orbit {top:8%;}
body.tpl_messagecard .mc-trust-grid {min-height:94px;}
body.tpl_messagecard .mc-section {padding-block:78px;}
body.tpl_messagecard .mc-section-narrow {padding-block:74px 92px;}
body.tpl_messagecard .mc-section-heading {margin-bottom:31px;}
body.tpl_messagecard .mc-section-heading h2 {font-size:clamp(26px,2.7vw,36px);}
body.tpl_messagecard .mc-category-grid {gap:18px;}
body.tpl_messagecard a.mc-category {min-height:154px;}
body.tpl_messagecard .mc-products-grid {gap:22px;}
body.tpl_messagecard .mc-products-single {grid-template-columns:minmax(0,365px);justify-content:center;}
body.tpl_messagecard .mc-product-image {aspect-ratio:1.18;min-height:210px;}
body.tpl_messagecard .mc-product-info {padding:17px 19px 19px;}
body.tpl_messagecard .mc-product-placeholder {
  width:90%;min-height:180px;height:88%;gap:7px;background:#f6efe9;
  border:7px solid white;box-shadow:0 12px 25px #46362b10;
  color:#7a6760;font:600 13px/1.6 sans-serif;letter-spacing:.08em;
}
body.tpl_messagecard .mc-product-placeholder .mc-placeholder-mark {
  font:normal 30px/1 Georgia,serif;color:#a98375;
}
body.tpl_messagecard .mc-product-placeholder small {
  font:10px/1.6 Georgia,serif;letter-spacing:.14em;color:#9d8980;margin:0;
}
body.tpl_messagecard .mc-empty {max-width:830px;margin-inline:auto;padding:30px 25px;}
body.tpl_messagecard .mc-empty p {margin-top:9px;}
body.tpl_messagecard .mc-step-grid li {min-height:177px;}
body.tpl_messagecard .mc-site-footer {padding-top:57px;}
body.tpl_messagecard .mc-footer-grid {gap:38px;}

@media(max-width:980px) {
  body.tpl_messagecard .mc-wrap {padding-inline:22px;}
  body.tpl_messagecard .mc-hero-grid {gap:18px;min-height:455px;}
  body.tpl_messagecard .mc-hero-copy {padding-block:46px;}
  body.tpl_messagecard .mc-hero-copy h1 {font-size:clamp(30px,3.9vw,40px);}
  body.tpl_messagecard .mc-hero-visual {height:370px;}
  body.tpl_messagecard .mc-section {padding-block:64px;}
  body.tpl_messagecard .mc-category-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
  body.tpl_messagecard .mc-products-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
  body.tpl_messagecard .mc-products-single {grid-template-columns:minmax(0,360px);}
}
@media(max-width:700px) {
  body.tpl_messagecard .mc-hero-grid {display:flex;flex-direction:column;gap:0;min-height:0;}
  body.tpl_messagecard .mc-hero-copy {padding:50px 0 16px;align-self:stretch;}
  body.tpl_messagecard .mc-hero-copy h1 {font-size:clamp(29px,7.7vw,41px);}
  body.tpl_messagecard .mc-hero-visual {align-self:stretch;width:100%;height:310px;margin-bottom:10px;}
  body.tpl_messagecard .mc-trust-grid {grid-template-columns:1fr;}
  body.tpl_messagecard .mc-trust-grid > div {border-right:0;border-bottom:1px solid var(--mc-line);justify-content:flex-start;padding:12px 8px;}
  body.tpl_messagecard .mc-trust-grid > div:last-child {border-bottom:0;}
  body.tpl_messagecard .mc-section {padding-block:59px;}
  body.tpl_messagecard .mc-section-narrow {padding-block:60px 75px;}
  body.tpl_messagecard .mc-step-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
  body.tpl_messagecard .mc-footer-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 19px;}
  body.tpl_messagecard .mc-footer-grid > div:first-child {grid-column:1/-1;}
}
@media(max-width:480px) {
  body.tpl_messagecard .mc-wrap {padding-inline:17px;}
  body.tpl_messagecard .mc-header-inner {min-height:73px;}
  body.tpl_messagecard .mc-hero-copy {padding-top:43px;}
  body.tpl_messagecard .mc-hero-visual {height:265px;}
  body.tpl_messagecard .mc-products-grid,
  body.tpl_messagecard .mc-products-single {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
  body.tpl_messagecard .mc-products-single {grid-template-columns:minmax(0,315px);}
  body.tpl_messagecard .mc-product-image {aspect-ratio:1.12;min-height:118px;}
  body.tpl_messagecard .mc-product-placeholder {min-height:125px;border-width:5px;font-size:10px;letter-spacing:0;}
  body.tpl_messagecard .mc-product-placeholder .mc-placeholder-mark {font-size:21px;}
  body.tpl_messagecard .mc-product-placeholder small {font-size:8px;letter-spacing:.06em;}
  body.tpl_messagecard .mc-step-grid li {min-height:173px;}
}
