/* =========================================================
   MARUWATA - CATEGORY PAGE
   PROFESSIONAL E-COMMERCE STYLE
   BIG SHOP-STYLE PRODUCT IMAGES
========================================================= */


/* =========================================================
   CATEGORY PAGE
========================================================= */

.category-page {
    width: 100%;
    max-width: 1440px;

    margin: 0 auto;

    padding: 0 28px 80px;

    box-sizing: border-box;
}


/* =========================================================
   CATEGORY HERO
========================================================= */

.category-hero {
    width: 100vw;
    max-width: 100vw;

    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    margin-top: 0;
    margin-bottom: 55px;

    padding: 78px 25px;

    position: relative;
    overflow: hidden;

    text-align: center;

    background:
        radial-gradient(
            circle at 8% 20%,
            rgba(255, 138, 0, 0.13),
            transparent 30%
        ),
        radial-gradient(
            circle at 92% 80%,
            rgba(229, 57, 53, 0.11),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #ffffff 0%,
            #fafafa 50%,
            #ffffff 100%
        );

    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.04);
}


/* =========================================================
   HERO DECORATION
========================================================= */

.category-hero::before {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    top: -170px;
    left: -90px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255, 138, 0, 0.16),
            transparent 70%
        );

    pointer-events: none;
}


.category-hero::after {
    content: "";

    position: absolute;

    width: 340px;
    height: 340px;

    right: -130px;
    bottom: -200px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(229, 57, 53, 0.12),
            transparent 70%
        );

    pointer-events: none;
}


/* =========================================================
   HERO CONTENT
========================================================= */

.category-hero-content {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 900px;

    margin: 0 auto;
}


/* =========================================================
   HERO EYEBROW
========================================================= */

.category-eyebrow {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 17px;

    padding: 8px 18px;

    color: #e53935;

    background: rgba(229, 57, 53, 0.07);

    border: 1px solid rgba(229, 57, 53, 0.13);

    border-radius: 50px;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 3px;

    text-transform: uppercase;
}


/* =========================================================
   HERO TITLE
========================================================= */

.category-hero h1 {
    margin: 0;
    padding: 0;

    color: #171717;

    font-size: clamp(40px, 5vw, 62px);

    line-height: 1.1;

    font-weight: 800;

    letter-spacing: -1.8px;

    text-transform: capitalize;
}


/* =========================================================
   TITLE LINE
========================================================= */

.category-title-line {
    width: 82px;
    height: 4px;

    margin: 20px auto 22px;

    border-radius: 50px;

    background:
        linear-gradient(
            90deg,
            #e53935,
            #ff8a00
        );

    box-shadow:
        0 5px 14px rgba(229, 57, 53, 0.20);
}


/* =========================================================
   HERO DESCRIPTION
========================================================= */

.category-hero p {
    max-width: 680px;

    margin: 0 auto;

    color: #777;

    font-size: 16px;

    line-height: 1.8;
}


/* =========================================================
   PRODUCT GRID
========================================================= */

.products-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 26px;
}


/* =========================================================
   PRODUCT CARD
========================================================= */

.product-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;

    padding: 18px;

    background: #ffffff;

    border: 1px solid #ededed;

    border-radius: 20px;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.045);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


.product-card:hover {
    transform: translateY(-6px);

    border-color: #e5e5e5;

    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.10);
}


/* =========================================================
   PRODUCT IMAGE AREA
   BIG LIKE SHOP PAGE
========================================================= */

.product-image-link {
    position: relative;

    display: block;

    width: 100%;
    height: 310px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #fafafa,
            #f5f5f5
        );

    border-radius: 15px;

    text-decoration: none;
}


.product-card img {
    display: block;

    width: 100%;
    height: 310px;

    padding: 6px;

    box-sizing: border-box;

    object-fit: contain;

    transition:
        transform 0.45s cubic-bezier(.2,.7,.2,1);
}


.product-card:hover img {
    transform: scale(1.055);
}


/* =========================================================
   SALE BADGE
========================================================= */

.sale-badge {
    position: absolute;

    top: 28px;
    left: 28px;

    z-index: 5;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 28px;

    padding: 0 12px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #e53935,
            #ff5a36
        );

    border-radius: 50px;

    box-shadow:
        0 5px 14px rgba(229, 57, 53, 0.24);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 0.8px;
}


/* =========================================================
   PRODUCT NAME
   CENTERED
========================================================= */

.product-card h3 {
    min-height: 50px;

    margin: 17px 2px 8px;

    color: #191919;

    font-size: 17px;

    font-weight: 700;

    line-height: 1.4;

    text-align: center;

    overflow: hidden;

    display: -webkit-box;

    -webkit-box-orient: vertical;

    -webkit-line-clamp: 2;
}


/* =========================================================
   SKU
   CENTERED
========================================================= */

.sku {
    width: fit-content;
    max-width: 100%;

    margin: 0 auto 13px;

    padding: 5px 12px;

    color: #888;

    background: #f7f7f7;

    border: 1px solid #eeeeee;

    border-radius: 20px;

    font-size: 11px;

    line-height: 1.2;

    text-align: center;
}


/* =========================================================
   PRICE
   CENTERED
========================================================= */

.price-box {
    display: flex;

    align-items: baseline;

    justify-content: center;

    gap: 9px;

    flex-wrap: wrap;

    width: 100%;

    margin-bottom: 8px;

    text-align: center;
}


.old-price {
    color: #999;

    font-size: 13px;

    text-decoration: line-through;
}


.new-price {
    color: #e53935;

    font-size: 21px;

    font-weight: 800;

    letter-spacing: -0.3px;
}


/* =========================================================
   RATING / REVIEWS
   CENTERED
========================================================= */

.rating {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    margin-bottom: 16px;

    color: #ffb400;

    font-size: 14px;

    letter-spacing: 1px;

    text-align: center;
}


/* =========================================================
   BUTTON AREA
========================================================= */

.product-buttons {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 9px;

    width: 100%;

    margin-top: auto;
}


/* =========================================================
   ALL PRODUCT BUTTONS
========================================================= */

.product-buttons a,
.product-buttons .cart-btn {
    position: relative;

    width: 100%;

    min-width: 0;

    min-height: 45px;

    box-sizing: border-box;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    padding: 0 12px;

    border-radius: 11px;

    border: 1px solid transparent;

    text-decoration: none;

    font-family: inherit;

    font-size: 12px;

    font-weight: 750;

    line-height: 1;

    white-space: nowrap;

    cursor: pointer;

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease,
        border-color 0.22s ease;
}


/* =========================================================
   VIEW PRODUCT BUTTON
========================================================= */

.product-buttons a:first-child {
    color: #222222;

    background: #ffffff;

    border-color: #0D61A2;

    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.025);
}


.product-buttons a:first-child:hover {
    color: #111111;

    background: #f7f7f7;

    border-color: #cfcfcf;

    transform: translateY(-3px);

    box-shadow:
        0 6px 14px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   CART BUTTON
========================================================= */

.product-buttons .cart-btn {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #ff8a00 0%,
            #ff6500 100%
        );

    border-color: transparent;

    box-shadow:
        0 5px 13px rgba(255, 101, 0, 0.20);
}


.product-buttons .cart-btn:hover {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #ff7600 0%,
            #f45100 100%
        );

    transform: translateY(-2px);

    box-shadow:
        0 8px 18px rgba(255, 101, 0, 0.28);
}


.product-buttons .cart-btn:active {
    transform: translateY(0);

    box-shadow:
        0 3px 8px rgba(255, 101, 0, 0.20);
}


/* =========================================================
   ADD TO CART FORM
========================================================= */

.add-cart-form {
    display: block;

    width: 100%;

    margin: 0;
    padding: 0;
}


.add-cart-form button.cart-btn {
    appearance: none;

    -webkit-appearance: none;

    font-family: inherit;
}


/* =========================================================
   BUTTON ICON SUPPORT
========================================================= */

.product-buttons i {
    font-size: 13px;
}


/* =========================================================
   EMPTY CATEGORY
========================================================= */

.empty-category {
    width: 100%;

    min-height: 420px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 60px 20px;

    text-align: center;

    box-sizing: border-box;
}


.empty-category-content {
    width: 100%;

    max-width: 600px;

    padding: 45px 30px;

    margin: 0 auto;

    background: #ffffff;

    border: 1px solid #eeeeee;

    border-radius: 24px;

    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.07);
}


.empty-icon {
    width: 70px;
    height: 70px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin: 0 auto 20px;

    border-radius: 50%;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #e53935,
            #ff8a00
        );

    font-size: 28px;

    box-shadow:
        0 10px 25px rgba(229, 57, 53, 0.20);
}


.empty-category h1,
.empty-category h2 {
    margin: 0 0 15px;

    color: #222222;

    font-weight: 800;
}


.empty-category p {
    max-width: 520px;

    margin: 0 auto 25px;

    color: #777777;

    line-height: 1.7;
}


.empty-category a {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    min-height: 48px;

    padding: 0 25px;

    color: #ffffff;

    background: #111111;

    border-radius: 11px;

    text-decoration: none;

    font-weight: 700;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


.empty-category a:hover {
    color: #ffffff;

    background: #292929;

    transform: translateY(-2px);

    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.12);
}


/* =========================================================
   SALE / NEW ARRIVALS EMPTY
========================================================= */

.sale-empty {
    width: 100%;

    min-height: 520px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 70px 20px;

    box-sizing: border-box;

    background:
        radial-gradient(
            circle at top left,
            rgba(255, 77, 77, 0.12),
            transparent 35%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(255, 193, 7, 0.12),
            transparent 35%
        ),
        #ffffff;

    border-radius: 25px;
}


.sale-empty-content {
    width: 100%;

    max-width: 650px;

    padding: 55px 35px;

    text-align: center;

    background: #ffffff;

    border: 1px solid #eeeeee;

    border-radius: 24px;

    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.08);
}


.sale-icon {
    width: 75px;
    height: 75px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin: 0 auto 22px;

    border-radius: 50%;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #e53935,
            #ff6b35
        );

    font-size: 30px;

    box-shadow:
        0 10px 25px rgba(229, 57, 53, 0.20);
}


.sale-label {
    display: inline-block;

    margin-bottom: 12px;

    color: #e53935;

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 2px;
}


.sale-empty h2 {
    margin: 0 0 15px;

    color: #222222;

    font-size: 34px;

    font-weight: 800;
}


.sale-empty p {
    max-width: 520px;

    margin: 0 auto 30px;

    color: #777777;

    font-size: 16px;

    line-height: 1.7;
}


.sale-actions {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    flex-wrap: wrap;
}


.sale-primary-btn,
.sale-secondary-btn {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    min-height: 48px;

    padding: 0 25px;

    border-radius: 11px;

    text-decoration: none;

    font-weight: 700;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.sale-primary-btn {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #e53935,
            #ff6b35
        );

    box-shadow:
        0 7px 18px rgba(229, 57, 53, 0.20);
}


.sale-primary-btn:hover {
    color: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 10px 24px rgba(229, 57, 53, 0.27);
}


.sale-secondary-btn {
    color: #333333;

    background: #f5f5f5;

    border: 1px solid #e5e5e5;
}


.sale-secondary-btn:hover {
    color: #222222;

    background: #eeeeee;

    transform: translateY(-2px);
}


/* =========================================================
   LARGE DESKTOP
========================================================= */

@media (max-width: 1250px) {

    .products-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 950px) {

    .category-page {
        padding-left: 20px;
        padding-right: 20px;
    }


    .products-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 20px;
    }


    .product-image-link {
        height: 285px;
    }


    .product-card img {
        height: 285px;
    }

}


/* =========================================================
   SMALL TABLET
========================================================= */

@media (max-width: 700px) {

    .category-hero {
        padding: 58px 20px;

        margin-bottom: 40px;
    }


    .category-hero h1 {
        font-size: 44px;
    }


    .products-grid {
        gap: 18px;
    }


    .product-card {
        padding: 15px;

        border-radius: 18px;
    }


    .product-image-link {
        height: 270px;
    }


    .product-card img {
        height: 270px;

        padding: 5px;
    }


    .product-card h3 {
        font-size: 16px;

        text-align: center;
    }


    .sku {
        margin-left: auto;
        margin-right: auto;
    }


    .price-box {
        justify-content: center;
    }


    .rating {
        justify-content: center;
    }


    .new-price {
        font-size: 19px;
    }


    .product-buttons {
        gap: 7px;
    }


    .product-buttons a,
    .product-buttons .cart-btn {
        min-height: 43px;

        padding: 0 8px;

        font-size: 11px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .category-page {
        padding-left: 14px;
        padding-right: 14px;
        padding-bottom: 50px;
    }


    .category-hero {
        width: 100vw;
        max-width: 100vw;

        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);

        padding: 45px 18px;

        margin-bottom: 32px;
    }


    .category-eyebrow {
        margin-bottom: 13px;

        padding: 6px 12px;

        font-size: 9px;

        letter-spacing: 2px;
    }


    .category-hero h1 {
        font-size: 36px;

        letter-spacing: -1px;
    }


    .category-title-line {
        width: 65px;

        height: 3px;

        margin: 16px auto 18px;
    }


    .category-hero p {
        font-size: 14px;

        line-height: 1.7;
    }


    /* =====================================================
       MOBILE PRODUCT GRID
    ===================================================== */

    .products-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }


    /* =====================================================
       MOBILE PRODUCT CARD
    ===================================================== */

    .product-card {
        padding: 15px;

        border-radius: 18px;
    }


    /* =====================================================
       BIG MOBILE IMAGE
    ===================================================== */

    .product-image-link {
        height: 300px;
    }


    .product-card img {
        height: 300px;

        padding: 4px;
    }


    /* =====================================================
       CENTER PRODUCT DETAILS
    ===================================================== */

    .product-card h3 {
        min-height: auto;

        margin-top: 15px;

        font-size: 17px;

        text-align: center;
    }


    .sku {
        margin-left: auto;
        margin-right: auto;

        margin-bottom: 10px;
    }


    .price-box {
        justify-content: center;

        margin-bottom: 7px;
    }


    .rating {
        justify-content: center;

        margin-bottom: 14px;
    }


    /* =====================================================
       MOBILE BUTTONS
    ===================================================== */

    .product-buttons {
        grid-template-columns: 1fr 1fr;

        gap: 8px;
    }


    .product-buttons a,
    .product-buttons .cart-btn {
        min-height: 46px;

        border-radius: 11px;

        font-size: 12px;

        padding: 0 10px;
    }


    /* =====================================================
       EMPTY CATEGORY
    ===================================================== */

    .empty-category {
        min-height: 380px;

        padding: 40px 12px;
    }


    .empty-category-content {
        padding: 40px 22px;

        border-radius: 20px;
    }


    /* =====================================================
       SALE EMPTY
    ===================================================== */

    .sale-empty {
        min-height: 450px;

        padding: 40px 12px;

        border-radius: 18px;
    }


    .sale-empty-content {
        padding: 40px 22px;

        border-radius: 18px;
    }


    .sale-empty h2 {
        font-size: 27px;
    }


    .sale-empty p {
        font-size: 15px;
    }


    .sale-actions {
        flex-direction: column;
    }


    .sale-primary-btn,
    .sale-secondary-btn {
        width: 100%;

        box-sizing: border-box;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .category-page {
        padding-left: 10px;
        padding-right: 10px;
    }


    .product-card {
        padding: 13px;
    }


    .product-image-link {
        height: 270px;
    }


    .product-card img {
        height: 270px;
    }


    .product-buttons {
        grid-template-columns: 1fr;
    }


    .product-buttons a,
    .product-buttons .cart-btn {
        width: 100%;

        min-height: 45px;
    }

}