﻿/* =========================================================
   BOTTLE SHOP
   ========================================================= */

.bottle-shop {
    width: 100%;
    color: var(--ui-color-black);
    font-family: var(--font-family);
    background: var(--ui-color-white);
    overflow-x: hidden;
}


/* =========================================================
   BANNER
   ========================================================= */

.bottle-banner {
    position: relative;
    width: 100%;
    height: 205px;
    background-image: url("../images/shop_banner2.png");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 1;
}


/* ---------------------------------------------------------
   Banner content
   --------------------------------------------------------- */

.bottle-banner-content {
    width: min( calc(100% - 40px), 600px );
    margin-inline: auto;
    padding-top: 28px;
}


/* ---------------------------------------------------------
   Title
   --------------------------------------------------------- */

.bottle-banner-title {
    margin: 0;
    color: var(--ui-color-white);
    font-family: Sabon;
    font-size: var(--ui-font-size-title);
    font-weight: 600;
    line-height: 1;
}


/* ---------------------------------------------------------
   Description
   --------------------------------------------------------- */

.bottle-banner-description {
    width: 300px;
    margin: 12px 0 0;
    color: var(--ui-color-white);
    font-family: var(--font-family);
    font-size: var(--ui-font-size-micro);
    line-height: 1.25;
}


/* =========================================================
   WHITE PRODUCT AREA
   ========================================================= */

.bottle-products-wrapper {
    position: relative;
    z-index: 2;
    margin-top: 0;
    padding-bottom: 60px;
    background: var(--ui-color-white);
}


/* =========================================================
   PRODUCTS
   ========================================================= */

.bottle-shop-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    justify-items: center;
    gap: clamp( 30px, 5vw, 80px );
    width: min( calc(100% - 80px), 800px );
    margin-inline: auto;
    /*
     * Pull bottles upward over the banner.
     */

    margin-top: -42px;
}


/* =========================================================
   PRODUCT
   ========================================================= */

.bottle-item {
    width: 100%;
    max-width: 210px;
    text-align: center;
}


/* =========================================================
   IMAGE
   ========================================================= */

.bottle-image-wrap {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    height: 330px;
}

.bottle-image {
    display: block;
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: filter 220ms ease, opacity 220ms ease;
}


/* =========================================================
   OUT OF STOCK
   ========================================================= */

.bottle-out-of-stock {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    min-height: 38px;
    padding: 0 15px;
    background: var(--ui-color-gray);
    color: var(--ui-color-white);
    font-family: var(--font-family);
    font-size: var(--ui-font-size-large);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
}


.bottle-item.is-out-of-stock .bottle-image {
    filter: grayscale(100%);
    opacity: 0.35;
}

.bottle-item.is-out-of-stock .bottle-out-of-stock {
    display: flex;
}

.bottle-item.is-out-of-stock .bottle-quantity {
    display: none;
}


/* =========================================================
   PRICE
   ========================================================= */

.bottle-price {
    margin-top: 8px;
    color: var(--ui-color-black);
    font-family: var(--font-family);
    font-size: var(--ui-font-size-title);
    font-weight: 600;
    line-height: 1;
}


/* =========================================================
   PRODUCT NAME
   ========================================================= */

.bottle-name {
    margin-top: 4px;
    color: var(--ui-color-black);
    font-family: var(--font-family);
    font-size: var(--ui-font-size-large);
    font-weight: 600;
    line-height: 1.1;
}


/* =========================================================
   QUANTITY
   ========================================================= */

.bottle-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 7px;
    color: var(--ui-color-gold);
    font-family: var(--font-family);
    font-size: var(--ui-font-size-large);
    line-height: 1;
}

.bottle-quantity-label {
    font-family: Sabon;
    margin-right: 4px;
    font-weight: 700;
}

.bottle-quantity-button {
    margin: 0 !important;
    padding: 5px 10px !important;
    border: solid 1px white !important;
    outline: 1px !important;
    color: var(--ui-color-white) !important;
    font-family: var(--font-family) !important;
    font-size: var(--ui-font-size-normal) !important;
    line-height: 1 !important;
    cursor: pointer !important;
    background-color: var(--ui-color-gold) !important;
}

    .bottle-quantity-button:hover {
        color: var(--ui-color-gold) !important;
        background-color: var(--ui-color-white) !important;
        border: solid 1px var(--ui-color-gold) !important;
    }

.bottle-quantity-value {
    width: 30px;
    color: var(--ui-color-black);
    text-align: center;
    border:solid 1px #000;
    padding: 3px 5px;
    margin: 0px 10px;
}


/* =========================================================
   FULFILMENT
   ========================================================= */

.bottle-fulfilment {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    column-gap: 40px;
    row-gap: 14px;
    width: 100%;
    margin-top: 22px;
}


/* ---------------------------------------------------------
   Title
   --------------------------------------------------------- */

.bottle-fulfilment-title {
    grid-column: 1 / -1;
    margin: 50px 0 0 0;
    color: var(--ui-color-gold);
    font-family: Sabon;
    font-size: var(--ui-font-size-title);
    font-weight: 600;
    line-height: 1;
    text-align: center;
}

.bottle-fulfilment-title-small {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--ui-color-black);
    font-family: Sabon;
    font-size: var(--ui-font-size-small);
    font-weight: 400;
    line-height: 1;
    text-align: center;
    font-style:italic;
}

/* ---------------------------------------------------------
   Options
   --------------------------------------------------------- */

.bottle-fulfilment-option {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--ui-color-black);
    font-family: var(--font-family);
    font-size: var(--ui-font-size-normal);
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
}

    .bottle-fulfilment-option input {
        flex: 0 0 auto;
        width: 14px;
        height: 14px;
        margin: 0;
    }


/* =========================================================
   ADD TO CART
   ========================================================= */

.bottle-add-to-cart {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 120px !important;
    height: 38px !important;
    margin: 20px auto 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background-color: var(--ui-color-gold) !important;
    color: var(--ui-color-white) !important;
    font-family: var(--font-family) !important;
    font-size: var(--ui-font-size-small) !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 768px) and (max-width: 1100px) {

    .bottle-banner {
        height: 215px;
    }

    .bottle-banner-content {
        width: min( calc(100% - 50px), 650px );
    }

    .bottle-shop-container {
        width: min( calc(100% - 60px), 700px );
        gap: 30px;
        margin-top: -38px;
    }

    .bottle-image-wrap {
        height: 210px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .bottle-banner {
        height: 185px;
        background-position: 70% 50%;
    }


    .bottle-banner-content {
        width: calc(100% - 32px);
        padding-top: 45px;
    }


    .bottle-banner-title {
        font-size: var(--ui-font-size-title);
    }


    .bottle-banner-description {
        width: 240px;
        margin-top: 10px;
        font-size: var(--ui-font-size-micro);
        line-height: 1.25;
    }


    /* -----------------------------------------------------
       Products remain 3 columns
       ----------------------------------------------------- */

    .bottle-shop-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
        width: calc(100% - 18px);
        margin-top: -30px;
    }


    .bottle-item {
        max-width: none;
    }


    .bottle-image-wrap {
        height: 170px;
    }


    .bottle-price {
        margin-top: 7px;
        font-size: var(--ui-font-size-large);
    }


    .bottle-name {
        font-size: var(--ui-font-size-normal);
    }


    .bottle-quantity {
        margin-top: 5px;
        font-size: var(--ui-font-size-normal);
    }

    .bottle-quantity-button {
        font-size: var(--ui-font-size-normal);
    }


    .bottle-out-of-stock {
        min-width: 100px;
        min-height: 27px;
        padding-inline: 7px;
        font-size: var(--ui-font-size-small);
    }


    /* -----------------------------------------------------
       Fulfilment
       ----------------------------------------------------- */

    .bottle-fulfilment {
        column-gap: 20px;
        margin-top: 25px;
    }


    .bottle-fulfilment-title {
        font-size: var(--ui-font-size-large);
    }


    .bottle-fulfilment-option {
        font-size: var(--ui-font-size-small);
    }


    /* -----------------------------------------------------
       Add to cart
       ----------------------------------------------------- */

    .bottle-add-to-cart {
        width: 150px !important;
        height: 40px !important;
        margin-top: 20px !important;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .bottle-banner {
        height: 165px;
    }

    .bottle-banner-content {
        padding-top: 38px;
    }


    .bottle-shop-container {
        width: calc(100% - 14px);
        margin-top: -25px;
    }


    .bottle-image-wrap {
        height: 155px;
    }


    .bottle-fulfilment {
        column-gap: 12px;
    }


    .bottle-fulfilment-option {
        font-size: var(--ui-font-size-micro);
    }
}



.info-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 50%;
    background: #aaa;
    color: var(--ui-color-white);
    font-family: var(--font-family);
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
    cursor: help;
}

.info-tooltip-content {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    width: 320px;
    padding: 16px 18px;
    background: var(--ui-color-black);
    color: var(--ui-color-white);
    font-family: var(--font-family);
    font-size: var(--ui-font-size-normal);
    line-height: 1.6;
    text-align: left;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    pointer-events: none;
    z-index: 1000;
}
    .info-tooltip-content::after {
        content: "";
        position: absolute;
        right: 5px;
        top: 100%;
        border-width: 6px 6px 0;
        border-style: solid;
        border-color: var(--ui-color-black) transparent transparent;
    }

.info-tooltip:hover .info-tooltip-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .info-tooltip-content {
        position: fixed;
        left: 50%;
        right: auto;
        bottom: auto;
        top: 50%;
        width: min(360px, calc(100vw - 40px));
        transform: translate(-50%, calc(-50% + 5px));
    }

    .info-tooltip:hover .info-tooltip-content {
        transform: translate(-50%, -50%);
    }

    .info-tooltip-content::after {
        display: none;
    }
}