/* ====================================
   ORCAMENTO PAGE V2 - Light Theme
   ==================================== */

.page-hero {
    padding: 160px 5% 60px;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 247, 250, 0.98)),
        url('/static/ceramicarenascer/img/Unknown42.jpeg');
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--glass-border);
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--secondary);
    /* Used secondary Red for title */
    margin-bottom: 15px;
}

.page-hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Layout */
.orcamento-section {
    padding: 60px 5%;
}

.orcamento-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
}

/* Coluna Produtos */
.column-title {
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 15px;
    color: var(--secondary);
}

.product-row {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 15px;
    transition: 0.3s;
    box-shadow: var(--shadow-sm);
}

.product-row:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.product-row.active {
    border-color: var(--primary);
    background: rgba(247, 147, 30, 0.03);
    box-shadow: 0 0 20px rgba(247, 147, 30, 0.15);
}

.product-row-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.product-row-info h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-light);
}

.product-row-info h3 .dim {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
}

.product-specs {
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 5px;
    margin-bottom: 10px;
}

.product-row-price {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    white-space: nowrap;
}

.product-row-price span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.product-row-action {
    display: flex;
    justify-content: flex-end;
}

/* Quantity Controls */
.qty-control {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 15px;
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    background: #F9FAFB;
}

.qty-btn {
    background: transparent;
    color: var(--text-light);
    border: none;
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--primary);
    color: white;
}

.qty-input {
    width: 100px;
    text-align: center;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 800;
    padding: 10px 0;
    font-family: 'Outfit', sans-serif;
    -moz-appearance: textfield;
}

.qty-input:focus {
    outline: none;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Cart Column */
.cart-column {
    position: relative;
}

.cart-sticky {
    position: sticky;
    top: 120px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
}

.cart-summary {
    min-height: 80px;
    margin-bottom: 20px;
}

.cart-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 0;
    font-size: 1rem;
    font-weight: 500;
}

.cart-empty i {
    font-size: 2.5rem;
    color: #E5E7EB;
    margin-bottom: 10px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.95rem;
}

.cart-item-name {
    font-weight: 700;
    color: var(--text-light);
}

.cart-item-detail {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.cart-item-subtotal {
    color: var(--primary);
    font-weight: 800;
    white-space: nowrap;
}

.cart-total {
    text-align: right;
    font-size: 1.5rem;
    font-weight: 900;
    padding: 20px 0;
    color: var(--text-light);
    border-top: 2px dashed var(--glass-border);
    margin-bottom: 25px;
}

.cart-total span {
    color: var(--primary);
}

/* Client Form */
.client-form .form-group {
    margin-bottom: 15px;
}

.client-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary);
}

.client-form input,
.client-form textarea {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 2px solid #E5E7EB;
    background: #F9FAFB;
    color: var(--text-light);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    transition: 0.2s;
}

.client-form textarea {
    height: 90px;
    resize: vertical;
}

.client-form input:focus,
.client-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(247, 147, 30, 0.1);
}

/* Send Buttons */
.send-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    padding: 16px 20px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
    background: #1DA851;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

.btn-email {
    background: white;
    color: var(--text-light);
    padding: 16px 20px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.05rem;
    border: 2px solid #E5E7EB;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
}

.btn-email:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* ===========================
   RESPONSIVE - MOBILE & IPHONE
   =========================== */

/* Tablets */
@media (max-width: 960px) {
    .orcamento-layout {
        grid-template-columns: 1fr;
    }
    .cart-sticky {
        position: static;
        margin-top: 40px;
    }
    .page-hero h1 {
        font-size: 2.2rem;
    }
}

/* iPhone e Mobile */
@media (max-width: 600px) {

    /* Header */
    header {
        padding: 0.8rem 4% !important;
        gap: 8px;
    }
    header .logo img {
        height: 44px !important;
    }
    header nav ul li a {
        font-size: 0.78rem;
        padding: 0;
    }
    header .btn {
        padding: 0.45rem 0.9rem !important;
        font-size: 0.72rem !important;
    }

    /* Hero */
    .page-hero {
        padding: 120px 4% 40px;
    }
    .page-hero h1 {
        font-size: 1.7rem;
    }
    .page-hero p {
        font-size: 0.9rem;
    }

    /* Section */
    .orcamento-section {
        padding: 30px 4%;
    }
    .orcamento-layout {
        gap: 20px;
    }

    /* Product Row */
    .product-row {
        padding: 16px;
        border-radius: 16px;
    }
    .product-row-info {
        flex-direction: column;
        gap: 10px;
    }
    .product-row-price {
        font-size: 1.3rem;
        align-self: flex-start;
    }
    .product-image-container {
        width: 80px !important;
        height: 80px !important;
    }
    .product-row-info h3 {
        font-size: 1rem;
    }

    /* Qty Control - botoes maiores para toque */
    .qty-control {
        justify-content: center;
        width: 100%;
    }
    .qty-btn {
        width: 52px;
        height: 52px;
        font-size: 1.4rem;
    }
    .qty-input {
        flex: 1;
        font-size: 1.1rem;
        padding: 12px 0;
    }

    /* Cart */
    .cart-sticky {
        padding: 20px;
        border-radius: 20px;
    }
    .cart-total {
        font-size: 1.25rem;
    }

    /* Formulário */
    .client-form input,
    .client-form textarea {
        font-size: 16px; /* Evita zoom no iOS */
        padding: 14px 12px;
        border-radius: 10px;
    }
    .client-form label {
        font-size: 0.85rem;
    }

    /* Botões de envio */
    .btn-whatsapp,
    .btn-email {
        padding: 16px;
        font-size: 1rem;
        border-radius: 14px;
    }

    /* Weight progress */
    #weightProgressText {
        font-size: 0.8rem;
    }
    #weightWarning {
        font-size: 0.82rem;
    }
}