/* ============================================================
   MYSIMTRAVEL - SINGLE PRODUCT PAGE
   Refinado: fundo branco, tipografia compacta, responsivo
   ============================================================ */

.site-main--product {
    padding: 0 0 clamp(32px, 5vw, 64px);
    background: #ffffff;
}

/* ── LAYOUT ── */
.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
    gap: clamp(24px, 3vw, 44px);
    align-items: start;
    padding: 0 0 clamp(24px, 3vw, 40px);
}
.product-layout__gallery { position: sticky; top: calc(var(--header-height, 80px) + 16px); min-width: 0; }
.product-layout__info { width: 100%; min-width: 0; }
.product-layout__info > * + * { margin-top: 18px; }

/* ── GALERIA ── */
.product-gallery__badge {
    position: absolute; top: 14px; left: 14px; z-index: 3;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 12px; border-radius: 999px;
    font-size: 0.8rem; font-weight: 700;
    background: rgba(17,17,17,0.85); color: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.product-gallery__badge i { color: #ff5000; }

.product-gallery__main {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 1 / 1;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.04);
    margin-bottom: 12px;
}
.product-gallery__img {
    position: relative; z-index: 1;
    width: 100%; height: 100%;
    object-fit: contain;
    padding: clamp(12px, 1.5vw, 20px);
}
.product-gallery__placeholder {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; min-height: 360px;
    color: rgba(0,0,0,0.12); font-size: 4rem;
}
.product-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 10px;
}
.product-gallery__thumb {
    width: 100%; min-height: 72px;
    border-radius: 12px; overflow: hidden;
    border: 1px solid #e5e7eb; background: #fff;
    cursor: pointer; padding: 0;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__thumb:hover { border-color: rgba(255,80,0,0.4); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.product-gallery__thumb.is-active { border-color: #ff5000; box-shadow: 0 0 0 2px rgba(255,80,0,0.12); }

/* Trust abaixo da galeria */
.product-trust {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 10px; margin-top: 12px;
}
.product-trust__item {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb; border-radius: 12px;
    background: #fff;
}
.product-trust__item i { flex-shrink: 0; color: #ff5000; font-size: 0.85rem; }
.product-trust__item span { font-size: 0.78rem; font-weight: 600; color: #374151; }

/* ── INFO HEADER ── */
.product-info-header {
    padding: clamp(16px, 2vw, 22px);
    border: 1px solid #e5e7eb; border-radius: 18px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}
.product-info-header__title {
    margin: 0 0 8px;
    font-size: clamp(1.5rem, 1.2vw + 0.9rem, 1.85rem);
    line-height: 1.1; letter-spacing: -0.02em; color: #111827;
}
.product-info-header__coverage {
    display: inline-flex; align-items: center; gap: 6px;
    margin: 0 0 10px; padding: 7px 12px; border-radius: 999px;
    background: rgba(255,80,0,0.07); color: #7c2d12;
    font-size: 0.8rem; font-weight: 700;
}
.product-info-header__coverage i { color: #ff5000; }
.product-info-header__rating {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
}
.product-info-header__rating .stars { display: inline-flex; gap: 1px; color: #f5b301; font-size: 0.85rem; }
.product-info-header__rating span { color: #6b7280; font-size: 0.82rem; font-weight: 600; }

/* ── PREÇO ── */
.product-price-box {
    display: grid; gap: 4px;
    padding: 16px 18px; border-radius: 18px;
    border: 1px solid rgba(255,80,0,0.14);
    background: linear-gradient(135deg, #fff8f5, #fff);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 4px 16px rgba(255,80,0,0.05);
}
.product-price-box__current {
    font-size: clamp(1.5rem, 1vw + 1rem, 1.9rem);
    line-height: 1; font-weight: 800; color: #ff5000;
}
.product-price-box__current .woocommerce-Price-amount { font-weight: 800; }
.product-price-box__current del { margin-right: 8px; color: #9ca3af; font-size: 0.85rem; font-weight: 400; }
.product-price-box__installments {
    display: inline-flex; align-items: center; gap: 6px;
    color: #6b7280; font-size: 0.82rem; font-weight: 600;
}
.product-price-box__installments i { color: #ff5000; }

/* ── VARIAÇÕES ── */
.variations_form { display: grid; gap: 20px; }
.variation-group { margin: 0; }
.variation-group__label {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 10px; font-size: 0.85rem; font-weight: 700; color: #111827;
}
.variation-group__label i { color: #ff5000; font-size: 0.85rem; }
.variation-group__options { display: flex; flex-wrap: wrap; gap: 10px; }

.variation-option {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 9px 14px;
    border: 1px solid #e5e7eb; border-radius: 12px;
    background: #fff; color: #374151;
    font-size: 0.82rem; font-weight: 600;
    cursor: pointer; white-space: nowrap;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.15s;
}
.variation-option:hover {
    border-color: rgba(255,80,0,0.35);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transform: translateY(-1px);
}
.variation-option.is-active {
    border-color: #ff5000; color: #111827;
    background: linear-gradient(180deg, #fff8f5, #fff);
    box-shadow: 0 0 0 2px rgba(255,80,0,0.08);
}

/* Tipo chip (cards descritivos) */
.variation-option--descriptive {
    justify-content: flex-start;
    min-width: min(100%, 240px);
    padding: 12px 14px; white-space: normal;
}
.variation-option__icon {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; background: #f3f4f6; color: #6b7280;
    flex-shrink: 0; transition: background 0.15s, color 0.15s;
}
.variation-option__icon i { font-size: 0.95rem; }
.variation-option.is-active .variation-option__icon { background: rgba(255,80,0,0.08); color: #ff5000; }
.variation-option__label { display: block; font-weight: 700; font-size: 0.85rem; line-height: 1.2; }
.variation-option__desc { display: block; margin-top: 1px; color: #6b7280; font-size: 0.72rem; font-weight: 500; }

/* Alerta de seleção */
.variation-alert {
    display: flex; align-items: flex-start; gap: 8px;
    padding: 10px 14px; border-radius: 12px;
    border: 1px solid #f2d180;
    background: linear-gradient(180deg, #fffaf0, #fff6dd);
    color: #8a6d1f; font-size: 0.82rem; font-weight: 600;
}
.variation-alert i { margin-top: 2px; }

/* ── CTA ── */
.product-add-to-cart {
    display: grid; grid-template-columns: 120px minmax(0, 1fr);
    gap: 10px; align-items: stretch;
}
.quantity-selector {
    display: grid; grid-template-columns: 40px 1fr 40px;
    align-items: stretch; min-height: 48px;
    border: 1px solid #e5e7eb; border-radius: 12px;
    overflow: hidden; background: #fff;
}
.quantity-selector__btn {
    border: 0; background: #fff; color: #374151;
    font-size: 1rem; cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.quantity-selector__btn:hover { background: #f9fafb; color: #ff5000; }
.quantity-selector__input {
    width: 100%; border: 0;
    border-left: 1px solid #e5e7eb; border-right: 1px solid #e5e7eb;
    text-align: center; font-size: 0.9rem; font-weight: 700;
    color: #111827; background: #fff; outline: none;
    -moz-appearance: textfield;
}
.quantity-selector__input::-webkit-inner-spin-button { -webkit-appearance: none; }

.product-add-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 12px 20px;
    border: 0; border-radius: 12px;
    background: linear-gradient(135deg, #ff5000, #ff6a1f);
    color: #fff; font-size: 0.88rem; font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255,80,0,0.2);
    transition: transform 0.15s, box-shadow 0.15s;
}
.product-add-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(255,80,0,0.28);
}
.product-add-btn:disabled { background: #d4d4d8; color: #fff; box-shadow: none; cursor: not-allowed; }

/* ── GARANTIAS ── */
.product-guarantees { display: grid; gap: 8px; }
.product-guarantees__item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: 12px;
    border: 1px solid #e5e7eb; background: #fff;
}
.product-guarantees__item i { flex-shrink: 0; color: #ff5000; font-size: 1rem; }
.product-guarantees__item strong { display: block; margin-bottom: 1px; color: #111827; font-size: 0.85rem; }
.product-guarantees__item span { display: block; color: #6b7280; font-size: 0.78rem; }
.product-guarantees__item--shipping { align-items: flex-start; }
.product-guarantees__item--shipping i { margin-top: 2px; }
.product-guarantees__shipping-list {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.product-guarantees__shipping-list li {
    color: #6b7280;
    font-size: 0.78rem;
    line-height: 1.35;
    position: relative;
    padding-left: 12px;
}
.product-guarantees__shipping-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 4px;
    height: 4px;
    background: #ff5000;
    border-radius: 50%;
}

/* ── TABS / DETALHES ── */
.product-details {
    margin-top: clamp(8px, 2vw, 16px);
    padding: clamp(18px, 2.5vw, 28px);
    border: 1px solid #e5e7eb; border-radius: 20px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}
.product-tabs {
    display: flex; gap: 10px;
    margin-bottom: 18px; padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
    overflow-x: auto; scrollbar-width: thin;
}
.product-tabs__btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 0 0 8px; border: 0; background: transparent;
    color: #6b7280; font-size: 0.85rem; font-weight: 700;
    white-space: nowrap; border-bottom: 2px solid transparent;
    cursor: pointer; transition: color 0.15s, border-color 0.15s;
}
.product-tabs__btn:hover { color: #ff5000; }
.product-tabs__btn.is-active { color: #ff5000; border-bottom-color: #ff5000; }
.product-tab-content { display: none; }
.product-tab-content.is-active { display: block; animation: fadeProductTab 0.2s ease; }
@keyframes fadeProductTab { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }

.entry-content { color: #374151; font-size: 0.9rem; line-height: 1.75; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content p:last-child { margin-bottom: 0; }

.coverage-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.coverage-tag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 12px; border-radius: 999px;
    border: 1px solid #e5e7eb; background: #fff;
    color: #374151; font-size: 0.8rem; font-weight: 600;
}
.coverage-tag i { color: #38b26c; font-size: 0.72rem; }

.how-steps-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.how-step-mini {
    height: 100%; padding: 16px 14px;
    border-radius: 16px; border: 1px solid #e5e7eb;
    background: #fff; text-align: left;
}
.how-step-mini__icon {
    width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 10px; border-radius: 12px;
    background: rgba(255,80,0,0.08); color: #ff5000; font-size: 1rem;
}
.how-step-mini h4 { margin: 0 0 4px; color: #111827; font-size: 0.88rem; }
.how-step-mini p { margin: 0; color: #6b7280; font-size: 0.8rem; line-height: 1.6; }

/* ── RESPONSIVO ── */
@media (max-width: 1180px) {
    .product-layout { grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr); }
    .product-trust { grid-template-columns: 1fr; }
    .variation-option--descriptive { min-width: calc(50% - 4px); }
}

@media (max-width: 1024px) {
    .product-layout { grid-template-columns: 1fr; gap: 24px; }
    .product-layout__gallery { position: static; }
    .product-gallery__main { aspect-ratio: 4/3; }
    .product-add-to-cart { grid-template-columns: 110px minmax(0, 1fr); }
}

@media (max-width: 767px) {
    .site-main--product { padding-bottom: 32px; }
    .product-layout { gap: 18px; padding-bottom: 18px; }
    .product-gallery__main { border-radius: 16px; aspect-ratio: 1/1; }
    .product-gallery__thumbs { grid-template-columns: repeat(4, 1fr); }

    .product-info-header,
    .product-price-box,
    .product-details { padding-left: 14px; padding-right: 14px; }
    .product-info-header__title { font-size: 1.5rem; }
    .product-price-box__current { font-size: 1.5rem; }

    .variation-option {
        flex: 1 1 calc(50% - 4px); min-width: calc(50% - 4px);
        padding: 8px 10px; font-size: 0.78rem; min-height: 40px;
    }
    .variation-option--descriptive { min-width: 100%; flex-basis: 100%; }

    .product-add-to-cart { grid-template-columns: 1fr; }
    .quantity-selector { max-width: 160px; }
    .product-add-btn { width: 100%; }

    .product-tabs { gap: 14px; }
    .how-steps-mini { grid-template-columns: 1fr; }
    .product-trust { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
    .product-info-header__title { font-size: 1.35rem; }
    .product-trust { grid-template-columns: 1fr; }
}