/**
Theme Name: Astra Child
Author: Kundan Sahani
Author URI: http://wpastra.com/about/
Description: Anml storefront page
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

div#content {
    min-height: 80vh;
}


/** 
My Account page css
*/

.woocommerce-form-row input[type=radio] {
    margin-right: 8px;
}



.woocommerce-js button.button{
	float: right;	
}

/** product card **/
.cfvsw-shop-variations tr td {
    display: flex;
    justify-content: center;
}
/* .woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
    border: 1px solid black;
    border-radius: 10px;
    padding: 10px;
} */

.ast-shipping-text{
    display: none;
}

.woocommerce ul.products li.cust-product-grid.product, .woocommerce-page ul.products li.cust-product-grid.product{
	border: none !important;
    padding: 10px !important;
    border-radius: 10px !important;
    box-shadow: 0 0 3px rgb(0, 0, 0, 0.3);
}

.woocommerce-js ul.products li.cust-product-grid.product a img, .woocommerce-page ul.products li.cust-product-grid.product a img{
	border-radius:5px !important;
}

/* new code added */
.custom-product-card {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 15px;
    /* background: #fff; */
    text-align: center;
    transition: all 0.3s ease;
}
.custom-product-card:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.custom-product-card .product-thumb img {
    border-radius: 8px;
    width: 100%;
    height: auto;
}
.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
    min-height: 40px;
}
.star-rating span::before {
    color: #FFD700 !important; /* Yellow stars */
}
.product-weight {
    margin: 8px 0;
}
.product-price {
    font-size: 18px;
    font-weight: bold;
    color: #8bc34a;
    margin: 8px 0;
}
.add-to-cart-btn {
    margin-top: 10px;
}
.add-to-cart-btn .button {
    background-color: #4CAF50;
    /* color: #fff; */
    border-radius: 5px;
}
.add-to-cart-btn .button:hover {
    background-color: #45a049;
}
.button{
    padding: 10px 20px !important;
}
.add-btn {
    background-color: transparent !important; /* transparent background */
    color: #8bc34a !important;               /* text color */
    padding: 10px 20px;
    border: 2px solid #8bc34a !important;    /* default border color */
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s !important;
}

.add-btn:hover {
    background-color: #8bc34a !important; /* hover background color */
    color: #fff !important;             /* hover text color */
      border-color: #8bc34a; 
}
.add-btn:active,
.add-btn:focus {
    background-color: #8bc34a !important;
    color: #fff !important;
    border-color: #8bc34a !important;
}
.single_variation_wrap{
    margin-top: .5em !important;
    margin-bottom: .5em !important;
    white-space: normal!important;
}
.woocommerce-variation-price{
    display: none !important;
}
/* ... (Your existing styles) ... */

/* --- Layout & Spacing Improvements --- */

/* Assume a parent container for your product cards (e.g., a ul, or div) */
/* This will create the grid effect and spacing between cards */
.products.columns-3 { /* Adjust 'columns-3' to your actual grid class or create a new one */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive columns */
    gap: 20px; /* Space between grid items (both horizontal and vertical) */
    list-style: none; /* Remove list bullets if it's a ul */
    padding: 0; /* Remove default padding from ul */
    margin: 0 -10px; /* Adjust parent margin if needed to align edges with page content, or remove */
}

/* Styling for the individual product cards */
.custom-product-card {
    border: 1px solid #e0e0e0; /* Subtle border for definition */
    border-radius: 8px; /* Slightly rounded corners for a softer look */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05); /* Soft shadow for depth */
    overflow: hidden; /* Ensures border-radius applies to content */
    display: flex; /* Make card content a flex container */
    flex-direction: column; /* Stack content vertically */
    /* Remove any direct margins on the card itself if using CSS Grid 'gap' */
    margin: 0; 
}

/* Inner padding for the product content */
.custom-product-card .product-inner {
    padding: 15px; /* Consistent padding around all content inside the card */
    flex-grow: 1; /* Allow inner content to expand if needed, especially for consistent height */
    display: flex; /* Make inner content a flex container too */
    flex-direction: column;
    align-items: center; /* Center content horizontally within the card */
    text-align: center; /* Ensure text is centered */
}

/* Adjust spacing for specific elements within the card */
.product-inner .product-thumb {
    margin-bottom: 15px; /* Space below image */
}

.product-inner .product-category {
    margin-bottom: 5px; /* Space below category */
    font-size: 0.85em;
    color: #666; /* Softer color for category */
}

.product-inner .product-title {
    margin-bottom: 5px; /* Space below title */
    font-size: 1.1em;
    font-weight: 600;
}

.product-inner .product-rating {
    margin-bottom: 10px; /* Space below rating */
}

/* Ensure the product actions group also has consistent spacing above it */
.product-inner .product-actions-group {
    margin-top: auto; /* Push to bottom if card content is variable height */
    width: 100%; /* Ensure it takes full available width */
    padding: 0; /* Remove padding from this wrapper, handled by product-inner */
}

/* Adjust specific spacing for elements within the product-actions-group */
.product-actions-group .custom-price,
.product-actions-group .woocommerce-variation-price {
    margin-bottom: 10px; /* Space below price */
    margin-top: 5px; /* Slight space above price */
}

.product-actions-group .variations {
    margin-bottom: 10px; /* Space below variation dropdown */
}

.product-actions-group .quantity {
    margin-bottom: 10px; /* Space below quantity input */
}
/* ... Your existing styles ... */

/* --- Dropdown Box Styling (Matching Card Background) --- */

/* Target the quantity/variation select dropdowns */
.product-actions-group select,
.product-actions-group .quantity select {
    background-color: transparent !important; /* White background (matches card) */
    color: #333333 !important;           /* Darker text for good readability */
    border: 1px solid #e0e0e0 !important; /* Soft, light grey border (matches card border if any) */
    border-radius: 5px !important;       /* Slightly rounded corners */
    padding: 8px 15px !important;        /* Padding for good spacing */
    font-size: 1em !important;           /* Consistent font size */
    cursor: pointer;
    /* Custom arrow with a dark grey color for better visibility against white */
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M4.516%207.548c0.436-0.446%201.043-0.446%201.479%200l3.908%203.745%203.908-3.745c0.436-0.446%201.043-0.446%201.479%200s0.436%201.17%200%201.615l-4.67%204.481c-0.211%200.203-0.494%200.305-0.779%200.305s-0.568-0.102-0.779-0.305l-4.67-4.481c-0.436-0.445-0.436-1.17%200-1.615z%22%20fill%3D%22%23333333%22%2F%3E%3C%2Fsvg%3E'); /* Dark grey arrow */
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1em;
    -webkit-appearance: none; /* For Safari */
    -moz-appearance: none;    /* For Firefox */
    appearance: none;         /* Standard */
}

/* Hover/Focus effect for the dropdown */
.product-actions-group select:hover,
.product-actions-group select:focus {
    border-color: #c9c9c9 !important; /* Slightly darker border on hover/focus */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for interaction feedback */
    outline: none; /* Remove default focus outline */
}

/* Ensure the number input field looks consistent with the dropdown */
.product-actions-group input[type="number"] {
    background-color: transparent !important; /* White background (matches dropdown and card) */
    color: #333333 !important;           /* Dark text */
    border: 1px solid #e0e0e0 !important; /* Soft, light grey border */
    border-radius: 5px !important;
    padding: 8px 10px !important; /* Adjust padding */
}

table, td, th {
    border: none !important;
} 
.single_add_to_cart_button {
    background-color: #ffffff !important; /* White background */
    color: #8bc34a !important;          /* Green text */
    border: 1px solid #8bc34a !important; /* Optional: green border */
    transition: all 0.3s ease !important;
}

/* Hover style */
.single_add_to_cart_button:hover {
    background-color: #8bc34a !important; /* Green background */
    color: #ffffff !important;           /* White text */
}
.variations_form .label label[for="pa_weight"] {
    display: none !important;
}
.variations_form .reset_variations {
    display: none !important;
}

/* --- ALIGNMENT CODE --- */

/* Align content within the card */
.custom-product-card .product-inner {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center horizontally */
    text-align: center; 
}

/* Wrapper for Price, Quantity, and Button */
.product-actions-group {
    /* Use Flexbox for better control inside the group */
    display: flex;
    flex-direction: column;
    width: 100%; /* Take full width of the product-inner, adjust as needed */
    padding: 0 15px; /* Add some padding on sides for better look */
    box-sizing: border-box;
}

/* Style for the custom price */
.custom-price {
    font-size: 1.5em; /* Make price prominent */
    font-weight: bold;
    margin-bottom: 10px; /* Space below price */
}

/* Target WooCommerce Form and its elements */
.product-actions-group .variations_form,
.product-actions-group .quantity,
.product-actions-group .button {
    width: 100%; /* Ensure form elements take up the full width of the wrapper */
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
}

/* Target the quantity input and select fields */
.product-actions-group input[type="number"],
.product-actions-group select {
    width: 100% !important;
    max-width: 100%;
    text-align: center; /* Center text in fields */
    box-sizing: border-box;
}

/* Adjust the style for the Add to Cart button generated by woocommerce_template_single_add_to_cart */
.product-actions-group .single_add_to_cart_button {
    width: 100% !important; /* Make button full width */
    margin-top: 15px; /* Space above button */
}

/* Target the container for the quantity and variation selector (if applicable) */
.product-actions-group .woocommerce-variation-add-to-cart {
    display: flex;
    flex-direction: column; /* Stack quantity and button */
    align-items: center;
    width: 100%;
}

/* Style for the quantity selector and button container (for variable products) */
.product-actions-group .quantity {
    margin-bottom: 10px; /* Space between quantity and button */
}

