/*
Theme Name: Aperitif Child
Theme URI: http://aperitif.elated-themes.com
Description: A child theme of Aperitif
Author: Elated Themes
Author URI: http://themeforest.net/user/elated-themes
Version: 1.0.0
Text Domain: aperitif
Template: aperitif
*/

/* =============================================================
   GLOBAL RULES (Applied Everywhere)
   ============================================================= */

/* General Fixes & Adjustments */
#qodef-page-footer .tribe-event-title {
    font-size: 14px;
}
#qodef-woo-page.qodef--single form.bundle_form {
    flex-direction: column-reverse;
}
.bundle_wrap .bundle_price {
    display: none !important;
}
.grecaptcha-badge {
    bottom: -13px !important;
    right: -186px !important;
}

/* Global Product Gallery – Use the “bigger gallery” style */
.qodef-woo-single-inner {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}
.qodef-woo-single-image {
    width: 50% !important;
    max-width: 50% !important;
    padding-right: 15px;
    flex-shrink: 1;
}
.summary.entry-summary {
    width: 48% !important;
    max-width: 48% !important;
    padding-left: 15px;
    flex-shrink: 1;
}
.woocommerce-product-gallery {
    max-width: 100%;
    overflow: hidden;
}
.woocommerce-product-gallery__wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
}
.woocommerce-product-gallery__image {
    width: 48% !important;
    max-width: 48% !important;
    display: inline-block;
}
.woocommerce-product-gallery__image img {
    width: 100% !important;
    height: auto !important;
    display: block;
}
.woocommerce-product-gallery .flex-control-thumbs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
}
.flex-control-thumbs img {
    width: 75px !important;
    height: auto !important;
    cursor: pointer;
}

/* Other Global Rules */
.woocommerce-product-gallery .flex-control-thumbs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
    margin-right: 5px;
    margin-bottom: 5px;
    gap: 5px;
}
.flex-control-thumbs img {
    width: 80px !important;
    height: auto !important;
    cursor: pointer;
}
.single_add_to_cart_button.button.alt {
    padding: 10px 20px !important;
    line-height: normal !important;
    height: auto !important;
    min-height: 40px !important;
}
.product-description, 
.woocommerce-product-details__short-description {
    text-align: left !important;
    margin-bottom: 15px !important;
    line-height: 1.6 !important;
}
.woocommerce-product-details__short-description p {
    margin-bottom: 10px !important;
    line-height: 1.6 !important;
}
.woocommerce-product-details__short-description ul {
    list-style-type: none !important;
    padding-left: 0 !important;
}
.woocommerce-product-details__short-description ul:not(.numbered-list) li::before {
    content: "✔️ ";
    font-weight: bold;
    color: #8B0000;
}
.woocommerce-product-details__short-description h3, 
.woocommerce-product-details__short-description h4, 
.woocommerce-Tabs-panel h3, 
.woocommerce-Tabs-panel h4 {
    text-align: left !important;
    font-weight: bold !important;
    margin-top: 20px !important;
    margin-bottom: 15px !important;
}
.woocommerce-product-details__short-description p strong, 
.woocommerce-Tabs-panel p strong {
    font-weight: bold !important;
    color: #333;
}
.woocommerce-product-details__short-description p, 
.woocommerce-product-details__short-description ul, 
.woocommerce-product-details__short-description li, 
.woocommerce-Tabs-panel p, 
.woocommerce-Tabs-panel ul, 
.woocommerce-Tabs-panel li {
    margin-bottom: 15px !important;
    line-height: 1.6 !important;
}
.woocommerce-product-details__short-description .numbered-list p::before {
    content: "";
}
.woocommerce-product-details__short-description,
.woocommerce-Tabs-panel, 
.woocommerce-Tabs-panel p, 
.woocommerce-Tabs-panel ul, 
.woocommerce-Tabs-panel li,
.woocommerce-Tabs-panel h3, 
.woocommerce-Tabs-panel h4,
.woocommerce-Tabs-panel strong,
.woocommerce-Tabs-panel span,
.product-description {
    text-align: left !important;
}
.woocommerce-Tabs-panel ul,
.woocommerce-Tabs-panel li {
    list-style-position: inside !important;
    text-align: left !important;
}
#main-product-image {
    text-align: center;
    margin-bottom: 15px;
}
.qodef-woo-thumbnails-wrapper {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}
.qodef-woo-thumbnails-wrapper img {
    width: 80px;
    height: auto;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease-in-out;
}
.qodef-woo-thumbnails-wrapper img:hover {
    border: 2px solid #8B0000;
}


/* =============================================================
   MEDIA QUERIES
   ============================================================= */

/* ----- Mobile Adjustments (max-width: 480px) ----- */
@media only screen and (max-width: 480px) {
    .qodef-content-grid {
        width: 350px;
    }
}

/* ----- Smaller Screens (max-width: 1024px) ----- */
@media only screen and (max-width: 1024px) {
    /* Sticky Header Fix */
    .qodef-header-sticky {
        display: flex !important;
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 9999;
        background-color: white !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        min-height: 50px !important;
        padding: 5px 10px !important;
    }
    .qodef-header-sticky-inner {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    .qodef-header-sticky .qodef-header-logo-link img {
        max-height: 40px !important;
    }
    .qodef-header-sticky .qodef-header-logo-link,
    .qodef-header-sticky .qodef-header-navigation,
    .qodef-header-sticky .qodef-woo-dropdown-cart {
        display: block !important;
    }

    .qodef-page-title {
  position: relative;
  display: inline-block;
  width: 100%;
  vertical-align: top;
  height: 50px;
  background-color: #f1fdfe;
}
    /* Buy Box Positioning & Gallery Overflow Adjustments */
    .product .summary {
        position: relative;
        z-index: 10;
    }
    /* (Optional) If you want to adjust gallery overflow on smaller screens: */
    .woocommerce-product-gallery {
        max-height: 400px;
        overflow: visible;
    }
 
    .woocommerce-product-gallery__image {
    width: 100% !important;
    max-width: 100% !important;
    display: inline-block;
}
}

/* ----- Bigger Screens (min-width: 1024px) ----- */
@media only screen and (min-width: 1025px) {
    .qodef-page-title {
  position: relative;
  display: inline-block;
  width: 100%;
  vertical-align: top;
  height: 70px;
  background-color: #f1fdfe;
}
    /* Product Gallery & Layout – Bigger Gallery Version */
    .qodef-woo-single-inner {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: flex-start;
        max-width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }
    .qodef-woo-single-image {
        width: 30% !important;
        max-width: 40% !important;
        padding-right: 15px;
        flex-shrink: 1;
    }
    .summary.entry-summary {
    width: 65% !important;
    max-width: 70% !important;
    padding-left: 15px;
    flex-shrink: 1;
}

    .woocommerce-product-gallery {
        max-width: 100%;
        overflow: hidden;
    }
    body, html {
        overflow-x: hidden;
    }
    .qodef-woo-product-list {
        position: relative;
        display: inline-block;
        width: 94%;
        vertical-align: top;
    }

}


/* ----- Bigger Screens (min-width: 1521) ----- */
@media only screen and (min-width: 1521px) {
    /* Product Gallery & Layout – Bigger Gallery Version */
    .qodef-woo-single-inner {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: flex-start;
        max-width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }
    .qodef-woo-single-image {
        width: 30% !important;
        max-width: 40% !important;
        padding-right: 15px;
        flex-shrink: 1;
    }
    .summary.entry-summary {
    width: 60% !important;
    max-width: 70% !important;
    padding-left: 15px;
    flex-shrink: 1;
}

    .woocommerce-product-gallery {
        max-width: 100%;
        overflow: hidden;
    }
    body, html {
        overflow-x: hidden;
    }
    .qodef-woo-product-list {
        position: relative;
        display: inline-block;
        width: 94%;
        vertical-align: top;
    }

}
