/* Pagination - responsive */
.woocommerce nav.woocommerce-pagination,
.woocommerce-page nav.woocommerce-pagination {
  width: 100%;
  margin: 18px 0;
}
.woocommerce nav.woocommerce-pagination ul.page-numbers,
.woocommerce-page nav.woocommerce-pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.woocommerce nav.woocommerce-pagination ul.page-numbers li,
.woocommerce-page nav.woocommerce-pagination ul.page-numbers li {
  list-style: none;
}
.woocommerce nav.woocommerce-pagination .page-numbers,
.woocommerce-page nav.woocommerce-pagination .page-numbers {
  border-radius: 8px;
}
.woocommerce nav.woocommerce-pagination .page-numbers a,
.woocommerce nav.woocommerce-pagination .page-numbers span,
.woocommerce-page nav.woocommerce-pagination .page-numbers a,
.woocommerce-page nav.woocommerce-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  color: #0a344c;
  font: 600 14px/1 "DM Sans";
  text-decoration: none;
}
.woocommerce nav.woocommerce-pagination .page-numbers span.current,
.woocommerce-page nav.woocommerce-pagination .page-numbers span.current {
  background: #0b3a4f;
  color: #fff;
  border-color: #0b3a4f;
}
.woocommerce nav.woocommerce-pagination .page-numbers a:hover,
.woocommerce-page nav.woocommerce-pagination .page-numbers a:hover {
  filter: brightness(1.05);
}

/* =====================
   Shop Filter Popup
   ===================== */
#socksy-filter-popup[aria-hidden="true"] {
  display: none;
}
#socksy-filter-popup {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.45);
}
#socksy-filter-popup .popup-inner {
  position: relative;
  width: 92%;
  max-width: 560px;
  max-height: 90vh;
  margin: 6vh auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  padding: 16px;
  overflow: auto;
}
#socksy-filter-popup [data-close-filter-popup] {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
#socksy-filter-popup [data-close-filter-popup]:hover {
  background: rgba(0, 0, 0, 0.06);
}

#socksy-filter-form {
  font-family: "DM Sans", sans-serif;
}
#socksy-filter-form .socksy-filter-group {
  margin: 8px 0 14px;
}
#socksy-filter-form .socksy-filter-group h4 {
  margin: 0 0 8px;
  font: 700 16px/1.2 "DM Sans";
  color: #0a344c;
}
#socksy-filter-form .socksy-filter-options {
  display: grid;
  gap: 8px 10px;
}
@media (min-width: 560px) {
  #socksy-filter-form .socksy-filter-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
#socksy-filter-form .socksy-filter-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 13px/1.3 "DM Sans";
  color: #0a344c;
  cursor: pointer;
}
#socksy-filter-form hr.socksy-filter-hr {
  border: 0;
  height: 1px;
  background: #eee;
  margin: 10px 0;
}

/* Price range block */
.nb-price-range {
  display: grid;
  gap: 10px;
}
.nb-price-range__inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.nb-price-range__inputs label {
  display: grid;
  gap: 6px;
  font: 600 12px/1.2 "DM Sans";
  color: #425a68;
}
.nb-price-range__inputs input[type="number"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  font: 400 14px/1.4 "DM Sans";
}
.nb-price-range__slider {
  position: relative;
  height: 34px;
}
.nb-price-range__slider input[type="range"] {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  margin: 0;
  -webkit-appearance: none;
  background: transparent;
  pointer-events: none; /* we keep visual, but let uppermost slider handle events */
}
.nb-price-range__slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0b3a4f;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #0b3a4f;
  pointer-events: auto;
}
.nb-price-range__slider input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0b3a4f;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #0b3a4f;
  pointer-events: auto;
}
.nb-price-range__slider input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
}
.nb-price-range__slider input[type="range"]::-moz-range-track {
  height: 4px;
}
.nb-price-range__track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  background: #e9eef1;
  transform: translateY(-50%);
  border-radius: 999px;
}
.nb-price-range__track .nb-price-range__range {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0; /* JS updates left/right */
  right: 0;
  background: #0b3a4f;
  border-radius: inherit;
}

#socksy-filter-form .socksy-filter-actions {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-top: 10px;
}
#socksy-filter-form .socksy-filter-actions button {
  border-radius: 999px;
  padding: 10px 14px;
  font: 600 14px/1 "DM Sans";
}
#socksy-filter-clear {
  background: #f3f6f8;
  color: #0a344c;
  border: 1px solid #e2e8ec;
}
#socksy-filter-apply {
  background: #0b3a4f;
  color: #fff;
  border: 1px solid #0b3a4f;
}
@media (max-width: 600px) {
  .woocommerce nav.woocommerce-pagination .page-numbers a,
  .woocommerce nav.woocommerce-pagination .page-numbers span,
  .woocommerce-page nav.woocommerce-pagination .page-numbers a,
  .woocommerce-page nav.woocommerce-pagination .page-numbers span {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    font-size: 13px;
  }
  .woocommerce nav.woocommerce-pagination ul.page-numbers,
  .woocommerce-page nav.woocommerce-pagination ul.page-numbers {
    gap: 6px;
  }
}
/* Category slider */
.nb-cat-slider {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0 20px;
  width: 100%;
}
.nb-cat-slider__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  /* hide scrollbar cross-browser */
  scrollbar-width: none; /* Firefox */
}
.nb-cat-slider__track::-webkit-scrollbar {
  display: none;
} /* WebKit */
.nb-cat-slider__track:focus {
  outline: none;
}
.nb-cat-slider__item {
  flex: 0 0 auto;
  scroll-snap-align: start;
}
.nb-cat-slider .socksy-category-card {
  min-width: 180px;
}
@media (min-width: 900px) {
  .nb-cat-slider .socksy-category-card {
    min-width: 220px;
  }
}
.nb-cat-slider__controls {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.nb-cat-slider__btn {
  border: 0;
  background: #111;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.nb-cat-slider__btn[hidden] {
  display: none;
}
.nb-cat-slider__btn span {
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
}
.nb-cat-slider__btn--prev span {
  transform: rotate(225deg);
}
.nb-cat-slider__btn--next span {
  transform: rotate(45deg);
}

/* Pagination styling */
body.woocommerce nav.woocommerce-pagination {
  margin: 32px auto 48px;
  max-width: 1440px;
  width: 90%;
  display: flex;
  justify-content: center;
  font-family: "DM Sans";
}
body.woocommerce nav.woocommerce-pagination ul.page-numbers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  border: none;
}
body.woocommerce nav.woocommerce-pagination ul.page-numbers li {
  display: inline-flex;
  border: none;
}
body.woocommerce nav.woocommerce-pagination a.page-numbers,
body.woocommerce nav.woocommerce-pagination span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #e6e6e6;
  background: #fff;
  color: #111;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.08s ease;
}
body.woocommerce nav.woocommerce-pagination a.page-numbers:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}
body.woocommerce nav.woocommerce-pagination span.page-numbers.current {
  background: #111;
  color: #fff;
  border-color: #111;
}
/* Prev/next arrows */
body.woocommerce nav.woocommerce-pagination a.page-numbers.prev,
body.woocommerce nav.woocommerce-pagination a.page-numbers.next {
  padding: 0 14px;
}
body.woocommerce nav.woocommerce-pagination a.page-numbers:active {
  transform: translateY(1px);
}
@media (max-width: 600px) {
  body.woocommerce nav.woocommerce-pagination a.page-numbers,
  body.woocommerce nav.woocommerce-pagination span.page-numbers {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 13px;
  }
}
body.post-type-archive {
  padding-top: 173px;
}

.shopTop_info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  max-width: 1440px;
  width: 90%;
  margin: 0 auto;
  margin-bottom: 40px;
}

@media (max-width: 900px) {
  .nb-cat-slider__track {
    gap: 10px;
  }
  .socksy-category-card {
    width: 220px;
  }
  .container .shopTop_count {
    top: 122px;
    gap: 8px;
    width: 100%;
    padding: 10px 2.5%;
    align-items: flex-start;
    flex-direction: column;
  }
  .container .shopTop_controls {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
}

.woocommerce ul.products[class*="columns-"] li.product,
.woocommerce-page ul.products[class*="columns-"] li.product {
  margin: 0;
}

body.woocommerce .woocommerce-breadcrumb {
  margin: auto;
  max-width: 1440px;
  width: 90%;
  color: #000;
  font-family: "DM Sans";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 1.122px;
  text-decoration: none;
  margin-top: 75px;
  overflow: hidden;
}

.woocommerce-products-header {
  margin: 20px auto;
  max-width: 1440px;
  width: 90%;
  font-family: "DM Sans";
}

.woocommerce-products-header h1 {
  color: #000;
  font-family: "DM Sans";
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin: 0;
}

.shopTop_count {
  position: sticky;
  top: 130px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 90%;
  margin: 0 auto;
  max-width: 1440px;
  margin-bottom: 5px;
  background: #f7f7f7;
  padding: 8px 0;
  box-sizing: border-box;
}

body.woocommerce {
  background: #f7f7f7;
}

body.woocommerce .shopTop_count * {
  margin: 0;
  color: #000;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%; /* 24px */
  border: none;
}

main .products.columns-4 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1440px;
  width: 90%;
  margin: 0 auto;
  box-sizing: border-box;
}

main .products.columns-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Mobile: 2-column product grid */
@media (max-width: 900px) {
  main .products.columns-4,
  main .products.columns-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 95%;
  }
}

/* Category chips above product grid */
.socksy-category-list {
  display: flex;
  gap: 20px;
  max-width: 1440px;
  width: 100%;
}

.products .product-card {
  border: 1px solid rgba(241, 241, 241, 1);
  border-radius: 10px;
  background: #fff;
  overflow: hidden; /* prevent child overflow on mobile */
  box-sizing: border-box;
}

.products .product-card:hover {
  border-color: #0b3a4f;
}

/* Single product layout */
.nb-single.container {
  max-width: 1440px;
  width: 90%;
  margin: 0 auto;
  margin-top: 40px;
  font-family: "DM Sans", sans-serif;
}
.nb-single__top {
  display: grid;
  grid-template-columns: 60% 1fr;
  gap: 40px;
  align-items: start;
}
.nb-single__media {
  position: relative;
}

.nb-single__summary {
  position: sticky;
  top: 130px;
  z-index: 30;
  background: #fff;
  border-radius: 10px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 20px;
}

.nb-single.container .woocommerce-breadcrumb {
  width: 100%;
}

.woocommerce div.product .nb-single__summary h1 {
  color: #0a344c;
  font-family: "DM Sans";
  font-size: 42px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  margin-top: 16px;
}

.nb-single__summary .price {
  color: #000;
  font-family: "DM Sans";
  font-size: 42px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.2px;
}

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product p.price,
.woocommerce:where(body:not(.woocommerce-uses-block-theme))
  div.product
  span.price {
  color: #ff7700 !important;
}

.nb-single__short p {
  color: #404040;
  margin-bottom: 8px;
  font-family: "DM Sans";
}
.nb-single.container .product_meta {
  margin-top: 2em;
}

.nb-single__readmore {
  display: inline-block;
  margin-bottom: 20px;
  font-family: "DM Sans";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  color: #666666;
  cursor: pointer;
}

.nb-single .variations {
  display: inline-block;
  margin-bottom: 20px;
  font-family: "DM Sans";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  color: #000;
}

.nb-single .variations tr {
  display: flex;
  flex-direction: column;
  align-items: start;
}

.nb-single .variations a.reset_variations {
  display: none !important;
}

.nb-single .quantity {
  display: none !important;
}

.woocommerce div.product form.cart {
  margin-bottom: 0 !important;
}

.woocommerce div.product form.cart button.single_add_to_cart_button {
  background: #0b3a4f;
  color: #fff;
  border: 1px solid #0b3a4f;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  width: 100%;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: "DM Sans";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-transform: uppercase;
  letter-spacing: 1.122px;
}

.nb-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.nb-actions .nb-actions__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  width: auto;
  height: auto;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
  line-height: 150%;
  letter-spacing: 1.122px;
  text-decoration: none;
  color: #000;
  font-family: "DM Sans";
  top: 0;
  right: 0;
}
.nb-actions__btn.is-active,
.nb-actions__btn:hover,
.nb-actions__btn.socksy-compare-toggle.is-active {
  border-color: #0b3a4f;
}
.nb-loan-warning {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  color: #111;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: start;
}
.nb-loan-warning__icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
}
.nb-loan-warning__body {
  display: grid;
  gap: 6px;
}
.nb-loan-warning__title {
  margin: 0;
  font: 800 16px/1.2 "DM Sans";
  color: #000;
}
.nb-loan-warning__text {
  margin: 0;
  font: 300 14px/1.2 "DM Sans";
  color: #111;
}
.nb-loan-warning__link {
  color: #0a344c;
}
.nb-loan-warning__link:hover {
  text-decoration: underline;
}
.nb-single__sections {
  margin-top: 24px;
}
.nb-single__related {
  max-width: 1440px;
  width: 100%;
  margin: 40px auto 0;
}
.nb-sticky-atc {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  display: none;
  background: #fff;
  border-top: 1px solid #eaeaea;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.06);
}
.nb-sticky-atc__inner {
  max-width: 1440px;
  width: 90%;
  margin: 0 auto;
  padding: 10px 0;
  display: grid;
  grid-template-columns: 1fr 160px;
  align-items: center;
  gap: 10px;
}
.nb-sticky-atc__price {
  font: 700 18px/1 "DM Sans";
  color: #000;
}
.nb-sticky-atc__btn {
  background: #0b3a4f;
  color: #fff;
  border: 1px solid #0b3a4f;
  border-radius: 999px;
  width: 100%;
  padding: 10px 12px;
  text-align: center;
}
@media (max-width: 900px) {
  .nb-sticky-atc {
    display: block;
  }
  body.single-product {
    padding-bottom: 72px;
  }
}
.nb-single__related h2 {
  color: #000;
  font-family: "DM Sans";
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 16px;
}
.nb-accordion__item {
  border: 1px solid #eaeaea;
  border-radius: 10px;
  background: #fff;
  margin-bottom: 12px;
  overflow: hidden;
}
.nb-accordion__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  font-family: "DM Sans";
  font-weight: 700;
  font-size: 18px;
}
.nb-accordion__summary::-webkit-details-marker {
  display: none;
}
.nb-accordion__summary:after {
  content: "+";
  font-weight: 700;
}
.nb-accordion__item[open] .nb-accordion__summary:after {
  content: "−";
}
.nb-accordion__panel {
  max-height: 0;
  overflow: hidden;
  padding: 0 16px;
  transition: max-height 200ms ease, padding 200ms ease;
}
.nb-accordion__item[open] .nb-accordion__panel {
  max-height: 3500px; /* small accordion, enough for content */
  padding: 12px 16px 16px;
}
.nb-single__section {
  margin-bottom: 30px;
}
.nb-single__specs {
  width: 100%;
  border-collapse: collapse;
}
.nb-single__specs th,
.nb-single__specs td {
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  color: #000;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
}

.nb-single__specs h3 {
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: normal;
  color: #000;
  padding-top: 20px;
}

.nb-single__specs tbody > tr:first-child h3 {
  padding-top: 0px;
}

/* NB custom gallery */
.nb-gallery {
  --nb-gallery-ratio: 16/9;
}
.nb-gallery__main {
  position: relative;
  width: 100%;
  aspect-ratio: var(--nb-gallery-ratio);
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}
.nb-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.nb-gallery__thumbs {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 14px;
  padding: 6px 4px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
}
.nb-gallery__thumbs::-webkit-scrollbar {
  display: none; /* WebKit */
}
.nb-gallery__thumbs li {
  flex: 0 0 auto;
}
.nb-gallery__thumbs img {
  width: 120px;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #eaeaea;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  opacity: 0.85;
  transition: opacity 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  background: #fff;
}
.nb-gallery__thumbs img:hover {
  opacity: 1;
}
.nb-gallery__thumbs img.is-active {
  opacity: 1;
  border-color: #0b3a4f;
  box-shadow: 0 0 0 2px #0b3a4f33;
}

@media (max-width: 980px) {
  .nb-single__top {
    grid-template-columns: 1fr;
  }
  .nb-gallery__thumbs img {
    width: 100px;
    height: auto;
    aspect-ratio: 4/3;
  }
}
.nb-single__media .woocommerce-product-gallery__wrapper a,
.nb-single__media .woocommerce-product-gallery__wrapper img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Thumbnails as centered horizontal slider */
.nb-single__media .flex-control-nav.flex-control-thumbs,
.nb-single__media
  .woocommerce-product-gallery
  .flex-control-nav.flex-control-thumbs,
.nb-single__media .woocommerce-product-gallery .thumbnails {
  display: flex !important;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}
.nb-single__media .flex-control-nav.flex-control-thumbs li,
.nb-single__media
  .woocommerce-product-gallery
  .flex-control-nav.flex-control-thumbs
  li {
  list-style: none;
  flex: 0 0 auto;
  scroll-snap-align: center;
}
.nb-single__media .flex-control-nav.flex-control-thumbs img,
.nb-single__media
  .woocommerce-product-gallery
  .flex-control-nav.flex-control-thumbs
  img {
  width: 82px;
  height: 82px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #eee;
  opacity: 0.8;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.nb-single__media .flex-control-nav.flex-control-thumbs img:hover {
  opacity: 1;
}
.nb-single__media .flex-control-nav.flex-control-thumbs .flex-active {
  opacity: 1;
  border-color: #000;
  outline: 2px solid #000;
  outline-offset: 2px;
}

.socksy-category-chip {
  color: #000;
  font-family: "DM Sans";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 5.612px;
  text-transform: uppercase;
  text-decoration: none;
}

.socksy-category-chip:hover {
  text-decoration: underline;
}

.socksy-category-chip.is-active {
  font-weight: 900;
}

/* Category cards */
.socksy-category-header {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto 16px;
}
.socksy-category-header h2 {
  color: #000;
  font-family: "DM Sans";
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin: 0;
}
.socksy-category-desc {
  color: #404040;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.socksy-category-card {
  display: inline-flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 260px;
  gap: 0px;
  text-decoration: none;
  color: #000;
  border-radius: 10px;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.socksy-category-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #f5f5f5;
}
.socksy-category-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.socksy-category-card__title {
  color: #000;
  font-family: "DM Sans";
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  padding: 15px 30px;
}

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

.shopTop_controls {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Custom sort dropdown */
.nb-sort {
  position: relative;
}
.nb-sort__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: #000;
  cursor: pointer;
  font: 600 14px/1 "DM Sans";
}
.nb-sort__chev {
  pointer-events: none;
}
.nb-sort__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  min-width: 220px;
  padding: 6px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  list-style: none;
}
.nb-sort__menu[hidden] {
  display: none;
}
.nb-sort__option {
  width: 100%;
  text-align: left;
  padding: 10px 10px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  font: 500 14px/1.2 "DM Sans";
  color: #000;
  cursor: pointer;
}
.nb-sort__option:hover {
  background: #f6f6f6;
}

@media (max-width: 900px) {
  .nb-sort__toggle {
    font-size: 13px;
    padding: 7px 10px;
  }
  .nb-sort__menu {
    min-width: 200px;
  }
  .nb-sort__option {
    font-size: 13px;
  }
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product.product-card {
  width: 100%;
  padding-top: 35px;
}

.product-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  aspect-ratio: 1/1;
  background-color: #f1f1f1;
  position: relative;
  overflow: hidden;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

/* Product badge (tag-based) */
.product-card {
  position: relative;
}
.product-card__badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 50px;
  padding: 7px 15px;
  border-radius: 30px;
  background: #111;
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  box-sizing: border-box;
}
.product-card__badge--black-friday {
  background: #000;
  color: #fed403;
}
.product-card__badge--nyhet {
  background: #e8318a;
  color: #fff62f;
}

.woocommerce ul.products li.product a img {
  margin: 0;
}

.product-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  aspect-ratio: 1/1;
}

/* Skeleton placeholder over product image */
.product-card__thumb .socksy-skeleton {
  position: absolute;
  inset: 0;
  border-radius: 0;
  background: linear-gradient(
    90deg,
    rgba(240, 240, 240, 0.9) 0%,
    rgba(230, 230, 230, 0.9) 40%,
    rgba(240, 240, 240, 0.9) 80%
  );
  background-size: 200% 100%;
  animation: socksy-shimmer 1.2s ease-in-out infinite;
}

.product-card__thumb.is-loaded .socksy-skeleton {
  display: none;
}

@keyframes socksy-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.product-card__body {
  margin-top: 10px;
  padding: 15px;
}

.product-card__title {
  margin: 0;
}

/* Favorites toggle */
.socksy-fav-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.socksy-fav-toggle.is-active svg path {
  fill: #ff5a5f;
  stroke: #ff5a5f;
}

.socksy-compare-toggle {
  position: absolute;
  top: 10px;
  right: 58px;
  z-index: 2;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}
.socksy-compare-toggle.is-active {
  border-color: #0b3a4f;
}

/* Header favorites icon */
.header__button.socksy-fav-header svg path {
  transition: fill 0.2s ease, stroke 0.2s ease;
}
.header__button.socksy-fav-header.is-active svg path {
  fill: #ff5a5f;
  stroke: #ff5a5f;
}

.product-card__title a {
  color: var(--Color-Scheme-1-Text, #000);
  font-family: "DM Sans";
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  line-height: 150%; /* 27px */
}

/* Color switcher above title */
.product-card__color-switcher {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.product-card__color-swatch.socksy-swatch.socksy-swatch--color {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e5e5;
  padding: 0;
  cursor: pointer;
}
.product-card__color-swatch .swatch-chip {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

/* Active/selected color ring */
.product-card__color-swatch.is-active {
  border-color: #000;
  outline: 2px solid #000;
  outline-offset: 2px;
}
.product-card__color-swatch:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.product-card__brand {
  margin: 0;
  color: #000;
  font-family: "DM Sans";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%; /* 21px */
}

.product-card__category {
  margin: 0;
  color: var(--Color-Scheme-1-Text, #000);
  font-family: "DM Sans";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%; /* 21px */
  margin-bottom: 10px;
}

.product-card__info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-card__price {
  margin: 0;
  color: #000;
  font-weight: 700;
  font-size: 38px;
  line-height: 1.2;
  letter-spacing: 0.1px;
  font-family: "DM Sans", sans-serif;
  margin-top: 10px;
  display: block; /* ensure full line for price */
}

/* Custom sale price layout */
.nb-price {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}
.nb-price__was__container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: start;
}
.nb-price__now {
  color: #000;
  font-weight: 700;
  font-size: 38px;
  line-height: 1.2;
  letter-spacing: 0.1px;
  font-family: "DM Sans", sans-serif;
  white-space: nowrap; /* avoid breaking price/currency */
}
.nb-price__save {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: #fbdd26;
  color: #000;
  font: 700 12px/1 "DM Sans";
  width: fit-content;
}
.nb-price__was {
  color: #666;
  font: 400 12px/1.2 "DM Sans";
  text-decoration: none;
}

/* Product card color swatches */
.product-card__swatches {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
}

.product-card__swatch {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.product-card__swatch .swatch-chip {
  display: block;
  width: 100%;
  height: 100%;
}

.product-card__swatch--more {
  background: #f4f4f4;
  color: #0b3a4f;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
}

/* Reuse single product swatch visuals for archive chips */
.socksy-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.socksy-swatch--color .swatch-chip {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #eee;
  display: block;
  background-size: cover;
  background-position: center;
}

.socksy-swatch--color .swatch-chip.is-split {
  background: none !important;
  position: relative;
}
.socksy-swatch--color .swatch-chip.is-split::before,
.socksy-swatch--color .swatch-chip.is-split::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
}
.socksy-swatch--color .swatch-chip.is-split::before {
  left: 0;
  border-top-left-radius: inherit;
  border-bottom-left-radius: inherit;
  background: var(--split-left, transparent);
}
.socksy-swatch--color .swatch-chip.is-split::after {
  right: 0;
  border-top-right-radius: inherit;
  border-bottom-right-radius: inherit;
  background: var(--split-right, transparent);
}

.product-card__swatches a.product-card__swatch--more {
  color: #000;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 200;
  line-height: 150%; /* 18px */
  background-color: #fff;
  border-radius: 30px;
  border: 0.5px solid #bbb;
  padding: 1px 6px;
}

/* Add-to-cart/Options button icon */
.socksy-add-to-cart-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
}

.product-card .product-card__actions {
  display: none;
}

.socksy-add-to-cart-icon img {
  width: 14px;
  height: 14px;
  display: block;
  margin: 0;
}

#nb-sizecalc {
  display: none;
}

.nb-single.container {
  margin-bottom: 40px;
}

.nb-gallery {
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  padding-top: 20px;
  box-sizing: border-box;
}

.nb-single__summary {
  padding: 14px 14px 16px;
}

body.woocommerce .nb-single__summary .woocommerce-breadcrumb {
  margin-top: 0;
}

/* Mobile product card optimizations */
@media (max-width: 900px) {
  /* Single product: mobile-first structure */
  .nb-single__top {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .nb-single.container {
    width: 95%;
    margin-bottom: 40px;
  }
  /* Mobile-only breadcrumb holder above gallery */
  .nb-mobile-breadcrumb {
    max-width: 1440px;
    width: 100%;
    margin: 12px auto 10px; /* add space below breadcrumb before gallery */
  }
  .nb-mobile-breadcrumb .woocommerce-breadcrumb {
    margin-top: 0;
  }
  /* Order: gallery (1) -> summary (2) -> accordion (3) */
  .nb-single__media {
    order: 1;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    padding-top: 20px;
  }
  .nb-single__summary {
    order: 2;
    position: static;
    top: auto;
    background: #fff;
    border-radius: 10px;
    padding: 14px 14px 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    margin-bottom: 0;
  }
  .nb-single__sections {
    width: 100%;
    order: 3;
    margin-top: 0;
  }
  .nb-single__sections .nb-accordion__item {
    margin-bottom: 10px;
  }
  .nb-single__related {
    margin-top: 24px;
  }
  .woocommerce div.product .nb-single__summary h1 {
    font-size: 24px;
    line-height: 1.25;
  }
  .nb-single__summary .price {
    font-size: 24px;
  }
  .nb-gallery__thumbs img {
    width: 80px;
  }
  .nb-accordion__summary {
    padding: 12px 14px;
    font-size: 16px;
  }
  .nb-accordion__panel {
    padding: 0 14px;
  }
  .nb-single__specs th,
  .nb-single__specs td {
    font-size: 14px;
    padding: 8px 10px;
  }
  .woocommerce div.product form.cart button.single_add_to_cart_button {
    font-size: 15px;
    padding: 10px 14px;
  }
  .nb-actions {
    gap: 8px;
    margin-top: 12px;
  }
  .products .product-card {
    border-radius: 12px;
  }
  .product-card__thumb,
  .product-card__thumb img {
    aspect-ratio: 4/3;
    object-fit: contain;
  }
  .product-card__body {
    margin-top: 8px;
    padding: 10px 12px;
  }
  .product-card__title a {
    font-size: 16px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .product-card__brand,
  .product-card__category {
    display: block;
    color: #404040;
  }
  .product-card__category {
    font-size: 12px;
    margin-bottom: 6px;
  }
  .product-card__brand {
    font-size: 12px;
    margin: 0 0 4px 0;
  }
  .product-card__info {
    gap: 6px;
    flex-direction: column;
    align-items: flex-start;
  }
  .product-card__price {
    font-size: 16px;
    line-height: 1.3;
    margin-top: 0;
  }
  .nb-price__now {
    font-size: 18px;
    line-height: 1.3;
  }
  .socksy-fav-toggle,
  .socksy-compare-toggle {
    width: 34px;
    height: 34px;
    top: 8px;
  }
  .socksy-compare-toggle {
    right: 50px;
  }
  .product-card__color-switcher {
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
  }
  .product-card__color-swatch.socksy-swatch.socksy-swatch--color {
    width: 24px;
    height: 24px;
  }
  .product-card__actions {
    margin-top: 8px;
  }
  .woocommerce ul.products li.product .button.add_to_cart_button {
    font-size: 13px;
    padding: 7px 10px;
  }
}

@media (max-width: 600px) {
  .product-card__title a {
    font-size: 15px;
  }
  .product-card__price {
    font-size: 15px;
  }
  .nb-price__now {
    font-size: 16px;
  }
  .socksy-compare-toggle {
    right: 46px;
  }
  .product-card__color-swatch.socksy-swatch.socksy-swatch--color {
    width: 22px;
    height: 22px;
  }
  .woocommerce ul.products li.product .button.add_to_cart_button {
    font-size: 12px;
    padding: 6px 10px;
  }
}

@media (max-width: 480px) {
  .product-card__title a {
    font-size: 14px;
  }
  .product-card__price,
  .nb-price__now {
    font-size: 14px;
  }
  main .products.columns-4,
  main .products.columns-3 {
    gap: 8px;
    width: 96%;
  }
}

/* Compare floating bar */
#socksy-compare-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  z-index: 1000;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  border-radius: 16px;
  display: none;
  max-width: 90%;
  width: 60%;
}
#socksy-compare-bar .inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  font-family: "DM Sans", sans-serif;
}
#socksy-compare-bar .items {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px;
}
#socksy-compare-bar .items .chip {
  position: relative;
  display: inline-grid;
  grid-template-columns: 40px 1fr;
  gap: 8px;
  align-items: center;
  color: #000;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 6px 8px;
  background: #fafafa;
}
#socksy-compare-bar .items .chip .link {
  text-decoration: none;
  color: inherit;
  display: contents;
}
#socksy-compare-bar .items .chip .remove {
  position: absolute;
  top: -8px;
  right: 0px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
  color: #000;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
#socksy-compare-bar .items .chip:hover .remove {
  display: inline-flex;
}
#socksy-compare-bar .items .thumb img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #eee;
}
#socksy-compare-bar .items .name {
  font-size: 14px;
  font-weight: 600;
}
#socksy-compare-bar .items .price {
  display: block;
  font-size: 13px;
  color: #404040;
}
#socksy-compare-bar .actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
#socksy-compare-bar .count {
  color: #000;
  font-weight: 600;
}
#socksy-compare-bar .go {
  background: #0b3a4f;
  color: #fff;
  border: 1px solid #0b3a4f;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}
#socksy-compare-bar .clear {
  background: #fff;
  color: #000;
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}

.woocommerce ul.products li.product .button.add_to_cart_button {
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%; /* 24px */
  background-color: #000;
  border-radius: 30px;
  border: 0.5px solid #000;
  padding: 10px 16px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

.wp-block-woocommerce-cart {
  width: 100%;
  box-sizing: border-box;
  background: #e1e1e1;
}

div.wc-block-cart {
  width: 90%;
  box-sizing: border-box;
  margin: 0 auto;
  max-width: 1440px;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
}

/* My Account base layout */
.woocommerce-account .woocommerce {
  max-width: 1440px;
  width: 90%;
  margin: 20px auto 40px auto;
  font-family: "DM Sans", sans-serif;
}
.woocommerce-account .woocommerce-MyAccount-navigation {
  float: none;
  width: 100%;
  margin-bottom: 14px;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.woocommerce-account .woocommerce-MyAccount-navigation li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  background: #f7f7f7;
  text-decoration: none;
  color: #0a344c;
  font-weight: 600;
}
.woocommerce-account
  .woocommerce-MyAccount-navigation
  li.has-favorites
  a::after {
  content: "!";
  display: inline-block;
  margin-left: 6px;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  font-size: 12px;
  color: #fff;
  background: #d05d38;
  border-radius: 999px;
}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
  background: #fae1b6;
  border-color: #faa856;
}
.woocommerce-account .woocommerce-MyAccount-content {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  padding: 16px;
  float: none;
  width: auto;
}

/* Favorites grid within My Account */
.woocommerce-account .nb-favorites ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 900px) {
  .woocommerce-account .nb-favorites ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .woocommerce-account .nb-favorites ul.products {
    grid-template-columns: 1fr;
  }
}

/* Login/Register forms */
.woocommerce-form-login,
.woocommerce-form-register {
  max-width: 560px;
  width: 100%;
  margin: 20px auto;
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  padding: 16px;
}
.woocommerce-form-login input.input-text,
.woocommerce-form-register input.input-text,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
}
.woocommerce form .form-row {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button {
  border-radius: 999px;
  background: #faa856;
  border: 1px solid #faa856;
  color: #000;
  padding: 10px 16px;
  font-weight: 600;
}
.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce input.button:hover {
  background: #fae1b6;
  border-color: #faa856;
  color: #000;
}

/* Notices inside account/login */
.woocommerce .woocommerce-error,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-message {
  border-radius: 8px;
}

/* Footer moved to style.css */

/* =====================
   Checkout Styles
   ===================== */
body.woocommerce-checkout .woocommerce {
  max-width: 1440px;
  width: 90%;
  margin: 20px auto 40px auto;
  font-family: "DM Sans", sans-serif;
}

/* Two-column layout */
body.woocommerce-checkout form.checkout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 1000px) {
  body.woocommerce-checkout form.checkout {
    grid-template-columns: 1fr;
  }
}

/* Billing/Shipping box */
body.woocommerce-checkout .woocommerce-billing-fields,
body.woocommerce-checkout .woocommerce-shipping-fields,
body.woocommerce-checkout .checkout .col2-set,
body.woocommerce-checkout .woocommerce-additional-fields {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  padding: 16px;
}
body.woocommerce-checkout .woocommerce-billing-fields h3,
body.woocommerce-checkout .woocommerce-shipping-fields h3,
body.woocommerce-checkout .woocommerce-additional-fields h3 {
  margin: 0 0 10px;
  font: 700 22px/1.2 "DM Sans";
  color: #000;
}

/* Fields */
body.woocommerce-checkout .woocommerce form .form-row {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}
body.woocommerce-checkout .woocommerce form .form-row label {
  font: 600 13px/1.2 "DM Sans";
  color: #0a344c;
}
body.woocommerce-checkout .woocommerce form .form-row input.input-text,
body.woocommerce-checkout .woocommerce form .form-row textarea,
body.woocommerce-checkout .woocommerce form .form-row select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  font: 400 14px/1.4 "DM Sans", sans-serif;
  background: #fff;
}
body.woocommerce-checkout .select2-container .select2-selection--single {
  height: auto;
  min-height: 40px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
}
body.woocommerce-checkout .select2-container .select2-selection__rendered {
  line-height: 40px;
}
body.woocommerce-checkout .select2-container .select2-selection__arrow {
  height: 40px;
}

/* Order review */
body.woocommerce-checkout #order_review,
body.woocommerce-checkout #order_review_heading {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
body.woocommerce-checkout #order_review_heading {
  margin: 0 0 10px;
  padding: 12px 16px;
  font: 700 22px/1.2 "DM Sans";
}
body.woocommerce-checkout #order_review {
  padding: 16px;
}
body.woocommerce-checkout #order_review table.shop_table {
  width: 100%;
  border-collapse: collapse;
}
body.woocommerce-checkout #order_review table.shop_table th,
body.woocommerce-checkout #order_review table.shop_table td {
  padding: 10px 8px;
  border-bottom: 1px solid #f0f0f0;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
}
body.woocommerce-checkout #order_review .order-total th,
body.woocommerce-checkout #order_review .order-total td {
  font-weight: 700;
}

/* Payment */
body.woocommerce-checkout #payment {
  background: #fafafa;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  padding: 10px;
}
body.woocommerce-checkout #payment ul.payment_methods {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
}
body.woocommerce-checkout #payment ul.payment_methods li {
  margin: 0;
  padding: 8px 6px;
  border-bottom: 1px solid #eee;
}
body.woocommerce-checkout #payment ul.payment_methods li:last-child {
  border-bottom: 0;
}
body.woocommerce-checkout #place_order,
body.woocommerce-checkout .woocommerce button.button.alt {
  background: #0b3a4f;
  color: #fff;
  border: 1px solid #0b3a4f;
  border-radius: 999px;
  padding: 10px 16px;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  font: 600 14px/1 "DM Sans";
}
body.woocommerce-checkout .woocommerce button.button.alt:hover,
body.woocommerce-checkout #place_order:hover {
  filter: brightness(1.05);
}

/* Notices at top (login/coupon) */
body.woocommerce-checkout .woocommerce-info,
body.woocommerce-checkout .woocommerce-error,
body.woocommerce-checkout .woocommerce-message {
  border-radius: 10px;
  font-family: "DM Sans", sans-serif;
}

/* Installment (part-pay) visuals */
.nb-installment {
  display: grid;
  gap: 6px;
  margin: 4px 0 10px;
}
.nb-installment__row {
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
}
.nb-installment__price {
  font: 800 32px/1.1 "DM Sans";
  color: #000;
}
.nb-installment__monthly {
  font: 700 18px/1.2 "DM Sans";
  color: #0a344c;
}
.nb-installment__note {
  font: 400 12px/1.2 "DM Sans";
  color: #6b6b6b;
}
.nb-installment__term {
  font: 400 12px/1.2 "DM Sans";
  color: #6b6b6b;
}

/* Tame installment block inside product cards (archive grid) */
.products .nb-installment {
  gap: 4px;
}
.products .nb-installment__price {
  font: 700 22px/1.2 "DM Sans";
}
.products .nb-installment__monthly {
  font: 600 14px/1.2 "DM Sans";
}
.products .nb-installment__term {
  font: 400 11px/1.2 "DM Sans";
}

@media (max-width: 900px) {
  .products .nb-installment__price {
    font-size: 18px;
  }
  .products .nb-installment__monthly {
    font-size: 13px;
  }
  .products .nb-installment__term {
    font-size: 10px;
  }
}
@media (max-width: 600px) {
  .products .nb-installment__price {
    font-size: 16px;
  }
  .products .nb-installment__monthly {
    font-size: 12px;
  }
  .products .nb-installment__term {
    font-size: 10px;
  }
}
@media (max-width: 480px) {
  .products .nb-installment__price {
    font-size: 14px;
  }
}

/* Räkneexempel trigger */
.nb-installment__example {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: #0a344c;
  font: 600 12px/1.2 "DM Sans";
  text-decoration: underline;
  cursor: pointer;
}
.nb-installment__example:hover {
  filter: brightness(1.1);
}
.nb-installment__example-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #0a344c;
  color: #fff;
  font: 700 11px/1 "DM Sans";
}

/* Modal base */
.nb-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
}
.nb-modal[aria-hidden="false"] {
  display: block;
}
.nb-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.nb-modal__dialog {
  position: relative;
  margin: 10vh auto;
  max-width: 680px;
  width: calc(100% - 24px);
  background: #fff;
  border-radius: 12px;
  padding: 18px 18px 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  outline: 0;
}
.nb-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 0;
  background: transparent;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font: 700 20px/1 "DM Sans";
  color: #0a344c;
  cursor: pointer;
}
.nb-modal__close:hover {
  background: rgba(10, 52, 76, 0.06);
}
.nb-modal__dialog h3 {
  margin: 0 0 8px;
  font: 700 20px/1.2 "DM Sans";
  color: #0a344c;
}
.nb-modal__body {
  font: 400 14px/1.5 "DM Sans", sans-serif;
  color: #222;
}
.nb-modal__disclaimer {
  margin-top: 10px;
  font: 400 12px/1.4 "DM Sans", sans-serif;
  color: #6b6b6b;
}
.nb-modal__loan {
  margin-top: 12px;
}

/* === Checkout: layout & typography enhancements === */
body.woocommerce-checkout {
  font-family: "DM Sans", sans-serif;
  color: #0a344c;
}
body.woocommerce-checkout .col2-set {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 920px) {
  body.woocommerce-checkout .col2-set {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}
body.woocommerce-checkout .woocommerce-billing-fields > h3,
body.woocommerce-checkout .woocommerce-additional-fields > h3,
body.woocommerce-checkout .woocommerce-shipping-fields > h3 {
  font: 700 18px/1.25 "DM Sans";
  color: #0a344c;
  margin: 6px 0 8px;
}

/* Fields: focus, help and errors */
body.woocommerce-checkout .woocommerce form .form-row .optional {
  color: #9aa9b2;
  font-weight: 500;
}
body.woocommerce-checkout .woocommerce form .form-row .description {
  margin-top: 6px;
  font: 400 12px/1.3 "DM Sans";
  color: #6b6b6b;
}
body.woocommerce-checkout .woocommerce form .form-row input.input-text:focus,
body.woocommerce-checkout .woocommerce form .form-row textarea:focus,
body.woocommerce-checkout .woocommerce form .form-row select:focus,
body.woocommerce-checkout
  .select2-container--default
  .select2-selection--single:focus {
  outline: none;
  border-color: #0a344c;
  box-shadow: 0 0 0 3px rgba(10, 52, 76, 0.12);
}
body.woocommerce-checkout .woocommerce-invalid input.input-text,
body.woocommerce-checkout .woocommerce-invalid textarea,
body.woocommerce-checkout .woocommerce-invalid select {
  border-color: #e74c3c;
}
body.woocommerce-checkout .woocommerce-NoticeGroup-checkout .woocommerce-error {
  border-left: 4px solid #e74c3c;
  background: #fff5f4;
}

/* Select2 */
body.woocommerce-checkout
  .select2-container--default
  .select2-selection--single {
  background: #fff;
}
body.woocommerce-checkout
  .select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  padding: 0 12px;
  color: #0a344c;
}
body.woocommerce-checkout
  .select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  right: 8px;
}

/* Coupon/login notices */
body.woocommerce-checkout .woocommerce-info,
body.woocommerce-checkout .woocommerce-message {
  background: #eef6fa;
  border-color: #b6d8ea;
  color: #0a344c;
}
body.woocommerce-checkout .checkout_coupon.woocommerce-form-coupon,
body.woocommerce-checkout form.login {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 10px;
  padding: 12px;
}
body.woocommerce-checkout .checkout_coupon.woocommerce-form-coupon p.form-row {
  margin: 0 0 8px;
}

/* Order review table */
body.woocommerce-checkout #order_review table.shop_table thead th {
  font: 700 13px/1.2 "DM Sans";
  color: #0a344c;
  background: #f7fbfd;
}
body.woocommerce-checkout #order_review table.shop_table .cart_item td {
  vertical-align: top;
}
body.woocommerce-checkout #order_review table.shop_table tfoot th,
body.woocommerce-checkout #order_review table.shop_table tfoot td {
  font-weight: 600;
}
body.woocommerce-checkout #order_review table.shop_table tfoot .order-total th,
body.woocommerce-checkout #order_review table.shop_table tfoot .order-total td {
  font-size: 16px;
  color: #0b3a4f;
}

/* Shipping & terms */
body.woocommerce-checkout .woocommerce-shipping-methods li,
body.woocommerce-checkout .wc_payment_methods li {
  margin: 6px 0;
}
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
  margin-top: 12px;
  font-size: 13px;
  color: #425a68;
}
body.woocommerce-checkout .woocommerce-privacy-policy-text {
  margin: 8px 0;
  font-size: 12px;
  color: #6b6b6b;
}

/* Payment box */
body.woocommerce-checkout #payment .wc_payment_methods {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  padding: 10px;
}
body.woocommerce-checkout #payment .payment_box {
  background: #f8fafb;
  border-radius: 8px;
  border: 1px solid #e9eef1;
  color: #425a68;
}

/* Page container width on Woo pages (checkout-specific here) */
body.woocommerce-checkout .container {
  width: 90%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
body.woocommerce-checkout .button,
body.woocommerce-checkout button,
body.woocommerce-checkout .woocommerce a.button {
  border-radius: 999px;
  font: 600 14px/1 "DM Sans";
}
body.woocommerce-checkout .button:hover,
body.woocommerce-checkout button:hover,
body.woocommerce-checkout .woocommerce a.button:hover {
  filter: brightness(1.06);
}

/* Review order container harmonization */
@media (min-width: 920px) {
  body.woocommerce-checkout #order_review {
    position: sticky;
    top: 90px;
  }
}

html.nb-modal-open,
body.nb-modal-open {
  overflow: hidden;
}
