/* Product-page refinement. Title, prices, gallery and purchase controls retain native behaviour. */
body.retail-storefront.catalog-product-view .velugi-product-policy {
    margin: -8px 0 24px;
    font-size: 13px;
    line-height: 1.5;
}
body.retail-storefront.catalog-product-view .velugi-product-policy a {
    display: inline-block;
    padding: 5px 0;
    color: #4f6354;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.velugi-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
body.retail-storefront.catalog-product-view .product.attribute.overview ul {
    padding-left: 20px;
    margin: 16px 0 0;
}
body.retail-storefront.catalog-product-view .product.attribute.overview li { margin-bottom: 7px; }
body.retail-storefront.catalog-product-view .velugi-product-details {
    background: #fff;
    border: 1px solid #d5dbd0;
    border-radius: 16px;
    padding: clamp(20px, 3vw, 40px);
    margin: 0 0 28px;
    min-width: 0;
}
body.retail-storefront.catalog-product-view .velugi-product-details > h2,
body.retail-storefront.catalog-product-view .velugi-recommendations > h2 {
    margin: 0 0 24px;
    font-size: clamp(24px, 2.1vw, 30px);
    line-height: 1.25;
    color: #4f6354;
    font-weight: 500;
}
body.retail-storefront.catalog-product-view .velugi-product-copy {
    color: #30352f;
    font-size: 16px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}
body.retail-storefront.catalog-product-view .velugi-product-copy p { margin: 0 0 16px; }
body.retail-storefront.catalog-product-view .velugi-product-copy ul,
body.retail-storefront.catalog-product-view .velugi-product-copy ol { margin: 0; padding-left: 22px; }
body.retail-storefront.catalog-product-view .velugi-product-copy li { margin: 0 0 9px; }
body.retail-storefront.catalog-product-view .velugi-product-copy li p { margin: 0; }
body.retail-storefront.catalog-product-view .velugi-product-copy img { max-width: 100%; height: auto; }
body.retail-storefront.catalog-product-view .velugi-product-copy h2,
body.retail-storefront.catalog-product-view .velugi-product-copy h3,
body.retail-storefront.catalog-product-view .velugi-product-copy h4 {
    color: #4f6354;
    font-size: 20px;
    line-height: 1.4;
    margin: 0 0 16px;
    font-weight: 600;
}
body.retail-storefront.catalog-product-view .velugi-description-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}
body.retail-storefront.catalog-product-view .velugi-description-intro { grid-column: 1 / -1; max-width: 82ch; }
body.retail-storefront.catalog-product-view .velugi-description-intro:empty { display: none; }
body.retail-storefront.catalog-product-view .velugi-detail-section {
    border-top: 1px solid #d5dbd0;
    padding-top: 24px;
    min-width: 0;
}
body.retail-storefront.catalog-product-view .velugi-detail-section > :last-child { margin-bottom: 0; }
body.retail-storefront.catalog-product-view .velugi-detail-section--care {
    grid-column: 1 / -1;
    background: #f4f1e8;
    border: 1px solid #d5dbd0;
    border-radius: 10px;
    padding: 20px 24px;
}
/* Style Magento's existing form; its tokens, validation, rating inputs and extension slots stay intact. */
body.retail-storefront.catalog-product-view .velugi-review-card {
    max-width: 820px;
    padding: clamp(20px, 3vw, 36px);
    background: #fff;
    border: 1px solid #d5dbd0;
    border-radius: 16px;
    box-sizing: border-box;
    margin: 24px 0 40px;
}
body.retail-storefront.catalog-product-view .velugi-review-card .block-title { margin-bottom: 10px; }
body.retail-storefront.catalog-product-view .velugi-review-card .block-title strong { font-size: 24px; font-weight: 500; color: #4f6354; }
body.retail-storefront.catalog-product-view .velugi-review-intro { color: #30352f; line-height: 1.65; margin-bottom: 24px; }
body.retail-storefront.catalog-product-view .velugi-review-card .review-form { width: 100%; max-width: none; }
body.retail-storefront.catalog-product-view .velugi-review-card .review-fieldset { margin: 0; min-width: 0; }
body.retail-storefront.catalog-product-view .velugi-review-card .review-legend {
    display: block;
    width: 100%;
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #30352f;
}
body.retail-storefront.catalog-product-view .velugi-review-card .review-legend strong { display: block; margin: 0; font-size: 15px; }
body.retail-storefront.catalog-product-view .velugi-review-card .review-legend + br { display: none; }
body.retail-storefront.catalog-product-view .velugi-review-card .review-fieldset > .field { margin: 0 0 22px; }
body.retail-storefront.catalog-product-view .velugi-review-card .review-fieldset > .field > .label {
    display: block;
    float: none;
    width: auto;
    padding: 0;
    margin: 0 0 8px;
    text-align: left;
    color: #30352f;
    font-size: 14px;
    font-weight: 600;
}
body.retail-storefront.catalog-product-view .velugi-review-card .review-fieldset > .field > .control {
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
}
body.retail-storefront.catalog-product-view .velugi-review-card .review-fieldset > .field::before { display: none; }
body.retail-storefront.catalog-product-view .velugi-review-card :is(input.input-text, textarea) {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    background: #f4f1e8;
    border: 1px solid #4f6354;
    border-radius: 8px;
    padding: 12px;
    color: #30352f;
    font-size: 16px;
    line-height: 1.5;
}
body.retail-storefront.catalog-product-view .velugi-review-card textarea { min-height: 150px; resize: vertical; }
body.retail-storefront.catalog-product-view .velugi-review-card .additional_info:empty { display: none; }
body.retail-storefront.catalog-product-view .velugi-review-card .review-form-actions { margin: 20px 0 0; }
body.retail-storefront.catalog-product-view .velugi-review-card .review-form-actions .primary { float: none; }
body.retail-storefront.catalog-product-view .velugi-review-card button.submit {
    min-height: 48px;
    padding: 12px 24px;
    background: #c5a13a;
    border: 1px solid #4f6354;
    border-radius: 8px;
    color: #30352f;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
}
body.retail-storefront.catalog-product-view .velugi-review-card button.submit:hover { background: #4f6354; color: #fff; }
body.retail-storefront.catalog-product-view .velugi-review-card button.submit:disabled { opacity: .6; cursor: not-allowed; }
body.retail-storefront.catalog-product-view .velugi-review-card .review-control-vote input:focus-visible + label { outline: 2px solid #4f6354; outline-offset: 4px; }
body.retail-storefront.catalog-product-view .velugi-recommendations { clear: both; margin: 24px 0 48px; padding-top: 28px; border-top: 1px solid #d5dbd0; }
body.retail-storefront.catalog-product-view .velugi-recommendations-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    padding: 0;
    margin: 0;
    list-style: none;
}
body.retail-storefront.catalog-product-view .velugi-recommendation {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 1px solid #d5dbd0;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}
body.retail-storefront.catalog-product-view .velugi-recommendation-image { display: block; padding: 16px; border-bottom: 1px solid #edf0e9; }
body.retail-storefront.catalog-product-view .velugi-recommendation-image .product-image-container { display: block; width: 100% !important; max-width: 100%; }
body.retail-storefront.catalog-product-view .velugi-recommendation-image .product-image-wrapper { display: block; height: auto; padding-bottom: 0 !important; aspect-ratio: 1; }
body.retail-storefront.catalog-product-view .velugi-recommendation-image .product-image-photo { position: static; display: block; width: 100%; height: 100%; object-fit: contain; margin: 0; }
body.retail-storefront.catalog-product-view .velugi-recommendation-body { display: flex; flex-direction: column; flex: 1; padding: 18px; }
body.retail-storefront.catalog-product-view .velugi-recommendation h3 { margin: 0 0 16px; font-size: 15px; line-height: 1.55; font-weight: 500; overflow-wrap: anywhere; }
body.retail-storefront.catalog-product-view .velugi-recommendation h3 a { color: #30352f; text-decoration: none; }
body.retail-storefront.catalog-product-view .velugi-recommendation h3 a:hover { text-decoration: underline; }
body.retail-storefront.catalog-product-view .velugi-recommendation .price-box { margin: auto 0 16px; }
body.retail-storefront.catalog-product-view .velugi-recommendation .price { color: #30352f; font-size: 20px; font-weight: 700; }
body.retail-storefront.catalog-product-view .velugi-recommendation .old-price .price { font-size: 14px; font-weight: 400; }
body.retail-storefront.catalog-product-view .velugi-recommendation-link { display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 44px; padding-top: 10px; border-top: 1px solid #d5dbd0; color: #4f6354; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
body.retail-storefront.catalog-product-view :is(.velugi-review-card, .velugi-recommendations, .velugi-product-policy, .velugi-product-details) :is(a, button, input, textarea):focus-visible { outline: 2px solid #4f6354; outline-offset: 3px; }
@media (max-width: 1023px) {
    body.retail-storefront.catalog-product-view .velugi-recommendations-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    body.retail-storefront.catalog-product-view .velugi-description-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    body.retail-storefront.catalog-product-view .velugi-detail-section--care { padding: 18px; }
    body.retail-storefront.catalog-product-view .velugi-recommendations-grid { gap: 12px; }
    body.retail-storefront.catalog-product-view .velugi-recommendation-body { padding: 12px; }
    body.retail-storefront.catalog-product-view .velugi-recommendation-image { padding: 10px; }
    body.retail-storefront.catalog-product-view .velugi-recommendation h3 { font-size: 14px; }
    body.retail-storefront.catalog-product-view .velugi-review-card button.submit { width: 100%; }
}
@media (max-width: 359px) {
    body.retail-storefront.catalog-product-view .velugi-recommendations-grid { grid-template-columns: minmax(0, 1fr); }
}
