
/* =====================================================
   A1 CASH & CARRY - DEALS WORTH SHARING
===================================================== */

.deals-sharing {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.25fr);
    gap: 24px;
    align-items: stretch;
    margin: 42px auto;
}

/* ================= FULL IMAGE BANNER ================= */

.sharing-banner {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 390px;
    overflow: hidden;
    isolation: isolate;
    border-radius: 14px;
    background: #f5f5f5;
    text-decoration: none;
    color: #171717;
}

/* Image covers the entire banner */
.sharing-banner-image {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 1;
    clip-path: none;
}

/* Text without blue background */
.sharing-banner-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    align-self: stretch;
    box-sizing: border-box;
    width: 100%;
    min-height: 390px;
    padding: 30px;
    color: #171717;
    background: transparent;
}

.sharing-eyebrow {
    display: inline-block;
    margin-bottom: 15px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #d50e0e;
}

.sharing-banner h2 {
    max-width: 330px;
    margin: 0 0 16px;
    color: #000000;
    font-size: clamp(28px, 2.5vw, 42px);
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 0 1px 5px rgba(255, 255, 255, 0.7);
}

.sharing-banner p {
    max-width: 260px;
    margin: 0 0 22px;
    color: #171717;
    font-size: 14px;
    line-height: 1.7;
    text-shadow: 0 1px 5px rgba(255, 255, 255, 0.8);
}

.sharing-shop-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 19px;
    border-radius: 30px;
    background: #df0707;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    transition: transform 0.2s ease;
}

.sharing-banner:hover .sharing-shop-btn {
    transform: translateY(-3px);
}

/* ================= RIGHT PRODUCT SECTION ================= */

.sharing-products-area {
    position: relative;
    min-width: 0;
    padding: 2px 0 48px;
}

.sharing-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.sharing-heading h2 {
    margin: 0 0 5px;
    color: var(--text-color, #171717);
    font-size: 25px;
    line-height: 1.3;
}

.sharing-heading p {
    margin: 0;
    color: var(--muted-text, #707070);
    font-size: 13px;
    line-height: 1.6;
}

.sharing-view-all {
    flex-shrink: 0;
    padding-top: 8px;
    color: var(--text-color, #171717);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.sharing-view-all:hover {
    color: #087c35;
}

/* ================= AUTOMATIC PRODUCT SLIDER ================= */

.sharing-products {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 3px 2px 12px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.sharing-products::-webkit-scrollbar {
    display: none;
}

.sharing-product-card {
    position: relative;
    flex: 0 0 calc((100% - 32px) / 3);
    min-width: 0;
    scroll-snap-align: start;
}

.sharing-product-image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 190px;
    overflow: hidden;
    border-radius: 10px;
    background: #f5f6f4;
    text-decoration: none;
}

.sharing-product-image {
    width: 100%;
    height: 100%;
    padding: 10px;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.sharing-product-image-link:hover .sharing-product-image {
    transform: scale(1.06);
}

.sharing-wishlist {
    position: absolute;
    top: 9px;
    right: 9px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #171717;
    cursor: pointer;
    box-shadow: 0 2px 8px #00000012;
}

.sharing-wishlist.active {
    color: #e11d48;
}

.sharing-options {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 35px;
    margin: 10px 0;
    padding: 8px 17px;
    border-radius: 25px;
    background: #e10e0e;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.sharing-options:hover {
    background: #c91010;
}

.sharing-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 7px;
    margin-bottom: 6px;
}

.sharing-price strong {
    color: #0d0808;
    font-size: 19px;
    font-weight: 900;
}

.sharing-price del {
    color: #888;
    font-size: 11px;
}

.sharing-price span {
    color: #ca0e0e;
    font-size: 11px;
    font-weight: 700;
}

.sharing-product-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    min-height: 38px;
    overflow: hidden;
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}

.sharing-product-name a {
    color: var(--text-color, #222);
    text-decoration: none;
}

.sharing-product-name a:hover {
    color: #cb1414;
}

.sharing-controls {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    gap: 9px;
}

.sharing-controls button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    color: #111;
    cursor: pointer;
}

.sharing-controls button:hover {
    border-color: #e02110;
    background: #dc0b0b;
    color: #fff;
}

.sharing-empty {
    min-width: 100%;
    padding: 25px;
    color: #777;
    text-align: center;
}

/* ================= DARK MODE ================= */

body.dark-mode .sharing-product-image-link {
    background: #242424;
}

body.dark-mode .sharing-wishlist,
body.dark-mode .sharing-controls button {
    border-color: #444;
    background: #292929;
    color: #fff;
}

/* ================= TABLET ================= */

@media (max-width: 900px) {
    .deals-sharing {
        grid-template-columns: 1fr;
    }

    .sharing-banner,
    .sharing-banner-content {
        min-height: 330px;
    }

    .sharing-product-card {
        flex-basis: calc((100% - 32px) / 3);
    }
}

/* ================= MOBILE ================= */

@media (max-width: 600px) {
    .deals-sharing {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        margin-top: 25px;
        margin-bottom: 25px;
    }

    .sharing-banner,
    .sharing-banner-content {
        min-height: 300px;
    }

    .sharing-banner-image {
        object-position: center;
    }

    .sharing-banner-content {
        padding: 18px;
    }

    .sharing-banner h2 {
        max-width: 250px;
        font-size: 27px;
    }

    .sharing-banner p {
        font-size: 12px;
    }

    .sharing-heading h2 {
        font-size: 20px;
    }

    .sharing-product-card {
        flex-basis: calc((100% - 12px) / 2);
    }

    .sharing-product-image-link {
        height: 155px;
    }

    .sharing-price strong {
        font-size: 17px;
    }
}


