@layer pages{
  #wrapper{max-width:var(--container);margin-inline:auto;padding-inline:var(--gutter)}
  .page-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:32px;padding-bottom:56px}
  .page-layout.no-side{grid-template-columns:minmax(0,1fr)}
  /* legacy Bootstrap .container (+ margin utilities) inside page content must stay within its column */
  .page-layout .container{width:auto;max-width:none}
  .page-layout > .left .module + .module{margin-top:18px}
  .page-layout > .left .title-heading{font-size:13px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--mrp-red);margin:0 0 8px}
  @media (max-width:991.98px){.page-layout{grid-template-columns:minmax(0,1fr)}.page-layout > .left{display:none}}
}
/* home page (landing.tpl, why.tpl, home placeholder) */
@layer pages{
  .hero-wrap{padding-top:28px}
  .hero{display:grid;grid-template-columns:1.1fr .9fr;gap:24px;padding:clamp(28px,5vw,56px) clamp(22px,5vw,56px) 0;overflow:hidden}
  .hero h1{color:#fff;font-size:clamp(34px,5vw,54px);line-height:1.06} .hero h1 em{font-style:normal;color:#FF5A74}
  .hero__note{display:inline-flex;align-items:center;gap:10px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18);border-radius:var(--pill);padding:6px 14px 6px 6px;font-size:13.5px;margin-bottom:18px}
  .hero__note b{background:var(--mrp-red);color:#fff;border-radius:var(--pill);padding:3px 10px;font-size:12px}
  .hero__lead{color:var(--on-navy);font-size:clamp(15px,1.6vw,18px);margin:16px 0 26px;max-width:470px}
  .hero__cta{display:flex;gap:10px;flex-wrap:wrap}
  .hero__ticks{display:flex;gap:22px;flex-wrap:wrap;list-style:none;padding:0;margin:28px 0 48px;font-size:13.5px}
  .hero__ticks li::before{content:"✓ ";color:#fff;font-weight:700}
  .hero__stage{position:relative;min-height:330px}
  .stage{position:absolute;right:10px;bottom:36px;width:min(330px,80%);background:#fff;border-radius:var(--radius);padding:18px;box-shadow:0 30px 60px -20px rgba(0,0,0,.55);rotate:2deg}
  .stage img{width:100%;height:200px;object-fit:contain}
  .stage--back{right:auto;left:0;bottom:90px;width:min(220px,55%);rotate:-6deg;padding:12px} .stage--back img{height:130px}
  .cat-tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:22px}
  .cat-tiles a{border:1px solid var(--line);border-radius:var(--radius);padding:18px;display:flex;align-items:center;gap:14px;font-weight:700;color:var(--ink);text-decoration:none;transition:box-shadow .2s,transform .2s}
  .cat-tiles a:hover{box-shadow:var(--shadow);transform:translateY(-2px)}
  .cat-tiles i{width:44px;height:44px;border-radius:12px;background:var(--red-tint);color:var(--mrp-red);display:grid;place-items:center;font-size:20px;flex:none}
  .cat-tiles small{display:block;font-weight:400;color:var(--ink-3);font-size:12.5px}
  .home-products{padding:48px 0}
  .sec-head{display:flex;align-items:end;gap:20px;margin-bottom:24px;flex-wrap:wrap}
  .sec-head h2{margin:0}
  .why{background:var(--blue-tint);border-radius:var(--radius-lg);padding:clamp(24px,4vw,40px);display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:20px}
  .why b{display:block;font-size:30px;font-weight:800;color:var(--mrp-red);line-height:1.1}
  .why span{font-size:13.5px;color:var(--ink-2)}
  @media (max-width:991.98px){.hero{grid-template-columns:1fr}.hero__stage{min-height:260px}.stage--back{display:none}.stage{right:50%;translate:50% 0}.cat-tiles{grid-template-columns:1fr 1fr}}
  @media (max-width:575.98px){.cat-tiles{grid-template-columns:1fr}.hero__cta .btn-mrp{flex:1}}
  /* spacing between the landing block and the page columns */
  .hero-wrap{padding-bottom:36px}
  .product-card__img{text-decoration:none}
  /* phones (as in the mockup): compact hero, tighter tiles, two product cards per row on the home page */
  @media (max-width:575.98px){
    .hero-wrap{padding-top:14px;padding-bottom:24px}
    .hero__ticks{gap:4px 16px;margin:20px 0 8px}
    .hero__stage{min-height:220px} .stage{width:min(240px,80%);bottom:24px} .stage img{height:140px}
    .cat-tiles{gap:10px;margin-top:16px} .cat-tiles a{padding:12px 14px}
    .home-products{padding:28px 0}
    .home-products .product-grid{grid-template-columns:1fr 1fr;gap:10px}
    .home-products .product-card{padding:10px;border-radius:14px}
    .home-products .product-card__title{font-size:13.5px}
    .home-products .product-card__perex{display:none}
    .home-products .product-card__price{font-size:16px}
    .home-promo{padding:16px}
  }
}
/* category page (category/detail.tpl, shared/filter.tpl, productGrid/productGridLine, pager, module subcategory) and search */
@layer pages{
  .cat-head{margin-top:4px}
  .cat-head h1{margin:0}
  .cat-head .category_desc{font-size:15px;margin-top:8px;max-width:72ch}
  .cat-sub{display:flex;align-items:flex-start;gap:12px;margin-top:16px}
  .cat-sub .categoryHeader_kontajner{flex:1;min-width:0}
  .cat-sub .close{font-size:12px;color:var(--ink-3);cursor:pointer;white-space:nowrap;padding-top:8px}
  .cat-sub:not(:has(.categoryHeader_kontajner > .module > :not(#sub_category:empty))){display:none}
  .cat-subnav{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
  .cat-subnav .eyebrow{width:100%;margin:0;font-size:12px;letter-spacing:.14em}
  .cat-subnav .chip{gap:6px} .cat-subnav .sub_cat_img{width:22px;height:22px;object-fit:contain}
  .cat-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border:1px solid var(--line);border-radius:var(--radius);padding:10px 12px 10px 18px;margin:18px 0}
  .cat-toolbar #pager_kontajner{display:contents}
  .cat-sort__group{display:inline-flex;align-items:center;gap:6px;margin-right:6px}
  .cat-sort__group .filter_text_description{font-size:13px;font-weight:600;color:var(--ink-2);margin-right:2px}
  .cat-sort__group .chip{width:36px;height:36px;padding:0;justify-content:center}
  .orderArrow.active > .chip{background:var(--mrp-blue);border-color:var(--mrp-blue);color:#fff}
  .cat-range{display:flex;align-items:center;gap:12px;margin-left:auto;font-size:13px;min-width:220px}
  .cat-range label{font-weight:600;color:var(--ink-2);margin:0}
  .cat-range #amount{font-weight:700;white-space:nowrap}
  .cat-range #slider-range{flex:1;min-width:120px}
  .cat-perpage{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--ink-2)}
  .cat-perpage label{margin:0;font-weight:600;white-space:nowrap}
  .cat-perpage form{margin:0} .cat-perpage .form-select{width:auto;padding-block:6px;border-radius:var(--pill)}
  .waiting:not([style*="none"]){position:fixed;inset:0;z-index:1040;background:rgba(255,255,255,.55)}
  .product-card__badge{position:absolute;top:10px;right:10px;z-index:1} .product-card__badge img{max-width:50px;height:auto}
  .product-card__meta{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:12.5px;color:var(--ink-3)} .product-card__meta:empty{display:none}
  .product-card__sale{color:var(--mrp-red);font-weight:600}
  .product-list{container-type:inline-size;display:grid;gap:14px}
  @container (min-width:600px){
    .product-card--line{display:grid;grid-template-columns:160px 1fr auto;column-gap:22px;row-gap:6px;align-items:center}
    .product-card--line .product-card__img{grid-column:1;grid-row:1 / span 3;aspect-ratio:4/3}
    .product-card--line .product-card__title,.product-card--line .product-card__perex,.product-card--line .product-card__meta{grid-column:2}
    .product-card--line .product-card__foot{grid-column:3;grid-row:1 / span 3;margin-top:0;padding-top:0}
  }
  .pager{display:flex;gap:6px;justify-content:center;margin-top:24px;flex-wrap:wrap}
  .pager > a,.pager > span{min-width:40px;height:40px;padding:0 12px;border-radius:var(--pill);border:1px solid var(--line);display:grid;place-items:center;font-weight:600;color:var(--ink);text-decoration:none}
  .pager .is-active,.pager > a:hover{background:var(--mrp-blue);border-color:var(--mrp-blue);color:#fff}
  .search-page .searchResult{margin-top:22px}
  .search-card{position:relative;border:1px solid var(--line);border-radius:var(--radius);padding:18px;display:flex;flex-direction:column;gap:8px;background:#fff;transition:box-shadow .2s,transform .2s,border-color .2s}
  .search-card:hover{box-shadow:var(--shadow-lift);transform:translateY(-4px);border-color:transparent}
  .search-card__icon{width:40px;height:40px;border-radius:12px;background:var(--red-tint);color:var(--mrp-red);display:grid;place-items:center;font-size:18px}
  .search-card__title{font-size:16px;font-weight:700;line-height:1.3;margin:0}
  .search-card__title a{color:var(--ink);text-decoration:none} .search-card__title a::after{content:"";position:absolute;inset:0}
  .search-card .description{color:var(--ink-2);font-size:13.5px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  .search-card .searchSklad{font-size:12.5px;color:var(--ink-3);margin-top:auto} .search-card .searchSklad:empty{display:none}
  @media (max-width:575.98px){
    .cat-toolbar{padding:10px 12px}
    .cat-range{margin-left:0;width:100%;min-width:0}
    .cat-perpage{width:100%}
  }
}
/* phones: two compact product cards per row in the category grid (as on the home page) */
@layer pages{
  @media (max-width:575.98px){
    #productGrid .product-grid{grid-template-columns:1fr 1fr;gap:10px}
    #productGrid .product-grid .product-card{padding:10px;border-radius:14px}
    #productGrid .product-grid .product-card__title{font-size:13.5px}
    #productGrid .product-grid .product-card__perex{display:none}
    #productGrid .product-grid .product-card__price{font-size:16px}
  }
}
/* product detail (product/index.tpl, shared/rating*.tpl, shared/comments.tpl) */
@layer pages{
  .product-detail{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:clamp(20px,4vw,40px);padding:6px 0 32px}
  .pd-media{position:relative;min-width:0}
  .pd-main{display:grid;place-items:center;position:relative;background:var(--blue-tint);border-radius:var(--radius-lg);aspect-ratio:1/1;max-height:460px;text-decoration:none;overflow:hidden}
  .pd-main[href]{cursor:zoom-in}
  .pd-main img{max-height:88%;max-width:88%;object-fit:contain;mix-blend-mode:multiply}
  .pd-main img[hidden],.pd-main .noimg[hidden]{display:none}
  .pd-main .flag{top:20px;left:20px}
  .pd-main .noimg{color:var(--ink-3);font-size:13px;text-align:center;line-height:1.5}
  .pd-badges{position:absolute;top:14px;right:14px;z-index:2;display:flex;gap:6px;align-items:center}
  .pd-badges img{max-height:40px;width:auto}
  .pd-thumbs{display:flex;gap:10px;margin-top:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:4px}
  .pd-thumbs a{flex:none;width:76px;height:76px;border-radius:12px;background:var(--blue-tint);border:2px solid transparent;display:grid;place-items:center;scroll-snap-align:start}
  .pd-thumbs a.is-active{border-color:var(--mrp-blue)} .pd-thumbs img{max-width:60px;max-height:60px;mix-blend-mode:multiply}
  .pd-info{min-width:0}
  .pd-info h1{margin:0;font-size:clamp(28px,3.6vw,40px)}
  .pd-perex{color:var(--ink-2);margin-top:10px} .pd-perex > :last-child{margin-bottom:0}
  .buy-box{border:1px solid var(--line);border-radius:var(--radius);padding:22px;margin:22px 0;box-shadow:var(--shadow)}
  .buy-box:not(:has(.priceDetail,#stock)){display:none}
  .buy-box__price{display:grid;grid-template-columns:1fr auto;align-items:end;gap:4px 14px}
  .buy-box__price strong{grid-column:1;font-size:clamp(28px,3.4vw,36px);font-weight:800;line-height:1;white-space:nowrap}
  .buy-box__price .muted:last-child{grid-column:2;grid-row:1/3;text-align:right}
  .buy-box__price .muted b{display:block;color:var(--ink);font-size:17px;white-space:nowrap}
  .buy-box .pd-sale{color:var(--mrp-red);font-weight:600}
  .buy-box__login{margin:0;color:var(--ink-2)}
  .buy-box__actions{display:flex;gap:10px;margin-top:18px} .buy-box__actions .qty{height:50px;margin:0;flex:none} .buy-box__actions .cartAdd{flex:1}
  .buy-box__actions .qty button{width:38px} .buy-box__actions .qty input{width:40px}
  .pd-stock{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin-top:14px}
  .pd-stock .title{width:100%;font-weight:600}
  .pd-stock .stock_row{display:inline-flex;align-items:center;gap:8px;font-size:13.5px}
  .pd-stock .stock_name{color:var(--ink-2)}
  .stock,.pd-stock .skladom{display:inline-flex;align-items:center;gap:8px;font-size:13.5px;font-weight:600;color:var(--ok);background:var(--ok-tint);border-radius:var(--pill);padding:5px 12px}
  .pd-stock .skladom::before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor}
  .pd-stock .naceste{display:inline-flex;font-size:13.5px;font-weight:600;color:var(--ink-2);background:var(--mrp-gray);border-radius:var(--pill);padding:5px 12px}
  .stock{margin-top:14px}
  .pd-params{display:grid;grid-template-columns:auto 1fr;gap:6px 20px;font-size:14px;margin:0} .pd-params dt{color:var(--ink-3);font-weight:400} .pd-params dd{margin:0;font-weight:600}
  .pd-params a{font-weight:600}
  #authUserStuff .fav{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px} #authUserStuff .fav:not(:has(a)){display:none} #authUserStuff .chip{gap:6px}
  .socialPanel{margin-top:14px}
  .productInfo{margin-top:8px}
  #tabs{margin-bottom:48px} #tabs .ui-tabs-panel{color:var(--ink-2);max-width:820px}
  #tabs .ui-tabs-nav sup{top:0;font-size:12px;font-weight:500;color:var(--ink-3);margin-left:2px}
  #tabs .ui-tabs-nav li.ui-tabs-active sup{color:inherit}
  /* CMS descriptions may carry fixed-width tables/images: the panel scrolls, never the page */
  .pd-prose{line-height:1.7;overflow-x:auto} .pd-prose img{border-radius:var(--radius-sm)}
  .pd-images p{margin:0 0 14px} .pd-images img{border-radius:var(--radius);background:var(--blue-tint)}
  .pd-files p{margin:0 0 8px} .pd-files a{font-weight:600}
  .pd-features td:first-child{color:var(--ink-3);width:40%}
  #tabs-related .product-card__img{margin:0} #tabs-related .product-card__title{font-size:15px}
  /* plain forms inside the tabs (recommend, watchdog, review) */
  .userForm{max-width:520px}
  .userForm form{display:grid;gap:14px}
  .userForm p{display:grid;gap:6px;margin:0}
  .userForm input[type=text],.userForm select,.userForm textarea{width:100%}
  .userForm textarea{min-height:110px}
  .userForm p.check{display:flex;align-items:center;gap:10px} .userForm p.check label{font-weight:500;font-size:14px}
  .userForm p.check input{width:18px;height:18px;accent-color:var(--mrp-red)}
  .userForm .radios > span{display:flex;gap:16px} .userForm .radios > span label{display:inline-flex;gap:6px;align-items:center;font-weight:500}
  .userForm__actions{margin-top:16px}
  /* stars: 5 × 22.6 px sprites (mrp-product.js sets the .rating_over width) */
  .rating{position:relative;display:inline-block;vertical-align:middle;width:113px;height:25px;background:url("../images/stars_empty.png") no-repeat}
  .rating_over{position:absolute;top:0;left:0;height:25px;overflow:hidden;text-indent:-9999px;background:url("../images/stars.png") no-repeat}
  .rate{position:absolute;top:0;left:0;z-index:2;display:flex;height:25px}
  .rate a{width:22.6px;height:25px;text-indent:-9999px;overflow:hidden}
  .caption #product_rating{margin-top:10px;width:auto;padding-left:121px;background-position:0 0;line-height:25px;font-size:13px;color:var(--ink-3)}
  .ratingDetail{display:flex;flex-wrap:wrap;gap:16px 32px;border:1px solid var(--line);border-radius:var(--radius);padding:18px 20px;margin-top:18px;font-size:13.5px}
  .ratingDetail .rating-detail__avg{display:grid;gap:4px;justify-items:start}
  .ratingDetail #rating_label{font-size:22px;font-weight:800;line-height:1.1}
  .ratingDetail #rating_count{color:var(--ink-3)}
  .ratingDetail .rating-detail__bars{display:grid;gap:4px;min-width:0}
  div.rStar{display:flex;align-items:center;gap:8px}
  span.rStar{display:inline-block;width:28px;height:18px;background:url("../images/small_star.png") no-repeat right center;font-weight:600}
  span.rchart{display:inline-block;min-width:1px;height:7px;border-radius:9px;background:var(--mrp-red)}
  .comment{border:1px solid var(--line);border-radius:var(--radius);padding:14px 18px;margin-bottom:12px}
  .comment .caption{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px}
  .comment .caption h4{margin:0;font-size:15px}
  .comment .datetime{font-size:12.5px;color:var(--ink-3);margin-left:auto}
  .comment .body{margin-top:8px;color:var(--ink-2)}
  .rating-summary p{margin:0}
  @media (max-width:767.98px){.product-detail{grid-template-columns:1fr}.pd-main{max-height:360px}}
  @media (max-width:575.98px){.buy-box{padding:16px}.buy-box__actions .cartAdd{padding-inline:14px}}
}
/* cart and checkout (cart/index.tpl, shared/cartView.tpl, shared/orderWizard.tpl, order/*, ordernoregistration/*) */
@layer pages{
  .order-steps{display:flex;gap:10px;align-items:center;list-style:none;padding:0;margin:26px 0 22px;font-size:14px;font-weight:600;counter-reset:s;flex-wrap:wrap}
  .order-steps li{display:flex;align-items:center;gap:8px;color:var(--ink-3);counter-increment:s}
  .order-steps li::before{content:counter(s);width:30px;height:30px;border-radius:50%;border:1px solid var(--line);display:grid;place-items:center;flex:none;background:#fff}
  .order-steps li + li::after{content:"";order:-1;width:36px;border-top:1px solid var(--line);margin-right:4px}
  .order-steps .is-active{color:var(--ink)} .order-steps .is-active::before{background:var(--mrp-red);border-color:var(--mrp-red);color:#fff}
  .order-steps .is-done{color:var(--ink-2)} .order-steps .is-done::before{content:"✓";background:var(--blue-tint)}
  .checkout-title{font-size:clamp(26px,3vw,32px);margin:0 0 18px}
  /* the checkout needs the full width: no category sidebar next to it */
  .page-layout:has(.checkout,.order-steps){grid-template-columns:minmax(0,1fr)}
  .page-layout:has(.checkout,.order-steps) > .left{display:none}
  .checkout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:28px;padding-bottom:56px;align-items:start}
  .checkout__main{min-width:0}
  .checkout__summary{border-radius:var(--radius);background:var(--blue-tint);padding:24px;position:sticky;top:96px}
  .checkout__summary h2{margin:0 0 10px}
  .checkout__summary .btn-mrp{width:100%;margin-top:10px;white-space:normal;text-align:center}
  .checkout__summary .btn-red{margin-top:16px} .checkout__summary > .btn-red:first-child{margin-top:0}
  .checkout__summary .btn-ghost{background:transparent}
  .cartSum{margin:0} .cartSum td{border:0;padding:6px 0;font-size:14px;color:var(--ink-2)} .cartSum td:last-child{text-align:right;white-space:nowrap;padding-left:12px}
  .cartSum .cartSum__weight td{font-size:12.5px;color:var(--ink-3)}
  .cartSum tr:last-child td{border-top:1px solid var(--line);padding-top:14px;margin-top:10px;font-size:16px;font-weight:700;color:var(--ink)}
  .cartSum tr:last-child td:last-child{font-size:24px;font-weight:800}
  .cart-line{display:grid;grid-template-columns:84px minmax(0,1fr) auto auto 32px;gap:16px;align-items:center;border:1px solid var(--line);border-radius:var(--radius);padding:12px 16px;margin-bottom:12px}
  .cart-line__img{display:grid;place-items:center;width:84px;height:68px;background:var(--blue-tint);border-radius:10px;overflow:hidden}
  .cart-line img{width:84px;height:68px;object-fit:contain;background:var(--blue-tint);border-radius:10px;mix-blend-mode:multiply}
  .cart-line__name{min-width:0} .cart-line__name > a{font-weight:700;color:var(--ink);text-decoration:none;line-height:1.3} .cart-line__name > a:hover{color:var(--mrp-red)}
  .cart-line .qty{margin:0}
  .cart-line .qty a{display:grid;place-items:center;width:34px;height:100%;color:var(--ink-3);font-size:18px;text-decoration:none;border-radius:var(--pill)}
  .cart-line .qty a:hover{color:var(--ink);background:var(--blue-tint)}
  .cart-line .qty input{width:40px}
  .cart-line .line-total{font-size:17px;min-width:90px;text-align:right;white-space:nowrap}
  .cart-line .cartDel{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;color:var(--ink-3);text-decoration:none}
  .cart-line .cartDel:hover{background:var(--red-tint);color:var(--mrp-red)}
  .cart-line__services{grid-column:1/-1;display:grid;gap:6px;border-top:1px dashed var(--line);padding-top:10px}
  .cart-line__services .service{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:13.5px;font-weight:500;margin:0}
  .cart-line__services .service > span:first-of-type{flex:1;min-width:160px}
  .cart-line__services img{width:auto;height:20px;background:none;margin-right:6px;vertical-align:middle}
  .cart-line__services a{color:var(--ink-3)}
  .emptyCart{text-align:center;display:grid;gap:14px;justify-items:center;margin-bottom:56px}
  .emptyCart h4{margin:0}
  /* forms and choices in the order steps */
  .field{display:flex;flex-direction:column;gap:4px;margin-bottom:12px}
  .field .form-control,.field select{width:100%}
  .field > label > .form-control{display:block;margin-top:4px;font-weight:400;font-size:15px}
  .field .element_error{color:var(--mrp-red);font-size:12.5px;font-weight:600} .field .element_error:empty{display:none}
  .fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:4px 24px}
  .checkout-login{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:20px}
  .checkout-login .checkout-panel{margin:0}
  .checkout-panel{border:1px solid var(--line);border-radius:var(--radius);padding:22px;margin-bottom:18px}
  .checkout-panel > h2,.checkout-panel > h3,.checkout-panel > legend{font-size:18px;font-weight:700;letter-spacing:-.01em;margin:0 0 14px}
  .checkout-panel p{margin:0 0 4px}
  /* optional company / delivery blocks: hidden until their checkbox is ticked (the inline jQuery toggle does the same; CSS avoids the flash before it runs) */
  #firemne_udaje:not(:has(#check_firemne_udaje:checked)) #f_udaje,#adresa_dodania:not(:has(#check_adresa_udaje:checked)) #a_udaje{display:none}
  .check{display:flex;align-items:flex-start;gap:10px;font-weight:500;font-size:14px;margin:6px 0 12px;cursor:pointer}
  .checkout-panel > .check{margin:0} #f_udaje,#a_udaje{margin-top:16px}
  .check input{width:18px;height:18px;margin-top:2px;flex:none;accent-color:var(--mrp-red)}
  .choice{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:14px;padding:14px 16px;margin-bottom:10px;cursor:pointer;font-size:14px;font-weight:500;background:#fff}
  .choice:has(input:checked){border:2px solid var(--mrp-blue);padding:13px 15px} .choice input{width:18px;height:18px;flex:none;accent-color:var(--mrp-red)}
  .choice:has(input:disabled){opacity:.5;cursor:not-allowed}
  .choice img{max-height:28px;width:auto}
  .choice__text{flex:1;min-width:0}
  .choice .combinationTax{color:var(--ink-3);font-size:13px}
  #orderPaymentCarrier .hidden,div#handling.hidden{display:none}
  #handling{font-weight:600;margin:6px 0 0}
  .checkout-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;align-items:center;margin-top:18px}
  .checkout-note textarea{width:100%;min-height:120px}
  .addr-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px}
  .addr-cols h3{font-size:16px;margin:0 0 8px}
  .addr-cols p{margin:0 0 2px;font-size:14px;color:var(--ink-2)}
  .order-lines td,.order-lines th{vertical-align:middle}
  .order-lines img{width:64px;height:52px;object-fit:contain;background:var(--blue-tint);border-radius:8px;mix-blend-mode:multiply}
  .order-lines td.num,.order-lines th.num{text-align:right;white-space:nowrap}
  .order-lines .serviceNoIn{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:13px;color:var(--ink-2)}
  .order-lines .serviceNoIn img{height:18px;width:auto;background:none}
  .order-done{text-align:center;max-width:640px;margin:10px auto 56px;display:grid;gap:12px;justify-items:center}
  .order-done > .bi{font-size:52px;color:var(--ok);line-height:1}
  .order-done p{margin:0;font-size:16px}
  @media (max-width:991.98px){.checkout{grid-template-columns:minmax(0,1fr)}.checkout__summary{position:static}}
  @media (max-width:575.98px){
    /* one row: numbers only, the active step keeps its (ellipsized) name; hidden names stay readable for screen readers */
    .order-steps{gap:6px;margin:18px 0 16px;flex-wrap:nowrap}
    .order-steps li{gap:6px;flex:none} .order-steps li.is-active{flex:0 1 auto;min-width:0}
    .order-steps li + li::after{width:10px;margin-right:0}
    .order-steps li span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
    .order-steps li:not(.is-active) span{position:absolute;width:1px;height:1px;clip:rect(0 0 0 0);overflow:hidden}
    .cart-line{grid-template-columns:64px minmax(0,1fr) 32px;gap:8px 12px;padding:12px}
    .cart-line__img,.cart-line img{width:64px;height:52px}
    .cart-line__img{grid-row:1 / span 2}
    .cart-line .cartDel{grid-column:3;grid-row:1}
    .cart-line .qty,.cart-line .line-total{grid-column:2}
    .cart-line .qty{grid-row:2;justify-self:start}
    .cart-line .line-total{grid-row:2;justify-self:end;align-self:center;min-width:0;grid-column:2 / span 2}
    .checkout-panel{padding:16px}
    .checkout-actions .btn-mrp{flex:1 1 100%}
    .order-lines .hide-xs{display:none}
  }
}
/* account, sign-in, CMS, compare, newsletter, error and payment pages (user/*, cms/*, compare, newsletter, error, payment, component) */
@layer pages{
  .page-title{font-size:clamp(26px,3vw,34px);margin:0 0 18px}
  .page-title--top{margin-top:24px}
  .section-title{font-size:18px;font-weight:700;letter-spacing:-.01em;margin:0 0 14px}
  /* own navigation / full-width content: no category sidebar next to them */
  .page-layout:has(.auth,.account,#compare){grid-template-columns:minmax(0,1fr)}
  .page-layout:has(.auth,.account,#compare) > .left{display:none}
  .element_error{color:var(--mrp-red);font-size:12.5px;font-weight:600} .element_error:empty{display:none}
  .field sup,.check sup,.form-note sup{color:var(--mrp-red);top:-.2em}
  .field input[readonly]{background:var(--blue-tint);color:var(--ink-2)}
  .form-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;margin-top:10px}
  .form-note{font-size:13px;color:var(--ink-3);margin:14px 0 0}
  .userForm p.form-note,.userForm p.consent-note{display:block}
  .form-section{border:0;padding:0;margin:0 0 22px;min-width:0}
  /* sign-in, registration, forgotten password (two columns: form | registration; stacked on phones) */
  .auth{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr);gap:24px;align-items:start;padding:24px 0}
  .auth--single{grid-template-columns:minmax(0,600px)}
  .auth .userForm{max-width:none}
  .auth .userForm form{display:block}
  .auth__main{padding:clamp(20px,3vw,34px);box-shadow:var(--shadow)}
  .auth__aside{background:var(--blue-tint);border-radius:var(--radius);padding:clamp(20px,3vw,34px);display:grid;gap:12px;justify-items:start}
  .auth__aside h2{margin:0}
  .auth__aside p{margin:0;color:var(--ink-2)}
  .auth__aside .bi{font-size:28px;color:var(--mrp-red);line-height:1}
  .captcha{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;margin-bottom:12px}
  .captcha #captcha{margin:0} .captcha #captcha img{border-radius:var(--radius-sm);border:1px solid var(--line);display:block}
  .captcha .field{flex:1;min-width:180px;margin:0}
  .consents{display:grid;gap:4px;margin:6px 0 4px}
  .consents .check{margin:0}
  .consents .element_error:not(:empty){display:block;margin:-2px 0 6px 28px}
  @media (max-width:767.98px){.auth{grid-template-columns:minmax(0,1fr)}}
  /* customer account: navigation (user/userPanel.tpl) | content */
  .account{display:grid;grid-template-columns:240px minmax(0,1fr);gap:32px;align-items:start;padding:24px 0}
  .account__main{min-width:0}
  .account__main .userForm{max-width:680px}
  .account__main .userForm form{display:block}
  .account-nav{position:sticky;top:96px}
  .account-nav .account-nav__title{font-size:12px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--mrp-red);margin:14px 12px 4px}
  .account-nav .account-nav__title:first-child{margin-top:4px}
  .account-nav a{gap:10px;align-items:center} .account-nav a .bi{color:var(--ink-3)} .account-nav a.active .bi{color:inherit}
  .account-section{margin-top:36px}
  .account-section__head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
  .account-section__head h2{margin:0}
  .data-table td{font-size:14px;vertical-align:middle}
  .data-table tr.alt_row td{background:var(--blue-tint)}
  .data-table td.num,.data-table th.num{text-align:right;white-space:nowrap}
  .data-table tbody tr[onclick]{cursor:pointer} .data-table tbody tr[onclick]:hover td{background:var(--blue-tint)}
  .data-table tfoot td{border:0;text-align:right;padding-top:6px;padding-bottom:0;color:var(--ink-2)}
  .data-table tfoot tr:last-child td{font-size:16px;font-weight:800;color:var(--ink);padding-top:10px}
  .row-actions{text-align:right;white-space:nowrap;width:1%}
  .row-actions a{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:50%;color:var(--ink-3);text-decoration:none}
  .row-actions a:hover{background:var(--blue-tint);color:var(--ink)} .row-actions a.delete:hover{background:var(--red-tint);color:var(--mrp-red)}
  .readonly p{display:grid;grid-template-columns:minmax(120px,200px) minmax(0,1fr);gap:12px;margin:0;padding:8px 0;border-bottom:1px solid var(--line);font-size:14px}
  .readonly p > span:first-child{color:var(--ink-3)}
  .consent-note{font-size:13.5px;color:var(--ink-2);background:var(--blue-tint);border-radius:var(--radius-sm);padding:12px 14px;margin:6px 0 16px}
  .danger-zone{border:1px solid var(--red-tint);border-radius:var(--radius);padding:22px;margin-top:36px}
  .danger-zone h2{margin:0 0 12px}
  .danger-zone .flash{margin:0 0 14px;font-size:14px}
  .danger-zone form{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 14px} .danger-zone .form-control{flex:1;min-width:200px;width:auto}
  .order-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:18px 0;font-size:14px;color:var(--ink-2)}
  .order-meta span{font-weight:600;color:var(--ink);background:var(--blue-tint);border-radius:var(--pill);padding:5px 12px}
  .addr-card{border:1px solid var(--line);border-radius:var(--radius);padding:18px 20px}
  .addr-card h2{font-size:16px;margin:0 0 10px}
  .addr-card dl{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 14px;margin:0;font-size:14px}
  .addr-card dt{color:var(--ink-3);font-weight:400} .addr-card dd{margin:0;font-weight:500;overflow-wrap:anywhere}
  .addr-note{align-self:center;font-size:13px;color:var(--ink-3)} .addr-note .color_red{color:var(--mrp-red)}
  .fav-actions{display:flex;gap:8px;margin-left:auto}
  .fav-actions .icon-btn:hover{border-color:var(--mrp-red);color:var(--mrp-red)}
  @media (max-width:991.98px){
    .account{grid-template-columns:minmax(0,1fr);gap:20px}
    .account-nav{position:static;display:flex;flex-wrap:wrap;gap:6px}
    .account-nav .account-nav__title{display:none}
    .account-nav a{border:1px solid var(--line);border-radius:var(--pill);padding:7px 14px}
  }
  @media (max-width:575.98px){.readonly p{grid-template-columns:minmax(0,1fr);gap:0}.danger-zone{padding:16px}}
  /* CMS articles, lists, newsletter, component output */
  .prose{max-width:820px;color:var(--ink-2);line-height:1.7;overflow-wrap:break-word;overflow-x:auto}
  .prose h1,.prose h2,.prose h3,.prose h4{color:var(--ink);margin:1.4em 0 .5em} .prose > :first-child{margin-top:0}
  .prose a{color:var(--mrp-red);font-weight:600}
  .prose img{border-radius:12px;max-width:100%;height:auto}
  .prose strong,.prose b{color:var(--ink)}
  .prose ul,.prose ol{padding-left:1.3em}
  .prose table{width:auto;max-width:100%}
  .cms-meta{display:flex;flex-wrap:wrap;align-items:center;gap:10px 28px;margin-top:28px;padding-top:16px;border-top:1px solid var(--line);font-size:13.5px;color:var(--ink-3);max-width:820px}
  .cms-meta a{font-weight:600}
  .cms-meta .tag a{display:inline-flex;border:1px solid var(--line);border-radius:var(--pill);padding:3px 10px;color:var(--ink);text-decoration:none;font-weight:500}
  .cms-meta .tag a:hover{border-color:var(--mrp-blue)}
  .cms-list{display:grid;gap:16px;max-width:860px}
  .cms-item h2{font-size:clamp(18px,2vw,22px);margin:4px 0 8px} .cms-item h2 a{color:var(--ink);text-decoration:none} .cms-item h2 a:hover{color:var(--mrp-red)}
  .cms-item .prose{font-size:14.5px}
  .cms-item .prose > :last-child{margin-bottom:0}
  /* product comparison: one column per product, feature rows of equal height */
  #compare{display:flex;overflow-x:auto;width:max-content;max-width:100%;border:1px solid var(--line);border-radius:var(--radius);margin-bottom:24px}
  #compare .compareItem{flex:0 0 210px;min-width:0;border-left:1px solid var(--line)}
  #compare .compareItem:first-child{border-left:0;position:sticky;left:0;z-index:1;background:#fff;flex-basis:190px;box-shadow:1px 0 0 var(--line)}
  #compare .compareItemHeader{position:relative;height:200px;padding:14px;background:var(--blue-tint);display:flex;flex-direction:column;gap:6px;overflow:hidden}
  #compare .compareHeader .compareItemHeader{background:#fff}
  #compare .compareItemHeader p{margin:0}
  #compare .compare-name a{font-weight:700;color:var(--ink);text-decoration:none;line-height:1.3;display:block;padding-right:28px}
  #compare .compare-img{height:64px;display:grid;place-items:center} #compare .compare-img img{max-height:60px;max-width:110px;object-fit:contain;mix-blend-mode:multiply}
  #compare .compare-perex{font-size:12px;color:var(--ink-3);line-height:1.4;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  #compare .compare-remove{position:absolute;top:8px;right:8px;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#fff;color:var(--ink-3);text-decoration:none}
  #compare .compare-remove:hover{background:var(--red-tint);color:var(--mrp-red)}
  #compare .valueHeader,#compare .fValue{height:46px;padding:0 14px;border-top:1px solid var(--line);font-size:13.5px;display:flex;flex-direction:column;justify-content:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #compare .valueHeader{font-weight:600;color:var(--ink-2)}
  #compare .boolFeatureHeader{margin:0;font-size:12px;font-weight:600;color:var(--ink-3)}
  #compare .valueHeader span{padding-left:10px}
  #compare .fValue.is-best{background:var(--ok-tint);color:var(--ok);font-weight:700}
  #compare .compareLast{min-height:60px;padding:12px 14px;border-top:1px solid var(--line);font-weight:800;font-size:17px;white-space:nowrap}
  #compare .compareLast small{display:block;font-size:11.5px;font-weight:400;color:var(--ink-3)}
  .compare-empty{display:grid;gap:14px;justify-items:center;text-align:center;padding:clamp(28px,5vw,48px);margin:24px 0}
  .compare-empty .bi{font-size:40px;color:var(--mrp-red);line-height:1}
  .compare-empty p{margin:0;font-size:16px;color:var(--ink-2)}
  /* error page */
  .error-page{max-width:640px;margin:16px auto 32px;text-align:center;display:grid;gap:14px;justify-items:center;padding:clamp(28px,5vw,52px)}
  .error-page__code{font-size:clamp(56px,8vw,88px);font-weight:800;color:var(--mrp-red);line-height:1;letter-spacing:-.04em}
  .error-page h1{margin:0;font-size:clamp(24px,3vw,32px)}
  .error-page__debug{width:100%;text-align:left;font-size:12px;max-height:320px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:var(--blue-tint);border-radius:var(--radius-sm);padding:12px;margin:8px 0 0}
  /* payment confirmation */
  #paymentConfirm{max-width:640px}
  #paymentConfirm .field input{width:100%}
}
@layer pages{
  @media (max-width:575.98px){#compare .compareItem{flex-basis:165px}#compare .compareItem:first-child{flex-basis:110px}#compare .valueHeader,#compare .fValue{padding:0 10px}}
}
