/* assets/css/frontend.css */

.product-display-addon-grid {
    display: grid;
    /* Columns and gaps will be controlled by Elementor settings */
    gap: 20px; /* Default gap, can be overridden by widget controls */
}

.product-display-addon-item {
    background-color: #fff;
    border: 1px solid #d2d1d1;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
	display:flex;
	flex-direction:column;
	justify-content:space-around;
}

.product-display-addon-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.product-display-addon-link {
	display:flex;
	flex-direction:column;
	justify-content: flex-start ;
	align-items:start;
    text-decoration: none;
    color: inherit; /* Inherit color from parent for titles */
    display: block;
}

.product-display-addon-image {
    margin-bottom: 15px;
}

.product-display-addon-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: block; /* Remove extra space below image */
    margin: 0 auto; /* Center image */
}

.product-display-addon-title {
    font-size: 1.2em;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.3;
    color: #333; 
	text-align:left;/* Default, will be overridden by Elementor setting */
}

.product-display-addon-rating {
    margin-bottom: 10px;
    font-size: 16px; /* Default, can be overridden */
    color: #ffc107; /* Default star color, overridden by widget */
}

.product-display-addon-rating .star-rating {
    display: inline-block;
    font-family: "star"; /* WooCommerce uses a custom font for stars */
    letter-spacing: 0.1em;
    text-shadow: 0 1px 0 #fff;
    line-height: 1;
    position: relative;
    overflow: hidden;
}

.product-display-addon-rating .star-rating span {
    overflow: hidden;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
    padding-top: 1.5em;
}

.product-display-addon-rating .star-rating span:before {
    
    top: 0;
   
    left: 0;
	font-size:1rem;
    color: #ffc107; /* Filled stars default */
}
.product-display-addon-price-wrap {
    display: flex;
    flex-direction: column;
align-content: flex-start;
    font-size: 1.1em;
    margin-top: 10px;
    font-weight: 700;
}

.product-display-addon-regular-price {
    color: #777; /* Default, will be overridden by Elementor setting */
    text-decoration: line-through;
    margin-right: 5px;
}

.product-display-addon-sale-price {
    color: #e44d26; /* Default, will be overridden by Elementor setting */
}

/* Basic responsive adjustments for smaller screens */
@media (max-width: 767px) {
    .product-display-addon-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Default to 1 column on mobile if not set in Elementor */
    }
    .product-display-addon-item {
        padding: 10px;
    }
}

.product-display-addon-rating {
    margin-bottom: 10px;
 /* Default, can be overridden */
    color: #ffc107; /* Default star color, overridden by widget */
    display: flex; /* Use flexbox to align stars and count */
    align-items: flex-start; /* Vertically align items */
    justify-content: flex-start; /* Center horizontally */
}

.product-display-addon-rating .star-rating {
    margin: 5px; /* Space between stars and count */
}

.product-display-addon-review-count {
    font-size: 14px;
    color: #666; /* Color for the review count text */
}

.product-display-addon-no-ratings {
    font-style: italic;
    color: #999;
    font-size: 0.9em;
}

.product-display-addon-buttons{
	    display: flex;
    flex-wrap: wrap;
    justify-content: center;
	
}
/* General ticker label styling (can be shared) */
.product-ticker-label {
    position: relative; /* Or relative, depending on your layout */
    top: 10px; /* Adjust position as needed */
    left: 10px; /* Adjust position as needed */
    z-index: 10;
    padding: 5px 10px;
    font-size: 0.8em;
    font-weight: bold;
    border-radius: 3px;
    text-transform: uppercase;
}
product-display-addon-image{position:relative;}
.product-ticker-label {width: fit-content;}
/* Styling for custom ticker text */
.product-ticker-label.product-ticker-custom {
    background-color: #0073aa; /* Example: Blue for custom text */
    color: #ffffff;

}

/* Styling for discount percentage */
.product-ticker-label.product-ticker-discount {
    background-color: #e20a0a; /* Example: Red for discounts */
    color: #ffffff;
}

/* Styling for "Starts from" on variable products */
.product-ticker-label.product-ticker-variable-price {
    background-color: #28a745; /* Example: Green for variable prices */
    color: #ffffff;
}

/* ... (rest of your CSS rules) ... */