/* Mazaya V6.6 — product detail/gallery + product editor only. Storefront header/menu untouched. */
.mz66-product-page {padding-top:24px;padding-bottom:82px;max-width:1450px}
.mz66-product-page *,.mz66-editor-gallery *{box-sizing:border-box}
.mz66-breadcrumbs {display:flex;align-items:center;flex-wrap:wrap;gap:9px;font-size:12px;color:#90939a;margin:0 0 26px;line-height:1.7}
.mz66-breadcrumbs a{color:#70747c;text-decoration:none}
.mz66-breadcrumbs a:hover{color:#13151a;text-decoration:underline}
.mz66-breadcrumbs [aria-current]{max-width:45ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mz66-product-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.85fr);gap:clamp(24px,4vw,64px);align-items:start;min-width:0}
.mz66-product-layout>section{min-width:0}
.mz66-photo-layout{display:grid;grid-template-columns:86px minmax(0,1fr);gap:14px;min-width:0;align-items:stretch}
.mz66-photo-rail{display:flex;flex-direction:column;gap:10px;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#d3d6dc transparent;max-height:570px;min-width:0;padding:3px 6px 3px 3px;overscroll-behavior:contain}
.mz66-rail-thumb{position:relative;display:flex;align-items:center;justify-content:center;flex:0 0 82px;width:100%;height:82px;border:1.5px solid #e8eaf0;border-radius:13px;background:#fafbfc;padding:6px;transition:border-color .18s,box-shadow .18s,background .18s;cursor:pointer}
.mz66-rail-thumb img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
.mz66-rail-thumb.is-active,.mz66-rail-thumb:hover{border-color:#f1be00;background:#fffdf1;box-shadow:0 0 0 2px #ffcf003d}
.mz66-rail-thumb:focus-visible,.mz66-gallery button:focus-visible,.mz66-lightbox button:focus-visible{outline:3px solid #20242c;outline-offset:2px}
.mz66-primary-indicator{position:absolute;bottom:4px;left:50%;transform:translateX(-50%);font-size:9px;font-weight:850;color:#282b31;background:#ffcf00;padding:2px 6px;border-radius:50px;pointer-events:none}
.mz66-photo-stage{position:relative;display:flex;align-items:center;justify-content:center;min-width:0;height:570px;max-height:570px;background:linear-gradient(145deg,#f7f8fa 1%,#fdfdfd 80%);border:1px solid #eaedf1;border-radius:20px;overflow:hidden;isolation:isolate}
.mz66-stage-label{position:absolute;left:22px;top:20px;z-index:2;color:#a2a7af;letter-spacing:1.3px;font-size:10px;font-weight:850}
.mz66-image-link{display:flex;align-items:center;justify-content:center;width:100%;height:100%;padding:49px 28px 65px;cursor:zoom-in;touch-action:pan-y;min-width:0}
.mz66-image-link img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;user-select:none;-webkit-user-drag:none}
.mz66-stage-nav{position:absolute;top:51%;transform:translateY(-50%);display:grid;place-items:center;width:43px;height:43px;border:1px solid #e6e7eb;border-radius:50%;color:#191b1e;background:#ffffffee;box-shadow:0 4px 16px #16161618;font-size:34px;line-height:1;cursor:pointer;z-index:2}
.mz66-stage-prev{left:13px}.mz66-stage-next{right:13px}
.mz66-stage-nav:hover{background:#ffcf00;border-color:#ffcf00}
.mz66-stage-tools{position:absolute;left:21px;right:21px;bottom:17px;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;pointer-events:none}
.mz66-photo-count,.mz66-view-photo{background:#fff;border:1px solid #e7e9ee;border-radius:8px;color:#333941;font-size:12px;font-weight:800;box-shadow:0 4px 15px #00000005}
.mz66-photo-count{padding:10px 12px;letter-spacing:.6px}
.mz66-view-photo{display:inline-flex;align-items:center;gap:8px;padding:10px 13px;cursor:pointer;pointer-events:auto}
.mz66-view-photo:hover{background:#fff4c8;border-color:#f2c600}
.mz66-gallery-hint{font-size:11px;color:#828892;display:flex;justify-content:space-between;gap:8px;margin:14px 0 0 102px;line-height:1.6}
.mz66-gallery-hint span{white-space:nowrap;color:#b1b5bd}
.mz66-product-benefits{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-top:24px;padding:16px 18px;background:#fafbfc;border:1px solid #f0f1f3;border-radius:13px}
.mz66-product-benefits>div{display:flex;align-items:center;gap:7px;font-size:10px;color:#50545b}
.mz66-product-benefits span{display:grid;place-items:center;width:22px;height:22px;border:1px solid #dcdfe6;border-radius:50%;color:#60666d;font-weight:800}
.mz66-product-benefits strong{font-weight:750}
.mz66-product-details{padding-top:14px}
.mz66-category-label{display:inline-flex;align-items:center;background:#fff8d8;border:1px solid #ffef99;border-radius:99px;padding:7px 12px;color:#716012;font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:1.05px}
.mz66-product-details h1{font-size:clamp(27px,2.8vw,40px);line-height:1.24;letter-spacing:-.9px;font-weight:800;margin:19px 0 16px;color:#171a1f;overflow-wrap:anywhere}
.mz66-status{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:800;margin-bottom:27px}
.mz66-status span{display:inline-block;width:8px;height:8px;border-radius:50%}
.mz66-status.is-instock{color:#188849}.mz66-status.is-instock span{background:#20b267}
.mz66-status.is-outstock{color:#bb555c}.mz66-status.is-outstock span{background:#bb555c}
.mz66-price-block{border-bottom:1px solid #eceef0;padding-bottom:22px;margin-bottom:20px}
.mz66-price-block .mz66-sale-price{font-size:clamp(28px,2.6vw,38px);font-weight:900;letter-spacing:-1px;line-height:1.3;color:#15171d}
.mz66-price-block del{display:block;color:#9ba0a9;font-size:14px;margin-top:2px}
.mz66-price-block p{font-size:12px;color:#868b93;margin:12px 0 0}
.mz66-description{line-height:1.85;overflow-wrap:anywhere;font-size:13px;color:#666a72;margin-bottom:24px;max-height:280px;overflow:auto}
.mz66-specifications{border-top:1px solid #eceef1;border-bottom:1px solid #eceef1;padding:17px 0;margin:24px 0}
.mz66-specifications h2{font-size:15px;font-weight:850;margin:0 0 12px}
.mz66-specifications>div{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:12px 0;border-top:1px solid #f2f3f5;font-size:13px}
.mz66-specifications>div>span{color:#848892}.mz66-specifications>div>strong{font-weight:800;text-align:right;overflow-wrap:anywhere}
.mz66-purchase-row{display:flex;align-items:end;gap:12px;margin:22px 0 15px}
.mz66-purchase-row label{font-size:11px;font-weight:850;color:#656971;display:grid;gap:7px}
.mz66-purchase-row input{height:49px;width:81px;padding:0 13px;border:1px solid #dce0e6;border-radius:10px;background:#fff}
.mz66-purchase-row .mz66-add-cart{display:flex;align-items:center;justify-content:center;gap:18px;min-height:49px;flex:1;font-weight:850;border-radius:10px}
.mz66-whatsapp-inquiry{display:flex;align-items:center;justify-content:center;gap:10px;text-align:center;min-height:49px;padding:12px 16px;background:#f4fff8;border:1px solid #b8e5c9;color:#147a42;border-radius:10px;font-size:13px;font-weight:850;text-decoration:none}
.mz66-whatsapp-inquiry:hover{background:#e5f9ed}
.mz66-sales-note{color:#8d929a;font-size:11px;line-height:1.7;margin-top:14px}
/* Full-screen lightbox */
.mz66-lightbox:not([open]){display:none}
.mz66-lightbox{position:fixed;inset:0;margin:auto;width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;padding:0;border:0;background:#101116;color:#fff;overflow:hidden}
.mz66-lightbox::backdrop{background:rgba(0,0,0,.88)}
.mz66-lightbox-shell{display:flex;flex-direction:column;width:100%;height:100%;max-height:100dvh;padding:13px 16px 20px;gap:15px}
.mz66-lightbox-top{display:flex;align-items:center;gap:17px;min-height:50px;color:#e0e3e8;font-size:12px;font-weight:750}
.mz66-lightbox-top>span:first-child{color:#ffcf00;font-size:14px;letter-spacing:.4px}.mz66-lightbox-top small{display:block;color:#9297a2;font-size:10px;font-weight:500;margin-top:4px}
.mz66-lightbox-top>span:nth-child(2){margin-left:auto}
.mz66-lightbox-close{display:grid;place-items:center;width:41px;height:41px;flex:0 0 41px;color:#fff;background:#292d35;border:1px solid #454950;border-radius:50%;font-size:29px;cursor:pointer}
.mz66-lightbox-stage{flex:1;display:grid;grid-template-columns:58px minmax(0,1fr) 58px;gap:10px;align-items:center;min-height:0;min-width:0;margin:auto;width:min(1260px,100%)}
.mz66-lightbox-stage img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;touch-action:pan-y;min-width:0;min-height:0}
.mz66-lightbox-arrow{display:grid;place-items:center;min-width:40px;width:48px;height:48px;border:1px solid #454950;border-radius:50%;background:#292d35;color:white;font-size:33px;cursor:pointer}
.mz66-lightbox-arrow:hover{background:#454950}
.mz66-lightbox-rail{display:flex;justify-content:safe center;gap:9px;overflow-x:auto;max-width:100%;padding:5px 0 12px;margin:0 auto;scrollbar-width:thin}
.mz66-lightbox-rail button{width:67px;height:67px;flex:0 0 67px;border:2px solid transparent;background:#24272e;border-radius:9px;padding:5px;cursor:pointer}
.mz66-lightbox-rail button.is-active{border-color:#ffcf00}
.mz66-lightbox-rail img{width:100%;height:100%;object-fit:contain}
/* Admin media editor */
.mz66-editor-gallery{min-width:0}
.mz66-editor-gallery .panel-top{flex-wrap:wrap}
.mz66-editor-gallery .panel-top h3{margin-bottom:6px}
.mz66-media-count{display:inline-flex;white-space:nowrap;border-radius:20px;padding:8px 12px;background:#fff5ce;color:#5f5016;font-size:11px;font-weight:850}
.mz66-media-count.mz66-too-many{background:#fff0f0;color:#b64040}
.mz66-main-upload-section{padding:18px;border:1px solid #ebeef2;background:#fcfcfd;border-radius:13px;margin-bottom:20px}
.mz66-gallery-upload-section{padding:18px;border:1px solid #ebeef2;border-radius:13px}
.mz66-editor-section-label{display:flex;align-items:center;flex-wrap:wrap;gap:9px;font-size:15px;font-weight:850;color:#30343c;margin-bottom:15px}
.mz66-editor-section-label>b{display:grid;place-items:center;width:27px;height:27px;border-radius:50%;font-size:10px;background:#ffcf00}
.mz66-editor-section-label span{font-size:11px;color:#9298a2;font-weight:550;margin-left:auto}
.mz66-current-main{display:flex;align-items:center;gap:16px;margin-bottom:15px}
.mz66-current-main img{width:122px;height:125px;object-fit:contain;border:1px solid #eceef2;border-radius:10px;background:#fff}
.mz66-current-main strong,.mz66-current-main span{display:block}
.mz66-current-main strong{font-size:13px}
.mz66-current-main span{font-size:11px;line-height:1.6;color:#848a93;margin-top:7px;max-width:360px}
.mz66-upload-button{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;padding:12px 18px;min-height:44px;background:#fff0b2;border:1px solid #f7ce3c;border-radius:9px;color:#312c1c;font-size:12px;font-weight:850;cursor:pointer}
.mz66-upload-button:hover{background:#ffe379}
.mz66-upload-button input[type=file]{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.mz66-upload-button:focus-within{outline:3px solid #2b2f36;outline-offset:3px}
.mz66-upload-gallery{background:#f8f9fa;border-color:#e1e3e6;color:#444950}
.mz66-upload-gallery:hover{background:#f0f2f5}
.mz66-editor-tip{font-size:11px;line-height:1.7;color:#8e929a;margin:0 0 12px}
.mz66-existing-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(142px,1fr));gap:10px;margin-bottom:16px}
.mz66-existing-photo{display:flex;flex-direction:column;gap:9px;padding:10px;background:#fff;border:1px solid #e8ebef;border-radius:11px;min-width:0}
.mz66-existing-photo:has(input[name=main_existing]:checked){border-color:#f1c200;background:#fffdf4;box-shadow:0 0 0 1px #ffcf0055}
.mz66-existing-photo img{display:block;width:100%;height:110px;object-fit:contain;border-radius:7px;background:#f7f8fa}
.mz66-existing-photo label{display:flex;align-items:center;gap:7px;color:#555b64;font-size:11px;font-weight:700;cursor:pointer}
.mz66-existing-photo input{accent-color:#e7b900}
.mz66-new-preview-grid{display:flex;gap:10px;flex-wrap:wrap;margin-top:13px}
.mz66-new-preview{display:grid;gap:5px;max-width:108px;min-width:0;padding:7px;border-radius:9px;border:1px solid #e4e6e9;background:white}
.mz66-new-preview img{width:90px;height:82px;object-fit:contain}
.mz66-new-preview span{font-size:9px;max-width:92px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#787e89}
.mz66-upload-note{margin:15px 0 0;color:#979ba4;font-size:11px;line-height:1.65}
@media(max-width:1100px){
 .mz66-product-layout{grid-template-columns:minmax(0,1fr) minmax(0,.85fr);gap:26px}
 .mz66-photo-layout{grid-template-columns:69px minmax(0,1fr);gap:10px}
 .mz66-rail-thumb{height:68px;flex-basis:68px}
 .mz66-photo-stage,.mz66-photo-rail{height:490px;max-height:490px}
 .mz66-gallery-hint{margin-left:79px}
 .mz66-product-benefits{padding:12px;gap:7px}
}
@media(max-width:800px){
 .mz66-product-layout{grid-template-columns:1fr;gap:30px}
 .mz66-photo-layout{grid-template-columns:77px minmax(0,1fr);gap:11px}
 .mz66-photo-stage,.mz66-photo-rail{height:min(90vw,520px);max-height:520px;min-height:340px}
 .mz66-rail-thumb{height:75px;flex-basis:75px}
 .mz66-product-details{padding-top:0}
 .mz66-product-benefits{margin-top:15px}
 .mz66-gallery-hint{margin-left:88px}
 .mz66-lightbox-stage{grid-template-columns:48px minmax(0,1fr) 48px;gap:4px}
}
@media(max-width:480px){
 .mz66-product-page{padding-top:16px;padding-bottom:50px}
 .mz66-breadcrumbs{margin-bottom:17px;font-size:11px}
 .mz66-breadcrumbs [aria-current]{max-width:22ch}
 .mz66-photo-layout{grid-template-columns:57px minmax(0,1fr);gap:8px}
 .mz66-photo-stage,.mz66-photo-rail{height:350px;max-height:350px;min-height:0}
 .mz66-rail-thumb{height:56px;flex-basis:56px;border-radius:9px;padding:3px}
 .mz66-primary-indicator{font-size:8px;bottom:2px;padding:1px 4px}
 .mz66-stage-label{top:13px;left:12px;font-size:8px}
 .mz66-image-link{padding:34px 12px 53px}
 .mz66-stage-nav{width:30px;height:30px;font-size:26px;top:51%;box-shadow:0 2px 8px #0001}
 .mz66-stage-prev{left:5px}.mz66-stage-next{right:5px}
 .mz66-stage-tools{left:10px;right:10px;bottom:10px;gap:7px}
 .mz66-photo-count,.mz66-view-photo{font-size:10px;padding:7px 8px;border-radius:6px}
 .mz66-view-photo svg{width:14px;height:14px}
 .mz66-gallery-hint{margin-left:0;font-size:10px}
 .mz66-product-benefits{gap:8px 13px;justify-content:start}
 .mz66-product-benefits>div{font-size:9px}
 .mz66-product-details h1{font-size:28px}
 .mz66-lightbox-shell{padding:9px 7px 12px;gap:8px}
 .mz66-lightbox-top{font-size:10px;gap:10px}
 .mz66-lightbox-top>span:first-child{font-size:11px}
 .mz66-lightbox-stage{grid-template-columns:34px minmax(0,1fr) 34px;gap:2px}
 .mz66-lightbox-arrow{width:32px;height:37px;min-width:32px;font-size:24px}
 .mz66-lightbox-rail button{width:52px;height:52px;flex-basis:52px}
 .mz66-main-upload-section,.mz66-gallery-upload-section{padding:13px}
 .mz66-editor-section-label{font-size:13px}
 .mz66-editor-section-label span{width:100%;margin-left:0}
 .mz66-current-main img{width:88px;height:90px}
 .mz66-existing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
