:root {
  --vm-primary: #3f7378;
  --vm-primary-dark: #264e54;
  --vm-primary-soft: #dcebec;
  --vm-text: #243338;
  --vm-muted: #68777c;
  --vm-bg: #eef4f5;
  --vm-card: #ffffff;
  --vm-border: #cddbdd;
  --vm-shadow: 0 12px 30px rgba(31, 55, 60, .12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--vm-text);
  background:
    radial-gradient(circle at top left, rgba(95, 145, 150, .20), transparent 28rem),
    linear-gradient(135deg, #0e2a32 0%, #123540 100%);
}
a { color: #1f5f87; text-decoration: none; }
a:hover { text-decoration: underline; }

.vm-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.vm-hero {
  min-height: clamp(170px, 26vw, 285px);
  background-size: cover;
  background-position: center center;
  position: relative;
  overflow: hidden;
}
.vm-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.56), rgba(0,0,0,.12) 46%, rgba(0,0,0,.28));
}
.vm-hero-inner {
  position: relative;
  min-height: clamp(170px, 26vw, 285px);
}
.vm-branding {
  position: absolute;
  left: 0;
  bottom: 28px;
  color: #fff;
  text-shadow: 0 3px 12px rgba(0,0,0,.65);
}
.vm-site-title {
  color: #fff;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.2rem, 5.5vw, 4.6rem);
  font-weight: 700;
  line-height: .95;
}
.vm-subtitle {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.1rem, 2.4vw, 2rem);
  font-weight: 700;
  margin-top: .35rem;
}

.vm-header-contact {
  position: absolute;
  right: 0;
  top: 20px;
  width: min(310px, 46vw);
  padding: 16px 18px;
  background: rgba(255,255,255,.90);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,.24);
  text-align: right;
  font-size: .95rem;
  line-height: 1.35;
}
.vm-contact-line + .vm-contact-line { margin-top: 6px; }

.vm-main-nav {
  background: linear-gradient(#fff, #edf4f5);
  border-top: 1px solid rgba(255,255,255,.5);
  border-bottom: 1px solid var(--vm-border);
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.vm-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.vm-menu li { margin: 0; }
.vm-menu a {
  display: block;
  padding: 15px 23px;
  color: #243e45;
  font-weight: 700;
  border-right: 1px solid var(--vm-border);
}
.vm-menu a:hover {
  background: var(--vm-primary-soft);
  text-decoration: none;
}

.vm-page {
  background: #f9fbfb;
  min-height: 620px;
  padding: 22px;
  box-shadow: var(--vm-shadow);
}
.vm-layout {
  display: grid;
  grid-template-columns: 275px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.vm-sidebar {
  display: grid;
  gap: 14px;
}
.vm-box, .vm-card, .vm-widget {
  background: var(--vm-card);
  border: 1px solid var(--vm-border);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(31, 55, 60, .07);
  overflow: hidden;
}
.vm-card {
  padding: clamp(18px, 3vw, 30px);
}
.vm-box-title {
  margin: 0;
  padding: 12px 14px;
  background: linear-gradient(var(--vm-primary), var(--vm-primary-dark));
  color: #fff;
  font-size: .98rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.vm-cat-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.vm-cat-item {
  border-top: 1px solid var(--vm-border);
}
.vm-cat-row {
  display: flex;
  align-items: center;
  min-height: 42px;
  background: linear-gradient(#f8fbfb, #e8f0f1);
}
.vm-cat-row a {
  flex: 1;
  padding: 11px 12px;
  color: #263f6a;
  font-weight: 700;
}
.vm-cat-toggle {
  width: 42px;
  align-self: stretch;
  border: 0;
  border-left: 1px solid var(--vm-border);
  background: transparent;
  color: #233d68;
  font-size: 1.2rem;
  cursor: pointer;
}
.vm-subcats {
  display: none;
  background: #f7fafb;
}
.vm-cat-item.open > .vm-subcats { display: block; }
.vm-subcats .vm-cat-row {
  min-height: 36px;
  background: #f7fafb;
}
.vm-subcats .vm-cat-row a {
  padding-left: 26px;
  font-weight: 500;
  color: #55656a;
}
.vm-contact-sidebar {
  padding-bottom: 10px;
}
.vm-contact-sidebar p {
  margin: 12px 14px;
  line-height: 1.35;
}

.vm-content h1, .vm-content h2 {
  color: var(--vm-primary);
  font-family: Georgia, 'Times New Roman', serif;
}
.vm-welcome > h1 { margin-top: 0; }

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  background: #fff;
  border: 1px solid var(--vm-border);
  border-radius: 10px;
  padding: 14px !important;
  text-align: center;
  box-shadow: 0 5px 18px rgba(31,55,60,.06);
}
.woocommerce ul.products li.product .price {
  color: var(--vm-primary-dark);
  font-weight: 700;
  font-size: 1.05rem;
}
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: var(--vm-primary);
  color: #fff;
  border-radius: 8px;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
  background: var(--vm-primary-dark);
  color: #fff;
}

.vm-footer {
  background: linear-gradient(135deg, var(--vm-primary-dark), var(--vm-primary));
  color: #fff;
  margin-top: 0;
}
.vm-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  padding: 30px 0;
}
.vm-footer a { color: #fff; }
.vm-footer-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}
.vm-footer-bottom {
  text-align: center;
  padding: 13px;
  background: rgba(0,0,0,.24);
  font-size: .9rem;
}

@media (max-width: 800px) {
  .vm-container { width: min(100% - 20px, 1180px); }
  .vm-hero { min-height: 310px; }
  .vm-hero-inner { min-height: 310px; }
  .vm-branding {
    left: 0;
    bottom: 24px;
  }
  .vm-header-contact {
    left: 0;
    right: auto;
    top: 14px;
    width: min(100%, 360px);
    text-align: left;
    font-size: .88rem;
  }
  .vm-menu a {
    padding: 12px 14px;
  }
  .vm-page {
    padding: 14px;
  }
  .vm-layout {
    grid-template-columns: 1fr;
  }
  .vm-sidebar {
    order: 1;
  }
  .vm-content {
    order: 2;
  }
  .vm-footer-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .vm-site-title {
    font-size: 2.4rem;
  }
  .vm-subtitle {
    font-size: 1.15rem;
  }
  .vm-hero, .vm-hero-inner {
    min-height: 330px;
  }
  .vm-header-contact {
    width: 100%;
  }
}


/* Vanhamies 1.0.2: poistetaan vimpaimista tulevat hakualueet ja oikean reunan hakukenttä */
.vm-widget,
.widget_search,
.widget_product_search,
.search-form,
.woocommerce-product-search,
.vm-sidebar .wp-block-search {
  display: none !important;
}


/* Vanhamies 1.0.4: viimeistelty bannerin yhteystietolaatikko */
.vm-header-contact {
  position: absolute;
  right: 20px;
  top: 18px;
  width: auto;
  max-width: min(360px, calc(100% - 40px));
  min-width: 0;
  display: inline-block;
  padding: 10px 14px;
  background: rgba(22, 45, 50, .38);
  color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 10px;
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  text-align: right;
  font-size: clamp(.82rem, 1vw, .94rem);
  line-height: 1.34;
  text-shadow: 0 1px 3px rgba(0,0,0,.45);
}

.vm-contact-line {
  white-space: nowrap;
}

.vm-contact-line + .vm-contact-line {
  margin-top: 3px;
}

.vm-address,
.vm-hours {
  white-space: normal;
}

.vm-header-contact strong {
  color: #fff;
  font-weight: 700;
}

.vm-site-title {
  letter-spacing: .01em;
  text-shadow:
    0 2px 3px rgba(0,0,0,.55),
    0 8px 22px rgba(0,0,0,.45);
}

.vm-subtitle {
  text-shadow:
    0 2px 3px rgba(0,0,0,.55),
    0 8px 22px rgba(0,0,0,.45);
}

.vm-main-nav {
  background: rgba(248,252,252,.96);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.vm-menu a {
  transition: background .15s ease, color .15s ease;
}

.vm-menu a:hover {
  background: linear-gradient(#e5f2f3, #d7e8ea);
  color: var(--vm-primary-dark);
}

@media (max-width: 800px) {
  .vm-header-contact {
    left: auto;
    right: 12px;
    top: 12px;
    width: auto;
    max-width: calc(100% - 24px);
    text-align: right;
    font-size: .82rem;
    padding: 9px 12px;
  }

  .vm-contact-line {
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .vm-header-contact {
    right: 10px;
    left: 10px;
    max-width: none;
    width: auto;
  }
}


/* Vanhamies 1.0.6 - Header keskitetty saman levyiseksi kuin muu sisältö */
.site-header{
    background: linear-gradient(135deg, #0e2a32 0%, #123540 100%);
}

.vm-hero,
.vm-main-nav{
    width:min(1180px, calc(100% - 32px));
    margin-left:auto;
    margin-right:auto;
}

.vm-main-nav{
    border-left:1px solid var(--vm-border);
    border-right:1px solid var(--vm-border);
}

@media (max-width:800px){
    .vm-hero,
    .vm-main-nav{
        width:min(100% - 20px, 1180px);
    }
}


/* Vanhamies 1.0.7 - Footer ja copyright samaan leveyteen kuin sisältö */
.vm-footer{
    background: transparent;
}

.vm-footer-grid,
.vm-footer-bottom{
    width:min(1180px, calc(100% - 32px));
    margin-left:auto;
    margin-right:auto;
}

.vm-footer-grid{
    background: linear-gradient(135deg, var(--vm-primary-dark), var(--vm-primary));
    padding-left:30px;
    padding-right:30px;
}

.vm-footer-bottom{
    background: rgba(0,0,0,.24);
}

@media (max-width:800px){
    .vm-footer-grid,
    .vm-footer-bottom{
        width:min(100% - 20px, 1180px);
    }
}


/* Vanhamies 1.0.8 - modernisoidut sivupalkit */
.vm-sidebar,
.vm-sidebar .vm-box,
.vm-sidebar .widget,
.vm-sidebar section {
    width: 100%;
}

.vm-box {
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(180deg,#ffffff,#f7fbfb);
    border: 1px solid rgba(63,115,120,.18);
    box-shadow: 0 8px 22px rgba(0,0,0,.08);
}

.vm-box-title {
    background: linear-gradient(135deg,#456f75,#264e54);
    color:#fff;
    padding:14px 16px;
    font-weight:700;
    letter-spacing:.03em;
}

.vm-cat-list,
.vm-subcats {
    width:100%;
}

.vm-cat-row,
.vm-subcats a {
    display:block;
    width:100%;
}

.vm-cat-row a,
.vm-subcats a {
    padding:12px 14px;
    border-bottom:1px solid rgba(63,115,120,.10);
    transition:all .15s ease;
}

.vm-cat-row a:hover,
.vm-subcats a:hover {
    background:#e8f3f4;
    padding-left:18px;
    text-decoration:none;
}

.vm-contact-card {
    border-radius:12px;
    background:linear-gradient(135deg,#f7fbfb,#edf6f7);
    border:1px solid rgba(63,115,120,.15);
}


/* Vanhamies 1.0.9 - verkkokauppamaisempi tuotealue ja suodatin-/sivupalkkityyli vanhoilla väreillä */
.vm-layout {
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 0;
  background: #fff;
  border: 1px solid rgba(63,115,120,.18);
}

.vm-sidebar {
  background: #f6f9fa;
  border-right: 1px solid rgba(63,115,120,.22);
  gap: 0;
}

.vm-sidebar .vm-box {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  border-bottom: 1px solid rgba(63,115,120,.16);
}

.vm-sidebar .vm-box-title {
  min-height: 58px;
  padding: 18px 22px;
  background: #f6f9fa;
  color: #123a42;
  border-bottom: 1px solid rgba(63,115,120,.18);
  text-transform: uppercase;
  font-size: 1.05rem;
  letter-spacing: .02em;
}

.vm-sidebar .vm-box-title::before {
  content: "☰";
  display: inline-block;
  margin-right: 10px;
  transform: rotate(90deg);
  color: var(--vm-primary);
}

.vm-cat-list {
  background: #fff;
}

.vm-cat-item {
  border-top: 0;
  border-bottom: 1px solid rgba(63,115,120,.14);
}

.vm-cat-row {
  background: #fff;
  min-height: 58px;
}

.vm-cat-row:hover {
  background: #edf6f7;
}

.vm-cat-row a {
  padding: 18px 22px;
  color: #123a42;
  font-size: 1rem;
  font-weight: 800;
}

.vm-cat-toggle {
  width: 54px;
  min-width: 54px;
  font-size: 1.35rem;
  color: #123a42;
  background: transparent;
  border-left: 0;
}

.vm-subcats {
  background: #f9fcfc;
  border-top: 1px solid rgba(63,115,120,.12);
}

.vm-subcats .vm-cat-row {
  min-height: 44px;
  background: #f9fcfc;
}

.vm-subcats .vm-cat-row a {
  padding: 13px 22px 13px 38px;
  font-weight: 600;
  color: #49646a;
  font-size: .94rem;
}

.vm-contact-sidebar {
  background: #fff !important;
}

.vm-contact-sidebar .vm-box-title::before {
  content: "☎";
  transform: none;
}

.vm-content {
  background: #fff;
}

.vm-card {
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background: #fff;
}

.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 !important;
  margin: 0 !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  content: none !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  border-radius: 0;
  border: 0;
  border-right: 1px solid rgba(63,115,120,.11);
  border-bottom: 1px solid rgba(63,115,120,.11);
  box-shadow: none;
  padding: 22px 18px 20px !important;
  min-height: 390px;
  text-align: left;
  background: #fff;
  transition: box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
  background: #fbfdfd;
  box-shadow: inset 0 0 0 2px rgba(63,115,120,.10);
  transform: translateY(-1px);
}

.woocommerce ul.products li.product img {
  height: 185px;
  width: 100%;
  object-fit: contain;
  margin: 0 0 22px;
}

.woocommerce-loop-product__title {
  color: #263338;
  font-size: 1rem !important;
  line-height: 1.28;
  font-weight: 800;
  min-height: 42px;
}

.woocommerce ul.products li.product .price {
  display: block;
  margin-top: 12px;
  color: #1f2d31;
  font-size: 2rem;
  line-height: 1;
  font-weight: 900;
}

.woocommerce ul.products li.product .price .amount {
  color: #1f2d31;
}

.woocommerce ul.products li.product .button {
  margin-top: 16px;
  border-radius: 6px;
  background: var(--vm-primary);
  color: #fff;
  font-weight: 700;
}

.woocommerce-result-count,
.woocommerce-ordering {
  margin: 0 0 18px !important;
}

.woocommerce-ordering select {
  border: 1px solid rgba(63,115,120,.25);
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
}

@media (max-width: 1100px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .vm-layout {
    grid-template-columns: 1fr;
  }

  .vm-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(63,115,120,.18);
  }

  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: 1fr;
  }

  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product {
    min-height: auto;
  }
}


/* Vanhamies 1.1.1 - shortcode contact */
.vanhamies-shortcode-contact {
  padding: 16px 18px;
  border: 1px solid rgba(63,115,120,.18);
  border-radius: 10px;
  background: #f7fbfb;
  margin: 18px 0;
}
.vanhamies-shortcode-contact p {
  margin: 0 0 10px;
}
.vanhamies-shortcode-contact p:last-child {
  margin-bottom: 0;
}


/* Vanhamies 1.1.2 - enemmän kontrastia tuotekortteihin */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    background: #ffffff;
    border: 1px solid #c7d8db !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,.12);
}

.woocommerce ul.products li.product img,
.woocommerce-page ul.products li.product img {
    border-bottom: 1px solid #dde8ea;
    padding-bottom: 10px;
}

.woocommerce-loop-product__title {
    border-bottom: 1px solid #d7e5e7;
    padding-bottom: 8px;
    margin-bottom: 10px;
}


/* Vanhamies 1.1.3 - ilmavammat tuotekortit */
.woocommerce ul.products,
.woocommerce-page ul.products {
    gap: 12px !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    margin: 0 !important;
    background: linear-gradient(180deg,#ffffff 0%,#f9fcfc 100%) !important;
    border: 1px solid #bccfd3 !important;
    box-shadow: 0 3px 10px rgba(0,0,0,.07);
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
    background: #ffffff !important;
    border-color: #9fb9be !important;
    box-shadow: 0 8px 22px rgba(0,0,0,.14);
}


/* Vanhamies 1.1.4 - ostoskorilinkki päävalikon oikeaan reunaan */
.vm-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vm-nav-inner .vm-menu {
    flex: 1 1 auto;
}

.vm-cart-link {
    margin-left: auto;
    padding: 15px 22px;
    color: #243e45;
    font-weight: 700;
    white-space: nowrap;
    border-left: 1px solid var(--vm-border);
    display: flex;
    align-items: center;
    gap: 4px;
}

.vm-cart-link:hover {
    background: var(--vm-primary-soft);
    color: var(--vm-primary-dark);
    text-decoration: none;
}

.vm-cart-count {
    font-weight: 900;
}

.vm-cart-icon {
    margin-right: 2px;
}

@media (max-width: 700px) {
    .vm-nav-inner {
        flex-wrap: wrap;
    }

    .vm-nav-inner .vm-menu {
        width: 100%;
        flex: 1 1 100%;
    }

    .vm-cart-link {
        width: 100%;
        justify-content: flex-end;
        border-left: 0;
        border-top: 1px solid var(--vm-border);
        padding: 12px 14px;
    }
}


/* Vanhamies 1.1.5 - tuotesivun napit ja osastot pois */
.single-product .product_meta,
.single-product .posted_in,
.single-product .tagged_as {
    display: none !important;
}

.single-product form.cart {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 18px 0 12px;
}

.single-product form.cart .quantity {
    margin: 0 !important;
}

.single-product form.cart .qty {
    height: 42px;
    min-width: 64px;
    border: 1px solid #b9cdd1;
    border-radius: 6px;
    padding: 6px;
    text-align: center;
}

.single-product form.cart .single_add_to_cart_button {
    min-height: 42px;
    padding: 0 22px !important;
    border-radius: 7px !important;
    background: var(--vm-primary) !important;
    color: #fff !important;
    font-weight: 700 !important;
}

.single-product .vanhamies-product-enquiry-toggle-wrap {
    margin: 10px 0 0 !important;
}

.single-product .vanhamies-product-enquiry-toggle {
    min-height: 42px;
    padding: 0 22px !important;
    border-radius: 7px !important;
    background: var(--vm-primary-dark) !important;
    color: #fff !important;
    font-weight: 700 !important;
}

.single-product .vanhamies-product-enquiry-toggle:hover,
.single-product .vanhamies-product-enquiry-toggle.is-open,
.single-product form.cart .single_add_to_cart_button:hover {
    background: #1f4147 !important;
    color: #fff !important;
}

@media (min-width: 700px) {
    .single-product .vanhamies-product-enquiry-toggle-wrap {
        display: inline-block;
    }
}

@media (max-width: 520px) {
    .single-product form.cart {
        align-items: stretch;
    }

    .single-product form.cart .single_add_to_cart_button,
    .single-product .vanhamies-product-enquiry-toggle {
        width: 100%;
        justify-content: center;
    }
}


/* Vanhamies 1.1.6 - vahvempi tuotesivun siistiminen */
body.single-product .woocommerce div.product .product_meta,
body.single-product .woocommerce div.product .posted_in,
body.single-product .woocommerce div.product .tagged_as,
body.single-product div.product .product_meta,
body.single-product div.product .posted_in,
body.single-product div.product .tagged_as {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.single-product .woocommerce div.product form.cart {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin: 18px 0 12px !important;
}

body.single-product .woocommerce div.product form.cart div.quantity {
    margin: 0 !important;
    float: none !important;
}

body.single-product .woocommerce div.product form.cart input.qty {
    width: 54px !important;
    height: 38px !important;
    min-width: 54px !important;
    border: 1px solid #b9cdd1 !important;
    border-radius: 6px !important;
    padding: 4px 6px !important;
    text-align: center !important;
}

body.single-product .woocommerce div.product form.cart .button,
body.single-product .woocommerce div.product form.cart .single_add_to_cart_button,
body.single-product .woocommerce button.single_add_to_cart_button {
    min-height: 38px !important;
    height: 38px !important;
    padding: 0 20px !important;
    border-radius: 7px !important;
    background: #3f7378 !important;
    color: #fff !important;
    font-weight: 700 !important;
    border: 0 !important;
    line-height: 38px !important;
}

body.single-product .woocommerce div.product form.cart .button:hover,
body.single-product .woocommerce div.product form.cart .single_add_to_cart_button:hover,
body.single-product .woocommerce button.single_add_to_cart_button:hover {
    background: #264e54 !important;
    color: #fff !important;
}

body.single-product .vanhamies-product-enquiry-toggle-wrap {
    margin: 8px 0 0 !important;
    display: block !important;
}

body.single-product .vanhamies-product-enquiry-toggle,
body.single-product button.vanhamies-product-enquiry-toggle {
    min-height: 38px !important;
    height: 38px !important;
    padding: 0 20px !important;
    border-radius: 7px !important;
    background: #3f7378 !important;
    color: #fff !important;
    font-weight: 700 !important;
    border: 0 !important;
    line-height: 38px !important;
}

body.single-product .vanhamies-product-enquiry-toggle:hover,
body.single-product .vanhamies-product-enquiry-toggle.is-open {
    background: #264e54 !important;
    color: #fff !important;
}

body.single-product #vanhamies_product_enquiry_wrap {
    max-width: 520px;
}

@media (max-width: 520px) {
    body.single-product .woocommerce div.product form.cart {
        align-items: stretch !important;
    }

    body.single-product .woocommerce div.product form.cart .button,
    body.single-product .woocommerce div.product form.cart .single_add_to_cart_button,
    body.single-product .vanhamies-product-enquiry-toggle {
        width: 100% !important;
        text-align: center !important;
    }
}


/* Vanhamies 1.1.6.1 hotfix:
   poistaa pääkategorian nimen ympärillä näkyvän vaalean laatikon */
.vm-cat-row > a {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.vm-cat-row > a:focus,
.vm-cat-row > a:active {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}


/* 1.1.6.4 - palauta hinta alkuperäiseen kokoon */
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .price *,
.woocommerce-Price-amount.amount,
.woocommerce-Price-amount,
.price bdi,
.price .amount{
    font-size: 1rem !important;
    line-height: 1 !important;
}


/* 1.1.6.6 - mobiilikorjaus kaupan valikoille ja info-laatikolle */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }

  .vm-container,
  .vm-site,
  .vm-layout,
  .vm-shop-layout,
  .vm-content-wrap,
  .vm-main,
  .vm-content,
  .site-content,
  .content-area {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .vm-layout,
  .vm-shop-layout,
  .vm-content-wrap {
    display: block !important;
  }

  .vm-sidebar,
  .vm-shop-sidebar,
  aside.vm-sidebar,
  .woocommerce-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
    margin: 0 0 18px 0 !important;
    padding: 0 !important;
    position: static !important;
  }

  .vm-content,
  .vm-shop-main,
  .woocommerce-content,
  .site-main {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
    padding: 0 !important;
  }

  .vm-box,
  .vm-card,
  .vm-widget,
  .vm-contact-sidebar,
  .vm-sidebar .widget,
  aside .widget {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 0 14px 0 !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .vm-box-title,
  .vm-sidebar .vm-box-title,
  aside .widget-title {
    font-size: 1rem !important;
    line-height: 1.2 !important;
    padding: 12px 14px !important;
    margin-left: -14px !important;
    margin-right: -14px !important;
  }

  .vm-cat-row,
  .product-categories li,
  .widget_product_categories li {
    display: flex !important;
    align-items: stretch !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .vm-cat-row > a,
  .product-categories li a,
  .widget_product_categories li a {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    font-size: .95rem !important;
    line-height: 1.25 !important;
    padding: 12px 10px !important;
  }

  .vm-cat-toggle {
    flex: 0 0 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    height: auto !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.25rem !important;
  }

  .vm-subcats {
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
  }

  .vm-subcats .vm-cat-row > a {
    padding-left: 24px !important;
    font-size: .92rem !important;
  }

  .vm-main-nav,
  .vm-menu {
    width: 100% !important;
    max-width: 100% !important;
  }

  .vm-menu {
    display: flex !important;
    flex-wrap: wrap !important;
  }

  .vm-menu li {
    flex: 1 1 50% !important;
    min-width: 0 !important;
  }

  .vm-menu a {
    display: block !important;
    text-align: center !important;
    font-size: .95rem !important;
    padding: 12px 8px !important;
    white-space: normal !important;
  }

  .woocommerce ul.products,
  .woocommerce-page ul.products {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .vm-menu li {
    flex-basis: 100% !important;
  }

  .vm-box,
  .vm-card,
  .vm-widget,
  .vm-contact-sidebar {
    font-size: .95rem !important;
  }

  .vm-cat-row > a {
    font-size: .92rem !important;
  }
}


/* 1.1.6.8 - mobiilikorjaus:
   palautetaan päälinkit aiemman kaltaisiksi ja muokataan vain kaupan sivupalkin kategoriat.
*/
@media (max-width: 768px) {

  /* Palautetaan yläpalkin päälinkit: ei pakoteta 2 sarakkeeseen eikä 1 sarakkeeseen */
  .vm-menu {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .vm-menu li {
    flex: 0 0 auto !important;
    min-width: auto !important;
  }

  .vm-menu a {
    white-space: nowrap !important;
    text-align: center !important;
    padding: 12px 14px !important;
    font-size: .95rem !important;
  }

  /* Piilotetaan sivupalkin yhteystieto-/infolaatikko mobiilissa */
  .vm-contact-sidebar,
  .vm-sidebar .vm-contact-sidebar,
  aside .vm-contact-sidebar {
    display: none !important;
  }

  /* Kaupan kategoriavalikko mobiilissa täyteen leveyteen ja siistiksi */
  .vm-sidebar,
  .vm-shop-sidebar,
  aside.vm-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
  }

  .vm-sidebar .vm-box,
  .vm-sidebar .vm-widget,
  .vm-sidebar .widget_product_categories {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 14px !important;
  }

  .vm-cat-row {
    display: flex !important;
    width: 100% !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
  }

  .vm-cat-row > a {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    padding: 12px 10px !important;
    font-size: .95rem !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .vm-cat-toggle {
    flex: 0 0 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    font-size: 1.25rem !important;
  }

  .vm-subcats {
    width: 100% !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    box-sizing: border-box !important;
  }

  .vm-subcats .vm-cat-row > a {
    padding-left: 24px !important;
    font-size: .92rem !important;
  }
}

@media (max-width: 480px) {
  /* Pidetään päälinkit vaakarullattavina myös pienellä näytöllä */
  .vm-menu li {
    flex: 0 0 auto !important;
  }
}


/* 1.1.6.9 - mobiilissa kategoriat vaakapalkiksi, jotta tuotteet näkyvät nopeammin */
@media (max-width: 768px) {

  /* Piilotetaan mobiilissa yhteystietolaatikko sivupalkista */
  .vm-contact-sidebar,
  .vm-sidebar .vm-contact-sidebar,
  aside .vm-contact-sidebar {
    display: none !important;
  }

  /* Kaupan kategoriaboksi tiiviimmäksi */
  .vm-sidebar,
  .vm-shop-sidebar,
  aside.vm-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
  }

  .vm-sidebar .vm-box,
  .vm-sidebar .vm-widget,
  .vm-sidebar .widget_product_categories {
    margin-bottom: 10px !important;
    padding: 8px !important;
    box-sizing: border-box !important;
  }

  .vm-sidebar .vm-box-title,
  aside .widget-title {
    font-size: .95rem !important;
    padding: 9px 10px !important;
    margin-bottom: 8px !important;
  }

  /* Kategorioista vaakarullattava linkkipalkki */
  .vm-cat-list,
  .vm-category-list,
  .product-categories {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    padding: 2px 2px 8px 2px !important;
    margin: 0 !important;
    scroll-snap-type: x proximity;
  }

  .vm-cat-item,
  .product-categories > li,
  .widget_product_categories li.cat-item {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    display: block !important;
    margin: 0 !important;
    scroll-snap-align: start;
  }

  .vm-cat-row,
  .product-categories li {
    display: inline-flex !important;
    width: auto !important;
    min-width: 0 !important;
    align-items: center !important;
    border: 1px solid var(--vm-border) !important;
    border-radius: 999px !important;
    background: #f6f9fa !important;
    overflow: hidden !important;
  }

  .vm-cat-row > a,
  .product-categories li a,
  .widget_product_categories li a {
    display: inline-block !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    padding: 9px 12px !important;
    font-size: .92rem !important;
    line-height: 1.1 !important;
  }

  .vm-cat-toggle {
    flex: 0 0 34px !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.05rem !important;
    border-left: 1px solid var(--vm-border) !important;
  }

  /* Alikategoriat avautuvat omaksi vaakariviksi eivätkä työnnä tuotteita pitkästi alas */
  .vm-subcats,
  .children {
    display: none;
  }

  .vm-cat-item.open > .vm-subcats,
  .cat-item.open > .children {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 7px !important;
    overflow-x: auto !important;
    padding: 8px 0 2px 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }

  .vm-subcats .vm-cat-item,
  .children .cat-item {
    flex: 0 0 auto !important;
  }

  .vm-subcats .vm-cat-row,
  .children .cat-item {
    border-radius: 999px !important;
    background: #eef5f6 !important;
  }

  .vm-subcats .vm-cat-row > a,
  .children .cat-item a {
    padding: 8px 11px !important;
    font-size: .88rem !important;
    white-space: nowrap !important;
  }

  /* Tuotteet heti kategorioiden alle */
  .vm-content,
  .vm-shop-main,
  .woocommerce-content,
  .site-main {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
    padding: 0 !important;
  }
}


/* 1.1.6.10 - mobiilin 3 pisteen kategoriavalikko */
.vm-mobile-cat-trigger {
  display: none;
}

@media (max-width: 768px) {

  .vm-contact-sidebar,
  .vm-sidebar .vm-contact-sidebar,
  aside .vm-contact-sidebar {
    display: none !important;
  }

  .vm-sidebar,
  .vm-shop-sidebar,
  aside.vm-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 30;
  }

  .vm-mobile-cat-trigger {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    width: auto;
    min-width: 130px;
    margin: 0 0 8px 0;
    padding: 9px 13px;
    border: 1px solid var(--vm-border);
    border-radius: 999px;
    background: #f6f9fa;
    color: #123a42;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
  }

  .vm-mobile-cat-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 18px;
    font-size: 1.5rem;
    line-height: .5;
    transform: translateY(-3px);
  }

  .vm-mobile-cat-text {
    font-size: .95rem;
  }

  /* Piilotetaan itse kategoriaboksi oletuksena mobiilissa */
  .vm-sidebar .vm-box,
  .vm-sidebar .vm-widget,
  .vm-sidebar .widget_product_categories {
    display: none !important;
  }

  /* Avattuna näytetään kelluvana valikkona, ei pitkänä listana tuotteiden päällä */
  .vm-sidebar.vm-mobile-cats-open .vm-box,
  .vm-sidebar.vm-mobile-cats-open .vm-widget,
  .vm-sidebar.vm-mobile-cats-open .widget_product_categories,
  aside.vm-sidebar.vm-mobile-cats-open .vm-box,
  aside.vm-sidebar.vm-mobile-cats-open .vm-widget,
  aside.vm-sidebar.vm-mobile-cats-open .widget_product_categories {
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    top: 42px !important;
    width: min(92vw, 360px) !important;
    max-height: 70vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: #fff !important;
    border: 1px solid var(--vm-border) !important;
    border-radius: 10px !important;
    box-shadow: 0 12px 32px rgba(0,0,0,.22) !important;
    padding: 8px !important;
    margin: 0 !important;
    z-index: 999 !important;
  }

  .vm-sidebar.vm-mobile-cats-open .vm-box-title,
  aside.vm-sidebar.vm-mobile-cats-open .widget-title {
    margin: -8px -8px 8px -8px !important;
    padding: 10px 12px !important;
    font-size: .95rem !important;
    border-radius: 10px 10px 0 0 !important;
  }

  /* Listasta normaali pystysuuntainen valinta */
  .vm-cat-list,
  .vm-category-list,
  .product-categories {
    display: block !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .vm-cat-item,
  .product-categories > li,
  .widget_product_categories li.cat-item {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .vm-cat-row,
  .product-categories li,
  .widget_product_categories li.cat-item {
    display: flex !important;
    width: 100% !important;
    align-items: stretch !important;
    border: 0 !important;
    border-bottom: 1px solid #e2eaec !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  .vm-cat-row > a,
  .product-categories li a,
  .widget_product_categories li a {
    flex: 1 1 auto !important;
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    padding: 12px 10px !important;
    font-size: .95rem !important;
    line-height: 1.25 !important;
    color: #123a42 !important;
  }

  .vm-cat-toggle {
    flex: 0 0 42px !important;
    width: 42px !important;
    min-width: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-left: 1px solid #e2eaec !important;
    font-size: 1.15rem !important;
  }

  .vm-subcats,
  .children {
    display: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #f6f9fa !important;
  }

  .vm-cat-item.open > .vm-subcats,
  .cat-item.open > .children {
    display: block !important;
  }

  .vm-subcats .vm-cat-row > a,
  .children .cat-item a {
    padding-left: 24px !important;
    font-size: .9rem !important;
  }
}


/* 1.1.6.11 - mobiilin kategoriavalikko omaan palkkiin heti päävalikon alle */
.vm-mobile-category-bar {
  display: none;
}

@media (max-width: 768px) {

  .vm-mobile-category-bar {
    display: block !important;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    background: linear-gradient(#f6f9fa, #e8f0f1);
    border-bottom: 1px solid var(--vm-border);
    position: relative;
    z-index: 80;
  }

  .vm-mobile-cat-trigger {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid var(--vm-border);
    border-radius: 6px;
    background: linear-gradient(#ffffff, #eef5f6);
    color: #123a42;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 7px rgba(0,0,0,.08);
  }

  .vm-mobile-cat-dots {
    font-size: 1.25rem;
    line-height: 1;
  }

  .vm-mobile-cat-text {
    font-size: .98rem;
  }

  .vm-contact-sidebar,
  .vm-sidebar .vm-contact-sidebar,
  aside .vm-contact-sidebar {
    display: none !important;
  }

  /* Itse sivupalkki ei vie tilaa mobiilissa, mutta sen kategoriaboksi toimii pudotusvalikkona */
  .vm-sidebar,
  .vm-shop-sidebar,
  aside.vm-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 70;
  }

  .vm-sidebar .vm-box,
  .vm-sidebar .vm-widget,
  .vm-sidebar .widget_product_categories {
    display: none !important;
  }

  .vm-sidebar.vm-mobile-cats-open .vm-box,
  .vm-sidebar.vm-mobile-cats-open .vm-widget,
  .vm-sidebar.vm-mobile-cats-open .widget_product_categories,
  aside.vm-sidebar.vm-mobile-cats-open .vm-box,
  aside.vm-sidebar.vm-mobile-cats-open .vm-widget,
  aside.vm-sidebar.vm-mobile-cats-open .widget_product_categories {
    display: block !important;
    position: absolute !important;
    left: 10px !important;
    right: 10px !important;
    top: 0 !important;
    width: auto !important;
    max-height: 70vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: #fff !important;
    border: 1px solid var(--vm-border) !important;
    border-radius: 8px !important;
    box-shadow: 0 12px 32px rgba(0,0,0,.22) !important;
    padding: 8px !important;
    margin: 0 !important;
    z-index: 999 !important;
  }

  .vm-sidebar.vm-mobile-cats-open .vm-box-title,
  aside.vm-sidebar.vm-mobile-cats-open .widget-title {
    margin: -8px -8px 8px -8px !important;
    padding: 10px 12px !important;
    font-size: .95rem !important;
    border-radius: 8px 8px 0 0 !important;
  }

  .vm-cat-list,
  .vm-category-list,
  .product-categories {
    display: block !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .vm-cat-item,
  .product-categories > li,
  .widget_product_categories li.cat-item {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .vm-cat-row,
  .product-categories li,
  .widget_product_categories li.cat-item {
    display: flex !important;
    width: 100% !important;
    align-items: stretch !important;
    border: 0 !important;
    border-bottom: 1px solid #e2eaec !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  .vm-cat-row > a,
  .product-categories li a,
  .widget_product_categories li a {
    flex: 1 1 auto !important;
    display: block !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    padding: 12px 10px !important;
    font-size: .95rem !important;
    line-height: 1.25 !important;
    color: #123a42 !important;
  }

  .vm-cat-toggle {
    flex: 0 0 42px !important;
    width: 42px !important;
    min-width: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-left: 1px solid #e2eaec !important;
    font-size: 1.15rem !important;
  }

  .vm-subcats,
  .children {
    display: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #f6f9fa !important;
  }

  .vm-cat-item.open > .vm-subcats,
  .cat-item.open > .children {
    display: block !important;
  }

  .vm-subcats .vm-cat-row > a,
  .children .cat-item a {
    padding-left: 24px !important;
    font-size: .9rem !important;
  }
}


/* 1.1.6.12 - korjattu mobiilin kategoriapalkki heti päävalikon alle */
.vm-mobile-category-bar {
  display: none;
}

@media (max-width: 768px) {

  .vm-mobile-category-bar {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 8px 10px !important;
    background: #edf4f5 !important;
    border-bottom: 1px solid var(--vm-border) !important;
    position: relative !important;
    z-index: 1000 !important;
  }

  .vm-mobile-cat-trigger {
    display: flex !important;
    width: 100% !important;
    min-height: 42px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    padding: 10px 14px !important;
    border: 1px solid var(--vm-border) !important;
    border-radius: 6px !important;
    background: linear-gradient(#fff, #eef5f6) !important;
    color: #123a42 !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
  }

  .vm-mobile-cat-icon {
    font-size: 1.2rem !important;
    line-height: 1 !important;
  }

  .vm-contact-sidebar,
  .vm-sidebar .vm-contact-sidebar,
  aside.vm-sidebar .vm-contact-sidebar {
    display: none !important;
  }

  .vm-sidebar,
  aside.vm-sidebar,
  .vm-shop-sidebar {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 999 !important;
  }

  /* Piilota kategoriaboksi normaalisti, koska palkki avaa sen */
  .vm-sidebar > .vm-box:first-child,
  aside.vm-sidebar > .vm-box:first-child {
    display: none !important;
  }

  .vm-sidebar.vm-mobile-cats-open > .vm-box:first-child,
  aside.vm-sidebar.vm-mobile-cats-open > .vm-box:first-child {
    display: block !important;
    position: absolute !important;
    left: 10px !important;
    right: 10px !important;
    top: 0 !important;
    width: auto !important;
    max-height: 70vh !important;
    overflow-y: auto !important;
    background: #fff !important;
    border: 1px solid var(--vm-border) !important;
    border-radius: 8px !important;
    box-shadow: 0 12px 32px rgba(0,0,0,.22) !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 2000 !important;
  }

  .vm-sidebar.vm-mobile-cats-open > .vm-box:first-child .vm-box-title {
    margin: 0 !important;
    padding: 11px 12px !important;
    font-size: .95rem !important;
  }

  .vm-cat-list {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .vm-cat-item {
    display: block !important;
    width: 100% !important;
  }

  .vm-cat-row {
    display: flex !important;
    width: 100% !important;
    align-items: stretch !important;
    background: transparent !important;
    border-bottom: 1px solid #e2eaec !important;
  }

  .vm-cat-row > a {
    flex: 1 1 auto !important;
    padding: 13px 12px !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    color: #123a42 !important;
    font-size: .96rem !important;
    line-height: 1.25 !important;
  }

  .vm-cat-toggle {
    flex: 0 0 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-left: 1px solid #e2eaec !important;
    font-size: 1.15rem !important;
  }

  .vm-subcats {
    display: none !important;
    background: #f6f9fa !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .vm-cat-item.open > .vm-subcats {
    display: block !important;
  }

  .vm-subcats .vm-cat-row > a {
    padding-left: 28px !important;
    font-size: .9rem !important;
  }
}


/* 1.1.6.13 - mobiilin tuotekategoriapalkki suoraan headeriin */
.vm-mobile-category-bar {
  display: none;
}

@media (max-width: 768px) {
  .vm-mobile-category-bar {
    display: block !important;
    position: relative !important;
    z-index: 3000 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 8px 10px !important;
    background: #edf4f5 !important;
    border-bottom: 1px solid var(--vm-border) !important;
  }

  .vm-mobile-cat-trigger {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    width: 100% !important;
    min-height: 44px !important;
    padding: 10px 14px !important;
    border: 1px solid var(--vm-border) !important;
    border-radius: 6px !important;
    background: linear-gradient(#fff, #eef5f6) !important;
    color: #123a42 !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    box-shadow: 0 2px 7px rgba(0,0,0,.08) !important;
  }

  .vm-mobile-cat-icon {
    font-size: 1.2rem !important;
    line-height: 1 !important;
  }

  .vm-mobile-cat-panel {
    position: absolute !important;
    left: 10px !important;
    right: 10px !important;
    top: calc(100% - 2px) !important;
    max-height: 70vh !important;
    overflow-y: auto !important;
    background: #fff !important;
    border: 1px solid var(--vm-border) !important;
    border-radius: 8px !important;
    box-shadow: 0 12px 32px rgba(0,0,0,.24) !important;
    padding: 0 !important;
    z-index: 5000 !important;
  }

  .vm-mobile-cat-panel[hidden] {
    display: none !important;
  }

  .vm-mobile-cat-panel-title {
    padding: 11px 13px !important;
    background: linear-gradient(var(--vm-primary), var(--vm-primary-dark)) !important;
    color: #fff !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: .03em !important;
    font-size: .95rem !important;
    border-radius: 8px 8px 0 0 !important;
  }

  .vm-mobile-cat-panel .vm-cat-list {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .vm-mobile-cat-panel .vm-cat-item {
    display: block !important;
    width: 100% !important;
  }

  .vm-mobile-cat-panel .vm-cat-row {
    display: flex !important;
    width: 100% !important;
    align-items: stretch !important;
    background: transparent !important;
    border-bottom: 1px solid #e2eaec !important;
  }

  .vm-mobile-cat-panel .vm-cat-row > a {
    flex: 1 1 auto !important;
    padding: 13px 12px !important;
    color: #123a42 !important;
    font-size: .96rem !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .vm-mobile-cat-panel .vm-cat-toggle {
    flex: 0 0 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-left: 1px solid #e2eaec !important;
    font-size: 1.15rem !important;
  }

  .vm-mobile-cat-panel .vm-subcats {
    display: none !important;
    background: #f6f9fa !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .vm-mobile-cat-panel .vm-cat-item.open > .vm-subcats {
    display: block !important;
  }

  .vm-mobile-cat-panel .vm-subcats .vm-cat-row > a {
    padding-left: 28px !important;
    font-size: .9rem !important;
  }

  /* Mobiilissa ei näytetä sivupalkin vanhaa kategoria- eikä yhteystietolaatikkoa */
  .vm-sidebar > .vm-box,
  aside.vm-sidebar > .vm-box,
  .vm-contact-sidebar {
    display: none !important;
  }
}


/* 1.1.6.14 - JS-riippumaton mobiilin kategoriavalikko details/summary-rakenteella */
@media (max-width: 768px) {
  details.vm-mobile-category-bar {
    display: block !important;
    position: relative !important;
    z-index: 3000 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 8px 10px !important;
    background: #edf4f5 !important;
    border-bottom: 1px solid var(--vm-border) !important;
  }

  details.vm-mobile-category-bar > summary.vm-mobile-cat-trigger {
    list-style: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    width: 100% !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
    padding: 10px 14px !important;
    border: 1px solid var(--vm-border) !important;
    border-radius: 6px !important;
    background: linear-gradient(#fff, #eef5f6) !important;
    color: #123a42 !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    box-shadow: 0 2px 7px rgba(0,0,0,.08) !important;
  }

  details.vm-mobile-category-bar > summary.vm-mobile-cat-trigger::-webkit-details-marker {
    display: none !important;
  }

  details.vm-mobile-category-bar .vm-mobile-cat-panel {
    display: none !important;
  }

  details.vm-mobile-category-bar[open] .vm-mobile-cat-panel {
    display: block !important;
    position: absolute !important;
    left: 10px !important;
    right: 10px !important;
    top: calc(100% - 2px) !important;
    max-height: 70vh !important;
    overflow-y: auto !important;
    background: #fff !important;
    border: 1px solid var(--vm-border) !important;
    border-radius: 8px !important;
    box-shadow: 0 12px 32px rgba(0,0,0,.24) !important;
    padding: 0 !important;
    z-index: 5000 !important;
  }

  .vm-mobile-category-bar .vm-mobile-cat-panel-title {
    padding: 11px 13px !important;
    background: linear-gradient(var(--vm-primary), var(--vm-primary-dark)) !important;
    color: #fff !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: .03em !important;
    font-size: .95rem !important;
    border-radius: 8px 8px 0 0 !important;
  }

  .vm-mobile-category-bar .vm-cat-list {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .vm-mobile-category-bar .vm-cat-item {
    display: block !important;
    width: 100% !important;
  }

  .vm-mobile-category-bar .vm-cat-row {
    display: flex !important;
    width: 100% !important;
    align-items: stretch !important;
    background: transparent !important;
    border-bottom: 1px solid #e2eaec !important;
  }

  .vm-mobile-category-bar .vm-cat-row > a {
    flex: 1 1 auto !important;
    padding: 13px 12px !important;
    color: #123a42 !important;
    font-size: .96rem !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .vm-mobile-category-bar .vm-cat-toggle {
    flex: 0 0 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-left: 1px solid #e2eaec !important;
    font-size: 1.15rem !important;
  }

  .vm-mobile-category-bar .vm-subcats {
    display: none !important;
    background: #f6f9fa !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .vm-mobile-category-bar .vm-cat-item.open > .vm-subcats {
    display: block !important;
  }

  .vm-mobile-category-bar .vm-subcats .vm-cat-row > a {
    padding-left: 28px !important;
    font-size: .9rem !important;
  }

  .vm-sidebar > .vm-box,
  aside.vm-sidebar > .vm-box,
  .vm-contact-sidebar {
    display: none !important;
  }
}


/* 1.1.6.15 - vain yksi mobiilin kategoriapainike */
@media (max-width: 768px) {
  div.vm-mobile-category-bar {
    display: none !important;
  }

  details.vm-mobile-category-bar {
    display: block !important;
  }
}


/* Vanhamies 1.1.6.20 - tuoteotsikko kuvan päälle ja napit samaan leveyteen */
body.single-product .woocommerce div.product,
body.single-product div.product {
    display: grid !important;
    grid-template-columns: minmax(260px, 1fr) minmax(210px, 300px) !important;
    column-gap: 28px !important;
    row-gap: 14px !important;
    align-items: start !important;
}

/* Kun otsikko on siirretty ennen kuvaa, se venyy koko tuotelaatikon leveydelle */
body.single-product .woocommerce div.product > .product_title,
body.single-product div.product > .product_title,
body.single-product .woocommerce div.product h1.product_title,
body.single-product div.product h1.product_title {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    display: block !important;
    float: none !important;
    clear: both !important;
    margin: 0 0 8px 0 !important;
    padding: 0 0 10px 0 !important;
}

/* Kuva vasemmalle otsikon alle */
body.single-product .woocommerce div.product div.images,
body.single-product .woocommerce div.product .woocommerce-product-gallery,
body.single-product div.product div.images,
body.single-product div.product .woocommerce-product-gallery {
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
}

/* Tuotetiedot oikealle */
body.single-product .woocommerce div.product div.summary,
body.single-product div.product div.summary,
body.single-product .woocommerce div.product .summary,
body.single-product div.product .summary {
    grid-column: 2 !important;
    grid-row: 2 !important;
    width: 100% !important;
    max-width: 300px !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ostoskori- ja kysy tuotteesta -napit päällekkäin, sama leveys ja sama vasen/oikea linja */
body.single-product .woocommerce div.product form.cart,
body.single-product div.product form.cart {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 300px !important;
    margin: 16px 0 0 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: both !important;
}

body.single-product .woocommerce div.product form.cart div.quantity,
body.single-product div.product form.cart div.quantity {
    display: none !important;
}

body.single-product .woocommerce div.product form.cart .single_add_to_cart_button,
body.single-product div.product form.cart .single_add_to_cart_button,
body.single-product .woocommerce div.product form.cart .vanhamies-theme-enquiry-button,
body.single-product div.product form.cart .vanhamies-theme-enquiry-button {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 38px !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    line-height: 38px !important;
    float: none !important;
    clear: both !important;
    border: 0 !important;
    border-radius: 7px !important;
    background: var(--vm-primary) !important;
    color: #fff !important;
    font-weight: 700 !important;
}

/* Piilota lisäosan oma nappi vain tuotteen alaosasta. Lomake jää käyttöön. */
body.single-product .vanhamies-product-enquiry-toggle-wrap,
body.single-product #vanhamies_show_product_enquiry,
body.single-product .vanhamies-product-enquiry-toggle,
body.single-product .wpef-product-enquiry-button,
body.single-product .product-enquiry-button {
    display: none !important;
}

/* Lomake ja alemmat tuotetiedot koko leveydelle kuvan ja oikean palstan alle */
body.single-product .woocommerce div.product .woocommerce-tabs,
body.single-product div.product .woocommerce-tabs,
body.single-product .woocommerce div.product .related,
body.single-product div.product .related,
body.single-product .woocommerce div.product .upsells,
body.single-product div.product .upsells,
body.single-product .woocommerce div.product #vanhamies_product_enquiry_wrap,
body.single-product div.product #vanhamies_product_enquiry_wrap {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    clear: both !important;
}

body.single-product #vanhamies_product_enquiry_wrap {
    max-width: 720px !important;
    margin-top: 14px !important;
}

@media (max-width: 760px) {
    body.single-product .woocommerce div.product,
    body.single-product div.product {
        display: block !important;
    }

    body.single-product .woocommerce div.product div.summary,
    body.single-product div.product div.summary,
    body.single-product .woocommerce div.product .summary,
    body.single-product div.product .summary {
        max-width: none !important;
        margin-top: 18px !important;
    }

    body.single-product .woocommerce div.product form.cart,
    body.single-product div.product form.cart {
        max-width: none !important;
    }
}


/* vanhamies-leveä 1.0.0 - leveä 1920px ulkoasu */
.vm-container {
    width: min(1920px, calc(100% - 24px)) !important;
    max-width: 1920px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.vm-page {
    width: 100% !important;
}

.vm-layout {
    grid-template-columns: 320px minmax(0, 1fr) !important;
    gap: 24px !important;
}

.vm-hero,
.vm-main-nav,
.vm-footer {
    width: 100% !important;
}

.woocommerce ul.products,
.woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 20px !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
    content: none !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    width: auto !important;
    float: none !important;
}

@media (max-width: 900px) {
    .vm-container {
        width: min(100% - 20px, 1920px) !important;
    }

    .vm-layout {
        grid-template-columns: 1fr !important;
    }

    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
        gap: 14px !important;
    }
}

@media (max-width: 520px) {
    .vm-container {
        width: min(100% - 12px, 1920px) !important;
    }

    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
}


/* Vanhamies 1.0.1 - vanhaa sivua muistuttava tuotekategoriavalikko */
.vm-sidebar .vm-box-title,
.vm-mobile-cat-trigger,
.vm-mobile-cat-panel-title {
  min-height: 30px;
  padding: 8px 12px;
  background: linear-gradient(#b9d6d3, #6faaa6) !important;
  color: #102f35 !important;
  border: 1px solid #78aaa8;
  border-radius: 7px 7px 0 0;
  text-transform: none;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: 0;
}

.vm-sidebar .vm-box-title::before { content: none !important; }

.vm-cat-list {
  background: #dce9ec;
  border: 1px solid #8da9b2;
  border-top: 0;
  border-radius: 0 0 7px 7px;
  overflow: hidden;
}

.vm-cat-item {
  border-bottom: 1px solid #7f99a7 !important;
}

.vm-cat-row {
  min-height: 34px;
  background: linear-gradient(#d3d8e7 0%, #9cabc8 45%, #6f84ad 100%) !important;
  border-top: 1px solid rgba(255,255,255,.55);
}

.vm-cat-row:hover {
  background: linear-gradient(#c3e2e7 0%, #5eb1ca 48%, #1686b0 100%) !important;
}

.vm-cat-row a {
  padding: 9px 12px !important;
  color: #263746 !important;
  font-size: .92rem !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
}

.vm-cat-row:hover a,
.vm-cat-row:hover .vm-cat-toggle,
.vm-cat-item.open > .vm-cat-row a,
.vm-cat-item.is-open > .vm-cat-row a,
.vm-cat-item.current-cat > .vm-cat-row a,
.vm-cat-item.current-cat-parent > .vm-cat-row a {
  color: #ffffff !important;
  text-shadow: 0 1px 1px rgba(0,0,0,.45);
}

.vm-cat-toggle {
  width: 38px;
  min-width: 38px;
  color: #263746 !important;
  background: rgba(255,255,255,.12) !important;
  border-left: 1px solid rgba(0,0,0,.12) !important;
  font-size: 1.05rem;
  font-weight: 900;
}

.vm-cat-item.open > .vm-cat-row,
.vm-cat-item.is-open > .vm-cat-row,
.vm-cat-item.current-cat > .vm-cat-row,
.vm-cat-item.current-cat-parent > .vm-cat-row {
  background: linear-gradient(#7bcde0 0%, #2190ba 45%, #0077a4 100%) !important;
}

.vm-subcats {
  background: #d6e7e4 !important;
  border: 0 !important;
  border-radius: 0;
}

.vm-subcats .vm-cat-item {
  border-bottom: 1px solid #aac3c4 !important;
}

.vm-subcats .vm-cat-row {
  min-height: 31px;
  background: linear-gradient(#ecf5f2, #c7ddd9) !important;
  border-top: 1px solid rgba(255,255,255,.7);
}

.vm-subcats .vm-cat-row:hover {
  background: linear-gradient(#d8f1f0, #9accc8) !important;
}

.vm-subcats .vm-cat-row a {
  padding: 7px 12px 7px 25px !important;
  color: #334851 !important;
  font-size: .88rem !important;
  font-weight: 600 !important;
  text-shadow: none;
}

.vm-subcats .vm-cat-row:hover a,
.vm-subcats .vm-cat-item.current-cat > .vm-cat-row a {
  color: #17343a !important;
  text-shadow: none;
}

@media (max-width: 760px) {
  .vm-cat-row { min-height: 36px; }
  .vm-cat-row a { padding-top: 10px !important; padding-bottom: 10px !important; }
}


/* 1.0.2 - korjaus: väriteema ei saa rikkoa vanhanmallisen kategoriavalikon rakennetta */
.vm-sidebar .vm-cat-list,
.vm-sidebar .vm-category-list,
.vm-sidebar .product-categories,
aside .vm-cat-list,
aside .product-categories {
  display: block !important;
  flex-wrap: initial !important;
  gap: 0 !important;
  overflow: visible !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
  width: 100% !important;
}

.vm-sidebar .vm-cat-item,
.vm-sidebar .product-categories > li,
.vm-sidebar .widget_product_categories li.cat-item,
aside .vm-cat-item,
aside .product-categories li.cat-item {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  float: none !important;
}

.vm-sidebar .vm-cat-row,
.vm-sidebar .product-categories li,
aside .vm-cat-row,
aside .product-categories li {
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  align-items: stretch !important;
  border-radius: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.vm-sidebar .vm-cat-row > a,
.vm-sidebar .product-categories li a,
.vm-sidebar .widget_product_categories li a,
aside .vm-cat-row > a,
aside .product-categories li a {
  display: block !important;
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  white-space: normal !important;
  box-sizing: border-box !important;
}

.vm-sidebar .vm-cat-toggle,
aside .vm-cat-toggle {
  flex: 0 0 34px !important;
  width: 34px !important;
  min-width: 34px !important;
  border-radius: 0 !important;
}

.vm-sidebar .vm-subcats,
.vm-sidebar .children,
aside .vm-subcats,
aside .children {
  display: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

.vm-sidebar .vm-cat-item.open > .vm-subcats,
.vm-sidebar .cat-item.open > .children,
aside .vm-cat-item.open > .vm-subcats,
aside .cat-item.open > .children {
  display: block !important;
}


/* Vanhamies 1.0.4 - Vaalea neutraali kategoriapalkki */
.vm-sidebar{
  background:#f3f3f3;
}

.vm-sidebar .vm-box-title{
  background:#ececec;
  color:#444444;
}

.vm-cat-list{
  background:#f8f8f8;
}

.vm-cat-row{
  background:#f3f3f3;
}

.vm-cat-row:hover{
  background:#e6e6e6;
}

.vm-cat-row a{
  color:#444444;
}

.vm-cat-item.active > .vm-cat-row,
.vm-cat-item.current-cat > .vm-cat-row,
.vm-cat-item.current-cat-parent > .vm-cat-row,
.vm-cat-item.open > .vm-cat-row{
  background:#d4d4d4;
}

.vm-subcats{
  background:#fafafa;
}

.vm-subcats .vm-cat-row{
  background:#fafafa;
}

.vm-subcats .vm-cat-row:hover{
  background:#efefef;
}

/* vanhamies-leveä 1.0.1 - aktiivinen päävalikon linkki WooCommerce-sivuilla */
.vm-main-nav .vm-menu > li.current-menu-item > a,
.vm-main-nav .vm-menu > li.current_page_item > a,
.vm-main-nav .vm-menu > li.current-menu-ancestor > a,
.vm-main-nav .vm-menu > li.current_page_ancestor > a,
.vm-main-nav .vm-menu > li.vm-woocommerce-active > a,
.vm-main-nav .vm-menu > li.vm-active > a {
    background: linear-gradient(#d7eaea, #bfd9dc) !important;
    color: #17363d !important;
    box-shadow: inset 0 3px 0 rgba(61, 128, 137, .55), inset 0 -1px 0 rgba(255,255,255,.65) !important;
    text-decoration: none !important;
}

.vm-main-nav .vm-menu > li.current-menu-item > a:hover,
.vm-main-nav .vm-menu > li.current_page_item > a:hover,
.vm-main-nav .vm-menu > li.current-menu-ancestor > a:hover,
.vm-main-nav .vm-menu > li.current_page_ancestor > a:hover,
.vm-main-nav .vm-menu > li.vm-woocommerce-active > a:hover,
.vm-main-nav .vm-menu > li.vm-active > a:hover {
    background: linear-gradient(#cfe5e6, #b5d1d5) !important;
}

/* vanhamies-leveä 1.0.2 - aktiivinen tuoteosasto näkyviin samana kuin hover */
.vm-sidebar .vm-cat-item.current-cat > .vm-cat-row,
.vm-sidebar .vm-cat-item.current-cat-parent > .vm-cat-row,
.vm-sidebar .vm-cat-item.active > .vm-cat-row {
  background: linear-gradient(#d8f1f0, #9accc8) !important;
}

.vm-sidebar .vm-cat-item.current-cat > .vm-cat-row > a,
.vm-sidebar .vm-cat-item.current-cat-parent > .vm-cat-row > a,
.vm-sidebar .vm-cat-item.active > .vm-cat-row > a {
  color: #17343a !important;
  font-weight: 900 !important;
  text-shadow: none !important;
}

.vm-sidebar .vm-cat-item.current-cat > .vm-cat-row > .vm-cat-toggle,
.vm-sidebar .vm-cat-item.current-cat-parent > .vm-cat-row > .vm-cat-toggle,
.vm-sidebar .vm-cat-item.active > .vm-cat-row > .vm-cat-toggle {
  background: rgba(255,255,255,.20) !important;
  color: #17343a !important;
}

.vm-sidebar .vm-subcats .vm-cat-item.current-cat > .vm-cat-row,
.vm-sidebar .vm-subcats .vm-cat-item.active > .vm-cat-row {
  background: linear-gradient(#c7e5e2, #88c2bd) !important;
  box-shadow: inset 4px 0 0 rgba(54, 123, 128, .75) !important;
}

/* vanhamies-leveä 1.0.3 - pakotettu aktiivinen tuoteosasto myös URL:n perusteella */
.vm-sidebar .vm-cat-list .vm-cat-item.vm-url-active > .vm-cat-row,
.vm-sidebar .vm-cat-list .vm-cat-item.current-cat > .vm-cat-row,
.vm-sidebar .vm-cat-list .vm-cat-item.active > .vm-cat-row,
aside .product-categories li.cat-item.current-cat > a,
aside .product-categories li.cat-item.current-cat-parent > a,
.widget_product_categories li.cat-item.current-cat > a,
.widget_product_categories li.cat-item.current-cat-parent > a {
  background: linear-gradient(#d7eaea, #bfd9dc) !important;
  color: #17363d !important;
  box-shadow: inset 0 3px 0 rgba(61, 128, 137, .55), inset 0 -1px 0 rgba(255,255,255,.65) !important;
  text-shadow: none !important;
  font-weight: 900 !important;
}

.vm-sidebar .vm-cat-list .vm-cat-item.vm-url-active > .vm-cat-row > a,
.vm-sidebar .vm-cat-list .vm-cat-item.current-cat > .vm-cat-row > a,
.vm-sidebar .vm-cat-list .vm-cat-item.active > .vm-cat-row > a {
  color: #17363d !important;
  text-shadow: none !important;
  font-weight: 900 !important;
}

.vm-sidebar .vm-cat-list .vm-cat-item.vm-url-parent > .vm-cat-row,
.vm-sidebar .vm-cat-list .vm-cat-item.current-cat-parent > .vm-cat-row {
  background: linear-gradient(#cfe5e6, #b5d1d5) !important;
  color: #17363d !important;
}

/* vanhamies-leveä 1.0.4 - WooCommerce arkistosivun otsikko näkyviin */
.vm-archive-title,
.woocommerce-products-header__title.page-title {
  margin: 0 0 24px;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(80, 130, 135, .25);
  color: #15363d;
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 700;
}

.term-description,
.woocommerce-products-header__description {
  margin: 0 0 22px;
}
