
/*
 * THE YUNUS FOUNDATION
 * IMPACT STORE ENHANCEMENTS
 *
 * Product catalogue, product details, cart and checkout preview.
 * All rules are scoped to Impact Store pages.
 * Does not change the homepage, main header or footer.
 */

/* =========================================
   SHOP SEARCH AND FILTERS
========================================= */

body[data-impact-page] .yunus-shop-controls {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0 22px;
}

body[data-impact-page] .yunus-shop-search {
    flex: 1 1 300px;
    max-width: 520px;
}

body[data-impact-page] .yunus-shop-sort {
    flex: 1 1 190px;
    max-width: 250px;
}

body[data-impact-page] .yunus-shop-controls label {
    display: block;
    margin-bottom: 9px;
    font-size: 14px;
    font-weight: 700;
    color: #263c2c;
}

body[data-impact-page] .yunus-shop-controls input,
body[data-impact-page] .yunus-shop-controls select {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 15px;
    border: 1px solid #d9dfd3;
    border-radius: 7px;
    background: #fff;
    color: #263529;
    font: inherit;
}

body[data-impact-page] .yunus-shop-controls input:focus,
body[data-impact-page] .yunus-shop-controls select:focus {
    outline: 2px solid #df8c16;
    outline-offset: 2px;
}

body[data-impact-page] .yunus-result-count {
    margin: 12px 0 24px;
    color: #647066;
    font-size: 14px;
}

/* =========================================
   ALL PRODUCT IMAGES — NO CROPPING
========================================= */

body[data-impact-page] .is-product-visual {
    position: relative;
    overflow: hidden;
    background: #f8f5ea;
    aspect-ratio: 4 / 5;
}

body[data-impact-page]
.is-product-visual > .is-product-picture {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transform: none;
    transition: none;
}

body[data-impact-page]
.is-product-card:hover .is-product-picture {
    transform: none;
}

/* Product mockups already contain the exact logo. */
body[data-impact-page] .is-product-visual .is-mark {
    display: none;
}

/* =========================================
   PRODUCT CARDS
========================================= */

body[data-impact-page] .is-product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

body[data-impact-page] .is-product-card > a {
    display: block;
}

body[data-impact-page] .is-product-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

body[data-impact-page] .is-product-body h3 {
    margin-bottom: 12px;
}

body[data-impact-page] .is-product-body h3 a:hover {
    color: #4e5b31;
}

body[data-impact-page] .is-product-body .is-small {
    flex: 1;
    margin-bottom: 18px;
}

body[data-impact-page] .is-product-bottom {
    margin-top: auto;
}

body[data-impact-page] .is-product-bottom .is-button {
    white-space: nowrap;
}

/* =========================================
   INDIVIDUAL PRODUCT DETAILS
========================================= */

body[data-impact-page="product"] .is-main {
    padding-top: 35px;
}

body[data-impact-page="product"] .is-crumb {
    margin-bottom: 28px;
}

body[data-impact-page="product"] .is-detail {
    align-items: start;
}

body[data-impact-page="product"]
.is-detail .is-product-visual {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 14px;
    overflow: hidden;
    background: #f8f5ea;
}

body[data-impact-page="product"]
.is-detail .is-product-picture {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
}

body[data-impact-page="product"] .is-detail h1 {
    margin-bottom: 17px;
}

body[data-impact-page="product"] .is-detail-desc {
    margin-bottom: 18px;
}

body[data-impact-page="product"] .is-detail-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
}

body[data-impact-page="product"]
.is-detail-price .is-small {
    font-size: 13px;
    font-weight: 400;
}

body[data-impact-page="product"] .is-options-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

body[data-impact-page="product"]
.is-options-inline .is-field {
    flex: 1 1 180px;
}

body[data-impact-page="product"] .is-field input,
body[data-impact-page="product"] .is-field select {
    min-height: 46px;
}

body[data-impact-page="product"] .yunus-variant-note {
    margin: 12px 0 22px;
    padding: 12px 15px;
    border-left: 3px solid #df8c16;
    background: #f8f5ea;
    color: #35452e;
    font-size: 14px;
}

body[data-impact-page="product"] .is-detail .is-button {
    min-height: 48px;
}

/* =========================================
   PRODUCT INFORMATION AND DELIVERY
========================================= */

body[data-impact-page] .yunus-delivery-note {
    margin: 26px 0;
    padding: 22px;
    border: 1px solid #e5e8db;
    border-radius: 10px;
    background: #f8f5ea;
}

body[data-impact-page] .yunus-delivery-note h3 {
    margin-bottom: 12px;
    color: #4e5b31;
}

body[data-impact-page] .yunus-delivery-note p {
    margin: 0 0 10px;
}

body[data-impact-page]
.yunus-delivery-note p:last-child {
    margin-bottom: 0;
}

/* =========================================
   RECOMMENDED PRODUCTS
========================================= */

body[data-impact-page="product"] .is-more {
    margin-top: 55px;
}

body[data-impact-page="product"]
.is-recommendations .is-product-card {
    height: 100%;
}

/* =========================================
   SHOPPING CART
========================================= */

body[data-impact-page="cart"] .is-main {
    padding-top: 35px;
}

body[data-impact-page="cart"] .is-cart-row {
    align-items: center;
    gap: 20px;
}

body[data-impact-page="cart"]
.is-cart-row .is-product-visual {
    width: 110px;
    aspect-ratio: 4 / 5;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f5ea;
}

body[data-impact-page="cart"]
.is-cart-row .is-product-picture {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

body[data-impact-page="cart"] .is-cart-row h3 {
    margin-bottom: 7px;
}

body[data-impact-page="cart"] .is-cart-meta {
    margin-bottom: 12px;
}

body[data-impact-page="cart"] .is-qty {
    min-height: 38px;
    text-align: center;
}

body[data-impact-page="cart"] .is-remove {
    display: inline-block;
    margin-top: 12px;
    border: 0;
    background: transparent;
    color: #a23b35;
    text-decoration: underline;
    cursor: pointer;
}

body[data-impact-page="cart"] .is-cart-price {
    white-space: nowrap;
}

body[data-impact-page="cart"] .is-summary {
    border-radius: 12px;
}

body[data-impact-page="cart"]
.is-summary .is-button {
    width: 100%;
    margin-top: 20px;
}

/* =========================================
   CHECKOUT PREVIEW
   NO PAYMENT ACTIVATION
========================================= */

body[data-impact-page="checkout"] .is-main {
    padding-top: 35px;
}

body[data-impact-page="checkout"] .is-panel {
    margin-bottom: 22px;
}

body[data-impact-page="checkout"] .is-summary {
    border-radius: 12px;
}

body[data-impact-page="checkout"]
.is-add-buttons button[aria-pressed="true"] {
    border-color: #4e5b31;
    background: #4e5b31;
    color: #fff;
}

body[data-impact-page="checkout"]
.is-summary .is-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* =========================================
   ACCESSIBILITY
========================================= */

body[data-impact-page] .impact-store-shell
a:focus-visible,
body[data-impact-page] .impact-store-shell
button:focus-visible,
body[data-impact-page] .impact-store-shell
input:focus-visible,
body[data-impact-page] .impact-store-shell
select:focus-visible {
    outline: 2px solid #df8c16;
    outline-offset: 3px;
}

/* =========================================
   TABLET AND MOBILE
========================================= */

@media (max-width: 767px) {

    body[data-impact-page] .yunus-shop-controls {
        display: block;
        margin-top: 22px;
    }

    body[data-impact-page] .yunus-shop-search,
    body[data-impact-page] .yunus-shop-sort {
        max-width: none;
        margin-bottom: 17px;
    }

    body[data-impact-page="product"] .is-main,
    body[data-impact-page="cart"] .is-main,
    body[data-impact-page="checkout"] .is-main {
        padding-top: 25px;
    }

    body[data-impact-page="product"]
    .is-detail .is-product-visual {
        max-height: none;
        aspect-ratio: 4 / 5;
    }

    body[data-impact-page="product"] .is-more {
        margin-top: 40px;
    }

    body[data-impact-page] .yunus-delivery-note {
        padding: 17px;
    }

    body[data-impact-page="cart"] .is-cart-row {
        gap: 12px;
    }

    body[data-impact-page="cart"]
    .is-cart-row .is-product-visual {
        width: 72px;
    }

    body[data-impact-page="cart"] .is-cart-price {
        white-space: normal;
    }
}
