/* =========================================
   GD COLLECTIONS - SHOP PAGE
========================================= */

.shop-page {
    background: #ffffff;
}


/* =========================================
   SHOP HERO
========================================= */

.shop-hero {
    padding: 75px 0 70px;
    background: var(--light);
    text-align: center;
}

.shop-hero .section-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.4;
}

.shop-hero h1 {
    margin: 0 0 14px;
    color: var(--dark);
    font-size: 44px;
    font-weight: 700;
    line-height: 1.15;
}

.shop-hero p {
    max-width: 650px;
    margin: 0 auto;
    color: #666666;
    font-size: 15px;
    line-height: 1.7;
}


/* =========================================
   PRODUCTS SECTION
========================================= */

.shop-products-section {
    padding: 65px 0 90px;
}


/*
 * Give the shop more horizontal space.
 * This prevents the product grid from looking squeezed.
 */

.shop-products-section > .container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}


/* =========================================
   TOOLBAR
========================================= */

.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 35px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.shop-result-count {
    color: #777777;
    font-size: 13px;
    line-height: 1.5;
}

.shop-ordering {
    flex-shrink: 0;
}


/* Remove WooCommerce default wrapper styling */

.shop-ordering .woocommerce-ordering {
    float: none;
    margin: 0;
}

.shop-ordering .woocommerce-ordering select {
    min-width: 190px;
    height: 42px;
    padding: 0 35px 0 13px;
    border: 1px solid var(--border);
    border-radius: 7px;
    outline: none;
    background: #ffffff;
    color: var(--dark);
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
}

.shop-ordering .woocommerce-ordering select:focus {
    border-color: var(--primary);
}


/* =========================================
   IMPORTANT WOOCOMMERCE GRID FIX
========================================= */

/*
 * WooCommerce adds ::before and ::after
 * to ul.products for clearfix purposes.
 *
 * With CSS Grid these can become grid items
 * and create the empty first column seen
 * in the screenshot.
 */

.shop-products-section ul.products::before,
.shop-products-section ul.products::after {
    display: none !important;
    content: none !important;
}


/* =========================================
   PRODUCT GRID
========================================= */

.shop-products-section ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 28px;
    row-gap: 48px;

    width: 100%;
    margin: 0 !important;
    padding: 0 !important;

    list-style: none;
}


/* =========================================
   PRODUCT CARD
========================================= */

.shop-products-section ul.products li.product {
    display: flex;
    flex-direction: column;

    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
}


/* =========================================
   PRODUCT LINK
========================================= */

.shop-products-section
.gd-product-card
.gd-product-link {
    display: block;
    color: inherit;
    text-decoration: none;
}


/* =========================================
   PRODUCT IMAGE
========================================= */

.shop-products-section .gd-product-image {
    position: relative;
    overflow: hidden;

    width: 100%;
    aspect-ratio: 1 / 1;

    border-radius: 16px;
    background: var(--light);
}

.shop-products-section .gd-product-image img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;

    object-fit: cover;

    transition:
        transform 0.4s ease;
}

.shop-products-section
.gd-product-card:hover
.gd-product-image img {
    transform: scale(1.045);
}


/* =========================================
   SALE BADGE
========================================= */

.shop-products-section .gd-product-sale {
    position: absolute;
    top: 14px;
    left: 14px;

    padding: 6px 11px;

    border-radius: 20px;

    background: var(--primary);
    color: #ffffff;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
    line-height: 1;

    text-transform: uppercase;
}


/* =========================================
   PRODUCT INFORMATION
========================================= */

.shop-products-section .gd-product-info {
    padding-top: 15px;
}


/* CATEGORY */

.shop-products-section .gd-product-category {
    min-height: 15px;
    margin-bottom: 6px;

    color: #888888;

    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1.4;

    text-transform: uppercase;
}

.shop-products-section .gd-product-category a {
    color: inherit;
    text-decoration: none;
}


/* TITLE */

.shop-products-section .gd-product-title {
    margin: 0 0 6px;
    color: var(--dark);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}


/* =========================================
   RATING
========================================= */

.shop-products-section .gd-product-rating {
    display: flex;
    align-items: center;
    margin: 3px 0 5px;
}

.shop-products-section
.gd-product-rating
.star-rating {
    display: inline-block;
    width: 5.5em;
    height: 1.2em;
    margin: 0;
    font-size: 12px;
    line-height: 1.2;
    overflow: hidden;
}

.shop-products-section
.gd-product-rating
.star-rating::before {
    color: #d6a04d;
    letter-spacing: 2px;
}

.shop-products-section
.gd-product-rating
.star-rating span::before {
    color: #d6a04d;
    letter-spacing: 2px;
}


/* =========================================
   PRICE
========================================= */

.shop-products-section .gd-product-price {
    margin: 0;
    color: var(--primary);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.shop-products-section
.gd-product-price del {
    margin-right: 6px;
    color: #999999;
    font-size: 12px;
    font-weight: 400;
}

.shop-products-section
.gd-product-price ins {
    text-decoration: none;
}

/* =========================================
   ADD TO CART
========================================= */

.shop-products-section .gd-product-action {
    margin-top: 10px;
}

.shop-products-section
.gd-product-action
.button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 44px;

    padding: 10px 18px;

    border: 1px solid var(--primary);
    border-radius: 24px;

    background: #ffffff;
    color: var(--primary);

    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;

    text-align: center;
    text-decoration: none;

    cursor: pointer;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.2s ease;
}

.shop-products-section
.gd-product-action
.button:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: #ffffff;

    transform: translateY(-1px);
}


/* =========================================
   VIEW CART
========================================= */

.shop-products-section
.gd-product-action
.added_to_cart {
    display: flex !important;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 40px;

    margin-top: 8px;
    padding: 9px 16px;

    border: 1px solid var(--border);
    border-radius: 22px;

    background: var(--light);
    color: var(--dark);

    font-size: 11px;
    font-weight: 600;
    line-height: 1;

    text-align: center;
    text-decoration: none;

    box-sizing: border-box;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

.shop-products-section
.gd-product-action
.added_to_cart:hover {
    border-color: var(--dark);
    background: var(--dark);
    color: #ffffff;
}


/* =========================================
   PAGINATION
========================================= */

.shop-products-section .woocommerce-pagination {
    margin-top: 65px;
    text-align: center;
}

.shop-products-section
.woocommerce-pagination
ul {
    margin: 0;
    padding: 0;
    border: 0 !important;
}

.shop-products-section
.woocommerce-pagination
li {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.shop-products-section
.woocommerce-pagination
a,
.shop-products-section
.woocommerce-pagination
span {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    min-width: 40px;
    height: 40px;

    margin: 0 4px !important;

    border: 1px solid var(--border) !important;
    border-radius: 50%;

    background: #ffffff !important;
    color: var(--dark) !important;

    font-size: 12px;
    text-decoration: none;
}

.shop-products-section
.woocommerce-pagination
a:hover {
    border-color: var(--primary) !important;
    background: var(--primary) !important;
    color: #ffffff !important;
}

.shop-products-section
.woocommerce-pagination
.current {
    border-color: var(--primary) !important;
    background: var(--primary) !important;
    color: #ffffff !important;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1100px) {

    .shop-products-section > .container {
        max-width: 920px;
    }

    .shop-products-section ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 22px;
        row-gap: 40px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

    .shop-hero {
        padding: 55px 0 50px;
    }

    .shop-hero h1 {
        font-size: 34px;
    }

    .shop-hero p {
        max-width: 500px;
        padding: 0 15px;
        font-size: 14px;
    }


    .shop-products-section {
        padding: 50px 0 70px;
    }


    .shop-products-section > .container {
        max-width: 100%;
    }


    .shop-toolbar {
        align-items: flex-start;
        gap: 15px;

        margin-bottom: 28px;
        padding-bottom: 16px;
    }


    .shop-result-count {
        font-size: 12px;
    }


    .shop-ordering {
        flex-shrink: 0;
    }


    .shop-ordering .woocommerce-ordering select {
        min-width: 155px;
        height: 40px;

        font-size: 11px;
    }


    .shop-products-section ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        column-gap: 15px;
        row-gap: 35px;
    }


    .shop-products-section .gd-product-image {
        border-radius: 12px;
    }


    .shop-products-section .gd-product-info {
        padding-top: 12px;
    }


    .shop-products-section .gd-product-title {
        
        font-size: 14px;
    }


    .shop-products-section .gd-product-price {
        font-size: 14px;
    }


    .shop-products-section
    .gd-product-action
    .button {
        min-height: 42px;
        padding: 9px 12px;

        font-size: 11px;
    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 400px) {

    .shop-toolbar {
        flex-direction: column;
        align-items: stretch;
    }


    .shop-ordering {
        width: 100%;
    }


    .shop-ordering .woocommerce-ordering {
        width: 100%;
    }


    .shop-ordering .woocommerce-ordering select {
        width: 100%;
    }


    .shop-products-section ul.products {
        column-gap: 12px;
        row-gap: 30px;
    }


    .shop-products-section .gd-product-title {
        font-size: 13px;
    }


    .shop-products-section .gd-product-price {
        font-size: 13px;
    }

}