/* Mars 1.6.0 — configurable topbar, extra home carousels and flash-sale block */

/* Topbar menu + ticker */
.mars-topbar--standard .mars-topbar__inner{gap:24px}
.mars-topbar__links{min-width:0}
.mars-topbar-menu{display:flex;align-items:center;gap:18px;list-style:none;margin:0;padding:0}
.mars-topbar-menu li{margin:0;padding:0}
.mars-topbar-menu a{display:inline-flex;align-items:center;min-height:var(--mars-topbar-height);font-size:inherit;font-weight:400;white-space:nowrap;opacity:.94}
.mars-topbar-menu a:hover{opacity:1;color:var(--mars-primary)!important}
.mars-topbar--ticker{overflow:hidden;position:relative}
.mars-topbar-ticker{height:100%;overflow:hidden;display:flex;align-items:center}
.mars-topbar-ticker__track{width:max-content;min-width:max-content;display:flex;align-items:center;gap:52px;animation:marsTopbarTicker var(--mars-topbar-ticker-duration,28s) linear infinite;will-change:transform}
.mars-topbar-ticker__track span{height:var(--mars-topbar-height);display:inline-flex;align-items:center;gap:8px;white-space:nowrap;font-weight:500}
.mars-topbar-ticker__track .mars-icon{color:var(--mars-primary);font-size:12px}
@keyframes marsTopbarTicker{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.mars-topbar-ticker__track{animation:none}}

/* Flash sale */
.mars-flash-sale{margin-top:32px;margin-bottom:30px}
.mars-flash-sale__head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:18px}
.mars-flash-sale__head h2{margin:0;color:var(--mars-text);font-size:34px;line-height:1.15;letter-spacing:-.9px}
.mars-flash-sale__head p{margin:8px 0 0;color:var(--mars-muted);font-size:14px}
.mars-flash-sale__head-actions{display:flex;align-items:center;gap:20px;flex:0 0 auto}
.mars-flash-sale__head-actions>a{display:inline-flex;align-items:center;gap:7px;color:#075bb6;font-size:13px;font-weight:600;white-space:nowrap}
.mars-flash-sale__nav{display:flex;gap:9px}
.mars-flash-sale__nav button{width:42px;height:42px;border:1px solid var(--mars-border);border-radius:50%;background:#fff;color:var(--mars-text);display:grid;place-items:center;cursor:pointer;box-shadow:0 5px 18px rgba(7,27,49,.04)}
.mars-flash-sale__nav button:hover{border-color:#c8d0db;color:var(--mars-primary)}
.mars-flash-sale__layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:14px}
.mars-flash-featured{min-width:0;display:grid;grid-template-columns:minmax(260px,.93fr) minmax(300px,1.07fr);gap:0;border:1px solid var(--mars-border);border-radius:8px;background:#fff;overflow:hidden;min-height:520px}
.mars-flash-featured__image{position:relative;display:flex;align-items:center;justify-content:center;min-width:0;background:linear-gradient(135deg,#fbfbfc,#f2f4f7);padding:22px}
.mars-flash-featured__image img{width:100%;height:100%;max-height:475px;object-fit:contain;display:block}
.mars-flash-badge{position:absolute;left:18px;top:18px;z-index:2;display:inline-flex;align-items:center;justify-content:center;min-width:58px;height:34px;padding:0 10px;border-radius:6px;background:var(--mars-primary);color:#fff;font-size:14px;font-weight:700;box-shadow:0 7px 18px rgba(255,91,10,.2)}
.mars-flash-featured__content{padding:48px 34px 38px;display:flex;flex-direction:column;justify-content:center;min-width:0}
.mars-flash-countdown-label{display:flex;align-items:center;gap:8px;color:var(--mars-primary);font-size:13px;font-weight:600;margin-bottom:18px}
.mars-flash-countdown{display:flex;align-items:flex-start;gap:12px;margin-bottom:34px}
.mars-flash-countdown>span{position:relative;display:flex;flex-direction:column;align-items:center;min-width:58px}
.mars-flash-countdown>span:not(:last-child)::after{content:":";position:absolute;right:-9px;top:9px;color:var(--mars-text);font-weight:600}
.mars-flash-countdown b{width:58px;height:48px;border:1px solid var(--mars-border);border-radius:6px;background:#fff;display:grid;place-items:center;color:var(--mars-text);font-size:21px;font-weight:500;box-shadow:0 4px 14px rgba(7,27,49,.03)}
.mars-flash-countdown small{margin-top:8px;color:var(--mars-muted);font-size:9px;font-weight:500}
.mars-flash-featured__content h3{font-size:26px;line-height:1.2;margin:0 0 12px;letter-spacing:-.45px}
.mars-flash-featured__content h3 a{color:var(--mars-text)}
.mars-flash-featured__content>p{font-size:14px;line-height:1.75;color:var(--mars-muted);margin:0 0 20px}
.mars-flash-rating{display:flex;align-items:center;gap:6px;min-height:20px;color:#8793a7;font-size:11px;margin-bottom:14px}
.mars-flash-rating .star-rating{font-size:12px;margin:0!important}
.mars-flash-rating small{font-size:10px;color:var(--mars-muted)}
.mars-flash-rating--empty .mars-icon{color:#a2abba}
.mars-flash-featured__price,.mars-flash-price{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.mars-flash-featured__price{margin:1px 0 26px;font-size:25px;font-weight:600;color:var(--mars-primary)}
.mars-flash-featured__price del,.mars-flash-price del{color:#697386;font-weight:400;opacity:1}
.mars-flash-featured__price del{font-size:14px}.mars-flash-featured__price ins,.mars-flash-price ins{text-decoration:none;color:var(--mars-primary)}
.mars-flash-featured__button{align-self:flex-start;min-width:230px;justify-content:center;gap:14px}
.mars-flash-sale__products{min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.mars-flash-small-card{min-width:0;border:1px solid var(--mars-border);border-radius:8px;background:#fff;overflow:hidden;display:flex;flex-direction:column}
.mars-flash-small-card__image{position:relative;display:flex;align-items:center;justify-content:center;min-height:190px;background:#fff;padding:18px 20px 6px}
.mars-flash-small-card__image img{width:100%;height:185px;object-fit:contain;display:block}
.mars-flash-small-card .mars-flash-badge{left:14px;top:14px;min-width:48px;height:27px;padding:0 7px;font-size:11px}
.mars-flash-small-card__body{padding:10px 16px 16px}
.mars-flash-small-card__body h3{font-size:14px;line-height:1.35;margin:0 0 9px;font-weight:600}
.mars-flash-small-card__body h3 a{color:var(--mars-text)}
.mars-flash-small-card .mars-flash-rating{margin-bottom:8px}
.mars-flash-price{font-size:16px;font-weight:600;color:var(--mars-primary)}
.mars-flash-price del{font-size:11px}
.mars-flash-sale__dots{display:none;align-items:center;justify-content:center;gap:7px;margin-top:13px}
.mars-flash-sale__dots button{width:7px;height:7px;padding:0;border:0;border-radius:50%;background:#cfd6df;cursor:pointer}
.mars-flash-sale__dots button.is-active{background:var(--mars-primary)}

@media (max-width:1180px){
 .mars-flash-sale__layout{grid-template-columns:1fr}
 .mars-flash-featured{min-height:450px}
 .mars-flash-sale__products{grid-template-columns:repeat(4,minmax(220px,1fr));overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:4px;scrollbar-width:none}
 .mars-flash-sale__products::-webkit-scrollbar{display:none}
 .mars-flash-small-card{scroll-snap-align:start}
}
@media (max-width:980px){
 .mars-topbar--mobile-show{display:block!important}
 .mars-topbar--standard.mars-topbar--mobile-show .mars-topbar__inner{justify-content:flex-start;overflow-x:auto;scrollbar-width:none}
 .mars-topbar--standard.mars-topbar--mobile-show .mars-topbar__shipping{flex:0 0 auto}
 .mars-topbar--standard.mars-topbar--mobile-show .mars-topbar__links{display:block!important;flex:0 0 auto}
 .mars-topbar--standard.mars-topbar--mobile-show .mars-topbar-menu{gap:14px}
 .mars-flash-sale__head h2{font-size:28px}
 .mars-flash-featured{grid-template-columns:.9fr 1.1fr}
 .mars-flash-featured__content{padding:32px 24px}
}
@media (max-width:700px){
 .mars-topbar--ticker.mars-topbar--mobile-show{height:32px!important;min-height:32px!important}
 .mars-topbar--ticker.mars-topbar--mobile-show .mars-topbar-ticker__track span{height:32px;font-size:10px}
 .mars-topbar--standard.mars-topbar--mobile-show{height:32px!important;min-height:32px!important}
 .mars-topbar--standard.mars-topbar--mobile-show .mars-topbar__inner,.mars-topbar--standard.mars-topbar--mobile-show .mars-topbar-menu a{min-height:32px;height:32px}
 .mars-topbar--standard.mars-topbar--mobile-show .mars-topbar__shipping,.mars-topbar--standard.mars-topbar--mobile-show .mars-topbar-menu a{font-size:10px}
 .mars-flash-sale{margin-top:25px;margin-bottom:22px}
 .mars-flash-sale__head{align-items:flex-start;margin-bottom:14px}
 .mars-flash-sale__head h2{font-size:24px;letter-spacing:-.4px}
 .mars-flash-sale__head p{font-size:11px;line-height:1.55;margin-top:5px;max-width:260px}
 .mars-flash-sale__head-actions>a{font-size:10px}
 .mars-flash-sale__nav{display:none}
 .mars-flash-featured{grid-template-columns:1fr;min-height:0}
 .mars-flash-featured__image{min-height:270px;padding:18px}
 .mars-flash-featured__image img{height:260px;max-height:260px}
 .mars-flash-badge{left:12px;top:12px;min-width:48px;height:28px;font-size:11px}
 .mars-flash-featured__content{padding:22px 18px 24px}
 .mars-flash-countdown-label{font-size:11px;margin-bottom:12px}
 .mars-flash-countdown{gap:8px;margin-bottom:24px}
 .mars-flash-countdown>span{min-width:46px}
 .mars-flash-countdown>span:not(:last-child)::after{right:-6px;top:7px}
 .mars-flash-countdown b{width:46px;height:40px;font-size:17px}
 .mars-flash-countdown small{font-size:7px;margin-top:6px}
 .mars-flash-featured__content h3{font-size:21px}
 .mars-flash-featured__content>p{font-size:12px;line-height:1.6}
 .mars-flash-featured__price{font-size:21px;margin-bottom:18px}
 .mars-flash-featured__button{width:100%;min-width:0}
 .mars-flash-sale__products{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;margin-top:10px;padding-bottom:5px}
 .mars-flash-small-card{flex:0 0 72%;scroll-snap-align:start}
 .mars-flash-small-card__image{min-height:170px}.mars-flash-small-card__image img{height:165px}
 .mars-flash-sale__dots{display:flex}
}
