/*Вывод на главной категорий в соотношении 1к1*/
.category-default1 figure {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.category img {
    background: white;
}
/*********************************************/

/*Вывод на главной в товара в соотношении 1к1*/
.product-media img:first-child {
    object-fit: contain;
    aspect-ratio: 1 / 1;
}

.product-media img {
    padding: 10px;
}

/* Product card image swap on hover (if secondary image exists) */
.product-media.product-media-hover-swap > a {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.product-media.product-media-hover-swap .product-main-image,
.product-media.product-media-hover-swap .product-swap-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    box-sizing: border-box;
    transition: opacity 0.25s ease;
}
.product-media.product-media-hover-swap .product-swap-image {
    opacity: 0;
    pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
    .product:hover .product-media.product-media-hover-swap .product-main-image {
        opacity: 0;
    }
    .product:hover .product-media.product-media-hover-swap .product-swap-image {
        opacity: 1;
    }
}
/*********************************************/

/* Align service slider icons vertically center with their text */
/* .service-slider .icon-box-icon{
	margin: 1rem 1rem .2rem .2rem;
} */

.service-slider .owl-item:not(:last-child)::after {
    content: none !important;
}

.service-slider .icon-box-icon {
    color: #4f4f4f !important;
}

.hb_index .owl-stage {
    display: flex;
    align-items: center;
}

.hb_index .icon-box i::before {
    margin-left: 10px;
}

.hb_index .icon-box-content {
    padding-right: 10px;
}

/* Featured brands carousel */
.brands-wrapper {
    padding-top: 12px;
    padding-bottom: 12px;
}

.brands-wrapper .owl-carousel .owl-stage {
    display: flex;
    align-items: center;
}

.brands-wrapper figure {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 110px;
    margin: 0;
    padding: 12px 10px;
}

.brands-wrapper figure img {
    max-height: 60px;
    max-width: 180px;
    width: auto !important;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.72;
    transition:
        filter 0.2s ease,
        opacity 0.2s ease,
        transform 0.2s ease;
}

.brands-wrapper figure a:hover img,
.brands-wrapper figure a:focus-visible img {
    filter: grayscale(0);
    opacity: 1;
    transform: translateY(-2px);
}

/* Recently viewed carousel */
.recent-view-slider .owl-stage {
    display: flex;
    align-items: center;
}
.recent-view-slider .product {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e1e1e1;
    transition: border-color 0.2s ease;
}
.recent-view-slider .product:hover {
    border-color: var(--shop-primary);
}
.recent-view-slider .product .product-name {
    font-size: 1.2rem;
}
.recent-view-slider .product .product-name,
.recent-view-slider .product .product-name a {
    line-height: 1.2;
    min-height: 2.4em;
}
.recent-view-slider .product .product-price .price,
.recent-view-slider .product .product-price .new-price,
.recent-view-slider .product .product-price .old-price {
    font-size: 1.3rem;
}
.recent-view-slider .product .product-availability {
    font-size: 1.1rem;
}
@media (min-width: 992px) {
    .recent-view-slider .product .product-price {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
        line-height: 1.3;
        min-height: 4.2rem;
    }

    .recent-view-slider .product .product-price .old-price {
        order: -1;
        display: block;
        margin: 0;
    }

    .recent-view-slider .product .product-price .new-price,
    .recent-view-slider .product .product-price .price {
        display: block;
    }
}
@media (max-width: 767px) {
    .viewed-products-block {
        padding-bottom: 2.4rem;
    }

    .viewed-products-block .recent-view-slider {
        margin-bottom: 0 !important;
    }
}

/* Home store-about: tame oversized rich-text headings from admin content */
.store-about-description h1,
.store-about-description h2,
.store-about-description h3 {
    font-size: clamp(2rem, 2.8vw, 3rem);
    line-height: 1.35;
    margin: 0 0 1.2rem;
    font-weight: 600;
}

.store-about-description p {
    font-size: 1.5rem;
    line-height: 1.55;
    margin: 0 0 1.2rem;
}

.store-about-description strong {
    font-weight: 600;
}

@media (max-width: 767px) {
    .viewed-products-title {
        padding-left: 15px;
        padding-right: 15px;
    }

    .viewed-products-block .recent-view-slider {
        padding-left: 15px;
    }

    .store-about-description h1,
    .store-about-description h2,
    .store-about-description h3 {
        font-size: 2.2rem;
    }

    .store-about-description p {
        font-size: 1.45rem;
    }
}

.product-with-qty .btn-cart i {
    display: inline-block !important;
}

/* Compact icon-only cart button (used in viewed products) */
.product-with-qty .btn-cart.btn-cart-icon-only,
.btn-cart.btn-cart-icon-only {
    min-width: 3.5rem !important;
    max-width: 3.5rem !important;
    padding: 0.55rem !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc !important;
    height: 3.6rem !important;
}
.btn-cart.btn-cart-icon-only i {
    margin: 0 !important;
}

/* Full category catalog */
.catalog-directory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}
.catalog-directory-card {
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 1.8rem;
    background: #fff;
}
.catalog-directory-head {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    margin-bottom: 1.4rem;
}
.catalog-directory-media {
    width: 5.2rem;
    height: 5.2rem;
    flex: 0 0 5.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    border-radius: 8px;
    color: var(--shop-primary);
    background: #fff;
}
.catalog-directory-media img {
    width: 100%;
    height: 100%;
    padding: 0.6rem;
    object-fit: contain;
}
.catalog-directory-title-wrap {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.catalog-directory-title {
    color: #222;
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.25;
}
.catalog-tree {
    list-style: none;
    margin: 0;
    padding: 0;
}
.catalog-tree .catalog-tree {
    margin-top: 0.6rem;
    padding-left: 1.4rem;
}
.catalog-tree-item {
    margin-bottom: 0.6rem;
}
.catalog-tree-row {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}
.catalog-tree-row a {
    flex: 1;
    min-width: 0;
    color: #444;
    line-height: 1.35;
}
.catalog-tree-row a:hover,
.catalog-directory-title:hover {
    color: var(--shop-primary);
}
.catalog-tree-toggle {
    display: none;
    width: 2.8rem;
    height: 2.8rem;
    flex: 0 0 2.8rem;
    border: 0;
    background: transparent;
    color: #444;
    position: relative;
}
.catalog-tree-toggle::before,
.catalog-tree-toggle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.1rem;
    height: 0.2rem;
    background: currentColor;
    transform: translate(-50%, -50%);
}
.catalog-tree-toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
}
.is-open > .catalog-tree-row .catalog-tree-toggle::after,
.catalog-directory-card.is-open .catalog-root-toggle::after {
    display: none;
}
.catalog-tree-item.is-extra {
    display: none;
}
.catalog-directory-card.is-expanded > .catalog-directory-body > .catalog-tree > .catalog-tree-item.is-extra {
    display: list-item;
}
.catalog-show-all {
    margin-top: 0.6rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--shop-primary);
    font-weight: 600;
}
@media (max-width: 991px) {
    .catalog-directory-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .catalog-directory-card {
        padding: 1.4rem;
    }
    .catalog-directory-head {
        margin-bottom: 0;
    }
    .catalog-directory-body,
    .catalog-tree .catalog-tree {
        display: none;
    }
    .catalog-directory-card.is-open > .catalog-directory-body,
    .catalog-tree-item.is-open > .catalog-tree {
        display: block;
    }
    .catalog-directory-card.is-open > .catalog-directory-head {
        margin-bottom: 1.2rem;
    }
    .catalog-tree-toggle {
        display: inline-block;
    }
    .catalog-directory-title {
        font-size: 1.6rem;
    }
}
@media (max-width: 575px) {
    .catalog-directory-media {
        width: 4.4rem;
        height: 4.4rem;
        flex-basis: 4.4rem;
    }
}

/* Header contact and working-hours blocks */
.header-middle .header-contact-box,
.header-middle .header-working-hours {
    flex-shrink: 0;
}

.header-middle .header-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5.2rem;
    height: 5.2rem;
    margin-right: 1.2rem;
    border-radius: 1.2rem;
    background: color-mix(in srgb, var(--shop-primary) 8%, white);
    color: var(--shop-primary);
}

.header-middle .header-contact-icon i {
    margin: 0;
    font-size: 2.8rem;
}

.header-middle .header-contact-box .icon-box-title,
.header-middle .header-working-hours .icon-box-title {
    margin-bottom: 0.3rem;
    font-size: 1.3rem;
    line-height: 1.2;
}

.header-middle .header-contact-box p,
.header-middle .header-working-hours-value {
    margin: 0;
    color: #222;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.45;
}

.header-middle .header-contact-box p a,
.header-phone-more-list a {
    letter-spacing: 0.035em;
}

.header-middle .header-contact-box .icon-box-content {
    position: relative;
    min-width: 16.5rem;
}

.header-phone-more {
    position: relative;
    margin-top: 0.4rem;
}

.header-phone-more summary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--shop-primary);
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
    list-style: none;
    white-space: nowrap;
}

.header-phone-more summary::-webkit-details-marker {
    display: none;
}

.header-phone-more summary i {
    margin: 0;
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.header-phone-more[open] summary i {
    transform: rotate(180deg);
}

.header-phone-more-list {
    position: absolute;
    top: calc(100% + 0.8rem);
    left: -1.2rem;
    z-index: 1102;
    min-width: 20rem;
    padding: 1rem 1.2rem;
    border: 1px solid #e8edf4;
    border-radius: 1.2rem;
    background: #fff;
    box-shadow: 0 1rem 3rem rgba(31, 50, 81, 0.14);
}

.header-phone-more-list a {
    display: block;
    padding: 0.35rem 0;
    color: #222;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.45;
    white-space: nowrap;
}

.header-phone-more-list a:hover {
    color: var(--shop-primary);
}

.header-middle .header-working-hours-value {
    max-width: 18rem;
    white-space: pre-line;
}

.header-middle .divider.header-working-hours {
    height: 5.2rem;
    margin: 0 1.8rem 0 0;
}

@media (max-width: 1399px) {
    .header-middle .header-working-hours {
        display: none !important;
    }
}

.mini-cart-quantity-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1.2rem;
    white-space: nowrap;
}

.mini-cart-quantity.input-group {
    display: grid;
    flex: 0 0 10.8rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 10.8rem;
    height: 5rem;
    overflow: hidden;
    border: 1px solid #e1e1e1;
    border-radius: 1rem;
}

.mini-cart-quantity.input-group button,
.mini-cart-quantity.input-group .cart-quantity-input {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100%;
    min-height: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    background: #fff;
    color: #222;
    font-size: 1.7rem;
    line-height: 1;
    text-align: center;
    box-sizing: border-box;
}

.mini-cart-quantity.input-group button {
    font-size: 0;
}

.mini-cart-quantity.input-group button::before {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1;
    transform: translateY(-0.2rem);
}

.mini-cart-quantity.input-group .cart-quantity-minus::before {
    content: '\2212';
}

.mini-cart-quantity.input-group .cart-quantity-plus::before {
    content: '+';
}

.mini-cart-quantity.input-group .cart-quantity-input {
    margin: 0;
    padding-right: 0 !important;
    padding-left: 0 !important;
    font-size: 1.6rem;
    font-weight: 700;
    font-family: inherit;
    text-indent: 0;
    appearance: textfield;
}

.mini-cart-quantity.input-group button:hover,
.mini-cart-quantity.input-group button:focus {
    background: #f3f6fb;
    color: var(--shop-primary);
}

.mini-cart-quantity.input-group .cart-quantity-input::-webkit-inner-spin-button,
.mini-cart-quantity.input-group .cart-quantity-input::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
}

.mini-cart-quantity-row .mini-cart-price-separator {
    color: #999;
    font-size: 1.4rem;
}

.mini-cart-quantity-row .product-price {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.cart-dropdown.cart-offcanvas .product.product-cart {
    align-items: flex-start;
}

.cart-dropdown.cart-offcanvas .product.product-cart .product-detail {
    min-width: 0;
    padding-right: 2.8rem;
}

.cart-table .input-group .cart-quantity-minus,
.cart-table .input-group .cart-quantity-plus {
    display: inline-flex;
    flex: 0 0 3.8rem;
    align-items: center;
    justify-content: center;
    width: 3.8rem;
    height: 4.6rem;
    padding: 0;
    border: 1px solid #eee;
    background: #fff;
    color: #222;
    font-size: 1.6rem;
    line-height: 1;
}

.cart-table .product-quantity .input-group {
    display: inline-flex;
    width: 12rem;
    align-items: stretch;
}

.cart-table .product-quantity .input-group .cart-quantity-input {
    flex: 0 0 4.4rem;
    width: 4.4rem;
    height: 4.6rem;
    padding: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    text-align: center;
}

.cart-table .input-group .cart-quantity-minus {
    border-radius: 0.3rem 0 0 0.3rem;
}

.cart-table .input-group .cart-quantity-plus {
    border-radius: 0 0.3rem 0.3rem 0;
}

/* Compact category navigation on the storefront 404 page */
.error-categories {
    max-width: 108rem;
    margin-right: auto;
    margin-left: auto;
}

.error-category-card {
    display: flex;
    align-items: center;
    min-height: 9rem;
    padding: 0.8rem 1.4rem 0.8rem 0.8rem;
    border: 1px solid #e7eaf0;
    border-radius: 1.4rem;
    background: #fff;
    color: #222;
    text-align: left;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.error-category-card:hover {
    border-color: var(--shop-primary);
    color: var(--shop-primary);
    box-shadow: 0 0.8rem 2.4rem rgba(31, 50, 81, 0.09);
    transform: translateY(-2px);
}

.error-category-card__image {
    display: flex;
    flex: 0 0 7.2rem;
    align-items: center;
    justify-content: center;
    width: 7.2rem;
    height: 7.2rem;
    margin-right: 1.4rem;
    overflow: hidden;
    border-radius: 1rem;
    background: #f7f8fa;
}

.error-category-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.error-category-card__name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.error-category-card__arrow {
    flex: 0 0 auto;
    margin-left: 1rem;
    color: #9aa1ad;
    font-size: 1.2rem;
}

.error-category-card:hover .error-category-card__arrow {
    color: var(--shop-primary);
}

@media (max-width: 575px) {
    .error-category-card {
        min-height: 7.6rem;
    }

    .error-category-card__image {
        flex-basis: 6rem;
        width: 6rem;
        height: 6rem;
        margin-right: 1rem;
    }
}

.btn-product.btn-cart.disabled,
.btn-product.btn-cart[disabled],
.btn-product.btn-cart[aria-disabled="true"] {
    pointer-events: none;
    opacity: 0.5;
}

/* Product page (mobile tap): keep add-to-cart button in primary color, not sticky hover gray. */
.single-product .product-form .btn-cart:not(:disabled):hover,
.single-product .product-form .btn-cart:not(:disabled):focus,
.single-product .product-form .btn-cart:not(:disabled):active {
    background-color: var(--shop-primary);
    border-color: var(--shop-primary);
    color: #fff;
}

@media (max-width: 767px) {
    input.form-control,
    select.form-control,
    textarea.form-control,
    .product-form .quantity.form-control {
        font-size: 16px !important;
    }
}

.product-warehouse .warehouse-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.single-product .product-details .product-form.product-warehouse {
    display: block;
}

.single-product .product-details .product-form.product-warehouse > label {
    display: block;
    margin: 0 0 12px;
}

.single-product .product-details .product-form.product-warehouse .product-form-group {
    display: block;
    width: 100%;
}

.product-specs-list {
    margin: 0 auto;
    padding: 0;
    width: min(100%, 920px);
    border: 1px solid #e7e9ef;
    border-radius: 1.2rem;
    overflow: hidden;
    background: #fff;
}

#product-tab-additional > .mt-6 {
    display: flex;
    justify-content: center;
}

#product-tab-additional .product-specs-list {
    width: min(100%, 920px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.product-specs-list .product-specs-item {
    display: grid;
    grid-template-columns: minmax(190px, 320px) minmax(140px, 260px);
    justify-content: center;
    gap: 1.8rem;
    align-items: start;
    text-align: center;
    margin: 0;
    padding: 1.2rem 1.6rem;
    border-bottom: 1px solid #edf0f4;
}

.product-specs-list .product-specs-item:last-child {
    border-bottom: 0;
}

.product-specs-list .product-specs-item:nth-child(even) {
    background: #fafbfd;
}

.product-specs-list .product-specs-name {
    color: #5f6672;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

.product-specs-list .product-specs-value {
    color: #1f2430;
    line-height: 1.4;
    text-align: center;
    word-break: break-word;
}

@media (max-width: 767px) {
    #product-tab-additional > .mt-6 {
        display: block;
    }

    .product-specs-list {
        width: 100%;
    }

    .product-specs-list .product-specs-item {
        grid-template-columns: minmax(120px, 1fr) minmax(100px, 1fr);
        justify-content: center;
        gap: 1rem;
        padding: 1.1rem 1.2rem;
    }

    .product-specs-list .product-specs-name {
        text-align: left;
    }

    .product-specs-list .product-specs-value {
        text-align: right;
    }
}

.product-warehouse .warehouse-option {
    border: 1px solid #d9dde7;
    background: #fff;
    border-radius: 12px;
    padding: 10px 14px;
    min-width: 190px;
    text-align: left;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.product-warehouse .warehouse-option__name {
    display: block;
    font-size: 1.6rem;
    color: #222;
    font-weight: 600;
    line-height: 1.2;
}

.product-warehouse .warehouse-option__name small {
    font-size: 1.3rem;
    color: #7b7f87;
    font-weight: 400;
}

.product-warehouse .warehouse-option__meta {
    display: block;
    margin-top: 2px;
    font-size: 1.2rem;
    color: #6a7280;
}

.product-warehouse .warehouse-option.is-active {
    border-color: var(--shop-primary);
    box-shadow: 0 0 0 2px rgba(70, 106, 184, 0.15);
    background-color: #f7faff;
}

.product-warehouse .warehouse-option[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

.single-product .product-min-order-notice {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: auto;
    margin: 0 0 20px;
    padding: 10px 14px;
    border: 1px solid #e2e7f0;
    border-radius: 10px;
    background: #f7f9fc;
    color: #5f6672;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.single-product .product-min-order-notice i {
    flex: 0 0 auto;
    color: var(--shop-primary);
    font-size: 18px;
}

.single-product .product-page-summary .product-form.product-warehouse {
    margin-bottom: 20px;
}

.single-product .product-page-summary .product-form.product-warehouse > label {
    margin-bottom: 10px;
    color: #69707d;
    font-size: 14px;
    font-weight: 500;
}

.single-product .product-page-summary .product-warehouse .warehouse-options {
    gap: 8px;
}

.single-product .product-page-summary .product-warehouse .warehouse-option {
    min-width: 0;
    padding: 10px 16px;
    border-color: #dfe4ec;
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
}

.single-product .product-page-summary .product-warehouse .warehouse-option__name {
    font-size: 15px;
    line-height: 1.3;
}

.single-product .product-page-summary .product-warehouse .warehouse-option__name small,
.single-product .product-page-summary .product-warehouse .warehouse-option__meta {
    font-size: 12px;
}

.single-product .product-page-summary .product-warehouse .warehouse-option.is-active {
    border-color: var(--shop-primary);
    background: color-mix(in srgb, var(--shop-primary) 6%, white);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--shop-primary) 12%, transparent);
}

/* Brand page: breathing room between menu and brand logo */
.brand-hero {
    margin-top: 20px;
}

/* Header: keep bottom border visible across pages */
.header-bottom {
    border-bottom: 1px solid #f5f5f5;
    background: var(--shop-header-menu-bg, var(--shop-primary));
    color: var(--shop-header-menu-text, #fff);
}

/* Dropdowns (filters/sort) font size tweak */
.toolbox select.form-control,
.toolbox .select-box select {
    font-size: 1.3rem;
}

/* Rating stars for product review form */
.rating-input {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 0.15rem;
    align-items: center;
}
.rating-input input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}
.rating-input input[type="radio"] + label {
    padding-left: 0.1rem !important;
    margin-left: 0;
    display: block;
}
.rating-input label {
    font-size: 1.6rem;
    color: #d1d5db;
    cursor: pointer;
    line-height: 1;
    display: block;
}
.rating-input input[type="radio"] + label::before,
.rating-input input[type="radio"] + label::after {
    display: none !important;
    content: none !important;
}
.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input[type="radio"]:checked ~ label {
    color: var(--shop-primary, #f4b400);
}

/* Review votes */
.review-votes {
    color: #bcbcbc !important;
}
.review-votes i,
.review-votes span,
.review-votes .btn-link {
    color: inherit !important;
}

.review-errors {
    margin-bottom: 1.2rem;
    color: #dc3545;
}

.review-errors,
.review-errors *,
.review-errors li::marker {
    color: #dc3545 !important;
    opacity: 1;
}

.review-errors li {
    font-size: 1.3rem;
    line-height: 1.45;
}

.review-errors__title {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 1.35rem;
    font-weight: 700;
}

.review-errors__list {
    margin: 0;
    padding-left: 1.8rem;
}

.review-errors__list li {
    list-style: disc;
    margin-bottom: 0.3rem;
}

.review-image-errors {
    margin-top: 0.8rem;
    font-size: 1.3rem;
    line-height: 1.4;
    color: #dc3545;
}

.review-image-errors > div + div {
    margin-top: 0.2rem;
}

.review-rating-error {
    margin: 0.6rem 0 1.2rem;
    font-size: 1.3rem;
    line-height: 1.35;
}

.reply .rating-form.is-invalid .rating-input {
    padding: 0.4rem 0.6rem;
    border: 1px solid #dc3545;
    border-radius: 1rem;
}

.product-tabs #product-tab-reviews .alert.alert-success {
    background: var(--shop-primary) !important;
    border: 1px solid var(--shop-primary) !important;
    color: var(--shop-header-category-dropdown-text, #ffffff) !important;
    border-radius: 2.6rem !important;
}

.review-success-toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1200;
    max-width: min(56rem, calc(100vw - 3rem));
    padding: 1.2rem 2rem;
    border-radius: 2.6rem;
    background: var(--shop-primary);
    border: 1px solid var(--shop-primary);
    color: var(--shop-header-category-dropdown-text, #ffffff);
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.45;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.review-success-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 767px) {
    .review-success-toast {
        left: 1.2rem;
        right: 1.2rem;
        top: 1.2rem;
        max-width: none;
    }
}

/* Mobile: use full width without side gutters */
@media (max-width: 767px) {
    body {
        background: #fff;
    }

    .page-wrapper {
        max-width: none;
        margin: 0;
        box-shadow: none;
    }

    .page-wrapper > * {
        padding-left: 0;
        padding-right: 0;
    }

    .container,
    .header .container,
    .main .container,
    .footer .container {
        max-width: 100% !important;
        padding-left: 0;
        padding-right: 0;
    }

    .mobile-menu a {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .toolbox .toolbox-left {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .toolbox .mobile-sort {
        margin-left: 12px;
        flex: 1 1 auto;
        display: flex;
        justify-content: flex-end;
        height: 3.7rem;
    }

    .shop-category .toolbox .mobile-sort.select-box::before {
        line-height: 3.7rem;
    }

    .shop-category .toolbox .mobile-sort select.form-control {
        min-width: 220px;
        max-width: 100%;
        height: 3.7rem;
        min-height: 3.7rem;
        padding-top: 0;
        padding-bottom: 0;
        line-height: 3.7rem;
    }
}

@media (max-width: 991px) {
    .home .grey-section .intro-wrapper {
        width: auto;
        margin-left: -15px;
        margin-right: -15px;
        padding-top: 0 !important;
    }

    .home .grey-section,
    .home .page-content {
        overflow-x: clip;
    }

    .home .grey-section .intro-wrapper > [class*='col-'] {
        padding-left: 0;
        padding-right: 0;
    }

    .home .grey-section .intro-wrapper .intro-slide.banner-radius {
        border-radius: 0;
    }
}

@media (min-width: 992px) {
    .home .grey-section {
        margin-top: 3rem;
    }
}

/* Review card styling */
.review-card {
    list-style: none;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 0 8px 16px 8px;
}
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}
.review-title-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.review-meta {
    font-size: 1rem;
    margin-top: -8px !important;
}
.review-meta-block {
    display: block;
}
.review-rating {
    margin-top: 0;
}
.review-rating-left {
    margin-top: 4px;
}
.review-rating-inline {
    margin-top: 0;
    display: inline-flex;
    align-items: center;
    float: none !important;
}
.review-card .comment-rating,
.review-card .ratings-container {
    float: none !important;
    display: inline-flex;
    align-items: center;
    margin: 0 0 0 8px;
}
.review-card .review-header > .ratings-container {
    display: none !important;
}
.review-rating-inline .ratings-full {
    margin-top: 0;
    float: none !important;
}
.review-card > .ratings-container,
.review-card > .rating-reviews {
    display: none !important;
}
.review-rating-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.review-rating-inline-mobile {
    display: none;
}
.review-head-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.review-meta-block {
    display: block;
}
.review-date {
    font-size: 1.3rem;
}
.review-image-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}
.review-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}
.review-photo-upload {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid #e1e4e8;
    border-radius: 14px;
    background: #f8fafc;
}
.review-photo-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.review-photo-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d7dce2;
    border-radius: 14px;
    background: #fff;
    color: #9aa4b5;
    font-size: 22px;
}
.review-photo-text {
    flex: 1 1 220px;
    min-width: 220px;
}
.review-photo-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1f1f1f;
    margin-bottom: 4px;
}
.review-photo-hint {
    font-size: 1.35rem;
    color: #6f757d;
    line-height: 1.4;
}
.review-photo-cta {
    border-radius: 14px;
    padding: 12px 18px;
    background: #f1f3f6;
    color: #2f6db0;
    border: 1px solid #e1e4e8;
    font-weight: 700;
    white-space: nowrap;
}
.review-photo-cta:hover {
    background: #e6eaef;
    color: #2f6db0;
}
@media (max-width: 575px) {
    .review-card {
        margin: 0 0 12px;
        padding: 14px 14px 12px;
        border-radius: 14px;
    }

    .review-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 10px;
        margin-bottom: 10px;
    }

    .review-header .d-flex {
        min-width: 0;
        align-items: flex-start;
        gap: 10px;
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .review-header .comment-media {
        margin-right: 0 !important;
        flex: 0 0 36px;
        max-width: 36px;
    }

    .review-header .comment-media img {
        width: 36px;
        height: 36px;
        object-fit: cover;
        border-radius: 50%;
    }

    .review-title-row h4 {
        font-size: 1.6rem;
        line-height: 1.2;
        margin: 0;
        word-break: break-word;
    }

    .review-rating-inline {
        display: inline-flex;
        align-items: center;
        line-height: 1;
        margin-top: 2px;
    }

    .review-rating-inline .ratings-full {
        margin: 0 !important;
        line-height: 1;
        transform: none;
    }

    .review-rating-inline .ratings {
        top: 0;
        line-height: 1;
    }

    .review-meta {
        margin-top: 0 !important;
        font-size: 1.3rem;
        line-height: 1.35;
        color: #6b7280;
    }

    .review-date {
        font-size: 1.25rem;
        line-height: 1.25;
        text-align: right;
        white-space: nowrap;
    }

    .review-rating-inline-desktop {
        display: none !important;
    }

    .review-head-side {
        grid-column: 2;
        grid-row: 1;
        gap: 2px;
    }

    .review-rating-inline-mobile {
        display: inline-flex !important;
        margin-top: 0;
    }

    .review-card .comment-content p {
        margin-bottom: 10px;
        font-size: 1.3rem;
        line-height: 1.45;
        color: #3f3f46;
        word-break: break-word;
    }

    .review-card .comment-content p strong {
        color: #2f2f2f;
        margin-right: 4px;
    }

    .review-images {
        margin-top: 2px !important;
    }

    .review-actions {
        margin-top: 8px;
    }

    .review-photo-upload {
        align-items: flex-start;
    }
    .review-photo-cta {
        width: 100%;
        text-align: center;
    }
}
.header-bottom .header-left,
.header-bottom .header-right,
.header-bottom .category-dropdown,
.header-bottom .main-nav {
    background: var(--shop-header-menu-bg, var(--shop-primary));
}
.header-bottom .category-dropdown,
.header-bottom .category-dropdown > a {
    background: var(
        --shop-header-category-dropdown-bg,
        var(--shop-header-menu-bg, var(--shop-primary))
    );
}
.header-bottom .category-dropdown {
    background: transparent;
}
.header-bottom .category-dropdown > a {
    border-radius: 14px;
}
.header-bottom a,
.header-bottom i {
    color: var(--shop-header-menu-text, #fff);
}
.header-bottom .category-dropdown > a,
.header-bottom .category-dropdown > a i {
    color: var(
        --shop-header-category-dropdown-text,
        var(--shop-header-menu-text, #fff)
    );
}
.header-bottom a:hover {
    opacity: 0.85;
}
.header-bottom .main-nav > .menu {
    justify-content: flex-start;
}
.header-bottom .main-nav > .menu > li {
    text-align: left;
}
.header-bottom .main-nav > .menu > li > a {
    color: var(--shop-header-menu-text, #fff) !important;
    font-size: 1.4rem;
    font-weight: 600;
    padding: 1.3rem 0;
    line-height: 1;
    letter-spacing: inherit;
    display: inline-block;
    text-transform: none;
}
.header-bottom .main-nav > .menu > li.active > a,
.header-bottom .main-nav > .menu > li > a:hover {
    color: var(--shop-header-menu-text, #fff) !important;
}
.header-bottom .menu-active-underline > li > a::before {
    background: var(--shop-header-menu-text, #fff);
    left: 0;
    right: auto;
    width: 100%;
    transform-origin: left center;
}

/* Price filter slider: use brand color */
.noUi-handle {
    background: var(--shop-primary) !important;
    border-color: var(--shop-primary) !important;
}

.shop-sidebar .noUi-target {
    margin-left: 1.4rem !important;
    margin-right: 1.4rem !important;
}

.shop-category .category-featured-filters-list {
    display: grid !important;
    grid-auto-flow: column;
    grid-auto-columns: clamp(18rem, 20vw, 22rem);
    justify-content: start !important;
    gap: 1.2rem;
    overflow-x: auto;
    padding: 0.2rem 0 0.8rem;
    scrollbar-width: thin;
}

.shop-category .category-featured-filter {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 3.6rem;
    width: 100% !important;
    min-width: 18rem;
    max-width: 22rem;
    aspect-ratio: 1.1 / 1;
    margin: 0 !important;
    overflow: hidden;
    padding: 1.2rem;
    border: 1px solid #e2e6ec;
    border-radius: 1.4rem;
    color: #222;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.shop-category .category-featured-filter img {
    grid-column: 1 / -1;
    width: 100%;
    height: 13rem;
    margin-bottom: 1rem;
    object-fit: contain;
}

.shop-category .category-featured-filter:hover,
.shop-category .category-featured-filter.active {
    border-color: var(--shop-primary);
    box-shadow: 0 0.6rem 1.8rem rgba(34, 34, 34, 0.08);
    transform: translateY(-0.2rem);
}

.shop-category .category-featured-filter-copy {
    align-self: center;
    min-width: 0;
    line-height: 1.2;
}

.shop-category .category-featured-filter-copy strong,
.shop-category .category-featured-filter-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-category .category-featured-filter-copy strong {
    font-size: 1.45rem;
}

.shop-category .category-featured-filter-copy small {
    margin-top: 0.35rem;
    color: #9299a5;
    font-size: 1.15rem;
}

.shop-category .category-featured-filter-arrow {
    display: inline-flex;
    width: 3.2rem;
    height: 3.2rem;
    align-items: center;
    justify-content: center;
    align-self: center;
    border: 1px solid #e2e6ec;
    border-radius: 50%;
    color: var(--shop-primary);
    font-size: 2rem;
}

.shop-category .category-active-filters {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin: 1.2rem 0 1.8rem;
}

.shop-category .category-heading-row {
    display: grid;
    grid-template-columns: 25% minmax(0, 75%);
	align-items: start;
    margin-bottom: 2.4rem;
}

.shop-category .category-heading-copy {
	grid-row: 1 / span 2;
	align-self: start;
}

.shop-category .category-heading-featured-filters {
	grid-column: 2;
	min-width: 0;
	margin-bottom: 1.6rem;
}

.shop-category .category-heading-toolbox {
	grid-column: 2;
}

.shop-category .category-heading-row .page-title {
    padding-right: 2rem;
}

.shop-category .category-heading-toolbox {
    min-width: 0;
    margin: 0;
    padding: 0;
}

.shop-category .category-heading-toolbox .toolbox-left,
.shop-category .category-heading-toolbox .toolbox-right {
    flex-wrap: nowrap;
}

.shop-category .category-active-filters {
    margin-top: 0;
}

.shop-category .category-found-count {
    flex: 0 0 auto;
    font-size: 1.6rem;
    color: #222;
    white-space: nowrap;
}

.shop-category .category-filter-chips {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scrollbar-width: thin;
}

.shop-category .category-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.5rem;
    border: 1px solid #cfd2d9;
    border-radius: 999px;
    color: #222;
    background: #fff;
    white-space: nowrap;
    line-height: 1;
}

.shop-category .category-filter-chip i {
    font-size: 1.1rem;
    opacity: 0.8;
}

.shop-category .category-filter-chip-clear {
    font-weight: 600;
}

@media (max-width: 991px) {
    .shop-category .category-heading-row {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }

    .shop-category .category-heading-toolbox {
		grid-column: 1;
        width: 100%;
    }

	.shop-category .category-heading-copy {
		grid-row: auto;
	}

	.shop-category .category-heading-featured-filters {
		grid-column: 1;
		margin-bottom: 0;
	}

    .shop-category .category-active-filters {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.9rem;
    }

    .shop-category .category-filter-chips {
        width: 100%;
    }
}

/* Category listing refresh */
@media (min-width: 992px) {
    .shop-category .category-heading-row {
        align-items: end;
        margin-bottom: 3rem;
    }

    .shop-category .category-heading-copy .page-title {
        font-size: clamp(3rem, 2.35vw, 4rem);
        line-height: 1.05;
        letter-spacing: -0.04em;
    }

    .shop-category .category-heading-count {
        margin: 1.2rem 0 0;
        color: #8b93a1;
        font-size: 1.45rem;
        line-height: 1.3;
    }

    .shop-category .category-heading-toolbox {
        min-height: 5rem;
    }

    .shop-category .category-heading-toolbox .toolbox-sort > label {
        display: none !important;
    }

    .shop-category .category-heading-toolbox .toolbox-sort {
        margin-right: 1rem;
    }

    .shop-category .category-heading-toolbox .toolbox-sort .form-control {
        width: 22rem;
        min-width: 22rem;
        height: 5rem;
        padding: 0 4rem 0 1.8rem;
        border: 1px solid #e2e6ec;
        border-radius: 1.2rem;
        background: #fff;
        font-size: 1.45rem;
    }

    .shop-category .category-count-picker {
        display: flex;
        align-items: center;
        gap: .8rem;
        margin-right: 2rem;
    }

    .shop-category .category-count-picker > label:first-child {
        margin-right: .8rem;
        color: #222;
        font-size: 1.3rem;
        font-weight: 600;
    }

    .shop-category .category-count-picker .category-count-option {
        display: inline-flex;
        width: 4.8rem;
        height: 4.8rem;
        align-items: center;
        justify-content: center !important;
        margin: 0;
        padding: 0 !important;
        border: 1px solid #e2e6ec;
        border-radius: 1rem;
        background: #fff;
        color: #222;
        font-size: 1.35rem;
        font-weight: 600;
        line-height: 1;
        text-align: center;
        cursor: pointer;
        transition: border-color .2s ease, color .2s ease, box-shadow .2s ease;
    }

    .shop-category .category-count-picker .category-count-option.active {
        border-color: var(--shop-primary);
        color: var(--shop-primary);
        box-shadow: 0 0 0 1px var(--shop-primary);
    }

    .shop-category .category-heading-toolbox .toolbox-layout {
        display: flex;
        gap: .8rem;
    }

    .shop-category .category-heading-toolbox .toolbox-layout .btn-layout {
        display: inline-flex;
        width: 4.8rem;
        height: 4.8rem;
        align-items: center;
        justify-content: center;
        margin: 0;
        border: 1px solid #e2e6ec;
        border-radius: 1rem;
        background: #fff;
        color: #a5acb7;
    }

    .shop-category .category-heading-toolbox .toolbox-layout .btn-layout.active {
        border-color: var(--shop-primary);
        background: var(--shop-primary);
        color: #fff;
    }

    .shop-category #js-category-sidebar .sidebar-content {
        overflow: hidden;
        border: 1px solid #e5e9ef;
        border-radius: 2rem;
        background: #fff;
    }

    .shop-category #js-category-sidebar .sticky-sidebar {
        padding: 0;
    }

    .shop-category #js-category-sidebar .filter-actions:first-child {
        min-height: 7.6rem;
        margin: 0 !important;
        padding: 2rem 2.4rem;
        border-bottom: 1px solid #edf0f4;
    }

    .shop-category #js-category-sidebar .sidebar-toggle-btn {
        display: inline-flex;
        align-items: center;
        gap: 1rem;
        padding: 0;
        border: 0;
        background: transparent;
        color: #222;
        font-size: 1.6rem;
        font-weight: 600;
    }

    .shop-category #js-category-sidebar .sidebar-toggle-btn i {
        margin: 0;
        color: var(--shop-primary);
        font-size: 2rem;
    }

    .shop-category #js-category-sidebar .filter-clean {
        color: var(--shop-primary);
        font-weight: 600;
    }

    .shop-category #js-category-sidebar .widget {
        margin: 0;
        padding: 2rem 2.4rem;
        border: 0;
    }

    .shop-category #js-category-sidebar .widget + .widget {
        border-top: 1px solid #edf0f4;
    }

    .shop-category #js-category-sidebar .widget-title {
        margin: 0;
        padding: 0;
        color: #222;
        font-size: 1.6rem;
        font-weight: 600;
    }

    .shop-category #js-category-sidebar .widget-title::after {
        right: 0;
        color: #6f7785;
        font-size: 1.2rem;
    }

    .shop-category #js-category-sidebar .widget-body {
        margin: 0;
        padding-top: 1.2rem;
    }

    .shop-category #js-category-sidebar .filter-price-slider {
        margin: .4rem 1rem 1.6rem !important;
    }

    .shop-category #js-category-sidebar .noUi-target {
        height: .4rem;
        border: 0;
        background: #dfe4ea;
        box-shadow: none;
    }

    .shop-category #js-category-sidebar .noUi-connect {
        background: var(--shop-primary);
    }

    .shop-category #js-category-sidebar .noUi-handle {
        top: -.8rem;
        width: 2rem;
        height: 2rem;
        border: .2rem solid var(--shop-primary) !important;
        background: #fff !important;
        box-shadow: 0 .2rem .6rem rgba(31, 42, 68, .12);
    }

    .shop-category #js-category-sidebar .noUi-handle::before,
    .shop-category #js-category-sidebar .noUi-handle::after {
        display: none;
    }

    .shop-category #js-category-sidebar .category-price-inputs {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 1rem;
        align-items: center;
    }

    .shop-category #js-category-sidebar .category-price-inputs > span {
        color: #7d8592;
        font-size: 1.8rem;
    }

    .shop-category #js-category-sidebar .category-price-inputs .form-control {
        width: 100%;
        min-width: 0;
        height: 4.8rem;
        margin: 0;
        padding: 0 1.4rem;
        border: 1px solid #dfe4ea;
        border-radius: 1rem;
        background: #fff;
        color: #4e5664;
        font-size: 1.4rem;
        appearance: textfield;
    }

    .shop-category #js-category-sidebar .category-price-inputs .form-control::-webkit-inner-spin-button,
    .shop-category #js-category-sidebar .category-price-inputs .form-control::-webkit-outer-spin-button {
        margin: 0;
        appearance: none;
    }

    .shop-category #js-category-sidebar .form-checkbox {
        display: flex;
        min-height: 2.4rem;
        align-items: center;
        margin-bottom: .4rem !important;
    }

    .shop-category #js-category-sidebar .custom-checkbox {
        width: 2rem;
        height: 2rem;
        margin: 0 1rem 0 0;
        border-color: #cfd6df;
        border-radius: .3rem;
    }

    .shop-category #js-category-sidebar .form-control-label {
        min-height: 2.2rem;
        margin: 0;
        padding-left: 3.2rem;
        color: #596271;
        font-size: 1.4rem;
        line-height: 2.2rem;
    }

    .shop-category #js-category-sidebar .form-control-label::before {
        top: 50%;
        width: 2rem;
        height: 2rem;
        transform: translateY(-50%);
        border-color: #cfd6df;
        border-radius: .3rem;
    }

    .shop-category #js-category-sidebar .filter-count {
        color: #929aa7 !important;
    }

    .shop-category #js-category-sidebar .category-filter-footer {
        padding: 2rem 2.4rem;
        border-top: 1px solid #edf0f4;
    }

    .shop-category #js-category-sidebar .category-filter-submit {
        display: flex;
        width: 100%;
        min-height: 5.6rem;
        align-items: center;
        justify-content: center;
        padding: 1.2rem 1.6rem;
        border: 0;
        border-radius: 1.2rem;
        background: color-mix(in srgb, var(--shop-primary) 11%, white);
        color: var(--shop-primary);
        font-size: 1.5rem;
        font-weight: 600;
        transition: background-color .2s ease, color .2s ease;
    }

    .shop-category #js-category-sidebar .category-filter-submit:hover {
        background: var(--shop-primary);
        color: #fff;
    }

    .shop-category #js-category-main .product-wrapper {
        align-items: stretch;
    }

    .shop-category #js-category-main .product-wrapper > * {
        display: flex;
    }

    .shop-category #js-category-main .product.cart-full {
        display: flex;
        width: 100%;
        height: 100%;
        flex-direction: column;
        overflow: hidden;
        border: 1px solid #e5e9ef;
        border-radius: 2rem;
        background: #fff;
        transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    }

    .shop-category #js-category-main .product.cart-full:hover {
        border-color: color-mix(in srgb, var(--shop-primary) 50%, #e5e9ef);
        box-shadow: 0 1.2rem 3rem rgba(31, 42, 68, .08);
        transform: none;
    }

    .shop-category #js-category-main .product.product-vertical .product-media,
    .shop-category #js-category-main .product.product-vertical .product-media > a,
    .shop-category #js-category-main .product.product-vertical .product-media img {
        border-radius: 0;
    }

    .shop-category #js-category-main .product .product-label {
        border-radius: .8rem;
    }

    .shop-category #js-category-main .product .product-action-vertical {
        top: 1.4rem;
        right: 1.4rem;
    }

    .shop-category #js-category-main .product .btn-product-icon {
        border: 1px solid #edf0f4;
        background: #fff;
        box-shadow: 0 .4rem 1.4rem rgba(31, 42, 68, .08);
    }

    .shop-category #js-category-main .product-details {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        padding: 1.8rem 2rem 2rem;
    }

    .shop-category #js-category-main .product-name {
        margin-bottom: 1.2rem;
        font-size: 1.45rem;
    }

    .shop-category #js-category-main .product-price {
        margin-top: auto;
        font-size: 1.8rem;
    }

    .shop-category #js-category-main .product-action {
        margin-top: 1.4rem;
    }

    .shop-category #js-category-main .product-action .btn-cart {
        min-height: 4.4rem;
        border-radius: 1rem;
        background: var(--shop-primary);
        border-color: var(--shop-primary);
        color: #fff;
    }

    .shop-category #js-category-main .product-action .btn-cart i {
        display: inline-block;
    }
}

@media (max-width: 991px) {
    .shop-category .category-heading-copy .page-title {
        margin-bottom: .8rem !important;
    }

    .shop-category .category-heading-count {
        margin: 0;
        color: #8b93a1;
        font-size: 1.35rem;
    }

    .shop-category #js-category-sidebar .category-price-inputs {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 1rem;
        align-items: center;
    }

    .shop-category #js-category-sidebar .category-price-inputs .form-control {
        width: 100%;
        min-width: 0;
        margin: 0;
    }

    .shop-category #js-category-sidebar .category-filter-footer {
        padding: 2rem;
    }

    .shop-category #js-category-sidebar .category-filter-submit {
        width: 100%;
        min-height: 5rem;
        border: 0;
        border-radius: 1rem;
        background: color-mix(in srgb, var(--shop-primary) 11%, white);
        color: var(--shop-primary);
        font-weight: 600;
    }
}

/* Contact form styling */
.contact-section .form-control {
    border-radius: 2.4rem !important;
}
.contact-section textarea.form-control {
    min-height: 16rem;
}
.contact-section .form-control:focus {
    border-radius: 2.4rem !important;
}
.contact-section .contact-info-box {
    border-radius: 2.4rem;
}
.header-bottom .menu-active-underline > li.active > a::before {
    transform: scale(1, 1);
}
.header-bottom .dropdown-box,
.header-bottom .dropdown-box a,
.header-bottom .dropdown-box i {
    color: #222;
    opacity: 1;
}
.header-bottom.sticky-header.fix-top.sticky-content.d-lg-show {
    border-bottom-color: transparent;
    border: none;
}
.header-bottom.sticky-content.fixed {
    background: var(--shop-header-menu-bg, var(--shop-primary));
}
.header-bottom.sticky-content.fixed .header-left,
.header-bottom.sticky-content.fixed .header-right,
.header-bottom.sticky-content.fixed .category-dropdown,
.header-bottom.sticky-content.fixed .main-nav {
    background: var(--shop-header-menu-bg, var(--shop-primary));
}

.header-bottom .header-special-offers {
    background: transparent !important;
}

.header-bottom .header-special-offers__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 14px;
    background: #f3f7ff;
    background: color-mix(in srgb, var(--shop-primary) 8%, white);
    color: var(--shop-primary);
    font-weight: 600;
    line-height: 1.2;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.header-bottom .header-special-offers__link i {
    margin: 0;
    color: currentColor;
    font-size: 22px;
}

.header-bottom .header-special-offers__link:hover,
.header-bottom .header-special-offers__link:focus {
    background: #eaf1ff;
    background: color-mix(in srgb, var(--shop-primary) 14%, white);
    color: var(--shop-primary);
}
.header-bottom.sticky-content.fixed .category-dropdown,
.header-bottom.sticky-content.fixed .category-dropdown > a {
    background: var(
        --shop-header-category-dropdown-bg,
        var(--shop-header-menu-bg, var(--shop-primary))
    );
}
.header-bottom.sticky-content.fixed .category-dropdown {
    background: transparent;
}
.header-bottom.sticky-content.fixed .category-dropdown > a {
    border-radius: 14px;
}
.header-bottom.sticky-header.fix-top.sticky-content.d-lg-show
    .category-dropdown
    > a,
.header-bottom.sticky-header.fix-top.sticky-content.d-lg-show
    .category-dropdown
    > a
    i {
    color: var(
        --shop-header-category-dropdown-text,
        var(--shop-header-menu-text, #fff)
    );
}
.header-bottom.sticky-header.fix-top.sticky-content.d-lg-show
    .category-dropdown
    > a {
    background: var(
        --shop-header-category-dropdown-bg,
        var(--shop-header-menu-bg, var(--shop-primary))
    );
}
.header-bottom.sticky-header.fix-top.sticky-content.d-lg-show
    .category-dropdown
    .dropdown-box,
.header-bottom.sticky-header.fix-top.sticky-content.d-lg-show
    .category-dropdown
    .dropdown-box
    a,
.header-bottom.sticky-header.fix-top.sticky-content.d-lg-show
    .category-dropdown
    .dropdown-box
    i {
    color: #222;
}

/* Header controls: shared corner radius. */
.header-search .input-wrapper,
.header-search .form-control,
.header-search .btn-search {
    border-radius: 14px;
}
.header-search.hs-expanded .input-wrapper {
    width: 100%;
    border: 2px solid var(--shop-primary);
    border-radius: 14px;
    height: 4.5rem;
}
.header-search .btn-search i {
    margin: 0 0.1rem 0.4rem 0;
    vertical-align: middle;
    font-size: 1.7rem;
}
.header-search.hs-expanded {
    position: relative;
}
.header-search-suggestions {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.6rem);
    z-index: 30;
    max-height: 34rem;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 1.6rem;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1);
}
.header-search-suggestions__item {
    display: block;
    padding: 1rem 1.6rem;
    color: #222;
    transition: background-color 0.2s ease;
}
.header-search-suggestions__item + .header-search-suggestions__item {
    border-top: 1px solid #f2f2f2;
}
.header-search-suggestions__item:hover {
    background-color: #f8f9fb;
}
.header-search-suggestions__title {
    display: block;
    font-size: 1.4rem;
    line-height: 1.4;
}
.header-search-suggestions__sku {
    display: block;
    margin-top: 0.2rem;
    font-size: 1.2rem;
    color: #6b7280;
}
.header-search-suggestions__state {
    padding: 1.2rem 1.6rem;
    color: #6b7280;
    font-size: 1.3rem;
}

/* Password visibility toggle (eye icon) */
.password-field {
    position: relative;
}
.password-field .form-control {
    padding-right: 3.6rem;
}
.password-field .password-toggle {
    position: absolute;
    top: 50%;
    right: 1.2rem;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    padding: 0;
    line-height: 1;
    color: #999;
    cursor: pointer;
}

/* Blog pages: narrower content width */
.blog .page-content .container,
.blog-post .page-content .container,
.news .page-content .container,
.news-post .page-content .container {
    max-width: 1220px;
}

/* Home blog carousel: normalize card media height */
.home-blog-section .post-media {
    height: 220px;
    overflow: hidden;
}

.home-blog-section .post-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Home news carousel: normalize card media height */
.home-news-section .post-media {
    height: 220px;
    overflow: hidden;
}

.home-news-section .post-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Related posts: normalize media height */
.blog-post .related-posts .post-media {
    height: 220px;
    overflow: hidden;
}

.blog-post .related-posts .post-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-post .related-posts .post-media {
    height: 220px;
    overflow: hidden;
}

.news-post .related-posts .post-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Blog titles: match requested size/weight */
.home-blog-section .post-title,
.home-news-section .post-title,
.blog .post-title,
.blog-post .post-title,
.news .post-title,
.news-post .post-title {
    font-size: 1.6rem;
    font-weight: 600;
}

/* Static pages: narrower content width */
.page-static .page-content .container {
    max-width: 1220px;
}
.password-field .password-toggle:focus {
    outline: none;
}

/* Auth social icons: ensure Font Awesome brand font is used */
.social-links .social-link.fab {
    font-family: "Font Awesome 5 Brands";
    font-weight: 400;
}
.login-popup .social-link.social-google::before,
.login-popup .social-link.social-apple::before {
    font-family: "Font Awesome 5 Brands" !important;
    font-weight: 400;
    display: inline-block;
    line-height: 1;
}
.login-popup .social-link.social-google::before {
    content: "\f1a0";
}
.login-popup .social-link.social-apple::before {
    content: "\f179";
}

/* Account: underline active left menu item */
.main.account .nav-tabs .nav-link.active {
    text-decoration: underline;
    text-underline-offset: 6px;
}

/* Select: add right padding so arrow isn't flush */
select.form-control:not([multiple]):not([size]) {
    padding-right: 5rem;
    background-position: right 2.1rem center;
}

/* Site-wide promotional strip above the shop header */
.shop-top-banner {
    width: 100%;
    min-height: 6.4rem;
    overflow: hidden;
    background: var(--shop-primary, #4076b2);
}

.shop-top-banner--with-image {
    min-height: 0;
}

.shop-top-banner__link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 6.4rem;
    color: inherit;
    text-decoration: none;
}

.shop-top-banner--with-image .shop-top-banner__link {
    min-height: 0;
}

.shop-top-banner__image {
    display: block;
    width: 100%;
    height: auto;
}

.shop-top-banner__content {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 1.6rem;
    max-width: 120rem;
    margin: auto;
    padding: 0 2rem;
    font-size: 1.6rem;
    line-height: 1.2;
    text-align: center;
}

.shop-top-banner__button {
    padding: 0.8rem 1.6rem;
    border-radius: 0.6rem;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .shop-top-banner {
        min-height: 5.2rem;
        height: 5.2rem;
    }

    .shop-top-banner__link,
    .shop-top-banner--with-image .shop-top-banner__link {
        min-height: 5.2rem;
    }

    .shop-top-banner__image {
        position: absolute;
        inset: 0;
        height: 100%;
        object-fit: cover;
    }

    .shop-top-banner__content {
        gap: 0.8rem;
        padding: 0 1.2rem;
        font-size: 1.3rem;
    }

    .shop-top-banner__content > span:not(.shop-top-banner__button) {
        display: none;
    }

    .shop-top-banner__button {
        padding: 0.6rem 1rem;
    }
}

.wishlist-toggle-form {
    display: inline-block;
    margin: 0;
}

.compare-toggle-form {
    display: inline-block;
    margin: 0;
}

.wishlist-toggle-form .btn-product-icon {
    padding: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.compare-toggle-form .btn-product-icon {
    padding: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.wishlist-toggle-form .btn-product-icon::-moz-focus-inner {
    border: 0;
    padding: 0;
}

.compare-toggle-form .btn-product-icon::-moz-focus-inner {
    border: 0;
    padding: 0;
}

/* Variations: show unavailable options as disabled */
.product-variations .disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.product-action-vertical .wishlist-toggle-form .btn-product-icon {
    width: 3.6rem;
    height: 3.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 1px solid #e1e1e1;
    color: #999;
    border-radius: 50% !important;
}

.product-action-vertical .compare-toggle-form .btn-product-icon {
    width: 3.6rem;
    height: 3.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 1px solid #e1e1e1;
    color: #999;
    border-radius: 50% !important;
}

.product-action-vertical .btn-product-icon.btn-wishlist i {
    font-size: 1.8rem;
}

.product-action-vertical .btn-product-icon.btn-compare i {
    font-size: 1.8rem;
}

.product-action-vertical .wishlist-toggle-form {
    display: block;
}

.product-action-vertical .compare-toggle-form {
    display: block;
}

.btn-compare.added {
    color: var(--shop-primary);
}

.header .wishlist {
    position: relative;
}

.header .compare {
    position: relative;
}

.header .wishlist .wishlist-count {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: var(--shop-primary);
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
}

.header .compare .compare-count {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: var(--shop-primary);
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
}

/* Wishlist table: add visual spacing between price and stock columns */
.wishlist-table th.product-stock-status,
.wishlist-table td.product-stock-status {
    padding-left: 24px;
}

.compare-page .compare-page-head .title {
    font-size: 2.8rem;
}

.compare-page .compare-page-subtitle {
    color: #666;
}

.compare-page-head__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.6rem;
}

.compare-clear-form {
    margin: 0;
}

.compare-clear-btn {
    padding: 0.85em 1.6em;
    font-size: 1.3rem;
    white-space: nowrap;
}

.compare-only-diff__label {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    font-size: 1.6rem;
    color: #333;
    user-select: none;
}

.compare-only-diff__label input[type='checkbox'] {
    appearance: auto;
    -webkit-appearance: checkbox;
    width: 1.8rem;
    height: 1.8rem;
    min-width: 1.8rem;
    border: 1px solid #b9b9b9;
    border-radius: 2px;
    background: #fff;
    cursor: pointer;
}

.compare-group {
    padding: 2.2rem;
    border: 1px solid #edf0f3;
    border-radius: 1.2rem;
    background: #fff;
}

.compare-group__title {
    font-size: 2rem;
}

.compare-group__hint {
    color: #777;
    font-size: 1.4rem;
}

.compare-matrix-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.6rem;
}

.compare-matrix {
    display: grid;
    grid-template-columns: 220px repeat(var(--compare-columns), minmax(240px, 1fr));
    min-width: max-content;
    border: 0;
    border-radius: 1rem;
    overflow: hidden;
}

.compare-cell {
    border-bottom: 1px solid #edf0f3;
    background: #fff;
}

.compare-matrix > .compare-cell:nth-last-child(-n + calc(1 + var(--compare-columns))) {
    border-bottom: 0;
}

.compare-matrix > .compare-cell:nth-child(n) {
    min-width: 0;
}

.compare-cell-feature {
    background: #fff;
    font-weight: 600;
    color: #333;
    padding: 1.4rem 1.6rem;
    position: sticky;
    left: 0;
    z-index: 3;
}

.compare-cell-feature-head {
    display: flex;
    align-items: center;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 0;
}

.compare-cell-product {
    padding: 1.2rem 1.2rem 1.6rem;
    border-bottom: 0;
}

.compare-cell-value {
    padding: 1.4rem 1.6rem;
    color: #333;
}

.compare-value-inner {
    width: 280px;
    max-width: 100%;
    margin: 0 auto;
    text-align: left;
}

.compare-home-card-wrap {
    position: relative;
    width: 280px;
    margin: 0 auto;
}

.compare-product-remove {
    position: absolute;
    top: 0.8rem;
    right: auto;
    left: 0.8rem;
    z-index: 5;
}

.compare-remove-btn {
    border: 0;
    background: #fff;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    color: #666;
    box-shadow: 0 6px 16px rgba(18, 25, 38, 0.12);
}

.compare-remove-btn:hover,
.compare-remove-btn:focus {
    color: #222;
    background: #f7f8fa;
}

.compare-home-card.product {
    margin-bottom: 0;
}

.compare-value-empty {
    color: #999;
}

@media (max-width: 767px) {
    .compare-group {
        padding: 1.4rem;
    }

    .compare-page-head__top {
        flex-direction: column;
        gap: 1.2rem;
    }

    .compare-matrix {
        grid-template-columns: 170px repeat(var(--compare-columns), minmax(196px, 1fr));
    }

    .compare-home-card-wrap {
        width: 240px;
    }

    .compare-value-inner {
        width: 240px;
    }

    .compare-cell-feature,
    .compare-cell-value {
        padding: 1rem 1.1rem;
    }
}

/* Contacts: map should stretch full width, even for fixed-size embeds */
.contact-map-full {
    padding: 0;
}

.contact-map-full iframe {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* Contacts: keep padding inside the info block */
.contact-info-box {
    padding: 2.4rem;
}

.recent-view-slider .product-border {
    background: #fff;
    border-radius: 10px;
    /*border: 1px solid #efefef;*/
    /*box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);*/
    padding: 14px;
    margin: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recent-view-slider .product-border img {
    width: 100%;
    height: 155px;
    object-fit: contain;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.recent-view-slider a:hover .product-border img {
    transform: translateY(-2px);
}

/* Home main banner: keep image inside banner block ratio */
.intro-wrapper .intro-slide > figure {
    width: 100%;
    height: 498px;
    max-height: 498px;
    overflow: hidden;
}

.intro-wrapper .intro-slide > figure > img {
    width: 100% !important;
    height: 100% !important;
    max-height: 498px;
    min-height: 0 !important;
    object-fit: cover;
}

@media (min-width: 992px) {
    .intro-wrapper .intro-slide1 .banner-content {
        max-width: 70rem;
    }
}

/* .intro-wrapper .intro-slide .banner-content {
    position: absolute;
    z-index: 2;
    padding: 2.2rem 2.6rem;
    border-radius: 1.8rem;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0.72) 0%,
        rgba(255, 255, 255, 0.54) 45%,
        rgba(255, 255, 255, 0.28) 100%
    );
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 14px 36px rgba(19, 33, 68, 0.16);
} */

.intro-wrapper .intro-slide .banner-title,
.intro-wrapper .intro-slide p {
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* Fix small home banners to consistent height */
.intro-wrapper .intro-banner img {
    height: 239px !important;
    object-fit: cover;
}

/* Deals page: 3-grid banners fixed height (180px) */
.deals-grid-banners .banner,
.deals-grid-banners .banner > figure,
.deals-grid-banners .banner > figure > img {
    height: 180px !important;
}

.deals-grid-banners .banner > figure {
    overflow: hidden;
}

.deals-grid-banners .banner > figure > img {
    width: 100% !important;
    object-fit: cover;
}

/* Site width: almost full width with a small gutter on both sides */
.container {
    max-width: none;
    width: min(1600px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}

/* Product page: constrain gallery images */
.product-gallery .product-image {
    height: 452px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-gallery .product-main-img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    margin-left: auto;
    margin-right: auto;
}

.product-thumbs .product-thumb-img {
    height: 122px;
    width: 109px;
    max-width: 100%;
    max-height: 122px;
    object-fit: contain;
    background: #fff;
    display: block;
    margin: 0 auto;
}

.product-thumbs .product-thumb {
    width: 109px;
    height: 122px;
    display: inline-flex;
    /* align-items: center; */
    justify-content: center;
}

/* Single product gallery: rounded main image and thumbnails */
.single-product .product-gallery .product-image {
    border-radius: 2.6rem;
    overflow: hidden;
}
.single-product .product-gallery .product-image img {
    border-radius: inherit;
}
.single-product .product-thumbs .product-thumb {
    align-items: center;
    padding: 8px;
    box-sizing: border-box;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}
.single-product .product-thumbs .product-thumb::before {
    border-radius: inherit;
}
.single-product .product-thumbs .product-thumb-img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    object-fit: contain;
}
.single-product .product-thumbs .owl-item.active .product-thumb {
    border-radius: 12px;
}

@media (max-width: 991px) {
    /* .product-gallery .product-image {
		height: auto;
	} */
    .product-thumbs .product-thumb {
        width: 100%;
        height: 100px;
    }
    .product-thumbs .product-thumb-img {
        width: 100%;
        height: auto;
        max-height: none;
    }
}

/* Product cards: allow two-line titles before truncation */
.product .product-name,
.product .product-name a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
    line-height: 1.4;
    min-height: 2.8em;
    padding-right: 0;
}

/* Single product: allow one more line than product cards */
.product-single .product-name {
    -webkit-line-clamp: 3;
}

.product-card-mobile-title {
    display: none;
    font-size: 1.4rem;
    line-height: 1.4;
    color: #333;
    margin-bottom: 0.6rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
}

@media (max-width: 991px) {
    .product-card-mobile-title {
        display: -webkit-box;
    }
}
.product.cart-full:hover {
    border-color: var(--shop-primary);
}

/* Product card image rounding */
.product.product-vertical .product-media {
    border-radius: 2.6rem;
    overflow: hidden;
}
.product.product-vertical .product-media > a {
    display: block;
    border-radius: inherit;
    overflow: hidden;
}
.product.product-vertical .product-media img {
    border-radius: inherit;
}

/* Touch devices: avoid iOS double-tap caused by hover state on product card */
@media (hover: none) and (pointer: coarse) {
    .product.cart-full:hover {
        border-color: #eee;
    }
    .product.cart-full:active {
        border-color: var(--shop-primary);
    }
    .product.cart-full .product-action-vertical {
        display: none !important;
    }
    .product.cart-full .product-media > a,
    .product.cart-full .product-name > a,
    .product.cart-full form[data-cart-add] .btn-cart {
        touch-action: manipulation;
    }
}

/* Product availability: force status colors in card and product page */
.product-availability .text-success {
    color: #28a745 !important;
}
.product-availability .text-danger {
    color: #dc3545 !important;
}
.product-availability .text-warning,
.product-availability .text-warning i {
    color: #ff9602 !important;
}
.product-availability .text-info {
    color: #17a2b8 !important;
}
.product-availability .text-secondary {
    color: #6c757d !important;
}
.product-availability {
    margin-bottom: 1rem;
}

/* Category grid: fit 4 cards without shrinking the sidebar */
@media (min-width: 1200px) {
    .shop-category.search-results .search-results-title {
        margin-top: 1.6rem;
        margin-bottom: 2.4rem;
        font-size: 3.4rem;
        line-height: 1.2;
    }

    .shop-category .product-wrapper {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 2rem;
    }
    .shop-category .product-wrapper > * {
        max-width: 100%;
        flex: 0 0 auto;
        padding: 0;
    }

    .shop-category.search-results .product-wrapper {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 1199px) {
    .shop-category.search-results .search-results-title {
        margin-top: 1.2rem;
        margin-bottom: 2rem;
        font-size: 3rem;
        line-height: 1.2;
    }
}

@media (max-width: 991px) {
    .shop-category .product-wrapper > * {
        padding-left: 0px;
        padding-right: 0px;
    }
    .product.cart-full .product-details {
        padding: 0.3rem 1rem 0rem 1rem;
    }

    .recent-view-slider .product.cart-full .product-details {
        padding-bottom: 1.2rem;
    }

    .product .product-price {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        line-height: 1.46;
    }

    .product .product-price .old-price {
        order: -1;
    }
    .product.cart-full .product-price {
        min-height: 5.2rem;
        align-content: flex-start;
    }
    .product.cart-full .product-price,
    .product.product-with-qty .product-details .product-price {
        margin-bottom: 0.2rem;
    }
    .product.cart-full .ratings-container {
        margin-bottom: 0rem;
    }
    .product.cart-full {
        border-radius: 1.3rem;
    }
    .product-gallery .product-image {
        height: 350px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Product with qty (from style.min.css23323): keep qty + cart inline */
.product.product-with-qty .product-action {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
}
.product.product-with-qty .product-action .product-form {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}
.product.product-with-qty .product-form-group {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    margin-right: 2rem;
}
.product.product-with-qty:not(.product-single) .btn-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    margin-right: 0;
    background-color: #f4f4f4;
    border-color: #e1e1e1;
    color: #222;
}
.product .btn-cart,
.product-single .btn-cart {
    border-radius: 2.5rem;
}
.product.product-with-qty:not(.product-single) .btn-cart i {
    display: none;
}
.product.cart-full.product-with-qty:hover .btn-cart:not(:hover) {
    background-color: var(--shop-primary);
    border-color: var(--shop-primary);
    color: #fff;
}

/* Category grid: allow wrapping so the button doesn't overflow */
.main-content .product.product-with-qty .product-action {
    flex-wrap: wrap;
    gap: 0.8rem;
}
.main-content .product.product-with-qty .product-form-group {
    margin-right: 0;
}
.main-content .product.product-with-qty .btn-cart {
    max-width: 100%;
}
.product.product-with-qty .product-quantity,
.product.product-with-qty .product-form-group {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 2rem;
}
.product.product-with-qty .product-form-group .input-group {
    display: flex;
    align-items: center;
}
.product.product-with-qty button,
.product.product-with-qty .quantity-minus,
.product.product-with-qty .quantity-plus {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #333;
    font-size: 1rem;
    width: 24px;
    height: 24px;
    border-radius: 0.3rem;
    border: none;
    background: #f4f4f4;
    cursor: pointer;
    transition:
        background-color 0.3s,
        color 0.3s;
}
.product.product-with-qty button:hover,
.product.product-with-qty .quantity-minus:hover,
.product.product-with-qty .quantity-plus:hover {
    background-color: var(--shop-primary);
    color: #fff;
}
.product.product-with-qty .quantity {
    min-height: auto;
    width: 3.2rem;
    padding: 0;
    font-weight: 700;
    font-size: 1.2rem;
    border: none;
    text-align: center;
    color: #222;
}
.product-single .input-group.mr-2,
.product-single .input-group.mr-2 .quantity,
.product-single .input-group.mr-2 .quantity-minus,
.product-single .input-group.mr-2 .quantity-plus {
    border: none;
    box-shadow: none;
}
/* .product-single .product-form .input-group .quantity-minus,
.product-single .product-form .input-group .quantity-plus {
	background-color: var(--shop-primary);
	border-color: var(--shop-primary);
	color: #fff;
} */
.product-single .product-form .input-group .quantity-minus:disabled,
.product-single .product-form .input-group .quantity-plus:disabled {
    background-color: #e4eaec;
    border-color: #e4eaec;
    color: #999;
}
.cart-full .product-details .btn-cart span {
    display: inline;
}
.cart-full .btn-cart i {
    display: none;
}

/* Advantages list scroll when more than 3 */
.advantages-list {
    max-height: 360px;
    overflow-y: auto;
    padding-right: 6px;
}

/* Product page: spacious three-column composition (gallery, summary, sidebar). */
.single-product .product-page-layout {
    align-items: flex-start;
}

.single-product .product-page-main .product-navigation {
    width: 100%;
    margin-bottom: 2rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid #edf0f5;
}

.single-product .product-page-main .product-navigation .breadcrumb {
    color: #7a8494;
    font-size: 1.25rem;
}

.single-product .product-page-main .product-navigation .breadcrumb li:last-child {
    max-width: min(58vw, 70rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.single-product .product-single > .col-md-6:first-of-type {
    flex: 0 0 52%;
    max-width: 52%;
}

.single-product .product-single > .col-md-6:last-of-type {
    flex: 0 0 48%;
    max-width: 48%;
}

.single-product .product-page-summary {
    padding: 1rem 0 0 2.8rem;
}

.single-product .product-page-summary .product-name {
    margin-bottom: 1.8rem;
    font-size: clamp(24px, 1.5vw, 32px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.single-product .product-page-summary .product-meta {
    margin-bottom: 1.6rem;
    color: #777d89;
}

.single-product .product-page-summary .ratings-container {
    margin-bottom: 2rem;
    padding-bottom: 1.8rem;
    border-bottom: 1px solid #edf0f5;
}

.single-product .product-page-summary .rating-reviews {
    color: var(--shop-primary);
    font-weight: 600;
}

.single-product .product-page-summary .product-price-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
    margin: 2rem 0 2.4rem;
}

.single-product .product-page-summary .product-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 1.4rem;
    margin-bottom: 0;
}

.single-product .product-page-summary .product-price .new-price.price,
.single-product .product-page-summary .product-price > .price:not(.old-price) {
    color: #171b24;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: clamp(28px, 1.55vw, 34px);
    font-variant-numeric: tabular-nums;
    font-weight: 750;
    letter-spacing: -0.035em;
    line-height: 1;
}

.single-product .product-page-summary .old-price {
    color: #9aa1ad;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 16px !important;
    font-weight: 500;
    letter-spacing: -0.015em;
}

.single-product .product-page-summary .product-availability {
    flex: 0 0 auto;
}

.single-product .product-page-summary .product-availability > span {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    min-height: 3.8rem;
    padding: 0.8rem 1.25rem;
    border: 1px solid #d8f0e2;
    border-radius: 1rem;
    background: #eefaf3;
    font-size: 1.25rem;
    font-weight: 650;
    line-height: 1;
}

.single-product .product-page-summary .product-availability > span > i {
    display: none;
}

.single-product .product-page-summary .product-availability > span::before {
    content: "";
    flex: 0 0 0.8rem;
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background: currentColor;
}

.single-product .product-page-summary .product-availability > .text-danger {
    border-color: #f4d7da;
    background: #fff2f3;
}

.single-product .product-page-summary .product-availability > .text-warning {
    border-color: #f6e3c7;
    background: #fff8ec;
}

.single-product .product-gallery .product-image {
    border: 1px solid #edf0f5;
    background: #f8faff;
}

.single-product .product-gallery .product-main-img {
    padding: 2.4rem;
}

.single-product .product-thumbs .product-thumb {
    border: 1px solid #e5e9f0;
}

.single-product .product-thumbs .product-thumb.active {
    border-color: var(--shop-primary);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--shop-primary) 10%, transparent);
}

.single-product .product-page-summary .product-short-desc {
    margin: 2.4rem 0 3rem;
    color: #303541;
    font-size: 1.6rem;
    line-height: 1.6;
}

.single-product .product-page-summary .product-qty .product-form-group {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.6rem;
    width: 100%;
}

.single-product .product-page-summary .product-qty .input-group {
    flex: 0 0 120px !important;
    width: 120px !important;
    min-width: 0;
    max-width: 120px !important;
    height: 5.6rem;
    margin-right: 0 !important;
    border: 1px solid #e3e6ec;
    border-radius: 1.2rem;
}

.single-product .product-page-summary .product-qty .btn-cart {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: none;
    min-height: 5.6rem;
    border-radius: 1.2rem;
}

.single-product .product-page-summary > .product-divider {
    display: none;
}

.single-product .product-page-summary .product-footer .product-action {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    width: 100%;
}

.single-product .product-page-summary .product-footer form {
    margin-right: 0 !important;
}

.single-product .product-page-summary .product-footer .btn-product {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 5.2rem;
    padding: 1rem 1.2rem;
    border: 1px solid #e7e9ef !important;
    border-radius: 1rem;
    background: #fafbfc;
}

.single-product .product-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 0.8rem;
    margin-top: 1.8rem;
}

.single-product .product-fact {
    display: grid;
    grid-template-columns: 3.2rem minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 0.9rem;
    align-content: center;
    min-height: 8.8rem;
    padding: 1.3rem;
    border: 1px solid #e4e8ef;
    border-radius: 1.2rem;
    background: #fff;
}

.single-product .product-fact > i {
    grid-row: 1 / 3;
    align-self: start;
    color: var(--shop-primary);
    font-size: 2.4rem;
    text-align: center;
}

.single-product .product-fact strong {
    align-self: end;
    color: #202736;
    font-size: 1.15rem;
    line-height: 1.3;
}

.single-product .product-fact span {
    align-self: start;
    margin-top: 0.4rem;
    color: #697386;
    font-size: 1.15rem;
    line-height: 1.3;
}

.single-product .product-payment-methods {
    margin-top: 1.8rem;
    padding: 1.5rem;
    border: 1px solid #e7e9ef;
    border-radius: 1.2rem;
    background: #fff;
}

.single-product .product-payment-methods__title {
    display: block;
    margin-bottom: 1rem;
    color: #697386;
    font-size: 1.2rem;
    font-weight: 600;
}

.single-product .product-payment-methods__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.single-product .product-payment-method {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    min-width: 6.4rem;
    min-height: 4.6rem;
    padding: 0.7rem 1rem;
    border: 1px solid #e4e8ef;
    border-radius: 1rem;
    background: #fff;
    color: #303744;
    font-size: 1.15rem;
    font-weight: 600;
}

.single-product .product-payment-method img {
    display: block;
    width: auto;
    max-width: 9rem;
    height: 2.8rem;
    object-fit: contain;
}

.single-product .product-payment-method i {
    color: var(--shop-primary);
    font-size: 1.8rem;
}

.single-product .product-page-sidebar .service-list,
.single-product .product-page-sidebar .widget-products {
    padding: 2.6rem;
    border: 1px solid #e7e9ef;
    border-radius: 1.8rem;
    background: #fff;
}

.single-product .product-page-sidebar .service-list {
    margin-bottom: 48px !important;
}

.single-product .product-page-sidebar .widget-products {
    padding: 16px;
}

.single-product .product-page-sidebar .widget-products .widget-title {
    margin-top: 0;
    margin-bottom: 16px !important;
}

.single-product .product-page-sidebar .widget-products .product-list-sm {
    margin-bottom: 0;
}

.single-product .product-page-sidebar .icon-box-side {
    align-items: flex-start;
    padding: 1.2rem 0;
}

.single-product .product-page-sidebar .icon-box-icon {
    color: var(--shop-primary);
    font-size: 3.2rem;
}

.single-product .product-tabs {
    overflow: hidden;
    margin-top: 32px;
    border: 1px solid #e7e9ef;
    border-radius: 1.4rem;
    background: #fff;
}

.single-product .product-tabs .tab-content {
    padding: 32px;
}

.single-product .product-tabs > .nav-tabs {
    padding-top: 20px;
}

.single-product .product-tabs .tab-pane > .mt-6 {
    margin-top: 0 !important;
}

.single-product .product-tabs #product-tab-reviews .comments {
    margin-bottom: 32px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.single-product .product-tabs #product-tab-reviews .reply .title-wrapper {
    margin-bottom: 24px;
}

.single-product .product-tabs #product-review-form {
    display: grid;
    gap: 20px;
}

.single-product .product-tabs #product-review-form .form-control,
.single-product .product-tabs #product-review-form .mb-4 {
    margin-bottom: 0 !important;
}

@media (max-width: 991px) {
    .single-product .product-page-sidebar {
        margin-top: 3rem;
    }

    .single-product .product-page-summary {
        padding-left: 0;
        padding-right: 0;
    }

    .single-product .product-single > .col-md-6:first-of-type,
    .single-product .product-single > .col-md-6:last-of-type {
        flex-basis: 50%;
        max-width: 50%;
    }
}

@media (max-width: 575px) {
    .single-product .product-single > .col-md-6:first-of-type,
    .single-product .product-single > .col-md-6:last-of-type {
        flex-basis: 100%;
        max-width: 100%;
    }

    .single-product .product-page-summary .product-price-status {
        align-items: flex-start;
        flex-direction: column;
    }

    .single-product .product-tabs .tab-content {
        padding: 20px 16px;
    }

    .single-product .product-page-summary .product-qty .product-form-group {
        flex-wrap: wrap;
    }

    .single-product .product-page-summary .product-qty .btn-cart {
        flex-basis: 100%;
    }

    .single-product .product-page-summary .product-footer .product-action {
        grid-template-columns: 1fr;
    }
}

@font-face {
    font-family: "Raleway";
    src: url("../fonts/Raleway/Raleway-VariableFont_wght.ttf")
        format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* Курсив */
@font-face {
    font-family: "Raleway";
    src: url("../fonts/Raleway/Raleway-Italic-VariableFont_wght.ttf")
        format("truetype");
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

/* Use Raleway for the shop (targeted override to avoid breaking icon fonts) */
@supports (font-variation-settings: normal) {
    html.market,
    body.market,
    .home.market,
    body.home.market,
    .home.market.loaded,
    body.home.market.loaded,
    .market .page-wrapper,
    .market h1,
    .market h2,
    .market h3,
    .market h4,
    .market h5,
    .market h6,
    .market p,
    .market a,
    .market span,
    .market button,
    .market input,
    .market select,
    .market textarea,
    .market label {
        font-family: "Raleway", sans-serif !important;
        font-variant-numeric: lining-nums;
        font-feature-settings: "lnum" 1;
    }
}

/* Restore icon fonts overridden by global font-family rules */
.market .fab {
    font-family: "Font Awesome 5 Brands" !important;
}
.market .fas,
.market .far {
    font-family: "Font Awesome 5 Free" !important;
}
.market [class^="d-icon-"],
.market [class*=" d-icon-"] {
    font-family: "riode" !important;
}

/* Product price styling: keep new/old prices on the same font as .price and make the old price smaller */
.product-price .old-price.price,
.product-price .new-price.price {
    font-family: "Raleway", sans-serif !important;
    /* display: block;
	line-height: 1.2; */
}
.product-price .new-price.price {
    color: var(--shop-primary);
}
.product-price .old-price.price {
    font-size: 0.7em !important;
    /* margin-bottom: 0.2rem; */
}

/* Keep product cards the same height even when optional price lines appear */
/* .product .product-price {
	min-height: 3.6rem;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
    align-items: flex-start;
} */

/* Ensure cart icon shows on product cards (theme hides it for product-with-qty) */

/* Order: colored status badge */
.order-status {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid transparent;
}

.order-status--new {
    color: #4b5563;
    background: #f3f4f6;
    border-color: #e5e7eb;
}

.order-status--processing {
    color: #92400e;
    background: #fffbeb;
    border-color: #fcd34d;
}

.order-status--paid,
.order-status--completed {
    color: #065f46;
    background: #ecfdf5;
    border-color: #6ee7b7;
}

.order-status--shipped {
    color: #1e3a8a;
    background: #eff6ff;
    border-color: #93c5fd;
}

.order-status--canceled {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}
.main.checkout .col-lg-7.mb-6.mb-lg-0.pr-lg-4 .form-control {
    color: #222 !important;
    border-radius: 1rem;
}
.main.checkout .checkout-section {
    background: #fff;
    border: 1px solid #e7ebf3;
    border-radius: 1.6rem;
    padding: 1.8rem 1.8rem 1.4rem;
    margin-bottom: 1.6rem;
}
.main.checkout .checkout-section__title {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.2rem;
}
.main.checkout .checkout-section__title i {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    background: var(--shop-primary);
}
.main.checkout .checkout-section .form-control {
    background: #fff;
}
.main.checkout .checkout-order-groups {
    margin-top: 0.4rem;
}
.main.checkout .checkout-order-group {
    margin-bottom: 1.6rem;
}
.main.checkout .checkout-order-group__title {
    align-items: flex-start;
    margin-bottom: 1.6rem;
}
.main.checkout .checkout-order-group__title > span {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
    line-height: 1.25;
}
.main.checkout .checkout-order-group__title small {
    font-size: 1.4rem;
    font-weight: 400;
    color: #6b7280;
}
.main.checkout .checkout-order-group__items {
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #edf1f7;
}
.main.checkout .checkout-order-group__item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.6rem;
    margin-bottom: 0.9rem;
}
.main.checkout .checkout-order-group__thumb {
    flex: 0 0 6.4rem;
    width: 6.4rem;
    height: 6.4rem;
    display: block;
    overflow: hidden;
    border: 1px solid #edf1f7;
    border-radius: 0.8rem;
    background: #fff;
}
.main.checkout .checkout-order-group__thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}
.main.checkout .checkout-order-group__item-main {
    flex: 1 1 auto;
    min-width: 0;
}
.main.checkout .checkout-order-group__item-price {
    flex: 0 0 auto;
    color: #666;
    text-align: right;
    white-space: nowrap;
}
.main.checkout .checkout-order-group h4 {
    font-size: 2rem;
    margin-top: 1.8rem;
}
@media (max-width: 767px) {
    .main.checkout .checkout-section {
        border-radius: 1.2rem;
        padding: 1.4rem 1.2rem 1rem;
        margin-bottom: 1.2rem;
    }
    .main.checkout .checkout-section__title {
        font-size: 1.6rem;
        margin-bottom: 0.9rem;
    }
    .main.checkout .checkout-order-group__item {
        gap: 1.2rem;
    }
    .main.checkout .checkout-order-group__item-price {
        margin-top: 0.4rem;
        text-align: left;
        white-space: normal;
    }
    .main.checkout .checkout-order-group__thumb {
        flex-basis: 5.6rem;
        width: 5.6rem;
        height: 5.6rem;
    }
}
.main.checkout .col-lg-7.mb-6.mb-lg-0.pr-lg-4 .form-control::placeholder,
.main.checkout
    .col-lg-7.mb-6.mb-lg-0.pr-lg-4
    .form-control::-webkit-input-placeholder,
.main.checkout
    .col-lg-7.mb-6.mb-lg-0.pr-lg-4
    .form-control:-ms-input-placeholder,
.main.checkout
    .col-lg-7.mb-6.mb-lg-0.pr-lg-4
    .form-control::-ms-input-placeholder {
    color: #222 !important;
    border-radius: 1rem;
}
.main.checkout .select-with-icon {
    display: flex;
    gap: 12px;
}
.main.checkout .select-with-icon .select-box {
    flex: 1 1 auto;
    width: 100%;
}
.main.checkout .select-with-icon .select-box {
    height: 4.1rem;
}

/* extra right padding for selects in account forms */
.main.account select.form-control {
    padding-right: 2.75rem;
}

/* Mini-cart empty state: vertically centered while keeping left alignment */
.mini-cart-empty {
    display: flex;
    align-items: center;
    min-height: 8rem;
}
.mini-cart-empty p {
    margin-bottom: 0;
}
.main.checkout .select-with-icon .select-icon-wrap {
    width: 40px;
    height: 40px;
    display: none;
    align-items: center;
    justify-content: center;
}
.main.checkout .select-with-icon .select-icon {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: none;
}

/* Product description: keep rich-editor tables readable */
.product-description table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}
.product-description th,
.product-description td {
    border: 1px solid #d9d9d9;
    padding: 0.9rem 1rem;
    text-align: left;
    vertical-align: top;
}
.product-description thead th {
    background: #f7f7f7;
    font-weight: 600;
}

/* Category filters: add breathing room below price slider */
.shop-sidebar .filter-price-slider {
    margin-bottom: 1.2rem;
}

/* Mobile category filter: enforce true modal behavior */
.shop-category .category-sidebar-reopen {
    display: none;
}

@media (max-width: 991px) {
    body.sidebar-active {
        overflow: hidden;
    }

    body.sidebar-active #js-category-sidebar .filter-actions:first-child {
        display: flex;
        min-height: 7rem;
        align-items: center;
        padding: 1.8rem 2.4rem;
    }

    body.sidebar-active #js-category-sidebar .sidebar-toggle-btn {
        display: inline-flex;
        align-items: center;
        gap: 1rem;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: #222;
        font-size: 1.7rem;
        font-weight: 600;
        line-height: 1;
        pointer-events: none;
    }

    body.sidebar-active #js-category-sidebar .sidebar-toggle-btn i {
        flex: 0 0 auto;
        margin: 0;
        color: var(--shop-primary);
        font-size: 2rem;
        line-height: 1;
    }

    body.sidebar-active .shop-sidebar .sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 4000;
        background: rgba(17, 21, 29, 0.55);
        pointer-events: auto;
    }

    body.sidebar-active .shop-sidebar .sidebar-content {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(82vw, 36rem);
        max-width: 36rem;
        z-index: 4001;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: #fff;
        pointer-events: auto;
    }

    body.sidebar-active .shop-sidebar .sidebar-close {
        position: fixed;
        top: 1.6rem;
        right: 1.6rem;
        z-index: 4002;
    }

    body.sidebar-active #js-category-main {
        pointer-events: none;
    }
}

/* Category filters: desktop scroll only when sidebar is expanded */
@media (min-width: 992px) {
    .shop-category #js-category-sidebar:not(.closed) .sticky-sidebar {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .shop-category #js-category-sidebar:not(.closed) .filter-actions {
        position: static !important;
        top: auto !important;
        z-index: auto !important;
    }

    .shop-category #js-category-sidebar:not(.closed) .sidebar-toggle-btn {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        margin: 0 !important;
    }

    .shop-category #js-category-sidebar.closed .filter-actions:first-child {
        padding-top: 0;
        overflow: visible;
        border: 0;
    }

    .shop-category #js-category-sidebar.closed .sidebar-content {
        overflow: visible;
        border-color: transparent;
        background: transparent;
    }

    .shop-category #js-category-sidebar.closed .sticky-sidebar {
        overflow: visible;
    }

    .shop-category #js-category-sidebar.closed .sidebar-toggle-btn {
        display: none;
    }

    .shop-category #js-category-sidebar.closed + #js-category-main .category-sidebar-reopen {
        display: inline-flex;
        min-width: 12rem;
        min-height: 4.4rem;
        align-items: center;
        justify-content: center;
        gap: .8rem;
        margin: 0 0 2rem;
        padding: 0 1.8rem;
        border: .2rem solid var(--shop-primary);
        border-radius: 2.2rem;
        background: #fff;
        color: var(--shop-primary);
        font-size: 1.4rem;
        font-weight: 600;
        text-transform: uppercase;
        cursor: pointer;
    }

    .shop-category #js-category-sidebar.closed + #js-category-main .category-active-filters {
        min-height: 0;
        padding-left: 0;
    }

}

@media (min-width: 1200px) {
    .shop-category #js-category-sidebar.closed + #js-category-main .js-category-products:not(.category-products-list) {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* Rich text headings: keep h2/h3 readable in category/product descriptions */
.product-description h2,
.category-description h2 {
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 2rem 0 1rem;
}
.product-description h3,
.category-description h3 {
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 1.6rem 0 0.8rem;
}

/* Collapsible SEO text below category products */
.category-description-wrap .category-description-toggle {
    display: none;
}

.category-description-wrap.is-collapsible .category-description {
    position: relative;
    max-height: 32rem;
    overflow: hidden;
}

.category-description-wrap.is-collapsible:not(.is-expanded) .category-description::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 8rem;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 90%);
}

.category-description-wrap.is-collapsible.is-expanded .category-description {
    max-height: none;
}

.category-description-wrap.is-collapsible .category-description-toggle {
    display: block;
    margin: 1.6rem auto 0;
    padding: 0.9rem 1.8rem;
    border: 1px solid var(--shop-primary);
    border-radius: 1rem;
    background: #fff;
    color: var(--shop-primary);
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
}

.category-description-wrap.is-collapsible .category-description-toggle:hover,
.category-description-wrap.is-collapsible .category-description-toggle:focus-visible {
    background: #f8fbff;
}

/* Category filters: make count in brackets slightly lighter */
.shop-category #js-category-sidebar .form-control-label .filter-count {
    color: #9aa1ab !important;
}

/* Keep long filter value lists compact without nested scrolling */
.shop-category .filter-options:not(.is-expanded) .filter-option-extra {
    display: none;
}

.shop-category .filter-options-toggle {
    padding: 0.4rem 0;
    border: 0;
    background: transparent;
    color: var(--shop-primary);
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
}

.shop-category .filter-options-toggle:hover,
.shop-category .filter-options-toggle:focus-visible {
    text-decoration: underline;
}

/* Header: hide dropdown arrow when only one currency or language */
.header-top .dropdown.is-single > a::after {
    display: none !important;
}
.header-top .dropdown.is-single > a {
    padding-right: 0;
}

.sidebar-toggle {
    color: #999999 !important;
    background-color: rgb(246 246 246) !important;
}

/* Mobile: make main content full width */
@media (max-width: 767px) {
    .page-content > .container {
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    .main .container,
    .main .container-fluid {
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .product .product-sku {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .product.product-with-qty .product-form-group .input-group {
        display: none;
    }

    .product .product-action .btn-cart span {
        display: inline;
    }

    /* Product cards (mobile): qty left + icon-only cart button right */
    .product.cart-full.product-with-qty .product-form-group {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        gap: 0.8rem;
        margin-right: 0;
    }
    .product.cart-full.product-with-qty .product-form-group .input-group {
        display: inline-flex;
        align-items: center;
        margin-right: 0.8rem;
    }
    .product.cart-full.product-with-qty .product-action {
        justify-content: flex-end;
    }
    .product.cart-full.product-with-qty .product-action .product-form {
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }
    .product.cart-full .product-action .btn-cart {
        width: 3.8rem;
        min-width: 3.8rem;
        max-width: 3.8rem;
        height: 3.8rem;
        padding: 0;
        margin-left: auto;
        border-radius: 1rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background-color: var(--shop-primary);
        border-color: var(--shop-primary);
        color: #fff;
    }
    .product.cart-full .product-action .btn-cart:hover,
    .product.cart-full .product-action .btn-cart:focus {
        background-color: var(--shop-primary);
        border-color: var(--shop-primary);
        color: #fff;
    }
    .product.cart-full:hover .product-action .btn-cart {
        background-color: var(--shop-primary);
        border-color: var(--shop-primary);
        color: #fff;
    }
    .product.cart-full .product-action .btn-cart span {
        display: none;
    }
    .product.cart-full .product-action .btn-cart i {
        margin: 0;
        line-height: 1;
    }

    .product .product-details .product-meta.d-lg-none {
        display: flex;
        gap: 0.4rem;
        align-items: baseline;
    }
    .product .product-details .product-meta.d-lg-none .product-sku {
        white-space: nowrap;
    }

    .header-middle {
        padding-top: 1.9rem;
        padding-bottom: 1.9rem;
    }
    .header-middle.is-sticky {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1100;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    }
}

/* Account orders: keep first column readable on desktop */
@media (min-width: 768px) {
    .main.account #orders .order-table th:first-child,
    .main.account #orders .order-table td:first-child {
        min-width: 160px;
        white-space: nowrap;
    }
    .main.account #orders .order-table thead th,
    .main.account #orders .order-table tbody td {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    .main.account #orders .order-table th.pl-2 {
        padding-left: 2rem !important;
    }
    .main.account #orders .order-table th.pr-2 {
        padding-right: 2rem !important;
    }
}

/* Category dropdown: subtle shadow for menu panel */
.category-dropdown .dropdown-box {
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
}

/* Mega menu: keep category titles in original case */
.megamenu .menu-title,
.megamenu .menu-title > a,
.megamenu a.menu-title {
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* Mega menu: shrink panel width for small column counts */
.category-dropdown .dropdown-box {
    background: transparent !important;
}
.category-dropdown .category-menu {
    background: #fff;
}
.category-menu .megamenu {
    background: #fff;
}
.category-menu .megamenu .divider {
    display: block;
    width: 100%;
    height: 1px;
    margin: 0;
    background-color: #eee;
}
.category-menu .megamenu .menu-title,
.category-menu .megamenu .menu-title > a {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1;
    margin: 0;
    padding: 2.7rem 0 0.2rem;
    text-transform: none;
    letter-spacing: normal;
}
.category-menu .megamenu.type2 .menu-title,
.category-menu .megamenu.type2 .menu-title > a {
    padding-top: 1.5rem;
}
.category-menu .megamenu.type2 {
    min-width: calc(var(--mega-cols, 4) * 260px) !important;
    width: calc(var(--mega-cols, 4) * 260px) !important;
    max-width: 100%;
}
.category-menu .megamenu ul {
    padding: 0;
    font-size: 1.3rem;
    line-height: 1.2;
    letter-spacing: 0;
}
.category-menu .megamenu ul li {
    padding: 0;
}
.category-menu .megamenu ul li a {
    padding: 0.7rem 0;
}

/* Category dropdown: wider panel + readable long names */
@media (min-width: 992px) {
    .header-bottom .category-dropdown {
        width: 36rem;
    }

    .header-bottom .category-dropdown .dropdown-box {
        width: 36rem;
        min-width: 36rem;
    }

    .header-bottom .category-dropdown .category-menu > li > a {
        display: flex;
        align-items: center;
        gap: 1.2rem;
        white-space: normal;
        line-height: 1.35;
        min-height: 5.8rem;
        margin: 0 1.2rem;
        padding: 0.9rem 3.2rem 0.9rem 1rem;
        border-bottom: 1px solid #edf0f5;
        border-radius: 0.9rem;
        color: #252b36;
        font-size: 1.35rem;
        font-weight: 550;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    .header-bottom .category-dropdown .category-menu > li:hover > a {
        background: #f4f7fd;
        color: var(--shop-primary);
    }

    .header-bottom .category-dropdown .category-menu > li > a > span {
        display: block;
        overflow-wrap: anywhere;
    }

    .header-bottom .category-dropdown .category-menu > li.submenu > a::after {
        right: 1.4rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .header-bottom .category-dropdown .category-menu {
        position: relative;
        padding: 1.2rem 0;
        border: 1px solid #e7ebf2;
        border-radius: 0 0 1.6rem 1.6rem;
        box-shadow: 0 2rem 5rem rgba(30, 48, 78, 0.12);
    }

    .header-bottom .category-dropdown .category-menu > li.submenu {
        position: static;
    }

    .header-bottom .category-dropdown .category-menu:has(> li.mega-menu-open) {
        border-radius: 0 0 0 1.6rem;
        box-shadow: 0 2rem 5rem rgba(30, 48, 78, 0.1);
    }

    .header-bottom .category-dropdown .category-menu > li:last-child > a {
        margin-top: 0.7rem;
        border-bottom: 0;
        color: var(--shop-primary);
    }

    .header-bottom .category-dropdown .category-menu > li > a > .category-menu-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 3.8rem;
        width: 3.8rem;
        height: 3.8rem;
        border-radius: 50%;
        background: color-mix(in srgb, var(--shop-primary) 7%, #fff);
        color: var(--shop-primary);
    }

    .category-menu-icon img {
        width: 2.6rem;
        height: 2.6rem;
        object-fit: contain;
    }

    .category-menu-icon-placeholder {
        display: grid;
        grid-template-columns: repeat(2, 0.45rem);
        grid-template-rows: repeat(2, 0.45rem);
        gap: 0.3rem;
        width: 1.2rem;
        height: 1.2rem;
    }

    .category-menu-icon-placeholder::before,
    .category-menu-icon-placeholder::after {
        content: "";
        width: 0.45rem;
        height: 0.45rem;
        border-radius: 0.12rem;
        background: currentColor;
        box-shadow: 0.75rem 0 currentColor;
    }

    .category-menu-icon-placeholder::after {
        grid-row: 2;
    }

    .category-menu .megamenu.type2 {
        top: 0;
        min-width: min(calc(var(--mega-cols, 4) * 23rem + 25rem), calc(100vw - 40rem)) !important;
        width: min(calc(var(--mega-cols, 4) * 23rem + 25rem), calc(100vw - 40rem)) !important;
        height: 100%;
        min-height: 0;
        max-height: calc(100vh - 12rem);
        padding: 2.2rem;
        overflow: hidden;
        border: 1px solid #e7ebf2;
        border-left: 0;
        border-radius: 0 1.6rem 1.6rem 0;
        box-shadow: 2rem 2rem 5rem rgba(30, 48, 78, 0.1);
    }

    .category-menu.mega-menu-controlled > li.submenu > .megamenu,
    .category-menu.mega-menu-controlled > li.submenu:hover > .megamenu {
        display: none !important;
        left: 100%;
        top: 0;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translate3d(-0.8rem, 0, 0);
    }

    .category-menu.mega-menu-controlled > li.mega-menu-open > .megamenu,
    .category-menu.mega-menu-controlled > li.mega-menu-open:hover > .megamenu {
        display: block !important;
        left: 100%;
        top: 0;
        z-index: 1100;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translate3d(0, 0, 0);
    }

    .category-menu.mega-menu-controlled > li.submenu:hover::after {
        display: none;
    }

    .category-menu .mega-menu-layout {
        display: flex;
        gap: 2rem;
        height: 100%;
        min-height: 0;
        max-height: none;
    }

    .category-menu .mega-menu-sections {
        flex: 1 1 auto;
        min-width: 0;
        min-height: 0;
        height: 100%;
        margin: 0;
        padding-right: 0.8rem;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-gutter: stable;
        scrollbar-color: color-mix(in srgb, var(--shop-primary) 28%, #dfe5ee) transparent;
        scrollbar-width: thin;
    }

    .category-menu .mega-menu-sections::-webkit-scrollbar {
        width: 0.6rem;
    }

    .category-menu .mega-menu-sections::-webkit-scrollbar-thumb {
        border-radius: 1rem;
        background: color-mix(in srgb, var(--shop-primary) 28%, #dfe5ee);
    }

    .category-menu .mega-menu-sections > [class*="col-"] {
        padding: 0 1.5rem;
        border-right: 1px solid #edf0f5;
    }

    .category-menu .mega-menu-sections > [class*="col-"]:last-child {
        border-right: 0;
    }

    .category-menu .mega-category-group {
        margin-bottom: 2.4rem;
    }

    .category-menu .megamenu.type2 .menu-title {
        display: flex;
        align-items: center;
        gap: 0.8rem;
        padding: 0;
        color: #1d2430;
        font-size: 1.4rem;
        font-weight: 700;
        line-height: 1.35;
    }

    .category-menu .mega-category-title-thumb {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 4rem;
        width: 4rem;
        height: 4rem;
        overflow: hidden;
        border-radius: 1rem;
        background: #f5f7fb;
        color: #9aa5b5;
    }

    .category-menu .mega-category-title-thumb img {
        width: 100%;
        height: 100%;
        padding: 0.45rem;
        object-fit: contain;
    }

    .category-menu .mega-category-title-thumb .category-menu-icon-placeholder {
        transform: scale(0.75);
    }

    .category-menu .mega-category-catalog-link {
        display: inline-flex;
        align-items: center;
        gap: 0.7rem;
        margin: 0.8rem 0 1.3rem;
        padding: 0 !important;
        color: var(--shop-primary);
        font-size: 1.15rem;
        font-weight: 650;
    }

    .category-menu .mega-category-catalog-link i {
        font-size: 1rem;
        transition: transform 0.2s ease;
    }

    .category-menu .mega-category-catalog-link:hover i {
        transform: translateX(0.3rem);
    }

    .category-menu .megamenu ul li a {
        display: flex;
        align-items: center;
        min-height: 3.2rem;
        padding: 0.35rem 0;
        color: #505968;
        font-size: 1.25rem;
        line-height: 1.4;
    }

    .category-menu .megamenu ul li a:hover {
        color: var(--shop-primary);
    }

    .category-menu .mega-menu-help {
        flex: 0 0 23rem;
        align-self: flex-start;
        padding: 2rem;
        border-radius: 1.4rem;
        background: linear-gradient(145deg, #f7f9ff, #eef3ff);
    }

    .category-menu .mega-menu-help__icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 4.2rem;
        height: 4.2rem;
        margin-bottom: 1.5rem;
        border-radius: 1.1rem;
        background: #fff;
        color: var(--shop-primary);
        font-size: 2rem;
    }

    .category-menu .mega-menu-help h4 {
        margin: 0 0 1rem;
        color: #18202d;
        font-size: 1.7rem;
        line-height: 1.3;
    }

    .category-menu .mega-menu-help p {
        margin: 0 0 1.8rem;
        color: #697386;
        font-size: 1.2rem;
        line-height: 1.6;
    }

    .category-menu .mega-menu-help__phones {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin: -0.4rem 0 1.8rem;
    }

    .category-menu .mega-menu-help__phones > span {
        color: #7a8495;
        font-size: 1.1rem;
        font-weight: 600;
    }

    .category-menu .mega-menu-help__phones a {
        color: #202736;
        font-size: 1.35rem;
        font-weight: 700;
        line-height: 1.35;
        white-space: nowrap;
    }

    .category-menu .mega-menu-help__phones a:hover {
        color: var(--shop-primary);
    }

    .category-menu .mega-menu-help .btn {
        width: 100%;
        padding: 1.2rem 1rem;
        border-radius: 1rem;
        font-size: 1.15rem;
        text-transform: none;
        color: #fff !important;
    }
}

/* account select padding tweak */
.main.account select.form-control {
    padding-right: 3.5rem !important;
}

/* Keep first-screen content visible for Lighthouse/LCP measurement. */
.page-wrapper {
    opacity: 1 !important;
}

/* Accessibility: improve text contrast for reported low-contrast elements */
.cart-dropdown .dropdown-box .btn-close {
    color: #111827 !important;
}

.cart-dropdown .dropdown-box .btn-close:hover,
.cart-dropdown .dropdown-box .btn-close:focus {
    color: #000000 !important;
}

/* Offcanvas mini-cart: keep footer visible and make product list scrollable */
.cart-dropdown.cart-offcanvas .dropdown-box {
    display: flex;
    flex-direction: column;
    right: -60rem;
    width: 100%;
    max-width: 60rem;
    height: 100dvh;
    max-height: 100dvh;
    padding: 3.2rem;
    overflow: hidden;
}

.cart-dropdown.cart-offcanvas .cart-header {
    flex: 0 0 auto;
    padding: 0 0 2.4rem;
    border-bottom: 1px solid #e7eaf0;
}

.cart-dropdown.cart-offcanvas .cart-header .cart-title {
    margin: 0;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.cart-dropdown.cart-offcanvas .cart-header .btn-close {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 0;
    color: var(--shop-primary) !important;
    font-size: 1.5rem;
    font-weight: 500;
    text-transform: none;
}

.cart-dropdown.cart-offcanvas .cart-header .btn-close i {
    margin: 0;
    font-size: 2.2rem;
}

.cart-dropdown.cart-offcanvas [data-mini-cart] {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.cart-dropdown.cart-offcanvas [data-mini-cart] .products {
    height: 100%;
    max-height: none;
    padding: 2.4rem 1.2rem 2.4rem 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.cart-dropdown.cart-offcanvas .product.product-cart {
    position: relative;
    display: grid !important;
    grid-template-columns: 12rem minmax(0, 1fr);
    align-items: center;
    column-gap: 2rem;
    min-height: 18rem;
    margin: 0 0 1.6rem;
    padding: 2.4rem 4.8rem 2.4rem 2rem;
    border: 1px solid #e7eaf0;
    border-radius: 1.2rem;
    background: #fff;
}

.cart-dropdown.cart-offcanvas .product.product-cart .btn-close {
    top: 2.2rem;
    right: 2rem;
    width: 3.6rem;
    height: 3.6rem;
    border: 1px solid #dce1e8;
    background: #fff;
    font-size: 1.4rem;
}

.cart-dropdown.cart-offcanvas .product.product-cart .product-media {
    grid-column: 1;
    width: 12rem;
    height: 12rem;
    margin: 0;
}

.cart-dropdown.cart-offcanvas .product.product-cart .product-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-dropdown.cart-offcanvas .product.product-cart .product-name {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #1c2940;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    width: 100% !important;
    max-width: none !important;
}

.cart-dropdown.cart-offcanvas .product.product-cart .product-detail {
    grid-column: 2;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 4rem 0 0;
}

.cart-dropdown.cart-offcanvas .mini-cart-quantity-row {
    display: grid;
    grid-template-columns: 10.8rem minmax(max-content, 1fr);
    justify-content: space-between;
    gap: 1.2rem;
    margin-top: 2.4rem;
    width: 100% !important;
    max-width: none !important;
}

.cart-dropdown.cart-offcanvas .mini-cart-price-separator {
    display: none;
}

.cart-dropdown.cart-offcanvas .mini-cart-quantity-row .product-price {
    display: block !important;
    align-self: center;
    justify-self: end;
    width: auto !important;
    max-width: none !important;
    overflow: visible;
}

.cart-dropdown.cart-offcanvas .cart-total {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin: 0;
    padding: 2.4rem 2rem 1.6rem;
    border: 1px solid #dce6fa;
    border-bottom: 0;
    border-radius: 1.2rem 1.2rem 0 0;
    background: #f8faff;
}

.cart-dropdown.cart-offcanvas .cart-total__summary {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    min-width: 0;
}

.cart-dropdown.cart-offcanvas .cart-total__summary label {
    display: block;
    flex: none;
    margin: 0;
    color: #1c2940;
    font-size: 1.6rem;
    font-weight: 600;
}

.cart-dropdown.cart-offcanvas .cart-total__summary span {
    color: #7b8493;
    font-size: 1.4rem;
}

.cart-dropdown.cart-offcanvas .cart-total .price {
    flex: 0 0 auto;
    margin-left: auto;
    color: var(--shop-primary);
    font-size: 2.4rem;
    font-weight: 700;
}

.cart-dropdown.cart-offcanvas .cart-action {
    flex: 0 0 auto;
    padding: 1.6rem 2rem 2.4rem;
    border: 1px solid #dce6fa;
    border-top: 0;
    border-radius: 0 0 1.2rem 1.2rem;
    background: #f8faff;
}

.cart-dropdown.cart-offcanvas .cart-action .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    width: 100%;
    min-height: 5.6rem;
    margin: 0;
    border: 0;
    border-radius: 0.8rem;
    background: var(--shop-primary);
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: none;
}

.cart-dropdown.cart-offcanvas .cart-action .btn i {
    font-size: 2rem;
}

@media (max-width: 575px) {
    .cart-dropdown.cart-offcanvas .dropdown-box {
        right: -100vw;
        max-width: 100vw;
        padding: 1.6rem;
    }

    .cart-dropdown.cart-offcanvas .product.product-cart {
        grid-template-columns: 8rem minmax(0, 1fr);
        grid-template-rows: auto auto;
        column-gap: 1.2rem;
        row-gap: 1.6rem;
        min-height: 14rem;
        padding: 1.6rem;
    }

    .cart-dropdown.cart-offcanvas .product.product-cart .product-media {
        grid-row: 1;
        width: 8rem;
        height: 10rem;
        margin: 0;
    }

    .cart-dropdown.cart-offcanvas .product.product-cart .product-detail {
        display: contents;
        width: 100% !important;
        max-width: none !important;
        padding-right: 0;
    }

    .cart-dropdown.cart-offcanvas .product.product-cart .product-name {
        grid-column: 2;
        grid-row: 1;
        align-self: start;
        height: 3.95rem;
        min-height: 0;
        max-height: 3.95rem;
        padding-right: 3.8rem;
        overflow: hidden;
        font-size: 1.45rem;
    }

    .cart-dropdown.cart-offcanvas .product.product-cart .btn-close {
        top: 1.4rem;
        right: 1.4rem;
        width: 3.2rem;
        height: 3.2rem;
    }

    .cart-dropdown.cart-offcanvas .mini-cart-quantity-row {
        display: grid;
        grid-column: 1 / -1;
        grid-row: 2;
        grid-template-columns: 8.4rem minmax(0, 1fr);
        gap: 1.2rem;
        width: 100% !important;
        margin-top: 0;
    }

    .cart-dropdown.cart-offcanvas .mini-cart-quantity.input-group {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 8.4rem;
        height: 3.6rem;
        flex-basis: 8.4rem;
    }

    .cart-dropdown.cart-offcanvas .mini-cart-quantity.input-group button,
    .cart-dropdown.cart-offcanvas .mini-cart-quantity.input-group .cart-quantity-input {
        width: 100% !important;
        height: 100%;
    }

    .cart-dropdown.cart-offcanvas .mini-cart-quantity-row .product-price {
        display: block !important;
        justify-self: end;
        width: auto !important;
        max-width: none !important;
        overflow: visible;
        font-size: 1.5rem;
    }

    .cart-dropdown.cart-offcanvas .cart-total {
        gap: 1rem;
        padding: 2rem 1.6rem 1.2rem;
    }

    .cart-dropdown.cart-offcanvas .cart-total .price {
        font-size: 2rem;
    }

    .cart-dropdown.cart-offcanvas .cart-action {
        padding: 1.2rem 1.6rem 2rem;
    }

    .cart-dropdown.cart-offcanvas .cart-action .btn {
        gap: 0.8rem;
        padding-right: 1rem;
        padding-left: 1rem;
        font-size: 1.35rem;
    }
}

.home-blog-section .post-comment,
.home-news-section .post-comment,
.post .post-comment {
    color: #374151 !important;
}

.checkout [data-error] {
    display: block;
    font-size: 13px;
    margin-top: 6px;
    color: #dc3545;
}

.checkout .is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 1px rgba(220, 53, 69, 0.15);
}

/* Checkout errors: theme sets alert-danger text equal to background */
.checkout .alert.alert-danger {
    color: #ffffff;
}

.checkout .alert.alert-danger a {
    color: #ffffff;
    text-decoration: underline;
}

/* Checkout warning: ensure readable contrast for multi-shipment notice */
.checkout .alert.alert-warning {
    background-color: var(--shop-primary) !important;
    border-color: var(--shop-primary) !important;
    color: var(--shop-header-category-dropdown-text, #ffffff) !important;
}

.checkout .alert.alert-warning a {
    color: var(--shop-header-category-dropdown-text, #ffffff) !important;
    text-decoration: underline;
}

/* Cart warning uses site primary/text colors too */
.cart .alert.alert-warning {
    background-color: var(--shop-primary) !important;
    border-color: var(--shop-primary) !important;
    color: var(--shop-header-category-dropdown-text, #ffffff) !important;
}

.cart .alert.alert-warning a {
    color: var(--shop-header-category-dropdown-text, #ffffff) !important;
    text-decoration: underline;
}

/* Checkout: progress to free delivery */
.checkout-free-delivery-hint {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.4rem;
    padding: 1.4rem 1.6rem;
    border: 1px solid #e4c77c;
    border-radius: 1.8rem;
    background: #f6edd6;
    color: #2d2d2d;
}

.checkout-free-delivery-hint__icon {
    width: 2.6rem;
    height: 2.6rem;
    border: 2px solid #d7ad2f;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #c69400;
    flex: 0 0 auto;
}

.checkout-free-delivery-hint__text {
    flex: 1;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
}

.checkout .checkout-do-not-call {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.2rem 0 1.6rem;
}

.checkout .checkout-do-not-call .form-control-label {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1f2937;
}

@media (max-width: 767px) {
    .checkout-free-delivery-hint {
        margin-bottom: 1rem;
        padding: 1.1rem 1.2rem;
        border-radius: 1.3rem;
    }

    .checkout-free-delivery-hint__text {
        font-size: 1.4rem;
    }
}

/* Checkout summary: grouped warehouse headings should stay left-aligned and compact */
.checkout .order-table .warehouse-group-row .warehouse-group-cell {
    text-align: left !important;
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
    line-height: 1.4;
}

.checkout .order-table .warehouse-group-title {
    display: inline-flex;
    align-items: baseline;
    gap: 1.2rem;
    font-size: 1.9rem;
    font-weight: 700;
    color: #222;
}

.checkout .order-table .warehouse-group-count {
    font-size: 1.5rem;
    font-weight: 500;
    color: #666;
}

.checkout .order-table .order-item-qty-inline {
    white-space: nowrap;
}

/* Checkout totals: consistent font and no currency wrapping */
.checkout .order-table .summary-subtitle,
.checkout .order-table .summary-subtotal-price,
.checkout .order-table .summary-total-price {
    font-family: Raleway, sans-serif;
}

.checkout .order-table .summary-subtotal-price,
.checkout .order-table .summary-total-price {
    white-space: nowrap;
}

/* Remove divider under the final total row ("Разом") */
.checkout .order-table .summary-total {
    border-bottom: none;
}

/* Cart summary: remove divider under the final total row ("Разом") */
.cart .summary .summary-total {
    border-bottom: none;
}

/* Order details page: keep typography consistent and remove divider under final total */
.order .order-details-table,
.order .order-details-table .product-name,
.order .order-details-table .product-price,
.order .order-details-table .summary-subtitle,
.order .order-details-table .summary-subtotal-price,
.order .order-details-table .summary-total-price {
    font-family: Raleway, sans-serif;
}

.order .order-details-table .summary-subtotal-price,
.order .order-details-table .summary-total-price,
.order .order-details-table .product-price {
    white-space: nowrap;
}

.order .order-details-table .summary-total {
    border-bottom: none;
}
.order .order-details.order-details-card {
    padding: 2.2rem 3rem 2.6rem;
}
.order .order-details-card__number {
    display: block;
    margin: 0 0 2.4rem;
    line-height: 1.2;
}
.order .order-details-card__number + .order-details-table thead .summary-subtitle {
    padding-top: 0;
}
@media (max-width: 575px) {
    .order .order-details.order-details-card {
        padding: 1.8rem 1.6rem 2rem;
    }
    .order .order-details-card__number {
        margin-bottom: 1.8rem;
    }
}

/* Home products section: keep category column height stable when there are many subcategories */
.home .category-wrapper {
    min-height: 0;
}

.home .category-wrapper .home-category-children-list {
    max-height: 42rem;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
    scrollbar-width: none;
}

.home .category-wrapper .home-category-children-list::-webkit-scrollbar {
    width: 0;
}

.home .category-wrapper .home-category-children-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}

.home .category-wrapper .home-category-children-list:hover,
.home .category-wrapper .home-category-children-list:focus-within {
    scrollbar-width: thin;
}

.home .category-wrapper .home-category-children-list:hover::-webkit-scrollbar,
.home .category-wrapper .home-category-children-list:focus-within::-webkit-scrollbar {
    width: 5px;
}

@media (max-width: 991px) {
    .home .category-wrapper .home-category-children-list {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
}

/* Footer owner badge */
.footer-bottom .footer-right {
    padding-right: 90px;
}

.footer-bottom .footer-right .footer-owner-image {
    display: block;
    max-height: 34px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 991px) {
    .footer-bottom .footer-right {
        padding-right: 16px;
    }
}

/* Footer headings: force uppercase like "ГРАФІК РОБОТИ" */
.footer .widget-title,
.footer .widget-info label {
    text-transform: uppercase;
}

/* Cart page: remove divider below header menu */
.cart-page .header-bottom {
    border-bottom: none !important;
    box-shadow: none !important;
}

.cart-page .header-bottom.sticky-content.fixed,
.cart-page .header-bottom.sticky-header.fix-top.sticky-content.d-lg-show,
.cart-page .header-bottom.sticky-header.fix-top.sticky-content.d-lg-show.fixed {
    border-bottom: none !important;
    box-shadow: none !important;
}

.cart-page .header-bottom > .container {
    border-bottom: none !important;
}

.cart-page .cart.main {
    border-top: none !important;
}

/* Cart coupon input: rounded corners per design */
.cart .cart-coupon-box input[name="coupon_code"] {
    border-radius: 2.6rem !important;
}

/* Footer newsletter input: rounded wrapper */
.footer .widget-newsletter .input-wrapper-inline.mx-auto.mx-lg-0,
.footer .widget-newsletter .input-wrapper-inline {
    border-radius: 2.6rem;
    overflow: hidden;
}

.footer .widget-newsletter .input-wrapper-inline .form-control {
    border-radius: 2.6rem 0 0 2.6rem;
}

/* Footer social links: match original outlined style */
.footer .footer-bottom .social-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer .footer-bottom .social-links .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 2px solid #9aa0a6;
    border-radius: 50%;
    background: transparent !important;
    color: #9aa0a6;
    transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.footer .footer-bottom .social-links .social-link i {
    font-size: 1.7rem;
    line-height: 1;
}

.footer .footer-bottom .social-links .social-link:hover,
.footer .footer-bottom .social-links .social-link:focus-visible {
    color: #fff;
    border-color: var(--social-color, #4267b1);
    background-color: var(--social-color, #4267b1) !important;
}

@media (max-width: 991px) {
    .footer .footer-bottom {
        justify-content: center;
        gap: 12px;
    }

    .footer .footer-bottom .footer-left,
    .footer .footer-bottom .footer-center,
    .footer .footer-bottom .footer-right {
        width: 100%;
        text-align: center;
    }

    .footer .footer-bottom .social-links {
        justify-content: center !important;
        margin: 0 auto !important;
        padding: 0 !important;
        width: 100% !important;
        display: flex !important;
    }

    .footer .footer-bottom .social-links .social-link {
        margin: 0 !important;
    }

    .footer .footer-bottom .footer-left {
        display: flex !important;
        justify-content: center !important;
        text-align: center;
        width: 100% !important;
        padding: 0 !important;
        margin-left: 0 !important;
    }

    .footer .footer-bottom .footer-right {
        padding-right: 0;
        display: flex;
        justify-content: center;
    }
}

/* Add-to-cart minipopup: close button */
.minipopup-box .minipopup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border: 1px solid #d1d5db;
    border-radius: 50%;
    background: #fff;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.minipopup-box .minipopup-close i {
    font-size: 1.2rem;
    line-height: 1;
}

.minipopup-box .minipopup-close:hover,
.minipopup-box .minipopup-close:focus {
    border-color: var(--shop-primary);
    color: var(--shop-primary);
}

/* Mobile dock menu: keep stable during horizontal product swipes. */
@media (max-width: 991px) {
    .shop-mobile-dock {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1051;
        background: #fff;
        border-top: 1px solid #e1e1e1;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
        animation: none !important;
        transform: none !important;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .market .page-wrapper {
        padding-bottom: 62px;
    }

    body.shop-mobile-dock-collapsed .shop-mobile-dock,
    body.shop-mobile-dock-hidden .shop-mobile-dock {
        transform: translateY(100%) !important;
        opacity: 0;
        pointer-events: none;
    }
}

.wishlist-page .alert.alert-info .btn.btn-primary,
.compare-page .alert.alert-info .btn.btn-primary {
    border-radius: 2.6rem !important;
}

.shop-mobile-dock .header-search .input-wrapper {
    border-radius: 2.6rem;
    overflow: hidden;
}

.shop-mobile-dock .header-search .input-wrapper .form-control {
    border-radius: 2.6rem 0 0 2.6rem !important;
}

.shop-mobile-dock .header-search .input-wrapper .btn.btn-search {
    border-radius: 0 2.6rem 2.6rem 0 !important;
}

/* Keep delivery autocomplete menus directly below their inputs. */
#account_city,
#account_location_search,
#account_courier_street,
#provider_city,
#provider_location_search,
#courier_street,
.js-group-city,
.js-group-location-search,
.js-group-street {
    margin-bottom: 0;
}

/* Customer account: unified modern shell and delivery/payment preferences. */
.main.account .account-page-content {
    padding: 3rem 0 5rem;
    background: #f6f8fc;
}

.main.account .account-shell {
    max-width: 1500px;
}

.main.account .account-title {
    margin: 0 0 2.4rem;
    text-align: left;
    font-size: 3.4rem;
    letter-spacing: -0.04em;
}

.main.account .account-layout {
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #edf0f5;
    border-radius: 1.8rem;
    background: #fff;
    box-shadow: 0 1.2rem 4rem rgba(31, 50, 81, 0.07);
}

.main.account .account-nav {
    margin: 0 !important;
    padding: 2.4rem 2rem;
    border-right: 1px solid #edf0f5;
    background: #fff;
}

.main.account .account-nav .nav-item {
    margin: 0;
    border-bottom: 1px solid #f0f2f6;
}

.main.account .account-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: 6.4rem;
    margin: 0.8rem 0;
    padding: 1.4rem 1.8rem;
    border: 0;
    border-radius: 1.2rem;
    color: #374151;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
}

.main.account .account-nav .nav-link i {
    flex: 0 0 2.2rem;
    width: 2.2rem;
    color: #718096;
    font-size: 1.9rem;
    text-align: center;
}

.main.account .account-nav .nav-link:hover,
.main.account .account-nav .nav-link.active {
    background: color-mix(in srgb, var(--shop-primary) 9%, #fff);
    color: var(--shop-primary);
    text-decoration: none;
}

.main.account .account-nav .nav-link:hover i,
.main.account .account-nav .nav-link.active i {
    color: var(--shop-primary);
}

.main.account .account-nav .account-logout,
.main.account .account-nav .account-logout i {
    color: #dc3545;
}

.main.account .account-content {
    padding: 3.8rem 4rem 4.2rem;
}

.main.account .account-preferences > .mb-2 {
    margin-bottom: 2.8rem !important;
    color: #6b7280;
    font-size: 1.5rem;
}

.main.account .account-preferences-form > .row {
    margin: 0;
    overflow: hidden;
    border: 1px solid #e6eaf0;
    border-radius: 1.6rem;
    background: #fff;
}

.main.account .account-preferences-form > .row > [class*="col-"] {
    margin: 0 !important;
    padding: 0;
}

.main.account .account-setting-card {
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.main.account .account-setting-card--payment {
    border-left: 1px solid #e6eaf0;
}

.main.account .account-setting-card .card-body {
    display: flex;
    flex-direction: column;
    min-height: 47rem;
    padding: 3.4rem;
}

.main.account .account-setting-heading {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    margin-bottom: 3.2rem;
}

.main.account .account-setting-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 6rem;
    width: 6rem;
    height: 6rem;
    border-radius: 1.6rem;
    background: color-mix(in srgb, var(--shop-primary) 9%, #fff);
    color: var(--shop-primary);
    font-size: 2.3rem;
}

.main.account .account-setting-card--payment .account-setting-icon {
    background: #eff9f3;
    color: #169447;
}

.main.account .account-setting-heading .card-title {
    margin: 0 0 0.3rem;
    font-size: 2rem;
    font-weight: 700;
    text-transform: none;
}

.main.account .account-setting-heading p {
    margin: 0;
    color: #7b8493;
    font-size: 1.35rem;
    line-height: 1.5;
}

.main.account .account-setting-card label {
    color: #303744;
    font-weight: 600;
}

.main.account .account-setting-card .form-control {
    min-height: 5rem;
    border-color: #dfe4eb;
    border-radius: 1rem;
    background-color: #fff;
    color: #303744;
}

.main.account .account-setting-card .form-control:focus {
    border-color: var(--shop-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--shop-primary) 12%, transparent);
}

.main.account .account-setting-note {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin-top: auto;
    padding: 1.8rem 2rem;
    border-radius: 1.2rem;
    background: color-mix(in srgb, var(--shop-primary) 7%, #fff);
    color: var(--shop-primary);
    font-size: 1.3rem;
    line-height: 1.55;
}

.main.account .account-setting-note i {
    margin-top: 0.2rem;
    font-size: 1.8rem;
}

.main.account .account-setting-note--secure {
    background: #eff9f3;
    color: #268255;
}

.main.account .account-setting-note--secure span {
    display: flex;
    flex-direction: column;
}

.main.account .account-preferences-actions {
    margin-top: 2.8rem;
    padding-top: 2.8rem;
    border-top: 1px solid #edf0f5;
}

.main.account .account-preferences-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    min-height: 5rem;
    padding: 1.2rem 2.5rem;
    border-radius: 1rem;
}

.main.account .account-details {
    overflow: hidden;
    border: 1px solid #e6eaf0;
    border-radius: 1.6rem;
    background: #fff;
}

.main.account .account-section-heading {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    padding: 3.2rem 3.4rem 1.8rem;
}

.main.account .account-section-heading h3 {
    margin: 0 0 0.4rem;
    font-size: 2.2rem;
    font-weight: 700;
}

.main.account .account-section-heading p,
.main.account .account-password-heading p {
    margin: 0;
    color: #7b8493;
    font-size: 1.35rem;
    line-height: 1.5;
}

.main.account .account-details-form {
    margin: 0;
    padding: 1.5rem 3.4rem 3.2rem;
}

.main.account .account-details-form label,
.main.account .account-password-form label {
    margin-bottom: 0.9rem;
    color: #303744;
    font-weight: 600;
}

.main.account .account-input {
    position: relative;
}

.main.account .account-input > i:first-child {
    position: absolute;
    top: 50%;
    left: 1.8rem;
    z-index: 2;
    transform: translateY(-50%);
    color: #7d8798;
    font-size: 1.8rem;
    pointer-events: none;
}

.main.account .account-input .form-control {
    min-height: 5.2rem;
    padding-left: 5rem;
    border-color: #dfe4eb;
    border-radius: 1rem;
    background: #fff;
}

.main.account .account-input .form-control:focus {
    border-color: var(--shop-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--shop-primary) 12%, transparent);
}

.main.account .account-details-form .form-text {
    margin: 0.8rem 0 2.4rem !important;
    color: #7b8493;
    line-height: 1.5;
}

.main.account .account-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 5rem;
    padding: 1.2rem 2.5rem;
    border-radius: 1rem;
}

.main.account .account-password-form {
    margin: 0 3.4rem 3.4rem;
    padding: 2.4rem;
    border: 1px solid #e6eaf0;
    border-radius: 1.4rem;
    background: #fbfcfe;
}

.main.account .account-password-form fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.main.account .account-password-heading {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    margin-bottom: 2.2rem;
}

.main.account .account-password-heading > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 4.4rem;
    width: 4.4rem;
    height: 4.4rem;
    border-radius: 1.1rem;
    background: color-mix(in srgb, var(--shop-primary) 9%, #fff);
    color: var(--shop-primary);
    font-size: 1.8rem;
}

.main.account .account-password-heading legend {
    margin: 0 0 0.3rem;
    color: #303744;
    font-size: 1.8rem;
    font-weight: 700;
}

.main.account .account-input--password .form-control {
    padding-right: 5rem;
}

.main.account .account-input--password .password-toggle {
    right: 1.5rem;
}

.main.account .account-submit--secondary {
    border-color: color-mix(in srgb, var(--shop-primary) 22%, #fff);
    background: color-mix(in srgb, var(--shop-primary) 9%, #fff);
    color: var(--shop-primary);
}

.main.account .account-submit--secondary:hover,
.main.account .account-submit--secondary:focus {
    border-color: var(--shop-primary);
    background: var(--shop-primary);
    color: #fff;
}

.main.account .account-orders-pane {
    min-height: 52rem;
}

.main.account .account-orders-heading {
    padding: 0 0 3rem;
}

.main.account .account-orders-table-wrap {
    overflow: hidden;
    border: 1px solid #e3e8f0;
    border-radius: 1.5rem;
}

.main.account .account-orders {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.main.account .account-orders thead {
    background: #f8faff;
}

.main.account .account-orders thead th {
    padding: 1.8rem 2rem !important;
    border: 0;
    color: #465166;
    font-size: 1.3rem;
    font-weight: 700;
    white-space: nowrap;
}

.main.account .account-orders tbody td {
    padding: 2.4rem 2rem !important;
    border: 0;
    border-top: 1px solid #edf0f5;
    vertical-align: middle;
}

.main.account .account-order-number,
.main.account .account-order-date {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.main.account .account-order-number > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 4.6rem;
    width: 4.6rem;
    height: 4.6rem;
    border: 1px solid #dfe6f2;
    border-radius: 1.1rem;
    background: #f8faff;
    color: var(--shop-primary);
    font-size: 1.7rem;
}

.main.account .account-order-number > div,
.main.account .account-order-date > span,
.main.account .account-orders .order-total {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.main.account .account-order-number a,
.main.account .account-orders .order-total strong {
    color: #172033;
    font-size: 1.45rem;
    font-weight: 700;
}

.main.account .account-order-number small,
.main.account .account-order-date small,
.main.account .account-orders .order-total small {
    color: #7b8493;
    font-size: 1.2rem;
    font-weight: 400;
}

.main.account .account-order-date > i {
    color: #586579;
    font-size: 1.6rem;
}

.main.account .account-order-date time {
    color: #303744;
    font-weight: 600;
    white-space: nowrap;
}

.main.account .account-orders .order-status {
    gap: 0.7rem;
    padding: 1rem 1.2rem;
    line-height: 1.2;
}

.main.account .account-orders .order-status i {
    font-size: 1.25rem;
}

.main.account .account-order-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    min-height: 4.4rem;
    padding: 1rem 1.5rem;
    border: 0;
    border-radius: 1rem;
    background: color-mix(in srgb, var(--shop-primary) 9%, #fff);
    color: var(--shop-primary);
    font-size: 1.3rem;
    font-weight: 600;
    white-space: nowrap;
}

.main.account .account-order-view:hover,
.main.account .account-order-view:focus {
    background: var(--shop-primary);
    color: #fff;
}

.main.account .account-orders-pagination {
    margin-top: 2.8rem;
}

.main.account .account-orders-pagination nav > div:first-child {
    display: none;
}

.main.account .account-orders-pagination nav > div:last-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.main.account .account-orders-pagination nav p {
    margin: 0;
    color: #657084;
}

.main.account .account-orders-pagination nav span[aria-current="page"] span,
.main.account .account-orders-pagination nav a {
    border-color: #e1e6ef;
}

.main.account .account-orders-pagination nav span[aria-current="page"] span {
    border-color: var(--shop-primary);
    background: var(--shop-primary);
    color: #fff;
}

.main.account .account-dashboard {
    min-height: 52rem;
    padding: 5.5rem 4rem;
    overflow: hidden;
    border: 1px solid #e6eaf0;
    border-radius: 1.6rem;
    background:
        radial-gradient(circle at 94% 84%, color-mix(in srgb, var(--shop-primary) 14%, transparent), transparent 32%),
        #fff;
}

.main.account .account-dashboard > *:not(.account-dashboard-decoration) {
    position: relative;
    z-index: 2;
    max-width: 78rem;
}

.main.account .account-dashboard-decoration {
    position: absolute;
    right: 4rem;
    bottom: 4rem;
    z-index: 1;
    width: 22rem;
    height: 22rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--shop-primary) 7%, #fff);
    opacity: 0.52;
}

.main.account .account-dashboard-decoration img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12rem;
    height: 12rem;
    transform: translate(-50%, -50%);
    filter: saturate(1.2);
}

.main.account .account-dashboard-welcome {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    margin-bottom: 2.2rem;
}

.main.account .account-dashboard-welcome > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 6rem;
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--shop-primary) 9%, #fff);
    font-size: 2.8rem;
}

.main.account .account-dashboard-welcome h3 {
    margin: 0;
    color: #172033;
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.035em;
}

.main.account .account-dashboard-welcome strong {
    color: var(--shop-primary);
}

.main.account .account-dashboard-intro {
    margin: 0 0 2.4rem;
    color: #727d90;
    font-size: 1.55rem;
}

.main.account .account-dashboard-discounts {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.4rem;
}

.main.account .account-dashboard-discounts span {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.4rem;
    border: 1px solid #dfe7f5;
    border-radius: 1rem;
    background: #f8faff;
    color: #526078;
    font-size: 1.25rem;
}

.main.account .account-dashboard-discounts i,
.main.account .account-dashboard-discounts strong {
    color: var(--shop-primary);
}

.main.account .account-dashboard-note {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin: 3rem 0 3.6rem;
    padding: 2.2rem 2.4rem;
    border: 1px solid color-mix(in srgb, var(--shop-primary) 18%, #e6eaf0);
    border-radius: 1.3rem;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(5px);
}

.main.account .account-dashboard-note > i {
    margin-top: 0.2rem;
    color: var(--shop-primary);
    font-size: 2.1rem;
}

.main.account .account-dashboard-note p {
    margin: 0;
    color: #4f5b70;
    font-size: 1.35rem;
    line-height: 1.7;
}

.main.account .account-dashboard-shop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    min-height: 5.2rem;
    padding: 1.3rem 2.8rem;
    border-radius: 2.6rem;
    box-shadow: 0 1rem 2.2rem rgba(23, 32, 51, 0.18);
}

@media (max-width: 991px) {
    .main.account .account-title {
        margin-left: 0;
    }

    .main.account .account-layout {
        overflow: visible;
    }

    .main.account .account-nav {
        border-right: 0;
        border-bottom: 1px solid #edf0f5;
    }

    .main.account .account-nav .nav-link {
        min-height: 5.4rem;
    }
}

@media (max-width: 767px) {
    .main.account .account-page-content {
        padding-top: 1.5rem;
    }

    .main.account .account-title {
        margin-bottom: 1.8rem;
        font-size: 2.7rem;
    }

    .main.account .account-nav,
    .main.account .account-content {
        padding: 1.8rem;
    }

    .main.account .account-setting-card--payment {
        border-top: 1px solid #e6eaf0;
        border-left: 0;
    }

    .main.account .account-setting-card .card-body {
        min-height: auto;
        padding: 2.4rem 2rem;
    }

    .main.account .account-setting-note {
        margin-top: 2.6rem;
    }

    .main.account .account-preferences-actions .btn {
        justify-content: center;
        width: 100%;
    }

    .main.account .account-section-heading,
    .main.account .account-details-form {
        padding-right: 2rem;
        padding-left: 2rem;
    }

    .main.account .account-password-form {
        margin-right: 2rem;
        margin-left: 2rem;
        padding: 2rem;
    }

    .main.account .account-submit {
        width: 100%;
    }

    .main.account .account-orders-pane {
        min-height: 0;
    }

    .main.account .account-orders thead {
        display: none;
    }

    .main.account .account-orders,
    .main.account .account-orders tbody,
    .main.account .account-orders tr,
    .main.account .account-orders td {
        display: block;
        width: 100%;
    }

    .main.account .account-orders tbody td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
        padding: 1.2rem 1.8rem !important;
        border-top: 0;
    }

    .main.account .account-orders tbody tr {
        padding: 1rem 0;
        border-top: 1px solid #edf0f5;
    }

    .main.account .account-orders tbody td::before {
        content: attr(data-label);
        color: #7b8493;
        font-size: 1.2rem;
        font-weight: 600;
    }

    .main.account .account-orders tbody .order-number::before {
        display: none;
    }

    .main.account .account-orders tbody .order-number {
        justify-content: flex-start;
    }

    .main.account .account-orders .order-action .btn {
        width: auto;
    }

    .main.account .account-orders-pagination nav > div:last-child {
        flex-direction: column;
    }

    .main.account .account-dashboard {
        min-height: 0;
        padding: 3rem 2rem;
    }

    .main.account .account-dashboard-decoration {
        right: -5rem;
        bottom: -5rem;
        width: 17rem;
        height: 17rem;
        opacity: 0.22;
    }

    .main.account .account-dashboard-welcome {
        align-items: flex-start;
    }

    .main.account .account-dashboard-welcome > span {
        flex-basis: 4.8rem;
        width: 4.8rem;
        height: 4.8rem;
        font-size: 2.2rem;
    }

    .main.account .account-dashboard-welcome h3 {
        font-size: 2.2rem;
        overflow-wrap: anywhere;
    }

    .main.account .account-dashboard-note {
        padding: 1.8rem;
    }

    .main.account .account-dashboard-shop {
        width: 100%;
    }
}

/* Modernized storefront pagination */
.toolbox-pagination.shop-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 3.2rem 0 0;
}

.toolbox-pagination.shop-pagination .pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.toolbox-pagination.shop-pagination .page-item {
    display: flex;
    margin: 0;
}

.toolbox-pagination.shop-pagination .page-link {
    min-width: 4.8rem;
    height: 4.8rem;
    padding: 0 1.6rem;
    border: 1px solid #d7dde5;
    border-radius: 1.2rem;
    background: #fff;
    color: #4076b2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.toolbox-pagination.shop-pagination a.page-link:hover,
.toolbox-pagination.shop-pagination a.page-link:focus {
    color: var(--shop-primary);
    border-color: var(--shop-primary);
    background-color: #f8fbff;
    box-shadow: 0 8px 20px rgba(64, 118, 178, 0.08);
    transform: translateY(-1px);
}

.toolbox-pagination.shop-pagination .page-item.active .page-link {
    color: var(--shop-primary);
    border-color: var(--shop-primary);
    background-color: #f8fbff;
    box-shadow: inset 0 0 0 1px var(--shop-primary);
}

.toolbox-pagination.shop-pagination .page-link-prev,
.toolbox-pagination.shop-pagination .page-link-next {
    width: 5.6rem;
    min-width: 5.6rem;
    padding: 0;
    border-radius: 1.4rem;
}

.toolbox-pagination.shop-pagination .page-link-prev i,
.toolbox-pagination.shop-pagination .page-link-next i {
    margin: 0;
    font-size: 2.2rem;
    line-height: 1;
}

.toolbox-pagination.shop-pagination .page-item.disabled .page-link {
    color: #c3cad5;
    border-color: #e5e7eb;
    background-color: #f3f4f6;
    box-shadow: none;
    transform: none;
    cursor: default;
}

.toolbox-pagination.shop-pagination .page-item-dots .page-link {
    color: #94a3b8;
    background: transparent;
    border-style: dashed;
    box-shadow: none;
}

.toolbox-pagination.shop-pagination .page-item-dots::before {
    content: none;
}

.toolbox-pagination.shop-pagination .pagination-jump {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    color: #667085;
    font-size: 1.4rem;
}

.toolbox-pagination.shop-pagination .pagination-jump__input {
    width: 6.4rem;
    height: 4.2rem;
    padding: 0 0.8rem;
    border: 1px solid #d7dde5;
    border-radius: 1rem;
    background: #fff;
    color: #111827;
    text-align: center;
}

.toolbox-pagination.shop-pagination .pagination-jump__button {
    height: 4.2rem;
    padding: 0 1.4rem;
    border: 1px solid var(--shop-primary);
    border-radius: 1rem;
    background: #fff;
    color: var(--shop-primary);
    cursor: pointer;
}

.toolbox-pagination.shop-pagination .pagination-jump__button:hover,
.toolbox-pagination.shop-pagination .pagination-jump__button:focus {
    background: #f8fbff;
}

.toolbox-pagination.shop-pagination .pagination-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 767px) {
    .toolbox-pagination.shop-pagination {
        justify-content: center;
        gap: 1.4rem;
        margin-top: 2.4rem;
    }

    .toolbox-pagination.shop-pagination .pagination {
        width: 100%;
        gap: 0.6rem;
    }

    .toolbox-pagination.shop-pagination .page-link {
        min-width: 4.2rem;
        height: 4.2rem;
        padding: 0 1.2rem;
        border-radius: 1rem;
        font-size: 1.6rem;
    }

    .toolbox-pagination.shop-pagination .page-link-prev,
    .toolbox-pagination.shop-pagination .page-link-next {
        width: 4.8rem;
        min-width: 4.8rem;
    }

    .toolbox-pagination.shop-pagination .pagination-jump {
        width: 100%;
    }
}

/* Compact "show count" select in catalog toolbar */
select.form-control:not([multiple]):not([size]) {
    padding-right: 3rem;
}

.toolbox-item.toolbox-show .form-control {
    width: 6rem;
    min-width: 6rem;
    height: 4.2rem;
    padding: 0 3rem 0 1rem;
    border: 1px solid #d7dde5;
    border-radius: 1.2rem;
    background-color: #fff;
    color: #111827;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.2;
}

.toolbox-item.toolbox-show .form-control:focus {
    border-color: var(--shop-primary);
    box-shadow: 0 0 0 3px rgba(64, 118, 178, 0.08);
}

.toolbox-item.toolbox-show.select-box::before {
    right: 1rem;
    font-size: 1rem;
}

/* Category layout switcher */
.shop-category .toolbox-layout .btn-layout {
    padding: 0;
    border: 0;
    background: transparent;
}

.shop-category .product-wrapper.category-products-list {
    display: flex;
    gap: 0;
}

.shop-category .product-wrapper.category-products-list > * {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 2rem;
}

.shop-category .category-products-list .product {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.shop-category .category-products-list .product-media {
    flex: 0 0 24rem;
    max-width: 24rem;
    margin: 0;
}

.shop-category .category-products-list .product-media img {
    width: 100%;
    height: 100%;
    min-height: 24rem;
    object-fit: cover;
}

.shop-category .category-products-list .product-details {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 2rem 3rem;
}

.shop-category .category-products-list .product-name {
    min-height: 0;
    -webkit-line-clamp: 3;
}

.shop-category .category-products-list .product-action {
    max-width: 38rem;
}

@media (max-width: 575px) {
    .shop-category .category-products-list .product-media {
        flex-basis: 13rem;
        max-width: 13rem;
    }

    .shop-category .category-products-list .product-media img {
        min-height: 18rem;
    }

    .shop-category .category-products-list .product-details {
        padding: 1.2rem;
    }
}
