/* =============================================================================
 * awa-bundle-pdp.css
 * AWA Motos — PDP Premium Layout, Card Shell, Relacionados
 * Carregado via catalog_product_view.xml order=1210 (após awa-pdp-visual-fix)
 *
 * DOM real (Ayo theme):
 *   .main-detail > .row > .col-md-6.col-sm-6.col-xs-12 (galeria | info)
 *   .detail-info.product-info.product-info-main > .box-inner1
 *   .awa-pdp-related > .rokan-product-heading + .rokan-mostviewed
 *     > .swiper > .swiper-wrapper > .swiper-slide > .product-item
 *       > .product-thumb + .product-info
 *
 * Override de: awa-pdp-visual-fix.css (order=1200)
 * ============================================================================= */

/* AWA-AUDIT:pdp-layout-premium-2026-04-16:start */

/* --------------------------------------------------------------------------
 * 1. CARD SHELL — Coluna de compra (product-info-main)
 *
 * awa-pdp-visual-fix.css já define padding-left: 24px em desktop.
 * Adicionamos border, shadow e radius para criar o card shell.
 * -------------------------------------------------------------------------- */
@media (min-width: 768px) {
    body.catalog-product-view .product-info-main {
        padding: 24px !important;
        border: 1px solid #ececec !important;
        border-radius: 12px !important;
        background: #fff !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07) !important;
    }
}

/* Mobile: card shell mais compacto */
@media (max-width: 767px) {
    body.catalog-product-view .product-info-main {
        padding: 16px !important;
        border: 1px solid #ececec !important;
        border-radius: 10px !important;
        background: #fff !important;
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05) !important;
        margin-top: 12px !important;
    }
}

/* --------------------------------------------------------------------------
 * 2. LAYOUT — Proporções desktop: galeria 58% / info 42%
 *
 * awa-pdp-visual-fix define 55/45. Ajustamos para 58/42 com gap corrigido.
 * Usa mesmos seletores de alta especificidade (body type + class chain = 0,7,1).
 * -------------------------------------------------------------------------- */
@media (min-width: 992px) {
    body.catalog-product-view .main-detail > .row > .col-md-6.col-sm-6.col-xs-12:first-child {
        flex: 0 0 calc(58% - 16px) !important;
        max-width: calc(58% - 16px) !important;
    }

    body.catalog-product-view .main-detail > .row > .col-md-6.col-sm-6.col-xs-12:last-child {
        flex: 0 0 calc(42% - 16px) !important;
        max-width: calc(42% - 16px) !important;
    }
}

/* --------------------------------------------------------------------------
 * 3. PREÇO — destaque máximo quando logado
 *
 * Aumenta o tamanho do preço para clientes logados.
 * O preço fica dentro de .price-box .price (quando não é B2B gate).
 * -------------------------------------------------------------------------- */
body.catalog-product-view .product-info-main .price-box:not(.b2b-login-to-see-price) .price {
    font-size: clamp(24px, 2.5vw, 32px) !important;
    font-weight: 800 !important;
    color: var(--awa-primary, #b73737) !important;
}

/* --------------------------------------------------------------------------
 * 4. ESPAÇAMENTO — Ritmo consistente entre seções
 * -------------------------------------------------------------------------- */
body.catalog-product-view .product-info-main .product-info-price {
    margin-block: 12px !important;
}

body.catalog-product-view .product-info-main .box-tocart {
    margin-block: 16px !important;
}

/* --------------------------------------------------------------------------
 * 5. STOCK e SKU — Hierarquia secundária (menor que CTA)
 * -------------------------------------------------------------------------- */
body.catalog-product-view .product-info-main .product-info-stock-sku .stock,
body.catalog-product-view .product-info-main .product-info-stock-sku .product.attribute.sku {
    font-size: 13px !important;
    line-height: 1.4 !important;
    color: #666 !important;
}

/* --------------------------------------------------------------------------
 * 6. BOTÃO ADD TO CART — Full width, altura premium
 *
 * awa-pdp-visual-fix já define altura 52px e cor.
 * Aqui reforçamos full width e border-radius consistente.
 * -------------------------------------------------------------------------- */
body.catalog-product-view .product-info-main .action.tocart,
body.catalog-product-view .product-info-main #product-addtocart-button {
    width: 100% !important;
    min-height: 52px !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
}

/* --------------------------------------------------------------------------
 * 7. RELACIONADOS — Card shell premium (Swiper carousel)
 *
 * DOM real: .awa-pdp-related .swiper-slide > .product-item
 *           > .product-thumb + .product-info
 * -------------------------------------------------------------------------- */
body.catalog-product-view .awa-pdp-related .product-item {
    padding: 12px !important;
    border: 1px solid #ececec !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    transition: box-shadow 0.2s ease, transform 0.2s ease !important;
    overflow: hidden !important;
}

body.catalog-product-view .awa-pdp-related .product-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10) !important;
    transform: translateY(-2px) !important;
}

/* Título do produto nos relacionados */
body.catalog-product-view .awa-pdp-related .product-item .product-item-link {
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    color: var(--awa-text, #333) !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* Imagem do produto nos relacionados */
body.catalog-product-view .awa-pdp-related .product-item .product-thumb {
    border-radius: 8px !important;
    overflow: hidden !important;
    margin-bottom: 8px !important;
}

/* Heading da seção de relacionados */
body.catalog-product-view .awa-pdp-related .rokan-product-heading h2 {
    font-size: clamp(18px, 2vw, 22px) !important;
    font-weight: 700 !important;
    color: var(--awa-text, #333) !important;
    margin-bottom: 16px !important;
}

/* --------------------------------------------------------------------------
 * 8. MOBILE — Stack vertical
 * -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    body.catalog-product-view .awa-pdp-related .product-item {
        padding: 10px !important;
    }
}

/* AWA-AUDIT:pdp-layout-premium-2026-04-16:end */
