/* Category page — scoped to the 2027 storefront. */

.r27-category-breadcrumb {
    background: #f7f7f5;
    border-bottom: 1px solid var(--r27-line);
}

.r27-category-breadcrumb ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 0;
    min-height: 52px;
    padding: 11px 0;
}

.r27-category-breadcrumb li {
    display: flex;
    align-items: center;
    min-width: 0;
    color: var(--r27-muted);
    font-size: .75rem;
    line-height: 1.55;
}

.r27-category-breadcrumb li + li::before {
    content: '';
    width: 5px;
    height: 5px;
    margin: 0 12px;
    border-top: 1px solid #a8a49d;
    border-right: 1px solid #a8a49d;
    transform: rotate(45deg);
    flex: none;
}

.r27-category-breadcrumb a {
    transition: color .2s ease;
}

.r27-category-breadcrumb a:hover {
    color: var(--r27-gold-dark);
}

.r27-category-breadcrumb li:last-child {
    color: var(--r27-ink);
    font-weight: 500;
}

.r27-category-hero.bg-category {
    position: relative;
    min-height: 370px;
    overflow: hidden;
    background-color: var(--r27-ink) !important;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    isolation: isolate;
}

.r27-category-hero::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg, rgba(20, 21, 24, .88) 0%, rgba(20, 21, 24, .63) 37%, rgba(20, 21, 24, .08) 68%, transparent 100%);
}

.r27-category-hero .bg-image-mobile {
    display: none;
}

.r27-category-hero > .r27-container {
    display: flex;
    align-items: center;
    min-height: 370px;
}

.r27-category-hero-content {
    width: min(600px, 58%);
    padding: 48px 0;
}

.r27-category-hero .r27-category-title {
    position: relative;
    margin: 0 0 22px;
    padding: 0 0 18px;
    color: #fff;
    font-family: 'Be Vietnam Pro', Arial, sans-serif;
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 600;
    letter-spacing: -.04em;
    line-height: 1.15;
    text-align: left;
    text-transform: none;
}

.r27-category-hero .r27-category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 44px;
    height: 2px;
    background: var(--r27-gold);
}

.r27-category-hero .r27-category-intro {
    width: 100%;
    padding: 0;
    color: rgba(255, 255, 255, .84);
    background: transparent;
    font-family: 'Be Vietnam Pro', Arial, sans-serif;
    font-size: .9375rem;
    font-style: normal;
    line-height: 1.85;
    text-align: left;
}

.r27-category-read-more {
    display: flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    margin-top: 18px;
    color: var(--r27-gold-light) !important;
    font-size: .8125rem;
    font-weight: 600;
    transition: color .2s ease, gap .2s ease;
}

.r27-category-read-more:hover {
    gap: 12px;
    color: #fff !important;
}

.r27-category-catalog.content-page-product {
    display: block;
    padding: 36px 0 62px;
    background: var(--r27-soft);
}

.r27-category-catalog-body,
.r27-category-main {
    display: block;
    width: 100%;
}

.r27-category-filter-grid.row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px 16px;
    margin: 0 0 28px;
    padding: 24px;
    border: 1px solid var(--r27-line);
    border-radius: var(--r27-radius);
    background: #fff;
}

.r27-category-filter-grid > [class*="col-"] {
    width: auto;
    max-width: none;
    padding: 0;
    flex: none;
}

.r27-category-filter-grid .form-group {
    margin: 0;
}

.r27-category-filter-grid label {
    display: block;
    margin: 0 0 7px;
    color: var(--r27-ink);
    font-family: 'Be Vietnam Pro', Arial, sans-serif;
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.5;
}

.r27-category-filter-grid .form-control {
    width: 100%;
    height: 47px;
    padding: 0 38px 0 13px;
    border: 1px solid var(--r27-line);
    border-radius: 3px;
    background-color: #fff;
    color: #4c4a46;
    font-family: 'Be Vietnam Pro', Arial, sans-serif;
    font-size: .8125rem;
    line-height: 47px;
    box-shadow: none;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.r27-category-filter-grid .form-control:hover,
.r27-category-filter-grid .form-control:focus {
    border-color: var(--r27-gold);
    box-shadow: 0 0 0 3px rgba(176, 151, 109, .12);
}

.r27-category-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    min-height: 58px;
    margin: 0 0 20px;
    padding: 9px 12px 9px 18px;
    border: 1px solid var(--r27-line);
    border-radius: var(--r27-radius);
    background: #fff;
}

.r27-category-catalog .r27-category-toolbar .number-product {
    color: var(--r27-ink);
    font-family: 'Be Vietnam Pro', Arial, sans-serif;
    font-size: .8125rem;
    font-weight: 500;
    line-height: 1.5;
}

.r27-category-catalog .view-type {
    margin-left: auto;
}

.r27-category-catalog .view-type-item {
    display: flex;
    gap: 4px;
    padding: 0;
    border: 0;
}

.r27-category-catalog .view-type-item a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 7px 11px;
    border: 1px solid transparent;
    border-radius: 3px;
    color: var(--r27-muted);
    font-family: 'Be Vietnam Pro', Arial, sans-serif;
    font-size: .7rem;
    font-weight: 500;
    text-transform: none;
}

.r27-category-catalog .view-type-item a:hover,
.r27-category-catalog .view-type-item a.active {
    border-color: var(--r27-line);
    background: var(--r27-soft);
    color: var(--r27-gold-dark);
}

.r27-category-catalog .filter {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 0 0 10px;
    border-left: 1px solid var(--r27-line);
    font-family: 'Be Vietnam Pro', Arial, sans-serif;
}

.r27-category-catalog .filter span {
    margin: 0;
    color: var(--r27-muted);
    font-size: .7rem;
    opacity: 1;
    white-space: nowrap;
}

.r27-category-catalog .filter select {
    min-width: 142px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--r27-line);
    border-radius: 3px;
    background: #fff;
    color: var(--r27-ink);
    font-family: 'Be Vietnam Pro', Arial, sans-serif;
    font-size: .75rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
}

.r27-category-catalog .filter select:focus {
    border-color: var(--r27-gold);
    box-shadow: 0 0 0 3px rgba(176, 151, 109, .12);
}

.r27-category-products.product-section {
    margin: 0 -8px;
    padding: 0;
}

.r27-category-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px 0;
}

.r27-category-products > .product-section-item {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0 8px;
    flex: none;
}

.r27-category-products-grid .product-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 14px;
    overflow: hidden;
    border: 1px solid var(--r27-line);
    border-radius: var(--r27-radius);
    background: #fff;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.r27-category-products-grid .product-section-item:hover .product-item {
    border-color: var(--r27-gold-light);
    box-shadow: 0 8px 24px rgba(36, 37, 41, .07);
    transform: translateY(-3px);
}

.r27-category-products-grid .image-product {
    position: relative;
    width: 100%;
    margin: 0 0 14px;
    padding: 0;
}

.r27-category-products-grid .image-product > a {
    display: block;
}

.r27-category-products-grid .image-product img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.r27-category-products-grid .description-product {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    margin: 0;
    text-align: left;
}

.r27-category-products-grid .product-attribute {
    height: auto;
}

.r27-category-products-grid .product-title {
    display: -webkit-box;
    min-height: 3em;
    overflow: hidden;
    color: var(--r27-ink);
    font-family: 'Be Vietnam Pro', Arial, sans-serif;
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.r27-category-products-grid .product-title:hover {
    color: var(--r27-gold-dark);
}

.r27-category-products-grid .attribute {
    min-height: 1.7em;
    margin-top: 7px;
    color: var(--r27-muted);
    font-size: .7rem;
    line-height: 1.7;
}

.r27-category-products-grid .description-product > p {
    margin: auto 0 0;
    padding-top: 14px;
    color: var(--r27-gold-dark);
    font-family: 'Be Vietnam Pro', Arial, sans-serif;
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1.55;
}

.r27-category-products-grid .description-product > p i {
    font-style: normal;
}

.r27-category-products .line-through {
    color: #99958e;
    font-size: .75rem;
    font-weight: 400;
}

.r27-category-products .image-product .out-of-stock {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    padding: 12px;
    border: 0;
    border-radius: var(--r27-radius);
    background: rgba(250, 248, 244, .62);
    color: #78613b;
    font-size: .8125rem;
    font-weight: 600;
    line-height: 1.4;
    box-shadow: none;
    pointer-events: none;
}

.r27-category-products .image-product .out-of-stock > span {
    padding: 8px 18px;
    border: 1px solid #ded3c0;
    border-radius: 999px;
    background: #fffdf9;
    letter-spacing: .03em;
    box-shadow: 0 3px 12px rgba(36, 37, 41, .08);
}

.r27-category-products .product-hight-point {
    top: 8px;
    right: 8px;
    z-index: 2;
}

.r27-category-products .product-sale-note + .product-hight-point {
    top: 60px;
}

.r27-category-products-list {
    display: block;
}

.r27-category-products-list > .product-section-item {
    margin-bottom: 14px;
}

.r27-category-products-list .product-item-viewlist.row {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    margin: 0;
    padding: 16px;
    border: 1px solid var(--r27-line);
    border-radius: var(--r27-radius);
    background: #fff;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.r27-category-products-list .product-section-item:hover .product-item-viewlist {
    border-color: var(--r27-gold-light);
    box-shadow: 0 8px 24px rgba(36, 37, 41, .06);
}

.r27-category-products-list .product-item-viewlist > [class*="col-"] {
    width: auto;
    max-width: none;
    padding: 0;
    flex: none;
}

.r27-category-products-list .image-product {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

.r27-category-products-list .image-product img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.r27-category-products-list .description-product {
    width: 100%;
    margin: 0;
    text-align: left;
}

.r27-category-products-list .description-product > .row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 24px;
    align-items: center;
    margin: 0;
}

.r27-category-products-list .description-product > .row > [class*="col-"] {
    width: auto;
    max-width: none;
    padding: 0;
    flex: none;
}

.r27-category-products-list .product-attribute {
    height: auto;
}

.r27-category-products-list .product-title {
    color: var(--r27-ink);
    font-family: 'Be Vietnam Pro', Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.5;
}

.r27-category-products-list .attribute {
    margin-top: 6px;
    color: var(--r27-muted);
    font-size: .75rem;
}

.r27-category-products-list .des {
    display: -webkit-box;
    margin-top: 13px;
    overflow: hidden;
    color: var(--r27-muted);
    font-family: 'Be Vietnam Pro', Arial, sans-serif;
    font-size: .8125rem;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.r27-category-products-list .des p {
    margin: 0;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

.r27-category-products-list .price-viewlist {
    color: var(--r27-gold-dark);
    font-family: 'Be Vietnam Pro', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.6;
    text-align: right;
}

.r27-category-products-list .price-viewlist i {
    font-style: normal;
}

.r27-category-catalog .pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    float: none;
    margin: 34px 0 0;
}

.r27-category-catalog .page-item {
    margin: 0;
}

.r27-category-catalog .page-link {
    display: grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    padding: 5px 10px;
    border: 1px solid var(--r27-line);
    border-radius: 3px;
    background: #fff;
    color: var(--r27-ink);
    font-size: .75rem;
    box-shadow: none;
}

.r27-category-catalog .page-link:hover {
    border-color: var(--r27-gold);
    color: var(--r27-gold-dark);
}

.r27-category-catalog .page-item.active .page-link {
    border-color: var(--r27-gold);
    background: var(--r27-gold);
    color: var(--r27-ink);
}

.r27-category-catalog .page-item.disabled .page-link {
    background: #f2f1ee;
    color: #aaa7a1;
}

.r27-category-description.wrapper.read-more {
    padding: 48px 0 0;
}

.r27-category-description > .r27-container {
    width: 100%;
}

.r27-category-description-card {
    padding: 38px clamp(22px, 4vw, 52px);
    border: 1px solid var(--r27-line);
    border-radius: var(--r27-radius);
    background: #fff;
    color: #4d4a45;
    overflow-wrap: anywhere;
}

.r27-category-description-card:empty {
    display: none;
}

.r27-category-description-card h1,
.r27-category-description-card h2,
.r27-category-description-card h3,
.r27-category-description-card h4,
.r27-category-description-card h5,
.r27-category-description-card h6 {
    margin: 30px 0 13px;
    color: var(--r27-ink);
    font-family: 'Be Vietnam Pro', Arial, sans-serif;
    font-weight: 600;
    line-height: 1.45;
}

.r27-category-description-card h1:first-child,
.r27-category-description-card h2:first-child,
.r27-category-description-card h3:first-child {
    margin-top: 0;
}

.r27-category-description-card h1 {
    font-size: 1.55rem;
}

.r27-category-description-card h2 {
    font-size: 1.375rem;
}

.r27-category-description-card h3 {
    font-size: 1.125rem;
}

.r27-category-description-card p,
.r27-category-description-card li,
.r27-category-description-card td,
.r27-category-description-card th {
    color: #4d4a45;
    font-family: 'Be Vietnam Pro', Arial, sans-serif !important;
    font-size: .9375rem;
    line-height: 1.9;
}

.r27-category-description-card p {
    margin: 0 0 16px;
}

.r27-category-description-card ul,
.r27-category-description-card ol {
    margin: 0 0 20px;
    padding-left: 24px;
}

.r27-category-description-card ul {
    list-style: disc;
}

.r27-category-description-card ol {
    list-style: decimal;
}

.r27-category-description-card li {
    margin-bottom: 7px;
}

.r27-category-description-card a {
    color: var(--r27-gold-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.r27-category-description-card img {
    width: auto;
    max-width: 100%;
    margin: 22px auto;
}

.r27-category-description-card figure {
    max-width: 100%;
    margin: 24px auto;
    text-align: center;
}

.r27-category-description-card figcaption {
    margin-top: 9px;
    color: var(--r27-muted);
    font-size: .75rem;
    line-height: 1.65;
}

.r27-category-description-card iframe {
    display: block;
    width: 100%;
    max-width: 720px;
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 22px auto;
    border: 0;
}

.r27-category-description-card .table-of-content {
    margin: 20px 0 28px;
    padding: 20px 22px;
    border: 1px solid var(--r27-line);
    border-left: 3px solid var(--r27-gold);
    background: var(--r27-soft);
}

.r27-category-description-card .table-of-content ul li a {
    color: var(--r27-ink) !important;
    font-size: .8125rem;
    font-weight: 500;
    line-height: 1.65;
    text-transform: none;
}

@media (max-width: 1100px) {
    .r27-category-filter-grid.row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .r27-category-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .r27-category-breadcrumb ul {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .r27-category-breadcrumb ul::-webkit-scrollbar {
        display: none;
    }

    .r27-category-breadcrumb li {
        white-space: nowrap;
    }

    .r27-category-hero.bg-category {
        min-height: 0;
        background-image: none !important;
    }

    .r27-category-hero::before {
        display: none;
    }

    .r27-category-hero .bg-image-mobile {
        display: block;
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: cover;
    }

    .r27-category-hero > .r27-container {
        display: block;
        width: 100%;
        min-height: 0;
    }

    .r27-category-hero-content {
        width: 100%;
        padding: 28px 16px 30px;
        background: var(--r27-ink);
    }

    .r27-category-hero .r27-category-title {
        margin-bottom: 16px;
        padding-bottom: 14px;
        font-size: 1.75rem;
    }

    .r27-category-hero .r27-category-intro {
        font-size: .8125rem;
        line-height: 1.75;
    }

    .r27-category-catalog.content-page-product {
        padding: 24px 0 44px;
    }

    .r27-category-filter-grid.row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 12px;
        margin-bottom: 20px;
        padding: 18px;
    }

    .r27-category-toolbar {
        padding: 12px;
    }

    .r27-category-catalog .view-type {
        margin-left: auto;
    }

    .r27-category-catalog .filter {
        width: 100%;
        padding: 10px 0 0;
        border-top: 1px solid var(--r27-line);
        border-left: 0;
    }

    .r27-category-catalog .filter select {
        flex: 1;
        min-width: 0;
    }

    .r27-category-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 0;
    }

    .r27-category-products-grid .product-item {
        padding: 10px;
    }

    .r27-category-products-grid .product-title {
        font-size: .8125rem;
    }

    .r27-category-products-grid .description-product > p {
        font-size: .8125rem;
    }

    .r27-category-products-list .product-item-viewlist.row {
        grid-template-columns: 145px minmax(0, 1fr);
        gap: 14px;
        padding: 12px;
    }

    .r27-category-products-list .description-product > .row {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .r27-category-products-list .des {
        -webkit-line-clamp: 2;
    }

    .r27-category-products-list .price-viewlist {
        text-align: left;
    }

    .r27-category-description.wrapper.read-more {
        padding-top: 34px;
    }

    .r27-category-description-card {
        padding: 26px 18px;
    }

    .r27-category-description-card p,
    .r27-category-description-card li,
    .r27-category-description-card td,
    .r27-category-description-card th {
        font-size: .875rem;
        line-height: 1.8;
    }
}

@media (max-width: 480px) {
    .r27-category-filter-grid.row {
        grid-template-columns: minmax(0, 1fr);
    }

    .r27-category-catalog .view-type-item a {
        padding-right: 8px;
        padding-left: 8px;
    }

    .r27-category-products-list .product-item-viewlist.row {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 12px;
        padding: 10px;
    }

    .r27-category-products-list .product-title {
        font-size: .875rem;
    }

    .r27-category-products-list .des {
        display: none;
    }
}
