/* MegaMart mobile theme skin, v0.2.0 — scoped to OCTemplates Deals.
   Overrides cosmetics and selected navigation only; native OpenCart cart/search/menu remain.
   Screen <= 991px. All selectors based on original 2026-10-25 template snapshots. */
:root{--mm-ink:#14243d;--mm-muted:#5b6f89;--mm-blue:#0865de;--mm-teal:#00a9b5;--mm-surface:#f0f7ff;--mm-line:#e0ecfa}
@media(max-width:991.98px){
 html{overflow-x:clip}
 body{color:var(--mm-ink);background:#fff}
 .ds-header{background:#fff!important;box-shadow:0 2px 15px rgba(20,36,61,.07);border-top:4px solid var(--mm-blue)!important;padding:7px 0!important;z-index:1030}
 .ds-header>.container-xl>.d-flex{min-height:53px;margin-bottom:0!important;gap:12px}
 .ds-header-left{gap:9px!important;min-width:0!important}
 .ds-header-left>.ds-header-menu-button{margin-right:0!important;flex:0 0 40px!important;width:40px!important;height:43px!important;border-radius:12px;display:flex;justify-content:center;align-items:center}
 .ds-header-left>.ds-header-menu-button:hover{background:var(--mm-surface)}
 .ds-header-left>a:not(.mm-brand-link),.ds-header-left>span{display:none!important}
 .ds-header-left .mm-brand-link{display:flex!important;align-items:center;gap:8px;min-width:0;flex-shrink:0;text-decoration:none!important;color:var(--mm-ink)!important}
 .mm-brand-mark{width:41px!important;height:41px!important;border-radius:11px;object-fit:cover;max-width:none!important}
 .mm-brand-words{display:flex;flex-direction:column;min-width:0}
 .mm-brand-name{font-weight:850;font-size:20px;line-height:1;white-space:nowrap;letter-spacing:-.9px;color:var(--mm-ink)}
 .mm-brand-name span{color:var(--mm-blue)}
 .mm-brand-caption{color:var(--mm-muted);font-size:8px;letter-spacing:.9px;font-weight:700;margin-top:4px;white-space:nowrap}
 .ds-header-right{gap:0!important;padding-right:0!important;min-width:0!important}
 .ds-header-right>.ds-header-user-button,.ds-header-right>.ds-header-search-toggle-button,
 .ds-header-right>a.ds-header-wishlist-button,.ds-header-right>a.ds-header-compare-button,
 .ds-header-right>.ds-dropdown-box{display:none!important}
 .ds-header-right>.ds-header-search{display:none!important}
 .ds-header-cart-button{min-width:41px;min-height:43px;display:grid;place-items:center;border-radius:10px!important}
 .mm-search-band{background:#fff;padding:0 16px 11px}
 .mm-search-form{max-width:1200px;margin:0 auto;display:flex;align-items:center;min-height:47px;border-radius:15px;background:#f0f6ff;border:1px solid #e1ecfd;overflow:hidden}
 .mm-search-form:focus-within{border-color:#79b9e6;box-shadow:0 0 0 2px #a5e2e5}
 .mm-search-form label{display:flex;align-items:center;flex:1;min-width:0}
 .mm-search-form svg{margin-left:13px;width:20px;height:20px;color:#6788a9;stroke:currentColor;fill:none;stroke-width:2}
 .mm-search-form input{width:100%;height:45px;min-width:0;border:0!important;box-shadow:none!important;outline:0!important;background:transparent!important;padding:0 12px!important;color:var(--mm-ink)!important;font-size:14px}
 .mm-search-form input::placeholder{color:#8094ac}
 .mm-search-form button{height:45px;padding:0 17px;background:var(--mm-blue);border:0;color:white;font-size:13px;font-weight:700}
 .ds-mobile-bottom-nav{min-height:70px!important;height:calc(70px + env(safe-area-inset-bottom))!important;padding:6px 8px calc(7px + env(safe-area-inset-bottom))!important;border-top:1px solid var(--mm-line)!important;background:rgba(255,255,255,.98)!important;box-shadow:0 -5px 20px rgba(20,36,61,.05);color:#8394aa!important;z-index:1031}
 .ds-mobile-bottom-nav .ds-mobile-bottom-nav-item{order:2;display:flex!important;flex:1 1 25%!important;max-width:25%;padding:3px 2px!important;min-height:55px!important;background:transparent!important;border-radius:12px!important;color:#8394aa!important}
 .ds-mobile-bottom-nav .ds-mobile-bottom-nav-item-icon{height:24px;margin-bottom:4px!important}
 .ds-mobile-bottom-nav .ds-mobile-bottom-nav-item-icon svg{width:22px;height:22px;color:var(--mm-blue)}
 .ds-mobile-bottom-nav .ds-mobile-bottom-nav-item-icon svg path{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round}
 .ds-mobile-bottom-nav .ds-mobile-bottom-nav-item-title{color:#71849e!important;font-size:10px!important;font-weight:600!important;white-space:nowrap}
 .ds-mobile-bottom-nav .mm-nav-home{order:1}
 .ds-mobile-bottom-nav .ds-mobile-bottom-nav-item-catalog{order:2;cursor:pointer}
 .ds-mobile-bottom-nav .ds-mobile-bottom-nav-item-wishlist{order:3}
 .ds-mobile-bottom-nav .mm-nav-cart{order:4}
 .ds-mobile-bottom-nav .mm-nav-home.mm-active .ds-mobile-bottom-nav-item-title{color:var(--mm-blue)!important}
 .ds-mobile-bottom-nav .ds-mobile-bottom-nav-item-compare,.ds-mobile-bottom-nav .ds-mobile-bottom-nav-item-contacts,
 .ds-mobile-bottom-nav .ds-mobile-bottom-nav-item-viewed,.ds-mobile-bottom-nav .ds-mobile-bottom-nav-item-home{display:none!important}
 .ds-mobile-bottom-nav .ds-mobile-bottom-nav-item-badge{top:0!important;right:16%!important}
 .ds-footer{margin-bottom:65px}
 /* Preserve the native footer layout; replace the outdated red artwork. */
 .ds-footer-logo{content:url('logo.png')!important;width:68px!important;height:68px!important;object-fit:contain!important}

 .ds-page-title h1,.ds-product-main-content h1,h1{color:var(--mm-ink)}
 .button.button-primary,.ds-product-main-cart-button,.ds-category-cart-btn{background:var(--mm-teal)!important;border-color:var(--mm-teal)!important;color:#fff!important}
 .button.button-primary:hover,.ds-product-main-cart-button:hover{background:#008995!important;border-color:#008995!important}
 .button.button-outline-primary{border-color:var(--mm-blue)!important;color:var(--mm-blue)!important}
 .content-block{border-radius:17px!important}
 .ds-product-images-main,.ds-product-images-slide{border-radius:15px;overflow:hidden}
 .ds-module,.ds-module-item{border-radius:16px}
 body{padding-bottom:0}
 .mm-home-hero{display:grid;margin:13px 0 24px;grid-template-columns:1fr 125px;align-items:end;gap:2px;min-height:272px;border-radius:22px;background:linear-gradient(125deg,#eff8ff 0%,#d6f0ff 62%,#bceeea 100%);padding:23px 15px 23px 21px;overflow:hidden;position:relative}
 .mm-home-hero:after{content:"";position:absolute;width:220px;height:220px;right:-115px;top:-90px;background:#fff5;border-radius:50%}
 .mm-hero-kicker{display:block;font-weight:800;font-size:10px;letter-spacing:1.4px;color:#2b7da4;margin-bottom:10px}
 .mm-hero-title{font-size:27px;font-weight:850;line-height:1.12;letter-spacing:-1px;max-width:210px;margin:0 0 12px;color:var(--mm-ink)}
 .mm-hero-title strong{color:#087bb4;font-weight:850}
 .mm-hero-description{font-size:13px;line-height:1.45;color:#4d6885;max-width:190px;margin:0 0 19px}
 .mm-hero-cta{display:inline-flex;justify-content:center;align-items:center;gap:10px;background:var(--mm-teal);border:0;border-radius:12px;color:#fff!important;padding:12px 15px;min-height:47px;font-weight:800;font-size:13px;white-space:nowrap}
 .mm-hero-cta:hover{background:#008995}
 .mm-hero-art{position:relative;height:175px;min-width:0;align-self:end}
 .mm-art-back{position:absolute;height:153px;width:80px;background:linear-gradient(130deg,#fff,#cadfee);border:2px solid #cce2f2;border-radius:18px;right:32px;bottom:2px;transform:rotate(-13deg);box-shadow:0 9px 20px #19375227}
 .mm-art-back:before,.mm-art-back:after{content:"";display:block;position:absolute;width:19px;height:19px;left:8px;border:4px solid #7086a7;background:#142d4a;border-radius:50%}
 .mm-art-back:before{top:12px}.mm-art-back:after{top:40px}
 .mm-art-front{position:absolute;height:178px;width:90px;background:linear-gradient(150deg,#a6deff 0%,#c1f3f4 35%,#53b6ec 36%,#124899 92%);border-radius:19px;border:5px solid #1d3b5a;right:-13px;bottom:0;transform:rotate(9deg);box-shadow:0 12px 20px #19375229}
 #common-home{padding-top:0!important}
}
@media(max-width:359.98px){
 .mm-brand-name{font-size:17px}.mm-brand-caption{font-size:7px;letter-spacing:.7px}
 .mm-brand-mark{width:35px!important;height:35px!important}
 .ds-header-left>.ds-header-menu-button{flex-basis:35px!important;width:35px!important}
 .mm-home-hero{grid-template-columns:1fr 95px;padding-left:16px;min-height:270px}
 .mm-hero-title{font-size:25px}
 .mm-hero-art{transform:scale(.9);transform-origin:right bottom}
 .mm-search-form button{padding:0 11px}
}
@media(min-width:992px){.mm-home-hero,.mm-search-band,.mm-brand-link,.mm-nav-home,.mm-nav-cart{display:none!important}}


/* v0.3: confirmed real OpenCart category destinations and catalog navigation */
@media (max-width:991.98px){
 .mm-home-categories{display:block;margin:6px 0 28px;padding:0 0 6px}
 .mm-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:0 4px 14px}
 .mm-section-heading h2{font-size:22px;font-weight:850;color:#14243d;letter-spacing:-.6px;line-height:1.3;margin:0}
 .mm-section-heading>span{font-size:11px;color:#6684a4;text-align:right}
 .mm-category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
 .mm-category-tile{display:flex;flex-direction:column;justify-content:space-between;min-width:0;min-height:132px;border:1px solid #e0eafa;border-radius:17px;background:linear-gradient(135deg,#f5faff,#eaf5ff);padding:15px 13px;text-decoration:none!important;transition:border-color .18s ease}
 .mm-category-tile:hover{border-color:#90c8eb}
 .mm-category-symbol{display:grid;place-items:center;width:43px;height:43px;border-radius:13px;background:#fff;color:#0865de}
 .mm-category-tile:nth-child(even) .mm-category-symbol{color:#00a9b5}
 .mm-category-symbol svg{width:23px;height:23px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
 .mm-category-caption{display:flex;flex-direction:column;margin-top:13px;gap:4px}
 .mm-category-caption strong{font-size:13px;line-height:1.2;font-weight:750;color:#14243d}
 .mm-category-caption small{font-size:11px;line-height:1.35;color:#5f7896}
 .mm-category-tile:last-child{grid-column:span 2;min-height:100px;flex-direction:row;align-items:center;gap:16px}
 .mm-category-tile:last-child .mm-category-caption{margin:0;flex:1}
}
@media (min-width:992px){.mm-home-categories{display:none!important}}
.mm-menu-root-entry{list-style:none!important;border-bottom:1px solid #edf2f8}
.mm-menu-root-entry a{color:#14243d!important;display:flex!important;align-items:center;gap:12px;min-height:49px;padding:12px 16px;font-weight:700;font-size:14px;text-decoration:none!important;transition:background .15s}
.mm-menu-root-entry a:before{content:"";width:9px;height:9px;display:block;border-radius:3px;flex:0 0 9px;background:#0865de}
.mm-menu-root-entry:nth-child(even) a:before{background:#00a9b5}
.mm-menu-root-entry a:hover,.mm-menu-root-entry a:focus-visible{background:#eff7ff!important;color:#0758b3!important}
@media(max-width:359.98px){
 .mm-category-tile{padding:12px 10px}
 .mm-category-caption strong{font-size:12px}
 .mm-section-heading h2{font-size:20px}
}

/* MegaMart commerce screens v0.3 — OCTemplates Deals native markup only.
   Product/category UI; no fake product data, no replacement cart logic.
   Works with server Twig classes captured 2026-10-25. */
@media (max-width:991.98px){
  #product-category, #product-product{padding-left:14px!important;padding-right:14px!important}
  .ds-breadcrumb{display:flex;gap:6px;flex-wrap:wrap;font-size:11px!important;color:#71849b!important;margin:13px 0!important}
  .ds-breadcrumb .breadcrumb-item{font-size:11px!important;color:#7b91aa}
  .ds-breadcrumb a{color:#6d83a4}
  .ds-page-title h1{font-size:25px!important;line-height:1.2!important;letter-spacing:-.6px!important;font-weight:800!important;color:#14243d!important}
  .ds-category .ds-category-description{background:#f0f7ff!important;border-radius:17px!important;border:1px solid #e0ecfa!important}
  .ds-category .ds-category-description-text{font-size:13px!important;line-height:1.6!important;color:#576985}
  .ds-category-sort{background:#f3f8ff!important;border:1px solid #e1edf9!important;border-radius:15px!important;padding:11px!important;gap:8px!important}
  .ds-category-sort-limit{min-width:0!important;gap:8px!important}
  .ds-category-sort-limit .form-select{width:50%!important;max-width:none!important;min-width:0!important;min-height:43px!important;border:1px solid #dae6f5!important;border-radius:10px!important;background-color:#fff!important;color:#14243d!important;font-size:12px!important}
  .ds-category-products{row-gap:12px!important}
  .ds-category-products>.ds-module-col{width:50%!important;flex:0 0 50%!important;min-width:0!important}
  .ds-category-products .ds-module-col>.content-block{background:#fff!important;box-shadow:0 4px 18px rgba(20,36,61,.04)!important;border:1px solid #e2ecfa!important;border-radius:16px!important;overflow:hidden!important;padding:10px!important;min-height:300px!important}
  .ds-category-products .ds-module-img{background:#f4f9ff;border-radius:13px;padding:5px!important;margin-bottom:11px!important}
  .ds-category-products .ds-module-img-box>a{display:block;min-width:0}
  .ds-category-products .ds-module-img-box img{display:block!important;margin:auto!important;object-fit:contain!important;width:100%!important;height:130px!important;max-height:130px!important}
  .ds-category-products .ds-module-buttons{right:5px!important;top:5px!important;gap:2px!important}
  .ds-category-products .ds-module-button{background:#fff!important;border-radius:10px!important;min-width:32px!important;min-height:32px!important}
  .ds-category-products .ds-module-caption{min-height:148px!important;gap:6px}
  .ds-category-products .ds-category-item-info{margin-bottom:0}
  .ds-category-products .ds-module-title{display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden!important;line-height:1.35!important;font-size:12px!important;font-weight:650!important;color:#14243d!important;min-height:32px}
  .ds-category-products .ds-module-code{font-size:10px!important;line-height:1.4!important;color:#6b8199}
  .ds-category-products .ds-module-rating{font-size:10px}
  .ds-category-products .ds-module-reviews{font-size:10px}
  .ds-category-products .ds-module-price{margin-top:5px!important;margin-bottom:8px!important}
  .ds-category-products .ds-price-new{font-size:17px!important;line-height:1.1;font-weight:850!important;color:#14243d!important}
  .ds-category-products .ds-price-old{font-size:11px!important;color:#8b9ab0}
  .ds-category-products .ds-module-cart{width:100%!important;margin-top:auto!important;display:flex!important;align-items:stretch!important;min-height:42px}
  .ds-category-products .ds-category-cart-btn,
  .ds-category-products .ds-module-cart-btn{position:static!important;min-height:42px!important;width:100%!important;padding:7px 4px!important;border:0!important;border-radius:10px!important;background:#00a9b5!important;color:#fff!important;box-shadow:none!important}
  .ds-category-products .ds-category-cart-btn .button-text,
  .ds-category-products .ds-module-cart-btn .button-text{font-size:12px!important;font-weight:700!important;color:#fff!important}
  .ds-category-products .ds-module-attributes{display:none!important}
  .ds-product-main-content{gap:14px!important;background:transparent!important;box-shadow:none!important}
  .ds-product-images{background:#f2f8ff!important;border-radius:18px!important;padding:8px!important;border:1px solid #e4effa!important}
  .ds-product-images-main{background:white!important;border-radius:14px!important;overflow:hidden!important}
  .ds-product-images-main img{max-height:355px!important;max-width:100%!important;object-fit:contain!important}
  #product.ds-product-main{background:#fff!important;min-width:0!important}
  .ds-product-main-stock{padding:9px 11px!important;border-radius:11px!important;font-size:12px!important;background:#ebf9f2!important}
  .ds-product-main-price{margin-top:8px!important;margin-bottom:8px!important}
  .ds-product-main-price .ds-price-new{font-size:28px!important;font-weight:850!important;line-height:1.25!important;color:#14243d!important;letter-spacing:-.6px}
  .ds-product-main-price .ds-price-old{font-size:13px!important}
  .ds-product-main-actions{background:#f0f7ff!important;border-radius:18px!important;padding:15px!important;border:1px solid #e2eefc!important;box-shadow:none!important;margin:13px 0!important}
  .ds-product-options .form-group{margin-bottom:14px!important}
  .ds-product-options .ds-control-label{font-size:13px!important;font-weight:750!important;color:#14243d!important}
  .ds-product-options .options-box{gap:8px!important}
  .ds-product-options .options-box .radio{margin:0!important}
  .ds-product-options .options-box .radio>label{min-height:44px!important;min-width:44px!important;padding:10px 12px!important;border:1px solid #d4e2f3!important;border-radius:11px!important;background:white!important;color:#14243d!important;font-size:13px!important;display:inline-flex;align-items:center;justify-content:center}
  .ds-product-options .options-box .radio>label.selected{border:2px solid #0865de!important;padding:9px 11px!important;background:#eaf4ff!important;color:#075aca!important}
  .ds-product-options .form-select{min-height:45px!important;background-color:white!important;border-radius:10px!important}
  .ds-product-main-buttons{gap:8px!important;flex-wrap:wrap!important}
  .ds-product-main-cart{flex:1 1 100%!important;min-width:0!important;gap:8px!important}
  .ds-product-main-cart-button{min-height:50px!important;border-radius:11px!important;font-size:15px!important;font-weight:800!important}
  .ds-product-fast-order-button{min-height:48px!important;width:100%!important;border-radius:11px!important;font-size:13px!important}
  .ds-product-main-attributes{display:grid!important;grid-template-columns:1fr 1fr;gap:8px!important;border:0!important}
  .ds-product-main-attributes-item{background:#f0f7ff;border-radius:11px!important;padding:12px 10px!important;min-width:0}
  .ds-product-tabs{overflow-x:auto!important;white-space:nowrap!important;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .ds-product-tabs-item{min-height:42px!important;font-size:12px!important;white-space:nowrap}
  .ds-product-advantages-item,.ds-product-content-attributes-list{border-radius:13px!important}
}
@media(max-width:359.98px){
  .ds-category-products .ds-module-col>.content-block{padding:7px!important}
  .ds-category-products .ds-module-img-box img{height:112px!important;max-height:112px!important}
  .ds-category-products .ds-price-new{font-size:15px!important}
  .ds-category-products .ds-category-cart-btn .button-text{font-size:11px!important}
  .ds-category-products .ds-module-title{font-size:11px!important}
  .ds-product-main-price .ds-price-new{font-size:25px!important}
}


/* v0.4: accessible empty category with safe navigation to real published roots */
.mm-category-empty{background:linear-gradient(130deg,#f4f9ff,#ecf7ff)!important;border:1px solid #dcebf8!important;border-radius:20px!important;padding:22px!important;box-shadow:none!important}
.mm-empty-icon{height:52px;width:52px;display:flex;align-items:center;justify-content:center;border-radius:15px;background:white;color:#0865de;margin-bottom:18px;box-shadow:0 3px 13px #14243d0c}
.mm-empty-icon svg{height:28px;width:28px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}
.mm-empty-kicker{font-size:11px;font-weight:850;letter-spacing:1.2px;color:#2c79a8}
.mm-empty-title{font-size:22px;line-height:1.2;letter-spacing:-.5px;color:#14243d;font-weight:850;margin:9px 0 10px}
.mm-empty-desc{font-size:14px;line-height:1.55;color:#56708d;margin:0 0 18px;max-width:550px}
.mm-empty-button{display:inline-flex;gap:11px;align-items:center;justify-content:center;text-decoration:none!important;border-radius:11px;background:#00a9b5!important;color:#fff!important;padding:13px 17px;min-height:48px;font-size:13px;font-weight:750}
.mm-empty-button:hover{background:#008995!important;color:white!important}
.mm-empty-divider{height:1px;background:#d5e6f6;margin:22px 0 14px}
.mm-empty-subtitle{font-weight:800;font-size:13px;line-height:1.3;color:#14243d;margin:0 0 11px}
.mm-empty-quicknav{display:flex;flex-wrap:wrap;gap:8px}
.mm-empty-quicknav a{display:inline-flex;align-items:center;min-height:40px;padding:8px 12px;border:1px solid #d8e6f8;border-radius:11px;color:#236398!important;background:white!important;font-size:12px;font-weight:650;text-decoration:none!important}
.mm-empty-quicknav a:hover{border-color:#8bc8e9!important;color:#0758c7!important}
.mm-empty-button:focus-visible,.mm-empty-quicknav a:focus-visible{outline:3px solid #68c8d1;outline-offset:2px}
@media(max-width:991.98px){
  #product-category{padding-left:12px!important;padding-right:12px!important}
  #product-category .ds-page-title{padding-top:0!important}
  #product-category .ds-page-title h1{margin-bottom:0!important}
  .mm-category-empty{padding:21px 17px!important;margin-top:1px!important}
  .mm-empty-title{font-size:20px}
  .mm-empty-desc{font-size:13px}
  .mm-empty-button{width:100%}
}
@media(min-width:992px){.mm-category-empty{max-width:860px;margin:12px auto 35px;padding:30px!important}}

/* MegaMart Mobile v0.5 — published categories navigation.
   Scope: category subcategory tiles only; preserve real thumbnail photos. */
@media (max-width: 991.98px) {
  #product-category .ds-subcategories {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
    margin:0 0 22px!important;
  }
  #product-category .ds-subcategories::before {
    content:"Разделы каталога";
    grid-column:1/-1;
    font-weight:800;
    color:#14243d;
    font-size:17px;
    letter-spacing:-.35px;
    padding:0 2px 2px;
  }
  #product-category .ds-subcategories .ds-subcategories-item {
    margin:0!important;
    padding:0!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    flex:auto!important;
  }
  #product-category .ds-subcategories .ds-subcategories-item > a {
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:8px!important;
    padding:11px 10px!important;
    min-height:70px!important;
    width:100%;
    height:100%!important;
    background:linear-gradient(137deg,#f7fbff 0%,#ebf6ff 100%)!important;
    border:1px solid #dcebf8!important;
    border-radius:15px!important;
    box-shadow:none!important;
    color:#14243d!important;
    text-decoration:none!important;
    transition:border-color .15s, background .15s;
  }
  #product-category .ds-subcategories .ds-subcategories-item > a:hover,
  #product-category .ds-subcategories .ds-subcategories-item > a:focus-visible {
    border-color:#79bde3!important;
    background:#ecf9fb!important;
    outline-offset:2px;
  }
  #product-category .ds-subcategories .ds-subcategories-item img[src*="placeholder"] {
    display:none!important;
  }
  #product-category .ds-subcategories .ds-subcategories-item > a:has(img[src*="placeholder"])::before {
    content:"▦";
    display:grid;
    place-items:center;
    flex:0 0 31px;
    width:31px;
    height:31px;
    border-radius:10px;
    background:#fff;
    color:#0865de;
    font-size:20px;
    line-height:1;
  }
  #product-category .ds-subcategories .ds-subcategories-item:nth-child(even) > a:has(img[src*="placeholder"])::before {
    color:#00a9b5;
  }
  #product-category .ds-subcategories .ds-subcategories-item > a::after {
    content:"›";
    color:#5d91ba;
    margin-left:auto;
    font-size:21px;
    font-weight:700;
    line-height:1;
  }
  #product-category .ds-subcategories .ds-subcategories-title {
    flex:1 1 auto;
    min-width:0;
    max-width:none!important;
    font-size:12px!important;
    line-height:1.3!important;
    font-weight:700!important;
    color:#14243d!important;
    text-align:left!important;
    overflow-wrap:break-word;
  }
  #product-category .ds-subcategories .ds-subcategories-item img:not([src*="placeholder"]) {
    width:36px!important;height:36px!important;object-fit:contain!important;flex:0 0 36px;
  }
}
@media (min-width:600px) and (max-width:991.98px) {
  #product-category .ds-subcategories{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}

/* MegaMart product card refinements v0.6 — native OCTemplates markup.
   Strictly visual: native OpenCart controls, product IDs, stock and prices remain authoritative. */
@media(max-width:991.98px){
 #product-product .ds-page-title h1{
   font-size:26px!important;font-weight:850!important;line-height:1.14!important;
   letter-spacing:-.75px!important;color:#14243d!important;margin:4px 0 9px!important;
 }
 #product-product .ds-product-top-info{gap:5px!important;line-height:1.4!important}
 #product-product .ds-product-top-info span{font-size:11px!important;color:#7890a9!important}
 #product-product .ds-product-main-content{background:white!important;border-radius:0!important;gap:15px!important}
 #product-product .ds-product-images{
   background:radial-gradient(ellipse at 65% 20%,#fff 5%,#eaf6ff 60%,#dceefa 100%)!important;
   border-radius:19px!important;border:1px solid #e1edfa!important;
   overflow:hidden!important;padding:11px 9px!important;
 }
 #product-product .ds-product-images .ds-product-images-slide{
   background:transparent!important;border-radius:13px!important;overflow:hidden!important;
 }
 #product-product .ds-product-images-main{background:transparent!important;border-radius:14px!important}
 #product-product .ds-product-images-main img{
   display:block!important;object-fit:contain!important;max-height:355px!important;
   width:auto!important;max-width:100%!important;margin-inline:auto!important;
 }
 #product-product .ds-product-images .slick-dots{display:flex!important;justify-content:center;gap:5px}
 #product-product .ds-product-images .slick-dots li button{background:#aecfe4!important;border-radius:100px!important}
 #product-product .ds-product-images .slick-dots li.slick-active button{background:#0865de!important}
 #product-product .ds-product-main-stock{
   border-radius:100px!important;padding:8px 13px!important;
   min-height:34px!important;line-height:1.35!important;font-size:12px!important;
   font-weight:700!important;background:#e9f7f3!important;color:#0d876e!important;
 }
 #product-product .ds-product-main-stock.red-text{
   background:#fff2ee!important;color:#a84636!important;
 }
 #product-product .ds-product-wishlist,#product-product .ds-product-compare{
   background:#f4f9ff!important;border:1px solid #e3ecfa!important;border-radius:11px!important;
   min-width:40px!important;min-height:40px!important;
 }
 #product-product .ds-product-main-price{
   background:linear-gradient(110deg,#eef7ff,#e7f6ff)!important;
   border:1px solid #deedfb!important;border-radius:15px!important;
   padding:17px 16px!important;margin:11px 0 15px!important;
 }
 #product-product .ds-product-main-price .ds-price-new{
   color:#14243d!important;font-size:28px!important;letter-spacing:-.6px!important;font-weight:850!important;
 }
 #product-product .ds-product-main-price .ds-price-old{
   font-size:13px!important;line-height:1.5!important;color:#8191a7!important;
 }
 #product-product .ds-product-main-actions{
   background:#fff!important;border-radius:18px!important;border:1px solid #e3ecf8!important;
   box-shadow:0 9px 30px #14243d0d!important;padding:15px!important;
   margin:14px 0!important;
 }
 #product-product .ds-product-options .form-group{margin:0 0 19px!important}
 #product-product .ds-product-options .ds-control-label{
   font-size:14px!important;font-weight:800!important;letter-spacing:-.2px!important;
   color:#14243d!important;display:block!important;margin-bottom:10px!important;
 }
 #product-product .ds-product-options .options-box{gap:8px!important}
 #product-product .ds-product-options .options-box .radio{margin:0!important}
 #product-product .ds-product-options .options-box .radio>label{
   background:#fff!important;border:1px solid #dce8f7!important;
   border-radius:12px!important;min-height:45px!important;
   font-size:12px!important;line-height:1.25!important;
   color:#14243d!important;padding:10px 12px!important;
   display:inline-flex!important;justify-content:center!important;align-items:center!important;
   transition:background .15s,border-color .15s;
 }
 #product-product .ds-product-options .options-box .radio>label.selected{
   color:#0865de!important;background:#eef7ff!important;
   border:2px solid #0865de!important;padding:9px 11px!important;
 }
 #product-product .ds-product-options .options-box .radio>label img{
   object-fit:contain!important;max-width:34px!important;max-height:34px!important;
 }
 #product-product .ds-product-options .form-select,
 #product-product .ds-product-options input:not([type=radio]):not([type=checkbox]){
   border:1px solid #dce8f7!important;background:white!important;
   min-height:44px!important;border-radius:11px!important;color:#14243d!important;
 }
 #product-product #button-cart,#product-product .ds-product-main-cart-button{
   background:#00a9b5!important;border:0!important;border-radius:12px!important;
   color:white!important;min-height:51px!important;font-weight:800!important;
   box-shadow:0 5px 14px #00a9b51a!important;
 }
 #product-product #button-cart:hover{background:#008e9a!important}
 #product-product #button-cart:disabled{background:#a3bac5!important;box-shadow:none!important}
 #product-product .ds-product-fast-order-button{
   border:1px solid #cddff2!important;background:#fff!important;
   color:#236bad!important;min-height:45px!important;border-radius:11px!important;
 }
 #product-product .ds-product-main-attributes{
   display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px!important;
 }
 #product-product .ds-product-main-attributes-item{
   border-radius:12px!important;background:#f0f7ff!important;padding:11px!important;
   font-size:11px!important;color:#4d6782!important;
 }
 #product-product .ds-product-tabs{
   background:#fff!important;border-bottom:1px solid #e5eff8!important;
 }
 #product-product .ds-product-tabs-box{
   overflow-x:auto!important;scrollbar-width:none!important;gap:7px!important;
   white-space:nowrap!important;-webkit-overflow-scrolling:touch;
 }
 #product-product .ds-product-tabs-item{
   flex:0 0 auto!important;padding:12px 11px!important;
   color:#647d99!important;border-radius:9px 9px 0 0!important;font-size:12px!important;
 }
 #product-product .ds-product-tabs-item.active{
   color:#0865de!important;background:#eef7ff!important;font-weight:800!important;
 }
 #product-product .ds-product-advantages{
   background:#f5f9ff!important;border:1px solid #e4effb!important;border-radius:17px!important;
 }
 #product-product .ds-product-description,
 #product-product .ds-product-attributes,
 #product-product .ds-product-reviews{
   overflow-wrap:anywhere!important;
 }
}
@media(max-width:359.98px){
 #product-product .ds-product-main-price .ds-price-new{font-size:25px!important}
 #product-product .ds-product-options .options-box .radio>label{padding:9px!important;font-size:11px!important}
 #product-product .ds-product-main-actions{padding:12px!important}
}

/* MegaMart v0.7 — live OCTemplates cart + SmartCheckout: visual only.
   No changes to server order calculation, payment, shipping, stock or validation. */
.mm-cart-empty-page{color:#14243d}
.mm-cart-crumbs{display:flex;align-items:center;gap:9px;padding:14px 0 18px;font-size:11px;color:#8097ae}
.mm-cart-crumbs a{color:#718ca9;text-decoration:none}
.mm-cart-empty-wrap{border:1px solid #deebfa;border-radius:21px;background:linear-gradient(155deg,#f3f9ff 8%,#eaf6ff 72%,#e5f8fb);display:grid;grid-template-columns:1fr 1.1fr;align-items:center;gap:12px;min-height:290px;padding:30px 28px;overflow:hidden;position:relative}
.mm-cart-empty-illustration{min-height:200px;position:relative;display:grid;place-items:center;isolation:isolate}
.mm-cart-orb{z-index:-1;position:absolute;border-radius:50%;pointer-events:none}
.mm-cart-orb-one{height:260px;width:260px;left:5%;top:-68px;background:#daedfb}
.mm-cart-orb-two{height:140px;width:140px;right:7%;bottom:-55px;background:#caedf1}
.mm-cart-bag{display:grid;place-items:center;width:152px;height:152px;border-radius:33px;background:#ffffffe8;box-shadow:0 14px 45px #24598815;transform:rotate(-8deg)}
.mm-cart-bag svg{height:118px;width:113px;transform:rotate(8deg)}
.mm-cart-empty-count{position:absolute;top:15px;right:22%;width:28px;height:28px;border-radius:50%;background:#00a9b5;color:white;display:grid;place-items:center;border:3px solid white;font-size:11px;font-weight:800}
.mm-cart-empty-body{min-width:0;position:relative}
.mm-cart-empty-eyebrow{font-size:10px;letter-spacing:1.5px;color:#277fbc;font-weight:850}
.mm-cart-empty-body h1{font-size:clamp(26px,3vw,35px);font-weight:850;letter-spacing:-.85px;line-height:1.14;margin:11px 0;color:#14243d}
.mm-cart-empty-body p{max-width:420px;color:#617c96;font-size:13px;line-height:1.6;margin:0 0 21px}
.mm-cart-empty-primary{min-height:47px;max-width:340px;display:flex;gap:12px;align-items:center;justify-content:center;background:#00a9b5;color:white!important;text-decoration:none!important;border-radius:12px;font-size:13px;font-weight:800;padding:11px 17px}
.mm-cart-empty-primary:hover{background:#008e99;color:white!important}
.mm-cart-empty-primary span{font-size:18px}
.mm-cart-empty-secondary{display:block;max-width:340px;padding:12px;margin-top:5px;text-align:center;color:#397dad!important;text-decoration:none!important;font-size:12px;font-weight:710}
.mm-cart-explore{padding:30px 0 40px}
.mm-cart-explore-header{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin:0 0 14px}
.mm-cart-explore-header h2{font-size:21px;letter-spacing:-.6px;margin:0;color:#14243d;font-weight:850}
.mm-cart-explore-header>span{font-size:11px;color:#8298b1}
.mm-cart-explore-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.mm-cart-explore-grid a{display:flex;align-items:center;gap:8px;background:#f4f9ff!important;border:1px solid #e2edfa;border-radius:13px;padding:13px 10px;color:#19324f!important;font-size:12px;font-weight:740;text-decoration:none!important;min-width:0;min-height:66px}
.mm-cart-explore-grid a>span{font-size:23px;color:#0865de;line-height:1;flex:none}
.mm-cart-explore-grid a>b{font-size:19px;color:#789dbb;margin-left:auto;font-weight:450}
.mm-cart-explore-grid a:hover{border-color:#9bcce5}
@media(max-width:991.98px){
  #checkout-cart,#checkout-checkout{padding-left:13px!important;padding-right:13px!important}
  #checkout-cart .ds-page-title h1,#checkout-checkout .ds-page-title h1{color:#14243d!important;font-size:27px!important;font-weight:850!important;letter-spacing:-.7px!important;line-height:1.2!important}
  #checkout-cart .ds-cart-item,#checkout-checkout .ds-cart-item,.oct-checkout .ds-cart-item{background:#fff!important;border:1px solid #e3edfa!important;border-radius:15px!important;padding:12px!important;margin-bottom:12px!important}
  #checkout-cart .ds-cart-item-desc,.oct-checkout .ds-cart-item-desc{min-width:0!important}
  #checkout-cart .ds-cart-item-title,.oct-checkout .ds-cart-item-title{font-size:13px!important;font-weight:730!important;line-height:1.35!important;color:#14243d!important}
  #checkout-cart .ds-cart-item-img img,.oct-checkout .ds-cart-item-img img{object-fit:contain!important;max-height:105px!important}
  #checkout-cart .ds-module-quantity,.oct-checkout .ds-module-quantity{border-radius:11px!important;border:1px solid #dce8f7!important;background:#f4f9ff!important}
  #checkout-cart .ds-cart-item-price-total,.oct-checkout .ds-cart-item-price-total{font-size:14px!important;color:#14243d!important;font-weight:820!important}
  #checkout-cart .ds-sticky-column.ds-cart-column,.oct-checkout .ds-sticky-column.ds-cart-column,.oct-checkout .oct-checkout-actions{background:linear-gradient(135deg,#edf7ff,#e6f6fc)!important;border-radius:16px!important;border:1px solid #d9e9f7!important;padding:16px!important}
  #checkout-cart .ds-cart-column-total-item,.oct-checkout .ds-cart-column-total-item{font-size:13px!important;line-height:1.4!important}
  #checkout-cart .button.button-primary,.oct-checkout .button.button-primary{background:#00a9b5!important;color:white!important;border-color:#00a9b5!important;border-radius:11px!important;min-height:48px!important;font-size:13px!important;font-weight:800!important}
  #checkout-cart .button.button-primary:hover,.oct-checkout .button.button-primary:hover{background:#008e9a!important}
  .oct-checkout .content-block.oct-checkout-block{border:1px solid #e1ebf8!important;border-radius:15px!important;padding:14px!important}
  .oct-checkout .content-block-title{font-size:15px!important;font-weight:810!important;color:#14243d!important;letter-spacing:-.2px!important}
  .oct-checkout .form-control,.oct-checkout .form-select{min-height:44px!important;border:1px solid #dbe7f5!important;border-radius:11px!important;background:#fafdff!important;font-size:13px!important}
  .oct-checkout .form-control:focus,.oct-checkout .form-select:focus{border-color:#54b8d0!important;box-shadow:0 0 0 3px #65cbd81e!important}
  .oct-checkout .shipping-method,.oct-checkout .payment-method{border-radius:16px!important;background:#f6faff!important}
  .oct-checkout .form-check-item{border-radius:11px!important;background:#fff!important;border:1px solid #e0eafb!important;margin-top:8px!important}
  .oct-checkout input[type=radio],.oct-checkout input[type=checkbox]{accent-color:#0865de}
  .mm-cart-empty-wrap{display:flex;flex-direction:column;gap:0;padding:18px 17px 23px;min-height:0}
  .mm-cart-empty-illustration{min-height:184px;width:100%}
  .mm-cart-bag{width:135px;height:135px;border-radius:29px}
  .mm-cart-bag svg{width:104px;height:111px}
  .mm-cart-orb-one{left:15%;top:-38px;width:210px;height:210px}
  .mm-cart-orb-two{right:0}
  .mm-cart-empty-count{right:24%;top:4px}
  .mm-cart-empty-body{width:100%;text-align:center}
  .mm-cart-empty-body h1{font-size:26px}
  .mm-cart-empty-body p{margin:0 auto 16px;font-size:12px}
  .mm-cart-empty-primary,.mm-cart-empty-secondary{max-width:none;width:100%}
  .mm-cart-explore{padding:25px 0 22px}
  .mm-cart-explore-header h2{font-size:20px}
  .mm-cart-explore-header>span{font-size:10px}
  .mm-cart-explore-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .mm-cart-explore-grid a{min-height:62px;font-size:12px;padding:11px 10px}
  .mm-cart-explore-grid a:last-child{grid-column:span 2}
}
@media(max-width:359.98px){
  .mm-cart-empty-wrap{padding:15px 12px 20px}
  .mm-cart-explore-grid a{font-size:11px}
  .mm-cart-explore-grid a>span{font-size:20px}
}
@media(min-width:600px) and (max-width:991.98px){.mm-cart-explore-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.mm-cart-explore-grid a:last-child{grid-column:auto}.mm-cart-empty-wrap{flex-direction:row}.mm-cart-empty-illustration{width:44%;flex:0 0 44%}.mm-cart-empty-body{text-align:left}.mm-cart-empty-body p{margin-left:0}.mm-cart-empty-count{right:12%}}

/* v0.8: guest customer form and server-side validation UX */
@media(max-width:991.98px){
 .oct-checkout .mm-guest-help{display:flex;gap:10px;align-items:flex-start;border:1px solid #d9edf3;background:linear-gradient(125deg,#f1fbfc,#ebf7ff);border-radius:13px;padding:12px!important;margin-bottom:5px}
 .oct-checkout .mm-guest-help-icon{width:30px;height:30px;flex:0 0 30px;display:grid;place-items:center;background:#fff;border-radius:9px;color:#009cac;font-weight:850}
 .oct-checkout .mm-guest-help strong{display:block;font-size:12px;line-height:1.4;color:#14243d;font-weight:790}
 .oct-checkout .mm-guest-help small{display:block;color:#64849b;font-size:11px;line-height:1.5;margin-top:2px}
 .oct-checkout .register_block .form-group{min-width:0}
 .oct-checkout .register_block label.dark-text{font-size:12px!important;line-height:1.4!important;display:block!important;color:#405978!important;margin-bottom:7px!important;font-weight:720!important}
 .oct-checkout .register_block .required{color:#dd625e!important}
 .oct-checkout .form-control.error_style,.oct-checkout .form-control[aria-invalid="true"]{border-color:#d86b66!important;background:#fffafa!important;box-shadow:0 0 0 2px #d86b6614!important}
 .oct-checkout .mm-inline-error{font-size:11px;line-height:1.5;color:#a94846;margin:6px 1px 0;overflow-wrap:anywhere}
 .oct-checkout .form-control:focus-visible{outline:2px solid #4dbecb!important;outline-offset:1px!important}
 .oct-checkout #checkoutCheckbox.error_style{outline:2px solid #d86b66!important;outline-offset:2px!important}
 .oct-checkout .payment-method-check-item:focus-within,.oct-checkout .form-check-item:focus-within{outline:2px solid #70bfcf;outline-offset:2px}
 .oct-checkout #button-go:disabled{opacity:.66!important;cursor:not-allowed!important}
}
@media(min-width:992px){
 .oct-checkout .mm-guest-help{display:flex;align-items:flex-start;gap:10px;margin-bottom:4px;padding:12px!important;border-radius:13px;border:1px solid #d7eafa;background:#f5fbff}
 .oct-checkout .mm-guest-help-icon{width:29px;height:29px;flex:0 0 29px;border-radius:8px;background:#fff;display:grid;place-items:center;color:#008e9a;font-weight:850}
 .oct-checkout .mm-guest-help strong{display:block;font-weight:740;color:#14243d;font-size:13px}
 .oct-checkout .mm-guest-help small{display:block;color:#69849b;font-size:11px;line-height:1.45;margin-top:4px}
 .oct-checkout .mm-inline-error{font-size:11px;color:#ab4b4b;margin-top:5px}
 .oct-checkout .form-control[aria-invalid="true"]{border-color:#da7773!important}
}
