/*
Theme Name: Astra Child
Template: astra
*/

/* =====================================
   PRODUCT PAGE STYLE
===================================== */

body.single-product {
    background: #FAF6EF;
}

body.single-product .ast-container,
body.single-product .ast-woocommerce-container {
    max-width: 100%;
    padding: 0;
    background: transparent;
}

/* Main */

.gf-main-wrap {
    max-width: 1450px;
    margin: 0 auto;
    padding: 45px;
    direction: rtl;
}

/* Layout */

.gf-product-layout {
    display: grid;
    grid-template-columns: 58% 42%;
    gap: 70px;
    align-items: flex-start;
}

/* =====================================
   GALLERY
===================================== */

.gf-gallery {
    width: 100%;
}

.gf-gallery .woocommerce-product-gallery {
    width: 100%;
    background: #ffffff;
    border: 1px solid #E8DCC8;
    border-radius: 28px;
    padding: 35px;
    box-sizing: border-box;
}

.gf-gallery .woocommerce-product-gallery__image img {
    width: 100%;
    max-height: 820px;
    object-fit: contain;
    border-radius: 18px;
}

.gf-gallery .flex-control-thumbs {
    display: flex;
    gap: 14px;
    margin-top: 20px;
    padding: 0;
    list-style: none;
}

.gf-gallery .flex-control-thumbs li {
    width: 88px;
    margin: 0;
}

.gf-gallery .flex-control-thumbs img {
    border: 2px solid #E8DCC8;
    border-radius: 12px;
    padding: 4px;
    background: #ffffff;
}

/* =====================================
   PRODUCT INFO
===================================== */

.gf-product-info {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.gf-brand-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gf-brand-badge,
.gf-verified-badge {
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}

.gf-brand-badge {
    background: rgba(200,164,90,.12);
    border: 1px solid rgba(200,164,90,.28);
    color: #8A6D42;
}

.gf-brand-badge a {
    color: inherit;
    text-decoration: none;
}

.gf-verified-badge {
    background: #F0FAF5;
    border: 1px solid #A8D5C2;
    color: #2D6A4F;
}

/* Title */

.gf-product-title {
    margin: 0;
    font-size: 40px;
    line-height: 1.3;
    font-weight: 700;
    color: #2E2114;
}

/* Rating */

.gf-rating-row {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid #E8DCC8;
    border-bottom: 1px solid #E8DCC8;
    color: #9C8060;
}

.gf-rating-row .star-rating {
    float: none;
    margin: 0;
}

/* Price */

.gf-price-section {
    background: #ffffff;
    border: 1px solid #E8DCC8;
    border-radius: 18px;
    padding: 28px;
}

.gf-price-row-main .amount {
    font-size: 38px;
    font-weight: 700;
    color: #8A6D42;
}

.gf-price-row-main del .amount {
    font-size: 20px;
    color: #9C8060;
}

.gf-price-row-main ins {
    text-decoration: none;
}

.gf-price-note {
    margin-top: 8px;
    color: #9C8060;
    font-size: 13px;
}

/* Description */

.gf-short-description {
    color: #6B5235;
    line-height: 2;
    font-size: 15px;
}

/* Delivery */

.gf-delivery-box {
    background: #F3EDE1;
    border: 1px solid #E8DCC8;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gf-delivery-item {
    display: flex;
    gap: 10px;
    color: #6B5235;
    font-size: 14px;
}

/* Cart */

.gf-add-to-cart form.cart {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.gf-add-to-cart .quantity input {
    width: 80px;
    height: 54px;
    border: 1px solid #D9C9AA;
    border-radius: 10px;
    text-align: center;
}

.gf-add-to-cart .single_add_to_cart_button {
    min-height: 54px;
    padding: 0 36px;
    border-radius: 10px;
    border: none;
    background: #5C4525;
    color: #ffffff;
    font-weight: 700;
    transition: .3s;
}

.gf-add-to-cart .single_add_to_cart_button:hover {
    background: #2E2114;
}

/* Meta */

.gf-meta-row {
    padding-top: 16px;
    border-top: 1px solid #E8DCC8;
    color: #9C8060;
    font-size: 13px;
}

.gf-meta-row a {
    color: #8A6D42;
    text-decoration: none;
}

.gf-sku {
    margin-bottom: 12px;
    color: #6B5235;
    font-size: 14px;
}

/* Tabs */

.gf-tabs-section {
    margin-top: 70px;
    border-top: 2px solid #E8DCC8;
    padding-top: 25px;
}

/* Related */

.gf-related-section {
    margin-top: 70px;
    border-top: 1px solid #E8DCC8;
    padding-top: 50px;
}

/* =====================================
   HIDE ASTRA FOOTER ONLY
===================================== */

.site-primary-footer-wrap,
.site-above-footer-wrap,
.site-below-footer-wrap,
.ast-small-footer,
.ast-footer-copyright {
    display: none !important;
}

/* =====================================
   KEEP ELEMENTOR FOOTER VISIBLE
===================================== */

.elementor-location-footer,
.elementor-location-footer .elementor {
    display: block !important;
    width: 100%;
    clear: both;
}

/* =====================================
   RESPONSIVE
===================================== */

@media (max-width: 1100px) {

    .gf-product-layout {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 600px) {

    .gf-main-wrap {
        padding: 18px;
    }

    .gf-product-title {
        font-size: 24px;
    }

    .gf-price-row-main .amount {
        font-size: 28px;
    }

    .gf-add-to-cart form.cart {
        flex-direction: column;
        align-items: stretch;
    }

    .gf-add-to-cart .quantity input,
    .gf-add-to-cart .single_add_to_cart_button {
        width: 100%;
    }

}