
/* ---------- telefon in tablica ---------- */
/* vrstica podkategorij nad izdelki (namesto stranskega seznama) */
.ay-cipi { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 0 12px;
  margin: 0 0 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ay-cipi::-webkit-scrollbar { display: none; }
.ay-cip { flex: 0 0 auto; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 6px; min-height: 40px;
  padding: 0 16px; border: 1px solid #C9CFD6; border-radius: 999px; background: #fff; color: #223044 !important;
  font-size: 14px; font-weight: 500; white-space: nowrap; text-decoration: none !important; }
.ay-cip:active { background: #F4F6F8; }
.ay-cip-nazaj { background: #223044; border-color: #223044; color: #fff !important; font-weight: 600; }
.ay-cip-sale { color: #B04A3F !important; border-color: #B04A3F; font-weight: 700; }
/* stranski seznam kategorij: gumb za prikaz / skritje na vseh velikostih */
.ay-kat-orodja { display: flex; margin: 0 0 12px; }
.ay-kat-preklop { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  border: 1px solid #C9CFD6; border-radius: 999px; background: #fff; color: #223044; font-size: 14px; font-weight: 600; }
.ay-kat-preklop:hover { border-color: #223044; }
/* na racunalniku je stranski seznam vedno prikazan, gumba ni (lastnik 22. 9. 2026) */
@media (min-width: 992px) { .ay-kat-orodja { display: none !important; } }
@media (max-width: 991.98px) { body.ay-kat-skrij #products_grid_before { display: none !important; } }
@media (max-width: 991.98px) {
  body.ay-kat-pokazi #products_grid_before { display: block !important; position: static !important; }
  /* na manjsih zaslonih v stranskem seznamu samo kategorije - filtri so v vrstici nad izdelki */
  body.ay-kat-pokazi #products_grid_before .accordion-item:not(:has(.wsale_products_categories_list)) { display: none !important; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  body.ay-kat-pokazi #products_grid_before { flex: 0 0 230px !important; width: 230px !important; max-width: 230px !important; }
  body.ay-kat-pokazi #o_wsale_products_grid > .oe_product { grid-column: auto / span 6 !important; }
}
@media (max-width: 767.98px) {
  body.ay-kat-pokazi .o_wsale_products_main_row { flex-wrap: wrap !important; }
  body.ay-kat-pokazi #products_grid { flex: 0 0 100% !important; max-width: 100% !important; }
  body.ay-kat-pokazi #products_grid_before { flex: 0 0 100% !important; width: 100% !important; max-width: 100% !important; order: -1; margin: 0 0 12px;
    background: #fff; border: 1px solid #E3E7EC; border-radius: 16px; padding: 8px 12px; }
  /* filtri: plosca se odpre spodaj cez celo sirino, ne vec cez rob zaslona */
  .ss-filter-bar .accordion-collapse, .ss-filter-bar .accordion-collapse.ss-fb-right {
    position: fixed !important; left: 12px !important; right: 12px !important; top: auto !important; bottom: 12px !important;
    min-width: 0 !important; max-width: none !important; max-height: 62vh !important; z-index: 1060 !important;
    border-radius: 16px !important; box-shadow: 0 -8px 40px rgba(17,24,39,.22) !important; }
}
/* iskanje v glavi: umirjen gumb - ikona v polju namesto temnega kroga */
.ss-topbar-search form button[type=submit] { background: transparent !important; color: #223044 !important;
  border: 0 !important; box-shadow: none !important; transition: background .15s; }
.ss-topbar-search form button[type=submit]:hover { background: #E3E7EC !important; }
.ss-topbar-search form button[type=submit] svg { stroke: #223044; }
.ss-topbar-search form:focus-within { box-shadow: 0 0 0 1px #223044; border-radius: 999px; }
/* gumb s tremi crtami (Alle Kategorien / Kategorien): tanek, brez polnega kroga (lastnik 22. 9. 2026) */
.ss-mega-burger { background: transparent !important; width: 32px !important; height: 32px !important; gap: 4px !important;
  border-radius: 50%; transition: background .15s; }
/* crte enako debele: cela piksla (1,8 px se je zaokrozilo razlicno) */
.ss-mega-burger i { background: #223044 !important; width: 18px !important; height: 2px !important; min-height: 2px;
  border-radius: 1px !important; flex: 0 0 2px; transform: translateZ(0); }
.ss-mega-opener:hover .ss-mega-burger, .ay-mob-kategorije:hover .ss-mega-burger { background: #F4F6F8 !important; }
/* stran trgovine: enakomerni razmiki (24 px) med pasico, naslovom, filtri in izdelki; lepsi naslov */
#products_grid .ss-shop-banner { margin-bottom: 0 !important; }
#products_grid #o_wsale_products_header { flex-direction: row !important; flex-wrap: wrap; align-items: flex-end !important;
  justify-content: space-between; gap: 8px 16px !important; padding: 0 !important; margin: 24px 0 16px !important; }
#products_grid .o_wsale_shop_title h1, #products_grid #o_wsale_products_header h1 { font-size: 28px !important; font-weight: 800 !important; letter-spacing: -.01em;
  color: #223044; margin: 0 !important; display: flex; align-items: baseline; gap: 12px; }
#products_grid h1 .ss-count { background: none !important; padding: 0 !important; border: 0 !important;
  font-size: 15px !important; font-weight: 500 !important; color: #6B7280 !important; letter-spacing: 0; }
#products_grid .products_header { margin-left: auto; }
#products_grid .ss-filter-bar { margin: 0 0 24px !important; }
#products_grid .ay-cipi { margin-bottom: 16px; }
#products_grid .o_wsale_products_header + nav.breadcrumb, #products_grid > nav[aria-label="breadcrumb"] { margin: 24px 0 0 !important; }
@media (max-width: 767.98px) {
  #products_grid #o_wsale_products_header h1 { font-size: 22px !important; }
  #products_grid #o_wsale_products_header { margin: 16px 0 12px !important; }
  #products_grid .ss-filter-bar { margin-bottom: 16px !important; }
}
/* stevilo v kosarici in na merkzettlu: negativ - svetla znacka s temno stevilko, manj izstopa */
header .ay-stevec, .o_header_mobile .ay-stevec { background: #FFFFFF !important; color: #223044 !important;
  border: 1.5px solid #223044 !important; font-weight: 700 !important; box-shadow: none !important; }
/* mobilna glava: Kategorien levo, ikone desno */
.o_header_mobile .o_main_nav > .flex-grow-1 { display: flex; }
.ay-mob-kategorije { order: -1; margin-right: auto; }
/* tablica pokonci: 3 izdelki v vrsti */
@media (min-width: 768px) and (max-width: 991.98px) {
  #o_wsale_products_grid > .oe_product { grid-column: auto / span 4 !important; }
}
/* telefon: robovi in dotik */
@media (max-width: 767.98px) {
  /* akcijska pasica nad izdelki: kompaktna, brez podnaslova */
  html body .ss-shop-banner.ay-ban { padding: 14px 16px !important; gap: 12px; margin-bottom: 16px !important; }
  html body .ay-ban .ss-shop-banner-text { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
  .ay-ban-kicker { margin: 0; width: 100%; font-size: 11px; }
  .ay-ban .ss-shop-banner-text h2 { font-size: 17px !important; margin: 0 !important; flex: 1 1 0; min-width: 0; }
  .ay-ban .ss-shop-banner-text p { display: none !important; }
  .ay-ban .ss-shop-banner-cta { padding: 8px 14px; font-size: 13px; flex: 0 0 auto; white-space: nowrap; }
  #products_grid .o_wsale_products_header { gap: 8px; }
  .oe_product .o_wsale_product_btn .btn, .oe_product .o_wsale_product_btn button { min-height: 44px; }
}
