/* ==========================================================
   MAGICTRICKS.COM CATEGORY PAGES
   category-pages.css

   Category-family styling for:
   - Shift4Shop category structure
   - Main category header images
   - Category introductory text
   - Scroll-to-products message
   - Shift4Shop-generated subcategory buttons
   - Category toolbar and product area
   - Text-only subcategory headers

   MagicTricks.com Brand Colors:
   Blue:   #005778
   Orange: #E65100
   Light:  #F3F8F8
   ========================================================== */


/* ==========================================================
   CATEGORY STRUCTURE
   Previously supplied by default.css.
   ========================================================== */

#category .container {
    max-width: 1400px;
}

#category .category-header {
    text-align: center;
}

#category .category-toolbar a > div {
    margin-top: -1px;
    margin-right: 10px;
    margin-left: 10px;
}

#category .category-toolbar a#list-view {
    position: relative;
    padding: 0 0 0 5px;
}

#category .category-toolbar a#list-view::after {
    content: "List";
    position: absolute;
    top: auto;
    right: auto;
    bottom: -18px;
    left: 8px;
    margin: auto;
    font-size: 11px;
    letter-spacing: 0.4px;
    text-align: center;
    text-transform: uppercase;
}

#category .category-toolbar a#grid-view {
    position: relative;
}

#category .category-toolbar a#grid-view::after {
    content: "Grid";
    position: absolute;
    right: 0;
    bottom: -18px;
    left: -3px;
    margin: auto;
    font-size: 11px;
    letter-spacing: -0.4px;
    text-align: center;
    text-transform: uppercase;
}

#category .category-toolbar a#list-view.current-view::after,
#category .category-toolbar a#grid-view.current-view::after {
    color: #000;
}


/* ==========================================================
   MAIN CATEGORY HEADER
   Used on main category pages such as:
   Card Magic, Coin Magic, Mentalism, etc.
   ========================================================== */

.mt-category-hero {
    width: 100%;
    margin: 0 auto 18px;
    text-align: center;
}

.mt-category-hero img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 6px;
}


/* ==========================================================
   CATEGORY INTRODUCTION
   Live HTML text displayed below the category header image.
   ========================================================== */

.mt-category-intro {
    max-width: 980px;
    margin: 0 auto 22px;
    padding: 0 20px;
    color: #464646;
    font-size: 17px;
    line-height: 1.6;
    text-align: center;
}

.mt-category-intro p {
    margin: 0;
}


/* ==========================================================
   SCROLL TO PRODUCTS MESSAGE
   Optional message for parent categories with large blocks
   of subcategory buttons above the product listings.
   ========================================================== */

#category .mt-scroll-products {
    display: block;
    margin: 12px auto 0;
    color: #E65100 !important;
    font-size: 16px;
    font-weight: 700 !important;
    line-height: 1.3;
    text-align: center;
    text-transform: uppercase;
}


/* ==========================================================
   SHIFT4SHOP-GENERATED SUBCATEGORIES
   Shift4Shop remains the source for names and links.
   Structural rules and MagicTricks.com appearance are kept
   together here so category pages no longer depend on
   category-specific rules in default.css.
   ========================================================== */

#category .subcategories {
    border-bottom: 1px solid #ececec;
    padding: 0 0 12px;
}

#category section.subcategories_block {
    margin: 0 0 14px;
}

#category .subcategories > ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#category .subcategories > ul > li {
    float: left;
    margin: 0;
    padding: 3px;
}

#category .subcategories > ul > li > a {
    position: relative;
    float: left;
    width: 100%;
    height: 60px;
    color: #ffffff;
    text-decoration: none;
    background: #005778;
    border: 1px solid #005778;
    border-radius: 5px;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

#category .subcategories > ul > li > a:hover {
    color: #ffffff;
    background: #E65100;
    border-color: #E65100;
    opacity: 1;
    transform: translateY(-1px);
}

#category .subcategories > ul > li span.category-img {
    display: inline-block;
    position: relative;
    float: left;
    width: 100%;
    height: 150px;
    padding-top: 0;
}

#category .subcategories > ul > li span.category-img img {
    display: none;
}

#category .subcategories > ul > li span.name {
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    float: left;
    width: 100%;
    margin: auto;
    padding: 0 4px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    transform: translateY(-50%);
}


/* ==========================================================
   CATEGORY PRODUCT AREA
   ========================================================== */

#category .category-products {
    padding: 15px 0 30px;
}

#category .category-actions {
    margin: 0 0 15px;
    padding: 0 0 15px;
    border-bottom: 1px solid #ececec;
}

#category .category-actions .paging {
    margin: 0;
    padding-bottom: 0;
}


/* ==========================================================
   CATEGORY SIDEBAR
   ========================================================== */

#category .widget-body .side-cat {
    display: inline-block;
    padding: 0;
    list-style: none;
}

#category .widget-body .side-cat li a {
    float: left;
    width: 100%;
    padding: 2px 5px;
    font-size: 17px;
    border-bottom: 1px solid #eee;
}

#category .widget-body .side-cat li a:hover {
    color: #fff;
    background: #E65100;
}


/* ==========================================================
   SUBCATEGORY HEADER
   Text-only header for child category pages such as:
   Card Magic Books, Card Magic DVDs, Card Tricks, etc.
   ========================================================== */

.mt-subcategory-header {
    margin: 4px auto 18px;
    padding: 18px 20px 16px;
    text-align: center;
    background: #F3F8F8;
    border-radius: 6px;
}

.mt-subcategory-eyebrow {
    margin-bottom: 5px;
    color: #E65100;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.mt-subcategory-title {
    margin: 0;
    color: #005778;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
    text-transform: uppercase;
}

.mt-subcategory-rule {
    width: 70px;
    height: 3px;
    margin: 10px auto 0;
    background: #E65100;
}


/* ==========================================================
   RECOMMENDED TRICKS JUMP TARGET
   Adds clearance below the desktop sticky navigation when
   jumping past longer introductory content.
   ========================================================== */

@media screen and (min-width: 601px) {

    #recommended-tricks {
        scroll-margin-top: 110px;
    }
}


/* ==========================================================
   TABLET
   ========================================================== */

@media screen and (max-width: 850px) {

    .mt-category-hero {
        margin-bottom: 16px;
    }

    .mt-category-intro {
        padding: 0 16px;
        font-size: 16px;
        line-height: 1.55;
    }
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media screen and (max-width: 600px) {

    .mt-category-hero {
        margin-bottom: 14px;
    }

    .mt-category-hero img {
        border-radius: 4px;
    }

    .mt-category-intro {
        margin-bottom: 18px;
        padding: 0 10px;
        font-size: 16px;
        line-height: 1.55;
    }

    #category .mt-scroll-products {
        margin-top: 10px;
        font-size: 16px;
    }

    #category .subcategories > ul > li {
        width: 50% !important;
        padding: 3px;
        box-sizing: border-box;
    }

    #category .subcategories > ul > li > a {
        border-radius: 4px;
    }

    #category .subcategories > ul > li span.name {
        font-size: 14px;
    }

    .mt-subcategory-header {
        margin-bottom: 14px;
        padding: 15px 12px 13px;
        border-radius: 4px;
    }

    .mt-subcategory-eyebrow {
        font-size: 12px;
        letter-spacing: 1.2px;
    }

    .mt-subcategory-title {
        font-size: 24px;
    }

    .mt-subcategory-rule {
        width: 56px;
    }
}