.modern-category-page { padding-top:0; background:var(--bg-main); color:var(--text-main); font:400 16px/1.65 var(--font-body); }
.modern-category-page .top-note { background:var(--text-main); color:#eee6dc; }
.modern-category-page .site-header { position:sticky; top:0; background:rgba(250,248,245,.97); border-bottom:1px solid var(--border); }
.modern-category-page .brand { color:var(--text-main); }
.modern-category-page .hero { display:block; min-height:0; padding:0; background:none; color:var(--text-main); }
.modern-category-page .hero-description { color:var(--text-muted); }
.modern-category-page .hero-description-link { color:inherit; text-decoration:underline; text-underline-offset:3px; }
.modern-category-page .hero-description-link:hover,.modern-category-page .hero-description-link:focus-visible { color:var(--accent-dark); }
.modern-category-page .content-layout { display:grid; grid-template-columns:minmax(250px,.72fr) minmax(0,1.8fr); gap:clamp(26px,4vw,60px); align-items:start; padding-block:64px 90px; }
.modern-category-page .content-layout.no-subcategories { grid-template-columns:1fr; }
.modern-category-page .subcategory-menu { position:sticky; top:105px; max-height:calc(100vh - 125px); overflow:auto; border:1px solid var(--border); background:var(--surface); }
.modern-category-page .offer-tree-title { padding:22px 24px; border-bottom:1px solid var(--border); font:400 26px/1.2 var(--font-title); }
.modern-category-page .offer-tree { padding:8px 18px 18px; }
.modern-category-page .offer-tree details { border-bottom:1px solid var(--border); }
.modern-category-page .offer-tree summary { position:relative; padding:15px 28px 15px 4px; list-style:none; cursor:pointer; font-size:14px; font-weight:600; }
.modern-category-page .offer-tree summary::-webkit-details-marker { display:none; }
.modern-category-page .offer-tree summary::after { position:absolute; right:5px; content:'+'; color:var(--accent-dark); font-size:20px; }
.modern-category-page .offer-tree details[open] summary::after { content:'−'; }
.modern-category-page .offer-tree details.is-current>summary,.modern-category-page .offer-tree a[aria-current="page"] { color:var(--accent-dark); }
.modern-category-page .offer-tree .tree-children { display:grid; padding:0 0 14px 12px; border-left:1px solid var(--accent-soft); }
.modern-category-page .offer-tree a { display:block; padding:9px 6px; color:var(--text-muted); font-size:14px; text-decoration:none; }
.modern-category-page .offer-tree a:hover { color:var(--text-main); text-decoration:underline; }
.modern-category-page .subcategory-sections { display:grid; gap:24px; min-width:0; }
.modern-category-page .subcategory-card { padding:clamp(24px,4vw,48px); border:1px solid var(--border); background:var(--surface); scroll-margin-top:110px; }
.modern-category-page .subcategory-number { display:block; margin-bottom:18px; color:var(--accent-dark); background:none; font-size:12px; letter-spacing:.17em; }
.modern-category-page .subcategory-card h2 { font-size:clamp(34px,3.5vw,54px); }
.modern-category-page .subcategory-card p { margin-top:20px; color:var(--text-muted); }
.modern-category-page .card-link { display:inline-flex; align-items:center; min-height:44px; margin-top:24px; border-bottom:1px solid var(--text-main); font-size:14px; text-decoration:none; }
.modern-category-page .card-link:hover { color:var(--accent-dark); }
.modern-category-page .category-empty { padding:32px; border:1px solid var(--border); color:var(--text-muted); background:var(--surface); }
.modern-category-page .offer-gallery { display:grid; margin-top:20px; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.modern-category-page .offer-gallery.category-gallery { margin:0 0 22px; grid-column:1/-1; }
.modern-category-page .offer-image { overflow:hidden; margin:0; border:1px solid var(--border); background:var(--surface); }
.modern-category-page .offer-image-button { display:block; width:100%; padding:0; border:0; background:var(--bg-soft); cursor:zoom-in; }
.modern-category-page .offer-image img { width:100%; object-fit:cover; }
.modern-category-page .offer-image.is-portrait img { aspect-ratio:9/16; }
.modern-category-page .offer-image.is-landscape img { aspect-ratio:16/9; }
.modern-category-page .offer-image figcaption { padding:10px 12px; color:var(--text-muted); font-size:13px; }
.modern-category-page .offer-description-toggle { display:-webkit-box; width:100%; padding:0; overflow:hidden; border:0; color:inherit; background:transparent; font:inherit; text-align:left; cursor:pointer; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.modern-category-page .offer-image figcaption.is-expanded .offer-description-toggle { display:block; overflow:visible; }
.lightbox-open { overflow:hidden; }
.image-lightbox[hidden] { display:none; }
.image-lightbox { position:fixed; z-index:1000; inset:0; display:flex; padding:24px 72px; align-items:center; justify-content:center; color:#fff; background:rgba(20,17,15,.72); touch-action:none; overscroll-behavior:contain; }
.lightbox-content { display:flex; max-width:92vw; max-height:81vh; margin:0; overflow:hidden; align-items:center; flex-direction:column; border:1px solid rgba(255,255,255,.28); background:#fff; box-shadow:0 22px 80px rgba(0,0,0,.55); }
.lightbox-viewport { display:flex; width:100%; flex:0 0 auto; overflow:hidden; align-items:center; justify-content:center; }
.lightbox-content img { display:block; width:100%; height:100%; object-fit:cover; user-select:none; -webkit-user-drag:none; touch-action:none; transform-origin:center; will-change:transform; }
.lightbox-viewport.is-zoomed { cursor:grab; }
.lightbox-viewport.is-dragging { cursor:grabbing; }
.image-lightbox.is-zoomed .lightbox-viewport { position:fixed; z-index:1; inset:0; width:100vw; height:100vh; overflow:visible; aspect-ratio:auto!important; }
.image-lightbox.is-zoomed .lightbox-content img { width:var(--base-image-width); height:var(--base-image-height); max-width:none; max-height:none; object-fit:fill; }
.lightbox-close,.lightbox-nav { position:fixed; z-index:2; display:grid; width:48px; height:48px; padding:0; place-items:center; border:1px solid rgba(255,255,255,.25); border-radius:50%; color:#fff; background:rgba(0,0,0,.38); cursor:pointer; line-height:1; }
.lightbox-nav[hidden] { display:none; }
.lightbox-close { top:14px; right:16px; font-size:34px; }
.lightbox-nav { top:50%; transform:translateY(-50%); font-size:46px; }
.lightbox-previous { left:16px; }
.lightbox-next { right:16px; }
@media(max-width:900px) { .modern-category-page .content-layout { grid-template-columns:1fr; padding-block:38px 60px; } .modern-category-page .subcategory-menu { position:static; max-height:none; } }
@media(max-width:700px) { .modern-category-page .offer-tree summary,.modern-category-page .offer-tree a { font-size:16px; } .modern-category-page .offer-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); } .image-lightbox { padding:16px 52px; } }
@media(max-width:430px) { .modern-category-page .offer-gallery { grid-template-columns:1fr; } .image-lightbox { padding:16px; } .lightbox-nav { width:40px; height:40px; } }
