
/* DigiMor + ASP.NET integration */
body.digimor-store{background:#fffaf3;color:var(--ink);}
body.digimor-store .dm-live-main{min-height:55vh;}
body.digimor-store .shell{width:var(--shell);margin-inline:auto;}
body.digimor-store .site-header{z-index:50;}
body.digimor-store .hero-3d-stage{overflow:visible;isolation:isolate;border-radius:38px;}
body.digimor-store .hero-photo-main{z-index:3;}
body.digimor-store .hero-photo-small{z-index:4;}
body.digimor-store .hero-crate{z-index:6;}
body.digimor-store .hero-float-card{z-index:8;}
body.digimor-store .hero-3d-stage img{display:block;max-width:100%;}
.backend-product-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;}
.backend-product-grid .product-card{height:100%;}
.product-card .product-media>a{display:block;width:100%;height:100%;}
.product-card .product-media img{width:100%;height:100%;object-fit:contain;}
.product-card .product-buy .view-pill{display:inline-flex;align-items:center;justify-content:center;border:0;background:var(--green);color:#fff;border-radius:999px;padding:9px 13px;font-weight:900;font-size:11px;}
.backend-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;}
.backend-category-card{background:#fff;border:1px solid var(--line);border-radius:24px;overflow:hidden;box-shadow:var(--shadow-sm);display:block;transition:.2s;}
.backend-category-card:hover{transform:translateY(-3px);box-shadow:var(--shadow);}
.backend-category-card img{width:100%;height:190px;object-fit:cover;background:#f4f7ef;}
.backend-category-card>div{padding:18px;}.backend-category-card h3{font-size:20px;margin:0 0 5px}.backend-category-card p{color:var(--muted);font-size:11px;margin:0}
.dm-menu-categories{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.dm-menu-categories a{font-size:11px;font-weight:850;color:#50645a}.dm-menu-categories a:hover{color:var(--green)}
.backend-product-detail{padding:48px 0 80px;}.backend-product-detail .product-detail-media{display:flex;align-items:center;justify-content:center;overflow:hidden}.backend-product-detail .product-detail-media img{max-width:88%;max-height:520px;object-fit:contain}.backend-product-detail .product-detail-copy form{margin-top:18px}.backend-product-detail .detail-price{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.backend-product-detail .detail-price strong{font-size:32px}.backend-product-detail .detail-price del{color:var(--muted)}
.backend-product-detail .product-attributes select,.backend-product-detail select,.backend-product-detail input[type=number],.backend-product-detail input[type=text]{max-width:100%;}
.backend-cart .cart-line{background:#fff;border:1px solid var(--line);border-radius:20px;padding:14px;}.backend-cart .cart-line img{object-fit:contain;background:#f8f8f4;border-radius:14px}.backend-cart .remove-button{border:0;background:transparent;color:#a5483f;font-weight:800;font-size:11px}.backend-cart .qty-control input{width:46px;border:0;text-align:center;background:transparent}.backend-cart .summary-card .primary-button{width:100%;text-align:center}
.checkout-backend{padding:36px 0 80px}.checkout-backend .checkout-layout{align-items:start}.checkout-backend .checkout-form{background:#fff;border:1px solid var(--line);border-radius:24px;padding:24px;box-shadow:var(--shadow-sm)}.checkout-backend .form-control,.checkout-backend .form-select{border:1px solid var(--line);border-radius:13px;padding:11px 12px;min-height:44px;box-shadow:none}.checkout-backend .form-label{font-size:11px;font-weight:800;color:var(--ink)}.checkout-backend .row{--bs-gutter-x:1rem}
.legal-content .content-section,.legal-content .products{padding:0!important}.legal-content .wrap,.legal-content .narrow{width:auto!important;max-width:none!important;margin:0!important}.legal-content .page-hero{display:none}.legal-content h2{margin-top:30px}.legal-content p{color:#596b61;line-height:1.75}
.contact-details-blank p:empty:after{content:'—';color:var(--muted)}
.account-page-wrap{padding:40px 0 80px}.account-page-wrap .profile-content{min-width:0}
.pagination .page-link{border-radius:10px!important;margin:0 3px;border:1px solid var(--line);color:var(--green)}.pagination .active>.page-link{background:var(--green);border-color:var(--green);color:#fff}
@media(max-width:1180px){.backend-product-grid{grid-template-columns:repeat(4,1fr)}}
@media(max-width:1020px){.backend-product-grid{grid-template-columns:repeat(3,1fr)}.backend-category-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:820px){.backend-product-grid{grid-template-columns:repeat(2,1fr)}.dm-menu-categories{display:none}}
@media(max-width:520px){.backend-product-grid,.backend-category-grid{grid-template-columns:1fr}.hero-3d-stage{overflow:hidden}}
/* Compatibility styling for copied DigitalMantra public content */
.content-section{padding:58px 0}.content-section .wrap{width:var(--shell);margin-inline:auto}.narrow{max-width:900px!important;margin-inline:auto!important}.content-section h2{font-size:clamp(28px,4vw,44px);letter-spacing:-.035em;margin-bottom:16px}.content-section p{color:#596b61;line-height:1.75}.breadcrumb{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px;margin-bottom:14px}.breadcrumb a{color:var(--green);font-weight:800}.icon-sm{width:18px;height:18px;display:inline-block;vertical-align:middle}.stats-strip{padding:8px 0 58px}.stats-grid{width:var(--shell);margin-inline:auto;display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.stat-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:22px;box-shadow:var(--shadow-sm)}.stat-card strong{display:block;font-size:30px;color:var(--green);letter-spacing:-.04em}.stat-card span{font-size:11px;color:var(--muted)}.value-list{list-style:none;padding:0;margin:25px 0 0;display:grid;gap:12px}.value-list li{display:flex;gap:13px;align-items:flex-start;background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;box-shadow:var(--shadow-sm)}.value-list li>svg{flex:0 0 auto;color:var(--green)}.big-banner{margin:20px 0 70px}.banner-inner{width:var(--shell);margin-inline:auto;background:linear-gradient(135deg,#1d724a,#0f5437);color:#fff;border-radius:28px;padding:34px;display:flex;justify-content:space-between;gap:28px;align-items:center;overflow:hidden}.banner-inner h2{color:#fff}.banner-inner p{color:rgba(255,255,255,.8)}.banner-art{display:flex;gap:4px;opacity:.45}.hero-icon{width:78px;height:78px}.eyebrow-sm{font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.16em;color:#f2c277}.help-topics{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}.help-topic-card{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:17px;color:var(--ink);font-weight:850;box-shadow:var(--shadow-sm)}.help-topic-card:hover{color:var(--green);transform:translateY(-2px)}.help-search{max-width:620px;background:#fff;border:1px solid var(--line);border-radius:15px;display:flex;margin-top:20px;overflow:hidden}.help-search input{flex:1;border:0;outline:0;padding:12px 14px;background:transparent}.help-search button{width:48px;border:0;background:var(--green);color:#fff}.faq-q{width:100%;border:0;background:transparent;padding:17px;display:flex;justify-content:space-between;gap:20px;text-align:left;font-weight:900}.faq-a{display:none;padding:0 17px 17px;color:var(--muted);font-size:13px;line-height:1.7}.faq-item.open .faq-a{display:block}.faq-item.open .faq-q .icon-sm{transform:rotate(90deg)}.pane-note{color:var(--muted);font-size:12px}.container-small{max-width:980px;margin-inline:auto}.legal-content .container-small{max-width:none}.contact-card{background:#fff;border:1px solid var(--line);border-radius:25px;padding:26px;box-shadow:var(--shadow-sm)}
@media(max-width:820px){.stats-grid{grid-template-columns:repeat(2,1fr)}.help-topics{grid-template-columns:repeat(2,1fr)}.banner-inner{flex-direction:column;align-items:flex-start}}
@media(max-width:520px){.stats-grid,.help-topics{grid-template-columns:1fr}.banner-art{display:none}}

/* DigiMor S2 reference alignment fixes */
body.digimor-store .market-hero{overflow:hidden;}
body.digimor-store .market-hero-grid{position:relative;z-index:1;}
body.digimor-store .hero-3d-stage{margin:0 8px 0 18px;}
body.digimor-store .hero-photo{box-sizing:border-box;}
body.digimor-store .category-directory .subcategory-card{grid-template-columns:auto 1fr auto;min-height:72px;}
body.digimor-store .category-directory .subcategory-card b{font-size:18px;color:var(--green);font-weight:700;}
@media(max-width:820px){body.digimor-store .hero-3d-stage{margin:0;overflow:hidden;}}

/* S3 final visual/integration fixes */
html,body{max-width:100%;overflow-x:hidden;}
body.digimor-store .market-hero{overflow:hidden;}
body.digimor-store .market-hero .shell{overflow:visible;}
body.digimor-store .hero-3d-stage{overflow:visible;max-width:100%;}
.page-hero.sm .wrap{width:var(--shell);margin-inline:auto;}
.page-hero.sm .wrap>h1,.page-hero.sm .help-search{margin-left:auto;margin-right:auto;}
.page-hero.sm .wrap>h1{text-align:center;}
.page-hero.sm .breadcrumb{max-width:620px;margin-left:auto;margin-right:auto;}
.catalog-product-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
@media(max-width:1020px){.catalog-product-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:820px){.catalog-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:520px){.catalog-product-grid{grid-template-columns:1fr;}}


/* S4 verified integration fixes */
/* Keep the 3D hero completely inside its grid column so the rotated photo border is never clipped. */
body.digimor-store .market-hero .hero-3d-stage{margin:0!important;width:100%;min-width:0;overflow:visible!important;}
body.digimor-store .market-hero .hero-photo-main{right:42px;max-width:calc(100% - 86px);}
body.digimor-store .market-hero .hero-photo-small{left:42px;max-width:42%;}
body.digimor-store .market-hero .orb-one{right:30px;max-width:calc(100% - 55px);}
body.digimor-store .market-hero .hero-crate{right:70px;max-width:calc(100% - 100px);}
body.digimor-store .market-hero .float-delivery{right:14px;}

/* Product gallery uses every backend ProductPicture without changing stored image paths. */
.product-gallery{min-width:0;}
.product-gallery-thumbs{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px;}
.product-gallery-thumb{width:72px;height:72px;padding:5px;border:1px solid var(--line);border-radius:14px;background:#fff;overflow:hidden;box-shadow:var(--shadow-sm);cursor:pointer;transition:.18s ease;}
.product-gallery-thumb img{width:100%;height:100%;object-fit:contain;display:block;}
.product-gallery-thumb:hover,.product-gallery-thumb.active{border-color:var(--green);box-shadow:0 8px 20px rgba(20,91,58,.16);transform:translateY(-1px);}

/* Checkout polish — same styling after agent login for billing, shipping and payment. */
.checkout-polished{width:min(1180px,calc(100% - 48px))!important;margin:46px auto 82px!important;padding:0!important;}
.checkout-polished>h2{text-align:center;font-size:clamp(34px,4vw,52px);margin:0 0 30px!important;color:var(--green);letter-spacing:-.04em;}
.checkout-polished>.row{display:grid!important;grid-template-columns:minmax(0,1.55fr) minmax(300px,.75fr);gap:28px;margin:0!important;align-items:start;}
.checkout-polished>.row>[class*="col-"]{width:auto!important;max-width:none!important;margin:0!important;padding:0!important;}
.checkout-polished form{background:#fff;border:1px solid var(--line);border-radius:28px;padding:30px;box-shadow:var(--shadow-sm);}
.checkout-polished form>h3,.checkout-polished form .d-flex>h3{color:var(--ink);letter-spacing:-.025em;}
.checkout-polished .form-label{display:block;font-size:11px!important;font-weight:850!important;color:var(--ink)!important;margin-bottom:7px;}
.checkout-polished .form-control,.checkout-polished .form-select{border:1px solid #dfe7dc!important;border-radius:14px!important;min-height:48px;padding:11px 13px!important;background:#fff!important;box-shadow:none!important;}
.checkout-polished .form-control:focus,.checkout-polished .form-select:focus{border-color:var(--green)!important;box-shadow:0 0 0 3px rgba(20,91,58,.08)!important;}
.checkout-polished .btn-primary{background:var(--green)!important;border-color:var(--green)!important;border-radius:999px!important;min-height:46px;font-weight:850;padding-inline:24px!important;}
.checkout-polished .btn-phoenix-secondary{border:1px solid var(--line)!important;border-radius:999px!important;min-height:46px;display:inline-flex;align-items:center;justify-content:center;padding-inline:22px!important;}
.checkout-polished>.row>.col-lg-5,.checkout-polished>.row>.col-xl-4{position:sticky;top:22px;}
.checkout-polished>.row>.col-lg-5 .card,.checkout-polished>.row>.col-xl-4 .card{border:1px solid var(--line);border-radius:26px;box-shadow:var(--shadow-sm);overflow:hidden;margin:0!important;background:#fff;}
.checkout-polished>.row>.col-lg-5 .card-body,.checkout-polished>.row>.col-xl-4 .card-body{padding:24px;}
.checkout-polished .table{margin-bottom:22px;background:#fbfdf9;border-radius:18px;overflow:hidden;}
.checkout-polished .table td{vertical-align:top;border:0!important;}
.checkout-confirm form>hr{border-color:var(--line);opacity:1;margin:26px 0!important;}
.checkout-confirm .paymentmethods>.col-md-6{width:100%;max-width:520px;}
.checkout-confirm #divpaymentbutton{width:auto!important;flex:1 1 auto;}
.checkout-confirm #divpaymentbutton+div{width:auto!important;flex:0 0 auto;min-width:132px;}
.checkout-confirm .row.g-2.mb-5{display:flex;align-items:stretch;gap:10px;margin-left:0;margin-right:0;}

/* About page real image */
.about-hero>img{width:100%;height:440px;object-fit:cover;object-position:center;border-radius:34px;}

/* No numbered "01/02 shown" labels on home category cards. */
.home-category-card>div>span:first-child{display:none!important;}

@media(max-width:1020px){
  body.digimor-store .market-hero .hero-photo-main{right:20px;max-width:calc(100% - 42px);}
  body.digimor-store .market-hero .hero-photo-small{left:18px;}
  body.digimor-store .market-hero .hero-crate{right:38px;max-width:calc(100% - 66px);}
  .checkout-polished>.row{grid-template-columns:1fr;}
  .checkout-polished>.row>.col-lg-5,.checkout-polished>.row>.col-xl-4{position:static;}
}
@media(max-width:820px){
  .checkout-polished{width:min(100% - 28px,720px)!important;margin-top:28px!important;}
  .checkout-polished form{padding:22px;}
  body.digimor-store .market-hero .hero-3d-stage{overflow:hidden!important;}
  body.digimor-store .market-hero .hero-photo-main{right:12px;max-width:calc(100% - 24px);}
}
@media(max-width:520px){
  .checkout-polished{width:calc(100% - 20px)!important;}
  .checkout-polished form{padding:18px;border-radius:20px;}
  .product-gallery-thumb{width:60px;height:60px;}
}

/* S5 checkout alignment, orders, hero spacing and compact pagination */
.checkout-polished .row.g-4{row-gap:22px!important;}
.checkout-polished .row.g-4>[class*="col-"]{margin:0!important;}
.checkout-polished .ddlCountry,.checkout-polished .ddlState,.checkout-polished .ddlCity{width:100%!important;}
.checkout-polished .same-address-check{display:flex!important;align-items:center;gap:9px;min-height:28px;white-space:nowrap;padding-left:0!important;}
.checkout-polished .same-address-check .form-check-input{position:static!important;float:none!important;margin:0!important;flex:0 0 auto;}
.checkout-polished .same-address-check .form-label{display:inline!important;margin:0!important;white-space:nowrap;line-height:1.3;}
.order-summary-item{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(92px,auto);gap:12px;align-items:center;padding:8px 0;}
.order-summary-product{min-width:0;}.order-summary-product .d-flex{min-width:0;}.order-summary-product h6{margin:0;min-width:0;overflow-wrap:anywhere;}
.order-summary-qty{white-space:nowrap;text-align:center;}.order-summary-price{white-space:nowrap;text-align:right;}
.orders-polished{width:min(1180px,calc(100% - 48px))!important;margin:42px auto 80px!important;padding:0!important;}
.orders-toolbar{margin-bottom:22px;}.orders-toolbar-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;width:100%;}
.orders-toolbar-inner h2{margin:0!important;}.orders-toolbar-inner .mb-5,.orders-toolbar-inner .mb-3{margin:0!important;}
.orders-toolbar-inner .search-box{width:min(340px,100%);}.orders-toolbar-inner .search-input{width:100%;border-radius:14px;}
.orders-polished .list{margin-left:0!important;margin-right:0!important;}.orders-polished .list>[class*="col-"]{padding-left:8px;padding-right:8px;}
.catalog-pagination{margin-top:34px}.catalog-pagination .pagination{flex-wrap:wrap;gap:3px}.catalog-pagination .page-link{min-width:38px;text-align:center}.catalog-pagination .page-item:first-child .page-link,.catalog-pagination .page-item:last-child .page-link{padding-left:14px;padding-right:14px;}
/* Keep floating hero labels clear of the rotated product photography. */
body.digimor-store .market-hero .hero-photo-main{width:360px!important;height:290px!important;right:10px!important;top:105px!important;max-width:calc(100% - 220px)!important;}
body.digimor-store .market-hero .hero-photo-small{left:20px!important;top:265px!important;width:180px!important;height:140px!important;max-width:30%!important;}
body.digimor-store .market-hero .float-fresh{left:0!important;top:40px!important;}
body.digimor-store .market-hero .float-delivery{right:0!important;top:415px!important;}
body.digimor-store .market-hero .float-choice{right:20px!important;bottom:18px!important;}
body.digimor-store .market-hero .hero-crate{right:92px!important;bottom:42px!important;width:300px!important;max-width:52%!important;}
@media(max-width:1020px){body.digimor-store .market-hero .hero-photo-main{max-width:calc(100% - 175px)!important;width:340px!important}.orders-polished{width:min(100% - 32px,900px)!important}}
@media(max-width:820px){.orders-toolbar-inner{align-items:stretch;flex-direction:column}.orders-toolbar-inner .search-box{width:100%;max-width:none}.order-summary-item{grid-template-columns:minmax(0,1fr) auto auto}body.digimor-store .market-hero .hero-photo-main{max-width:calc(100% - 24px)!important;width:340px!important;top:85px!important}.checkout-polished .same-address-check{white-space:normal}.checkout-polished .same-address-check .form-label{white-space:normal}}
@media(max-width:520px){.order-summary-item{grid-template-columns:1fr auto}.order-summary-product{grid-column:1/-1}.order-summary-price{text-align:right}}


/* S6 final homepage/header cleanup */
.signal-bar{overflow:hidden;}
.signal-ticker{width:100%;overflow:hidden;white-space:nowrap;}
.signal-track{display:flex;width:max-content;align-items:center;gap:44px;min-height:34px;padding-left:24px;animation:digimorTicker 30s linear infinite;will-change:transform;font-size:12px;font-weight:800;color:#244b39;}
.signal-track span{display:inline-flex;align-items:center;flex:0 0 auto;}
.signal-bar:hover .signal-track{animation-play-state:paused;}
@keyframes digimorTicker{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media(prefers-reduced-motion:reduce){.signal-track{animation:none;justify-content:center;width:100%;}.signal-track span:nth-child(n+2){display:none;}}

/* With delivery-location removed, let search use the freed space naturally. */
.site-header .header-tools{justify-content:flex-end;}
.site-header .header-main{grid-template-columns:190px minmax(320px,1fr) auto;}

/* Clean hero gallery: only two product images, no crate/badges/floating cards. */
body.digimor-store .market-hero{overflow:hidden;}
body.digimor-store .hero-clean-gallery{position:relative;min-height:560px;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);gap:24px;align-items:center;padding:38px 18px 30px 24px;isolation:isolate;}
body.digimor-store .hero-clean-gallery:before{content:"";position:absolute;width:430px;height:430px;border-radius:50%;right:56px;top:46px;background:radial-gradient(circle at 35% 30%,#e7f4d8,#c8e3b8 55%,#b7d9aa 100%);box-shadow:inset 0 0 70px rgba(255,255,255,.35);z-index:-1;}
body.digimor-store .hero-clean-card{margin:0;background:#fff;border:10px solid rgba(255,255,255,.9);border-radius:34px;overflow:hidden;box-shadow:0 24px 60px rgba(34,76,54,.16);}
body.digimor-store .hero-clean-card img{display:block;width:100%;height:100%;object-fit:cover;}
body.digimor-store .hero-clean-card-large{height:360px;transform:rotate(-2deg);}
body.digimor-store .hero-clean-card-small{height:245px;align-self:end;margin-bottom:50px;transform:rotate(3deg);}
@media(max-width:1020px){
  .site-header .header-main{grid-template-columns:160px minmax(260px,1fr) auto;}
  body.digimor-store .hero-clean-gallery{min-height:500px;gap:18px;padding-inline:10px;}
  body.digimor-store .hero-clean-card-large{height:320px;}
  body.digimor-store .hero-clean-card-small{height:220px;margin-bottom:34px;}
}
@media(max-width:820px){
  .site-header .header-main{grid-template-columns:150px 1fr auto;}
  body.digimor-store .hero-clean-gallery{min-height:450px;grid-template-columns:1fr 1fr;gap:14px;padding:24px 0 12px;}
  body.digimor-store .hero-clean-gallery:before{width:340px;height:340px;right:12%;top:38px;}
  body.digimor-store .hero-clean-card{border-width:7px;border-radius:26px;}
  body.digimor-store .hero-clean-card-large{height:280px;}
  body.digimor-store .hero-clean-card-small{height:205px;margin-bottom:26px;}
}
@media(max-width:520px){
  .signal-track{gap:28px;font-size:11px;animation-duration:24s;}
  .site-header .header-main{grid-template-columns:1fr auto;}
  body.digimor-store .hero-clean-gallery{min-height:auto;grid-template-columns:1fr;gap:14px;padding:22px 0 6px;}
  body.digimor-store .hero-clean-gallery:before{width:300px;height:300px;right:-30px;top:52px;}
  body.digimor-store .hero-clean-card-large,body.digimor-store .hero-clean-card-small{height:230px;margin:0;transform:none;}
  body.digimor-store .hero-clean-card-small{height:180px;width:78%;justify-self:end;}
}

/* S7 responsive pass — mobile/tablet only; desktop behavior remains unchanged. */
@media(max-width: 900px){
  html,body{max-width:100%;overflow-x:hidden;}
  body.digimor-store .shell{width:min(100% - 24px,1240px);}
  body.digimor-store .market-hero-grid{grid-template-columns:1fr!important;gap:20px!important;}
  body.digimor-store .market-hero-copy{max-width:100%;}
  body.digimor-store .market-hero-copy>p{max-width:100%;}
  body.digimor-store .hero-clean-gallery{width:100%;max-width:720px;margin-inline:auto;}
  .backend-product-detail .product-detail{grid-template-columns:1fr!important;gap:28px!important;}
  .backend-product-detail .product-detail-media{min-height:360px!important;}
  .backend-product-detail .product-detail-media img{max-height:420px!important;}
  .backend-cart .cart-layout,.checkout-backend .checkout-layout{grid-template-columns:1fr!important;}
  .checkout-polished{width:min(100% - 28px,760px)!important;margin:28px auto 60px!important;}
  .checkout-polished>.row{grid-template-columns:1fr!important;gap:20px!important;}
  .checkout-polished>.row>.col-lg-5,.checkout-polished>.row>.col-xl-4{position:static!important;}
  .orders-polished{width:min(100% - 28px,900px)!important;margin:28px auto 60px!important;}
  .legal-layout{grid-template-columns:1fr!important;gap:22px!important;}
  .legal-nav{position:static!important;}
  .contact-layout,.support-grid,.about-hero,.page-hero-grid,.category-directory-head{grid-template-columns:1fr!important;}
  .about-hero>img{height:clamp(260px,52vw,420px)!important;}
  .table-responsive,.checkout-polished .table-responsive,.account-page-wrap .table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch;}
  table{max-width:100%;}
  img,svg,video,iframe{max-width:100%;}
}

@media(max-width: 820px){
  body.digimor-store .site-header{position:sticky;top:0;}
  body.digimor-store .header-main{grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important;min-height:64px!important;}
  body.digimor-store .wordmark{min-width:0;}
  body.digimor-store .wordmark img{width:min(145px,42vw)!important;max-height:48px;}
  body.digimor-store .header-tools{gap:6px;justify-self:end;}
  body.digimor-store .header-tools .round-tool,body.digimor-store .header-tools .bag-tool,body.digimor-store .header-tools .account-tool{width:40px;height:40px;min-width:40px;padding:0!important;border-radius:50%!important;}
  body.digimor-store .header-tools .bag-tool span,body.digimor-store .header-tools .account-tool span{display:none!important;}
  body.digimor-store .mobile-panel.open{padding-left:13px;padding-right:13px;max-height:calc(100vh - 64px);overflow-y:auto;}
  body.digimor-store .mobile-search{position:sticky;top:0;background:#fff;padding-top:4px;z-index:2;}

  body.digimor-store .market-hero{padding:24px 0 28px!important;}
  body.digimor-store .market-hero-copy h1{font-size:clamp(42px,10vw,64px)!important;line-height:.98;}
  body.digimor-store .market-proof{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}
  body.digimor-store .market-proof>div{padding:12px 10px;min-width:0;}
  body.digimor-store .hero-clean-gallery{grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr)!important;min-height:auto!important;gap:12px!important;padding:18px 0 6px!important;}
  body.digimor-store .hero-clean-card-large{height:clamp(235px,43vw,310px)!important;}
  body.digimor-store .hero-clean-card-small{height:clamp(170px,31vw,225px)!important;margin-bottom:18px!important;}
  body.digimor-store .hero-clean-gallery:before{width:min(340px,72vw)!important;height:min(340px,72vw)!important;right:5%!important;top:24px!important;}

  .home-category-grid,.backend-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .backend-product-grid,.catalog-product-grid,.product-grid,.subcategory-products .product-grid,.product-grid.featured-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .subcategory-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .product-card,.backend-category-card,.home-category-card{min-width:0;}
  .product-card h3,.backend-category-card h3,.home-category-card h3{overflow-wrap:anywhere;}
  .product-card .product-media{min-height:180px;}
  .product-gallery-thumbs{gap:8px;}
  .product-gallery-thumb{width:64px;height:64px;}

  .checkout-polished form{padding:22px!important;border-radius:22px!important;}
  .checkout-polished .row.g-4{row-gap:16px!important;}
  .checkout-polished .same-address-check{white-space:normal!important;align-items:flex-start!important;}
  .checkout-polished .same-address-check .form-label{white-space:normal!important;}
  .order-summary-item{grid-template-columns:minmax(0,1fr) auto auto!important;gap:8px!important;}
  .orders-toolbar-inner{flex-direction:column!important;align-items:stretch!important;gap:14px!important;}
  .orders-toolbar-inner .search-box{width:100%!important;max-width:none!important;}
  .catalog-pagination .pagination{justify-content:center;gap:2px!important;}
  .catalog-pagination .page-link{min-width:36px;padding:8px 10px;}

  .footer-grid{grid-template-columns:1fr!important;gap:28px!important;}
  .footer-links{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .footer-news{grid-column:auto!important;}
  .footer-bottom{flex-wrap:wrap;}
}

@media(max-width: 576px){
  body.digimor-store .shell{width:calc(100% - 20px)!important;}
  .signal-track{font-size:10.5px!important;gap:24px!important;min-height:31px!important;animation-duration:26s!important;}

  body.digimor-store .market-hero-copy h1{font-size:clamp(38px,12vw,52px)!important;}
  body.digimor-store .market-hero-copy>p{font-size:15px!important;line-height:1.6!important;}
  body.digimor-store .hero-actions{flex-direction:column!important;align-items:stretch!important;}
  body.digimor-store .hero-actions>a,body.digimor-store .hero-actions>button{width:100%!important;}
  body.digimor-store .market-proof{grid-template-columns:1fr!important;}
  body.digimor-store .hero-clean-gallery{grid-template-columns:1fr!important;gap:12px!important;padding-top:14px!important;}
  body.digimor-store .hero-clean-card{border-width:6px!important;border-radius:22px!important;transform:none!important;}
  body.digimor-store .hero-clean-card-large{height:230px!important;}
  body.digimor-store .hero-clean-card-small{height:165px!important;width:82%!important;margin:0!important;justify-self:end!important;}
  body.digimor-store .hero-clean-gallery:before{width:250px!important;height:250px!important;right:-24px!important;top:36px!important;}

  .home-category-grid,.backend-category-grid,.backend-product-grid,.catalog-product-grid,.product-grid,.subcategory-products .product-grid,.product-grid.featured-grid,.subcategory-grid{grid-template-columns:1fr!important;}
  .backend-category-card img{height:180px!important;}
  .product-card .product-media{min-height:220px;}
  .section-heading,.compact-heading{gap:12px!important;}
  .section-heading h2,.compact-heading h2{font-size:clamp(30px,9vw,42px)!important;}
  .page-hero h1{font-size:clamp(38px,11vw,50px)!important;}
  .category-directory-head img{height:220px!important;}

  .backend-product-detail{padding:26px 0 54px!important;}
  .backend-product-detail .product-detail-media{min-height:280px!important;}
  .backend-product-detail .product-detail-media img{max-width:96%!important;max-height:340px!important;}
  .backend-product-detail .detail-price strong{font-size:27px!important;}
  .product-gallery-thumbs{justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px;}
  .product-gallery-thumb{flex:0 0 58px;width:58px;height:58px;}

  .backend-cart .cart-line{grid-template-columns:68px minmax(0,1fr) auto!important;gap:10px!important;}
  .backend-cart .cart-line img{width:68px!important;height:68px!important;}
  .checkout-polished{width:calc(100% - 16px)!important;margin-top:18px!important;}
  .checkout-polished>h2{font-size:clamp(30px,9vw,40px)!important;margin-bottom:20px!important;}
  .checkout-polished form{padding:16px!important;border-radius:18px!important;}
  .checkout-polished .form-control,.checkout-polished .form-select{min-height:45px!important;}
  .checkout-confirm .row.g-2.mb-5{flex-direction:column!important;}
  .checkout-confirm #divpaymentbutton,.checkout-confirm #divpaymentbutton+div{width:100%!important;min-width:0!important;}
  .checkout-confirm #divpaymentbutton .btn,.checkout-confirm #divpaymentbutton+div .btn{width:100%!important;}
  .order-summary-item{grid-template-columns:1fr auto!important;align-items:start!important;}
  .order-summary-product{grid-column:1/-1!important;}
  .order-summary-qty{text-align:left!important;}
  .order-summary-price{text-align:right!important;}
  .orders-polished{width:calc(100% - 18px)!important;margin-top:20px!important;}
  .orders-polished .card{border-radius:18px!important;}

  .legal-content{padding:22px 16px!important;border-radius:20px!important;}
  .legal-nav{padding:14px!important;border-radius:16px!important;}
  .content-section{padding:38px 0!important;}
  .contact-card{padding:18px!important;border-radius:20px!important;}
  .help-search{width:100%!important;}
  .help-search input{min-width:0;}
  .stats-grid,.help-topics{grid-template-columns:1fr!important;}
  .banner-inner{padding:22px!important;border-radius:22px!important;}
  .about-hero>img{height:240px!important;border-radius:22px!important;}

  .footer-links{grid-template-columns:1fr 1fr!important;gap:18px!important;}
  .footer-bottom{flex-direction:column!important;gap:8px!important;}
  .footer-news form{width:100%;}
  .footer-news input{min-width:0;}

  .search-panel{width:calc(100% - 18px)!important;margin-top:72px!important;padding:20px!important;border-radius:22px!important;}
  .search-panel h2{font-size:32px!important;}
  .overlay-search input{min-width:0;}
}

@media(max-width: 380px){
  body.digimor-store .wordmark img{width:124px!important;}
  body.digimor-store .header-tools .round-tool,body.digimor-store .header-tools .bag-tool,body.digimor-store .header-tools .account-tool{width:36px;height:36px;min-width:36px;}
  .footer-links{grid-template-columns:1fr!important;}
  .catalog-pagination .page-link{min-width:32px;padding:7px 8px;font-size:12px;}
}


/* S9: stable product cards, branded loader and responsive cart actions */
body.digimor-store .backend-product-grid .product-card{display:flex;flex-direction:column;height:100%;}
body.digimor-store .product-card .product-copy{display:flex;flex:1;flex-direction:column;min-height:0;}
body.digimor-store .product-card .product-copy-content{flex:1;min-height:0;}
body.digimor-store .product-card .product-name{min-height:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
body.digimor-store .product-card .product-buy{margin-top:auto;padding-top:14px;align-items:center;}
body.digimor-store .product-card .quick-cart-form{margin:0;flex:0 0 auto;}
body.digimor-store .product-card .add-cart-pill{white-space:nowrap;cursor:pointer;text-decoration:none;}
body.digimor-store .product-card .stock-pill{font-size:10px;font-weight:800;color:#9b413a;white-space:nowrap;}
body.digimor-store .remove-button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;cursor:pointer;}
body.digimor-store .dm-loading-overlay{background:rgba(247,250,245,.86);backdrop-filter:blur(3px);}
body.digimor-store .dm-logo-loader{width:74px;height:74px;border-radius:50%;background:#fff;display:grid;place-items:center;box-shadow:0 16px 45px rgba(20,91,58,.18);animation:dmLogoSpin 1.15s linear infinite;}
body.digimor-store .dm-logo-loader img{width:48px;height:48px;object-fit:contain;}
@keyframes dmLogoSpin{to{transform:rotate(360deg)}}
@media(max-width:520px){body.digimor-store .product-card .product-buy{gap:6px;}body.digimor-store .product-card .add-cart-pill{padding:8px 9px;font-size:10px;}body.digimor-store .product-card .price strong{font-size:15px;}}
@media(prefers-reduced-motion:reduce){body.digimor-store .dm-logo-loader{animation-duration:2.4s;}}


/* S10: stable 3x3 order history grid + responsive pagination */
.orders-polished .orders-grid > .order-history-item { display: flex; }
.orders-polished .order-history-item > .card { width: 100%; }
.orders-polished .order-history-item .card-body { min-height: 250px; }
.orders-polished .order-card-footer { margin-top: auto !important; align-items: center; }
.orders-polished .order-history-pagination .pagination { flex-wrap: wrap; gap: 6px; }
.orders-polished .order-history-pagination .page-link { border-radius: 10px; min-width: 40px; text-align: center; }
@media (max-width: 767.98px) {
  .orders-polished .orders-toolbar-inner { align-items: stretch; }
  .orders-polished .search-box, .orders-polished .search-box input { width: 100%; }
  .orders-polished .order-history-item .card-body { min-height: 0; }
  .orders-polished .order-history-pagination .page-link { min-width: 36px; padding: 8px 10px; }
}
