/**
 * Theme Name: Event Floral
 * Description: This is a custom theme for Event Floral
 * Author: Cain & Company
 * Author URI:  https://cain-co.com
 * Template: rey
 * Version: 1.0.0
 * License: General Public License
 * License URI: http://www.gnu.org/licenses/gpl.html
 * Text Domain: rey-child
 */



/* =========================================
   EVENT FLORAL SHOP SIDEBAR HEADERS
   Occasion / Price / similar widget titles
   ========================================= */

.shop-sidebar .widget .widget-title,
.rey-sidebar.widget-area .widget .widget-title,
.rey-ecommSidebar .widget .widget-title {
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #c7b0df;
    margin: 0 0 18px 0;
    padding: 0;
}

/* Add spacing between sidebar widgets */
.shop-sidebar .widget,
.rey-sidebar.widget-area .widget {
    margin-bottom: 34px;
}

/* Optional: tighten the spacing specifically under the price heading */
.shop-sidebar .widget_reyajfilter-price-filter .widget-title {
    margin-bottom: 22px;
}

/* =========================================
   EVENT FLORAL SHOP SIDEBAR CHECKBOXES
   ========================================= */

/* Default checkbox border */
.shop-sidebar .reyajfilter-layered-list .__checkbox,
.rey-sidebar.widget-area .reyajfilter-layered-list .__checkbox,
.rey-ecommSidebar .reyajfilter-layered-list .__checkbox {
    border: 1px solid #c7b0df !important;
    background: transparent;
}

/* Hover state */
.shop-sidebar .reyajfilter-layered-list li a:hover .__checkbox,
.rey-sidebar.widget-area .reyajfilter-layered-list li a:hover .__checkbox,
.rey-ecommSidebar .reyajfilter-layered-list li a:hover .__checkbox {
    border-color: #c7b0df !important;
}

/* Active / selected state */
.shop-sidebar .reyajfilter-layered-list li.chosen .__checkbox,
.shop-sidebar .reyajfilter-layered-list li.--active .__checkbox,
.shop-sidebar .reyajfilter-layered-list a[aria-current="page"] .__checkbox,
.rey-sidebar.widget-area .reyajfilter-layered-list li.chosen .__checkbox,
.rey-sidebar.widget-area .reyajfilter-layered-list li.--active .__checkbox,
.rey-ecommSidebar .reyajfilter-layered-list li.chosen .__checkbox,
.rey-ecommSidebar .reyajfilter-layered-list li.--active .__checkbox {
    border-color: #c7b0df !important;
    background-color: #c7b0df !important;
}

/* =========================================
   EVENT FLORAL - ACTIVE FILTER TAGS / PILLS
   ========================================= */

/* Base pill style */
.shop-sidebar .reyajfilter-active-filters a,
.rey-siteMain .reyajfilter-active-filters a,
.woocommerce.widget_reyajfilter-active-filters .reyajfilter-active-filters a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #5D2B4B;
    border-radius: 2px;
    background: transparent;
    color: #5D2B4B;
    text-decoration: none;
    transition: all 0.25s ease;
}

/* Text inside pill */
.shop-sidebar .reyajfilter-active-filters a span,
.rey-siteMain .reyajfilter-active-filters a span,
.woocommerce.widget_reyajfilter-active-filters .reyajfilter-active-filters a span {
    color: #5D2B4B;
}

/* X / close icon */
.shop-sidebar .reyajfilter-active-filters a svg,
.rey-siteMain .reyajfilter-active-filters a svg,
.woocommerce.widget_reyajfilter-active-filters .reyajfilter-active-filters a svg {
    width: 10px;
    height: 10px;
    color: #5D2B4B;
    flex: 0 0 auto;
}

/* Hover / focus */
.shop-sidebar .reyajfilter-active-filters a:hover,
.shop-sidebar .reyajfilter-active-filters a:focus,
.rey-siteMain .reyajfilter-active-filters a:hover,
.rey-siteMain .reyajfilter-active-filters a:focus,
.woocommerce.widget_reyajfilter-active-filters .reyajfilter-active-filters a:hover,
.woocommerce.widget_reyajfilter-active-filters .reyajfilter-active-filters a:focus {
    background: #5D2B4B;
    border-color: #5D2B4B;
    color: #ffffff;
    text-decoration: none;
}

/* Hover / focus text + icon */
.shop-sidebar .reyajfilter-active-filters a:hover span,
.shop-sidebar .reyajfilter-active-filters a:focus span,
.shop-sidebar .reyajfilter-active-filters a:hover svg,
.shop-sidebar .reyajfilter-active-filters a:focus svg,
.rey-siteMain .reyajfilter-active-filters a:hover span,
.rey-siteMain .reyajfilter-active-filters a:focus span,
.rey-siteMain .reyajfilter-active-filters a:hover svg,
.rey-siteMain .reyajfilter-active-filters a:focus svg,
.woocommerce.widget_reyajfilter-active-filters .reyajfilter-active-filters a:hover span,
.woocommerce.widget_reyajfilter-active-filters .reyajfilter-active-filters a:focus span,
.woocommerce.widget_reyajfilter-active-filters .reyajfilter-active-filters a:hover svg,
.woocommerce.widget_reyajfilter-active-filters .reyajfilter-active-filters a:focus svg {
    color: #ffffff;
}

/* Space between multiple pills */
.shop-sidebar .reyajfilter-active-filters,
.rey-siteMain .reyajfilter-active-filters,
.woocommerce.widget_reyajfilter-active-filters .reyajfilter-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* =========================================
   EVENT FLORAL - PRODUCT SHARE ICONS
   ========================================= */


/* Share icons row */
.rey-productShare .rey-postSocialShare {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Each icon item */
.rey-productShare .rey-postSocialShare li {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Circular outlined buttons */
.rey-productShare .rey-postSocialShare li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border: 1px solid #020101;
    border-radius: 50%;
    background: transparent;
    color: #000000;
    text-decoration: none;
    transition: all 0.25s ease;
}

/* Icon size */
.rey-productShare .rey-postSocialShare li a svg {
    width: 16px;
    height: 16px;
    color: #000000;
    fill: currentColor;
    transition: all 0.25s ease;
}

/* Hover state */
.rey-productShare .rey-postSocialShare li a:hover,
.rey-productShare .rey-postSocialShare li a:focus {
    background: #5D2B4B;
    border-color: #5D2B4B;
    color: #ffffff;
}

.rey-productShare .rey-postSocialShare li a:hover svg,
.rey-productShare .rey-postSocialShare li a:focus svg {
    color: #ffffff;
    fill: currentColor;
}

/* =========================================
   EVENT FLORAL FORM
   Scoped with container class:
   event-floral-form
   ========================================= */

.event-floral-form .frm_forms {
    --ef-border: #7a4a6a;
    --ef-border-hover: #8b5d7c;
    --ef-focus: #6f365f;
    --ef-label: #6f365f;
    --ef-text: #2f2f2f;
    --ef-placeholder: #9a9a9a;
    --ef-button-bg: #c7b1d9;
    --ef-button-bg-hover: #bda3d3;
    --ef-button-text: #6f365f;
}

/* =========================================
   FORM SPACING
   ========================================= */

.event-floral-form .frm_form_field {
    margin-bottom: 22px;
}

/* =========================================
   LABELS
   ========================================= */

.event-floral-form .frm_primary_label {
    display: block;
    margin-bottom: 8px;
    color: var(--ef-label);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Hide required asterisk for cleaner look */
.event-floral-form .frm_required {
    display: none;
}

/* =========================================
   INPUTS / SELECT / TEXTAREA
   ========================================= */

.event-floral-form input[type="text"],
.event-floral-form input[type="email"],
.event-floral-form input[type="tel"],
.event-floral-form input[type="date"],
.event-floral-form input[type="number"],
.event-floral-form select,
.event-floral-form textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid var(--ef-border);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--ef-text);
    font-size: 15px;
    line-height: 1.4;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

/* Textarea */
.event-floral-form textarea {
    min-height: 160px;
    resize: vertical;
}

/* Placeholder */
.event-floral-form input::placeholder,
.event-floral-form textarea::placeholder {
    color: var(--ef-placeholder);
    opacity: 1;
}

/* Hover state */
.event-floral-form input[type="text"]:hover,
.event-floral-form input[type="email"]:hover,
.event-floral-form input[type="tel"]:hover,
.event-floral-form input[type="date"]:hover,
.event-floral-form input[type="number"]:hover,
.event-floral-form select:hover,
.event-floral-form textarea:hover {
    border-color: var(--ef-border-hover);
}

/* Focus state */
.event-floral-form input[type="text"]:focus,
.event-floral-form input[type="email"]:focus,
.event-floral-form input[type="tel"]:focus,
.event-floral-form input[type="date"]:focus,
.event-floral-form input[type="number"]:focus,
.event-floral-form select:focus,
.event-floral-form textarea:focus {
    outline: none;
    border-color: var(--ef-focus);
    box-shadow: 0 0 0 1px var(--ef-focus);
    background: #fff;
}

/* =========================================
   SELECT ARROW
   ========================================= */

.event-floral-form select {
    padding-right: 42px;
    background-image:
        linear-gradient(45deg, transparent 50%, #b9a4cf 50%),
        linear-gradient(135deg, #b9a4cf 50%, transparent 50%);
    background-position:
        calc(100% - 28px) calc(50% - 3px),
        calc(100% - 20px) calc(50% - 3px);
    background-size: 8px 8px, 8px 8px;
    background-repeat: no-repeat;
}

.event-floral-form select::-ms-expand {
    display: none;
}

/* =========================================
   SUBMIT WRAP
   ========================================= */

.event-floral-form .frm_submit,
.event-floral-form .frm_submit.frm_flex {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 18px;
}

/* =========================================
   SUBMIT BUTTON
   ========================================= */

.event-floral-form .frm_forms .frm_button_submit,
.event-floral-form .frm_forms button.frm_button_submit,
.event-floral-form .frm_forms .frm_submit button.frm_button_submit,
.event-floral-form .frm_forms .frm_submit button[type="submit"] {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 120px;
    height: 28px;
    padding: 0 22px;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--ef-button-bg) !important;
    color: var(--ef-button-text) !important;
    box-shadow: none !important;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

/* Submit hover / focus */
.event-floral-form .frm_forms .frm_button_submit:hover,
.event-floral-form .frm_forms button.frm_button_submit:hover,
.event-floral-form .frm_forms .frm_submit button.frm_button_submit:hover,
.event-floral-form .frm_forms .frm_submit button[type="submit"]:hover,
.event-floral-form .frm_forms .frm_button_submit:focus,
.event-floral-form .frm_forms button.frm_button_submit:focus,
.event-floral-form .frm_forms .frm_submit button.frm_button_submit:focus,
.event-floral-form .frm_forms .frm_submit button[type="submit"]:focus {
    background: var(--ef-button-bg-hover) !important;
    color: var(--ef-button-text) !important;
    outline: none;
    transform: translateY(-1px);
    box-shadow: none !important;
}

/* =========================================
   HONEYPOT / EXTRA HIDDEN FIELD
   ========================================= */

.event-floral-form #frm_field_12_container,
.event-floral-form .frm_verify {
    display: none !important;
}

/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 767px) {
    .event-floral-form .frm_form_field {
        margin-bottom: 18px;
    }

    .event-floral-form .frm_primary_label {
        font-size: 13px;
    }

    .event-floral-form input[type="text"],
    .event-floral-form input[type="email"],
    .event-floral-form input[type="tel"],
    .event-floral-form select,
    .event-floral-form textarea {
        font-size: 16px;
    }
}


.summary.entry-summary p.price,
.summary.entry-summary p.price .woocommerce-Price-amount,
.summary.entry-summary p.price .woocommerce-Price-currencySymbol,
.summary.entry-summary p.price bdi {
    color: #5D2B4B !important;
}

/* =========================================
   MINI-CART CHECKOUT
   ========================================= */

/* Checkout button in mini cart */
.woocommerce-mini-cart__buttons .checkout {
    background-color: #5c2c4a !important;
    color: #ffffff !important;
    border-color: #5c2c4a !important;
}

/* Hover state */
.woocommerce-mini-cart__buttons .checkout:hover {
    background-color: #4a223b !important; /* slightly darker */
    color: #ffffff !important;
    border-color: #4a223b !important;
}

/* Optional: arrow color (inherits text, but just in case) */
.woocommerce-mini-cart__buttons .checkout svg {
    fill: #ffffff;
}



/* Place Order button on checkout */
#place_order {
    background-color: #5c2c4a !important;
    color: #ffffff !important;
    border-color: #5c2c4a !important;
}

/* Hover state */
#place_order:hover,
#place_order:focus {
    background-color: #4a223b !important;
    color: #ffffff !important;
    border-color: #4a223b !important;
}

/* Optional: disabled/loading state */
#place_order:disabled,
#place_order.disabled,
#place_order.loading {
    background-color: #5c2c4a !important;
    color: #ffffff !important;
    border-color: #5c2c4a !important;
    opacity: 0.8;
}


/* Cart page Proceed to Checkout button */
.wc-proceed-to-checkout a.checkout-button {
    background-color: #5c2c4a !important;
    color: #ffffff !important;
    border-color: #5c2c4a !important;
}

/* Hover / focus */
.wc-proceed-to-checkout a.checkout-button:hover,
.wc-proceed-to-checkout a.checkout-button:focus {
    background-color: #4a223b !important;
    color: #ffffff !important;
    border-color: #4a223b !important;
}


.service-image {
    min-height: 440px !important;
    height: 440px !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

@media (max-width: 1024px) {
    .service-image {
        min-height: 340px !important;
        height: 340px !important;
    }
}

@media (max-width: 767px) {
    .service-image {
        min-height: 260px !important;
        height: 260px !important;
    }
}



.loop-square-img img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
}


.single-product .product_title.entry-title {
    text-transform: uppercase !important;
}

/* Upsells + Related Products product titles */
.single-product .up-sells .woocommerce-loop-product__title,
.single-product .related .woocommerce-loop-product__title,
.single-product .up-sells .woocommerce-loop-product__title a,
.single-product .related .woocommerce-loop-product__title a {
    text-transform: uppercase !important;
}

.single-product .rey-wcPanels {
    margin-bottom: 50px;
}

.single-product .up-sells {
    margin-top: 20px;
}

.homepage-products-carousel .rey-comp--title-price {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

.homepage-products-carousel .woocommerce-loop-product__title,
.homepage-products-carousel .woocommerce-loop-product__title a {
    text-align: center !important;
    width: 100% !important;
}


/* Shop / catalog product titles uppercase */
.post-type-archive-product .woocommerce-loop-product__title,
.post-type-archive-product .woocommerce-loop-product__title a,
.tax-product_cat .woocommerce-loop-product__title,
.tax-product_cat .woocommerce-loop-product__title a {
    text-transform: uppercase !important;
}




/* =========================================
   SERVICE PAGES
   ========================================= */
.service-page-image-frame-3-2 {
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.service-page-image-frame-3-2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-page-image-frame-1-1 {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.service-page-image-frame-1-1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================================
   HOMEPAGE SERVICES SECTION
   ========================================= */

.homepage-service-card {
    aspect-ratio: 32 / 25;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 0;
    margin: 0;
}

/* =========================
   DESKTOP (DEFAULT)
========================= */

.homepage-service-overlay {
    width: calc(100% - 60px); /* 30px inset each side */
    max-width: 420px;
    min-height: 260px;
    background: rgba(255, 255, 255, 0.82);
    padding: 26px 24px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;

    text-align: center;
}

.homepage-service-copy-wrap {
    max-width: 290px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}


/* =========================
   TABLET
========================= */

@media (max-width: 1024px) {
    .homepage-service-overlay {
        width: calc(100% - 50px); /* slightly tighter inset */
        max-width: 380px;
        min-height: 240px;
        padding: 24px 20px;
    }

    .homepage-service-copy-wrap {
        max-width: 260px;
    }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 767px) {
    .homepage-service-overlay {
        width: calc(100% - 40px); /* 20px inset each side */
        max-width: none;
        min-height: auto;
        padding: 20px 18px;

        justify-content: center; /* prevent awkward spacing */
        gap: 12px; /* replaces space-between */
    }

    .homepage-service-copy-wrap {
        max-width: 100%; /* let text breathe */
    }
}


.wp-block-quote {
    position: relative;
    padding-left: 40px; /* space for line + quote */
}

/* Vertical line */
.wp-block-quote:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 2px;
    background-color: #cdcdb4;
    opacity: 1;
}

/* Quotation mark */
.wp-block-quote:after {
    content: "“";
    position: absolute;
    left: 6px;
    top: -10px;
    font-size: 60px;
    line-height: 1;
    font-family: serif;
    color: #ececec; /* UPDATED COLOR */
    opacity: 1; /* keep full since color is already light */
}



.services-alt-row {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.services-alt-row > .e-con {
    flex: 0 0 50%;
    max-width: 50%;
}

.service-image-block {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 440px;
}

.service-content-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 32px;
    text-align: center;
    min-height: 440px;
}

/* Mobile */
@media (max-width: 767px) {
    .services-alt-row {
        flex-direction: column;
    }

    .services-alt-row > .e-con {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .service-image-block,
    .service-content-block {
        min-height: 320px;
    }
}

/* Buy Now button */
.rey-buyNowBtn,
.rey-buyNowBtn .rey-buyNowBtn-text {
    color: #5D2B4B !important;
}

/* Buy Now button hover / focus */
.rey-buyNowBtn:hover,
.rey-buyNowBtn:focus,
.rey-buyNowBtn:hover .rey-buyNowBtn-text,
.rey-buyNowBtn:focus .rey-buyNowBtn-text {
    color: #ffffff !important;
}
