/*
Theme Name: Astra Child
Template: astra
Version: 1.0
*/

/* Product tile */
.woocommerce ul.products li.product {
    background: #ffffff;
    padding: 22px;
    border-radius: 6px;
    text-align: center;
}

/* Remove tile hover effect */
.woocommerce ul.products li.product:hover {
    transform: none;
    box-shadow: none;
}

/* Product image */
.woocommerce ul.products li.product img {
    background: #ffffff;
    padding: 18px;
    margin-bottom: 18px;
    object-fit: contain;
}

/* Product title */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 16px;
    font-weight: 600;
    color: #155f50;
    min-height: 44px;
}

/* Remove title hover color change */
.woocommerce ul.products li.product a:hover .woocommerce-loop-product__title {
    color: #155f50;
}

/* Price */
.woocommerce ul.products li.product .price {
    font-size: 15px;
    font-weight: 400;
    color: #9d9d9d;
}

/* Add To Cart button */
.woocommerce ul.products li.product .button {
    background: #ffffff;
    color: #155f50;
    border: 2px solid #155f50;
    border-radius: 0px;
    padding: 12px 24px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

/* Button hover */
.woocommerce ul.products li.product .button:hover {
    background: #155f50;
    color: #ffffff;
    border: 2px solid #155f50;
}

/* Hide "Showing 1–12 of..." result count */
.woocommerce-result-count {
    display: none !important;
}

/* Style sorting dropdown */
.woocommerce-ordering select {
    background: #ffffff;
    color: #9d9d9d;
    border: 2px solid #155f50;
    border-radius: 0;
    padding: 10px 36px 10px 14px;
    font-size: 12px;
    font-weight: 300;
    text-transform: uppercase;
    outline: none;
}

/* Dropdown wrapper spacing */
.woocommerce-ordering {
    margin-bottom: 25px;
}

/* Optional: align dropdown to right */
.woocommerce .woocommerce-ordering {
    float: right;
}

/* Center pagination */
.woocommerce nav.woocommerce-pagination {
    text-align: center;
}

.woocommerce nav.woocommerce-pagination ul {
    display: inline-block;
}

.sob-back-link {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.sob-back-link a {
    color: #155f50;
    font-weight: 700;
    text-decoration: none;
}

/* ==========================================
   SINGLE PRODUCT PAGE
   ========================================== */

/* Transparent header over hero */
.single-product #masthead,
.single-product .site-header,
.single-product .main-header-bar,
.single-product .ast-primary-header-bar {
    position: absolute !important;
    top: 0 !important;
    left: 0;
    width: 100%;
    background: transparent !important;
    z-index: 9999;
}

/* White menu on hero image */
.single-product .main-header-menu > .menu-item > .menu-link,
.single-product .site-title a,
.single-product .ast-site-title-wrap a {
    color: #ffffff !important;
}

/* Remove Astra spacing */
.single-product #content,
.single-product .site-content,
.single-product .ast-container,
.single-product .content-area,
.single-product .site-main,
.single-product .ast-main-header-wrap,
.single-product .ast-above-header-wrap,
.single-product .ast-below-header-wrap {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Green background */
.single-product .site-content {
    background: #0f5f50 !important;
    padding-bottom: 60px;
}

/* Back link */
.single-product .sob-back-link {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 20px;
}

.single-product .sob-back-link a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

/* Main product card */
.single-product div.product {
    background: #ffffff;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Product image area */
.single-product .woocommerce-product-gallery {
    background: #ffffff;
    border: 1px solid #ececec;
    padding: 20px;
}

/* Product details */
.single-product .summary {
    padding-left: 40px;
}

/* Breadcrumb */
.single-product .woocommerce-breadcrumb {
    color: #888;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Title */
.single-product .product_title {
    color: #155f50;
    font-size: 34px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
}

/* Price */
.single-product .summary .price {
    color: #666;
    font-size: 24px;
    font-weight: 600;
}

/* Description */
.single-product .woocommerce-product-details__short-description {
    color: #555;
    font-size: 16px;
    line-height: 1.8;
}

/* Quantity */
.single-product .quantity input.qty {
    border: 2px solid #155f50;
    height: 52px;
}

/* Add To Cart */
.single-product .single_add_to_cart_button {
    background: #ffffff !important;
    color: #155f50 !important;
    border: 2px solid #155f50 !important;
    border-radius: 0 !important;
    padding: 16px 40px !important;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 250px !important;
}

.single-product .single_add_to_cart_button:hover {
    background: #155f50 !important;
    color: #ffffff !important;
}

/* Product tabs card */
.single-product .woocommerce-tabs {
    background: #ffffff;
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 40px;
    border-radius: 8px;
}

/* Related products card */
.single-product .related.products {
    background: #ffffff;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 8px;
}

/* Hide WooCommerce add-to-cart notice on product pages */
.single-product .woocommerce-message {
    display: none !important;
}


/* Hide shipping section in Cart Totals */
.woocommerce-cart .shipping {
    display: none;
}


/* Floating shopping bag */
.sob-floating-cart {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 99999;

    width: 64px;
    height: 64px;

    background: #ffffff;
    border: 3px solid #155f50;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;

    box-shadow: 0 8px 25px rgba(0,0,0,.15);
}

.sob-floating-cart:hover {
    background: #155f50;
    color: #ffffff;
}

.sob-floating-cart i {
    font-size: 24px;
    color: #155f50;
}

.sob-floating-cart:hover i {
    color: #ffffff;
}

/* Cart count */
.sob-cart-count {
    position: absolute;
    top: -6px;
    right: -6px;

    width: 24px;
    height: 24px;

    background: #155f50;
    color: #ffffff;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 12px;
    font-weight: 700;
}

.sob-floating-cart .dashicons {
    font-size: 26px;
    width: 26px;
    height: 26px;
    color: #155f50;
}

.sob-floating-cart:hover .dashicons {
    color: #ffffff;
}


/* ==========================================
   CART PAGE
   ========================================== */

.woocommerce-cart .site-content {
    background: #0f5f50;
    padding-bottom: 60px;
}

.woocommerce-cart .woocommerce {
    max-width: 1200px;
    margin: 40px auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0,0,0,.15);
}

.woocommerce-cart table.shop_table {
    border: none;
}

.woocommerce-cart table.shop_table th {
    color: #155f50;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #eee;
}

.woocommerce-cart table.shop_table td {
    border-bottom: 1px solid #f2f2f2;
    padding: 20px 10px;
}

.woocommerce-cart .product-thumbnail img {
    width: 90px;
    border: 1px solid #ececec;
    padding: 10px;
}

.woocommerce-cart .quantity input.qty {
    border: 2px solid #155f50;
    height: 48px;
}

.woocommerce-cart .button {
    background: #ffffff !important;
    color: #155f50 !important;
    border: 2px solid #155f50 !important;
    border-radius: 0 !important;
    text-transform: uppercase;
    font-weight: 700;
}

.woocommerce-cart .button:hover {
    background: #155f50 !important;
    color: #ffffff !important;
}

.woocommerce-cart .cart-collaterals .cart_totals {
    background: #f7f7f7;
    padding: 30px;
    border-radius: 8px;
}

.woocommerce-cart .cart_totals h2 {
    color: #155f50;
    text-transform: uppercase;
    font-size: 18px;
}

.woocommerce-cart .checkout-button {
    background: #155f50 !important;
    color: white !important;
    border-radius: 0 !important;
    padding: 16px !important;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.woocommerce-cart .checkout-button:hover {
    background: #0f473c !important;
}


.sob-cart-continue {
    margin: 0 0 30px 0;
    padding: 0;
}

.sob-cart-continue a {
    color: #155f50;
    font-weight: 700;
    text-decoration: none;
    font-size: 15px;
}


/* ==========================================
   CHECKOUT PAGE
   ========================================== */

.woocommerce-checkout .site-content {
    background: #0f5f50 !important;
    padding-bottom: 70px;
}

/* Remove Astra spacing */
.woocommerce-checkout #content,
.woocommerce-checkout .site-content,
.woocommerce-checkout .ast-container,
.woocommerce-checkout .content-area,
.woocommerce-checkout .site-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Hide default page title if needed */
.woocommerce-checkout .entry-title {
    display: none;
}

/* Main white checkout card */
.woocommerce-checkout .woocommerce {
    max-width: 1200px;
    margin: 50px auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0,0,0,.15);
}

/* Back link */
.sob-checkout-back {
    margin-bottom: 30px;
}

.sob-checkout-back a {
    color: #155f50;
    font-weight: 700;
    text-decoration: none;
}

/* Fix checkout layout *
.woocommerce-checkout form.checkout {
    display: block !important;
}
 * Billing/order columns *
.woocommerce-checkout #customer_details {
    width: 45%;
    float: left;
}
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
    width: 50%;
    float: right;
}
*/

/* Checkout 50/50 layout */
.woocommerce-checkout form.checkout {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Left side: billing/shipping fields */
.woocommerce-checkout #customer_details {
    grid-column: 1;
    width: 100% !important;
    float: none !important;
}

/* Right side: order summary + payment */
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
    grid-column: 2;
    width: 100% !important;
    float: none !important;
}

/* Keep order heading directly above order box */
.woocommerce-checkout #order_review_heading {
    margin-top: 0;
}

.woocommerce-checkout #order_review .product-name {
    font-size: 12px;
    font-weight: 600;
}
.woocommerce-checkout #order_review .product-total,
.woocommerce-checkout #order_review .amount {
    font-size: 12px;
    font-weight: 400;
}

.woocommerce-checkout form.checkout:after {
    content: "";
    display: table;
    clear: both;
}

/* Headings */
.woocommerce-checkout h3,
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout #order_review_heading {
    color: #155f50;
    font-size: 12px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0;
    margin-bottom: 22px;
    display: none;
}

.woocommerce-checkout .woocommerce-billing-fields label,
.woocommerce-checkout .woocommerce-shipping-fields label {
    font-size: 10px !important;
    font-weight: 300 !important;
    text-transform: uppercase !important;
}

/* Hide Country field */
#billing_country_field {
    display: none !important;
}

.woocommerce-checkout .woocommerce-privacy-policy-text {
    font-size: 10px !important;
}

/* Form fields */
.woocommerce-checkout input.input-text,
.woocommerce-checkout textarea,
.woocommerce-checkout select,
.woocommerce-checkout .select2-selection {
    border: 1px solid #dcdcdc !important;
    border-radius: 4px !important;
    min-height: 48px;
    padding: 10px 13px !important;
    font-size: 15px;
    background: #ffffff;
}

/* Focus */
.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout textarea:focus,
.woocommerce-checkout select:focus {
    border-color: #155f50 !important;
    outline: none;
}

/* Order summary box */
.woocommerce-checkout #order_review {
    background: #f7f7f7;
    padding: 28px;
    border-radius: 8px;
}

/* Order table */
.woocommerce-checkout table.shop_table {
    border: none;
}

.woocommerce-checkout table.shop_table th {
    color: #155f50;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.woocommerce-checkout table.shop_table td {
    border-top: 1px solid #e6e6e6;
    padding: 14px 8px;
}

/* Payment box */
.woocommerce-checkout #payment {
    background: #ffffff !important;
    border: 1px solid #dddddd;
    border-radius: 6px;
    padding: 18px;
}

/* Place order button */
.woocommerce-checkout #place_order {
    width: 100%;
    background: #155f50 !important;
    color: #ffffff !important;
    border: 2px solid #155f50 !important;
    border-radius: 0 !important;
    padding: 16px !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.woocommerce-checkout #place_order:hover {
    background: #0f473c !important;
}


/* Order received */
.woocommerce-checkout .order_details .order_item,
.woocommerce-checkout .order_details .amount {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 400;
}



/* Mobile */
@media (max-width: 900px) {
    .woocommerce-checkout .woocommerce {
        margin: 25px 15px;
        padding: 22px;
    }

    .woocommerce-checkout #customer_details,
    .woocommerce-checkout #order_review_heading,
    .woocommerce-checkout #order_review {
        width: 100%;
        float: none;
    }

    .woocommerce-checkout #order_review {
        margin-top: 25px;
    }
}


/* Mobile */
@media (max-width: 900px) {
    .woocommerce-checkout form.checkout {
        display: block !important;
    }

    .woocommerce-checkout .woocommerce {
        margin: 25px 15px;
        padding: 22px;
    }

    .woocommerce-checkout #order_review {
        margin-top: 25px;
    }
}


/* Mobile */
@media (max-width: 768px) {

    .single-product div.product,
    .single-product .woocommerce-tabs,
    .single-product .related.products {
        padding: 20px;
        margin-left: 15px;
        margin-right: 15px;
    }

    .single-product .summary {
        padding-left: 0;
        margin-top: 25px;
    }

    .single-product .product_title {
        font-size: 28px;
    }
}
