/* FurnArt cart refinement (cart page only). Retains server-validated cart/coupon UX. */
/* Sticky footer on short cart pages, normal document flow on long carts.
   Keep this scoped to the cart so the admin-configured footer is untouched. */
.ec-cart-page{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh;background:#f8f7f5;color:#172032}
.ec-cart-page > .ec-cart-content{flex:1 0 auto}
.ec-cart-page .ec-container{max-width:1320px}
.ec-cart-hero{position:relative;overflow:hidden;background:linear-gradient(115deg,#eeeae5 0%,#f6f4f1 42%,#ebe6df 100%);border-bottom:1px solid #e7e1da}
.ec-cart-hero:before{content:"";position:absolute;right:5%;bottom:-85px;width:420px;height:280px;background:radial-gradient(ellipse at center,rgba(184,154,127,.17),transparent 65%);pointer-events:none}
.ec-cart-hero:after{content:"";position:absolute;right:0;top:0;bottom:0;width:min(42vw,560px);background:url("/assets/images/cart-hero-room.webp") center center/cover no-repeat;mask-image:linear-gradient(to right,transparent 0%,black 38%);-webkit-mask-image:linear-gradient(to right,transparent 0%,black 38%);pointer-events:none}
.ec-cart-hero-inner{position:relative;z-index:1;box-sizing:border-box;display:flex;flex-direction:column;min-height:calc(var(--ec-cart-header-height,180px) + var(--h2m-menu-h,96px));padding-top:calc(var(--h2m-menu-h,96px) + 22px);padding-bottom:24px}
/* Custom images fill the whole banner, so hide the decorative default-room overlay. */
.ec-cart-hero.has-custom-image:after{display:none}
/* The admin's 0–100% text position applies within the available hero area,
   not a 76px placeholder. This keeps the heading clear of the banner edges. */
.ec-cart-hero-stage{position:relative;flex:1 1 auto;min-height:max(110px,calc(var(--ec-cart-header-height,180px) - 82px))}
.ec-cart-hero-copy{position:absolute;z-index:2;max-width:82%;min-width:min(250px,82%);color:#172032;overflow-wrap:break-word}
.ec-cart-hero-copy h1,.ec-cart-hero-copy h2,.ec-cart-hero-copy h3{font-family:var(--sparkclust-site-font,Inter,Arial,sans-serif);margin:0 0 8px;font-weight:500;line-height:1.12;letter-spacing:-.035em;color:#172032}
.ec-cart-hero-copy h1{font-size:clamp(30px,3.2vw,42px)}
.ec-cart-hero-copy h2{font-size:clamp(25px,2.8vw,35px)}
.ec-cart-hero-copy p{margin:4px 0 0;font-size:13px;line-height:1.5}
.ec-cart-hero-copy a{color:inherit}
.ec-cart-crumbs{display:flex;align-items:center;gap:9px;color:#7b7d80;font-size:12px;margin-bottom:15px;flex:0 0 auto}
.ec-cart-crumbs a:hover{color:#151c2b}
.ec-cart-crumbs span[aria-hidden]{color:#a4a4a4;font-size:19px;line-height:1}
.ec-cart-page .ec-cart-title{font-family:var(--sparkclust-site-font,Inter,Arial,sans-serif);margin:0;font-size:clamp(30px,3.2vw,42px);font-weight:500;letter-spacing:-.035em;line-height:1.1;text-transform:none;color:#172032}
.ec-cart-page .ec-helper{margin:9px 0 0;color:#777b82;font-size:13px;line-height:1.5}
.ec-cart-content{padding:24px 0 48px;min-height:340px}
.ec-cart-page .ec-success{font-size:13px;border-radius:5px}
.ec-cart-shell{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:22px;align-items:start}
.ec-cart-left{min-width:0}
.ec-cart-card,.ec-summary-card,.ec-discover-item,.ec-cart-empty{background:#fff;border:1px solid #e6e2de;border-radius:5px;box-shadow:0 4px 18px rgba(34,26,20,.035)}
.ec-cart-card{overflow:hidden}
.ec-cart-list-header{display:grid;grid-template-columns:minmax(0,1fr) 110px 120px 105px;align-items:center;gap:14px;padding:16px 19px;background:#fcfbfa;border-bottom:1px solid #eeeae6;color:#77777c;font-size:12px;line-height:1.5}
.ec-cart-list-header span:not(:first-child){text-align:center}
.ec-cart-list-header span:last-child{text-align:right}
.ec-cart-item{display:grid;grid-template-columns:minmax(0,1fr) 110px 120px 105px;gap:14px;align-items:center;padding:22px 19px;min-width:0}
.ec-cart-item+.ec-cart-item{border-top:1px solid #eeeae6}
.ec-cart-main{display:grid;grid-template-columns:114px minmax(0,1fr);gap:17px;align-items:center;min-width:0}
.ec-cart-thumb{display:flex;align-items:center;justify-content:center;width:114px;height:120px;background:#f8f7f5;border:1px solid #f0ede9;border-radius:5px;overflow:hidden}
.ec-cart-thumb img{display:block;width:100%;height:100%;object-fit:contain}
.ec-cart-info{min-width:0}
.ec-cart-name{display:block;overflow-wrap:anywhere;word-break:normal;font-size:14px;line-height:1.45;font-weight:500;color:#172032;text-transform:uppercase;letter-spacing:0}
.ec-cart-name:hover{color:#4c5258}
.ec-cart-submeta{display:flex;flex-direction:column;gap:3px;margin-top:9px;color:#8a8989;font-size:12px;line-height:1.4}
.ec-cart-stock{color:#387d53}
.ec-stock-dot{display:inline-block;width:6px;height:6px;background:#3b9960;border-radius:50%;vertical-align:2px;margin-right:2px}
.ec-cart-remove{display:inline-flex;align-items:center;gap:5px;margin:12px 0 0;padding:0;border:0;background:transparent;color:#ae5151;font:400 12px/1.4 var(--sparkclust-site-font,Inter,Arial,sans-serif);cursor:pointer}
.ec-cart-remove svg,.ec-cart-clear svg{width:14px;height:14px;flex:none}
.ec-cart-remove:hover,.ec-cart-clear:hover{color:#a22323}
.ec-cart-unit,.ec-cart-line-total{color:#172032;font-size:13px;text-align:center;font-weight:500;white-space:nowrap}
.ec-cart-line-total{text-align:right}
.ec-qty-stepper{display:grid;grid-template-columns:32px 36px 32px;align-items:center;width:100px;height:37px;margin:0 auto;border:1px solid #e4e1de;border-radius:5px;background:#fff;overflow:hidden}
.ec-step-btn{height:100%;width:32px;display:grid;place-items:center;padding:0;background:transparent;border:0;color:#19202d;cursor:pointer;font:400 19px/1 Arial,sans-serif}
.ec-step-btn:hover{background:#f4f1ee}
.ec-step-value{text-align:center;font-size:13px;font-weight:500;color:#172032}
.ec-cart-under-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0 29px}
.ec-cart-outline-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:38px;padding:8px 14px;background:#fff;border:1px solid #dbd7d1;border-radius:5px;color:#222a34;font-size:12px;font-weight:500;line-height:1.35;white-space:nowrap}
.ec-cart-outline-btn:hover{background:#f1eeea}
.ec-cart-clear{display:inline-flex;align-items:center;gap:6px;padding:8px 5px;background:transparent;border:0;color:#74767d;cursor:pointer;font-size:12px;font-weight:400}
.ec-cart-clear:disabled{cursor:wait;opacity:.55}
.ec-summary-card{padding:23px 22px 20px;position:sticky;top:20px}
.ec-summary-title{margin:0;color:#172032;font-family:Georgia,'Times New Roman',serif;font-weight:400;font-size:24px;letter-spacing:-.025em;line-height:1.22}
.ec-summary-subtitle{font-size:12px;color:#8c8c90;margin:5px 0 0;line-height:1.5}
.ec-summary-separator{height:1px;background:#eeeae6;margin:17px 0 20px}
.ec-cart-page .ec-summary-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0;margin:0;color:#636773;font-size:13px;line-height:1.5}
.ec-cart-page .ec-summary-row+.ec-summary-row{margin-top:15px}
.ec-cart-page .ec-summary-row strong{font-weight:500;color:#1b2533;white-space:nowrap}
.ec-cart-page .ec-summary-row.discount,.ec-cart-page .ec-summary-row.discount strong{color:#d44345}
.ec-delivery-note{font-size:10px;line-height:1.5;color:#9b9b9f;margin:5px 0 0}
.ec-summary-divider{height:1px;background:#e7e3de;margin:18px 0}
.ec-cart-page .ec-summary-row.total{border:0;padding:0;margin:0 0 18px;color:#172032;font-family:Georgia,'Times New Roman',serif;font-size:21px;font-weight:400}
.ec-cart-page .ec-summary-row.total strong{font-family:var(--sparkclust-site-font,Inter,Arial,sans-serif);font-size:21px;font-weight:500}
.ec-promo{display:grid;grid-template-columns:minmax(0,1fr) 75px;gap:8px;margin:0 0 8px}
.ec-promo-field{position:relative;min-width:0}
.ec-promo-field svg{position:absolute;left:10px;top:50%;transform:translateY(-50%);width:14px;height:14px;color:#a5a0a0;pointer-events:none}
.ec-promo input{display:block;width:100%;height:40px;min-width:0;padding:0 9px 0 32px;border:1px solid #e4dfda;border-radius:5px;background:#fff;color:#172032;font-size:12px;outline-offset:2px}
.ec-promo input::placeholder{color:#a2a0a2}
.ec-promo button{height:40px;border:0;border-radius:5px;background:#18191b;color:#fff;cursor:pointer;font-weight:500;font-size:12px}
.ec-promo button:hover,.ec-checkout-btn:hover{background:#3a3b3f}
.ec-promo button:disabled,.ec-promo-remove:disabled{opacity:.5;cursor:wait}
.ec-promo-state{display:flex;align-items:flex-start;justify-content:space-between;gap:9px;min-height:21px;margin:6px 0 13px}
.ec-promo-feedback{margin:0;font-size:11px;line-height:1.45;color:#37734a}
.ec-promo-feedback[data-applied="1"]:not([data-error="1"]):before{content:"✓";display:inline-grid;place-items:center;margin-right:6px;background:#41845d;color:#fff;border-radius:50%;height:12px;width:12px;font-size:9px}
.ec-promo-feedback[data-error="1"]{color:#b42318}
.ec-promo-remove{display:inline-block;background:transparent;border:0;padding:0;margin:0;color:#727279;text-decoration:underline;text-underline-offset:2px;font-size:11px;cursor:pointer;white-space:nowrap}
.ec-promo-remove[hidden]{display:none}
.ec-checkout-btn{width:100%;display:flex;align-items:center;justify-content:center;gap:13px;min-height:46px;padding:9px 16px;border-radius:5px;background:#18191b;color:white;font-size:13px;font-weight:500;text-align:center}
.ec-checkout-btn svg{width:16px;height:16px;flex:none}
.ec-summary-footnote{display:flex;justify-content:center;align-items:center;gap:5px;color:#8f8f93;font-size:10px;margin:13px 0 0;text-align:center;line-height:1.4}
.ec-summary-footnote svg{height:13px;width:13px;flex:none}
.ec-cart-discover{margin-top:4px}
.ec-discover-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 15px}
.ec-discover-heading h2{margin:0;font-family:Georgia,'Times New Roman',serif;font-size:22px;font-weight:400;line-height:1.2;color:#172032}
.ec-discover-heading>a{color:#646773;font-size:12px;white-space:nowrap}
.ec-discover-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.ec-discover-item{display:flex;flex-direction:column;min-width:0;overflow:hidden;color:#202633;transition:transform .15s ease,box-shadow .15s ease}
.ec-discover-item:hover{transform:translateY(-2px);box-shadow:0 7px 18px rgba(34,26,20,.08)}
.ec-discover-image{height:126px;display:grid;place-items:center;background:#faf9f7;overflow:hidden}
.ec-discover-image img{width:100%;height:100%;object-fit:contain}
.ec-discover-name{padding:11px 10px 0;font-size:11px;line-height:1.45;text-transform:uppercase;word-wrap:break-word;color:#1f2937;font-weight:500}
.ec-discover-price{padding:5px 10px 0;color:#141b25;font-size:12px;font-weight:500}
.ec-discover-more{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:auto 10px 10px;padding-top:8px;font-size:11px;color:#767779}
.ec-cart-empty{padding:65px 25px;text-align:center}
.ec-cart-empty-icon{display:grid;place-items:center;width:58px;height:58px;margin:0 auto 16px;border-radius:50%;background:#f4f1ee;color:#8c8781;font-size:29px}
.ec-cart-empty h2{margin:0;font-weight:500;font-size:24px}
.ec-cart-empty p{color:#85858a;font-size:13px;margin:12px 0 20px}
.ec-cart-page .h2m-site-footer,.ec-cart-page .h2m-retail-footer,.ec-cart-page .h2m-minimal-footer{margin-top:0}
@media(max-width:1130px){
 .ec-cart-shell{grid-template-columns:minmax(0,1fr) 305px;gap:16px}
 .ec-cart-list-header,.ec-cart-item{grid-template-columns:minmax(0,1fr) 88px 104px 84px;gap:10px}
 .ec-cart-main{grid-template-columns:94px minmax(0,1fr);gap:12px}
 .ec-cart-thumb{width:94px;height:104px}
 .ec-qty-stepper{width:96px;grid-template-columns:30px 34px 30px}
 .ec-step-btn{width:30px}
}
@media(max-width:940px){
 .ec-cart-shell{grid-template-columns:minmax(0,1fr)}
 .ec-summary-card{position:static}
 .ec-cart-list-header,.ec-cart-item{grid-template-columns:minmax(0,1fr) 110px 120px 105px;gap:12px}
 .ec-cart-main{grid-template-columns:114px minmax(0,1fr)}
 .ec-cart-thumb{width:114px;height:120px}
 .ec-discover-image{height:150px}
}
@media(max-width:690px){
 .ec-cart-hero-inner{padding-top:calc(var(--h2m-menu-h,70px) + 17px);padding-bottom:20px}
 .ec-cart-hero:after{opacity:.35}
 .ec-cart-content{padding-top:16px;padding-bottom:30px}
 .ec-cart-list-header{display:none}
 .ec-cart-item{display:grid;grid-template-columns:1fr auto;gap:13px;padding:18px 15px}
 .ec-cart-main{grid-column:1/-1;grid-template-columns:96px minmax(0,1fr);align-items:start}
 .ec-cart-thumb{width:96px;height:100px}
 .ec-cart-unit{display:none}
 .ec-qty-stepper{margin:0;width:100px}
 .ec-cart-line-total{align-self:center;text-align:right;font-size:14px}
 .ec-cart-submeta{gap:2px;margin-top:6px}
 .ec-cart-remove{margin-top:9px}
 .ec-discover-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ec-discover-image{height:140px}
 .ec-cart-page .ec-container{padding-left:14px;padding-right:14px}
}
@media(max-width:390px){
 .ec-cart-item{padding:14px 11px}
 .ec-cart-main{grid-template-columns:78px minmax(0,1fr);gap:11px}
 .ec-cart-thumb{height:85px;width:78px}
 .ec-cart-name{font-size:12px}
 .ec-summary-card{padding:19px 16px}
 .ec-discover-grid{gap:8px}
 .ec-discover-image{height:120px}
}
@media(prefers-reduced-motion:reduce){.ec-discover-item{transition:none}}

/* Prevent banner text from overflowing the narrow mobile viewport. */
@media(max-width:640px){.ec-cart-hero-copy{max-width:96%;min-width:0;width:max-content;overflow-wrap:anywhere}.ec-cart-hero-stage{min-height:max(128px,calc(var(--ec-cart-header-height,180px) - 72px))}}
