/* Ace v2 single product — premium presentation. Product data untouched. */
.ace-sp-wrap { padding: 26px 0 60px; background: #fff; }
.ace-sp-wrap .woocommerce-breadcrumb { font-size: 13px; color: #8a919a; margin-bottom: 22px; }
.ace-sp-wrap .woocommerce-breadcrumb a { color: #8a919a; text-decoration: none; }
.ace-sp-wrap .woocommerce-breadcrumb a:hover { color: #9f1722; }

.ace-sp-grid {
    display: grid;
    grid-template-columns: minmax(0, 46%) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
    margin-bottom: 48px;
}

/* Gallery */
.ace-sp-gallery .woocommerce-product-gallery { margin-bottom: 0; }
.ace-sp-gallery .woocommerce-product-gallery__image {
    border: 1px solid #e9ebee;
    border-radius: 18px;
    overflow: hidden;
    background: #f7f8f9;
}
.ace-sp-gallery img { display: block; width: 100%; height: auto; }
.ace-sp-gallery .flex-control-thumbs { display: flex; gap: 10px; margin-top: 12px; padding: 0; list-style: none; }
.ace-sp-gallery .flex-control-thumbs li { flex: none; width: 84px; }
.ace-sp-gallery .flex-control-thumbs img {
    border: 1px solid #e9ebee;
    border-radius: 10px;
    cursor: pointer;
    opacity: .75;
    transition: opacity .2s, border-color .2s;
}
.ace-sp-gallery .flex-control-thumbs img.flex-active,
.ace-sp-gallery .flex-control-thumbs img:hover { opacity: 1; border-color: #9f1722; }

/* Summary */
.ace-sp-brand {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #9f1722;
}
.ace-sp-title {
    margin: 0 0 12px;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: #16181d;
}
.ace-sp-rating { margin-bottom: 16px; }
.ace-sp-rating .star-rating { color: #f5a623; }

.ace-sp-price {
    padding: 18px 20px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: #f7f8f9;
    border: 1px solid #eef0f2;
}
.ace-sp-price.is-request { background: #fdf6f7; border-color: #f3dfe2; }
.ace-sp-price-label { display: block; font-size: 22px; font-weight: 800; color: #9f1722; }
.ace-sp-price-note { display: block; margin-top: 4px; font-size: 13px; color: #8a919a; }
.ace-sp-price .woocommerce-Price-amount { font-size: 28px; font-weight: 800; color: #16181d; }
.ace-sp-price del .woocommerce-Price-amount { font-size: 18px; color: #aab0b8; font-weight: 500; }
.ace-sp-price ins { text-decoration: none; }
.ace-sp-price ins .woocommerce-Price-amount { color: #9f1722; }

.ace-sp-excerpt { margin-bottom: 20px; color: #4a4f56; font-size: 15px; line-height: 1.65; }
.ace-sp-excerpt p { margin: 0 0 10px; }

/* Actions */
.ace-sp-actions { margin-bottom: 22px; }
.ace-sp-quote-row { margin-bottom: 10px; }
.ace-sp-quote-row .ace-button,
.ace-sp-quote-row button {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
}
.ace-sp-contact-row { display: flex; gap: 10px; }
.ace-sp-contact-row .ace-button { flex: 1; padding: 12px 16px; }
.ace-button-whatsapp { background: #25d366; color: #fff; }
.ace-button-whatsapp:hover { background: #1eb856; color: #fff; transform: translateY(-1px); }

.ace-sp-meta { margin-bottom: 20px; font-size: 13.5px; color: #6a7078; }
.ace-sp-meta .sku_wrapper, .ace-sp-meta .posted_in { display: block; margin-bottom: 6px; }
.ace-sp-meta a { color: #9f1722; text-decoration: none; }

.ace-sp-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 16px;
    border: 1px dashed #dfe3e8;
    border-radius: 14px;
    background: #fbfbfc;
}
.ace-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: #4a4f56;
}
.ace-trust-item svg { flex: none; color: #9f1722; }

/* Tabs */
.ace-sp-tabs { margin-bottom: 48px; }
.ace-sp-tabs .woocommerce-tabs ul.tabs {
    display: flex;
    gap: 4px;
    margin: 0 0 -1px;
    padding: 0;
    list-style: none;
    border-bottom: 1px solid #e9ebee;
}
.ace-sp-tabs .woocommerce-tabs ul.tabs li {
    margin: 0;
    border: 0;
    background: none;
    padding: 0;
}
.ace-sp-tabs .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 13px 22px;
    font-size: 14.5px;
    font-weight: 700;
    color: #6a7078;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
}
.ace-sp-tabs .woocommerce-tabs ul.tabs li.active a { color: #9f1722; border-bottom-color: #9f1722; }
.ace-sp-tabs .woocommerce-tabs .panel {
    padding: 28px 4px;
    font-size: 15px;
    line-height: 1.7;
    color: #3a3e45;
}
.ace-sp-tabs .woocommerce-tabs .panel h2 { font-size: 20px; margin: 0 0 14px; }
.ace-sp-tabs table.shop_attributes { border: 1px solid #e9ebee; border-radius: 10px; overflow: hidden; }
.ace-sp-tabs table.shop_attributes th { background: #f7f8f9; font-size: 13.5px; }

/* Related */
.ace-sp-related { margin-bottom: 20px; }
.ace-sp-related > h2,
.ace-sp-related .related > h2,
.ace-sp-related .upsells > h2 {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 20px;
}
.ace-sp-related ul.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
}
.ace-sp-related ul.products::before, .ace-sp-related ul.products::after { display: none; }
.ace-sp-related ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; }

@media (max-width: 900px) {
    .ace-sp-grid { grid-template-columns: 1fr; gap: 30px; }
    .ace-sp-related ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .ace-sp-tabs .woocommerce-tabs ul.tabs { overflow-x: auto; }
}
