/* =========================================================================
   PRODUCT PAGE REDESIGN - CLEAN & STANDARD
   ========================================================================= */

:root {
    --pp-primary: #3483fa;
    /* Azul Principal (Botões) */
    --pp-primary-hover: #2968c8;
    --pp-text-main: #333333;
    /* Texto Principal */
    --pp-text-light: #666666;
    /* Texto Secundário */
    --pp-bg-page: #f5f5f5;
    /* Fundo da Página */
    --pp-bg-card: #ffffff;
    /* Fundo do Produto */
    --pp-border: #e0e0e0;
    /* Bordas Sutis */
    --pp-green: #00a650;
    /* Descontos/Sucesso */
}

/* ===== RESET & BASE ===== */
.product-page-wrapper {
    background-color: var(--pp-bg-page);
    min-height: 100vh;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    padding-top: 20px;
    padding-bottom: 40px;
    color: var(--pp-text-main);
}

.pp-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== PRODUCT CARD ===== */
.pp-card {
    background-color: var(--pp-bg-card);
    border-radius: 8px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

/* ===== COLUMN: IMAGES ===== */
.pp-gallery-col {
    display: flex;
    flex-direction: column-reverse;
    /* Thumbnails below on mobile if needed, or row */
    gap: 16px;
}

.pp-main-image-area {
    width: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    /* Keeps sizing consistent */
}

.pp-main-image {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
}

.pp-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.pp-thumb-btn {
    width: 60px;
    height: 60px;
    border: 1px solid var(--pp-border);
    border-radius: 4px;
    padding: 2px;
    cursor: pointer;
    background: #fff;
    flex-shrink: 0;
}

.pp-thumb-btn:hover,
.pp-thumb-btn.active {
    border-color: var(--pp-primary);
    border-width: 2px;
}

.pp-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ===== COLUMN: DETAILS ===== */
.pp-details-col {
    display: flex;
    flex-direction: column;
}

.pp-brand {
    font-size: 14px;
    color: var(--pp-text-light);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.pp-title {
    font-size: 24px;
    line-height: 1.3;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--pp-text-main);
}

/* PRICE SECTION */
.pp-price-section {
    margin-bottom: 24px;
}

.pp-price-old {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 4px;
    display: inline-block;
}

.pp-price-current-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pp-price-value {
    font-size: 36px;
    font-weight: 300;
    color: var(--pp-text-main);
}

.pp-discount-tag {
    color: var(--pp-green);
    font-size: 18px;
    font-weight: 400;
}

/* BUY BOX */
.pp-buy-box {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    align-items: center;
}

.pp-qty-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 110px;
    height: 48px;
    border: 1px solid var(--pp-border);
    border-radius: 6px;
    background: #fff;
}

.pp-qty-btn {
    width: 32px;
    height: 100%;
    border: none;
    background: transparent;
    color: var(--pp-primary);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pp-qty-display {
    font-size: 16px;
    font-weight: 500;
}

.pp-btn-buy {
    flex: 1;
    height: 48px;
    background-color: var(--pp-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.pp-btn-buy:hover {
    background-color: var(--pp-primary-hover);
}

/* DESCRIPTION */
.pp-description {
    border-top: 1px solid var(--pp-border);
    padding-top: 24px;
}

.pp-desc-title {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 16px;
    color: var(--pp-text-main);
}

.pp-desc-content {
    font-size: 16px;
    line-height: 1.6;
    color: var(--pp-text-light);
}

/* ===== RESPONSIVE ===== */
@media (min-width: 1024px) {
    .pp-card {
        grid-template-columns: 55% 1fr;
        /* Image wider */
        gap: 48px;
        align-items: start;
    }

    .pp-gallery-col {
        position: sticky;
        top: 20px;
    }

    .pp-title {
        font-size: 28px;
    }
}