/* =========================================================
   PREMIUM ECOLOGICA - PLP R1
   Escopo: apenas páginas de categoria
========================================================= */

body.catalog-category-view {
    --premium-plp-green: #0b5c43;
    --premium-plp-green-2: #0f6a4c;
    --premium-plp-dark: #12352c;
    --premium-plp-gold: #f1b82d;
    --premium-plp-bg: #f4f6f4;
    --premium-plp-card: #ffffff;
    --premium-plp-border: #dfe6df;
    --premium-plp-text: #17392f;
    --premium-plp-muted: #6f847c;
    --premium-plp-shadow: 0 12px 34px rgba(13, 61, 45, .08);
    background: var(--premium-plp-bg);
    color: var(--premium-plp-text);
}

body.catalog-category-view .page-main,
body.catalog-category-view .main,
body.catalog-category-view .columns {
    background: transparent;
}

/* largura geral */
body.catalog-category-view .page-main,
body.catalog-category-view .main {
    max-width: 1480px;
    margin: 0 auto;
}

/* breadcrumb */
body.catalog-category-view .breadcrumbs,
body.catalog-category-view .breadcrumb,
body.catalog-category-view nav[aria-label="Breadcrumb"] {
    margin-top: 18px;
    margin-bottom: 18px;
    font-size: 12px;
    color: var(--premium-plp-muted);
}

body.catalog-category-view .breadcrumbs a,
body.catalog-category-view .breadcrumb a,
body.catalog-category-view nav[aria-label="Breadcrumb"] a {
    color: var(--premium-plp-muted);
    text-decoration: none;
}

body.catalog-category-view .breadcrumbs a:hover,
body.catalog-category-view .breadcrumb a:hover,
body.catalog-category-view nav[aria-label="Breadcrumb"] a:hover {
    color: var(--premium-plp-green);
}

/* título da categoria */
body.catalog-category-view .page-title-wrapper,
body.catalog-category-view .category-title,
body.catalog-category-view h1.page-title,
body.catalog-category-view .page-title {
    margin-bottom: 18px;
}

body.catalog-category-view h1.page-title,
body.catalog-category-view .page-title > span,
body.catalog-category-view .category-title h1 {
    color: var(--premium-plp-dark);
    font-size: 48px;
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -.03em;
}

/* layout principal */
body.catalog-category-view .columns {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

/* sidebar */
body.catalog-category-view .sidebar,
body.catalog-category-view .sidebar-main,
body.catalog-category-view .column.main + .sidebar,
body.catalog-category-view .sidebar.sidebar-main {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    position: sticky;
    top: 18px;
    align-self: start;
}

body.catalog-category-view .filter,
body.catalog-category-view .block.filter,
body.catalog-category-view .filter-options,
body.catalog-category-view .filter-content {
    background: var(--premium-plp-card);
}

body.catalog-category-view .block.filter,
body.catalog-category-view .filter {
    border: 1px solid var(--premium-plp-border);
    border-radius: 18px;
    box-shadow: var(--premium-plp-shadow);
    overflow: hidden;
}

body.catalog-category-view .filter-title,
body.catalog-category-view .filter .block-title,
body.catalog-category-view .filter-options-title {
    color: var(--premium-plp-dark);
    font-weight: 800;
    letter-spacing: .02em;
}

body.catalog-category-view .filter .block-title,
body.catalog-category-view .filter-title {
    font-size: 16px;
    text-transform: uppercase;
    padding: 20px 22px 10px;
    border: 0;
}

body.catalog-category-view .filter-subtitle,
body.catalog-category-view .block-subtitle {
    display: none;
}

body.catalog-category-view .filter-options,
body.catalog-category-view .filter-content {
    padding: 0 18px 18px;
}

body.catalog-category-view .filter-options-item {
    border-top: 1px solid #edf2ed;
    padding: 14px 4px 0;
    margin-top: 8px;
}

body.catalog-category-view .filter-options-item:first-child {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}

body.catalog-category-view .filter-options-title {
    font-size: 14px;
    padding-bottom: 10px;
}

body.catalog-category-view .filter-options-content ol,
body.catalog-category-view .filter-options-content ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.catalog-category-view .filter-options-content li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
}

body.catalog-category-view .filter-options-content a {
    color: var(--premium-plp-text);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.45;
}

body.catalog-category-view .filter-options-content a:hover {
    color: var(--premium-plp-green);
}

body.catalog-category-view .filter-options-content .count,
body.catalog-category-view .filter-count,
body.catalog-category-view .item-count {
    color: var(--premium-plp-green);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

/* coluna principal */
body.catalog-category-view .column.main {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

/* toolbars */
body.catalog-category-view .toolbar,
body.catalog-category-view .products-toolbar {
    background: transparent;
    border: 0;
    box-shadow: none;
}

body.catalog-category-view .toolbar-products,
body.catalog-category-view .products-toolbar-top,
body.catalog-category-view .products-toolbar {
    margin-bottom: 18px;
}

body.catalog-category-view .toolbar .modes,
body.catalog-category-view .toolbar .sorter,
body.catalog-category-view .toolbar .limiter,
body.catalog-category-view .toolbar-amount,
body.catalog-category-view .pages {
    margin: 0;
}

body.catalog-category-view .toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

body.catalog-category-view .modes,
body.catalog-category-view .sorter,
body.catalog-category-view .limiter,
body.catalog-category-view .toolbar-amount,
body.catalog-category-view .pages {
    background: var(--premium-plp-card);
    border: 1px solid var(--premium-plp-border);
    border-radius: 14px;
    box-shadow: var(--premium-plp-shadow);
    padding: 10px 12px;
}

body.catalog-category-view .toolbar select,
body.catalog-category-view .sorter select,
body.catalog-category-view .limiter select {
    min-height: 38px;
    border: 1px solid #d7e0d8;
    border-radius: 10px;
    padding: 0 12px;
    background: #fff;
    color: var(--premium-plp-text);
    font-size: 13px;
}

body.catalog-category-view .toolbar .modes-mode,
body.catalog-category-view .toolbar .modes strong,
body.catalog-category-view .toolbar .modes a {
    color: var(--premium-plp-green);
}

/* grade de produtos */
body.catalog-category-view .products.wrapper,
body.catalog-category-view .products-grid,
body.catalog-category-view .product-items,
body.catalog-category-view ol.products.list.items {
    width: 100%;
}

body.catalog-category-view .products-grid .product-items,
body.catalog-category-view ol.products.list.items {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.catalog-category-view .product-item {
    margin: 0 !important;
    width: auto !important;
}

body.catalog-category-view .product-item-info,
body.catalog-category-view .product-item-details,
body.catalog-category-view .product-card,
body.catalog-category-view .item.product.product-item {
    background: var(--premium-plp-card);
    border: 1px solid var(--premium-plp-border);
    border-radius: 20px;
    box-shadow: var(--premium-plp-shadow);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

body.catalog-category-view .product-item-info:hover,
body.catalog-category-view .item.product.product-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(13, 61, 45, .10);
    border-color: #d1ddd3;
}

body.catalog-category-view .product-item-photo,
body.catalog-category-view .product.photo.product-item-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 24px 18px 12px;
    background: #fff;
}

body.catalog-category-view .product-item-photo img,
body.catalog-category-view .product.photo.product-item-photo img {
    max-height: 220px;
    width: auto;
    object-fit: contain;
}

body.catalog-category-view .product-item-details {
    padding: 0 18px 18px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

body.catalog-category-view .product-item-name,
body.catalog-category-view .product.name.product-item-name {
    margin: 2px 0 10px;
    min-height: 58px;
    line-height: 1.35;
}

body.catalog-category-view .product-item-name a,
body.catalog-category-view .product.name.product-item-name a {
    color: var(--premium-plp-dark);
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
}

body.catalog-category-view .product-item-name a:hover,
body.catalog-category-view .product.name.product-item-name a:hover {
    color: var(--premium-plp-green);
}

body.catalog-category-view .price-box,
body.catalog-category-view .price-final_price,
body.catalog-category-view .special-price,
body.catalog-category-view .normal-price {
    margin: 10px 0 8px;
}

body.catalog-category-view .price,
body.catalog-category-view .price-box .price {
    color: var(--premium-plp-dark);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.02em;
}

body.catalog-category-view .old-price .price,
body.catalog-category-view .price-from .price,
body.catalog-category-view .price-to .price {
    font-size: 14px;
}

body.catalog-category-view .rating-summary,
body.catalog-category-view .product-reviews-summary {
    margin: 6px 0 10px;
}

body.catalog-category-view .reviews-actions,
body.catalog-category-view .review-count {
    color: var(--premium-plp-muted);
    font-size: 12px;
}

body.catalog-category-view .product-item-actions,
body.catalog-category-view .actions-primary,
body.catalog-category-view .actions-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
}

body.catalog-category-view .product-item-actions {
    margin-top: 14px;
    flex-wrap: nowrap;
}

body.catalog-category-view .actions-primary {
    flex: 1 1 auto;
}

body.catalog-category-view .actions-primary .action,
body.catalog-category-view .actions-primary .tocart,
body.catalog-category-view .action.tocart,
body.catalog-category-view button.tocart {
    width: 100%;
    min-height: 46px;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--premium-plp-green) !important;
    color: #fff !important;
    font-weight: 700;
    font-size: 13px;
    box-shadow: none !important;
}

body.catalog-category-view .actions-primary .action:hover,
body.catalog-category-view .actions-primary .tocart:hover,
body.catalog-category-view .action.tocart:hover,
body.catalog-category-view button.tocart:hover {
    background: var(--premium-plp-green-2) !important;
}

body.catalog-category-view .actions-secondary a,
body.catalog-category-view .actions-secondary button,
body.catalog-category-view .action.towishlist,
body.catalog-category-view .action.tocompare {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 999px !important;
    border: 1px solid #dce6dd !important;
    background: #f6f8f7 !important;
    color: var(--premium-plp-green) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
}

body.catalog-category-view .actions-secondary a:hover,
body.catalog-category-view .actions-secondary button:hover,
body.catalog-category-view .action.towishlist:hover,
body.catalog-category-view .action.tocompare:hover {
    background: #eef4f0 !important;
}

/* toolbar inferior / paginação */
body.catalog-category-view .pages-items,
body.catalog-category-view .items.pages-items {
    display: flex;
    align-items: center;
    gap: 8px;
}

body.catalog-category-view .pages-item a,
body.catalog-category-view .pages-item strong,
body.catalog-category-view .item.pages-item a,
body.catalog-category-view .item.pages-item strong {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid #d9e4db;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--premium-plp-text);
    background: #fff;
}

body.catalog-category-view .pages-item.current strong,
body.catalog-category-view .item.pages-item.current strong {
    background: var(--premium-plp-green);
    color: #fff;
    border-color: var(--premium-plp-green);
}

body.catalog-category-view .toolbar-amount,
body.catalog-category-view .limiter,
body.catalog-category-view .pages {
    font-size: 12px;
    color: var(--premium-plp-muted);
}

/* esconder excesso visual que destoa */
body.catalog-category-view .products-grid .product-item-inner,
body.catalog-category-view .product-item .stock {
    background: transparent !important;
    box-shadow: none !important;
}

/* tablet */
@media (max-width: 1023px) {

    body.catalog-category-view h1.page-title,
    body.catalog-category-view .page-title > span,
    body.catalog-category-view .category-title h1 {
        font-size: 40px;
    }

    body.catalog-category-view .columns {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 18px;
    }

    body.catalog-category-view .products-grid .product-items,
    body.catalog-category-view ol.products.list.items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    body.catalog-category-view .product-item-photo,
    body.catalog-category-view .product.photo.product-item-photo {
        min-height: 260px;
    }

    body.catalog-category-view .product-item-photo img,
    body.catalog-category-view .product.photo.product-item-photo img {
        max-height: 190px;
    }
}

/* mobile */
@media (max-width: 767px) {

    body.catalog-category-view .page-main,
    body.catalog-category-view .main {
        width: calc(100% - 18px);
    }

    body.catalog-category-view h1.page-title,
    body.catalog-category-view .page-title > span,
    body.catalog-category-view .category-title h1 {
        font-size: 32px;
    }

    body.catalog-category-view .columns {
        display: block;
    }

    body.catalog-category-view .sidebar,
    body.catalog-category-view .sidebar-main,
    body.catalog-category-view .sidebar.sidebar-main {
        position: static;
        margin-bottom: 16px;
    }

    body.catalog-category-view .toolbar {
        gap: 10px;
    }

    body.catalog-category-view .modes,
    body.catalog-category-view .sorter,
    body.catalog-category-view .limiter,
    body.catalog-category-view .toolbar-amount,
    body.catalog-category-view .pages {
        width: 100%;
        box-sizing: border-box;
    }

    body.catalog-category-view .products-grid .product-items,
    body.catalog-category-view ol.products.list.items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    body.catalog-category-view .product-item-info,
    body.catalog-category-view .item.product.product-item {
        border-radius: 16px;
    }

    body.catalog-category-view .product-item-photo,
    body.catalog-category-view .product.photo.product-item-photo {
        min-height: 160px;
        padding: 14px 10px 8px;
    }

    body.catalog-category-view .product-item-photo img,
    body.catalog-category-view .product.photo.product-item-photo img {
        max-height: 130px;
    }

    body.catalog-category-view .product-item-details {
        padding: 0 12px 12px;
    }

    body.catalog-category-view .product-item-name,
    body.catalog-category-view .product.name.product-item-name {
        min-height: 52px;
        margin-bottom: 8px;
    }

    body.catalog-category-view .product-item-name a,
    body.catalog-category-view .product.name.product-item-name a {
        font-size: 12px;
        line-height: 1.35;
    }

    body.catalog-category-view .price,
    body.catalog-category-view .price-box .price {
        font-size: 19px;
    }

    body.catalog-category-view .product-item-actions {
        gap: 6px;
        margin-top: 10px;
    }

    body.catalog-category-view .actions-primary .action,
    body.catalog-category-view .actions-primary .tocart,
    body.catalog-category-view .action.tocart,
    body.catalog-category-view button.tocart {
        min-height: 38px;
        font-size: 10px;
        padding: 0 10px;
    }

    body.catalog-category-view .actions-secondary a,
    body.catalog-category-view .actions-secondary button,
    body.catalog-category-view .action.towishlist,
    body.catalog-category-view .action.tocompare {
        width: 34px;
        height: 34px;
        min-width: 34px;
    }

    body.catalog-category-view .filter .block-title,
    body.catalog-category-view .filter-title {
        padding: 16px 16px 8px;
        font-size: 14px;
    }

    body.catalog-category-view .filter-options,
    body.catalog-category-view .filter-content {
        padding: 0 14px 14px;
    }
}

/* celulares muito estreitos */
@media (max-width: 360px) {
    body.catalog-category-view .products-grid .product-items,
    body.catalog-category-view ol.products.list.items {
        grid-template-columns: 1fr;
    }
}
