/* RYHA 3.1.29 – modernus gamintojo archyvas + tiesioginės Product Index kortelės */
.ryha-brand-archive-page .site-content .ast-container{
  max-width:none!important;
  width:100%!important;
  padding-left:0!important;
  padding-right:0!important;
  display:block!important;
}
.ryha-brand-archive-page #primary{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  float:none!important;
}
.ryha-brand-archive-page #secondary{display:none!important;}
body .ryha-brand-archive{
  width:100%;
  margin:0;
  padding:26px 0 48px;
  background:linear-gradient(180deg,#fbfdfb 0,#fff 220px);
}
body .ryha-brand-archive__shell{
  width:min(1600px,calc(100% - 40px));
  margin:0 auto;
}
body .ryha-brand-hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  margin:0 0 22px;
  padding:20px 22px;
  border:1px solid #e2ece3;
  border-radius:20px;
  background:linear-gradient(135deg,#fff 0%,#f7fbf7 100%);
  box-shadow:0 6px 24px rgba(20,45,27,.055);
}
body .ryha-brand-hero__identity{
  display:flex;
  align-items:center;
  gap:18px;
  min-width:0;
}
body .ryha-brand-hero__logo{
  flex:0 0 160px;
  width:160px;
  height:72px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border:1px solid #e8eee8;
  border-radius:14px;
  background:#fff;
}
body .ryha-brand-hero__logo img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
body .ryha-brand-hero__text{min-width:0;}
body .ryha-brand-hero__eyebrow{
  margin:0 0 4px;
  color:#299638;
  font-size:11px;
  font-weight:850;
  letter-spacing:.08em;
  text-transform:uppercase;
}
body .ryha-brand-hero__title-row{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
body .ryha-brand-hero h1{
  margin:0!important;
  padding:0!important;
  color:#17201a;
  font-size:clamp(28px,2.2vw,40px)!important;
  font-weight:800!important;
  line-height:1.1!important;
}
body .ryha-brand-hero__count{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:0 12px;
  border:1px solid #cfe3d1;
  border-radius:999px;
  background:#f3faf4;
  color:#287434;
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
}
body .ryha-brand-hero__description{
  max-width:820px;
  margin-top:7px;
  color:#68736a;
  font-size:13px;
  line-height:1.5;
}
body .ryha-brand-hero__description p{margin:0;}
body .ryha-brand-ordering{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:10px;
}
body .ryha-brand-ordering label{
  margin:0;
  color:#67726a;
  font-size:12px;
  font-weight:750;
}
body .ryha-brand-ordering select{
  min-width:220px;
  height:46px;
  margin:0;
  padding:0 40px 0 14px;
  border:1px solid #dbe6dc;
  border-radius:13px;
  background-color:#fff;
  color:#1f2a22;
  font-size:13px;
  font-weight:700;
  box-shadow:none;
}
body .ryha-brand-ordering select:focus{
  border-color:#8bcf92;
  outline:2px solid rgba(66,170,75,.12);
}

body .ryha-brand-index-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(205px,1fr))!important;
  gap:16px!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  align-items:stretch!important;
}
body .ryha-brand-index-grid .ryha-product-card{
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  min-width:0!important;
  max-width:none!important;
  height:100%!important;
  overflow:hidden!important;
  padding:0!important;
  margin:0!important;
  border:1px solid #e5ebe6!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:0 3px 14px rgba(20,45,27,.05)!important;
  transition:box-shadow .18s ease,border-color .18s ease,transform .18s ease!important;
}
body .ryha-brand-index-grid .ryha-product-card:hover{
  transform:translateY(-2px)!important;
  border-color:#d5e4d7!important;
  box-shadow:0 10px 28px rgba(20,45,27,.10)!important;
}
body .ryha-brand-index-grid .ryha-product-card__media{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  aspect-ratio:1/1!important;
  min-height:0!important;
  padding:12px!important;
  overflow:hidden!important;
  border:0!important;
  border-bottom:1px solid #edf1ed!important;
  border-radius:0!important;
  background:#fff!important;
}
body .ryha-brand-index-grid .ryha-product-card__image{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  margin:0!important;
  object-fit:contain!important;
  object-position:center!important;
}
body .ryha-brand-index-grid .ryha-product-card__placeholder{
  width:100%!important;
  height:100%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:#fafcfa!important;
  color:#98a29b!important;
}
body .ryha-brand-index-grid .ryha-product-card__body{
  display:flex!important;
  flex:1 1 auto!important;
  flex-direction:column!important;
  gap:7px!important;
  min-width:0!important;
  padding:12px 13px 0!important;
}
body .ryha-brand-index-grid .ryha-product-card__title{
  display:-webkit-box!important;
  min-height:38px!important;
  margin:0!important;
  overflow:hidden!important;
  color:#111827!important;
  font-size:13px!important;
  font-weight:800!important;
  line-height:1.42!important;
  text-align:center!important;
  text-decoration:none!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
}
body .ryha-brand-index-grid .ryha-loop-product-meta{
  min-height:15px!important;
  color:#89928b!important;
  font-size:10px!important;
  line-height:1.25!important;
  text-align:center!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
body .ryha-brand-index-grid .ryha-loop-product-meta strong{color:#69736b!important;font-weight:700!important;}
body .ryha-brand-index-grid .ryha-product-card__price{
  margin:auto 0 11px!important;
  color:#111827!important;
  font-size:16px!important;
  font-weight:850!important;
  line-height:1.1!important;
  text-align:center!important;
}
body .ryha-brand-index-grid .ryha-product-card__cart{
  width:auto!important;
  margin:0 -13px!important;
  padding:0!important;
}
body .ryha-brand-index-grid .ryha-product-card__button,
body .ryha-brand-index-grid .ryha-product-card__button--select{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-height:48px!important;
  margin:0!important;
  padding:0 10px!important;
  border:0!important;
  border-radius:0 0 15px 15px!important;
  background:linear-gradient(180deg,#2faa3a 0%,#218b2b 100%)!important;
  color:#fff!important;
  font-size:12.5px!important;
  font-weight:850!important;
  line-height:1!important;
  text-decoration:none!important;
  cursor:pointer!important;
}
body .ryha-brand-index-grid .ryha-product-card__button:hover,
body .ryha-brand-index-grid .ryha-product-card__button--select:hover{
  background:linear-gradient(180deg,#36b643 0%,#269434 100%)!important;
  color:#fff!important;
}
body .ryha-brand-index-grid .ryha-product-card__media > .ryha-badge.ryha-badge--image{
  position:absolute!important;
  top:auto!important;
  left:auto!important;
  right:10px!important;
  bottom:10px!important;
  z-index:5!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  width:auto!important;
  max-width:calc(100% - 20px)!important;
  margin:0!important;
  padding:6px 9px!important;
  border:1px solid transparent!important;
  border-radius:999px!important;
  font-size:10.5px!important;
  font-weight:800!important;
  line-height:1!important;
  white-space:nowrap!important;
  box-shadow:0 3px 12px rgba(0,0,0,.05)!important;
  pointer-events:none!important;
}
body .ryha-brand-index-grid .ryha-product-card__media > .ryha-badge--instock{background:#f3fbf4!important;border-color:#bfe5c5!important;color:#167328!important;}
body .ryha-brand-index-grid .ryha-product-card__media > .ryha-badge--preorder{background:#fffaf1!important;border-color:#ffd08d!important;color:#d97706!important;}
body .ryha-brand-index-grid .ryha-product-card__media > .ryha-badge--oos{background:#fff5f5!important;border-color:#efc5c5!important;color:#a52828!important;}
body .ryha-brand-index-grid .ryha-product-card__media > .ryha-badge .ryha-badge__dot{display:block!important;width:7px!important;height:7px!important;border-radius:50%!important;}

body .ryha-brand-pagination{display:flex;justify-content:center;margin:30px 0 0;}
body .ryha-brand-pagination ul.page-numbers{display:flex;align-items:center;gap:7px;margin:0!important;padding:0!important;list-style:none!important;}
body .ryha-brand-pagination li{margin:0!important;padding:0!important;}
body .ryha-brand-pagination a.page-numbers,
body .ryha-brand-pagination span.page-numbers{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:42px;
  height:42px;
  padding:0 10px;
  border:1px solid #dfe8e0;
  border-radius:12px;
  background:#fff;
  color:#334139;
  font-size:13px;
  font-weight:800;
  text-decoration:none;
}
body .ryha-brand-pagination span.page-numbers.current{border-color:#36a444;background:#2e9d3a;color:#fff;}
body .ryha-brand-pagination a.page-numbers:hover{border-color:#bcd9bf;background:#f3faf4;color:#237a2d;}
body .ryha-brand-empty{
  padding:44px 24px;
  border:1px solid #e4ece5;
  border-radius:18px;
  background:#fff;
  color:#647067;
  text-align:center;
  font-size:15px;
}

@media (max-width:900px){
  body .ryha-brand-archive{padding-top:16px;}
  body .ryha-brand-archive__shell{width:min(100% - 24px,1600px);}
  body .ryha-brand-hero{align-items:stretch;flex-direction:column;padding:16px;gap:14px;}
  body .ryha-brand-ordering{width:100%;}
  body .ryha-brand-ordering label{display:none;}
  body .ryha-brand-ordering select{width:100%;min-width:0;}
}
@media (max-width:767px){
  body .ryha-brand-archive__shell{width:calc(100% - 20px);}
  body .ryha-brand-hero__identity{align-items:flex-start;gap:12px;}
  body .ryha-brand-hero__logo{flex-basis:108px;width:108px;height:58px;padding:6px 8px;}
  body .ryha-brand-hero h1{font-size:25px!important;}
  body .ryha-brand-hero__count{min-height:28px;padding:0 9px;font-size:11px;}
  body .ryha-brand-hero__description{font-size:12px;}
  body .ryha-brand-index-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
  body .ryha-brand-index-grid .ryha-product-card__media{padding:8px!important;}
  body .ryha-brand-index-grid .ryha-product-card__body{padding:9px 9px 0!important;}
  body .ryha-brand-index-grid .ryha-product-card__cart{margin:0 -9px!important;}
  body .ryha-brand-index-grid .ryha-product-card__title{font-size:12.5px!important;min-height:35px!important;}
  body .ryha-brand-index-grid .ryha-product-card__price{font-size:15px!important;}
}
@media (max-width:430px){
  body .ryha-brand-hero__logo{display:none;}
  body .ryha-brand-hero{border-radius:16px;}
  body .ryha-brand-pagination a.page-numbers,
  body .ryha-brand-pagination span.page-numbers{min-width:36px;height:36px;padding:0 7px;border-radius:10px;}
}
body .ryha-brand-index-grid .ryha-product-card__media > .ryha-badge--instock .ryha-badge__dot{background:#24ad43!important;}
body .ryha-brand-index-grid .ryha-product-card__media > .ryha-badge--preorder .ryha-badge__dot{background:#f3a719!important;}
body .ryha-brand-index-grid .ryha-product-card__media > .ryha-badge--oos .ryha-badge__dot{background:#cf3f3f!important;}


/* 3.1.45 – breathing room below short brand product grids.
   #primary previously had padding:0!important, which cancelled .ryha-brand-archive padding. */
.ryha-brand-archive-page #primary.ryha-brand-archive{
  padding:26px 0 82px!important;
  box-sizing:border-box!important;
}
.ryha-brand-archive-page .ryha-brand-index-grid + .ryha-brand-pagination{
  margin-top:30px!important;
}
@media (max-width: 767px){
  .ryha-brand-archive-page #primary.ryha-brand-archive{
    padding:16px 0 58px!important;
  }
}
