/**
Theme Name: Golden Point
Version: 1.0.2
Text Domain: golden-point
Template: astra
*/

:root {
    --body-font: 'Barlow', barlow, sans-serif;
    --heading-font: "Fenul Condensed Book", Georgia, serif;
    --underline-offset: 3px;

    --max-width: 1800px;
    --x-gap: 40px;
    --l-gap: 36px;
    --m-gap: 24px;
    --s-gap: 12px;

    --ast-blog-title-font-weight: 300;

    --admin-bar-height: 0px;
    --woo-notice-height: 0px;
    --top-gap: 32px;

    --cont-min-height: calc(100vh - var(--admin-bar-height));
    --cont-min-height: calc(100svh - var(--admin-bar-height));
}

@media (max-width: 960px) {
    :root {
        --x-gap: var(--l-gap);
    }
}

@media (max-width: 768px) {
    :root {
        --top-gap: 18px;
    }
}

@media (max-width: 680px) {
    :root {
        --x-gap: var(--m-gap);
    }
}

body.admin-bar {
    --admin-bar-height: 32px;
}

body.woo-notice {
    --woo-notice-height: 55px;
}

body.woo-notice-hidden {
    --woo-notice-height: 0px;
}

@media (max-width: 782px) {
    body.admin-bar {
        --admin-bar-height: 46px;
    }

    body.woo-notice {
        --woo-notice-height: 50px;
    }
}


/* UTILITIES */
.no-pad-top:is(.e-con)>.e-con-inner,
.no-pad-top {
    padding-top: 0;
}

.no-pad-bot:is(.e-con)>.e-con-inner,
.no-pad-bot {
    padding-bottom: 0;
}

:focus-visible,
a:focus {
    outline: 5px solid rgba(255, 255, 255, 0.25);
    outline-offset: 5px;
}

/* GENERAL / THEME BASE */
#page::after {
    /*     content: ''; */
    position: absolute;
    top: calc(var(--admin-bar-height) * -1);
    left: 0;
    right: 0;
    height: 100%;
    background-image: url('../img/gpd.jpg');
    background-size: cover;
    background-position: center top;
    /* background-attachment: fixed; */
    opacity: 0.5;
    pointer-events: none;
    z-index: 9998;
}

#page::before {
    content: '';
    position: fixed;
    top: calc(var(--x-gap) + var(--admin-bar-height));
    bottom: var(--x-gap);
    left: 50%;
    transform: translatex(-50%);
    width: 100%;
    pointer-events: none;
    z-index: 9999;

    display: grid;
    padding: 0;
    max-width: var(--max-width);
    grid-template-columns: repeat(12, 1fr);
    gap: var(--x-gap);
}

@media (max-width: 1840px) {
    #page::before {
        padding: var(--x-gap);
    }
}

/* CONTAINERS */
body:not(.elementor-page, .elementor-template-full-width) .site-content>.ast-container {
    max-width: var(--max-width);
}

.site .site-content #primary .ast-article-single,
.ast-separate-container .site-content #secondary .widget {
    padding: 120px var(--x-gap) var(--x-gap);
}

@media (min-width: 1840px) {

    .site .site-content #primary .ast-article-single,
    .ast-separate-container .site-content #secondary .widget {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 768px) {

    .site .site-content #primary .ast-article-single,
    .ast-separate-container .site-content #secondary .widget {
        padding: 80px var(--x-gap) var(--x-gap);
    }
}


body.elementor-template-full-width .ast-container {
    max-width: none;
    padding: 0;
}

main .elementor-widget-text-editor p,
main .elementor-widget-theme-post-content {
    max-width: 540px;
}

.cont-first-home .e-con-inner {
    position: relative;
}

.cont-first-home .e-con-inner::after {
    content: '';
    position: absolute;
    width: var(--x-gap);
    height: var(--x-gap);
    background-color: #be9d6b;
    bottom: var(--x-gap);
    right: 0;
    border-radius: var(--x-gap);
}

@media (max-width: 1024px) {
    .cont-first-home .elementor-widget-heading {
        min-height: calc(100vh - (var(--x-gap) * 2) - var(--admin-bar-height));
        min-height: calc(100svh - (var(--x-gap) * 2) - var(--admin-bar-height));
        display: flex;
        align-items: end;
    }

    .cont-first-home .elementor-widget-text-editor {
        min-height: 33vh;
        min-height: 33svh;
        display: flex;
        align-items: center;
    }

    .cont-first-home::before {
        background-image: linear-gradient(180deg, transparent 95vh, black 110vh) !important;
        background-image: linear-gradient(180deg, transparent 95svh, black 110svh) !important;
    }

    .cont-first-home .e-con-inner::after {
        top: calc(100vh - (var(--x-gap) * 2) - var(--admin-bar-height));
        top: calc(100svh - (var(--x-gap) * 2) - var(--admin-bar-height));
        height: 20px;
        width: 20px;
    }
}


/* TYPOGRAPHY */
body :not(.entry-content) :is(h1, h2, h3, h4, h5, h6),
p:last-child {
    margin-bottom: 0;
}

body.elementor-page .site-content #primary .ast-article-single {
    padding: 0;
}

/* HEADER */
.site-header-primary-section-right {
    position: fixed !important;
    top: calc(var(--admin-bar-height) + var(--top-gap));
    right: max(var(--x-gap), calc((100vw - var(--max-width)) / 2));
    height: auto;
}

[data-stick-gutter] {
    min-height: 0 !important;
}

.ast-desktop .ast-primary-header-bar.main-header-bar,
.ast-header-break-point #masthead .ast-primary-header-bar.main-header-bar {
    padding: var(--top-gap) var(--x-gap) 0;
}

.ast-desktop .ast-primary-header-bar .ast-header-woo-cart,
.ast-desktop .ast-primary-header-bar .ast-header-edd-cart {
    line-height: 1;
    min-height: 0;
}

/* Base pill/circular styling for the cart icon (padding + shape) */
/* Later, more specific sizing/color/layout applied on top of the above */
.site-header .ast-header-woo-cart .ast-site-header-cart .ast-addon-cart-wrap {
    display: flex;
    place-items: center;
    align-items: center;
    justify-content: center;
    border-radius: 42px;
    margin: 0 0 2px;
    padding: 10px;
    height: 60px;
    width: 60px;

    color: var(--ast-global-color-0);
    background-color: var(--ast-global-color-2);
}

.site-header .ast-header-woo-cart .ast-site-header-cart .ast-addon-cart-wrap :is(.ast-icon, .astra-icon) {
    display: block;
    font-size: 0;
    line-height: 1;
    padding: 0;
}

.site-header .ast-header-woo-cart .ast-site-header-cart .ast-addon-cart-wrap svg {
    height: 40px;
    width: 40px;
}

body.ast-theme-transparent-header .ast-site-header-cart .ast-addon-cart-wrap i.astra-icon:after {
    top: 50%;
    left: 50%;
    font-size: 18px;
    font-weight: 400;
    box-shadow: none;
    transform: translate(-50%, -50%);
    background-color: transparent;
    color: var(--ast-global-color-2);
    margin-top: 4px;
    text-align: center;
}

@media (max-width: 1024px) {
    .site-header .ast-header-woo-cart .ast-site-header-cart .ast-addon-cart-wrap {
        height: 30px;
        width: 30px;
        padding: 5px;
        margin-bottom: 0;
    }

    .site-header .ast-header-woo-cart .ast-site-header-cart .ast-addon-cart-wrap svg {
        height: 22px;
        width: 22px;
    }

    body.ast-theme-transparent-header .ast-site-header-cart .ast-addon-cart-wrap i.astra-icon:after {
        font-size: 11px;
        margin-top: 3px;
    }
}

body.cart-empty .ast-site-header-cart {
    display: none;
}

/* PRODUCT CAROUSEL */
.linked-product-image img {
    max-height: 220px;
    width: auto;
}

.woocommerce-js div.product p.price,
.woocommerce-js div.product span.price {
    color: var(--ast-global-color-3);
    font-size: 18px;
    font-weight: 300;
    margin: 0;
    letter-spacing: .6px;
}

@media (max-width: 1024px) {

    .woocommerce-js div.product p.price,
    .woocommerce-js div.product span.price {
        font-size: 16px;
    }
}

@media (max-width: 767px) {

    .woocommerce-js div.product p.price,
    .woocommerce-js div.product span.price {
        font-size: 14px;
    }
}

.ast-single-post .entry-content .product_title a {
    text-decoration: none;
}

.elementor .add_to_cart_button {
    text-decoration: underline;
    text-underline-offset: var(--underline-offset);
}


/* STOCK NOTICE */
.products-carousel .elementor-widget-woocommerce-product-stock {
    display: none;

    position: absolute;
    top: -200px;
    color: white;
    text-transform: uppercase;
    background: #ffffff47;
    width: 100%;
    text-align: center;
    padding: 1em;
    letter-spacing: 0.6px;
}

.products-carousel .product.outofstock .elementor-widget-woocommerce-product-stock p.out-of-stock {
    color: currentColor;
}

.products-carousel .outofstock .elementor-widget-woocommerce-product-stock {
    display: block;
}


/* Carousel background */
.recipes-carousel {
    --bg: transparent;
    background-color: var(--bg);
    transition: background-color 0.3s ease-in-out;
}


/* BASE FORMS */
input:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="reset"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
textarea:focus,
.wp-block-search__input:focus,
[data-section="section-header-mobile-trigger"] .ast-button-wrap .ast-mobile-menu-trigger-minimal:focus,
.ast-mobile-popup-drawer.active .menu-toggle-close:focus,
.woocommerce-ordering select.orderby:focus,
#ast-scroll-top:focus,
#coupon_code:focus,
.woocommerce-page #comment:focus,
.woocommerce #reviews #respond input#submit:focus,
.woocommerce a.add_to_cart_button:focus,
.woocommerce .button.single_add_to_cart_button:focus,
.woocommerce .woocommerce-cart-form button:focus,
.woocommerce .woocommerce-cart-form__cart-item .quantity .qty:focus,
.woocommerce .woocommerce-billing-fields .woocommerce-billing-fields__field-wrapper .woocommerce-input-wrapper>.input-text:focus,
.woocommerce #order_comments:focus,
.woocommerce #place_order:focus,
.woocommerce .woocommerce-address-fields .woocommerce-address-fields__field-wrapper .woocommerce-input-wrapper>.input-text:focus,
.woocommerce .woocommerce-MyAccount-content form button:focus,
.woocommerce .woocommerce-MyAccount-content .woocommerce-EditAccountForm .woocommerce-form-row .woocommerce-Input.input-text:focus,
.woocommerce .ast-woocommerce-container .woocommerce-pagination ul.page-numbers li a:focus,
body #content .woocommerce form .form-row .select2-container--default .select2-selection--single:focus,
#ast-coupon-code:focus,
.woocommerce.woocommerce-js .quantity input[type=number]:focus,
.woocommerce-js .woocommerce-mini-cart-item .quantity input[type=number]:focus,
.woocommerce p#ast-coupon-trigger:focus {
    border: none;
    outline: none;
}


body.page-contact .border-deco-white {
    margin-top: 15vh;
}

@media (max-width: 1024px) {
    body.page-contact .border-deco-white {
        margin-top: 45px;
    }
}
