
.product-photo-open{display:block;position:relative;width:100%;padding:0;border:0;border-radius:0;background:#f0ece5;cursor:zoom-in}.product-photo-open:focus-visible{outline:3px solid #a88040;outline-offset:-3px}.product-zoom-label{position:absolute;left:10px;top:10px;padding:5px 9px;border-radius:999px;background:#fffdf9ed;color:#574431;font:600 12px/1.4 system-ui}.product-lightbox{width:min(1000px,calc(100vw - 24px));max-width:100%;max-height:calc(100dvh - 24px);padding:0;border:1px solid #d5c5a8;border-radius:14px;background:#fffdf9;color:#2d261f;box-shadow:0 18px 80px #0008}.product-lightbox::backdrop{background:#17120ee6}.product-lightbox-frame{display:flex;flex-direction:column;max-height:calc(100dvh - 26px)}.product-lightbox-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px}.product-lightbox-title{font:700 17px/1.4 system-ui;margin:0;overflow-wrap:anywhere;max-height:4.2em;overflow:auto}.product-lightbox button{font:600 15px/1.3 system-ui;min-width:44px;min-height:44px;padding:9px 15px;border:1px solid #cbbda7;border-radius:8px;background:#fffdf9;color:#574431;cursor:pointer;flex-shrink:0}.product-lightbox button:focus-visible{outline:3px solid #a88040;outline-offset:2px}.product-lightbox button[hidden]{display:none}.product-lightbox-image{display:block;width:100%;min-height:0;flex:1 1 auto;height:min(70dvh,760px);object-fit:contain;background:#f0ece5}.product-lightbox-controls{display:flex;align-items:center;justify-content:center;gap:18px;padding:12px 16px}.product-lightbox-count{min-width:60px;text-align:center;font:14px/1.4 system-ui;font-variant-numeric:tabular-nums}
.product-category{display:inline-block;font-size:12px;color:#7b603d;margin-bottom:7px}.product-stones{margin:12px 0 0;font-size:13px;line-height:1.65;color:#66564b}.product-stones p{margin:3px 0;white-space:pre-wrap;overflow-wrap:anywhere}.product-form fieldset{min-width:0;margin:0;padding:14px;border:1px solid #d8cdbb;border-radius:8px;display:grid;gap:12px}.product-form legend{font-size:14px;font-weight:700;padding:0 5px}.product-form fieldset textarea{min-height:72px}.admin-category-filter{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:16px 0;font-size:14px}.admin-category-filter select{font:inherit;max-width:100%;min-height:44px;padding:8px 12px;background:#fff;border:1px solid #cdbfa9;border-radius:6px}
.product-gallery{position:relative}.product-gallery-controls{position:absolute;right:10px;bottom:10px;display:flex;align-items:center;gap:8px;background:#fffdf9ed;border:1px solid #d5c5a8;border-radius:999px;box-shadow:0 2px 8px #0001;padding:2px 4px}.product-gallery-controls button{font:inherit;font-size:24px;min-width:40px;min-height:40px;border:0;border-radius:50%;background:transparent;color:#574431;cursor:pointer}.product-gallery-controls span{min-width:35px;text-align:center;font-size:12px;font-variant-numeric:tabular-nums;color:#574431}.catalog-admin .admin-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.admin-photo-item{min-width:0;border:1px solid #d8cdbb;border-radius:8px;background:#fff;overflow:hidden}.admin-photo-item.is-cover{border:2px solid #a88040}.admin-photo-item img{display:block;width:100%;aspect-ratio:1;object-fit:contain;background:#f0ece5}.admin-photo-label{display:block;text-align:center;font-size:12px;padding:5px;color:#76603b}.admin-photo-actions{display:flex;justify-content:center;gap:5px;padding:0 5px 8px;flex-wrap:wrap}.catalog-admin .admin-photo-actions button{min-height:36px;font-size:11px;padding:5px 8px}.admin-photo-count{font-size:12px;color:#766652;margin:0}
.catalog{background:#f7f3eb;scroll-margin-top:20px}.catalog .section-head{max-width:780px}.catalog-heading{margin-top:0}.catalog-lead{font-size:18px;color:#65574a}.catalog-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin:26px 0}.catalog-filters{display:flex;gap:8px;flex-wrap:wrap}.catalog-filters button,.catalog-more,.catalog-retry{font:inherit;cursor:pointer;border:1px solid #cbbda7;border-radius:999px;padding:9px 20px;background:#fffdf9;color:#574431;font-weight:700;min-height:44px}.catalog-filters button[aria-pressed=true]{background:#3d2e23;color:#fff3d9;border-color:#3d2e23}.catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.product-card{min-width:0;background:#fffdf9;border:1px solid #e5dccd;border-radius:10px;overflow:hidden}.product-image{display:block;width:100%;aspect-ratio:1;object-fit:contain;background:#f0ece5}.product-content{padding:19px}.product-name{font-size:17px;line-height:1.4;margin:0 0 10px;font-weight:750;overflow-wrap:anywhere}.product-line{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 14px;font-size:15px}.product-price{font-size:20px;letter-spacing:-.03em;white-space:nowrap;color:#6b451e}.product-price small{font-size:11px;font-weight:500;margin-left:3px}.product-description{font-size:14px;line-height:1.65;color:#6d625b;white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0 0}.product-weight-note{font-size:12px;color:#817468;margin:12px 0 0}.catalog-price-note,.catalog-status{font-size:14px;color:#75695d}.catalog-status{margin-bottom:20px}.catalog-more{display:block;margin:28px auto 0;border-radius:6px}.catalog-empty{grid-column:1/-1;border:1px dashed #cbbda7;text-align:center;padding:48px 20px;color:#6d625b}.catalog-retry{margin:12px 0}.catalog-top-links{display:flex;gap:20px;flex-wrap:wrap}.catalog-footer-links{display:flex;gap:20px;align-items:center;flex-wrap:wrap}.catalog-admin-link{font-size:13px}
.catalog-admin{background:#f7f3eb;color:#2d261f;font:16px/1.6 system-ui,-apple-system,"Segoe UI",sans-serif;margin:0}.catalog-admin *{box-sizing:border-box}.catalog-admin a{color:inherit}.admin-wrap{width:min(1180px,100% - 32px);margin:0 auto}.catalog-admin header{padding:24px 0;border-bottom:1px solid #dfd3c1;background:#fffdf9}.admin-top{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap}.admin-brand{font-size:13px;color:#8b6739;margin:0}.catalog-admin h1{font-size:28px;margin:3px 0}.admin-top nav{display:flex;gap:18px;font-size:14px}.admin-layout{display:grid;grid-template-columns:minmax(300px,410px) minmax(0,1fr);gap:28px;padding:30px 0 60px}.admin-panel{padding:24px;background:#fffdf9;border:1px solid #e5dccd;border-radius:12px;align-self:start}.admin-panel h2{font-size:22px;margin:0 0 8px}.admin-help{font-size:13px;color:#766652;margin:0 0 20px}.product-form{display:grid;gap:16px}.product-form label{display:grid;gap:6px;font-size:14px;font-weight:650;min-width:0}.product-form input,.product-form select,.product-form textarea{display:block;width:100%;font:inherit;font-size:16px;padding:10px 12px;border:1px solid #cdbfa9;background:#fff;border-radius:6px;min-height:44px;color:#2d261f}.product-form textarea{resize:vertical;min-height:96px}.form-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field-note{font-size:12px;color:#817468;font-weight:400}.admin-preview-photo{display:block;width:100%;max-height:260px;object-fit:contain;background:#f0ece5;border:1px solid #e5dccd;border-radius:8px}.price-preview{background:#f5ecd9;border:1px solid #d8c29b;padding:15px;border-radius:8px}.price-preview>span{display:block;font-size:12px;color:#75603c}.price-preview strong{display:block;font-size:23px;margin-top:3px}.price-preview small{display:block;font-size:12px;color:#776750;margin-top:8px}.form-actions{display:flex;gap:10px}.catalog-admin button{font:inherit;cursor:pointer;min-height:44px;border-radius:6px;padding:10px 15px;border:1px solid #b9a581;background:#fff;color:#4e3b22;font-weight:700}.catalog-admin button.primary{background:#5e462e;color:#fff7e6;border-color:#5e462e;flex:1}.catalog-admin button:disabled{opacity:.55;cursor:wait}.form-message{min-height:24px;font-size:14px;margin:0;overflow-wrap:anywhere}.form-message.error{color:#b33020}.form-message.success{color:#346040}.admin-list-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.admin-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:20px}.admin-products .product-content{padding:14px}.admin-products .product-price{font-size:18px}.admin-product-actions{display:flex;gap:8px;margin-top:14px}.admin-product-actions button{font-size:13px;flex:1}.admin-private{font-size:13px;color:#8a6950;margin:8px 0}.product-visibility{display:inline-block;border-radius:4px;padding:2px 7px;background:#e5eee1;color:#40623a;font-size:11px;margin-bottom:9px}.product-visibility.hidden{background:#eee5da;color:#7b6c5e}.admin-pager{display:flex;align-items:center;justify-content:center;gap:15px;margin-top:22px}.catalog-admin [hidden],.catalog [hidden]{display:none!important}.catalog button:focus-visible,.catalog-admin button:focus-visible,.catalog-admin input:focus-visible,.catalog-admin textarea:focus-visible,.catalog-admin select:focus-visible{outline:3px solid #a88040;outline-offset:3px}
.product-line.product-alternative{color:#b32424;font-size:13px;gap:5px 10px;margin-top:7px}.product-alternative .product-price{font-size:17px;color:inherit}.admin-products .product-alternative .product-price{font-size:16px}.price-preview .price-preview-alternative{font-size:19px;color:#b32424;margin-top:8px;line-height:1.5}.price-preview .price-preview-alternative[hidden]{display:none}
@media(max-width:650px){.product-line.product-alternative{font-size:12px;gap:4px 7px}.product-alternative .product-price{font-size:16px}.price-preview .price-preview-alternative{font-size:17px}}
@media(max-width:900px){.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-layout{grid-template-columns:minmax(270px,.9fr) minmax(0,1.1fr);gap:18px}.admin-products{grid-template-columns:1fr}}
@media(max-width:650px){.admin-layout{grid-template-columns:1fr}.admin-panel{padding:20px}.admin-products{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-grid{gap:12px}.product-content{padding:13px}.product-name{font-size:15px}.product-price{font-size:18px}.product-line{gap:4px 8px;font-size:13px}.product-description{font-size:13px}.product-weight-note{font-size:11px}.catalog-top-links{gap:14px}.catalog-admin h1{font-size:24px}}
@media(max-width:380px){.catalog-grid,.admin-products{grid-template-columns:1fr}.form-pair{grid-template-columns:1fr}}
