/* ============================================================
   ERW ESSENTIALS — WOOCOMMERCE SHOP
============================================================ */
.erw-shop {
    background: var(--erw-page-bg);
    color: var(--erw-navy-dark);
}
.erw-shop__header {
    padding: 0;
    background: var(--erw-navy-mid);
}
.erw-shop__layout {
    position: relative;
    max-width: var(--erw-wide-container);
    margin: 0 auto;
    padding: 0 28px;
}
.erw-shop__header-inner {
    width: min(100%, var(--erw-wide-container));
    margin: 0 auto;
    padding: 48px 28px;
    border-radius: 0;
    background: var(--erw-navy-mid);
    text-align: left;
}

.erw-shop__eyebrow {
    display: inline-block;
    padding: 7px 12px;
    border-left: 3px solid var(--erw-gold);
    border-radius: 0 var(--erw-r-sm) var(--erw-r-sm) 0;
    background: rgba(245, 166, 35, 0.12);
    color: var(--erw-gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.erw-shop__header h1 {
    margin: 14px 0 0;
    color: var(--erw-white);
    font-size: clamp(32px, 3vw, 44px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.erw-shop__header p {
    max-width: 780px;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(15px, 1.3vw, 17px);
    line-height: 1.65;
}
.erw-shop__layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    align-items: start;
    gap: 28px;
    padding-top: 30px;
    padding-bottom: 82px;
}

/* Category sidebar */
.erw-shop__sidebar {
    position: sticky;
    top: 142px;
    max-height: calc(100vh - 164px);
    overflow-y: auto;
    padding: 0;
    border: 1px solid var(--erw-border);
    border-radius: var(--erw-r-lg);
    background: var(--erw-white);
    box-shadow: var(--erw-shadow-md);
}
.erw-shop__sidebar h2 {
    margin-bottom: 18px;
    color: var(--erw-navy-dark);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.3;
}
.erw-price-filter,
.erw-shop__category-filter { padding: 24px 20px; }
.erw-price-filter { border-bottom: 1px solid var(--erw-border); }
.erw-price-filter__inputs {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: end;
    gap: 9px;
}
.erw-price-filter__inputs > span {
    padding-bottom: 12px;
    color: var(--erw-muted);
    font-size: 12px;
}
.erw-price-filter__inputs label span {
    display: block;
    margin-bottom: 6px;
    color: var(--erw-muted);
    font-size: 11px;
    font-weight: 600;
}
.erw-price-filter__inputs input {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 8px 11px;
    border: 1px solid var(--erw-border);
    border-radius: var(--erw-r-md);
    background: var(--erw-white);
    color: var(--erw-navy-dark);
    font-family: var(--erw-font);
    font-size: 13px;
    font-weight: 700;
}
.erw-price-filter__inputs input:focus {
    border-color: var(--erw-gold);
    outline: 2px solid rgba(245,166,35,0.18);
}
.erw-price-filter__inputs input::-webkit-inner-spin-button,
.erw-price-filter__inputs input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.erw-price-filter__range {
    position: relative;
    height: 34px;
    margin: 18px 0 8px;
}
.erw-price-filter__track {
    position: absolute;
    top: 16px;
    right: 0;
    left: 0;
    height: 2px;
    background: var(--erw-border);
}
.erw-price-filter__track span {
    position: absolute;
    top: 0;
    right: calc(100% - var(--erw-range-end));
    left: var(--erw-range-start);
    height: 2px;
    background: var(--erw-gold);
}
.erw-price-filter__range input[type='range'] {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    height: 34px;
    margin: 0;
    appearance: none;
    background: transparent;
    pointer-events: none;
}
.erw-price-filter__range input[type='range']:last-child { z-index: 3; }
.erw-price-filter__range input[type='range']::-webkit-slider-runnable-track { height: 2px; background: transparent; }
.erw-price-filter__range input[type='range']::-webkit-slider-thumb {
    width: 15px;
    height: 15px;
    margin-top: -7px;
    appearance: none;
    border: 2px solid var(--erw-white);
    border-radius: 50%;
    background: var(--erw-navy-dark);
    box-shadow: 0 0 0 1px var(--erw-navy-dark);
    cursor: pointer;
    pointer-events: auto;
}
.erw-price-filter__range input[type='range']::-moz-range-track { height: 2px; background: transparent; }
.erw-price-filter__range input[type='range']::-moz-range-thumb {
    width: 13px;
    height: 13px;
    border: 2px solid var(--erw-white);
    border-radius: 50%;
    background: var(--erw-navy-dark);
    box-shadow: 0 0 0 1px var(--erw-navy-dark);
    cursor: pointer;
    pointer-events: auto;
}
.erw-price-filter__range input[type='range']:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(245,166,35,0.32); }
.erw-price-filter__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.erw-price-filter__footer p {
    margin: 0;
    color: var(--erw-muted);
    font-size: 11px;
    line-height: 1.5;
}
.erw-price-filter__footer .woocommerce-Price-amount { color: var(--erw-navy-dark); font-weight: 800; }
.erw-price-filter__footer button {
    min-height: 38px;
    padding: 9px 16px;
    border: 0;
    background: var(--erw-gold);
    color: var(--erw-navy-dark);
    font-family: var(--erw-font);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--erw-t-fast), color var(--erw-t-fast);
}
.erw-price-filter__footer button:hover,
.erw-price-filter__footer button:focus-visible { background: var(--erw-navy-mid); color: var(--erw-white); outline: none; }
.erw-shop-categories ul { margin: 0; padding: 0; list-style: none; }
.erw-shop-categories li { position: relative; margin: 0; }
.erw-shop-categories a {
    position: relative;
    display: block;
    padding: 9px 36px 9px 28px;
    border-radius: var(--erw-r-sm);
    color: var(--erw-muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    transition: background var(--erw-t-fast), color var(--erw-t-fast);
}
.erw-shop-categories a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 3px;
    width: 14px;
    height: 14px;
    border: 1px solid #b9c4d2;
    border-radius: 3px;
    transform: translateY(-50%);
}
.erw-shop-categories a:hover,
.erw-shop-categories a:focus-visible,
.erw-shop-categories .current-cat > a,
.erw-shop-categories__all.is-active {
    background: var(--erw-page-bg);
    color: var(--erw-gold-dark);
    outline: none;
}
.erw-shop-categories .current-cat > a::before,
.erw-shop-categories__all.is-active::before { border-color: var(--erw-gold); background: var(--erw-gold); box-shadow: inset 0 0 0 3px var(--erw-white); }
.erw-shop-categories__toggle {
    position: absolute;
    z-index: 2;
    top: 5px;
    right: 0;
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: var(--erw-muted);
    cursor: pointer;
}
.erw-shop-categories__toggle::before,
.erw-shop-categories__toggle::after {
    content: '';
    position: absolute;
    top: 13px;
    left: 9px;
    width: 10px;
    height: 1px;
    background: currentColor;
}
.erw-shop-categories__toggle::after { transform: rotate(90deg); transition: transform var(--erw-t-fast); }
.erw-shop-categories__toggle[aria-expanded='true']::after { transform: rotate(0); }
.erw-shop-categories__toggle:hover,
.erw-shop-categories__toggle:focus-visible { color: var(--erw-gold-dark); outline: none; }
.erw-shop-categories .children {
    margin: 2px 0 6px 15px;
    padding-left: 10px;
    border-left: 1px solid var(--erw-border);
}
.erw-shop-categories .children[hidden] { display: none; }
.erw-shop-categories .children a { padding-top: 7px; padding-bottom: 7px; font-size: 12px; font-weight: 600; }

/* Result toolbar */
.erw-shop__products { min-width: 0; }
.erw-shop__toolbar-shell {
    border-bottom: 1px solid var(--erw-border);
    background: var(--erw-white);
}
.erw-shop__toolbar {
    width: 100%;
    max-width: var(--erw-wide-container);
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin: 0 auto;
    padding: 14px 28px;
    background: var(--erw-white);
}
.erw-shop__toolbar-controls,
.erw-shop__sort-control,
.erw-shop__per-page,
.erw-shop__view-controls {
    display: flex;
    align-items: center;
}
.erw-shop__toolbar-controls { gap: 20px; }
.erw-shop__mobile-filter-toggle,
.erw-shop__filter-head,
.erw-shop__filter-backdrop { display: none; }
.erw-shop__sort-control,
.erw-shop__per-page { gap: 9px; }
.erw-shop__sort-control > span,
.erw-shop__per-page label {
    color: var(--erw-muted);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.erw-shop .woocommerce-result-count,
.erw-shop .woocommerce-ordering { float: none; margin: 0; }
.erw-shop .woocommerce-result-count { color: var(--erw-muted); font-size: 14px; font-weight: 600; }
.erw-shop .woocommerce-ordering select,
.erw-shop__per-page select {
    min-height: 42px;
    padding: 8px 36px 8px 14px;
    border: 1px solid var(--erw-border);
    border-radius: var(--erw-r-sm);
    background: var(--erw-white);
    color: var(--erw-navy-dark);
    font-family: var(--erw-font);
    font-size: 13px;
    font-weight: 600;
}
.erw-shop .woocommerce-ordering select { min-width: 190px; }
.erw-shop__per-page select { min-width: 112px; }
.erw-shop .woocommerce-ordering select:focus,
.erw-shop__per-page select:focus {
    border-color: var(--erw-gold);
    outline: 2px solid rgba(245,166,35,0.18);
}
.erw-shop__view-controls {
    gap: 7px;
    padding-left: 18px;
    border-left: 1px solid var(--erw-border);
}
.erw-shop__view-button {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--erw-border);
    border-radius: var(--erw-r-sm);
    background: var(--erw-white);
    color: var(--erw-muted);
    cursor: pointer;
    transition: background var(--erw-t-fast), border-color var(--erw-t-fast), color var(--erw-t-fast);
}
.erw-shop__view-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.erw-shop__view-button:hover,
.erw-shop__view-button:focus-visible,
.erw-shop__view-button.is-active {
    border-color: var(--erw-gold);
    background: rgba(245,166,35,0.12);
    color: var(--erw-gold-dark);
    outline: none;
}
.erw-shop__per-page noscript button {
    min-height: 42px;
    padding: 8px 14px;
    border: 0;
    background: var(--erw-gold);
    color: var(--erw-navy-dark);
    font: 800 10px/1 var(--erw-font);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Four-column product grid */
.erw-shop ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: 0 !important;
    padding: 0;
}
.erw-shop ul.products::before,
.erw-shop ul.products::after { display: none !important; }
.erw-shop ul.products li.product {
    position: relative;
    float: none !important;
    width: auto !important;
    min-width: 0;
    display: flex;
    flex-direction: column;
    margin: 0 !important;
    overflow: hidden;
    border: 1px solid var(--erw-border);
    border-radius: var(--erw-r-lg);
    background: var(--erw-white);
    box-shadow: none;
    transition: border-color var(--erw-t-base), box-shadow var(--erw-t-base), transform var(--erw-t-base);
}
.erw-shop ul.products li.product::after {
    content: '';
    position: absolute;
    z-index: 3;
    inset: 0;
    border: 1px solid transparent;
    border-radius: inherit;
    pointer-events: none;
    transition: border-color var(--erw-t-base);
}
.erw-shop ul.products li.product:hover,
.erw-shop ul.products li.product:focus-within {
    z-index: 2;
    border-color: var(--erw-gold);
    box-shadow: var(--erw-shadow-lg);
}
.erw-shop ul.products li.product:hover { transform: translateY(-3px); }
.erw-shop ul.products li.product:hover::after,
.erw-shop ul.products li.product:focus-within::after { border-color: var(--erw-gold); }
.erw-shop ul.products li.product > a.woocommerce-LoopProduct-link {
    display: flex;
    flex: 1;
    flex-direction: column;
    color: var(--erw-navy-dark);
}
.erw-shop ul.products li.product img {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0 0 16px !important;
    padding: 14px;
    object-fit: contain;
    background: var(--erw-white);
    transition: transform var(--erw-t-base);
}
.erw-shop ul.products li.product:hover img { transform: scale(1.045); }
.erw-shop ul.products li.product .woocommerce-loop-product__title {
    min-height: 4.2em;
    display: -webkit-box;
    margin: 0;
    padding: 0 17px !important;
    overflow: hidden;
    color: var(--erw-navy-dark);
    font-size: 14px !important;
    font-weight: 800;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}
.erw-shop ul.products li.product .star-rating { margin: 10px 17px 0; color: var(--erw-gold-dark); }
.erw-shop ul.products li.product .price {
    margin: auto 0 14px;
    padding: 12px 17px 0;
    color: var(--erw-gold-dark) !important;
    font-size: 17px !important;
    font-weight: 900 !important;
}
.erw-shop ul.products li.product .price del { color: var(--erw-tertiary); font-size: 12px; opacity: 1; }
.erw-shop ul.products li.product .price ins { text-decoration: none; }
.erw-shop ul.products li.product .button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 17px 17px !important;
    padding: 12px 14px;
    border: 2px solid var(--erw-border);
    border-radius: 0;
    background: var(--erw-white);
    color: var(--erw-navy-dark);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-align: center;
    text-transform: uppercase;
    transition: background var(--erw-t-fast), border-color var(--erw-t-fast), color var(--erw-t-fast);
}
.erw-shop ul.products li.product:hover .button,
.erw-shop ul.products li.product:focus-within .button,
.erw-shop ul.products li.product .button:hover {
    border-color: var(--erw-gold);
    background: var(--erw-gold);
    color: var(--erw-navy-dark);
}
.erw-shop ul.products li.product .button:focus-visible {
    outline: 3px solid rgba(245,166,35,0.4);
    outline-offset: 3px;
}

/* List view */
.erw-shop__products.is-list-view ul.products {
    grid-template-columns: 1fr !important;
    gap: 0;
    border-top: 1px solid var(--erw-border);
}
.erw-shop__products.is-list-view ul.products li.product {
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    grid-template-rows: 1fr;
    align-items: stretch;
    min-height: 300px;
    overflow: hidden;
    border: 0;
    border-bottom: 1px solid var(--erw-border);
    border-radius: 0;
    box-shadow: none;
}
.erw-shop__products.is-list-view ul.products li.product::after { display: none; }
.erw-shop__products.is-list-view ul.products li.product:hover,
.erw-shop__products.is-list-view ul.products li.product:focus-within {
    border-color: var(--erw-border);
    box-shadow: none;
    transform: none;
}
.erw-shop__products.is-list-view ul.products li.product > a.woocommerce-loop-product__link {
    grid-column: 1 / -1;
    grid-row: 1;
    display: grid !important;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    align-items: start;
    min-width: 0;
    height: 100%;
}
.erw-shop__products.is-list-view ul.products li.product img {
    width: 260px !important;
    max-width: 260px !important;
    height: 260px !important;
    grid-column: 1;
    grid-row: 1 / 4;
    align-self: center;
    margin: 0 !important;
    padding: 20px;
    aspect-ratio: auto;
    object-fit: contain;
}
.erw-shop__products.is-list-view ul.products li.product .woocommerce-loop-product__title {
    grid-column: 2;
    grid-row: 2;
    min-height: 0;
    margin: 0;
    padding: 8px 28px 0 !important;
    font-size: 16px !important;
    line-height: 1.45;
    -webkit-line-clamp: 3;
}
.erw-shop__products.is-list-view ul.products li.product .star-rating {
    grid-column: 2;
    grid-row: 3;
    margin: 12px 28px 0;
}
.erw-shop__products.is-list-view ul.products li.product .price {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    margin: 0;
    padding: 38px 28px 0;
    font-size: 20px !important;
}
.erw-shop__products.is-list-view ul.products li.product .button {
    z-index: 4;
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    justify-self: start;
    min-width: 132px;
    margin: 145px 28px 0 !important;
}
.erw-shop__products.is-list-view ul.products li.product:hover .button,
.erw-shop__products.is-list-view ul.products li.product:focus-within .button,
.erw-shop__products.is-list-view ul.products li.product .button:hover {
    border-color: var(--erw-gold);
    background: var(--erw-gold);
    color: var(--erw-navy-dark);
}

/* Numbered pagination */
.erw-shop__pagination {
    margin-top: 42px;
    padding-top: 28px;
    border-top: 1px solid var(--erw-border);
}
.erw-shop .woocommerce-pagination ul.page-numbers {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    border: 0;
}
.erw-shop .woocommerce-pagination ul.page-numbers li { margin: 0; border: 0; }
.erw-shop .woocommerce-pagination ul.page-numbers > li > a.page-numbers,
.erw-shop .woocommerce-pagination ul.page-numbers > li > span.page-numbers {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid var(--erw-border);
    border-radius: var(--erw-r-sm);
    background: var(--erw-white);
    color: var(--erw-navy-dark);
    font-size: 12px;
    font-weight: 800;
    transition: background var(--erw-t-fast), border-color var(--erw-t-fast), color var(--erw-t-fast);
}
.erw-shop .woocommerce-pagination ul.page-numbers > li > a.page-numbers:hover,
.erw-shop .woocommerce-pagination ul.page-numbers > li > a.page-numbers:focus-visible,
.erw-shop .woocommerce-pagination ul.page-numbers > li > span.page-numbers.current {
    border-color: var(--erw-gold);
    background: var(--erw-navy-mid);
    color: var(--erw-white);
    outline: none;
}
.erw-shop .woocommerce-pagination ul.page-numbers > li > span.page-numbers.dots {
    min-width: 28px;
    padding: 0 4px;
    border-color: transparent;
    background: transparent;
}
.erw-shop .woocommerce-info,
.erw-shop .woocommerce-message,
.erw-shop .woocommerce-error {
    margin-bottom: 22px;
    border-top-color: var(--erw-gold);
    background: var(--erw-white);
}

/* Dynamic recommendations shared by Shop and single-product pages */
.erw-recommendations {
    padding: 58px 28px 76px;
    border-top: 1px solid var(--erw-border);
    background: var(--erw-white);
    color: var(--erw-navy-dark);
}
.erw-recommendations__inner {
    width: 100%;
    max-width: var(--erw-wide-container);
    margin: 0 auto;
}
.erw-recommendations__header { margin-bottom: 28px; }
.erw-recommendations__header span {
    display: block;
    margin-bottom: 8px;
    color: var(--erw-gold-dark);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.erw-recommendations__header h2 {
    color: var(--erw-navy-dark);
    font-size: clamp(28px, 2.5vw, 38px);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.04em;
}
.erw-recommendations__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}
.erw-recommendation-card {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--erw-border);
    border-radius: var(--erw-r-lg);
    background: var(--erw-white);
    transition: border-color var(--erw-t-base), box-shadow var(--erw-t-base), transform var(--erw-t-base);
}
.erw-recommendation-card::after {
    content: '';
    position: absolute;
    z-index: 3;
    inset: 0;
    border: 1px solid transparent;
    border-radius: inherit;
    pointer-events: none;
    transition: border-color var(--erw-t-base);
}
.erw-recommendation-card:hover,
.erw-recommendation-card:focus-within {
    z-index: 2;
    border-color: var(--erw-gold);
    box-shadow: var(--erw-shadow-lg);
}
.erw-recommendation-card:hover { transform: translateY(-3px); }
.erw-recommendation-card:hover::after,
.erw-recommendation-card:focus-within::after { border-color: var(--erw-gold); }
.erw-recommendation-card__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--erw-white);
}
.erw-recommendation-card__image img {
    width: 100%;
    height: 100%;
    display: block;
    padding: 18px;
    object-fit: contain;
    object-position: center;
    transition: transform var(--erw-t-base);
}
.erw-recommendation-card:hover .erw-recommendation-card__image img { transform: scale(1.045); }
.erw-recommendation-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 17px 18px 18px;
}
.erw-recommendation-card__category {
    min-height: 14px;
    margin-bottom: 7px;
    overflow: hidden;
    color: var(--erw-gold-dark);
    font-size: 9px;
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: 0.1em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}
.erw-recommendation-card__category a { color: inherit; }
.erw-recommendation-card h3 {
    min-height: 61px;
    max-height: 61px;
    display: -webkit-box;
    overflow: hidden;
    color: var(--erw-navy-dark);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}
.erw-recommendation-card h3 a { color: inherit; transition: color var(--erw-t-fast); }
.erw-recommendation-card h3 a:hover { color: var(--erw-gold-dark); }
.erw-recommendation-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
}
.erw-recommendation-card__price {
    color: var(--erw-gold-dark);
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -0.025em;
}
.erw-recommendation-card__price del { color: var(--erw-tertiary); font-size: 11px; font-weight: 600; }
.erw-recommendation-card__price ins { text-decoration: none; }
.erw-recommendation-card__view {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex-shrink: 0;
    padding: 8px 13px;
    border: 2px solid var(--erw-border);
    color: var(--erw-navy-dark);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background var(--erw-t-fast), border-color var(--erw-t-fast), color var(--erw-t-fast), gap var(--erw-t-fast);
}
.erw-recommendation-card:hover .erw-recommendation-card__view,
.erw-recommendation-card:focus-within .erw-recommendation-card__view,
.erw-recommendation-card__view:hover {
    gap: 11px;
    border-color: var(--erw-gold);
    background: var(--erw-gold);
    color: var(--erw-navy-dark);
}
.erw-recommendation-card__view:focus-visible {
    outline: 3px solid rgba(245,166,35,0.4);
    outline-offset: 3px;
}

@media (max-width: 1180px) {
    .erw-shop__toolbar { flex-wrap: wrap; }
    .erw-shop__toolbar-controls { flex-wrap: wrap; margin-left: auto; }
    .erw-shop ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .erw-recommendations__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .erw-shop__layout { grid-template-columns: 250px minmax(0, 1fr); gap: 20px; }
    .erw-shop ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .erw-shop__products.is-list-view ul.products li.product { grid-template-columns: 190px minmax(0, 1fr); }
    .erw-shop__products.is-list-view ul.products li.product > a.woocommerce-loop-product__link { grid-template-columns: 190px minmax(0, 1fr); }
    .erw-shop__products.is-list-view ul.products li.product img { width: 190px !important; max-width: 190px !important; height: 190px !important; }
    .erw-shop__products.is-list-view ul.products li.product .button { min-width: 120px; margin: 140px 22px 0 !important; }
    .erw-recommendations__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .erw-shop__header { padding: 0; }
    .erw-shop__header-inner { padding: 34px 20px 30px; border-radius: 0; }
    .erw-shop__toolbar {
        min-height: 58px;
        padding: 0 20px;
    }
    .erw-shop__result-count,
    .erw-shop__per-page,
    .erw-shop__view-controls { display: none; }
    .erw-shop__toolbar-controls {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        margin-left: 0;
    }
    .erw-shop__mobile-filter-toggle {
        min-height: 58px;
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
        gap: 9px;
        border-right: 1px solid var(--erw-border);
        background: transparent;
        color: var(--erw-navy-dark);
        font-family: var(--erw-font);
        font-size: 14px;
        font-weight: 700;
    }
    .erw-shop__mobile-filter-toggle svg {
        width: 21px;
        height: 21px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
    .erw-shop__mobile-filter-toggle:hover,
    .erw-shop__mobile-filter-toggle:focus-visible {
        color: var(--erw-gold-dark);
        outline: none;
    }
    .erw-shop__sort-control {
        min-width: 0;
        justify-content: flex-end;
        gap: 6px;
        padding-left: 14px;
    }
    .erw-shop__sort-control > span { font-size: 12px; }
    .erw-shop__sort-control .woocommerce-ordering { min-width: 0; }
    .erw-shop .woocommerce-ordering select {
        width: 100%;
        min-width: 0;
        min-height: 58px;
        padding: 8px 28px 8px 0;
        border: 0;
        border-radius: 0;
        background-color: transparent;
        font-size: 13px;
        outline: none;
    }
    .erw-shop__layout { padding-right: 20px; padding-left: 20px; }
    .erw-shop__layout { grid-template-columns: 1fr; padding-top: 22px; padding-bottom: 60px; }
    .erw-shop__sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 1400;
        width: min(88vw, 370px);
        max-height: none;
        overflow-x: hidden;
        overflow-y: auto;
        border: 0;
        border-radius: 0;
        box-shadow: 18px 0 44px rgba(7,14,26,0.22);
        transform: translateX(-105%);
        transition: transform var(--erw-t-base);
        overscroll-behavior: contain;
    }
    .erw-shop__filter-head {
        position: sticky;
        top: 0;
        z-index: 2;
        min-height: 64px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
        border-bottom: 1px solid var(--erw-border);
        background: var(--erw-navy-dark);
        color: var(--erw-white);
    }
    .erw-shop__filter-head strong {
        font-size: 18px;
        font-weight: 800;
    }
    .erw-shop__filter-head button {
        width: 40px;
        height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(255,255,255,0.22);
        border-radius: 50%;
        background: transparent;
        color: var(--erw-white);
    }
    .erw-shop__filter-head svg {
        width: 19px;
        height: 19px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
    }
    .erw-shop__filter-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1390;
        background: rgba(7,14,26,0.58);
    }
    body.erw-shop-filter-open { overflow: hidden; }
    body.erw-shop-filter-open .erw-shop__sidebar { transform: translateX(0); }
    body.erw-shop-filter-open .erw-shop__filter-backdrop { display: block; }
    .erw-shop-categories > ul { columns: 1; }
    .erw-shop-categories li { break-inside: avoid; }
    .erw-shop ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .erw-shop ul.products li.product img {
        margin-bottom: 10px !important;
        padding: 8px;
    }
    .erw-shop ul.products li.product .woocommerce-loop-product__title {
        padding-right: 10px !important;
        padding-left: 10px !important;
        font-size: 12px !important;
    }
    .erw-shop ul.products li.product .price {
        margin-bottom: 10px;
        padding: 10px 10px 0;
        font-size: 15px !important;
    }
    .erw-shop ul.products li.product .button {
        min-height: 40px;
        margin: 0 10px 10px !important;
        padding: 9px 7px;
        font-size: 9px;
    }
    .erw-shop__products.is-list-view ul.products li.product {
        grid-template-columns: 130px minmax(0, 1fr);
        min-height: 0;
    }
    .erw-shop__products.is-list-view ul.products li.product > a.woocommerce-loop-product__link {
        grid-column: 1 / 3;
        grid-row: 1;
        grid-template-columns: 130px minmax(0, 1fr);
    }
    .erw-shop__products.is-list-view ul.products li.product img {
        width: 130px !important;
        max-width: 130px !important;
        height: 130px !important;
        padding: 12px;
    }
    .erw-shop__products.is-list-view ul.products li.product .woocommerce-loop-product__title {
        padding: 6px 18px 0 !important;
        font-size: 14px !important;
    }
    .erw-shop__products.is-list-view ul.products li.product .star-rating { margin: 10px 18px 0; }
    .erw-shop__products.is-list-view ul.products li.product .price { padding: 22px 18px 0; font-size: 17px !important; }
    .erw-shop__products.is-list-view ul.products li.product .button {
        grid-column: 2;
        grid-row: 2;
        justify-self: stretch;
        margin: 0 18px 18px !important;
    }
    .erw-recommendations { padding: 48px 20px 60px; }
    .erw-recommendations__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 520px) {
    .erw-shop__toolbar-controls {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }
    .erw-shop__sort-control { grid-column: auto; }
    .erw-shop__sort-control .woocommerce-ordering { flex: 1; }
    .erw-shop .woocommerce-ordering select { width: 100%; min-width: 0; }
    .erw-shop ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .erw-shop-categories > ul { columns: 1; }
    .erw-recommendations { padding: 42px 14px 54px; }
    .erw-recommendations__header { margin-bottom: 22px; }
    .erw-recommendations__header h2 { font-size: 28px; }
    .erw-recommendations__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .erw-recommendation-card__image img { padding: 8px; }
    .erw-recommendation-card__body { padding: 12px 10px 11px; }
    .erw-recommendation-card__category {
        margin-bottom: 5px;
        font-size: 8px;
    }
    .erw-recommendation-card h3 {
        min-height: 52px;
        max-height: 52px;
        font-size: 12px;
    }
    .erw-recommendation-card__footer {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
        padding-top: 11px;
    }
    .erw-recommendation-card__price { font-size: 15px; }
    .erw-recommendation-card__view {
        width: 100%;
        min-height: 36px;
        padding: 7px 6px;
        font-size: 9px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .erw-shop ul.products li.product,
    .erw-shop ul.products li.product img { transition: none; }
    .erw-shop ul.products li.product:hover { transform: none; }
    .erw-shop ul.products li.product:hover img { transform: none; }
    .erw-recommendation-card,
    .erw-recommendation-card__image img { transition: none; }
    .erw-recommendation-card:hover,
    .erw-recommendation-card:hover .erw-recommendation-card__image img { transform: none; }
}
