.memorial-product-page {
    /* CSS Variables are now scoped to this container */
    --color-text: #333;
    --color-heading: #000;
    --color-background: #fff;
    --color-light-gray: #f7f7f7;
    --color-border: #e0e0e0;
    --color-primary-dark: #3a3a3a;
    --color-primary-accent: #b9975b;
    --color-success: #28a745;
    --font-family-main: 'Inter', sans-serif;
    --container-width: 1200px;
    --border-radius: 8px;

    /* Base styles for the component */
    color: var(--color-text);
    background-color: var(--color-background);
    padding: 2rem;
    line-height: 1.6;
    font-family: Montserrat, sans-serif;
}

/* Scoped Main Container */
.memorial-product-page .container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Scoped Product Section Layout */
.memorial-product-page .product-section {
    display: grid;
    grid-template-columns: 1fr 1.2fr 0.8fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 3rem;
    margin-top: 1rem;
}

/* Scoped Product Image Styles */
.memorial-product-page .product-image {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--color-light-gray);
    border-radius: var(--border-radius);
    padding: 1rem;
    border: 1px solid var(--color-border);
}

.memorial-product-page .product-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Scoped Product Info Styles */
.memorial_product_page_title_h1 {
    font-size: 2.5rem;
    color: var(--color-heading);
    margin-bottom: 1.5rem;
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    line-height: 44px;
    margin-top: 10px;
    max-width: 700px;
}

.memorial-product-page .product-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.memorial-product-page .product-size {
    font-weight: 500;
    cursor: pointer;
}

.memorial-product-page .product-sku, .memorial-product-page .product-availability {
    color: #777;
    font-size: 0.9rem;
}

.memorial-product-page .product-availability.in-stock {
    color: var(--color-success);
    font-weight: 600;
}

.memorial-product-page .product-price {
    margin-bottom: 2rem;
}

.memorial-product-page .product-price .price-uah {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-heading);
}

.memorial-product-page .product-price .price-eur {
    font-size: 1.2rem;
    color: #555;
    margin-left: 0.5rem;
}

/* Scoped Buttons */
.memorial-product-page .btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.memorial-product-page .btn:hover {
    transform: translateY(-2px);
}

.memorial-product-page .btn-order {
    width: 250px;
    color: rgb(0, 0, 0);
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    box-sizing: border-box;
    border: 1px solid rgb(226, 180, 59);
    border-radius: 8px;
    background: rgb(226, 180, 59);
    font-size: 24px;
}


.memorial-product-page .btn-order:hover {
    background: rgb(253, 184, 0);
}

.memorial-product-page .btn-help {
    width: 100%;
    margin-top: 1rem;
    color: rgb(226, 180, 59);
    font-family: Montserrat, sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 29px;
    box-sizing: border-box;
    border: 2px solid rgb(226, 180, 59);
    border-radius: 8px;
    background: rgb(56, 56, 56);
    text-align: center;
}

.memorial-product-page .btn-help:hover {
    background-color: #a88a50;
}


/* Scoped Delivery Sidebar Styles */
.memorial-product-page .delivery-info {
    width: 385px;
    padding: 1.5rem;
    box-sizing: border-box;
    border: 1px solid rgb(226, 180, 59);
    border-radius: 18px;
    /* тінь1 */
    box-shadow: 4px 4px 34px 0px rgba(0, 0, 0, 0.11);
    background: rgb(247, 247, 247);
}

.memorial-product-page .delivery-block {
    margin-bottom: 1.5rem;
}

.memorial-product-page .delivery-block:last-child {
    margin-bottom: 0;
}

.memorial-product-page .delivery-block h3 {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.memorial-product-page .delivery-block h3 .icon {
    width: 24px;
    height: 24px;
}

.memorial-product-page .delivery-block p, .memorial-product-page .delivery-block ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
    font-size: 0.95rem;
    color: #555;
    font-size: 16px;
}

.memorial-product-page .delivery-block ul li {
    margin-bottom: 0.25rem;
}


/* Scoped Details Section Layout */
.memorial-product-page .details-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.memorial-product-page .details-section h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 0.5rem;
    color: rgb(0, 0, 0);
    font-size: 24px;
    font-weight: 500;
    line-height: 29px;
    text-align: left;
}

/* Scoped Characteristics Table */
.memorial-product-page .characteristics-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Scoped styles for the characteristics block */
.characteristics-block {
    max-width: 800px; /* Example width */
}

.characteristics-block h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

.characteristics-block .characteristics-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.characteristics-block .characteristics-list li {
    display: flex;
    background-color: #f0f2f5;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    /* align-items: flex-start; is better for multi-line values */
    align-items: center;
}

.characteristics-block .char-title {
    width: 40%;
    /* FIX: This is the key change. It prevents the element from shrinking */
    /* a from its specified width, ensuring all titles have the same width. */
    flex-shrink: 0;

    font-weight: 600;
    color: #444;
    padding-right: 20px; /* Use padding instead of margin for better spacing control */
    box-sizing: border-box; /* Ensures padding is included in the 40% width */
}

.characteristics-block .char-value {
    text-align: left;
    /* This element will now correctly occupy the remaining space */
    flex-grow: 1;
}

/* Responsive adjustment for very narrow screens */
@media (max-width: 480px) {
    .characteristics-block .characteristics-list li {
        flex-direction: column;
        align-items: flex-start;
    }

    .characteristics-block .char-title {
        width: 100%; /* Full width on mobile */
        padding-right: 0;
        margin-bottom: 0.25rem;
    }

    .characteristics-block .char-value {
        text-align: left;
    }
}

/* Scoped Description Block */
.memorial-product-page .description-block p {
    text-align: justify;
    color: rgb(0, 0, 0);
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 20px;
}

.delivery_info_mob {
    display: none;
}

/* Scoped Responsive Design */
@media (max-width: 1024px) {
    .memorial-product-page .product-section {
        grid-template-columns: 1fr 1fr;
        justify-items: center;
        display: flex;
    }

    .memorial-product-page .product-image {
        grid-column: 1 / -1; /* Image spans full width */
    }

    .memorial-product-page .delivery-info {
        grid-column: 1 / -1; /* Delivery info spans full width */
        margin-top: 2rem;
    }

    .delivery_info_1024 {
        display: none;
    }

    .delivery_info_mob {
        display: block;
    }

    .custom-cta-section .info-box p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .memorial-product-page {
        padding: 1rem;
    }

    .memorial-product-page .product-section {
        flex-direction: column;
        align-items: center;
    }

    .memorial-product-page .details-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .memorial_product_page_title_h1 {
        font-size: 2rem;
    }

    .memorial-product-page .product-price .price-uah {
        font-size: 1.8rem;
    }
}


@media (max-width: 450px) {
    .memorial-product-page .delivery-info {
        width: 100%;
    }
}

.custom-cta-section {
    font-family: Montserrat, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    background-color: #fff; /* Example background for context */
}

.custom-cta-section .info-box {
    background-color: #fbf5e7;
    border: 1px solid #e9ddc5;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    text-align: center;
    width: 100%;
    margin-bottom: 1.5rem;
    box-sizing: border-box;
    max-width: 1200px;
}

.custom-cta-section .info-box p {
    margin: 0;
    line-height: 1.6;
    color: rgb(0, 0, 0);
    font-size: 2rem;
    font-weight: 500;
    text-align: center;
}

@media (max-width: 1024px) {
    .custom-cta-section .info-box p {
        font-size: 1.5rem;
    }
}

@media (max-width: 750px) {
    .custom-cta-section .info-box p {
        font-size: 1rem;
    }
}

.custom-cta-section .cta-button {
    padding: 0.8rem 2rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-sizing: border-box;
    border: 1px solid rgb(226, 180, 59);
    border-radius: 12px;
    background: rgb(226, 180, 59);
    color: rgb(0, 0, 0);
    font-size: 30px;
    font-weight: 500;
    line-height: 44px;
    text-align: center;
    margin-bottom: 50px;
    margin-top: 20px;
}

.custom-cta-section .cta-button:hover {
    background-color: #c9a650;
    transform: translateY(-2px);
}