/* =========================================================
   OUR GLOW CART
   PRODUCT CATEGORIES
   Clean / Professional / Compact
   ========================================================= */


/* =========================================================
   RESET
   ========================================================= */

.ogc-categories-page,
.ogc-categories-page * {
    box-sizing: border-box;
}


/* =========================================================
   MAIN PAGE
   ========================================================= */

.ogc-categories-page {
    width: 100%;
    background: #ffffff;
    color: #292526;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.ogc-categories-container {
    width: 100%;
    max-width: 1120px;

    margin-left: auto;
    margin-right: auto;

    padding-left: 18px;
    padding-right: 18px;
}


/* =========================================================
   PAGE HEADER
   ========================================================= */

.ogc-categories-header {
    width: 100%;

    padding: 48px 0 36px;

    background: #fffafa;

    border-bottom: 1px solid #f0e5e7;

    text-align: center;
}


/* =========================================================
   EYEBROW
   ========================================================= */

.ogc-categories-eyebrow {
    display: block;

    margin-bottom: 8px;

    color: #9d5367;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 10px;

    font-weight: 700;

    line-height: 1.2;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}


/* =========================================================
   MAIN HEADING
   ========================================================= */

.ogc-categories-header h1 {
    margin: 0 0 9px !important;

    padding: 0 !important;

    color: #292526 !important;

    font-family: Arial, Helvetica, sans-serif !important;

    font-size: 32px !important;

    font-weight: 700 !important;

    line-height: 1.2 !important;

    letter-spacing: -0.4px !important;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.ogc-categories-header p {
    max-width: 560px;

    margin: 0 auto !important;

    padding: 0 !important;

    color: #8f7d82;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 13px;

    line-height: 1.65;
}


/* =========================================================
   CATEGORY SECTION
   ========================================================= */

.ogc-categories-section {
    width: 100%;

    padding: 38px 0 60px;
}


/* =========================================================
   DESKTOP CATEGORY LAYOUT
   =========================================================

   CSS columns are used instead of grid.

   This prevents short category cards from creating
   large empty spaces when another card has many
   subcategories.
   ========================================================= */

.ogc-categories-section
.ogc-categories-container {

    display: block;

    column-count: 3;

    column-gap: 18px;
}


/* =========================================================
   CATEGORY CARD
   ========================================================= */

.ogc-category-card {
    width: 100%;

    display: inline-block;

    vertical-align: top;

    margin: 0 0 18px;

    background: #ffffff;

    border: 1px solid #eee5e7;

    border-radius: 14px;

    overflow: hidden;

    box-shadow:
        0 3px 14px rgba(120, 70, 80, 0.035);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;

    /*
     * Keep each category card together.
     */
    break-inside: avoid;

    page-break-inside: avoid;
}


/* =========================================================
   CARD HOVER
   ========================================================= */

.ogc-category-card:hover {

    border-color: #e5cdd3;

    transform: translateY(-3px);

    box-shadow:
        0 10px 25px rgba(150, 80, 95, 0.09);
}


/* =========================================================
   CATEGORY TOP
   ========================================================= */

.ogc-category-top {

    display: flex;

    align-items: center;

    min-height: 112px;

    padding: 12px;
}


/* =========================================================
   CATEGORY IMAGE
   ========================================================= */

.ogc-category-image {

    flex: 0 0 88px;

    width: 88px;

    height: 88px;

    display: block;

    padding: 5px;

    background: #faf7f7;

    border: 1px solid #f0e6e8;

    border-radius: 11px;

    overflow: hidden;
}


/* =========================================================
   CATEGORY IMAGE
   ========================================================= */

.ogc-category-image img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    border-radius: 7px;

    transition:
        transform 0.35s ease;
}


/* =========================================================
   IMAGE HOVER
   ========================================================= */

.ogc-category-card:hover
.ogc-category-image img {

    transform: scale(1.045);
}


/* =========================================================
   CATEGORY INFORMATION
   ========================================================= */

.ogc-category-info {

    flex: 1;

    min-width: 0;

    padding: 0 10px;
}


/* =========================================================
   COLLECTION LABEL
   ========================================================= */

.ogc-category-label {

    display: block;

    margin-bottom: 4px;

    color: #a58b91;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 8px;

    font-weight: 700;

    line-height: 1.2;

    letter-spacing: 0.9px;

    text-transform: uppercase;
}


/* =========================================================
   CATEGORY TITLE
   ========================================================= */

.ogc-category-info h2 {

    margin: 0 0 5px !important;

    padding: 0 !important;

    line-height: 1.25 !important;
}


/* =========================================================
   CATEGORY TITLE LINK
   ========================================================= */

.ogc-category-info h2 a {

    display: -webkit-box;

    width: 100%;

    overflow: hidden;

    color: #292526 !important;

    font-family: Arial, Helvetica, sans-serif !important;

    font-size: 17px !important;

    font-weight: 700 !important;

    line-height: 1.25 !important;

    text-decoration: none !important;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    transition:
        color 0.2s ease;
}


/* =========================================================
   CATEGORY TITLE HOVER
   ========================================================= */

.ogc-category-info h2 a:hover {

    color: #9d5367 !important;
}


/* =========================================================
   PRODUCT COUNT
   ========================================================= */

.ogc-category-count {

    display: block;

    color: #a58b91;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 9px;

    font-weight: 500;

    line-height: 1.3;
}


/* =========================================================
   VIEW CATEGORY BUTTON
   ========================================================= */

.ogc-category-view {

    flex: 0 0 auto;

    width: 34px;

    height: 34px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-left: auto;

    color: #9d5367 !important;

    background: #f7e9ec;

    border: 1px solid #eadde0;

    border-radius: 50%;

    text-decoration: none !important;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


/* =========================================================
   VIEW ARROW
   ========================================================= */

.ogc-category-view strong {

    display: block;

    margin: 0;

    padding: 0;

    color: inherit;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 16px;

    font-weight: 400;

    line-height: 1;
}


/* =========================================================
   VIEW BUTTON HOVER
   ========================================================= */

.ogc-category-view:hover {

    color: #ffffff !important;

    background: #9d5367;

    border-color: #9d5367;

    transform: translateX(3px);
}


/* =========================================================
   SUBCATEGORY AREA
   ========================================================= */

.ogc-subcategories {

    width: 100%;

    padding: 13px 12px 12px;

    background: #fffafa;

    border-top: 1px solid #f0e5e7;
}


/* =========================================================
   SUBCATEGORY TITLE
   ========================================================= */

.ogc-subcategories-title {

    display: flex;

    align-items: center;

    gap: 6px;

    margin-bottom: 9px;
}


/* =========================================================
   SUBCATEGORY ACCENT LINE
   ========================================================= */

.ogc-subcategories-title > span {

    flex: 0 0 auto;

    width: 18px;

    height: 2px;

    background: #9d5367;

    border-radius: 10px;
}


/* =========================================================
   SUBCATEGORY HEADING
   ========================================================= */

.ogc-subcategories-title h3 {

    margin: 0 !important;

    padding: 0 !important;

    color: #8f7d82 !important;

    font-family: Arial, Helvetica, sans-serif !important;

    font-size: 9px !important;

    font-weight: 700 !important;

    line-height: 1.3 !important;

    letter-spacing: 0.7px;

    text-transform: uppercase;
}


/* =========================================================
   SUBCATEGORY LIST
   =========================================================

   One item per row.

   This gives longer category names enough room
   and makes the list much easier to scan.
   ========================================================= */

.ogc-subcategory-grid {

    display: flex;

    flex-direction: column;

    gap: 6px;

    width: 100%;
}


/* =========================================================
   SUBCATEGORY CARD
   ========================================================= */

.ogc-subcategory-card {

    width: 100%;

    min-width: 0;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    padding: 9px 11px;

    background: #ffffff;

    border: 1px solid #eadde0;

    border-radius: 7px;

    color: #292526 !important;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 11px;

    font-weight: 600;

    line-height: 1.35;

    text-decoration: none !important;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


/* =========================================================
   SUBCATEGORY HOVER
   ========================================================= */

.ogc-subcategory-card:hover {

    color: #9d5367 !important;

    background: #f7e9ec;

    border-color: #dfc8ce;

    transform: translateX(2px);
}


/* =========================================================
   SUBCATEGORY NAME
   ========================================================= */

.ogc-subcategory-name {

    min-width: 0;

    flex: 1;

    color: inherit;

    white-space: normal;

    overflow: visible;

    text-overflow: clip;
}


/* =========================================================
   SUBCATEGORY ARROW
   ========================================================= */

.ogc-subcategory-arrow {

    flex: 0 0 auto;

    color: #9d5367;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 14px;

    font-weight: 400;

    line-height: 1;

    transition:
        transform 0.2s ease;
}


/* =========================================================
   SUBCATEGORY ARROW HOVER
   ========================================================= */

.ogc-subcategory-card:hover
.ogc-subcategory-arrow {

    transform: translateX(3px);
}


/* =========================================================
   NO CATEGORIES
   ========================================================= */

.ogc-no-categories {

    width: 100%;

    padding: 50px 25px;

    background: #fffafa;

    border: 1px solid #eee7e8;

    border-radius: 14px;

    text-align: center;

    /*
     * Span all columns.
     */
    column-span: all;
}


.ogc-no-categories h2 {

    margin: 0 0 8px !important;

    padding: 0 !important;

    color: #292526 !important;

    font-family: Arial, Helvetica, sans-serif !important;

    font-size: 21px !important;
}


.ogc-no-categories p {

    margin: 0 !important;

    padding: 0 !important;

    color: #8f7d82;

    font-size: 13px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 999px) {

    .ogc-categories-container {

        max-width: 850px;

        padding-left: 16px;

        padding-right: 16px;
    }


    /* Two independent columns */

    .ogc-categories-section
    .ogc-categories-container {

        column-count: 2;

        column-gap: 16px;
    }


    /* Category top */

    .ogc-category-top {

        min-height: 110px;
    }


    /* Image */

    .ogc-category-image {

        flex-basis: 84px;

        width: 84px;

        height: 84px;
    }


    /* Title */

    .ogc-category-info h2 a {

        font-size: 16px !important;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 649px) {

    /* Container */

    .ogc-categories-container {

        padding-left: 12px;

        padding-right: 12px;
    }


    /* Header */

    .ogc-categories-header {

        padding: 32px 0 27px;
    }


    .ogc-categories-eyebrow {

        margin-bottom: 7px;

        font-size: 9px;

        letter-spacing: 1.1px;
    }


    .ogc-categories-header h1 {

        margin-bottom: 8px !important;

        font-size: 25px !important;
    }


    .ogc-categories-header p {

        font-size: 12px;

        line-height: 1.6;
    }


    /* Section */

    .ogc-categories-section {

        padding: 25px 0 45px;
    }


    /* One column */

    .ogc-categories-section
    .ogc-categories-container {

        column-count: 1;

        column-gap: 0;
    }


    /* Category card */

    .ogc-category-card {

        margin-bottom: 13px;

        border-radius: 12px;
    }


    /* Category top */

    .ogc-category-top {

        min-height: 0;

        padding: 9px;
    }


    /* Category image */

    .ogc-category-image {

        flex: 0 0 82px;

        width: 82px;

        height: 82px;

        padding: 5px;

        border-radius: 9px;
    }


    .ogc-category-image img {

        border-radius: 6px;
    }


    /* Category information */

    .ogc-category-info {

        padding: 0 8px;
    }


    .ogc-category-label {

        margin-bottom: 4px;

        font-size: 8px;
    }


    .ogc-category-info h2 {

        margin-bottom: 4px !important;
    }


    .ogc-category-info h2 a {

        font-size: 15px !important;

        line-height: 1.25 !important;
    }


    .ogc-category-count {

        font-size: 9px;
    }


    /* View button */

    .ogc-category-view {

        width: 31px;

        height: 31px;
    }


    .ogc-category-view strong {

        font-size: 14px;
    }


    /* =====================================================
       SUBCATEGORIES - MOBILE
       ===================================================== */

    .ogc-subcategories {

        padding: 11px 9px 10px;
    }


    .ogc-subcategories-title {

        margin-bottom: 7px;
    }


    .ogc-subcategory-grid {

        gap: 5px;
    }


    .ogc-subcategory-card {

        padding: 9px 10px;

        border-radius: 6px;

        font-size: 11px;

        line-height: 1.35;
    }


    .ogc-subcategory-arrow {

        font-size: 12px;
    }

}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 359px) {

    /* Image */

    .ogc-category-image {

        flex-basis: 74px;

        width: 74px;

        height: 74px;
    }


    /* Information */

    .ogc-category-info {

        padding: 0 6px;
    }


    /* Category title */

    .ogc-category-info h2 a {

        font-size: 14px !important;
    }


    /* View button */

    .ogc-category-view {

        width: 28px;

        height: 28px;
    }


    .ogc-category-view strong {

        font-size: 13px;
    }


    /* Subcategories */

    .ogc-subcategory-card {

        padding: 8px 9px;

        font-size: 10px;
    }

}