/*
Theme Name: Sigurnost Shop
Theme URI: https://shop.sigurnost.bg/
Author: Sigurnost.bg
Description: WooCommerce theme for shop.sigurnost.bg, visually aligned with the main Sigurnost.bg site.
Version: 2.8.0
Text Domain: sigurnost-shop
Requires at least: 6.5
Requires PHP: 8.0
*/

:root{
  --ink:#0d1722;
  --navy:#071826;
  --navy2:#102333;
  --muted:#647181;
  --paper:#ffffff;
  --soft:#f5f7f9;
  --accent:#ed1c24;
  --accent-dark:#c9151c;
  --line:#dfe5eb;
  --radius:13px;
  --shadow:0 10px 28px rgba(12,24,36,.07);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:Arial,Helvetica,sans-serif;line-height:1.5}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}
.container{width:min(1180px,calc(100% - 40px));margin:auto}

/* TOP + HEADER */
.topbar{background:var(--navy);color:#fff;font-size:12px}
.topbar .container{min-height:31px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.topbar-right{display:flex;gap:18px;align-items:center}
.site-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:80}
.header-main{min-height:80px;display:grid;grid-template-columns:auto 1fr auto;gap:28px;align-items:center}
.custom-logo-link{display:flex;align-items:center}
.custom-logo{max-height:53px;width:auto}
.brand{font-weight:900;font-size:27px;letter-spacing:-1px;white-space:nowrap}
.brand span{color:var(--accent)}
.main-nav{justify-self:center}
.main-nav ul{display:flex;gap:24px;align-items:center;list-style:none;padding:0;margin:0}
.main-nav a{font-weight:700;font-size:14px;position:relative;padding:29px 0 27px}
.main-nav a:hover,.main-nav .current-menu-item>a{color:var(--accent)}
.main-nav .current-menu-item>a:after{content:"";position:absolute;left:0;right:0;bottom:18px;height:2px;background:var(--accent)}
.header-actions{display:flex;gap:10px;align-items:center}
.search-box{display:flex;border:1px solid var(--line);border-radius:999px;overflow:hidden;background:#fff;height:42px}
.search-box input{border:0;outline:0;padding:0 14px;min-width:235px;font-size:13px}
.search-box button{border:0;background:var(--accent);color:#fff;padding:0 18px;font-weight:800;cursor:pointer}
.search-box button:hover{background:var(--accent-dark)}
.cart-link{background:var(--ink);color:#fff;border-radius:999px;padding:11px 17px;font-weight:900;white-space:nowrap}

/* HERO */
.hero{background:linear-gradient(115deg,#061827 0%,#102333 72%,#21394b 100%);color:#fff;padding:54px 0 48px}
.hero-grid{display:grid;grid-template-columns:1.18fr .82fr;gap:54px;align-items:center}
.eyebrow{color:#ff4d54;font-weight:900;text-transform:uppercase;letter-spacing:1.5px;font-size:12px}
.hero h1{font-size:clamp(38px,5vw,61px);line-height:1.06;margin:12px 0 16px;letter-spacing:-1.8px;max-width:700px}
.hero p{color:#dbe3ea;font-size:17px;max-width:690px;margin:0}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:25px}
.btn{display:inline-flex;align-items:center;justify-content:center;padding:12px 18px;border-radius:9px;font-weight:900}
.btn-primary{background:var(--accent);color:#fff}.btn-primary:hover{background:var(--accent-dark)}
.btn-ghost{border:1px solid #728394;color:#fff}
.hero-card{background:#fff;color:var(--ink);padding:25px 27px;border-radius:19px;box-shadow:var(--shadow)}
.hero-card strong{font-size:18px}
.hero-card ul{padding-left:19px;margin:14px 0 0;color:var(--muted)}
.hero-card li{margin:5px 0}

/* SECTIONS */
.section{padding:50px 0}
.section.soft{background:var(--soft)}
.section-head{display:flex;justify-content:space-between;gap:20px;align-items:end;margin-bottom:24px}
.section-head h2{font-size:32px;line-height:1.15;margin:5px 0 0;letter-spacing:-.6px}
.section-head p{color:var(--muted);margin:0}
.cat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.cat-card{background:#fff;border:1px solid var(--line);padding:21px;border-radius:var(--radius);min-height:142px;box-shadow:0 4px 15px rgba(15,23,42,.035);transition:.2s ease}
.cat-card:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:#ccd5de}
.cat-card b{display:block;font-size:17px;margin-bottom:8px}
.cat-card span{color:var(--muted);font-size:14px}

/* SHOP ARCHIVE */
.shop-shell{padding:38px 0 58px}
.shop-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:18px}
.shop-heading h1,.woocommerce-products-header__title.page-title{font-size:34px;margin:0;letter-spacing:-.7px}
.shop-heading p{margin:0;color:var(--muted)}
.shop-categories{display:flex;gap:9px;flex-wrap:wrap;margin:0 0 26px}
.shop-categories a{border:1px solid var(--line);border-radius:999px;padding:8px 13px;font-size:13px;font-weight:800;background:#fff}
.shop-categories a:hover{border-color:var(--accent);color:var(--accent)}
.woocommerce .woocommerce-result-count{color:var(--muted);margin:7px 0 22px}
.woocommerce .woocommerce-ordering{margin:0 0 22px}
.woocommerce .woocommerce-ordering select{border:1px solid var(--line);border-radius:8px;padding:9px 35px 9px 11px;background:#fff;color:var(--ink)}
.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-top:8px!important}
.woocommerce ul.products::before,.woocommerce ul.products::after{display:none!important}
.woocommerce ul.products li.product{
  width:auto!important;margin:0!important;background:#fff;border:1px solid var(--line);
  border-radius:var(--radius);padding:14px 14px 15px;box-shadow:0 5px 16px rgba(15,23,42,.045);
  display:flex!important;flex-direction:column;min-width:0;transition:.2s ease
}
.woocommerce ul.products li.product:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:#ccd4dc}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link{display:flex;flex-direction:column;flex:1}
.woocommerce ul.products li.product img{
  border-radius:9px;background:#fff;width:100%;height:245px!important;aspect-ratio:auto!important;
  object-fit:contain;margin:0 0 14px!important;padding:5px
}
.woocommerce ul.products li.product .woocommerce-loop-product__title{
  font-size:15px!important;line-height:1.38!important;min-height:62px;padding:0!important;margin:0 0 7px!important;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden
}
.woocommerce ul.products li.product .price{color:var(--accent)!important;font-weight:900!important;font-size:19px!important;margin:0 0 13px!important}
.woocommerce ul.products li.product .button{margin-top:auto!important;width:max-content}
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit,
.woocommerce button.button.alt,.woocommerce a.button.alt{
  background:var(--accent)!important;color:#fff!important;border-radius:8px!important;font-weight:800!important;
  padding:11px 15px!important
}
.woocommerce a.button:hover,.woocommerce button.button:hover{background:var(--accent-dark)!important;color:#fff!important}

/* SINGLE PRODUCT */
.woocommerce div.product{padding:38px 0 12px}
.woocommerce div.product div.images,.woocommerce div.product div.summary{margin-bottom:32px}
.woocommerce div.product div.images{width:47%!important}
.woocommerce div.product div.summary{width:48%!important;padding:9px 0 0}
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper{
  border:1px solid var(--line);border-radius:16px;background:#fff;overflow:hidden
}
.woocommerce div.product div.images img{
  border:0!important;border-radius:0!important;width:100%;max-height:530px;object-fit:contain;padding:18px;background:#fff
}
.woocommerce div.product .product_title{font-size:35px;line-height:1.18;letter-spacing:-.7px;margin:0 0 18px}
.woocommerce div.product p.price{color:var(--accent)!important;font-size:29px!important;font-weight:900;margin:0 0 24px}
.woocommerce-product-details__short-description{font-size:16px;color:#263441;margin-bottom:20px}
.woocommerce div.product form.cart{display:flex;gap:8px;align-items:center;margin:21px 0 24px!important}
.woocommerce .quantity .qty{height:42px;border:1px solid var(--line);border-radius:7px;padding:0 7px}
.woocommerce div.product .product_meta{
  border-top:1px solid var(--line);padding-top:18px;color:var(--muted);font-size:14px;line-height:1.8
}
.woocommerce div.product .product_meta>span{display:block}
.woocommerce div.product .product_meta a{color:var(--ink);font-weight:700}
.woocommerce div.product .woocommerce-tabs{padding-top:7px}
.woocommerce div.product .woocommerce-tabs ul.tabs{padding:0!important;margin:0 0 22px!important;border-bottom:1px solid var(--line)}
.woocommerce div.product .woocommerce-tabs ul.tabs::before{display:none!important}
.woocommerce div.product .woocommerce-tabs ul.tabs li{
  border:0!important;background:transparent!important;margin:0 18px 0 0!important;padding:0!important;border-radius:0!important
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,.woocommerce div.product .woocommerce-tabs ul.tabs li::after{display:none!important}
.woocommerce div.product .woocommerce-tabs ul.tabs li a{padding:11px 1px!important;color:var(--muted)!important}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a{color:var(--ink)!important;border-bottom:3px solid var(--accent)}
.woocommerce-Tabs-panel h2{font-size:25px}
.related.products{padding-top:15px}
.related.products>h2{font-size:26px;margin-bottom:20px}

/* CONTENT */
.content-area{padding:38px 0 58px}
.content-area>article>h1{font-size:36px}

/* TRUST + FOOTER */
.trust{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.trust>div{padding:22px;border-left:3px solid var(--accent);background:#fff;box-shadow:var(--shadow)}
.site-footer{background:#0c131b;color:#d2dae2;padding:43px 0 22px}
.footer-grid{display:grid;grid-template-columns:1.8fr 1fr 1fr;gap:52px}
.site-footer h3{color:#fff;margin-top:0;font-size:18px}
.site-footer p{margin:7px 0;color:#c9d1d9}
.site-footer ul{list-style:none;margin:0;padding:0}
.site-footer li{margin:7px 0}
.site-footer a:hover{color:#fff}
.footer-bottom{border-top:1px solid #29333d;margin-top:31px;padding-top:18px;color:#93a0ad;font-size:13px}

/* MOBILE */
.mobile-nav-toggle{display:none}
@media(max-width:1050px){
  .main-nav ul{gap:15px}.main-nav a{font-size:13px}.search-box input{min-width:180px}
}
@media(max-width:900px){
  .topbar{display:none}
  .header-main{grid-template-columns:1fr auto;min-height:70px}
  .main-nav{display:none}
  .search-box{display:none}
  .hero-grid{grid-template-columns:1fr}
  .hero-card{max-width:650px}
  .cat-grid,.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .trust,.footer-grid{grid-template-columns:1fr}
  .woocommerce div.product div.images,.woocommerce div.product div.summary{float:none!important;width:100%!important}
  .woocommerce div.product div.images img{max-height:480px}
}
@media(max-width:560px){
  .container{width:min(100% - 22px,1180px)}
  .hero{padding:38px 0}
  .hero h1{font-size:39px}
  .cat-grid,.woocommerce ul.products{grid-template-columns:1fr!important}
  .woocommerce ul.products li.product img{height:280px!important}
  .brand{font-size:23px}.cart-link{padding:10px 13px}
  .woocommerce div.product .product_title{font-size:29px}
}


/* =========================================================
   v1.2 visual refinement
   Compact product cards + balanced single-product gallery
   ========================================================= */

/* Slightly tighter homepage hero */
.hero{padding:46px 0 43px}
.hero h1{font-size:clamp(38px,4.7vw,58px)}
.section{padding:45px 0}

/* Compact product cards: image area no longer creates a large white gap */
.woocommerce ul.products{
  align-items:stretch;
}
.woocommerce ul.products li.product{
  padding:12px 13px 14px;
}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link{
  display:block;
  flex:0 0 auto;
}
.woocommerce ul.products li.product img{
  height:205px!important;
  min-height:205px!important;
  max-height:205px!important;
  object-fit:contain!important;
  object-position:center!important;
  padding:4px!important;
  margin:0 0 12px!important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title{
  min-height:61px!important;
  margin:0 0 5px!important;
}
.woocommerce ul.products li.product .price{
  margin:0 0 11px!important;
}
.woocommerce ul.products li.product .button{
  margin-top:auto!important;
  align-self:flex-start;
}

/* Product page: reduce the oversized gallery and align information block */
.woocommerce div.product{
  padding-top:32px;
}
.woocommerce div.product div.images{
  width:45%!important;
}
.woocommerce div.product div.summary{
  width:51%!important;
  padding-top:5px;
}
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper{
  min-height:0!important;
}
.woocommerce div.product div.images img{
  height:420px!important;
  max-height:420px!important;
  width:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  padding:15px!important;
}
.woocommerce div.product .product_title{
  font-size:34px;
  margin-bottom:15px;
}
.woocommerce div.product p.price{
  margin-bottom:20px;
}
.woocommerce-product-details__short-description{
  margin-bottom:17px;
}
.woocommerce div.product form.cart{
  margin:18px 0 22px!important;
}

/* Tabs and related products closer to the main product */
.woocommerce div.product .woocommerce-tabs{
  clear:both;
  padding-top:0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs{
  margin-bottom:17px!important;
}
.woocommerce-Tabs-panel{
  margin-bottom:30px!important;
}
.related.products{
  padding-top:5px;
}
.related.products>h2{
  margin-bottom:16px;
}

/* Related products use an even more compact image well */
.related.products ul.products li.product img{
  height:180px!important;
  min-height:180px!important;
  max-height:180px!important;
}

/* Shop archive breathing room without the old empty top area */
.shop-shell{
  padding-top:31px;
}
.shop-heading{
  margin-bottom:14px;
}

@media(max-width:900px){
  .hero{padding:38px 0}
  .woocommerce ul.products li.product img{
    height:210px!important;
    min-height:210px!important;
    max-height:210px!important;
  }
  .woocommerce div.product div.images,
  .woocommerce div.product div.summary{
    width:100%!important;
  }
  .woocommerce div.product div.images img{
    height:auto!important;
    max-height:430px!important;
  }
}
@media(max-width:560px){
  .woocommerce ul.products li.product img{
    height:230px!important;
    min-height:230px!important;
    max-height:230px!important;
  }
  .related.products ul.products li.product img{
    height:210px!important;
    min-height:210px!important;
    max-height:210px!important;
  }
}


/* =========================================================
   v1.3 Shop navigation + filters
   ========================================================= */

.shop-layout{
  display:grid;
  grid-template-columns:245px minmax(0,1fr);
  gap:28px;
  align-items:start;
}
.shop-sidebar{
  position:sticky;
  top:104px;
  border:1px solid var(--line);
  border-radius:13px;
  background:#fff;
  padding:18px;
}
.shop-filter-block + .shop-filter-block{
  border-top:1px solid var(--line);
  margin-top:18px;
  padding-top:18px;
}
.shop-filter-title{
  font-size:15px;
  font-weight:900;
  margin:0 0 11px;
}
.shop-category-list{
  list-style:none;
  margin:0;
  padding:0;
}
.shop-category-list li{
  margin:2px 0;
}
.shop-category-list a{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:7px 8px;
  border-radius:7px;
  font-size:14px;
}
.shop-category-list a:hover,
.shop-category-list .is-active>a{
  background:var(--soft);
  color:var(--accent);
}
.shop-category-list small{
  color:#8a96a3;
}
.shop-price-form{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.shop-price-form input{
  width:100%;
  border:1px solid var(--line);
  border-radius:7px;
  padding:9px 8px;
  min-width:0;
}
.shop-price-form button{
  grid-column:1 / -1;
  border:0;
  border-radius:8px;
  padding:10px 12px;
  background:var(--ink);
  color:#fff;
  font-weight:800;
  cursor:pointer;
}
.shop-price-form button:hover{background:var(--accent)}
.shop-reset{
  display:inline-block;
  margin-top:9px;
  font-size:13px;
  color:var(--muted);
}
.shop-main{
  min-width:0;
}
.shop-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  margin:0 0 18px;
}
.shop-toolbar .woocommerce-result-count,
.shop-toolbar .woocommerce-ordering{
  float:none!important;
  margin:0!important;
}
.shop-toolbar .woocommerce-ordering select{
  min-width:210px;
}
.shop-main .woocommerce ul.products,
.shop-main ul.products{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
.shop-main .woocommerce-pagination{
  margin-top:28px;
}
.woocommerce nav.woocommerce-pagination ul{
  border:0!important;
}
.woocommerce nav.woocommerce-pagination ul li{
  border:0!important;
  margin:0 3px!important;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span{
  border:1px solid var(--line);
  border-radius:7px;
  min-width:38px;
  padding:9px 11px!important;
}
.woocommerce nav.woocommerce-pagination ul li span.current{
  background:var(--accent)!important;
  color:#fff!important;
  border-color:var(--accent)!important;
}

@media(max-width:980px){
  .shop-layout{grid-template-columns:1fr}
  .shop-sidebar{
    position:static;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
  }
  .shop-filter-block + .shop-filter-block{
    border-top:0;
    border-left:1px solid var(--line);
    margin-top:0;
    padding-top:0;
    padding-left:18px;
  }
  .shop-main .woocommerce ul.products,
  .shop-main ul.products{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:620px){
  .shop-sidebar{grid-template-columns:1fr}
  .shop-filter-block + .shop-filter-block{
    border-left:0;
    border-top:1px solid var(--line);
    margin-top:0;
    padding-left:0;
    padding-top:18px;
  }
  .shop-toolbar{align-items:flex-start;flex-direction:column}
  .shop-toolbar .woocommerce-ordering,
  .shop-toolbar .woocommerce-ordering select{width:100%}
  .shop-main .woocommerce ul.products,
  .shop-main ul.products{
    grid-template-columns:1fr!important;
  }
}


/* =========================================================
   v1.4 Shop archive fix
   archive-product.php now takes precedence because woocommerce.php is removed
   ========================================================= */

body.post-type-archive-product .shop-shell,
body.tax-product_cat .shop-shell{
  padding-top:34px;
}

body.post-type-archive-product .woocommerce-products-header,
body.tax-product_cat .woocommerce-products-header{
  display:none!important;
}

.shop-layout{
  margin-top:22px;
}

.shop-sidebar{
  align-self:start;
}

.shop-main .products{
  margin-top:0!important;
}

.shop-toolbar{
  border-bottom:1px solid var(--line);
  padding-bottom:14px;
}

.shop-toolbar .woocommerce-result-count{
  font-size:14px;
  color:var(--muted);
}

.shop-category-list li ul{
  list-style:none;
  padding:2px 0 2px 12px;
  margin:0;
}

.shop-category-list li ul a{
  font-size:13px;
  color:var(--muted);
}

@media(max-width:980px){
  .shop-layout{margin-top:18px}
}

/* v1.5: shop starts directly with navigation/filters */
body.post-type-archive-product .shop-shell,
body.tax-product_cat .shop-shell{
  padding-top:26px;
}

/* v1.6: pull Shop content closer to header */
body.post-type-archive-product .shop-shell,
body.tax-product_cat .shop-shell{
  padding-top:10px!important;
}
body.post-type-archive-product .woocommerce-breadcrumb,
body.tax-product_cat .woocommerce-breadcrumb{
  margin-top:0!important;
  margin-bottom:18px!important;
}

/* v1.8: make the extra main-site link fit cleanly in the header */
.main-nav ul{gap:22px!important}
.main-nav a{white-space:nowrap}
.main-nav .main-site-link a{color:var(--accent)!important;font-weight:900}

/* v1.9 brand: SHOP. in red */
.brand .brand-shop{color:var(--accent)!important}

/* =========================================================
   v2.2 header layout - corrected selectors
   Actual wrapper is .header-main, not .header-inner.
   Row 1: logo + navigation
   Row 2: search + cart, aligned right
   ========================================================= */
@media (min-width: 981px){
  .header-main{
    min-height:0!important;
    display:grid!important;
    grid-template-columns:auto 1fr!important;
    grid-template-rows:auto auto!important;
    grid-template-areas:
      "logo nav"
      "logo actions"!important;
    column-gap:30px!important;
    row-gap:8px!important;
    align-items:center!important;
    padding-top:11px!important;
    padding-bottom:11px!important;
  }

  .logo-wrap{
    grid-area:logo!important;
    align-self:start!important;
    padding-top:6px!important;
  }

  .main-nav{
    grid-area:nav!important;
    justify-self:end!important;
    display:block!important;
  }

  .main-nav ul{
    display:flex!important;
    flex-wrap:nowrap!important;
    justify-content:flex-end!important;
    gap:22px!important;
  }

  .main-nav a{
    padding:5px 0!important;
    white-space:nowrap!important;
  }

  .main-nav .current-menu-item>a:after{
    bottom:0!important;
  }

  .header-actions{
    grid-area:actions!important;
    justify-self:end!important;
    display:flex!important;
    align-items:center!important;
    gap:10px!important;
    width:470px!important;
    max-width:100%!important;
  }

  .search-box{
    flex:1 1 auto!important;
    min-width:0!important;
    width:auto!important;
  }

  .search-box input{
    min-width:0!important;
    width:100%!important;
  }

  .cart-link{
    flex:0 0 auto!important;
  }
}

/* =========================================================
   v2.3 balanced two-row header
   Row 1: logo left + navigation right
   Row 2: search + cart across the full container, aligned right
   ========================================================= */
@media (min-width: 981px){
  .header-main{
    display:grid!important;
    grid-template-columns:auto 1fr!important;
    grid-template-rows:auto auto!important;
    grid-template-areas:
      "logo nav"
      "actions actions"!important;
    column-gap:30px!important;
    row-gap:8px!important;
    align-items:center!important;
    padding-top:10px!important;
    padding-bottom:10px!important;
  }

  .logo-wrap{
    grid-area:logo!important;
    padding:0!important;
    align-self:center!important;
  }

  .brand{
    font-size:27px!important;
    line-height:1!important;
  }

  .main-nav{
    grid-area:nav!important;
    justify-self:end!important;
  }

  .main-nav ul{
    display:flex!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:22px!important;
  }

  .main-nav a{
    padding:4px 0!important;
    white-space:nowrap!important;
  }

  .header-actions{
    grid-area:actions!important;
    width:100%!important;
    max-width:none!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:12px!important;
    margin:0!important;
  }

  .search-box{
    width:430px!important;
    flex:0 0 430px!important;
    height:40px!important;
  }

  .search-box input{
    width:100%!important;
    min-width:0!important;
  }

  .cart-link{
    flex:0 0 auto!important;
    padding:10px 16px!important;
  }
}

@media (min-width: 1180px){
  .search-box{
    width:470px!important;
    flex-basis:470px!important;
  }
}

/* =========================================================
   v2.5 Articles dropdown menu
   ========================================================= */
@media (min-width: 901px){
  .main-nav li{position:relative}
  .main-nav .articles-menu-item>a:after{
    content:"▾";
    position:static;
    display:inline-block;
    height:auto;
    background:none;
    margin-left:6px;
    font-size:11px;
    vertical-align:1px;
  }

  .main-nav .sub-menu{
    position:absolute;
    top:100%;
    left:-18px;
    z-index:9999;
    display:none!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:0!important;
    width:260px;
    padding:9px 0!important;
    margin:0!important;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:10px;
    box-shadow:0 16px 36px rgba(15,23,42,.16);
  }

  .main-nav li:hover>.sub-menu,
  .main-nav li:focus-within>.sub-menu{
    display:flex!important;
  }

  .main-nav .sub-menu li{
    width:100%;
    margin:0!important;
  }

  .main-nav .sub-menu a{
    display:flex!important;
    align-items:center;
    justify-content:space-between;
    width:100%;
    padding:9px 16px!important;
    font-size:13px!important;
    line-height:1.25!important;
    color:#111827!important;
    white-space:normal!important;
  }

  .main-nav .sub-menu a:hover{
    color:var(--accent)!important;
    background:#f8fafc;
  }

  .main-nav .sub-menu .menu-item-has-children>a:after{
    content:"›";
    margin-left:12px;
    font-size:18px;
    line-height:1;
  }

  .main-nav .sub-menu .sub-menu{
    top:-9px;
    left:calc(100% - 3px);
    width:145px;
  }

  .main-nav .articles-menu-item>.sub-menu{
    max-height:70vh;
    overflow:visible;
  }
}


/* =========================================================
   v2.5.2 Sidebar category accordion
   ========================================================= */
.shop-category-accordion > .has-children > .shop-category-children{
  display:none;
}
.shop-category-accordion > .has-children.is-open > .shop-category-children{
  display:block;
}
.shop-category-toggle{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:7px 8px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:var(--ink);
  font:inherit;
  font-size:14px;
  text-align:left;
  cursor:pointer;
}
.shop-category-toggle:hover,
.shop-category-accordion > .has-children.is-open > .shop-category-toggle,
.shop-category-accordion > .is-active-branch > .shop-category-toggle{
  background:var(--soft);
  color:var(--accent);
}
.shop-category-toggle-meta{
  display:flex;
  align-items:center;
  gap:7px;
  flex:0 0 auto;
}
.shop-category-toggle i{
  display:inline-block;
  font-style:normal;
  font-size:17px;
  line-height:1;
  transition:transform .18s ease;
  transform:rotate(0deg);
}
.shop-category-accordion > .has-children.is-open > .shop-category-toggle i{
  transform:rotate(180deg);
}
.shop-category-children{
  margin:2px 0 5px 8px!important;
  padding:2px 0 2px 10px!important;
  border-left:1px solid var(--line);
}
.shop-category-children .shop-category-all a{
  font-weight:700;
}


/* =========================================================
   v2.7 contextual catalogue navigation
   ========================================================= */
.shop-category-dynamic > li{margin:0 0 2px}
.shop-category-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 32px;
  align-items:center;
  gap:2px;
}
.shop-category-parent-link{min-width:0}
.shop-category-toggle-only{
  width:32px!important;
  min-width:32px;
  height:32px;
  padding:0!important;
  justify-content:center!important;
}
.shop-category-toggle-only i{font-size:16px}
.shop-category-dynamic .shop-category-children{
  margin-left:12px!important;
  padding-left:10px!important;
}
.shop-category-dynamic .shop-category-children .shop-category-children{
  margin-left:8px!important;
}
.shop-category-dynamic .is-active > a,
.shop-category-dynamic .is-active > .shop-category-row > a{
  background:var(--soft);
  color:var(--accent);
  font-weight:800;
}
.shop-category-dynamic small,
.shop-brand-list-v27 small{
  color:var(--muted);
  font-weight:600;
  font-size:11px;
}
.shop-brand-list-v27{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.shop-brand-list-v27 a{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:7px 8px;
  border-radius:7px;
  color:var(--ink);
  font-size:14px;
  text-decoration:none;
}
.shop-brand-list-v27 a:hover,
.shop-brand-list-v27 a.is-active{
  background:var(--soft);
  color:var(--accent);
}
.shop-brand-list-v27 a.is-active{font-weight:800}

.shop-sidebar{
  border:1px solid var(--line);
  border-radius:12px;
  padding:14px;
  background:#fff;
}
.shop-filter-title{margin-bottom:9px!important}
.shop-filter-block + .shop-filter-block{
  margin-top:15px!important;
  padding-top:15px!important;
}

@media(max-width:620px){
  .shop-sidebar{padding:12px}
  .shop-category-dynamic{
    max-height:330px;
    overflow:auto;
    padding-right:3px;
  }
  .shop-brand-list-v27{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:6px;
  }
  .shop-brand-list-v27 a{
    border:1px solid var(--line);
    padding:8px 9px;
  }
}


/* =========================================================
   v2.8 short descriptions + brand filter inside active branch
   ========================================================= */
.shop-inline-brand-filter-v28{
  margin:7px 0 8px 12px;
  padding:10px;
  border-left:2px solid var(--accent);
  background:#f8fafc;
  border-radius:0 8px 8px 0;
}
.shop-inline-brand-title{
  margin:0 0 6px;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:var(--ink);
}
.shop-inline-brand-filter-v28 .shop-brand-list-v27{
  gap:1px;
}
.shop-inline-brand-filter-v28 .shop-brand-list-v27 a{
  padding:5px 7px;
  font-size:13px;
}
.shop-inline-brand-filter-v28 .shop-reset{
  display:inline-block;
  margin:7px 0 0 7px;
  font-size:12px;
  font-weight:800;
  color:var(--accent);
}

.woocommerce ul.products li.product .shop-card-short-description-v28{
  color:#667085;
  font-size:12.5px;
  line-height:1.42;
  margin:0 0 10px;
  min-height:53px;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
}
.woocommerce ul.products li.product .price{
  margin-top:auto!important;
}
@media(max-width:620px){
  .shop-inline-brand-filter-v28{
    margin-left:8px;
  }
  .shop-inline-brand-filter-v28 .shop-brand-list-v27{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:5px;
  }
  .woocommerce ul.products li.product .shop-card-short-description-v28{
    font-size:12px;
    min-height:51px;
  }
}
