/* Full width wrapper for the grey background */
.ewd-fullwidth-wrapper-fd56de43 {
    background-color: #333333; /* Dark grey background */
    padding: 60px 20px;
    margin: 0 calc(50% - 50vw);
    width: 100vw;
}

.ewd-product-grid-container-fd56de43 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
    max-width: 1140px; /* Match standard Elementor container width */
    margin: 0 auto;
}

/* Ensure paragraph wrappers generated by WordPress do not break grid structure */
.ewd-product-grid-container-fd56de43 p {
    display: contents;
}

@media (min-width: 768px) {
    .ewd-product-grid-container-fd56de43 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .ewd-product-grid-container-fd56de43 {
        grid-template-columns: repeat(3, 1fr) !important; /* Exactly 3 columns on desktop */
    }
}

.ewd-product-wrapper-fd56de43 {
	background-color: #444444; /* Darker card background */
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ewd-product-wrapper-fd56de43:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.ewd-product-image-container {
    width: 100%;
    height: 240px;
    background-color: #555555;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px; /* Gives some breathing room */
}

/* Fix zoomed image issue by using contain instead of cover, and removing hover scale */
.ewd-product-wrapper-fd56de43 .ewd-product-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

/* Ensure no massive zoom occurs on container hover */
.ewd-product-wrapper-fd56de43:hover .ewd-product-image {
    transform: scale(1.02);
}

.ewd-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #cccccc;
    font-size: 0.9em;
}

/* Thumbnails Gallery styling - Centered */
.ewd-product-thumbnails {
    display: flex;
    gap: 10px;
    padding: 15px 20px 0 20px;
    justify-content: center; /* Centered thumbnails */
    flex-wrap: wrap;
}

/* Perfect square crop for thumbnails */
.ewd-thumbnail-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    background-color: #555555;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ewd-thumbnail-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.ewd-thumbnail-wrapper.active {
    border-color: #6EC1E4; /* Theme highlight color */
}

.ewd-product-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.ewd-product-content {
    padding: 20px 30px 30px 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.ewd-product-wrapper-fd56de43 h3 {
	margin-top: 0;
    margin-bottom: 15px;
	color: #9de953; /* Green text #9de953 */
	font-size: 1.4em;
    font-weight: 600;
    line-height: 1.3;
}

.ewd-product-wrapper-fd56de43 .ewd-description {
	color: #dddddd; /* Lighter grey text for dark background */
	line-height: 1.6;
    font-size: 0.95em;
    margin-bottom: 25px;
    flex-grow: 1; /* Pushes price/button down */
}

.ewd-product-wrapper-fd56de43 .ewd-price {
	color: #d7723e; /* Orange price #d7723e */
	font-weight: 700;
	font-size: 1.7em;
}
