.cs-catalog-page {
    padding-bottom: 24px;
    background: #f5f7fb;
}

.cs-catalog-hero {
    position: relative;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    padding: 18px 0 18px;
    background:
        radial-gradient(circle at top left, rgba(34, 88, 180, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(16, 40, 88, 0.22), transparent 24%),
        linear-gradient(90deg, #08142d 0%, #10254b 48%, #08142d 100%);
}

.cs-catalog-hero .container {
    max-width: var(--wd-container-w);
    padding-inline: 15px;
}

.cs-catalog-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 600;
    font-size: 12px;
}

.cs-catalog-hero__eyebrow-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.95);
}

.cs-catalog-hero__eyebrow-icon svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
}

.cs-catalog-hero__title {
    margin-bottom: 10px;
    color: #fff;
    font-size: clamp(42px, 5vw, 58px);
    line-height: 1.02;
    text-align: center;
}

.cs-catalog-hero__text {
    max-width: 720px;
    margin-bottom: 0;
    margin-inline: auto;
    color: rgba(255, 255, 255, 0.86);
    font-size: 17px;
    text-align: center;
}

.cs-catalog-hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cs-catalog-layout {
    padding: 8px 0 48px;
}

.cs-catalog-layout__grid {
    display: grid;
    grid-template-columns: 294px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.cs-catalog-box,
.cs-catalog-sidebar__stats,
.cs-catalog-toolbar,
.cs-catalog-heading,
.cs-catalog-card {
    border: 1px solid #d9e1ec;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.cs-catalog-box {
    padding: 14px;
}

.cs-catalog-box__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #172746;
    font-size: 15px;
    font-weight: 700;
}

.cs-catalog-box__title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #172746;
}

.cs-catalog-box__title-icon svg {
    width: 18px;
    min-width: 18px;
    max-width: 18px;
    height: 18px;
    min-height: 18px;
    max-height: 18px;
    flex: 0 0 18px;
    display: block;
    stroke: currentColor;
    fill: none;
}

.cs-catalog-categories__all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: 10px;
    background-color: #e2e8f0;
    color: #334155;
    font-weight: 700;
    font-size: 13px;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.cs-catalog-categories__all.is-active {
    background: #0d1833;
    color: #fff;
}

.cs-catalog-categories__all::after {
    content: "";
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.8;
    visibility: hidden;
}

.cs-catalog-categories__all.is-active::after {
    visibility: visible;
}

.cs-catalog-categories__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cs-catalog-categories__item {
    position: relative;
    padding: 4px 2px;
    border-bottom: 0;
    margin-bottom: 0px;
}

.cs-catalog-categories__item:last-child {
    border-bottom: 0;
}

.cs-catalog-categories__row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cs-catalog-categories .cs-catalog-categories__toggle {
    position: relative;
    top: 0px;
    flex: 0 0 14px;
    width: 14px !important;
    min-width: 14px !important;
    max-width: 14px !important;
    height: 14px !important;
    min-height: 14px !important;
    max-height: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    appearance: none !important;
    color: #6d7c95;
    opacity: 0.92;
    cursor: pointer;
    line-height: 1 !important;
}

.cs-catalog-categories .cs-catalog-categories__toggle::before,
.cs-catalog-categories .cs-catalog-categories__toggle::after {
    display: none !important;
    content: none !important;
}

.cs-catalog-categories .cs-catalog-categories__toggle span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translate(-58%, -52%) rotate(-45deg);
    transition: transform 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.cs-catalog-categories__item.is-open > .cs-catalog-categories__row .cs-catalog-categories__toggle span {
    transform: translate(-50%, -62%) rotate(45deg);
}

.cs-catalog-categories__item:hover > .cs-catalog-categories__row .cs-catalog-categories__toggle,
.cs-catalog-categories__item.is-current-ancestor > .cs-catalog-categories__row .cs-catalog-categories__toggle,
.cs-catalog-categories__item.is-current > .cs-catalog-categories__row .cs-catalog-categories__toggle {
    color: #394a67;
    opacity: 1;
}

.cs-catalog-categories__item > .cs-catalog-categories__row > a {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-height: 32px;
    padding: 0.75rem 0.5rem;
    border-radius: 10px;
    background-color: transparent;
    color: #4a5a75;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.35;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.cs-catalog-categories__item.is-current > .cs-catalog-categories__row > a,
.cs-catalog-categories__item > .cs-catalog-categories__row > a.is-active {
    background: #0d1833;
    color: #fff;
    font-weight: 700;
}

.cs-catalog-categories__item.is-current > .cs-catalog-categories__row > a::after,
.cs-catalog-categories__item > .cs-catalog-categories__row > a.is-active::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0.9rem;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-50%);
}

.cs-catalog-categories__item.is-current-ancestor > .cs-catalog-categories__row > a {
    color: #253855;
    font-weight: 700;
}

.cs-catalog-categories__item.has-children > .cs-catalog-categories__list {
    display: none;
}

.cs-catalog-categories__item.is-open > .cs-catalog-categories__list {
    display: block;
}

.cs-catalog-categories__item > .cs-catalog-categories__list {
    position: relative;
    margin-top: 8px;
    margin-left: 8px;
    padding-left: 18px;
    margin-bottom: 2px;
}

.cs-catalog-categories__item > .cs-catalog-categories__list::before {
    content: "";
    position: absolute;
    top: 2px;
    bottom: 8px;
    left: 0;
    width: 1px;
    background: #dbe4ef;
}

.cs-catalog-categories__item > .cs-catalog-categories__list .cs-catalog-categories__item {
    padding-block: 6px;
}

.cs-catalog-categories__item > .cs-catalog-categories__list .cs-catalog-categories__row {
    gap: 6px;
}

.cs-catalog-categories__item > .cs-catalog-categories__list .cs-catalog-categories__toggle {
    top: 0;
}

.cs-catalog-categories__item > .cs-catalog-categories__list .cs-catalog-categories__row > a {
    font-size: 11px;
    line-height: 1.45;
}

.cs-catalog-sidebar__stats {
    display: grid;
    gap: 12px;
    margin-top: 14px;
    padding: 14px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, #132648 0%, #243a5f 100%);
    box-shadow: 0 18px 30px rgba(16, 30, 56, 0.16);
}

.cs-catalog-stat__value {
    font-weight: 800;
    color: #fff;
    font-size: 18px;
}

.cs-catalog-stat__head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cs-catalog-stat__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.92);
}

.cs-catalog-stat__icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
}

.cs-catalog-stat__label {
    color: rgba(255, 255, 255, 0.82);
    font-size: 11px;
}

.cs-catalog-stat + .cs-catalog-stat {
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.cs-catalog-toolbar {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
}

.cs-catalog-toolbar__search {
    flex: 1 1 auto;
}

.cs-catalog-toolbar__search input,
.cs-catalog-toolbar__filters select {
    min-height: 40px;
    border: 1px solid #d9e2ef;
    border-radius: 8px;
    background: #f8fbff;
    font-size: 13px;
}

.cs-catalog-toolbar__filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
}

.cs-catalog-toolbar__view {
    display: inline-flex;
    gap: 6px;
    padding: 4px;
    border: 1px solid #d9e2ef;
    border-radius: 10px;
    background: #f8fbff;
}

.cs-catalog-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

.cs-catalog-view-btn.is-active {
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.cs-catalog-view-btn__grid,
.cs-catalog-view-btn__list {
    position: relative;
    display: block;
    width: 16px;
    height: 16px;
}

.cs-catalog-view-btn__grid::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(#22314f, #22314f) left top / 6px 6px no-repeat,
        linear-gradient(#22314f, #22314f) right top / 6px 6px no-repeat,
        linear-gradient(#22314f, #22314f) left bottom / 6px 6px no-repeat,
        linear-gradient(#22314f, #22314f) right bottom / 6px 6px no-repeat;
}

.cs-catalog-view-btn__list::before {
    content: "";
    position: absolute;
    inset: 1px 0;
    background:
        linear-gradient(#22314f, #22314f) 0 1px / 16px 2px no-repeat,
        linear-gradient(#22314f, #22314f) 0 7px / 16px 2px no-repeat,
        linear-gradient(#22314f, #22314f) 0 13px / 16px 2px no-repeat;
}

.cs-catalog-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.cs-catalog-heading h3 {
    margin-bottom: 0;
    color: #172746;
    font-size: 14px;
    font-weight: 700;
}

.cs-catalog-heading span {
    color: #7b8aa4;
    font-size: 11px;
}

.cs-catalog-products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.cs-catalog-products.is-list {
    grid-template-columns: 1fr;
}

.cs-catalog-products.is-list .cs-catalog-card {
    display: grid;
    grid-template-columns: 134px minmax(0, 1fr);
}

.cs-catalog-products.is-list .cs-catalog-card__media {
    aspect-ratio: auto;
    min-height: 134px;
}

.cs-catalog-products.is-list .cs-catalog-card__body {
    align-content: center;
}

.cs-catalog-products.is-list .cs-catalog-card__excerpt {
    display: block;
    color: #70809b;
    font-size: 11px;
    line-height: 1.5;
}

.cs-catalog-card {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: none;
}

.cs-catalog-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 0.78;
    overflow: hidden;
    background: #eef2f6;
}

.cs-catalog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.cs-catalog-card:hover .cs-catalog-card__media img {
    transform: scale(1.04);
}

.cs-catalog-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    padding: 3px 8px;
    border-radius: 999px;
    background: #2fc65d;
    color: #fff;
    font-weight: 700;
    font-size: 10px;
}

.cs-catalog-card__badge.is-muted {
    background: #95a2b7;
}

.cs-catalog-card__placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #f5f5f5 0%, #ececec 100%);
}

.cs-catalog-card__placeholder span {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 42px;
    height: 42px;
    border: 4px solid #c5d0dc;
    border-radius: 10px;
    transform: translate(-50%, -50%);
}

.cs-catalog-card__placeholder span::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 8px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 18px solid #c5d0dc;
    transform: translateX(-50%);
}

.cs-catalog-card__placeholder span::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 4px;
    height: 9px;
    background: #c5d0dc;
    transform: translateX(-50%);
}

.cs-catalog-card__body {
    display: grid;
    gap: 8px;
    padding: 10px;
}

.cs-catalog-card__title {
    margin-bottom: 0;
    color: #172746;
    font-size: 12px;
    line-height: 1.25;
}

.cs-catalog-card__title a {
    color: inherit;
}

.cs-catalog-card__excerpt {
    display: none;
}

.cs-catalog-card__footer {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid #e7edf5;
}

.cs-catalog-card__price {
    color: #172746;
    font-weight: 800;
    font-size: 12px;
    width: 50%;
}

.cs-catalog-card__actions .button,
.cs-catalog-card__actions .added_to_cart {
    min-height: 30px;
    padding-inline: 12px;
    border-radius: 6px;
    background: #0d1833;
    color: #fff;
    font-size: 10px;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: none;
}

.cs-catalog-pagination {
    margin-top: 24px;
}

.cs-catalog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
}

@media (max-width: 1199.98px) {
    .cs-catalog-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .cs-catalog-layout__grid {
        grid-template-columns: 1fr;
    }

    .cs-catalog-toolbar {
        flex-wrap: wrap;
    }
}

@media (max-width: 575.98px) {
    .cs-catalog-hero {
        left: 0;
        width: auto;
        margin-left: 0;
        padding-top: 34px;
    }

    .cs-catalog-products {
        grid-template-columns: 1fr;
    }

    .cs-catalog-products.is-list .cs-catalog-card {
        grid-template-columns: 1fr;
    }

    .cs-catalog-toolbar,
    .cs-catalog-heading,
    .cs-catalog-card__footer {
        display: grid;
    }
}

.cs-catalog-card {
    position: relative;
}

.cs-catalog-card__quick-view {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92);
    transition: all .2s ease;
    cursor: pointer;
}

.cs-catalog-card:hover .cs-catalog-card__quick-view,
.cs-catalog-card:focus-within .cs-catalog-card__quick-view {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.cs-catalog-card__quick-view span {
    position: relative;
    display: block;
    width: 18px;
    height: 18px;
}

.cs-catalog-card__quick-view span::before {
    content: "";
    position: absolute;
    inset: 3px 3px 0 0;
    border-top: 2px solid #273754;
    border-right: 2px solid #273754;
}

.cs-catalog-card__quick-view span::after {
    content: "";
    position: absolute;
    left: 2px;
    bottom: 2px;
    width: 10px;
    height: 10px;
    border: 2px solid #273754;
    border-radius: 4px;
}

.cs-catalog-products.is-list .cs-catalog-card__quick-view {
    left: 67px;
}

.cs-quick-view-popup {
    max-width: 860px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.cs-quick-view {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
}

.cs-quick-view__media {
    min-height: 360px;
    background: #eef2f6;
}

.cs-quick-view__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cs-quick-view__placeholder {
    position: relative;
    width: 100%;
    height: 100%;
}

.cs-quick-view__placeholder span {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 56px;
    height: 56px;
    border: 4px solid #c5d0dc;
    border-radius: 14px;
    transform: translate(-50%, -50%);
}

.cs-quick-view__placeholder span::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 10px;
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-bottom: 22px solid #c5d0dc;
    transform: translateX(-50%);
}

.cs-quick-view__placeholder span::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 5px;
    height: 11px;
    background: #c5d0dc;
    transform: translateX(-50%);
}

.cs-quick-view__content {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 26px;
}

.cs-quick-view__stock {
    display: inline-flex;
    width: fit-content;
    padding: 4px 10px;
    border-radius: 999px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.cs-quick-view__stock.is-instock {
    background: #2fc65d;
}

.cs-quick-view__stock.is-outofstock {
    background: #95a2b7;
}

.cs-quick-view__title {
    margin-bottom: 0;
    font-size: 28px;
    line-height: 1.1;
}

.cs-quick-view__title a {
    color: #15233f;
}

.cs-quick-view__price {
    color: #15233f;
    font-size: 28px;
    font-weight: 800;
}

.cs-quick-view__excerpt {
    color: #657792;
    line-height: 1.7;
}

.cs-quick-view__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.cs-quick-view__actions .button,
.cs-quick-view__actions .added_to_cart {
    min-height: 44px;
    border-radius: 8px;
    background: #0d1833;
    color: #fff;
}

.cs-quick-view__link {
    color: #0d1833;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .cs-quick-view {
        grid-template-columns: 1fr;
    }

    .cs-quick-view__media {
        min-height: 240px;
    }

    .cs-catalog-card__quick-view {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}
.cs-catalog-view-btn,
.cs-catalog-card__quick-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cs-catalog-view-btn svg,
.cs-catalog-card__quick-view svg {
  width: 18px;
  height: 18px;
  display: block;
  stroke: currentColor;
  fill: none;
}

.cs-catalog-view-btn svg.lucide,
.cs-catalog-card__quick-view svg.lucide,
.cs-catalog-box__title-icon svg.lucide,
.cs-catalog-hero__eyebrow-icon svg.lucide,
.cs-catalog-stat__icon svg.lucide {
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  flex: 0 0 18px !important;
  display: block !important;
}

.cs-catalog-view-btn {
  color: #7a8699;
}

.cs-catalog-view-btn.is-active,
.cs-catalog-view-btn:hover,
.cs-catalog-view-btn:focus-visible {
  color: #0f172a;
}

.cs-catalog-card,
.cs-catalog-card__media,
.cs-catalog-card > a:first-child {
  position: relative;
}

.cs-catalog-card__media::after,
.cs-catalog-card > a:first-child::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.08);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.cs-catalog-card__quick-view {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
  color: #0f172a;
  transform: translate(-50%, -50%) scale(0.92);
  opacity: 0;
  visibility: hidden;
  z-index: 8;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cs-catalog-card__quick-view:hover,
.cs-catalog-card__quick-view:focus-visible {
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.24);
  outline: none;
}

.cs-catalog-card:hover .cs-catalog-card__quick-view,
.cs-catalog-card:focus-within .cs-catalog-card__quick-view {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.cs-catalog-card:hover .cs-catalog-card__media::after,
.cs-catalog-card:hover > a:first-child::after,
.cs-catalog-card:focus-within .cs-catalog-card__media::after,
.cs-catalog-card:focus-within > a:first-child::after {
  opacity: 1;
}

@media (max-width: 767px) {
  .cs-catalog-card__quick-view {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* List view overrides */
.cs-catalog-products.is-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.cs-catalog-products.is-list .cs-catalog-card {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  min-height: 176px;
  overflow: hidden;
}

.cs-catalog-products.is-list .cs-catalog-card > a:first-child,
.cs-catalog-products.is-list .cs-catalog-card__media {
  width: 176px;
  min-width: 176px;
  max-width: 176px;
  min-height: 176px;
  height: 100%;
}

.cs-catalog-products.is-list .cs-catalog-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-catalog-products.is-list .cs-catalog-card > :last-child {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 20px;
}

.cs-catalog-products.is-list .cs-catalog-card__title,
.cs-catalog-products.is-list h4,
.cs-catalog-products.is-list .woocommerce-loop-product__title {
  margin: 0 0 10px;
}

.cs-catalog-products.is-list .cs-catalog-card__excerpt,
.cs-catalog-products.is-list .woocommerce-product-details__short-description,
.cs-catalog-products.is-list .cs-catalog-card p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 680px;
  margin: 0 0 18px;
}

.cs-catalog-products.is-list .cs-catalog-card__footer,
.cs-catalog-products.is-list .price {
  margin-top: auto;
}

.cs-catalog-products.is-list .cs-catalog-card__quick-view {
  top: 50%;
  left: 88px;
}

@media (max-width: 767px) {
  .cs-catalog-products.is-list .cs-catalog-card {
    grid-template-columns: 1fr;
  }

  .cs-catalog-products.is-list .cs-catalog-card > a:first-child,
  .cs-catalog-products.is-list .cs-catalog-card__media {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 220px;
  }

  .cs-catalog-products.is-list .cs-catalog-card__quick-view {
    left: 50%;
  }
}

/* Strong override for Woodmart archive list layout */
body.woodmart-archive-shop .cs-catalog-products.is-list > .cs-catalog-card {
  display: grid !important;
  grid-template-columns: 168px minmax(0, 1fr) !important;
  grid-auto-rows: 1fr;
  align-items: stretch !important;
  min-height: 168px !important;
}

body.woodmart-archive-shop .cs-catalog-products.is-list > .cs-catalog-card > .cs-catalog-card__media {
  display: block !important;
  width: 168px !important;
  min-width: 168px !important;
  max-width: 168px !important;
  height: 100% !important;
  min-height: 168px !important;
  align-self: stretch !important;
}

body.woodmart-archive-shop .cs-catalog-products.is-list > .cs-catalog-card > .cs-catalog-card__body {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 18px 20px !important;
}

body.woodmart-archive-shop .cs-catalog-products.is-list > .cs-catalog-card > .cs-catalog-card__body > .cs-catalog-card__excerpt {
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  margin: 0 0 14px !important;
  max-width: 760px !important;
}

body.woodmart-archive-shop .cs-catalog-products.is-list > .cs-catalog-card > .cs-catalog-card__body > .cs-catalog-card__footer {
  margin-top: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
}

body.woodmart-archive-shop .cs-catalog-products.is-list > .cs-catalog-card .cs-catalog-card__price,
body.woodmart-archive-shop .cs-catalog-products.is-list > .cs-catalog-card .cs-catalog-card__actions {
  flex: 0 0 auto !important;
}

body.woodmart-archive-shop .cs-catalog-products.is-list > .cs-catalog-card .cs-catalog-card__quick-view {
  top: 50% !important;
  left: 84px !important;
}

body.woodmart-archive-shop .cs-catalog-products.is-list > .cs-catalog-card .cs-catalog-card__media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

@media (max-width: 767px) {
  body.woodmart-archive-shop .cs-catalog-products.is-list > .cs-catalog-card {
    grid-template-columns: 1fr !important;
  }

  body.woodmart-archive-shop .cs-catalog-products.is-list > .cs-catalog-card > .cs-catalog-card__media {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 220px !important;
  }

  body.woodmart-archive-shop .cs-catalog-products.is-list > .cs-catalog-card .cs-catalog-card__quick-view {
    left: 50% !important;
  }
}

body.woodmart-archive-shop .cs-catalog-products.is-list > .cs-catalog-card {
  position: relative !important;
}

body.woodmart-archive-shop .cs-catalog-products.is-list > .cs-catalog-card > .cs-catalog-card__media {
  grid-column: 1 !important;
  grid-row: 1 !important;
}

body.woodmart-archive-shop .cs-catalog-products.is-list > .cs-catalog-card > .cs-catalog-card__body {
  grid-column: 2 !important;
  grid-row: 1 !important;
}

body.woodmart-archive-shop .cs-catalog-products.is-list > .cs-catalog-card > .cs-catalog-card__quick-view {
  position: absolute !important;
  grid-column: auto !important;
  grid-row: auto !important;
}

body.woodmart-archive-shop .cs-catalog-products.is-grid > .cs-catalog-card {
  position: relative !important;
}

body.woodmart-archive-shop .cs-catalog-products.is-grid > .cs-catalog-card > .cs-catalog-card__quick-view {
  position: absolute !important;
  top: 120px !important;
  left: 50% !important;
  transform: translate(-50%, -50%) scale(0.92) !important;
  z-index: 8 !important;
}

body.woodmart-archive-shop .cs-catalog-products.is-grid > .cs-catalog-card:hover > .cs-catalog-card__quick-view,
body.woodmart-archive-shop .cs-catalog-products.is-grid > .cs-catalog-card:focus-within > .cs-catalog-card__quick-view {
  transform: translate(-50%, -50%) scale(1) !important;
}

.mfp-wrap .cs-quick-view-popup {
  display: block !important;
  max-width: 960px !important;
  width: min(960px, calc(100vw - 64px)) !important;
  background: #ffffff !important;
  border-radius: 24px !important;
  overflow: hidden !important;
}

.mfp-wrap .cs-quick-view-header {
  display: flex !important;
  align-items: center !important;
  min-height: 68px !important;
  padding: 0 24px !important;
  border-bottom: 1px solid #dbe3ef !important;
}

.mfp-wrap .cs-quick-view-heading {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

.mfp-wrap .cs-quick-view-content {
  display: grid !important;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr) !important;
}

.mfp-wrap .cs-quick-view-media {
  position: relative !important;
  min-height: 380px !important;
  background: #eef2f7 !important;
  margin: 24px !important;
  border-radius: 16px !important;
  overflow: hidden !important;
}

.mfp-wrap .cs-quick-view-media a,
.mfp-wrap .cs-quick-view-media img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

.mfp-wrap .cs-quick-view-media img {
  object-fit: cover !important;
}

.mfp-wrap .cs-quick-view-badge {
  position: absolute !important;
  top: 16px !important;
  left: 16px !important;
  z-index: 2 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 34px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  background: #22c55e !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}

.mfp-wrap .cs-quick-view-badge::before {
  content: "" !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.92) !important;
}

.mfp-wrap .cs-quick-view-body {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  width: auto !important;
  min-width: 0 !important;
  padding: 32px 32px 32px 8px !important;
}

.mfp-wrap .cs-quick-view-title {
  margin: 0 0 12px !important;
  font-size: 18px !important;
  line-height: 1.3 !important;
  color: #4b5a73 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.02em !important;
}

.mfp-wrap .cs-quick-view-price {
  margin: 0 0 18px !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

.mfp-wrap .cs-quick-view-excerpt {
  margin: 0 0 22px !important;
  color: #64748b !important;
  line-height: 1.6 !important;
}

.mfp-wrap .cs-quick-view-actions {
  margin: auto 0 0 !important;
}

.mfp-wrap .cs-quick-view-actions .button,
.mfp-wrap .cs-quick-view-actions a.button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 220px !important;
  min-height: 50px !important;
  padding: 0 24px !important;
  border-radius: 14px !important;
  background: #0b1837 !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  text-transform: none !important;
  box-shadow: none !important;
}

.mfp-wrap .cs-quick-view-actions .wd-action-icon {
  margin-right: 10px !important;
}

.mfp-wrap .cs-quick-view-link a {
  color: #0f172a !important;
  font-weight: 600 !important;
}

.mfp-wrap .mfp-close {
  top: 16px !important;
  right: 18px !important;
  left: auto !important;
  width: 32px !important;
  height: 32px !important;
  line-height: 32px !important;
  background: transparent !important;
  color: #1f2937 !important;
  opacity: 1 !important;
}

@media (max-width: 767px) {
  .mfp-wrap .cs-quick-view-popup {
    width: min(100vw - 24px, 560px) !important;
  }

  .mfp-wrap .cs-quick-view-content {
    grid-template-columns: 1fr !important;
  }

  .mfp-wrap .cs-quick-view-media {
    min-height: 260px !important;
  }

  .mfp-wrap .cs-quick-view-body {
    padding: 8px 20px 24px !important;
  }

  .mfp-wrap .cs-quick-view-title {
    font-size: 26px !important;
    text-transform: none !important;
  }
}
/* Sidebar category active state */
.cs-catalog-sidebar .current-cat > a,
.cs-catalog-sidebar .current-product-cat > a,
.cs-catalog-sidebar .current-cat-parent > a,
.cs-catalog-sidebar .cs-catalog-categories .is-current,
.cs-catalog-sidebar .cs-catalog-categories .is-active,
.cs-catalog-sidebar .cs-catalog-categories a[aria-current="page"] {
  background: #0b1837 !important;
  color: #ffffff !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 22px rgba(11, 24, 55, 0.16) !important;
}

.cs-catalog-sidebar .current-cat > a *,
.cs-catalog-sidebar .current-product-cat > a *,
.cs-catalog-sidebar .current-cat-parent > a *,
.cs-catalog-sidebar .cs-catalog-categories .is-current *,
.cs-catalog-sidebar .cs-catalog-categories .is-active *,
.cs-catalog-sidebar .cs-catalog-categories a[aria-current="page"] * {
  color: inherit !important;
}

.cs-catalog-sidebar .cs-catalog-categories li:not(.current-cat):not(.current-product-cat):not(.current-cat-parent) > a,
.cs-catalog-sidebar .cs-catalog-categories a:not(.cs-catalog-categories__all):not([aria-current="page"]):not(.is-active):not(.is-current) {
  background: transparent !important;
  color: #42536d !important;
  box-shadow: none !important;
}

.cs-catalog-sidebar .cs-catalog-categories__all:not(.is-active) {
  background: #e2e8f0 !important;
  color: #334155 !important;
}

/* Grid card visual tuning */
body.woodmart-archive-shop .cs-catalog-products.is-grid > .cs-catalog-card {
  border: 1px solid #cfd9e6 !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease !important;
}

body.woodmart-archive-shop .cs-catalog-products.is-grid > .cs-catalog-card:hover,
body.woodmart-archive-shop .cs-catalog-products.is-grid > .cs-catalog-card:focus-within {
  border-color: #0f172a !important;
  box-shadow: 0 0 0 1px #0f172a !important;
  transform: translateY(-1px) !important;
}

body.woodmart-archive-shop .cs-catalog-products.is-grid > .cs-catalog-card > .cs-catalog-card__media {
  background: #eef2f7 !important;
}

body.woodmart-archive-shop .cs-catalog-products.is-grid > .cs-catalog-card:hover > .cs-catalog-card__media,
body.woodmart-archive-shop .cs-catalog-products.is-grid > .cs-catalog-card:focus-within > .cs-catalog-card__media {
  background: #d9dee5 !important;
}

body.woodmart-archive-shop .cs-catalog-card a.added_to_cart,
body.woodmart-archive-shop .cs-catalog-card a.added_to_cart.wc-forward,
body.woocommerce-page .cs-catalog-card a.added_to_cart,
body.woocommerce-page .cs-catalog-card a.added_to_cart.wc-forward {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* Catalog page alignment with source layout */
body.woocommerce-shop .wd-page-content.main-page-wrapper,
body.post-type-archive-product .wd-page-content.main-page-wrapper,
body.woodmart-archive-shop .wd-page-content.main-page-wrapper {
  background: #f5f7fb;
}

body.woocommerce-shop #main-content.wd-content-layout,
body.post-type-archive-product #main-content.wd-content-layout,
body.woodmart-archive-shop #main-content.wd-content-layout {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.cs-catalog-page {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  padding-bottom: 40px;
  background: #f5f7fb;
}

.cs-catalog-hero {
  padding: 48px 0;
}

.cs-catalog-layout {
  padding: 10px 0 56px;
}

.cs-catalog-box__title,
.cs-catalog-heading h3 {
  font-size: 18px;
  line-height: 1.3;
}

.cs-catalog-hero__eyebrow {
  gap: 10px;
  margin-bottom: 20px;
  padding: 8px 16px;
  font-size: 14px;
  line-height: 1.2;
}

.cs-catalog-hero__title {
  font-size: clamp(38px, 4.3vw, 48px);
  line-height: 1.06;
  font-weight: 700;
}

.cs-catalog-hero__text {
  max-width: 760px;
  font-size: 18px;
  line-height: 1.55;
}

.cs-catalog-layout__grid {
  gap: 20px;
}

.cs-catalog-box {
  padding: 16px;
}

.cs-catalog-categories__all {
  min-height: 38px;
  padding: 10px 14px;
  font-size: 15px;
  line-height: 1.2;
}

/* .cs-catalog-categories__item {
  padding: 8px 10px;
} */

.cs-catalog-categories__item > a {
  font-size: 14px;
  line-height: 1.45;
}

.cs-catalog-sidebar__stats {
  gap: 14px;
  padding: 16px;
}

.cs-catalog-stat__value {
  font-size: 24px;
  line-height: 1.1;
}

.cs-catalog-stat__label {
  font-size: 13px;
  line-height: 1.45;
}

.cs-catalog-toolbar {
  gap: 12px;
  padding: 12px;
}

.cs-catalog-toolbar__search input,
.cs-catalog-toolbar__filters select {
  min-height: 44px;
  font-size: 16px;
  line-height: 1.5;
}

.cs-catalog-toolbar__view {
  padding: 5px;
}

.cs-catalog-view-btn {
  width: 36px;
  height: 36px;
}

.cs-catalog-heading {
  margin-top: 14px;
}

.cs-catalog-heading span {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 400;
}

.cs-catalog-products {
  gap: 14px;
  margin-top: 12px;
}

.cs-catalog-card__body {
  gap: 10px;
  padding: 14px;
}

.cs-catalog-card__title {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
}

.cs-catalog-card__excerpt,
.cs-catalog-products.is-list .cs-catalog-card__excerpt {
  font-size: 14px;
  line-height: 1.55;
}

.cs-catalog-card__badge {
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1.1;
}

.cs-catalog-card__footer {
  gap: 12px;
  padding-top: 10px;
}

.cs-catalog-card__price {
  font-size: 21px;
  line-height: 1.1;
}

.cs-catalog-card__actions .button,
.cs-catalog-card__actions .added_to_cart {
  min-height: 38px;
  padding-inline: 16px;
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .cs-catalog-page {
    left: 0;
    width: auto;
    margin-left: 0;
  }

  .cs-catalog-hero__title {
    font-size: clamp(34px, 6vw, 42px);
  }
}

@media (max-width: 767px) {
  .cs-catalog-categories {
    position: relative;
  }

  .cs-catalog-categories__all {
    position: relative;
    padding-right: 38px;
  }

  .cs-catalog-categories__all::after {
    visibility: visible;
    width: 8px;
    height: 8px;
    border-radius: 0;
    background: transparent;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.18s ease;
  }

  .cs-catalog-categories.is-mobile-collapsed > .cs-catalog-categories__list {
    display: none;
  }

  .cs-catalog-categories.is-mobile-expanded > .cs-catalog-categories__all::after {
    transform: rotate(-135deg);
  }
}
