/* PrintGlass Frontend CSS v3.1.3 - Layout 3 Colunas Tesla */

.pg-configurator-wrapper {
    max-width: 1600px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.pg-main-grid {
    display: grid;
    grid-template-columns: 30% 40% 30%;
    gap: 40px;
    align-items: start;
}

/* COLUNA 1: PREVIEW */
.pg-preview-section {
    position: relative;
}

.pg-preview-sticky {
    position: sticky;
    top: 20px;
}

.pg-preview-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    margin: 0 0 20px 0 !important;
    color: #333 !important;
}

.pg-canvas-container {
    position: relative;
    width: 100%;
    padding-bottom: 133.33%;
    background: #f8f8f8;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.pg-base-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 0;
}

.pg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.pg-layer img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* COLUNA 2: OPTIONS */
.pg-options-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.pg-main-title {
    font-size: 26px !important;
    font-weight: 700 !important;
    margin: 0 0 30px 0 !important;
    color: #000 !important;
    padding-bottom: 20px;
    border-bottom: 2px solid #000;
}

.pg-group {
    margin-bottom: 20px;
}

.pg-group-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px !important;
    font-weight: 600 !important;
    margin: 0 0 20px 0 !important;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e5e5;
    color: #000 !important;
}

.pg-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
}

.pg-required {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: #e74c3c;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
}

.pg-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.pg-option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 12px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    min-height: 85px;
    position: relative;
    z-index: 99;
}

.pg-option-btn:hover {
    border-color: #000;
    background: #fafafa;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.pg-option-btn.pg-active {
    border-color: #000;
    background: #000;
    color: #fff;
}

.pg-option-btn.pg-active .pg-option-price {
    color: #fff;
}

.pg-option-label {
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

.pg-option-price {
    font-size: 13px;
    font-weight: 500;
    color: #666;
}

/* COLUNA 3: SUMMARY */
.pg-summary-section {
    position: relative;
}

.pg-summary-sticky {
    position: sticky;
    top: 20px;
    background: #f9f9f9;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    padding: 25px;
}

.pg-summary-content h4 {
    font-size: 16px !important;
    font-weight: 600 !important;
    margin: 0 0 15px 0 !important;
    color: #000 !important;
}

.pg-selected-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 25px 0 !important;
}

.pg-selected-list li {
    font-size: 14px;
    margin-bottom: 8px !important;
    padding-left: 0 !important;
    color: #333;
}

.pg-selected-list li:before {
    content: none !important;
}

.pg-selected-value {
    color: #666;
    font-weight: 400;
}

.pg-selected-value.pg-filled {
    color: #000;
    font-weight: 600;
}

.pg-checkout-area {
    border-top: 2px solid #ddd;
    padding-top: 20px;
}

.pg-price-display {
    text-align: center;
    margin-bottom: 20px;
}

.pg-price-label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pg-total-price {
    font-size: 36px !important;
    font-weight: 700 !important;
    color: #000 !important;
    margin: 0 !important;
}

.pg-add-cart-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 30px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 99;
}

.pg-add-cart-btn:hover:not(:disabled) {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.pg-add-cart-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.pg-cart-icon {
    font-size: 20px;
}

.pg-warning {
    text-align: center;
    font-size: 12px !important;
    color: #e74c3c !important;
    margin: 12px 0 0 0 !important;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .pg-main-grid {
        grid-template-columns: 1fr;
    }
    
    .pg-preview-sticky,
    .pg-summary-sticky {
        position: relative;
        top: 0;
    }
}
