/* Shared product catalog and editing surfaces. */
.product-page{max-width:1240px;margin:auto;padding:0 38px 90px}.products-main{max-width:1240px;margin:auto;padding:0 38px 90px}.catalog-heading{padding:70px 0 45px}.catalog-heading h1{font-size:clamp(2.4rem,5vw,4rem);line-height:1.4;margin:12px 0}.catalog-heading p,.price-note{color:#626d68}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}.product-card{overflow:hidden;border:1px solid #dcded4;border-radius:24px;background:#fffdf8}.product-card-image{position:relative;display:block;background:#edece3}.product-card-image img{display:block;width:100%;height:340px;object-fit:contain;object-position:top}.color-count{position:absolute;bottom:16px;right:16px;background:#fffdf4;border-radius:30px;padding:6px 14px;font-weight:700}.product-card-copy{padding:24px}.product-card-copy h2{margin:0 0 12px}.product-card-copy p{color:#626d68;font-size:14px;line-height:1.9}.product-meta{display:flex;gap:12px;margin:18px 0;font-size:13px}.product-meta span{background:#eeeee5;padding:4px 10px;border-radius:8px}.breadcrumbs{display:flex;flex-wrap:wrap;gap:12px;padding:25px 0;font-size:13px;color:#65746d}.product-hero{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:start;margin:24px 0 70px}.product-info{padding-top:24px}.product-info h1{font-size:clamp(2.2rem,4vw,3.6rem);line-height:1.4;margin:16px 0 24px}.product-description{font-size:17px;line-height:2.1;color:#50605a}.spec-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:30px 0}.spec-cards div{border-top:1px solid #bdc7bc;padding-top:15px}.spec-cards dt{font-size:12px;color:#69776f}.spec-cards dd{margin:7px 0;font-weight:750;font-size:19px}.product-actions{display:flex;gap:12px;flex-wrap:wrap}.price-note{font-size:13px;line-height:2;margin-top:24px}.price-note a{text-decoration:underline}.gallery-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;border-radius:24px;background:#eaeade;scrollbar-width:thin;scroll-padding:0}.gallery-slide{margin:0;flex:0 0 100%;scroll-snap-align:start;min-width:0}.gallery-slide img{width:100%;height:470px;object-fit:contain;display:block}.gallery-slide figcaption{text-align:center;padding:10px 14px;font-size:12px;min-height:42px;background:#f0efe6}.gallery-controls{display:flex;align-items:center;justify-content:space-between;margin:12px 0;font-size:12px;color:#69766b}.gallery-controls button{border:1px solid #c7cfc3;border-radius:50%;width:38px;height:38px;background:transparent;color:inherit;cursor:pointer;font:inherit}.gallery-thumbs{display:flex;gap:8px;overflow-x:auto}.gallery-thumbs a{flex:0 0 70px;border:2px solid transparent;border-radius:10px;overflow:hidden}.gallery-thumbs a[aria-current=true]{border-color:#234a42}.gallery-thumbs img{display:block;width:70px;height:64px;object-fit:cover}.product-section{padding:55px 0;border-top:1px solid #d4d9cb;scroll-margin-top:24px}.product-section h2{font-size:clamp(1.8rem,3vw,2.6rem);line-height:1.5;margin:12px 0}.section-heading{display:flex;justify-content:space-between;gap:30px;align-items:center}.section-heading p{font-size:13px;color:#68766b;line-height:1.9}.selected-color{border:1px solid #b9c9b6;background:#eef1e7;padding:14px 20px;border-radius:14px;margin:24px 0;font-weight:600}.color-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.color-option{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:18px 8px;border:1px solid #d4d9cb;background:#fffdf7;border-radius:15px;cursor:pointer;font:inherit;color:inherit;min-height:140px;transition:border-color .2s,background .2s}.color-option:hover,.color-option[aria-pressed=true]{border-color:#244e45;background:#e8eee1}.color-option[aria-pressed=true]{box-shadow:inset 0 0 0 1px #244e45}.color-option strong{font-size:23px}.color-option small{color:#68766b}.color-symbol{font-size:26px;color:#899b76}.color-option img{height:70px;width:90px;object-fit:cover;border-radius:8px}.selected-color-image{max-width:600px;max-height:550px;width:100%;object-fit:contain;margin-top:25px;border-radius:16px}.technical-section,.video-section{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:start}.technical-section p{line-height:2}.technical-list{margin-top:24px}.technical-list div{display:flex;justify-content:space-between;gap:20px;padding:15px 0;border-bottom:1px solid #d8dece}.technical-list dd{margin:0}.video-section video{display:block;max-width:100%;width:360px;max-height:650px;background:#e8e8dc;border-radius:24px;margin:auto}.music-credit{font-size:11px;color:#6b7568;margin-top:30px;overflow-wrap:anywhere}.music-credit p{white-space:normal;line-height:1.8}.empty-products{padding:50px 0}.product-footer{padding:30px 38px;border-top:1px solid #d4d9cb;display:flex;justify-content:space-between;gap:20px}
.admin-main{max-width:1160px!important}.admin-nav{display:flex;gap:22px}.admin-page-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:24px 0}.admin-page-heading h1{margin:12px 0}.editor-card{border:1px solid #d5dacd;background:#fffdf8;border-radius:20px;padding:26px;margin:22px 0}.editor-card h2{margin:0 0 18px}.editor-card h3{font-size:17px}.editor-card p{font-size:13px;line-height:1.9;color:#68776d}.editor-card label{display:block;font-size:14px;margin:8px 0}.editor-card label small{font-size:11px;color:#6e7b70}.editor-card input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=hidden]),.editor-card textarea,.editor-card select{font:inherit;color:inherit;display:block;width:100%;border:1px solid #bfcbbd;border-radius:9px;background:#fff;padding:11px 12px;margin-top:7px;box-sizing:border-box}.editor-card textarea{resize:vertical}.editor-card input[type=color]{display:block;width:58px;height:34px;border:0;background:none;padding:0}.editor-card input[type=file]{font-size:12px!important;direction:ltr;max-width:100%}.editor-card .checkline{display:flex;align-items:center;gap:8px;font-size:12px}.checkline input{accent-color:#275043}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:10px}.form-grid.three{grid-template-columns:repeat(3,1fr)}.small-button{border:1px solid #b7c5b3;padding:10px 16px;border-radius:9px;background:#eef1e8;color:#234a42;font:inherit;font-size:13px;cursor:pointer;margin-top:10px}.small-button:disabled{opacity:.5;cursor:wait}.table-scroll{overflow-x:auto}.color-editor{width:100%;border-collapse:collapse;min-width:670px}.color-editor th{text-align:right;font-size:12px;padding:12px 8px;background:#eff1e8}.color-editor td{padding:10px 7px;border-bottom:1px solid #e2e6da;vertical-align:middle}.color-editor td:first-child{width:80px}.color-editor td:nth-child(2){width:110px}.color-editor td:last-child{width:95px}.color-editor img{object-fit:cover;border-radius:8px}.gallery-editor{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.gallery-editor article{border:1px solid #dce2d3;border-radius:12px;padding:12px;min-width:0}.gallery-editor article>img{width:100%;height:145px;object-fit:contain;background:#eceee3;border-radius:8px}.publish-card{background:#eaf0e3}.publish-card .checkline{font-weight:700;font-size:17px}.uploads-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.uploads-grid>form{background:#f1f3e9;border-radius:12px;padding:18px;min-width:0}.uploads-grid p{min-height:42px}.upload-status{min-height:0!important}.upload-status:empty{display:none}.color-upload{margin-top:28px;border-top:1px solid #d9dfd0;padding-top:12px}progress{width:100%;accent-color:#254d43}.notice{background:#eaf1e2;color:#254c40;border:1px solid #bdcfad;padding:16px 20px;border-radius:12px;line-height:1.8}.error{background:#fff0eb;color:#8c3020;border:1px solid #e9b8a7;padding:16px 20px;border-radius:12px;line-height:1.8}.admin-product-list{display:grid;gap:16px}.admin-product-row{display:flex;align-items:center;gap:22px;border:1px solid #d7decf;background:#fffdf8;border-radius:16px;padding:18px}.admin-product-row img{width:85px;height:95px;object-fit:cover;border-radius:10px}.admin-product-row h2{font-size:21px;margin:6px 0}.admin-product-row p{font-size:13px;color:#68756a}.admin-product-row .row-actions{margin-right:auto;display:flex;gap:12px;flex-wrap:wrap}.status-badge{font-size:11px;padding:4px 10px;background:#e6ebdf;border-radius:20px}.status-badge.published{color:#1e533c;background:#deecd8}[hidden]{display:none!important}:focus-visible{outline:3px solid #aa663e;outline-offset:4px}
@media(max-width:950px){.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-hero{gap:28px}.gallery-slide img{height:400px}.product-actions .button{font-size:13px}.uploads-grid{grid-template-columns:1fr}.gallery-editor{grid-template-columns:repeat(3,1fr)}.technical-section,.video-section{gap:30px}.color-grid{grid-template-columns:repeat(4,1fr)}}
@media(max-width:640px){.product-page,.products-main{padding:0 20px 50px}.catalog-heading{padding:36px 0 25px}.product-grid{grid-template-columns:1fr}.product-card-image img{height:360px}.product-hero{grid-template-columns:1fr;gap:28px;margin-top:5px;margin-bottom:38px}.product-gallery{grid-row:1}.product-info{padding:0}.product-info h1{font-size:32px}.gallery-slide img{height:370px}.product-description{font-size:15px}.product-section{padding:35px 0}.section-heading{display:block}.color-grid{grid-template-columns:repeat(3,1fr);gap:8px}.color-option{min-height:130px;padding:12px 5px}.color-option small{font-size:11px}.technical-section,.video-section{grid-template-columns:1fr;gap:20px}.product-footer{padding:24px 20px;font-size:12px}.admin-header{flex-wrap:wrap;gap:16px}.admin-nav{order:3;width:100%;padding-top:12px;border-top:1px solid #d6dece}.admin-main{padding:20px!important}.admin-page-heading{align-items:start;flex-direction:column;gap:8px}.editor-card{padding:18px 14px}.form-grid,.form-grid.three{grid-template-columns:1fr;gap:4px}.gallery-editor{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.gallery-editor article{padding:8px}.gallery-editor article>img{height:110px}.admin-product-row{flex-wrap:wrap;gap:14px}.admin-product-row .row-actions{margin-right:0;width:100%}.spec-cards dd{font-size:18px}.spec-cards dt{font-size:11px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.products-main{width:100%}.editor-card input[type=checkbox],.editor-card input[type=radio]{width:18px;height:18px;min-height:18px;flex:0 0 18px;margin:0;padding:0}.editor-card input[type=color]{min-height:34px}.admin-product-row>.button{margin-right:auto}.color-grid .color-option img{object-fit:contain;background:#eeeee5}.admin-product-row .status-badge{display:inline-block}@media(max-width:640px){.admin-main{width:100%}.admin-product-row>.button{margin-right:0}}

/* Persian product names stay visually secondary to the catalog headline. */
.product-card-copy h2{font-size:20px;line-height:1.65;font-weight:720}.product-info h1{font-size:clamp(1.85rem,2.8vw,2.75rem);line-height:1.55;letter-spacing:-.35px}
.admin-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}.inbox-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:24px 0}.inbox-summary a{display:flex;flex-direction:column;gap:3px;padding:18px;border:1px solid #d5dacd;border-radius:14px;background:#fffdf8}.inbox-summary b{font-size:28px}.inbox-summary span{font-size:12px;color:#68776d}.inbox-filters{display:flex;gap:10px;align-items:end;margin:20px 0}.inbox-filters select{width:auto;min-width:170px}.inbox-filters .small-button{margin:0}.inbox-list{display:grid;gap:16px}.inbox-item{border:1px solid #d5dacd;border-radius:18px;background:#fffdf8;padding:22px}.inbox-item header{display:flex;justify-content:space-between;gap:16px;align-items:center}.inbox-item header>div{display:flex;gap:10px;align-items:center}.inbox-item time,.inbox-kind{font-size:11px;color:#6c786f}.inbox-item blockquote{margin:18px 0;padding:16px;border-right:3px solid #a85e47;background:#f4f2e9;border-radius:8px;white-space:pre-wrap}.inbox-item textarea{margin:7px 0 10px}.sent-reply{font-size:13px;background:#eaf0e3;padding:12px;border-radius:9px;white-space:pre-wrap}.quick-replies{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}.status-form{margin-top:15px}.status-form button{background:none;border:0;cursor:pointer}.status-badge.unanswered{background:#f3ead0;color:#765518}.status-badge.failed{background:#f8dfd7;color:#8d321f}.status-badge.answered{background:#deecd8;color:#1e533c}.template-list,.rule-list{display:grid;gap:10px;margin-top:20px}.template-list article,.rule-list article{border:1px solid #dce2d3;border-radius:12px;padding:15px}.template-list p{white-space:pre-wrap;font-size:13px}.rule-list article{display:flex;align-items:center;justify-content:space-between;gap:18px}.rule-list h3{margin:8px 0 3px}.rule-list .small-button{margin:0}.editor-card code{direction:ltr;display:inline-block;background:#edf0e7;padding:1px 5px;border-radius:4px}
@media(max-width:640px){.product-card-copy h2{font-size:19px}.product-info h1{font-size:27px}.inbox-summary{grid-template-columns:repeat(2,1fr)}.inbox-filters{align-items:stretch;flex-direction:column}.inbox-filters select{width:100%}.inbox-item{padding:16px}.inbox-item header,.rule-list article{align-items:flex-start;flex-direction:column}.admin-nav{overflow-x:auto;white-space:nowrap}}
/* Constrain grid children: long galleries must never enlarge the page. */
.product-hero{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.product-info,.product-gallery,.gallery-track,.gallery-thumbs{min-width:0;max-width:100%}
.gallery-track{width:100%;overscroll-behavior-x:contain}.gallery-slide img{height:auto;aspect-ratio:1;max-height:500px;object-fit:contain}
.gallery-thumbs{padding-bottom:6px;scrollbar-width:thin}.gallery-thumbs a{flex:0 0 54px}.gallery-thumbs img{width:54px;height:54px;object-fit:contain}
.product-card-image img{height:auto;aspect-ratio:1;object-fit:contain;object-position:center}
.nav-products{font-weight:750;background:#234a42;color:#fffdf4!important;padding:9px 16px;border-radius:999px;white-space:nowrap}
.site-header nav{align-items:center}
.latest-products{padding-block:18px 40px}.latest-products h2{font-size:clamp(1.8rem,3vw,2.6rem);margin:12px 0 26px}.latest-track{display:flex;gap:24px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;overscroll-behavior-x:contain;padding:4px 0 16px}.latest-track .product-card{flex:0 0 calc((100% - 48px)/3);min-width:0;scroll-snap-align:start}.latest-track .product-card-copy p{display:none}.latest-track .product-card-copy{padding:18px}.latest-track .product-meta{margin:12px 0}.latest-track .product-card-copy h2{font-size:19px;margin:0}.latest-track .product-card-image img{aspect-ratio:1}
.file-drop{display:flex!important;flex-direction:column;align-items:center;gap:12px;padding:30px;border:2px dashed #a2b4a0;border-radius:18px;background:#f0f3e9;cursor:pointer}.file-drop.dragging{background:#dcebd8}.file-drop input{max-width:380px!important}.file-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:18px 0}.file-hint{max-width:760px}.upload-item{padding:12px 0;border-top:1px solid #d4ddcb}.upload-item p{overflow-wrap:anywhere}.upload-item span{font-size:12px}.file-list-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.work-file-list{display:grid;gap:12px}.work-file{display:flex;align-items:center;gap:18px;padding:18px;border:1px solid #d4ddcb;border-radius:14px}.work-file-copy{flex:1;min-width:0}.work-file-copy h3{margin:0}.original-file{overflow-wrap:anywhere}.work-file-copy progress{max-width:300px;display:block;margin-top:12px}.work-file .small-button{white-space:nowrap}.danger{color:#983c2e;background:#fff0e9;border-color:#d6a091}dialog{font:inherit;color:#234a42;max-width:min(520px,90vw);border:1px solid #b9c8b2;border-radius:22px;padding:28px}dialog::backdrop{background:#162c26aa}#file-message:not(:empty){padding:14px;background:#eef1e7;border-radius:10px}.admin-nav{flex-wrap:wrap;gap:14px}.admin-header{flex-wrap:wrap}
@media(max-width:950px){.latest-track .product-card{flex-basis:calc((100% - 24px)/2)}}
@media(max-width:640px){.product-hero{grid-template-columns:minmax(0,1fr)}.gallery-slide img{max-height:390px}.site-header{flex-wrap:wrap}.site-header nav{display:flex;order:3;width:100%;justify-content:space-between;font-size:12px}.site-header nav a:last-child{display:block}.site-header .header-contact{font-size:11px}.latest-track .product-card{flex-basis:82%}.latest-products{padding-top:0}.latest-products .section-heading{display:block}.latest-products .section-heading>.button{margin-bottom:20px}.work-file{flex-wrap:wrap;padding:12px;gap:12px}.work-file>.small-button{margin-right:30px}.file-list-heading{align-items:start;flex-direction:column}.file-list-heading h2{margin:0}.admin-nav{white-space:normal;overflow:visible}.file-drop{padding:20px 12px}}
