.simple-product-block {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px auto;
    background-color: #f9f9f9;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    max-width: 100%;
}

.simple-product-block:hover {
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    transform: translateY(-3px);
    border-color: #d0d0d0;
}

.product-image-container {
    margin: 15px 0 20px 0;
    text-align: center;
}

.product-image {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    max-height: 250px; /* Control maximum height */
    object-fit: contain; /* Maintain aspect ratio */
}

/* Style for the image in editor */
.product-image-preview {
    max-width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    margin-bottom: 10px;
    border-radius: 6px;
}

.remove-image-button {
    margin-bottom: 15px;
}

.image-button {
    display: block;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    width: 100%;
}

.image-button img {
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
    border-radius: 6px;
}

.product-content {
    padding: 10px 0;
}

.product-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 24px;
    color: #222;
    font-weight: 700;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 10px;
}

.product-description {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #444;
    font-size: 16px;
}

.product-price-container,
.product-url-container {
    margin-bottom: 20px;
}

.product-price {
    font-weight: bold;
    font-size: 22px;
    color: #e63946;
    display: block;
    margin: 15px 0;
}

.price-label,
.url-label {
    font-weight: bold;
    margin-right: 5px;
    color: #555;
}

/* Enhanced Button Styling */
.product-button {
    display: inline-block;
    background: linear-gradient(to bottom, #0088cc, #0073aa);
    color: white !important; /* Added !important to override theme styles */
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.product-button:hover {
    background: linear-gradient(to bottom, #0073aa, #005d8c);
    color: white !important; /* Added !important to override theme styles */
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

.product-button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Editor-specific styles */
.editor-styles-wrapper .simple-product-block input[type="text"] {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
}

/* Add some breathing room */
.editor-styles-wrapper .simple-product-block {
    margin: 20px auto;
    max-width: 800px;
}

/* Make button appear the same in editor */
.editor-styles-wrapper .simple-product-block a.product-button {
    color: white;
    text-decoration: none;
}