﻿/* Catalog.aspx page-specific styling */

.ParentGroupPage {
    width: 100%;
}

.AdArea {
    width: 100%;
}

.StaticPromo {
    margin-bottom: 3px;
    margin-bottom: var(--thickness-medium);
    margin-top: 3px;
    margin-top: var(--thickness-medium);
}

.StaticPromoImg {
    display: block;
    width: 100%;
    max-width: var(--max-width, 1100px);
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

/* Root catalogue intro */

.RootCatalogIntro {
    width: 90%;
    max-width: var(--max-width, 1100px);
    margin-left: auto;
    margin-right: auto;
    margin-top: 6px;
    margin-bottom: 8px;
    padding: 10px;
    text-align: center;
    border-top: var(--thickness-small) solid var(--table-border-color);
    border-bottom: var(--thickness-small) solid var(--table-border-color);
    background-color: var(--page-canvass-color);
}

.RootCatalogIntroTitle {
    color: var(--page-primary-color-text);
    font-family: Verdana, sans-serif;
    font-size: 145%;
    font-weight: bold;
    line-height: 1.25;
    padding-bottom: 4px;
}

.RootCatalogIntroText {
    color: var(--page-text-color);
    font-family: Verdana, sans-serif;
    font-size: 95%;
    line-height: 1.35;
}

.RootCatalogIntro + .ParentNodesXXX {
    padding-top: 10px;
}

/* Non-root catalog SEO intro - Catalog.aspx child nodes */

.CatalogSeoIntro {
    width: 90%;
    max-width: var(--max-width, 1100px);
    margin-left: auto;
    margin-right: auto;
    margin-top: 6px;
    margin-bottom: 10px;
    padding: 8px 10px;
    box-sizing: border-box;
    text-align: center;
    border-top: var(--thickness-small) solid var(--table-border-color);
    border-bottom: var(--thickness-small) solid var(--table-border-color);
    background-color: var(--page-canvass-color);
}

.CatalogSeoIntroTitle {
    color: var(--page-primary-color-text);
    font-family: Verdana, sans-serif;
    font-size: 130%;
    font-weight: bold;
    line-height: 1.25;
    padding-bottom: 4px;
}

.CatalogSeoIntroText {
    color: var(--page-text-color);
    font-family: Verdana, sans-serif;
    font-size: 92%;
    line-height: 1.35;
}

/* Enhanced root catalog cards - Catalog.aspx root only */

.ParentNodes.EnhancedRootParentNodes {
    display: grid !important;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    grid-column-gap: 16px;
    grid-row-gap: 14px;
    align-items: stretch;
    width: 90%;
    max-width: var(--max-width, 1100px);
    margin-left: auto;
    margin-right: auto;
    padding-top: 0;
    padding-bottom: 8px;
}

    .ParentNodes.EnhancedRootParentNodes > .ParentNode {
        display: flex;
        box-sizing: border-box;
        background-color: var(--page-canvass-color);
        border: var(--thickness-small) solid var(--table-border-color);
        border-radius: 6px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.16);
        overflow: hidden;
        margin: 0;
    }

    .ParentNodes.EnhancedRootParentNodes .ParentNodeContainer {
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    .ParentNodes.EnhancedRootParentNodes .ParentNodeContent {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100%;
        min-height: 100%;
        align-items: stretch;
        justify-content: flex-start;
        box-sizing: border-box;
    }

    .ParentNodes.EnhancedRootParentNodes .picContainerPN {
        display: block;
        width: 100%;
        max-width: none;
        height: auto;
        overflow: hidden;
        margin: 0 0 12px 0;
        padding: 0;
        box-sizing: border-box;
        background-color: var(--color-spi-light-grey);
        border-radius: 0;
        text-align: left;
    }

    .ParentNodes.EnhancedRootParentNodes .ParentNodeImage {
        display: block;
        width: 100% !important;
        max-width: none;
        height: auto;
        max-height: none;
        object-fit: contain;
        border: none;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

        .ParentNodes.EnhancedRootParentNodes .ItemImage,
        .ParentNodes.EnhancedRootParentNodes .ParentNodeImage input[type="image"] {
            display: block;
            width: 100% !important;
            max-width: none !important;
            height: auto;
            max-height: none;
            object-fit: contain;
            border: none;
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

    .ParentNodes.EnhancedRootParentNodes .ParentNodeTitle {
        width: auto;
        margin: 0;
        padding: 0 18px 6px 18px;
    }

    .ParentNodes.EnhancedRootParentNodes .ParentNodeButton {
        width: 100%;
        height: auto;
        min-height: 0;
        padding: 0;
        border: none;
        background-color: transparent;
        color: var(--page-primary-color-text);
        font-family: Verdana, sans-serif;
        font-size: 112% !important;
        font-weight: bold;
        line-height: 1.25;
        text-align: center;
        white-space: normal;
    }

        .ParentNodes.EnhancedRootParentNodes .ParentNodeButton:hover {
            color: var(--itemName-text-hover-color);
        }

    .ParentNodes.EnhancedRootParentNodes .EnhancedRootContent {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        padding: 0 18px 14px 18px;
        text-align: left;
        box-sizing: border-box;
    }

    .ParentNodes.EnhancedRootParentNodes .RootCardDescription {
        color: var(--page-text-color);
        font-size: 90%;
        line-height: 1.35;
        padding-top: 4px;
        text-align: left;
    }

    .ParentNodes.EnhancedRootParentNodes .RootCardSamples {
        color: var(--page-text-color);
        font-size: 86%;
        line-height: 1.32;
        margin-top: 8px;
        padding-top: 6px;
        border-top: var(--thickness-small) solid var(--color-spi-light-grey);
        text-align: left;
    }

    .ParentNodes.EnhancedRootParentNodes .RootCardSamplesLabel {
        color: var(--page-primary-color-text);
        font-weight: bold;
        padding-right: 3px;
    }

    .ParentNodes.EnhancedRootParentNodes .RootCardCTA {
        margin-top: auto;
        padding-top: 10px;
        padding-bottom: 2px;
        text-align: center;
    }

    .ParentNodes.EnhancedRootParentNodes .RootBrowseButton {
        display: inline-block;
        min-width: 140px;
        white-space: normal;
    }

@media only screen and (min-width: 768px) {
    .ParentNodes.EnhancedRootParentNodes {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 1fr;
    }

        .ParentNodes.EnhancedRootParentNodes > .ParentNode {
            border-radius: 8px;
        }

        .ParentNodes.EnhancedRootParentNodes .ItemImage {
            max-height: none;
        }
}

@media only screen and (min-width: 1067px) {
    .ParentNodes.EnhancedRootParentNodes {
        grid-template-columns: repeat(6, 1fr);
        grid-auto-rows: 1fr;
        grid-column-gap: 18px;
        grid-row-gap: 14px;
    }

        .ParentNodes.EnhancedRootParentNodes > .ParentNode {
            grid-column: span 2;
            border-radius: 10px;
        }

            .ParentNodes.EnhancedRootParentNodes > .ParentNode:nth-child(4) {
                grid-column: 2 / span 2;
            }

            .ParentNodes.EnhancedRootParentNodes > .ParentNode:nth-child(5) {
                grid-column: 4 / span 2;
            }

        .ParentNodes.EnhancedRootParentNodes .ItemImage {
            max-height: none;
        }
}

/* Popular Categories - Catalog.aspx root only */

.PopularCategoriesSection {
    width: calc(100% - 40px);
    max-width: var(--max-width, 1100px);
    margin: 30px auto 24px auto;
    padding: 22px 0 26px 0;
    background-color: var(--page-canvass-color, #fff);
    border-top: 1px solid var(--page-primary-color, #A80532);
    border-bottom: 1px solid var(--page-primary-color, #A80532);
    border-left: none;
    border-right: none;
    border-radius: 0;
    box-sizing: border-box;
    box-shadow: none;
}

.PopularCategoriesHeader {
    text-align: center;
    margin: 0 auto 18px auto;
    padding-top: 18px;
    max-width: 720px;
}

.PopularCategoriesTitle {
    font-size: 1.45rem;
    font-weight: bold;
    line-height: 1.25;
    color: var(--page-primary-color, #A80532);
    letter-spacing: 0.01em;
}

.PopularCategoriesIntro {
    margin-top: 5px;
    font-size: 0.98rem;
    line-height: 1.35;
    color: var(--page-text-color, #000);
}

.PopularCategoriesGrid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
    max-width: 1040px;
    margin: 0 auto;
}

.PopularCategoryShortcut {
    min-width: 0;
}

.PopularCategoryShortcutButton {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    height: 100%;
    padding: 11px 34px 11px 14px;
    box-sizing: border-box;
    border: 1px solid rgba(168, 5, 50, 0.28);
    border-top: 3px solid var(--page-primary-color, #A80532);
    border-radius: 4px;
    background-color: #fff;
    text-align: center;
    text-decoration: none;
    line-height: 1.25;
    font-weight: 600;
    color: var(--page-text-color, #000);
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, background-color 0.15s ease-in-out, transform 0.15s ease-in-out;
}

    .PopularCategoryShortcutButton:after {
        content: "\203A";
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--page-primary-color, #A80532);
        font-size: 1.45em;
        font-weight: bold;
        line-height: 1;
    }

    .PopularCategoryShortcutButton:hover,
    .PopularCategoryShortcutButton:focus {
        background-color: rgba(168, 5, 50, 0.035);
        border-color: var(--page-primary-color, #A80532);
        box-shadow: 0 3px 9px rgba(0, 0, 0, 0.16);
        text-decoration: none;
        transform: translateY(-1px);
    }

    .PopularCategoryShortcutButton:active {
        transform: translateY(0);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.10);
    }

@media (max-width: 900px) {
    .PopularCategoriesGrid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .PopularCategoriesSection {
        margin-top: 24px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .PopularCategoriesGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .PopularCategoryShortcutButton {
        min-height: 50px;
        padding: 10px 30px 10px 10px;
        font-size: 0.95rem;
    }

        .PopularCategoryShortcutButton:after {
            right: 11px;
        }
}

@media (max-width: 420px) {
    .PopularCategoriesGrid {
        grid-template-columns: 1fr;
    }
}

/* Homepage Shop By Need - Catalog.aspx root only */

.ShopByNeedSection {
    width: calc(100% - 40px);
    max-width: var(--max-width, 1100px);
    margin: 30px auto 24px auto;
    padding: 22px 0 26px 0;
    background-color: var(--page-canvass-color, #fff);
    border-top: 1px solid var(--page-primary-color, #A80532);
    border-bottom: 1px solid var(--page-primary-color, #A80532);
    border-left: none;
    border-right: none;
    border-radius: 0;
    box-sizing: border-box;
    box-shadow: none;
    text-align: center;
}

.ShopByNeedHeader {
    text-align: center;
    margin: 0 auto 18px auto;
    padding-top: 18px;
    max-width: 720px;
}

.ShopByNeedTitle {
    font-size: 1.45rem;
    font-weight: bold;
    line-height: 1.25;
    color: var(--page-primary-color, #A80532);
    letter-spacing: 0.01em;
}

.ShopByNeedIntro {
    margin-top: 5px;
    font-size: 0.98rem;
    line-height: 1.35;
    color: var(--page-text-color, #000);
}

.ShopByNeedGrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    max-width: 900px;
    margin: 0 auto;
}

.ShopByNeedShortcut {
    min-width: 0;
}

.ShopByNeedShortcutButton {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    height: 100%;
    padding: 11px 34px 11px 14px;
    box-sizing: border-box;
    border: 1px solid rgba(168, 5, 50, 0.28);
    border-top: 3px solid var(--page-primary-color, #A80532);
    border-radius: 4px;
    background-color: #fff;
    text-align: center;
    text-decoration: none;
    line-height: 1.25;
    font-weight: 600;
    color: var(--page-text-color, #000);
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, background-color 0.15s ease-in-out, transform 0.15s ease-in-out;
}

    .ShopByNeedShortcutButton:after {
        content: "\203A";
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--page-primary-color, #A80532);
        font-size: 1.45em;
        font-weight: bold;
        line-height: 1;
    }

    .ShopByNeedShortcutButton:hover,
    .ShopByNeedShortcutButton:focus {
        background-color: rgba(168, 5, 50, 0.035);
        border-color: var(--page-primary-color, #A80532);
        box-shadow: 0 3px 9px rgba(0, 0, 0, 0.16);
        text-decoration: none;
        transform: translateY(-1px);
    }

    .ShopByNeedShortcutButton:active {
        transform: translateY(0);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.10);
    }

.ShopByNeedViewAllButton {
    background-color: rgba(168, 5, 50, 0.045);
    font-weight: bold;
}

@media (max-width: 900px) {
    .ShopByNeedGrid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .ShopByNeedSection {
        margin-top: 24px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .ShopByNeedGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .ShopByNeedShortcutButton {
        min-height: 48px;
        padding-right: 30px;
        font-size: 0.95rem;
    }

        .ShopByNeedShortcutButton:after {
            right: 11px;
        }
}

@media (max-width: 430px) {
    .ShopByNeedGrid {
        grid-template-columns: 1fr;
    }
}

/* Community promo area on Catalog.aspx */

.CommunityAdArea {
    width: calc(100% - 40px);
    max-width: var(--max-width, 1100px);
    margin: 24px auto 0 auto;
    box-sizing: border-box;
}

.CommunityPromo {
    width: 100%;
    margin: 0 auto;
}

@media only screen and (min-width: 768px) {
    .StaticPromo {
        margin-bottom: 5px;
        margin-bottom: var(--thickness-large);
        margin-top: 5px;
        margin-top: var(--thickness-large);
    }
}

/* Related Green Products - Catalog.aspx child pages only */

.FeaturedGreenProductsSection {
    width: calc(100% - 40px);
    max-width: var(--max-width, 1100px);
    margin: 18px auto 18px auto;
    padding: 12px 14px;
    box-sizing: border-box;
    background-color: var(--page-canvass-color, #fff);
    border-top: 1px solid rgba(168, 5, 50, 0.28);
    border-bottom: 1px solid rgba(168, 5, 50, 0.28);
}

.FeaturedGreenProductsContent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    max-width: 850px;
    margin: 0 auto;
}

.FeaturedGreenProductsText {
    flex: 1 1 auto;
    text-align: left;
}

.FeaturedGreenProductsTitle {
    color: var(--page-primary-color, #A80532);
    font-size: 1.05rem;
    font-weight: bold;
    line-height: 1.25;
}

.FeaturedGreenProductsIntro {
    margin-top: 3px;
    color: var(--page-text-color, #000);
    font-size: 0.92rem;
    line-height: 1.35;
}

.FeaturedGreenProductsAction {
    flex: 0 0 auto;
    text-align: center;
}

.FeaturedGreenProductsButton {
    min-height: 42px;
    min-width: 210px;
    padding: 9px 14px;
    box-sizing: border-box;
    border: 1px solid rgba(168, 5, 50, 0.35);
    border-top: 3px solid var(--page-primary-color, #A80532);
    border-radius: 4px;
    background-color: #fff;
    color: var(--page-text-color, #000);
    font-family: inherit;
    font-weight: 600;
    line-height: 1.2;
    white-space: normal;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

    .FeaturedGreenProductsButton:hover,
    .FeaturedGreenProductsButton:focus {
        background-color: rgba(168, 5, 50, 0.035);
        border-color: var(--page-primary-color, #A80532);
        box-shadow: 0 3px 9px rgba(0, 0, 0, 0.14);
    }

    .FeaturedGreenProductsButton:active {
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.10);
    }

@media (max-width: 700px) {
    .FeaturedGreenProductsSection {
        width: calc(100% - 24px);
        margin-top: 14px;
        margin-bottom: 16px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .FeaturedGreenProductsContent {
        display: block;
        text-align: center;
    }

    .FeaturedGreenProductsText {
        text-align: center;
    }

    .FeaturedGreenProductsAction {
        margin-top: 10px;
    }

    .FeaturedGreenProductsButton {
        width: 100%;
        min-width: 0;
    }
}