/* =========================================================
   CLOUDRIGHT
   PROFESSIONAL CATEGORY PAGE
   ========================================================= */


/* =========================================================
   PAGE
   ========================================================= */

.catalog-category-view {
    background: #f5f7fa;
    color: #172033;
}

.catalog-category-view .columns {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 42px 48px 80px;
    box-sizing: border-box;
}

.catalog-category-view .column.main {
    width: 100%;
    padding: 0;
}


/* =========================================================
   CATEGORY PAGE
   ========================================================= */

.cloudright-category-page {
    width: 100%;
}


/* =========================================================
   CATEGORY HEADER
   ========================================================= */

.cloudright-category-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;

    margin-bottom: 30px;
}

.cloudright-category-heading {
    min-width: 0;
}

.cloudright-category-eyebrow {
    display: block;

    margin-bottom: 8px;

    color: #1769d1;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.cloudright-category-title {
    margin: 0;

    color: #111827;

    font-size: 38px;
    font-weight: 800;

    line-height: 1.15;
    letter-spacing: -0.8px;
}

.cloudright-category-description {
    max-width: 680px;

    margin: 10px 0 0;

    color: #667085;

    font-size: 14px;
    line-height: 1.65;
}

.cloudright-category-count {
    flex-shrink: 0;

    min-width: 92px;

    padding: 13px 18px;

    border: 1px solid #e2e7ee;
    border-radius: 10px;

    background: #ffffff;

    text-align: center;

    box-shadow:
        0 3px 10px rgba(15, 23, 42, 0.04);
}

.cloudright-category-count strong {
    display: block;

    color: #111827;

    font-size: 20px;
    font-weight: 800;

    line-height: 1.2;
}

.cloudright-category-count span {
    display: block;

    margin-top: 3px;

    color: #98a2b3;

    font-size: 11px;
    font-weight: 500;
}


/* =========================================================
   HIDE DEFAULT MAGENTO CATEGORY TITLE
   ========================================================= */

.catalog-category-view .page-title-wrapper {
    display: none !important;
}


/* =========================================================
   TOOLBAR
   ========================================================= */

.cloudright-category-page .toolbar-products {
    min-height: 60px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    margin: 0 0 26px;
    padding: 10px 16px;

    border: 1px solid #e2e7ee;
    border-radius: 10px;

    background: #ffffff;

    box-shadow:
        0 2px 8px rgba(15, 23, 42, 0.035);

    box-sizing: border-box;
}

.cloudright-category-page .toolbar-amount {
    margin: 0;

    color: #667085;

    font-size: 13px;
    font-weight: 600;
}


/* =========================================================
   HIDE GRID / LIST SWITCH
   ========================================================= */

.cloudright-category-page .modes {
    display: none !important;
}


/* =========================================================
   SORT AREA
   ========================================================= */

.cloudright-category-page .toolbar-sorter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cloudright-category-page .sorter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cloudright-category-page .sorter-label,
.cloudright-category-page .limiter-label {
    color: #667085;

    font-size: 12px;
    font-weight: 600;
}

.cloudright-category-page .sorter-options,
.cloudright-category-page .limiter-options {
    height: 38px;

    min-width: 125px;

    padding: 0 32px 0 12px;

    border: 1px solid #d9e0e8;
    border-radius: 7px;

    background: #ffffff;

    color: #172033;

    font-family: inherit;

    font-size: 12px;
    font-weight: 600;

    outline: none;

    cursor: pointer;

    box-sizing: border-box;
}

.cloudright-category-page .sorter-options:hover,
.cloudright-category-page .limiter-options:hover {
    border-color: #b8c3d1;
}

.cloudright-category-page .sorter-options:focus,
.cloudright-category-page .limiter-options:focus {
    border-color: #1769d1;
}


/* =========================================================
   HIDE LIMITER
   ========================================================= */

.cloudright-category-page .toolbar-limiter {
    display: none !important;
}


/* =========================================================
   SORT DIRECTION BUTTON
   ========================================================= */

.cloudright-category-page .sorter-action {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-left: 2px;

    border: 1px solid #d9e0e8;
    border-radius: 7px;

    background: #ffffff;

    color: #667085;

    text-decoration: none;

    box-sizing: border-box;

    transition:
        border-color 0.2s ease,
        color 0.2s ease,
        background 0.2s ease;
}

.cloudright-category-page .sorter-action:hover {
    border-color: #1769d1;

    background: #f5f9ff;

    color: #1769d1;
}


/* =========================================================
   PRODUCT GRID
   ========================================================= */

.cloudright-product-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;

    width: 100%;
}


/* =========================================================
   PRODUCT CARD
   ========================================================= */

.cloudright-product-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;
    min-height: 550px;

    overflow: hidden;

    border: 1px solid #e1e6ed;
    border-radius: 14px;

    background: #ffffff;

    box-shadow:
        0 2px 9px rgba(16, 24, 40, 0.035);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.cloudright-product-card:hover {
    transform: translateY(-6px);

    border-color: #d3dce8;

    box-shadow:
        0 18px 40px rgba(16, 24, 40, 0.11);
}


/* =========================================================
   PRODUCT IMAGE AREA
   ========================================================= */

.cloudright-product-image {
    position: relative;

    width: 100%;
    height: 315px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 28px;

    background:
        linear-gradient(
            180deg,
            #fbfcfd 0%,
            #f5f7fa 100%
        );

    box-sizing: border-box;

    text-decoration: none;

    overflow: hidden;
}


/* IMAGE TOP DECORATION */

.cloudright-product-image::before {
    content: "";

    position: absolute;

    top: 17px;
    left: 17px;

    width: 34px;
    height: 34px;

    border: 1px solid #e9edf2;
    border-radius: 50%;

    background: #ffffff;

    box-shadow:
        0 2px 8px rgba(15, 23, 42, 0.06);
}


/* IMAGE BOTTOM LINE */

.cloudright-product-image::after {
    content: "";

    position: absolute;

    left: 22px;
    right: 22px;
    bottom: 0;

    height: 1px;

    background: #e8ecf1;
}


/* PRODUCT IMAGE */

.cloudright-product-image img {
    position: relative;
    z-index: 1;

    width: auto;
    height: auto;

    max-width: 88%;
    max-height: 88%;

    object-fit: contain;

    transition:
        transform 0.3s ease;
}

.cloudright-product-card:hover
.cloudright-product-image img {
    transform: scale(1.045);
}


/* =========================================================
   PRODUCT INFORMATION
   ========================================================= */

.cloudright-product-info {
    flex: 1;

    display: flex;
    flex-direction: column;

    padding: 21px 23px 21px;

    box-sizing: border-box;
}


/* =========================================================
   PRODUCT LABEL
   ========================================================= */

.cloudright-product-category-label {
    margin-bottom: 7px;

    color: #98a2b3;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.1px;
    text-transform: uppercase;
}


/* =========================================================
   PRODUCT NAME
   ========================================================= */

.cloudright-product-name {
    min-height: 48px;

    margin: 0 0 7px;
}

.cloudright-product-name a {
    display: block;

    color: #111827;

    font-size: 18px;
    font-weight: 700;

    line-height: 1.4;
    letter-spacing: -0.15px;

    text-decoration: none;

    transition:
        color 0.2s ease;
}

.cloudright-product-name a:hover {
    color: #1769d1;
}


/* =========================================================
   PRODUCT RATING
   ========================================================= */

.cloudright-product-rating {
    min-height: 20px;

    margin-bottom: 8px;
}

.cloudright-product-rating .rating-summary {
    margin: 0;
}


/* =========================================================
   PRICE
   ========================================================= */

.cloudright-product-price {
    min-height: 35px;

    margin-bottom: 17px;
}

.cloudright-product-price .price-box {
    margin: 0;
}

.cloudright-product-price .price {
    color: #111827;

    font-size: 24px;
    font-weight: 800;

    line-height: 1.2;
    letter-spacing: -0.4px;
}

.cloudright-product-price .old-price {
    margin-right: 7px;
}

.cloudright-product-price .old-price .price {
    color: #98a2b3;

    font-size: 13px;
    font-weight: 400;

    text-decoration: line-through;
}


/* =========================================================
   ACTION AREA
   ========================================================= */

.cloudright-product-actions {
    margin-top: auto;
}

.cloudright-add-to-cart-form {
    width: 100%;
}


/* =========================================================
   ADD TO CART BUTTON
   ========================================================= */

.cloudright-add-to-cart {
    width: 100%;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 0 18px;

    border: 0;
    border-radius: 8px;

    background: #1769d1;

    color: #ffffff;

    font-family: inherit;

    font-size: 13px;
    font-weight: 700;

    line-height: 1;

    cursor: pointer;

    box-shadow:
        0 2px 5px rgba(23, 105, 209, 0.12);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.cloudright-add-to-cart:hover {
    background: #125bb8;

    transform: translateY(-1px);

    box-shadow:
        0 8px 17px rgba(23, 105, 209, 0.20);
}

.cloudright-add-to-cart:active {
    transform: translateY(0);

    box-shadow:
        0 3px 7px rgba(23, 105, 209, 0.14);
}

.cloudright-cart-icon {
    font-size: 15px;
}


/* =========================================================
   UNAVAILABLE
   ========================================================= */

.cloudright-add-to-cart.cloudright-unavailable {
    background: #d0d5dd;

    color: #667085;

    box-shadow: none;

    cursor: not-allowed;
}


/* =========================================================
   VIEW DETAILS
   ========================================================= */

.cloudright-product-secondary {
    display: flex;

    justify-content: center;

    margin-top: 13px;
}

.cloudright-view-product {
    display: inline-flex;

    align-items: center;

    color: #667085;

    font-size: 12px;
    font-weight: 600;

    text-decoration: none;

    transition:
        color 0.2s ease;
}

.cloudright-view-product span {
    margin-left: 4px;

    transition:
        margin-left 0.2s ease;
}

.cloudright-view-product:hover {
    color: #1769d1;
}

.cloudright-view-product:hover span {
    margin-left: 8px;
}


/* =========================================================
   EMPTY CATEGORY
   ========================================================= */

.cloudright-empty-products {
    padding: 85px 30px;

    border: 1px solid #e2e7ee;
    border-radius: 14px;

    background: #ffffff;

    text-align: center;

    box-shadow:
        0 3px 10px rgba(15, 23, 42, 0.035);
}

.cloudright-empty-icon {
    margin-bottom: 15px;

    font-size: 38px;
}

.cloudright-empty-products h2 {
    margin: 0 0 8px;

    color: #111827;

    font-size: 22px;
    font-weight: 700;
}

.cloudright-empty-products p {
    margin: 0;

    color: #667085;

    font-size: 14px;
}


/* =========================================================
   PAGINATION
   ========================================================= */

.cloudright-pagination {
    margin-top: 38px;
}

.cloudright-pagination .toolbar-products {
    margin: 0;

    border: 0;

    background: transparent;

    box-shadow: none;
}

.cloudright-pagination .pages {
    margin: 0 auto;
}

.cloudright-pagination .pages-items {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 6px;
}

.cloudright-pagination .pages-item {
    margin: 0;
}

.cloudright-pagination .pages-item a,
.cloudright-pagination .pages-item.current .page {
    min-width: 37px;
    height: 37px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 10px;

    border: 1px solid #dce2ea;
    border-radius: 7px;

    background: #ffffff;

    color: #344054;

    font-size: 12px;
    font-weight: 600;

    text-decoration: none;

    box-sizing: border-box;
}

.cloudright-pagination .pages-item a:hover {
    border-color: #1769d1;

    color: #1769d1;
}

.cloudright-pagination .pages-item.current .page {
    border-color: #1769d1;

    background: #1769d1;

    color: #ffffff;
}


/* =========================================================
   REMOVE SIDEBARS
   ========================================================= */

.catalog-category-view .sidebar-main,
.catalog-category-view .sidebar-additional {
    display: none !important;
}


/* =========================================================
   REMOVE OLD LUMA PRODUCT LIST STYLES
   ========================================================= */

.catalog-category-view .products-grid .product-items,
.catalog-category-view .products-grid .product-item,
.catalog-category-view .products-grid .product-item-info {
    width: auto;
    margin: 0;
    padding: 0;
}

.catalog-category-view .products-grid {
    margin: 0;
}


/* =========================================================
   PRODUCT DETAILS
   ========================================================= */

.cloudright-product-details {
    width: 100%;
    margin-top: 35px;
}

.cloudright-detail-section {
    margin-bottom: 24px;
    padding: 26px 28px;

    border: 1px solid #e2e7ee;
    border-radius: 12px;

    background: #ffffff;

    box-shadow:
        0 3px 12px rgba(15, 23, 42, 0.04);
}

.cloudright-detail-heading {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 18px;
}

.cloudright-detail-line {
    width: 4px;
    height: 22px;

    display: block;

    flex-shrink: 0;

    border-radius: 3px;

    background: #1769d1;
}

.cloudright-detail-heading h2 {
    margin: 0;

    color: #111827;

    font-size: 20px;
    font-weight: 700;

    line-height: 1.3;
}

.cloudright-detail-content {
    color: #667085;

    font-size: 14px;
    line-height: 1.75;
}

.cloudright-detail-content p {
    margin: 0 0 12px;
}

.cloudright-detail-content p:last-child {
    margin-bottom: 0;
}

.cloudright-detail-content ul,
.cloudright-detail-content ol {
    margin: 10px 0;
    padding-left: 22px;
}

.cloudright-detail-content li {
    margin-bottom: 7px;
}

.cloudright-detail-content li:last-child {
    margin-bottom: 0;
}

.cloudright-detail-content a {
    color: #1769d1;

    text-decoration: none;
}

.cloudright-detail-content a:hover {
    text-decoration: underline;
}


/* =========================================================
   PRODUCT ATTRIBUTE TABLE
   ========================================================= */

.cloudright-detail-content .additional-attributes-wrapper {
    margin: 0;
}

.cloudright-detail-content .additional-attributes {
    width: 100%;

    border-collapse: collapse;
}

.cloudright-detail-content .additional-attributes tr {
    border-bottom: 1px solid #edf0f4;
}

.cloudright-detail-content .additional-attributes tr:last-child {
    border-bottom: 0;
}

.cloudright-detail-content .additional-attributes th,
.cloudright-detail-content .additional-attributes td {
    padding: 12px 10px;

    text-align: left;

    font-size: 13px;
    line-height: 1.5;
}

.cloudright-detail-content .additional-attributes th {
    width: 32%;

    color: #344054;

    font-weight: 700;
}

.cloudright-detail-content .additional-attributes td {
    color: #667085;
}


/* =========================================================
   PRODUCT DESCRIPTION
   ========================================================= */

.cloudright-detail-content .product.attribute.description {
    margin: 0;
}

.cloudright-detail-content .product.attribute.description .value {
    color: #667085;

    font-size: 14px;
    line-height: 1.8;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .catalog-category-view .columns {
        padding: 35px 28px 65px;
    }

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

        gap: 20px;
    }

    .cloudright-product-card {
        min-height: 520px;
    }

    .cloudright-product-image {
        height: 290px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .catalog-category-view .columns {
        padding: 25px 15px 50px;
    }

    .cloudright-category-header {
        align-items: flex-start;

        flex-direction: column;

        gap: 18px;
    }

    .cloudright-category-title {
        font-size: 29px;
    }

    .cloudright-category-description {
        font-size: 13px;
    }

    .cloudright-category-count {
        min-width: 76px;
    }

    .cloudright-product-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .cloudright-product-card {
        min-height: 500px;

        border-radius: 12px;
    }

    .cloudright-product-image {
        height: 275px;

        padding: 20px;
    }

    .cloudright-product-info {
        padding: 19px;
    }

    .cloudright-product-name {
        min-height: auto;
    }

    .cloudright-category-page .toolbar-products {
        flex-wrap: wrap;

        gap: 10px;
    }

    .cloudright-category-page .toolbar-sorter {
        margin-left: auto;
    }

    /* PRODUCT DETAILS */

    .cloudright-product-details {
        margin-top: 25px;
    }

    .cloudright-detail-section {
        padding: 21px 18px;

        border-radius: 10px;
    }

    .cloudright-detail-heading h2 {
        font-size: 18px;
    }

    .cloudright-detail-content {
        font-size: 13px;
    }

    .cloudright-detail-content .additional-attributes th,
    .cloudright-detail-content .additional-attributes td {
        display: block;

        width: 100%;

        padding: 8px 5px;
    }

    .cloudright-detail-content .additional-attributes th {
        padding-bottom: 2px;
    }

    .cloudright-detail-content .additional-attributes td {
        padding-top: 2px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .catalog-category-view .columns {
        padding-left: 12px;
        padding-right: 12px;
    }

    .cloudright-category-title {
        font-size: 26px;
    }

    .cloudright-product-image {
        height: 250px;
    }

    .cloudright-product-info {
        padding: 18px;
    }

    .cloudright-add-to-cart {
        height: 46px;
    }

    .cloudright-detail-section {
        padding: 18px 15px;
    }

    .cloudright-detail-heading {
        gap: 8px;
    }

    .cloudright-detail-heading h2 {
        font-size: 17px;
    }

    .cloudright-detail-content {
        font-size: 13px;
    }
}

