/* noutbuki.kz V7: photo-safe, screenshot-aligned Premium Dark, fully responsive */
:root{--red:#ec132a}
body{background:#fff}
.wrap{width:min(1495px,calc(100% - 44px))}
.announcement{background:#050b14}.utility-strip{font-weight:650}
.site-header-v6{background:linear-gradient(90deg,#041020,#0a2637 68%,#061628)}
.site-header-v6 .header-main{min-height:87px}.site-header-v6 .brand img{width:283px;max-height:none}
.site-header-v6 .search-top{max-width:570px}
.catalog-trigger{border-radius:8px;padding:12px 16px}
.nav-links>a{font-size:12px}.header-nav{box-shadow:0 2px 11px #0000000a}
.hero.hero-v6{height:305px;min-height:305px;margin-top:19px;box-shadow:0 5px 18px #06132915;border-radius:17px}
.hero-v6 .hero-copy{padding-left:7%;width:58%}.hero-v6 .hero-copy h1{font-size:clamp(37px,3.0vw,50px);letter-spacing:-.05em}
.hero-v6 .hero-points{display:flex;align-items:center;gap:21px}.hero-v6 .hero-points span{max-width:145px;font-size:11px}
.hero-v6 .hero-image{width:53%;right:0;object-fit:contain}.hero-v6 .hero-actions{gap:12px}.hero-v6 .hero-actions .btn{min-width:196px;justify-content:center}
.hero-pips{margin:9px 0 14px}
.shop-layout-v6{margin-top:6px}
.shop-layout-v6 .catalog-layout{grid-template-columns:255px minmax(0,1fr);gap:16px}
.shop-layout-v6 .filters.filters-v3{top:12px;border-radius:12px;max-height:calc(100vh - 25px);overflow:hidden;border:1px solid #e1e6ee}
.shop-layout-v6 .filter-head{min-height:53px;display:flex;align-items:center}
.shop-layout-v6 .filter-head h3{font-size:17px}
.shop-layout-v6 .filter-body{display:flex;flex-direction:column;padding:0 13px}
.shop-layout-v6 .filter-panel{padding:11px 0;border-bottom:1px solid #edf0f5}
.shop-layout-v6 .filter-panel h4{font-size:12px;margin-bottom:8px}
.shop-layout-v6 .filter-panel[data-v7-panel="price"]{order:0}
.shop-layout-v6 .filter-panel[data-v7-panel="brand"]{order:1}
.shop-layout-v6 .filter-panel[data-v7-panel="cpu"]{order:2}
.shop-layout-v6 .filter-panel[data-v7-panel="gpu"]{order:3}
.shop-layout-v6 .filter-panel[data-v7-panel="screen"]{order:4}
.shop-layout-v6 .filter-panel[data-v7-panel="ram"]{order:5}
.shop-layout-v6 .filter-panel[data-v7-panel="ssd"]{order:6}
.shop-layout-v6 .filter-panel[data-v7-panel="purpose"]{order:7}
.shop-layout-v6 .filter-panel[data-v7-panel="q"]{order:8}
.shop-layout-v6 .filter-panel[data-v7-panel="extra"]{order:9}
.shop-layout-v6 .filter-panel[data-v7-panel="brand"] .filter-choices{display:grid;grid-template-columns:1fr 1fr;gap:5px}
.shop-layout-v6 .filter-panel[data-v7-panel="brand"] .filter-chip{justify-content:flex-start;text-align:left;min-width:0}
.shop-layout-v6 .filter-panel[data-v7-panel="brand"] .filter-chip span{font-size:11px}
.shop-layout-v6 .filter-panel[data-v7-panel="cpu"] .filter-choices,.shop-layout-v6 .filter-panel[data-v7-panel="gpu"] .filter-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
.shop-layout-v6 .filter-panel[data-v7-panel="cpu"] .filter-chip,.shop-layout-v6 .filter-panel[data-v7-panel="gpu"] .filter-chip{padding:4px}
.shop-layout-v6 .filter-panel[data-v7-panel="cpu"] .filter-chip span,.shop-layout-v6 .filter-panel[data-v7-panel="gpu"] .filter-chip span{font-size:10px;white-space:normal}
.shop-layout-v6 .filter-panel .field{height:36px;font-size:11px}.shop-layout-v6 .price-inputs input{font-size:11px;height:37px}
.shop-layout-v6 .filter-footer .btn{min-height:39px;padding:7px 4px}
.shop-layout-v6 .brand-strip-v6{grid-template-columns:repeat(4, minmax(0,1fr)) minmax(105px,.9fr);gap:8px;margin-bottom:13px}
.shop-layout-v6 .brand-strip-v6>a{min-height:49px}
.shop-layout-v6 .shop-title-v6 h2{font-size:21px}
.shop-layout-v6 .product-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-items:stretch}
.shop-layout-v6 .catalog-toolbar{margin:0;padding:5px 0 12px;border:0}
.shop-layout-v6 .product-card-v7{padding:10px;min-width:0;border:1px solid #e1e7ee;border-radius:13px;background:#fff;box-shadow:0 4px 13px #00000009;overflow:hidden}
.product-card-v7 .product-visual{height:165px;min-height:165px;border-radius:9px;overflow:hidden;background:#fff;position:relative;margin:0 0 5px}
.product-card-v7 .product-image-frame{height:100%;width:100%;display:flex;align-items:center;justify-content:center;padding:8px 3px 4px;background:#fff!important;overflow:hidden;position:relative}
.product-card-v7 .product-visual img{position:static;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center center;mix-blend-mode:normal;transform:none!important;filter:none;opacity:1}
.product-card-v7 .product-card-badges{position:absolute;top:3px;left:3px;z-index:3;display:flex;gap:4px;max-width:65%;pointer-events:none}
.product-card-v7 .badge-v7-hot{background:#ed1b2b;color:white;font-size:10px;padding:4px 6px}
.product-card-v7 .badge-v7-game{background:#6e22be;color:#fff;font-size:10px;padding:4px 6px}
.product-card-v7 .product-quick{z-index:3;right:2px;top:2px;display:flex;flex-direction:column;gap:4px}
.product-card-v7 .product-quick .icon-btn{width:29px;height:29px;border-radius:8px;background:#fff}
.product-card-v7 .product-title{font-weight:800;font-size:13px;line-height:1.3;min-height:34px;margin:2px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#111928}
.product-card-v7 .product-spec{display:none!important}
.product-card-v7 .product-tech{margin:8px 0 3px;min-height:83px;display:flex;flex-direction:column;gap:6px}
.product-card-v7 .tech-row{display:flex;align-items:flex-start;gap:6px;line-height:1.3;min-height:15px}
.product-card-v7 .tech-row>svg{color:#333b49;flex-shrink:0;width:13px;height:13px;margin-top:1px}
.product-card-v7 .tech-key{display:none}
.product-card-v7 .tech-value{display:block;font-size:10px;line-height:1.3;color:#1f2938;max-width:none;flex:1;font-weight:580}
.product-card-v7 .product-price{margin:7px 0 2px}.product-card-v7 .product-price strong{font-size:19px;line-height:1.1}
.product-card-v7 .product-price small{color:#8892a4;font-size:9px;line-height:1.4}
.product-card-v7 .product-stock{order:1;color:#00943c;font-size:10px;margin:2px 0 8px;font-weight:700}
.product-card-v7 .product-buttons{display:flex;gap:6px;margin-top:auto;order:2}
.product-card-v7 .product-buttons .btn-wa{font-size:10px;background:#04ad36}
.product-card-v7 .product-buttons .btn-small{flex:0 0 33px}
.product-card-v7 .photo-source-note{color:#8790a0;font-size:9px;font-weight:500;margin-top:5px;display:block}
.product-card-v7 .product-info{display:flex;flex-direction:column;min-height:220px}
/* Product detail: no visible overlay on image, all metadata in distinct area BELOW photo. */
.detail-layout .detail-image{background:#fff!important;background-image:none!important;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:22px;min-height:340px;border:1px solid #e2e7ee}
.detail-layout .detail-image img{height:auto;min-height:0;width:100%;max-width:100%;max-height:440px;object-fit:contain;object-position:center;mix-blend-mode:normal;display:block}
.detail-layout .detail-image small{display:none}
.detail-photo-caption-v7{position:static;display:block;margin:7px 0 0;padding:0 5px;color:#64738a;font-size:12px;line-height:1.45;max-width:630px}
.detail-layout .detail-summary .spec-chips span{font-size:11px;padding:6px 7px}
#related-grid .product-card-v7 .product-visual{height:164px}
.footer{border-top:1px solid #e9ebf0}
@media(max-width:1280px){
 .site-header-v6 .brand img{width:225px}
 .shop-layout-v6 .catalog-layout{grid-template-columns:230px minmax(0,1fr);gap:13px}
 .shop-layout-v6 .product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .product-card-v7 .product-visual{height:155px;min-height:155px}
}
@media(max-width:960px){
 .shop-layout-v6 .product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .hero-v6 .hero-points{display:flex;gap:8px}
}
@media(max-width:690px){
 .wrap{width:calc(100% - 28px)}
 .site-header-v6 .brand img{width:166px;max-height:43px}
 .site-header-v6 .header-main{min-height:55px}
 .hero.hero-v6{height:260px;min-height:260px;margin-top:9px;border-radius:13px}
 .hero-v6 .hero-copy{padding:17px 16px;width:100%}
 .hero-v6 .hero-copy h1{font-size:clamp(25px,6.9vw,33px);max-width:330px}
 .hero-v6 .hero-desc{font-size:11px;line-height:1.35;margin-top:7px;max-width:255px}
 .hero-v6 .hero-image{right:-3%;width:80%;max-height:172px;bottom:-4px}
 .hero-v6 .hero-points{display:none}
 .shop-layout-v6 .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .shop-layout-v6 .filters .filter-body{padding:2px 14px 12px;display:flex;flex-direction:column}
 .shop-layout-v6 .filter-panel[data-v7-panel="q"]{order:0}
 .shop-layout-v6 .filter-panel[data-v7-panel="purpose"]{order:1}
 .shop-layout-v6 .filter-panel[data-v7-panel="price"]{order:2}
 .shop-layout-v6 .filter-panel[data-v7-panel="brand"]{order:3}
 .shop-layout-v6 .filter-panel[data-v7-panel="cpu"]{order:4}
 .shop-layout-v6 .filter-panel[data-v7-panel="gpu"]{order:5}
 .shop-layout-v6 .filter-panel[data-v7-panel="screen"]{order:6}
 .shop-layout-v6 .filter-panel[data-v7-panel="ram"]{order:7}
 .shop-layout-v6 .filter-panel[data-v7-panel="ssd"]{order:8}
 .shop-layout-v6 .filter-panel[data-v7-panel="extra"]{order:9}
 .shop-layout-v6 .filters.filters-v3{position:fixed;top:0;inset:0;max-height:100dvh;height:100dvh;z-index:100;visibility:hidden;transform:translateX(100%);overflow:hidden;display:flex}
 .shop-layout-v6 .filters.filters-v3.open{visibility:visible;transform:translateX(0)}
 .shop-layout-v6 .filter-head{height:auto}
 .shop-layout-v6 .filter-footer{grid-template-columns:92px minmax(0,1fr);gap:9px;padding:9px 12px calc(9px + env(safe-area-inset-bottom))}
 .shop-layout-v6 .filter-footer #apply-filters{font-size:clamp(11px,3vw,14px);white-space:normal;line-height:1.16;min-height:46px;max-width:100%;padding:8px 5px}
 .shop-layout-v6 .filter-footer #reset-filters{font-size:11px;min-height:46px;max-width:100%}
 .product-card-v7 .product-visual{height:128px;min-height:128px}
 .product-card-v7 .product-image-frame{padding:4px 0}
 .product-card-v7 .product-quick .icon-btn{width:25px;height:25px}
 .product-card-v7 .product-title{font-size:11px;min-height:35px}
 .product-card-v7 .product-tech{min-height:75px;gap:4px}
 .product-card-v7 .tech-row>svg{width:12px;height:12px}
 .product-card-v7 .tech-value{font-size:9px;line-height:1.2}
 .product-card-v7 .product-price strong{font-size:16px}
 .product-card-v7 .product-buttons .btn-wa{font-size:9px;padding:8px 3px}
 .detail-layout .detail-image{min-height:245px;padding:12px}
 .detail-layout .detail-image img{max-height:300px}
 .detail-photo-caption-v7{font-size:11px;padding:0}
}
@media(max-width:370px){
 .site-header-v6 .brand img{width:141px}
 .hero.hero-v6{height:250px;min-height:250px}.hero-v6 .hero-image{max-height:152px}
 .shop-layout-v6 .filter-footer{grid-template-columns:81px minmax(0,1fr);gap:7px;padding-left:8px;padding-right:8px}
 .shop-layout-v6 .filter-footer #apply-filters{font-size:11px}
 .product-card-v7 .product-visual{height:113px;min-height:113px}
}

/* V7 final polish after real Chromium review */
.detail-media-v7{min-width:0;display:flex;flex-direction:column;gap:7px}
.detail-layout .detail-photo-caption-v7{margin:0;padding:0 7px;max-width:100%}
@media(max-width:690px){
 .site-header-v6{background:#ffffff!important;box-shadow:0 2px 10px #0b17241c}
 .site-header-v6 .header-main{padding-top:8px;padding-bottom:8px}
 .site-header-v6 .brand{min-width:0}
 .site-header-v6 .brand .brand-logo-dark{display:none!important}
 .site-header-v6 .brand .brand-logo-light{display:block!important}
 .site-header-v6 .mobile-search-toggle,.site-header-v6 .head-action,.site-header-v6 .mobile-menu-button{color:#0b1932!important}
 .site-header-v6 .header-actions .head-action{border-color:transparent}
 .site-header-v6 .count{background:#f31537;color:#fff}
}

/* V7.1: Fix clipped "Показать N товара" filter action on narrow phones and small sidebar. */
.shop-layout-v6 .filter-footer {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 35%) minmax(0, 1fr);
  gap: 7px;
  box-sizing: border-box;
  align-items: stretch;
}
.shop-layout-v6 .filter-footer .btn,
.shop-layout-v6 .filter-footer #apply-filters,
.shop-layout-v6 .filter-footer #reset-filters {
  box-sizing: border-box;
  display: flex;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  min-height: 54px;
  padding: 7px 4px;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  line-height: 1.16;
  white-space: normal;
}
.shop-layout-v6 .filter-footer #apply-filters {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 2px;
  font-size: clamp(12px, 3.1vw, 14px);
  font-weight: 800;
}
.shop-layout-v6 .filter-footer #reset-filters {font-size: clamp(11px, 2.9vw, 13px)}
.shop-layout-v6 .filter-footer .filter-apply-line {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  word-break: keep-all;
}
.shop-layout-v6 .filter-footer #filter-apply-count {display: inline;margin-right: 3px;font-weight: 850;white-space: nowrap}
@media(max-width:690px){
  .shop-layout-v6 .filter-footer{
     grid-template-columns: minmax(76px,31%) minmax(0,1fr);
     padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
     gap: 8px;
  }
  .shop-layout-v6 .filter-footer #apply-filters{font-size:clamp(12px,3.1vw,14px);min-height:52px;padding:7px 3px}
  .shop-layout-v6 .filter-footer #reset-filters{min-height:52px}
}
@media(max-width:370px){
 .shop-layout-v6 .filter-footer{
   grid-template-columns: minmax(73px,30%) minmax(0,1fr);
   padding-left:8px;padding-right:8px;gap:7px
 }
 .shop-layout-v6 .filter-footer #apply-filters{font-size:12px;line-height:1.15}
 .shop-layout-v6 .filter-footer #reset-filters{font-size:12px}
}
