.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.product-detail-main {
    margin-top: 2.5rem;
}

.container-detail {
    align-items: center;
    max-width: 1120px;
    margin: 20px auto;
}

.bread-crumb {
    background: #eeeeee;
    padding: 13px 15px;
}

.product-detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 2.5rem;
}

.product-detail-breadcrumb__home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    color: var(--header-muted);
    font-size: 0.875rem;
    text-decoration: none;
}

.product-detail-breadcrumb__sep {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    color: #c8c8c8;
    font-size: 0.625rem;
}

.product-detail-breadcrumb__link,
.product-detail-breadcrumb__current {
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--header-muted);
    text-decoration: none;
}

.product-detail-breadcrumb__link:hover {
    color: var(--header-primary-dark);
}

.product-detail {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.product-detail-right {
    width: calc(100% - 37rem);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.product-detail-right h1 {
    display: block;
    color: #000;
    font-size: 2rem;
    line-height: 1.25;
    margin-bottom: 0;
}

.price-new-detail {
    color: var(--header-primary-dark);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.2;
}

.price-new-detail--contact {
    font-size: 1rem;
    font-weight: 500;
    color: var(--header-muted);
}

.add-cart-product-detail {
    display: flex;
    margin-top: 0.5rem;
    align-items: center;
    gap: 1rem;
}

.product-quantity-detail {
    border: 1px solid #d9d9d9;
    display: flex;
    align-items: center;
    border-radius: 0.25rem;
    overflow: hidden;
    height: 2.5rem;
}

.quantity-minus,
.quantity-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 400;
    width: 2.5rem;
    height: 2.5rem;
    text-align: center;
    border: none;
    background: #fff;
    color: var(--header-muted);
    cursor: pointer;
    line-height: 1;
}

.quantity-minus i,
.quantity-plus i {
    font-size: 1.5rem;
    line-height: 1;
    pointer-events: none;
}

.qty-product {
    width: 2.5rem;
    border: none;
    outline: none;
    text-align: center;
    padding: 0;
    font-size: 1rem;
    height: 2.5rem;
    border-left: 1px solid #d9d9d9;
    border-right: 1px solid #d9d9d9;
    color: var(--header-muted);
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.add-cart-product-detail-btn {
    margin-left: 0;
    padding: 0.625rem 2rem;
    background: #fff;
    color: var(--header-primary-dark);
    border-radius: 0.25rem;
    border: 1px solid var(--header-primary-dark);
    cursor: pointer;
    min-width: 13rem;
    min-height: 2.75rem;
}

.add-cart-product-detail-btn span {
    text-transform: none;
    font-weight: 500;
    font-size: 1rem;
}

.add-cart-product-detail-btn.is-out-of-stock {
    opacity: 0.5;
    cursor: not-allowed;
}

.buy-now-product-detail-btn.is-out-of-stock {
    opacity: 0.5;
    cursor: not-allowed;
}

.product-detail-out-of-stock-message {
    margin: 0.5rem 0 0;
    padding: 0.25rem 0;
    color: #dc3545;
}

/* product-right */
.product-detail-left {
    width: 100%;
    max-width: 37rem;
}

.product-detail-left .MagicZoom {
    border-radius: 0;
    padding: 0;
    border: none;
    background: #f3f3f3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
}

.product-detail-left .MagicZoom img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-detail-gallery {
    position: relative;
    margin-top: 0.75rem;
}

.thumbnail-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.thumbnail-grid img {
    border-radius: 5px;
    height: auto;
    border-bottom: 0px !important;
    padding-bottom: 0px !important;
    width: 100% !important;
}

.product-detail-left .social-share {
    margin-top: 0.75rem;
}

.product-detail-price-panel {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--header-lang-bg);
    padding: 0.875rem;
}

.product-detail-discount-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.0625rem 0.375rem;
    border-radius: 0.25rem;
    background: #fff;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--header-text);
}

.product-detail-specs {
    border-top: 1px solid var(--header-border);
}

.product-detail-specs__row {
    display: grid;
    grid-template-columns: minmax(8rem, 11rem) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--header-border);
}

.product-detail-specs__label {
    font-family: "Inter", system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
}

.product-detail-specs__value {
    font-family: "Inter", system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #333;
}

.product-detail-variants {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.product-detail-variants__btn {
    border: 1px solid transparent;
    background: transparent;
    color: var(--header-muted);
    border-radius: 0.25rem;
    padding: 0.125rem 0.5rem;
    font-size: 1rem;
    line-height: 1.5;
    font-family: "Inter", system-ui, sans-serif;
    cursor: pointer;
    font-weight: 500;
}

.product-detail-variants__btn.is-active {
    color: var(--header-badge);
    border-color: var(--header-badge);
}

.product-qty-label {
    font-size: 1rem;
    color: var(--header-muted);
    font-family: "Inter", system-ui, sans-serif;
    line-height: 1.6;
    font-weight: 500;
}

.product-detail-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.buy-now-product-detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--header-primary-dark);
    background: var(--header-primary-dark);
    color: var(--header-border);
    border-radius: 0.25rem;
    min-height: 2.75rem;
    min-width: 11rem;
    padding: 0.625rem 2rem;
    font-size: 1rem;
    font-family: "Inter", system-ui, sans-serif;
    cursor: pointer;
    font-weight: 400;
}

.add-cart-product-detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 18rem;
    min-height: 2.75rem;
    font-size: 1rem;
    font-weight: 500;
}

.add-cart-product-detail-btn span {
    font-size: inherit;
}

.next-left,
.next-right {
    background: #ccc;
    padding: 5px 8px;
    font-size: 20px;
    align-content: center;
    max-height: 30px;
}

.title-product-detail {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.title-product-detail li {
    border-radius: 5px;
    font-size: 14px;
    text-transform: uppercase;
    background: #ccc;
    padding: 10px 15px;
    list-style: none;
}

.title-product-detail li:hover {
    background: #ffde1f;
}

.specifications-product {
    padding-top: 10px;
    margin-top: 10px;
    border-top: #ccc solid 1px;
}

.specifications-product span {
    font-size: 18px;
    color: #f1c40f;
    font-weight: 700;
    text-transform: capitalize;
    margin-top: 20px;
}

.product-desc-information ul li {
    line-height: 1.2;
    margin: 15px 0px 0px 15px;
    font-size: 18px;
}

.suite-product {
    font-size: 18px;
    color: #0f0f0f;
    font-weight: 700;
    margin-top: 20px;
}

.img-info {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 5px;
    margin-top: 20px;
}

.img-info img {
    width: 100%;
    border-radius: 5px;
}

.add-cart-product-detail-btn-cat {
    padding: 10px 0px;
    background: #fd6e1d;
    color: #fff;
    border-radius: 5px;
    margin: 0px auto;
    white-space: nowrap;
    text-align: center;
    max-width: 90%;
}

.add-cart-product-detail-btn-cat span {
    text-transform: uppercase;
    font-weight: 400;
    font-size: 14px;
}

.product-viewed {
    margin-top: 60px;
}

.product-item-content-cat {
    text-align: center;
}

.product-list-cat-ot {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    gap: 5px;
}

.product-item-cat a img {
    width: 200px;
    height: 200px;
}

.product-item-cat {
    border: #ccc solid 1px;
    height: 350px;
    line-height: 1.7;
}

.price-new-detail-cat {
    color: #ff8500;
    font-size: 20px;
    font-weight: 700;
}

.price-old-detail-cat {
    margin-left: 10px;
    color: #666;
    text-decoration: line-through;
    align-content: center;
}

.name-product-cat {
    font-weight: 700;
}

.title-product-detail {
    margin-bottom: 16px;
}

.title-product-detail li {
    font-weight: 600;
}

/** Product filter **/
.title-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.filter-section {
    display: flex;
    gap: 15px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-select {
    padding: 8px 30px 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 16px 16px;

    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.filter-select:hover {
    border-color: #9ca3af;
}

.filter-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.filter-select-simple {
    padding: 8px 25px 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
}

.desc-product-detail {
    padding-bottom: 36px;
}

.desc-product-detail__title {
    margin: 0;
    color: #00b298;
    text-align: left;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

.product-detail-decorator {
    margin-top: 70px;
}

.product-photo-slider {
    margin-top: 1.5rem;
}

.product-content-information--styled .ckeditor-detail-content {
    margin-top: 1.25rem;
}

.product-content-information--styled .ckeditor-detail-content>table {
    width: 100% !important;
    border-collapse: separate;
    border-spacing: 0 2.5rem;
    table-layout: fixed;
}

.product-content-information--styled .ckeditor-detail-content>table>tbody>tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 3.375rem;
    align-items: center;
}

.product-content-information--styled .ckeditor-detail-content>table>tbody>tr>td {
    vertical-align: middle;
    width: 100% !important;
    padding: 0 !important;
}

.product-content-information--styled .ckeditor-detail-content strong {
    display: inline-block;
    margin-bottom: 1.5rem;
    font-family: "BD StreetSign Sans", "BD_StreetSign_Sans", "Inter", system-ui, sans-serif !important;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #333;
    text-transform: uppercase;
}

.product-content-information--styled .ckeditor-detail-content p,
.product-content-information--styled .ckeditor-detail-content span,
.product-content-information--styled .ckeditor-detail-content li {
    font-family: "Inter", system-ui, sans-serif !important;
    font-size: 1rem !important;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #333;
}

.product-content-information--styled .ckeditor-detail-content ul,
.product-content-information--styled .ckeditor-detail-content ol {
    margin: 1.5rem 0 0 !important;
    padding: 0 0 0 2rem !important;
    border-left: 1px solid var(--header-border);
}

.product-content-information--styled .ckeditor-detail-content ul li,
.product-content-information--styled .ckeditor-detail-content ol li {
    margin: 0 !important;
}

.product-content-information--styled .ckeditor-detail-content ul li+li,
.product-content-information--styled .ckeditor-detail-content ol li+li {
    margin-top: 1.25rem !important;
}

.product-content-information--styled .ckeditor-detail-content img {
    display: block;
    width: 100% !important;
    max-width: 33.75rem !important;
    height: auto !important;
    object-fit: cover;
    margin-inline: auto;
}

.product-content-information--styled .ckeditor-detail-content>table>tbody>tr:nth-child(odd)>td:last-child img,
.product-content-information--styled .ckeditor-detail-content>table>tbody>tr:nth-child(even)>td:first-child img {
    aspect-ratio: 540 / 314;
}

.product-content-information--styled .ckeditor-detail-content>table>tbody>tr:nth-child(even)>td:last-child img,
.product-content-information--styled .ckeditor-detail-content>table>tbody>tr:nth-child(4)>td:first-child img {
    aspect-ratio: 540 / 364;
}

@media (max-width: 991px) {
    .product-content-information--styled .ckeditor-detail-content>table {
        border-spacing: 0 2rem;
    }

    .product-content-information--styled .ckeditor-detail-content>table>tbody>tr {
        grid-template-columns: 1fr;
        row-gap: 1.25rem;
    }

    .product-content-information--styled .ckeditor-detail-content strong {
        margin-bottom: 1rem;
        font-size: 1.75rem;
        line-height: 1.3;
    }
}

/** Product relation **/
.product-detail-relation {
    padding: 2.5rem 0 3rem;
}

.product-detail-relation__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-detail-relation__title {
    margin: 0;
    font-family: "BD StreetSign Sans", "BD_StreetSign_Sans", "Inter", system-ui, sans-serif;
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #333;
}

.product-detail-relation__view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.25rem;
    text-decoration: none;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #333;
}

.product-detail-relation__view-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: #313b3c;
    color: #fff;
    font-size: 0.625rem;
}

.product-detail-relation__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.4375rem;
}

.product-detail-relation__item .product-card-f {
    display: flex;
    height: 100%;
    max-width: 100%;
}

.product-detail-relation__item .product-card-f__body,
.product-detail-relation__item .product-card-f__info {
    flex: 1 1 auto;
}

.product-detail-relation__item .product-card-f__title {
    min-height: 3.375rem;
}

.product-detail-relation__item .product-card-f__meta {
    min-height: 1.3125rem;
}

.product-detail-relation__item .product-card-f__variants {
    min-height: 1.625rem;
}

.product-detail-relation__item .product-card-f__cart-btn {
    margin-top: auto;
}

.product-card-f {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    max-width: 13.125rem;
    transition: transform 0.2s ease;
}

.product-card-f__media-link {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.product-card-f__media {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f3f3f3;
    position: relative;
    overflow: hidden;
}

.product-card-f__img-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.product-card-f__img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0.5rem;
    transition: transform 0.25s ease;
}

.product-card-f:hover {
    transform: translateY(-2px);
}

.product-card-f:hover .product-card-f__img {
    transform: scale(1.06);
}

.product-card-f__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.625rem;
    width: 100%;
}

.product-card-f__info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.625rem;
    width: 100%;
}

.product-card-f__title {
    margin: 0;
    font-family: "Inter", system-ui, sans-serif;
    font-weight: 500;
    font-size: 1.125rem;
    line-height: 1.5;
    color: #333;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.product-card-f__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-card-f__title a:hover {
    color: var(--header-primary-dark);
}

.product-card-f__meta {
    margin: 0;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--header-muted);
}

.product-card-f__price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.product-card-f__price {
    font-family: "Inter", system-ui, sans-serif;
    font-weight: 500;
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--header-primary-dark);
}

.product-card-f__price--contact {
    font-size: 1rem;
    color: var(--header-muted);
}

.product-card-f__discount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.0625rem 0.375rem;
    border-radius: 0.25rem;
    background: var(--home-feature-card-bg);
    font-family: "Inter", system-ui, sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--header-text);
}

.product-card-f__variants {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.product-card-f__variant-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0.0625rem 0.375rem;
    border-radius: 0.25rem;
    border: 1px solid transparent;
    background: transparent;
    font-family: "Inter", system-ui, sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--header-muted);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.product-card-f__variant-btn:hover {
    color: var(--header-badge);
}

.product-card-f__variant-btn:focus-visible {
    outline: 2px solid var(--header-badge);
    outline-offset: 2px;
}

.product-card-f__variant-btn--active {
    border-color: var(--header-badge);
    color: var(--header-badge);
}

.product-card-f__cart-btn {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 0.5rem 0.375rem;
    border: 1px solid var(--header-primary-dark);
    border-radius: 0.25rem;
    background: transparent;
    font-family: "Inter", system-ui, sans-serif;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--header-primary-dark);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.product-card-f__cart-btn:hover {
    background: rgba(0, 178, 152, 0.08);
}

.product-card-f__cart-btn:focus-visible {
    outline: 2px solid var(--header-primary-dark);
    outline-offset: 2px;
}

.product-list-page {
    background: var(--bg-body);
}

.product-list-page__sr-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.product-list-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-block: 1.5rem 2.5rem;
}

.product-list-head,
.product-list-content {
    display: grid;
    grid-template-columns: minmax(11.25rem, 13.75rem) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.product-list-head {
    align-items: center;
}

.product-list-sidebar-title {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.product-list-sidebar__home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    color: var(--header-muted);
    font-size: 0.875rem;
}

.product-list-sidebar__sep {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    color: #c8c8c8;
    font-size: 0.625rem;
}

.product-list-sidebar__crumb-text {
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--header-muted);
}

.product-list-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.product-list-main {
    width: 100%;
    min-width: 0;
}

.product-list-nav__link {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 0.5rem 0.875rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--header-muted);
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.product-list-nav__link:hover {
    color: var(--header-primary-dark);
}

.product-list-nav__link.is-active {
    border-color: var(--header-primary-dark);
    color: var(--header-primary-dark);
    background: var(--bg-white);
}

.product-list-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    min-width: 0;
}

.product-list-content .product-list-main {
    display: flex;
    flex-direction: column;
}

.product-list-content .product-list-grid,
.product-list-content .product-list-empty,
.product-list-content .page-nav {
    margin-top: 0;
}

.product-list-content .product-list-grid {
    margin-bottom: 1.5rem;
}

.product-list-search-form {
    flex: 1 1 16rem;
    min-width: min(100%, 18rem);
}

.product-list-search {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--mega-pill-border);
    background: var(--bg-white);
}

.product-list-search__icon {
    display: inline-flex;
    color: var(--header-primary-dark);
    font-size: 1rem;
}

.product-list-search__input {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    background: transparent;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--header-text);
}

.product-list-search__input::placeholder {
    color: var(--header-muted);
}

.product-list-search__input:focus {
    outline: none;
}

.product-list-search:focus-within {
    border-color: var(--header-primary-dark);
    box-shadow: 0 0 0 2px rgba(0, 178, 152, 0.15);
}

.product-list-sort-form {
    flex: 0 0 auto;
}

.product-list-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-list-sort__label {
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.875rem;
    color: var(--header-text);
}

.product-list-sort__select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid var(--mega-pill-border);
    border-radius: 0.25rem;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.875rem;
    color: var(--header-text);
    background-color: var(--bg-white);
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1rem 1rem;
}

.product-list-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 0.75rem;
    row-gap: 1.5rem;
    margin-bottom: 1.5rem;
    justify-items: start;
    align-items: stretch;
}

.product-list-grid__item {
    width: 100%;
    max-width: 13.125rem;
    justify-self: start;
    display: flex;
    height: 100%;
}

.product-list-grid__item .product-card-f {
    max-width: 100%;
    height: 100%;
}

.product-list-grid__item .product-card-f__body {
    flex: 1;
}

.product-list-grid__item .product-card-f__title {
    min-height: 54px;
}

.product-list-grid__item .product-card-f__meta {
    min-height: 0;
}

.product-list-grid__item .product-card-f__variants {
    min-height: 0;
}

.product-list-grid__item .product-card-f cnt-add-to-cart {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: auto;
}

.product-list-grid__item .product-card-f__cart-btn {
    margin-top: 0;
}

.product-list-empty {
    padding: 3rem 1.5rem;
    border-radius: 0.5rem;
    border: 1px dashed var(--header-border);
    background: var(--bg-body);
}

.product-list-empty__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    font-family: "Inter", system-ui, sans-serif;
}

.product-list-empty__content .fa-box-open {
    font-size: 2.5rem;
    color: var(--header-muted);
}

.product-list-empty__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--header-text);
}

.product-list-empty__text {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--header-muted);
}

.product-list-empty__btn {
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    border-radius: 0.25rem;
    border: 1px solid var(--header-primary-dark);
    background: transparent;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--header-primary-dark);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.product-list-empty__btn:hover {
    background: rgba(0, 178, 152, 0.08);
}

/* 4K and Ultra-wide Screens */
@media (min-width: 1600px) {}

/* Ultra Large Devices (Extra Large Desktop) */
@media (max-width: 1599px) {}

/* XXL Devices (Large Desktop) */
@media (max-width: 1399px) {}

/* Extra Large Devices (Small Desktop) */
@media (max-width: 1199px) {
    .product-list-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .product-detail-relation__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Large Devices (Tablets) */
@media (max-width: 991px) {
    .product-detail {
        flex-direction: column;
    }

    .product-detail-right {
        width: 100%;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-item .info {
        padding: 8px;
    }

    .title-filter {
        flex-direction: column;
    }

    .product-list-layout {
        gap: 1rem;
        padding-block: 1.25rem 2rem;
    }

    .product-list-head,
    .product-list-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-list-sidebar-title,
    .product-list-sidebar,
    .product-list-toolbar {
        width: 100%;
    }

    .product-list-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .product-list-nav__link {
        padding: 0.375rem 0.625rem;
        font-size: 0.875rem;
    }

    .product-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-items: center;
    }

    .product-list-grid__item {
        max-width: 13.125rem;
    }

    .product-detail-relation__title {
        font-size: 2rem;
    }

    .product-detail-relation__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
}

/* Medium Devices (Tablets) */
@media (max-width: 767px) {
    .product-list-page,
    .product-list-layout,
    .product-list-head,
    .product-list-content,
    .product-list-sidebar,
    .product-list-main {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .product-list-content,
    .product-list-sidebar {
        overflow-x: hidden;
    }

    .product-list-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0.25rem;
        width: 100%;
        max-width: 100%;
    }

    .product-list-nav::-webkit-scrollbar {
        display: none;
    }

    .product-list-nav__link {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

/* Small Devices (Phones) */
@media (max-width: 575px) {
    .product-card-f__body {
        align-items: stretch;
    }

    .product-card-f cnt-add-to-cart {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .thumbnail-grid a {
        width: calc(25% - 9px);
    }

    .product-list-toolbar {
        align-items: stretch;
    }

    .product-list-sort-form {
        width: 100%;
    }

    .product-list-sort {
        width: 100%;
        justify-content: space-between;
    }

    .product-list-sort__select {
        flex: 1 1 auto;
    }

    .product-list-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .product-list-grid__item {
        width: 100%;
        max-width: 100%;
        justify-self: center;
    }

    .product-detail-relation__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-detail-relation__view-all {
        padding: 0;
    }

    .product-detail-relation__grid {
        grid-template-columns: 1fr;
    }
}

/* Extra Small Devices */
@media (max-width: 374px) {
    .thumbnail-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}