:root{--ink:#15120d;--muted:#665f56;--surface:#fffdf8;--soft:#fff3df;--field:#fffaf1;--brand:#007d7d;--brand-dark:#004f4f;--accent:#ff850f;--line:#eadcc8;--danger:#b84c42;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink)}*{box-sizing:border-box}body{margin:0;background:#fff8eb}button,input,select,textarea{font:inherit}button{cursor:pointer}.topbar{align-items:center;background:rgba(255,248,235,.96);border-bottom:1px solid var(--line);display:flex;gap:16px;justify-content:space-between;padding:12px clamp(16px,4vw,42px);position:sticky;top:0;z-index:20}.brand{align-items:center;color:var(--ink);display:flex;gap:12px;text-decoration:none}.brand img{height:56px;width:56px;object-fit:contain}.brand b{display:block}.brand small{color:var(--muted);display:block;font-weight:800}nav{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}nav button,.btn{background:#fff;border:1px solid var(--line);border-radius:8px;color:var(--ink);font-weight:900;min-height:42px;padding:10px 13px}.btn.primary,nav button.active{background:linear-gradient(135deg,var(--brand),var(--brand-dark));border-color:transparent;color:#fff}em{background:var(--accent);border-radius:999px;color:#15120d;font-style:normal;margin-left:4px;padding:2px 7px}.hero{background:linear-gradient(90deg,rgba(14,12,9,.86),rgba(0,79,79,.58),rgba(255,133,15,.32)),url("assets/brand/mud-squad-brand-banner.webp");background-position:center;background-size:cover;color:#fff;min-height:520px;padding:clamp(28px,6vw,76px);display:grid;place-items:end start}.hero img{background:#fff;border-radius:8px;max-width:min(320px,76vw);padding:10px}.hero h1{font-size:clamp(2.4rem,8vw,5.8rem);line-height:.94;margin:.3em 0;max-width:900px}.page{margin:0 auto;max-width:1180px;padding:28px clamp(14px,4vw,38px) 56px}.head{align-items:end;display:flex;gap:16px;justify-content:space-between;margin-bottom:16px}.head h2{font-size:clamp(1.8rem,4vw,3rem);line-height:1;margin:0}.eyebrow{color:var(--brand-dark);font-size:.74rem;font-weight:900;letter-spacing:.08em;margin:0 0 6px;text-transform:uppercase}.grid{display:grid;gap:16px}.products{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.card,.panel,.product,.media,.order{background:var(--surface);border:1px solid var(--line);border-radius:8px;overflow:hidden}.product{text-align:left}.product .photo{background:#fff;display:grid;height:230px;place-items:center}.product img,.media img{height:100%;object-fit:contain;width:100%}.body{padding:14px}.meta{color:var(--muted);font-size:.92rem;margin:0}.price{color:var(--brand-dark);font-size:1.35rem;font-weight:1000}.pill{background:var(--soft);border:1px solid var(--line);border-radius:999px;color:var(--brand-dark);display:inline-flex;font-size:.78rem;font-weight:900;margin:6px 6px 0 0;padding:6px 9px}.toolbar,.formgrid{display:grid;gap:12px;grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:18px}label{color:var(--muted);display:grid;font-size:.88rem;font-weight:900;gap:7px}input,select,textarea{background:var(--field);border:1px solid var(--line);border-radius:8px;min-height:44px;padding:10px 12px;width:100%}textarea{resize:vertical}.wide{grid-column:1/-1}.modal{background:rgba(21,18,13,.62);bottom:0;display:grid;left:0;place-items:center;position:fixed;right:0;top:0;z-index:50;padding:16px}.modalbox{background:var(--surface);border-radius:8px;display:grid;grid-template-columns:minmax(260px,.9fr) minmax(280px,1fr);max-height:90vh;max-width:980px;overflow:auto;position:relative;width:100%}.close{position:absolute;right:12px;top:12px;border-radius:50%;height:40px;width:40px}.detailmedia{background:#fff;padding:16px}.detailmedia>img{height:420px;object-fit:contain;width:100%}.thumbs{display:grid;gap:8px;grid-template-columns:repeat(auto-fill,minmax(72px,1fr))}.thumbs img{height:72px;object-fit:cover;width:100%}.detailbody{display:grid;gap:13px;padding:24px}.cart{display:grid;gap:18px;grid-template-columns:minmax(0,1fr) 360px}.line{align-items:center;border-bottom:1px solid var(--line);display:grid;gap:12px;grid-template-columns:72px minmax(0,1fr) auto;padding:12px}.line img{height:72px;object-fit:contain;width:72px}.total{align-items:center;background:var(--soft);border:1px solid var(--line);border-radius:8px;display:flex;justify-content:space-between;margin:12px 0;padding:14px}.total strong{font-size:1.7rem;color:var(--brand-dark)}.admin{display:grid;gap:18px;grid-template-columns:260px minmax(0,1fr)}.tabs{display:grid;gap:8px;align-self:start;position:sticky;top:90px}.tabs button.active{background:var(--brand-dark);color:#fff}.panel{padding:16px}.adminitem{align-items:center;display:grid;gap:12px;grid-template-columns:82px minmax(0,1fr) auto;padding:10px}.adminitem img{height:72px;object-fit:contain;width:82px}.media-grid{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}.media img{background:#fff;height:280px}.notice{background:#ecfff6;border:1px solid #bfe7d3;border-radius:8px;color:var(--brand-dark);font-weight:900;padding:11px 12px}.empty{border:1px dashed var(--line);border-radius:8px;color:var(--muted);padding:22px;text-align:center}footer{background:#15120d;color:#fff;padding:28px;text-align:center}footer img{height:70px}@media(max-width:860px){.topbar{align-items:flex-start;flex-direction:column}.toolbar,.formgrid,.cart,.admin,.modalbox{grid-template-columns:1fr}.tabs{position:static}.line{grid-template-columns:58px minmax(0,1fr)}.line img{height:58px;width:58px}}
.media-section{border-top:1px solid var(--line);margin-top:24px;padding-top:20px}.head.compact{margin-bottom:12px}.head.compact h3{font-size:clamp(1.25rem,3vw,2rem);margin:0}.media .body .meta{line-height:1.35}

.image-preview-grid{display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));margin:14px 0}.image-preview-grid figure{background:#fff;border:1px solid var(--line);border-radius:8px;margin:0;overflow:hidden}.image-preview-grid img{height:130px;object-fit:cover;width:100%}.image-preview-grid figcaption{color:var(--muted);font-size:.78rem;font-weight:900;padding:7px}.actions{display:flex;flex-wrap:wrap;gap:10px}

.design-preview{display:flex;align-items:center;gap:10px;margin:8px 0 12px;min-height:0}
.design-preview img{width:3cm!important;height:3cm!important;max-width:3cm!important;max-height:3cm!important;object-fit:cover;border:1px solid var(--line);border-radius:8px;background:#fff;flex:0 0 3cm}
.design-preview span{font-weight:800;color:var(--ink)}

.reseller-nav[hidden],.admin-nav[hidden]{display:none!important}
.adminitem input[readonly],.panel input[readonly]{background:#fff;border-style:dashed}
.order{border:1px solid var(--line);border-radius:8px;padding:12px;margin:10px 0;background:#fff}

.detailbody .design-preview img{width:3cm!important;height:3cm!important;max-width:3cm!important;max-height:3cm!important}

.install-panel{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:16px;margin:0 0 18px}
.install-panel h3{margin:2px 0 6px}
.install-panel input{min-width:min(520px,100%);background:#fff;border-style:dashed}
.install-panel .actions{display:flex;gap:10px;flex-wrap:wrap}
@media(max-width:760px){.install-panel{display:block}.install-panel .actions{margin-top:12px}.install-panel input{min-width:0;width:100%}}

.tablewrap{overflow:auto;width:100%}.data-table{width:100%;border-collapse:collapse;background:#fff}.data-table th,.data-table td{border:1px solid var(--line);padding:10px;text-align:left;vertical-align:top}.data-table th{background:#fff6e6}.data-table input[readonly]{min-width:260px;font-size:12px}.data-table .btn{margin:2px}


/* mobile-polish-20260629 */
html{scroll-behavior:smooth}img{max-width:100%}.btn,nav button{touch-action:manipulation}.topbar{backdrop-filter:saturate(140%) blur(10px)}nav button{white-space:nowrap}.hero p{max-width:680px}.product,.btn,nav button{transition:transform .12s ease,border-color .12s ease}.product:active,.btn:active,nav button:active{transform:translateY(1px)}.product .body{min-height:178px;display:block}.product h3,.media b,.adminitem b{overflow-wrap:anywhere}.media{min-width:0}.media .body{padding:13px}.modalbox{box-shadow:0 24px 60px rgba(21,18,13,.28)}.detailbody h2{font-size:clamp(1.55rem,4vw,2.35rem);line-height:1.05;margin:.1em 0}.detailbody label,.card label,.panel label{min-width:0}.actions .btn,.actions button{flex:0 1 auto}.adminitem .actions{justify-content:flex-end}.tablewrap{-webkit-overflow-scrolling:touch}.data-table{min-width:760px}.data-table td{word-break:normal}.data-table input[readonly]{width:320px;max-width:70vw}.install-panel{min-width:0}.install-panel>div{min-width:0}.install-panel input{font-size:.9rem}.order p{overflow-wrap:anywhere}
@media(max-width:980px){
  .page{padding:24px clamp(12px,4vw,26px) 48px}.hero{min-height:460px}.hero h1{font-size:clamp(2.1rem,9vw,4.4rem)}.products{grid-template-columns:repeat(2,minmax(0,1fr))}.media-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cart{grid-template-columns:1fr}.cart aside{position:static}.adminitem{grid-template-columns:76px minmax(0,1fr)}.adminitem .actions{grid-column:1/-1;justify-content:flex-start}.adminitem .btn{flex:1 1 150px}.detailmedia>img{height:340px}
}
@media(max-width:760px){
  body{background:#fff8eb;overflow-x:hidden}.topbar{gap:10px;padding:10px 12px}.brand{width:100%;gap:10px}.brand img{height:46px;width:46px}.brand b{font-size:1rem}.brand small{font-size:.72rem;max-width:64vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}nav{display:flex;flex-wrap:nowrap;gap:7px;justify-content:flex-start;margin:0 -12px;padding:2px 12px 4px;overflow-x:auto;width:calc(100% + 24px);scrollbar-width:none}nav::-webkit-scrollbar{display:none}nav button,.btn{border-radius:8px;font-size:.92rem;min-height:40px;padding:9px 11px}nav button{flex:0 0 auto}.hero{align-items:end;background-position:center;min-height:420px;padding:24px 14px}.hero img{max-width:178px;padding:7px}.hero h1{font-size:2.25rem;line-height:.98;max-width:96vw}.hero p{font-size:.98rem;line-height:1.45}.hero .btn{margin:4px 4px 0 0}.page{padding:20px 10px 42px}.head{align-items:flex-start;display:block}.head h2{font-size:1.9rem;line-height:1.03}.head .btn{margin-top:10px}.products,.media-grid,.grid{grid-template-columns:1fr}.product .photo{height:210px}.product .body{min-height:0;padding:13px}.price{font-size:1.18rem}.media img{height:auto;max-height:420px;object-fit:contain}.toolbar,.formgrid{grid-template-columns:1fr;gap:10px}.toolbar{position:sticky;top:103px;z-index:10;background:#fff8eb;border-bottom:1px solid var(--line);padding-bottom:10px}.modal{align-items:start;padding:0}.modalbox{border-radius:0;grid-template-columns:1fr;max-height:100dvh;min-height:100dvh;width:100%}.close{position:fixed;right:10px;top:10px;z-index:2;background:#fff}.detailmedia{padding:48px 10px 10px}.detailmedia>img{height:260px}.thumbs{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.thumbs img{height:58px}.detailbody{gap:10px;padding:16px 12px 24px}.detailbody .btn.primary{width:100%}.design-preview{align-items:flex-start}.design-preview span{font-size:.9rem}.cart{display:block}.cart .card,.cart aside{margin-bottom:14px}.line{align-items:start;grid-template-columns:64px minmax(0,1fr);padding:10px}.line>.btn{grid-column:1/-1;width:100%}.line img{height:64px;width:64px}.total strong{font-size:1.45rem}.admin{display:block}.tabs{display:flex;gap:7px;margin-bottom:12px;overflow-x:auto;padding-bottom:4px}.tabs button{flex:0 0 auto}.panel{padding:13px}.adminitem{grid-template-columns:62px minmax(0,1fr);padding:10px}.adminitem img{height:58px;width:62px}.adminitem .actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.adminitem .actions .btn{width:100%}.image-preview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.image-preview-grid img{height:112px}.install-panel{padding:13px}.install-panel .actions{display:grid;grid-template-columns:1fr 1fr}.install-panel .btn{width:100%;text-align:center}.data-table{min-width:720px}.tablewrap{border:1px solid var(--line);border-radius:8px}.notice{font-size:.9rem;line-height:1.35}.empty{padding:18px 12px}footer{padding:22px 14px}footer img{height:56px}
}
@media(max-width:430px){
  .hero{min-height:380px}.hero h1{font-size:1.95rem}.hero img{max-width:148px}.products{gap:12px}.product .photo{height:190px}.media img{max-height:360px}.detailmedia>img{height:220px}.thumbs img{height:52px}.install-panel .actions,.adminitem .actions{grid-template-columns:1fr}.btn,nav button{font-size:.88rem}.page{padding-left:8px;padding-right:8px}.panel,.card,.product,.media,.order{border-radius:8px}.data-table{min-width:680px}
}


/* reseller-mobile-polish-20260629 */
.reseller-page{max-width:1040px}.reseller-page .head h2{overflow-wrap:anywhere}.reseller-share-panel>input[readonly]{font-size:.92rem;margin:4px 0 14px;overflow:hidden;text-overflow:ellipsis}.reseller-share-panel .actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));align-items:stretch}.reseller-share-panel .actions .btn{text-align:center;width:100%}.reseller-orders-panel .order{display:grid;gap:5px}.reseller-login-panel{max-width:620px;margin:0 auto}.reseller-login-panel .btn.primary{margin-top:10px}.reseller-page .install-panel{box-shadow:0 10px 26px rgba(21,18,13,.06)}
@media(max-width:760px){
  .reseller-page{padding-top:14px}.reseller-head{margin-bottom:12px}.reseller-page .head h2{font-size:1.65rem}.reseller-page .install-panel{margin-bottom:12px}.reseller-page .install-panel h3{font-size:1.12rem;line-height:1.15}.reseller-page .install-panel .meta{font-size:.86rem;line-height:1.35}.reseller-page .install-panel input,.reseller-share-panel>input[readonly]{font-size:.8rem;line-height:1.2;min-height:42px;padding:9px;white-space:nowrap}.reseller-share-panel .actions{grid-template-columns:1fr 1fr;gap:8px}.reseller-share-panel .actions .btn{min-height:42px;padding-left:8px;padding-right:8px}.reseller-orders-panel h2,.reseller-login-panel h2{font-size:1.35rem;margin-top:0}.reseller-orders-panel .order{padding:12px}.reseller-orders-panel .order b{font-size:1rem}.reseller-orders-panel .order p{font-size:.88rem;line-height:1.35}.reseller-login-panel label{margin-top:10px}.reseller-login-panel .btn.primary{width:100%}
}
@media(max-width:430px){
  .reseller-page{padding-left:8px;padding-right:8px}.reseller-share-panel .actions{grid-template-columns:1fr}.reseller-page .install-panel .actions{grid-template-columns:1fr}.reseller-page .head h2{font-size:1.42rem}.reseller-share-panel>input[readonly]{font-size:.74rem}.reseller-page .notice{font-size:.84rem}
}


/* catalogue-zoom-20260630 */
.zoom-media{position:relative}.zoom-trigger{position:absolute;right:10px;top:10px;z-index:2;min-width:104px;height:42px;border-radius:999px;border:2px solid #15120d;background:#ffcc24;color:#15120d;font-size:.86rem;font-weight:1000;box-shadow:0 8px 18px rgba(21,18,13,.28);text-transform:uppercase;letter-spacing:.02em}.zoom-media .btn{margin-top:10px}.image-zoom-modal{position:fixed;inset:0;z-index:80;background:rgba(21,18,13,.78);display:grid;place-items:center;padding:18px}.image-zoom-box{background:#fffdf8;border:1px solid var(--line);border-radius:8px;max-height:94vh;max-width:min(1120px,96vw);overflow:auto;padding:16px;text-align:center}.image-zoom-box h2{margin:0 48px 12px;font-size:clamp(1.2rem,3vw,2rem)}.image-zoom-box img{display:block;margin:0 auto 14px;max-height:78vh;max-width:100%;object-fit:contain}.zoom-close{background:#fff;z-index:90}.toolbar select option{font-weight:700}
@media(max-width:760px){.zoom-trigger{height:42px;width:42px;right:8px;top:8px}.image-zoom-modal{padding:0}.image-zoom-box{border-radius:0;max-height:100dvh;min-height:100dvh;max-width:100vw;width:100%;padding:54px 10px 18px}.image-zoom-box img{max-height:76dvh}.image-zoom-box .btn{width:100%}.zoom-close{position:fixed}}

.zoom-media::after{content:"";position:absolute;right:18px;top:18px;width:12px;height:12px;border:2px solid #15120d;border-radius:50%;pointer-events:none}.zoom-media::before{content:"";position:absolute;right:15px;top:30px;width:9px;height:2px;background:#15120d;transform:rotate(45deg);z-index:3;pointer-events:none}
@media(max-width:760px){.zoom-trigger{min-width:98px;height:40px;font-size:.8rem}.zoom-media::after{right:16px;top:17px}.zoom-media::before{right:13px;top:29px}}

.written-review-form{margin:12px 0 18px}.written-review-list{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.written-review{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:14px}.written-review strong{display:block;font-weight:1000}.written-review span{color:var(--accent);display:block;font-weight:1000;margin:4px 0}.written-review p{color:var(--muted);line-height:1.45;margin:0;overflow-wrap:anywhere}

.dealer-card .meta{color:var(--brand);font-weight:900}.dealer-card p{color:var(--muted);line-height:1.45;margin:.45rem 0 0}.dealer-card img{aspect-ratio:4/3;object-fit:cover}.home-featured-products .product .photo,
.product .photo {
  align-items: center;
  background: #fff;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.product .photo img,
.product img {
  display: block;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  width: 100%;
}

/* New Product Alert: keep the featured product image centered in its block. */
.home-featured-products {
  grid-template-columns: 1fr;
}
.home-featured-products .product {
  align-items: stretch;
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  min-height: 420px;
}
.home-featured-products .product .body {
  align-content: center;
  display: grid;
  order: 1;
  padding: 28px;
}
.home-featured-products .product .photo {
  align-items: center;
  background: #fff;
  display: flex;
  height: 420px;
  justify-content: center;
  order: 2;
  overflow: hidden;
  padding: 24px;
}
.home-featured-products .product .photo img {
  display: block;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  width: 100%;
}
@media (max-width: 760px) {
  .home-featured-products .product {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .home-featured-products .product .photo {
    height: 260px;
    order: 1;
  }
  .home-featured-products .product .body {
    order: 2;
  }
}
.delivery-box{background:var(--soft);border:1px solid var(--line);border-radius:8px;display:grid;gap:10px;margin:12px 0;padding:14px}.delivery-box legend{color:var(--brand-dark);font-weight:900;padding:0 6px}.choice-row{align-items:center;color:var(--ink);display:flex;font-size:.95rem;gap:10px}.choice-row input{width:auto}

.photo.alert-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;background:#fff;padding:8px}.photo.alert-gallery img{width:100%;height:100%;min-height:0;object-fit:contain;border-radius:8px;background:#fff}.home-featured-products .photo.alert-gallery{min-height:clamp(190px,30vw,340px);max-height:360px}@media(max-width:760px){.home-featured-products .photo.alert-gallery{min-height:220px;max-height:280px}.photo.alert-gallery{gap:5px;padding:6px}}

.photo.alert-gallery.image-count-1{grid-template-columns:1fr}.photo.alert-gallery.image-count-2{grid-template-columns:repeat(2,minmax(0,1fr))}.photo.alert-gallery.image-count-3{grid-template-columns:repeat(3,minmax(0,1fr))}

.happy-client-grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.happy-client-card{background:var(--card);border:1px solid var(--line);border-radius:8px;overflow:hidden}
.happy-client-cover{background:#fff;border:0;cursor:pointer;display:block;padding:0;width:100%}
.happy-client-cover img{display:block;height:300px;object-fit:cover;width:100%}
.happy-name{color:var(--brand-dark);font-size:1.05rem;font-weight:900;margin:0}
.happy-client-photos{display:grid;gap:8px;grid-template-columns:repeat(5,minmax(0,1fr));margin-top:12px}
.happy-zoom-wrap{position:relative}.happy-zoom-badge{align-items:center;background:#fff;border:1px solid var(--line);border-radius:999px;box-shadow:0 8px 18px rgba(0,0,0,.18);color:var(--brand-dark);display:flex;font-size:1rem;font-weight:900;height:38px;justify-content:center;position:absolute;right:10px;top:10px;width:38px;z-index:2}.happy-client-photos button{background:#fff;border:1px solid var(--line);border-radius:6px;cursor:pointer;padding:0}
.happy-client-photos img{display:block;height:82px;object-fit:cover;width:100%}
@media(max-width:760px){.happy-client-photos{grid-template-columns:repeat(3,minmax(0,1fr))}.happy-client-cover img{height:230px}}


.custom-print-grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.custom-print-card{background:var(--card,#fff);border:1px solid var(--line,#ddd);border-radius:10px;overflow:hidden}.custom-print-image{background:#fff;border:0;cursor:pointer;display:block;padding:0;position:relative;width:100%}.custom-print-image img{aspect-ratio:4/3;display:block;object-fit:cover;width:100%}.custom-print-card .body{padding:16px}.custom-print-card h3{margin:0 0 8px}
