
.catalog-controls{display:flex;flex-wrap:wrap;gap:12px;margin:0 auto 28px}.catalog-controls input,.catalog-controls select{border:1px solid #d9d1c6;border-radius:10px;padding:13px 15px;background:#fff;color:#302b25;font:inherit}.catalog-controls input{flex:1;min-width:220px}.catalog-controls select{min-width:210px}.catalog-count{margin:0 0 22px;color:#756d64}.tg-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;padding-bottom:64px}.tg-card{background:white;border:1px solid #e8e2db;border-radius:14px;overflow:hidden;box-shadow:0 5px 20px #1e160d0a;display:flex;flex-direction:column}.tg-card img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block;cursor:pointer}.tg-card-body{padding:17px;display:flex;flex:1;flex-direction:column;gap:9px}.tg-card .tag{color:#9e7942;font-size:12px;letter-spacing:.04em}.tg-card h3{font-size:17px;line-height:1.35;margin:0;color:#27231f}.tg-card p{font-size:13px;line-height:1.5;color:#6b635c;margin:0;overflow-wrap:anywhere}.tg-card .price{font-weight:700;color:#30251c}.tg-card .actions{display:flex;gap:8px;margin-top:auto;padding-top:8px}.tg-card button,.tg-card a.order{background:#ae8547;border:0;border-radius:9px;color:#fff;text-decoration:none;font-size:13px;padding:11px 12px;cursor:pointer;text-align:center}.tg-card button{background:#37312c}.tg-card .actions>*{flex:1}.tg-modal{position:fixed;inset:0;z-index:1000;background:#000b;display:none;align-items:center;justify-content:center;padding:20px}.tg-modal.open{display:flex}.tg-dialog{position:relative;background:#fff;border-radius:15px;padding:20px;max-width:850px;width:100%;max-height:92vh;overflow:auto}.tg-dialog img{max-height:60vh;max-width:100%;object-fit:contain;display:block;margin:auto}.tg-close{position:absolute;right:15px;top:12px;border:0;background:#222;color:white;border-radius:50%;width:32px;height:32px;cursor:pointer}.tg-thumbs{display:flex;gap:8px;overflow-x:auto;margin-top:12px}.tg-thumbs img{width:76px;height:64px;object-fit:cover;cursor:pointer;border-radius:5px}.tg-dialog h2{font-size:22px;margin:12px 0 5px}.tg-dialog p{white-space:pre-line;line-height:1.5}.tg-order{display:inline-block;padding:12px 20px;background:#ae8547;color:white;border-radius:9px;text-decoration:none}@media(max-width:1050px){.tg-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:700px){.tg-grid{grid-template-columns:repeat(2,1fr);gap:12px}.tg-card-body{padding:12px}.tg-card h3{font-size:15px}.tg-card .actions{flex-direction:column}}@media(max-width:440px){.tg-grid{grid-template-columns:1fr 1fr}.tg-card .actions>*{font-size:11px;padding:9px 5px}}

/* Redesigned product viewer: gallery + clear details */
.tg-modal{padding:24px;backdrop-filter:blur(5px);background:rgba(22,19,16,.78)}
.tg-dialog{max-width:1080px;width:min(1080px,100%);max-height:min(90vh,780px);padding:0;border-radius:20px;overflow:hidden;box-shadow:0 30px 100px #0005}
.product-layout{display:grid;grid-template-columns:minmax(0,1.22fr) minmax(320px,.78fr);max-height:min(90vh,780px)}
.product-gallery{min-width:0;padding:28px;background:#f4f0e9;display:flex;flex-direction:column;gap:14px;justify-content:center}
.product-photo-frame{height:min(59vh,545px);min-height:280px;position:relative;display:flex;align-items:center;justify-content:center;background:#fff;border-radius:14px;overflow:hidden}
.tg-dialog #tg-mainphoto{width:100%;height:100%;max-width:100%;max-height:none;object-fit:contain}
.photo-arrow{position:absolute;top:50%;transform:translateY(-50%);width:42px;height:42px;border:1px solid #e9e1d6;background:#fffd;border-radius:50%;font-size:30px;line-height:1;cursor:pointer;z-index:1;color:#4a3d30}
.photo-arrow.prev{left:12px}.photo-arrow.next{right:12px}.photo-arrow:disabled{opacity:0;pointer-events:none}
.tg-thumbs{margin:0;display:flex;justify-content:center;gap:10px;overflow-x:auto;min-height:67px}
.tg-thumbs img{width:72px;height:64px;flex:0 0 auto;border:2px solid transparent;border-radius:9px;background:#fff;object-fit:cover;padding:2px;cursor:pointer;margin:0}
.tg-thumbs img.active{border-color:#ae8547}
.product-details{padding:58px 36px 32px;overflow-y:auto;display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.product-kicker{font-size:11px;letter-spacing:.15em;color:#ae8547;font-weight:700}
.product-details h2{font-size:clamp(23px,2.3vw,32px);line-height:1.25;margin:18px 0 6px;color:#2d271f}
.product-number{font-size:13px;color:#81756a;margin:0 0 20px!important}
.product-details .price{font-size:25px;font-weight:700;color:#a47737;margin:8px 0 20px}
.product-rule{height:1px;background:#e8e0d5;width:100%;margin-bottom:20px}
.product-details h3{font-size:16px;margin:0 0 8px;color:#302a23}
.product-details #tg-modal-desc{color:#5c554d;line-height:1.7;font-size:14px;margin:0 0 28px;overflow-wrap:anywhere}
.product-details .tg-order{display:block;text-align:center;width:100%;box-sizing:border-box;padding:15px 20px;font-weight:700;margin-top:auto}
.product-help{font-size:12px;color:#8a8178;line-height:1.5;margin:12px 0 0!important}
.tg-close{position:absolute;z-index:5;top:15px;right:16px;width:38px;height:38px;background:#f3ede4;color:#43382b;font-size:25px}
@media(max-width:760px){.tg-modal{padding:10px}.tg-dialog{max-height:95vh;overflow-y:auto}.product-layout{display:block;max-height:none}.product-gallery{padding:14px}.product-photo-frame{height:38vh;min-height:220px}.product-details{padding:24px 22px 28px;overflow:visible}.tg-close{top:12px;right:12px}.tg-thumbs img{width:60px;height:55px}}
