/* Mars 1.2.1 — cart/account/related/carousel/variation corrective layer */

/* Keep product names visually light and clean. */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.mars-product-card .woocommerce-loop-product__title,
.mars-product-card .woocommerce-loop-product__title a{font-weight:400!important;letter-spacing:0!important}

/* Secondary menu: spaced, swipeable without visible scrollbar. */
.mars-secondary-menu{border-top:1px solid color-mix(in srgb,var(--mars-border) 75%,transparent);border-bottom:1px solid color-mix(in srgb,var(--mars-border) 75%,transparent)}
.mars-secondary-menu>.mars-container{overflow:hidden}
.mars-secondary-menu__list{display:flex!important;align-items:center!important;justify-content:flex-start!important;flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x proximity;scrollbar-width:none;padding:0 2px!important;margin:0!important;white-space:nowrap;-webkit-overflow-scrolling:touch}
.mars-secondary-menu__list::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
.mars-secondary-menu__list>li{flex:0 0 auto!important;scroll-snap-align:start;margin:0!important}
.mars-secondary-menu__list a{display:flex!important;align-items:center;height:var(--mars-secondary-menu-height);padding:0 2px!important;white-space:nowrap}

/* Variation swatches must stay on one line and scroll instead of wrapping. */
.single-product table.variations tr{grid-template-columns:92px minmax(0,1fr)!important;align-items:center!important}
.single-product table.variations th label{padding-top:0!important;white-space:nowrap}
.mars-variation-select-wrap{min-width:0!important;overflow:hidden}
.mars-variation-swatches{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;max-width:100%!important;gap:7px!important;padding:2px 1px 5px;scroll-snap-type:x proximity;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.mars-variation-swatches::-webkit-scrollbar{display:none!important}
.mars-swatch{flex:0 0 auto!important;scroll-snap-align:start;white-space:nowrap}
.mars-swatch--image{min-width:max-content!important}

/* True category carousel on tablet/mobile, no system scrollbar, with dots. */
.mars-category-carousel-shell{margin-top:20px;max-width:100%;overflow:hidden}
.mars-category-carousel-shell .mars-category-strip{margin-top:0!important}
.mars-carousel-pagination{display:flex;align-items:center;justify-content:center;gap:7px;min-height:20px;margin-top:10px}
.mars-carousel-pagination button{appearance:none;width:7px;height:7px;min-width:7px;padding:0;border:0;border-radius:999px;background:#cfd6df;cursor:pointer;transition:.2s ease}
.mars-carousel-pagination button.is-active{width:22px;background:var(--mars-primary)}
@media(max-width:980px){
  .mars-secondary-menu--hide-mobile{display:none!important}
  .mars-category-carousel-shell{width:min(calc(100% - 20px),var(--mars-container));}
  .mars-category-carousel-shell .mars-category-strip{display:flex!important;grid-template-columns:none!important;gap:10px!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x mandatory;scrollbar-width:none;padding:1px 0 5px!important;-webkit-overflow-scrolling:touch}
  .mars-category-carousel-shell .mars-category-strip::-webkit-scrollbar{display:none!important}
  .mars-category-carousel-shell .mars-category-strip>a{flex:0 0 calc((100% - 30px)/4)!important;min-width:118px!important;scroll-snap-align:start;margin:0!important}
}
@media(max-width:700px){
  .mars-category-carousel-shell .mars-category-strip>a{flex-basis:calc((100% - 20px)/3)!important;min-width:108px!important}
  .single-product table.variations tr{grid-template-columns:74px minmax(0,1fr)!important;gap:8px!important}
  .mars-swatch{min-height:36px;min-width:38px;padding:6px 10px;font-size:11px}
}

/* Related products is a real theme carousel. */
.mars-related-products{margin-top:34px;overflow:hidden}
.mars-related-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:14px}
.mars-related-head small{display:block;color:var(--mars-primary);font-size:10px;font-weight:600;letter-spacing:.08em;margin-bottom:3px}
.mars-related-head h2{margin:0!important;font-size:22px!important;font-weight:500!important}
.mars-related-nav{display:flex;gap:7px}
.mars-related-nav button{width:38px;height:38px;border-radius:50%;border:1px solid var(--mars-border);background:#fff;color:var(--mars-text);display:grid;place-items:center;cursor:pointer;box-shadow:0 4px 16px rgba(8,24,44,.05)}
.mars-related-nav button:hover{border-color:var(--mars-primary);color:var(--mars-primary)}
.mars-related-carousel-shell{overflow:hidden!important}
.mars-related-carousel{display:flex!important;grid-template-columns:none!important;gap:14px!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x mandatory;scrollbar-width:none!important;padding:1px 1px 5px!important;margin:0!important}
.mars-related-carousel::-webkit-scrollbar{display:none!important}
.mars-related-carousel>li.product{flex:0 0 calc((100% - (var(--mars-carousel-desktop) - 1)*14px)/var(--mars-carousel-desktop))!important;width:auto!important;margin:0!important;scroll-snap-align:start}
@media(max-width:1200px){.mars-related-carousel>li.product{flex-basis:calc((100% - (var(--mars-carousel-tablet) - 1)*14px)/var(--mars-carousel-tablet))!important}}
@media(max-width:700px){.mars-related-nav{display:none}.mars-related-head h2{font-size:19px!important}.mars-related-carousel{gap:10px!important}.mars-related-carousel>li.product{flex-basis:calc((100% - (var(--mars-carousel-mobile) - 1)*10px)/var(--mars-carousel-mobile))!important;min-width:0!important}}

/* My Account: contain the navigation and content in one deliberate layout. */
.woocommerce-account .entry-content>.woocommerce{display:block!important;width:100%!important;max-width:100%!important}
.woocommerce-account .entry-content>.woocommerce>h2,.woocommerce-account .entry-content>.woocommerce>.woocommerce-notices-wrapper{width:100%!important;max-width:100%!important}
.mars-myaccount-shell{display:grid;grid-template-columns:260px minmax(0,1fr);gap:20px;width:100%;max-width:100%;align-items:start}
.mars-myaccount-sidebar{min-width:0}
.mars-myaccount-content{float:none!important;width:100%!important;max-width:100%!important;min-width:0!important;border:0!important;border-radius:0!important;padding:0!important;background:transparent!important}
.woocommerce-account .mars-myaccount-shell .woocommerce-MyAccount-navigation{position:sticky!important;top:calc(var(--mars-header-height) + 18px);width:100%!important;float:none!important;margin:0!important;padding:10px!important;border:1px solid var(--mars-border)!important;border-radius:10px!important;background:#fff!important;overflow:hidden!important}
.woocommerce-account .mars-myaccount-shell .mars-account-nav-user{padding:10px 8px 16px!important}
.woocommerce-account .mars-myaccount-shell .woocommerce-MyAccount-navigation ul{display:grid!important;overflow:visible!important;gap:3px!important;padding:0!important;margin:0!important}
.woocommerce-account .mars-myaccount-shell .woocommerce-MyAccount-navigation li{width:100%!important;flex:none!important;margin:0!important}
.woocommerce-account .mars-myaccount-shell .woocommerce-MyAccount-navigation li a{min-height:42px!important;padding:10px 11px!important;font-size:12px!important;white-space:normal!important}
.mars-account-dashboard{width:100%!important;max-width:100%!important;display:grid!important;gap:16px!important}
.mars-account-welcome{width:100%!important;grid-template-columns:64px minmax(190px,.9fr) minmax(0,1.7fr)!important}
.mars-account-panel,.mars-account-addresses,.mars-account-quick-actions{width:100%!important;max-width:100%!important}
.mars-account-orders{width:100%;max-width:100%;overflow-x:auto;scrollbar-width:thin}
.mars-account-orders__row{min-width:680px!important;font-size:11px!important}
.mars-account-panel__head h3{font-weight:500!important}
.woocommerce-account .woocommerce-MyAccount-content form,.woocommerce-account .woocommerce-MyAccount-content table{max-width:100%}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table{width:100%!important}
@media(max-width:980px){
 .mars-myaccount-shell{grid-template-columns:1fr;gap:14px}
 .woocommerce-account .mars-myaccount-shell .woocommerce-MyAccount-navigation{position:relative!important;top:auto!important;padding:6px!important}
 .woocommerce-account .mars-myaccount-shell .mars-account-nav-user{display:flex!important;padding:8px 8px 12px!important}
 .woocommerce-account .mars-myaccount-shell .woocommerce-MyAccount-navigation ul{display:flex!important;overflow-x:auto!important;overflow-y:hidden!important;gap:6px!important;scrollbar-width:none;padding:0 0 2px!important}
 .woocommerce-account .mars-myaccount-shell .woocommerce-MyAccount-navigation ul::-webkit-scrollbar{display:none}
 .woocommerce-account .mars-myaccount-shell .woocommerce-MyAccount-navigation li{width:auto!important;flex:0 0 auto!important}
 .woocommerce-account .mars-myaccount-shell .woocommerce-MyAccount-navigation li a{white-space:nowrap!important;padding:9px 12px!important}
 .mars-account-welcome{grid-template-columns:54px minmax(0,1fr)!important}
 .mars-account-stats{grid-column:1/-1!important}
}
@media(max-width:700px){
 .mars-account-welcome{padding:14px!important}
 .mars-account-welcome h2{font-size:15px!important}
 .mars-account-welcome p{font-size:10px!important}
 .mars-account-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 .mars-account-stats strong{font-size:16px!important}.mars-account-stats small{font-size:8px!important}
 .mars-account-addresses,.mars-account-quick-actions{grid-template-columns:1fr!important}
 .woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table{display:block;overflow-x:auto}
}

/* Mars custom cart — no default Woo table appearance. */
.woocommerce-cart .entry-content>.woocommerce{display:block!important;width:100%!important;max-width:100%!important}
.woocommerce-cart .entry-content>.woocommerce>.woocommerce-notices-wrapper{width:100%!important;margin-bottom:14px}
.mars-cart-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(320px,.75fr);gap:22px;align-items:start;width:100%;max-width:100%}
.mars-cart-form,.mars-cart-card,.mars-cart-summary{min-width:0;max-width:100%}
.mars-cart-card{border:1px solid var(--mars-border);border-radius:12px;background:#fff;overflow:hidden}
.mars-cart-card__head{padding:22px 24px 18px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--mars-border)}
.mars-cart-kicker{font-size:9px;font-weight:600;letter-spacing:.09em;color:var(--mars-primary)}
.mars-cart-card__head h2{font-size:22px;font-weight:500;margin:3px 0 0}
.mars-cart-item-count{font-size:11px;color:var(--mars-muted);background:#f5f7fa;border-radius:999px;padding:7px 10px;white-space:nowrap}
.mars-cart-items{padding:0 24px}
.mars-cart-item{display:grid;grid-template-columns:112px minmax(0,1fr);gap:18px;padding:22px 0;border-bottom:1px solid var(--mars-border)}
.mars-cart-item:last-child{border-bottom:0}
.mars-cart-item__image{width:112px;height:112px;border:1px solid #eef1f5;border-radius:9px;background:#fff;display:grid;place-items:center;overflow:hidden}
.mars-cart-item__image img{width:100%;height:100%;object-fit:contain;padding:7px}
.mars-cart-item__info{min-width:0;display:flex;flex-direction:column;justify-content:space-between;gap:15px}
.mars-cart-item__title-row{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}
.mars-cart-item h3{font-size:14px;font-weight:400;line-height:1.45;margin:0 0 5px}
.mars-cart-item h3 a{color:var(--mars-text)}
.mars-cart-item__meta,.mars-cart-item__meta p,.mars-cart-item__meta dl{font-size:10px;color:var(--mars-muted);margin:2px 0}
.mars-cart-remove{width:34px;height:34px;flex:0 0 34px;border:1px solid var(--mars-border);border-radius:50%;display:grid!important;place-items:center;color:#7a8797!important;background:#fff!important;text-decoration:none!important}
.mars-cart-remove:hover{border-color:#fecaca;color:#d92d20!important;background:#fff7f6!important}
.mars-cart-remove .mars-icon{width:15px;height:15px}
.mars-cart-item__bottom{display:grid;grid-template-columns:1fr auto 1fr;align-items:end;gap:18px}
.mars-cart-item__bottom small{display:block;color:var(--mars-muted);font-size:9px;margin-bottom:5px}
.mars-cart-item__bottom strong{font-size:14px;font-weight:500}
.mars-cart-item__subtotal{text-align:right}
.mars-cart-qty{height:38px;border:1px solid #d9e0e8;border-radius:7px;display:flex;align-items:center;background:#fff;overflow:hidden}
.mars-cart-qty button{width:34px;height:100%;border:0;background:#f8fafc;color:var(--mars-text);font-size:17px;cursor:pointer}
.mars-cart-qty .quantity{margin:0!important;height:100%!important}
.mars-cart-qty input.qty{width:44px!important;height:100%!important;min-height:0!important;border:0!important;border-radius:0!important;text-align:center!important;padding:0!important;appearance:textfield}
.mars-cart-qty input.qty::-webkit-inner-spin-button,.mars-cart-qty input.qty::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.mars-cart-actions{border-top:1px solid var(--mars-border);background:#fbfcfd;padding:18px 24px;display:flex;align-items:end;justify-content:space-between;gap:16px}
.mars-cart-coupon{display:grid;gap:6px;max-width:440px;flex:1}
.mars-cart-coupon label{font-size:10px;color:var(--mars-muted)}
.mars-cart-coupon>div{display:flex;min-width:0}
.mars-cart-coupon input{height:42px!important;min-width:0;flex:1;border:1px solid #d9e0e8!important;border-radius:7px 0 0 7px!important;padding:0 12px!important}
.mars-cart-coupon button{height:42px!important;border-radius:0 7px 7px 0!important;background:var(--mars-navy)!important;color:#fff!important;padding:0 16px!important}
.mars-update-cart{height:42px!important;border:1px solid var(--mars-border)!important;background:#fff!important;color:var(--mars-text)!important;border-radius:7px!important;display:inline-flex!important;align-items:center;gap:7px;padding:0 15px!important;white-space:nowrap}
.mars-update-cart .mars-icon{width:15px;height:15px}
.mars-cart-summary{position:sticky;top:calc(var(--mars-header-height) + 18px)}
.admin-bar .mars-cart-summary{top:calc(var(--mars-header-height) + 50px)}
.mars-cart-summary .cart-collaterals{width:100%!important;float:none!important}
.mars-cart-summary .cart_totals{width:100%!important;float:none!important}
.mars-cart-totals{border:1px solid var(--mars-border);border-radius:12px;background:#fff;padding:22px!important}
.mars-cart-totals__head{display:flex;align-items:center;gap:11px;padding-bottom:17px;margin-bottom:8px;border-bottom:1px solid var(--mars-border)}
.mars-cart-totals__head>span{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#fff1e9;color:var(--mars-primary)}
.mars-cart-totals__head .mars-icon{width:20px;height:20px}
.mars-cart-totals__head small{font-size:9px;color:var(--mars-primary);font-weight:600;letter-spacing:.08em}
.mars-cart-totals__head h2{font-size:18px!important;font-weight:500!important;margin:2px 0 0!important;padding:0!important;border:0!important}
.mars-cart-total-row{display:flex;justify-content:space-between;gap:14px;padding:12px 0;border-bottom:1px solid #eef1f4;font-size:12px}
.mars-cart-total-row>span{color:#65718a}.mars-cart-total-row strong{font-weight:500;text-align:right}
.mars-cart-grand-total{padding:18px 0;border-bottom:0;font-size:16px}.mars-cart-grand-total>span{color:var(--mars-text);font-weight:500}.mars-cart-grand-total strong{font-size:21px;font-weight:600}
.mars-cart-shipping{padding:12px 0;border-bottom:1px solid #eef1f4;font-size:11px}
.mars-cart-shipping table{width:100%!important;margin:0!important;border:0!important}.mars-cart-shipping th,.mars-cart-shipping td{padding:5px 0!important;border:0!important;font-size:11px!important}
.mars-proceed-checkout{padding:8px 0 0!important}
.mars-proceed-checkout .checkout-button{width:100%;min-height:50px!important;border-radius:7px!important;background:var(--mars-primary)!important;color:#fff!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:13px!important;font-weight:500!important;margin:0!important}
.mars-cart-secure-note{display:flex;align-items:center;gap:10px;margin-top:14px;padding:12px;border-radius:8px;background:#f7f9fb;color:#344054}
.mars-cart-secure-note>.mars-icon{width:24px;height:24px;color:#168047;flex:0 0 auto}.mars-cart-secure-note span{display:flex;flex-direction:column}.mars-cart-secure-note strong{font-size:10px}.mars-cart-secure-note small{font-size:9px;color:#667085;margin-top:2px}
@media(max-width:980px){.mars-cart-layout{grid-template-columns:1fr}.mars-cart-summary{position:relative;top:auto!important}.mars-cart-actions{align-items:stretch}}
@media(max-width:700px){
 .mars-cart-card__head{padding:17px 15px}.mars-cart-card__head h2{font-size:18px}.mars-cart-items{padding:0 15px}
 .mars-cart-item{grid-template-columns:82px minmax(0,1fr);gap:12px;padding:16px 0}.mars-cart-item__image{width:82px;height:82px}
 .mars-cart-item__title-row{gap:8px}.mars-cart-item h3{font-size:12px}.mars-cart-remove{width:30px;height:30px;flex-basis:30px}
 .mars-cart-item__bottom{grid-template-columns:1fr auto;gap:12px}.mars-cart-item__subtotal{grid-column:1/-1;text-align:left;display:flex;align-items:center;justify-content:space-between;border-top:1px dashed #e4e8ef;padding-top:9px}.mars-cart-item__subtotal small{margin:0}
 .mars-cart-actions{padding:15px;display:grid;grid-template-columns:1fr}.mars-cart-coupon{max-width:none}.mars-update-cart{width:100%;justify-content:center}
 .mars-cart-totals{padding:17px!important}
}
