/* Pedido page specific styles */
.page-pedido .page-title {
    padding: 1.5rem 0 1rem;
    max-width: var(--container-width);
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
.page-pedido .page-title h1 { font-size: 1.75rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.5rem; }
.page-pedido .page-title p { font-size: 0.875rem; color: var(--text-gray); }

.page-pedido .checkout-grid {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 992px) {
    .page-pedido .checkout-grid { grid-template-columns: 1fr 380px; align-items: start; }
}
.page-pedido .checkout-main { min-width: 0; }

.page-pedido .card {
    background: var(--bg-white);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.page-pedido .card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.page-pedido .card-header h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.page-pedido .step-number {
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
}
.page-pedido .card-header .badge-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-gray);
    background: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    position: static;
    width: auto;
    height: auto;
}
.page-pedido .cart-table {
    width: 100%;
    border-collapse: collapse;
}
.page-pedido .cart-table th,
.page-pedido .cart-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border-color); }
.page-pedido .cart-table th {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-gray);
    text-align: left;
}
.cart-table th.th-qty { text-align: center; }
.cart-table th.th-action { text-align: right; }
.page-pedido .product-info {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.page-pedido .product-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 0.5rem;
    background-size: cover;
    background-position: center;
}
.product-image.img-cart-1 { background-image: url('https://lh3.googleusercontent.com/aida-public/AB6AXuBCyTepgy9wRcTx8h2yn5lyPAS6XDAi2-pDBUWO6jOAPJ0_S_L8xhltaEOPaqifWmysEeJBtLQZWPhDeJK2lxdWs21CVW5RPUNO0eHa4sH6oWcudphL1__DVKfx3DSoyzFQLqtEM-cLCq0w49TJnpyAoaAVq4bpyTsDpELq7ZdhZAjBs_MV3VBKd3t6VbAkvz_Pz2c8uankTVybNfBBbL7cDMgLuWhcjHuMvAqtxtWJOxPM4mY6TR99PsgN-hQgV9YDtLwb8Lo3J2or'); }
.product-image.img-cart-2 { background-image: url('https://lh3.googleusercontent.com/aida-public/AB6AXuBK5DvQLLwVjcPNk0MXVLUL7_QfCniLQE9sYlomo_FpQab8rwUShvRFhuG2Z3ofaX0y3_Ro9mFn7CNZ-6oMoSPanhaANSgiNeH9gPrNqzPDiUZfJ76U4qJalI22_s3s9zKwpTxyFcftBGSp9keZGhUHdObjSKWdfHkqpWZV66gd2W92d8vXE7bVER3mkXg3OojNiuyAe9RzbgsS5-Xs-zlTqPkUrtv8e_ZViv6sNj-_VvXlsvJzL_ZgcU92ZIiRu2Jekb9rv4Jv4wz2'); }
.page-pedido .product-details h3 { font-size: 0.9375rem; font-weight: 600; color: var(--text-dark); margin-bottom: 0.25rem; }
.page-pedido .product-sku { font-size: 0.75rem; color: var(--text-gray); margin-bottom: 0.15rem; }
.page-pedido .product-availability { font-size: 0.75rem; color: var(--success); }
.page-pedido .quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.quantity-control.quantity-center { justify-content: center; }
.page-pedido .quantity-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    overflow: hidden;
}
.page-pedido .qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f5f9;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}
.page-pedido .qty-btn:hover { background: #e2e8f0; }
.page-pedido .quantity-wrapper input {
    width: 3rem;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    padding: 0.35rem 0;
    font-size: 0.875rem;
}
.page-pedido .unit-label { font-size: 0.75rem; color: var(--text-gray); }
.cart-table td.td-action { text-align: right; }
.page-pedido .remove-btn {
    border: none;
    background: none;
    color: var(--text-gray);
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: color 0.2s, background-color 0.2s;
}
.page-pedido .remove-btn:hover { color: var(--accent); background: #fef2f2; }
.page-pedido .remove-btn .material-symbols-outlined { font-size: 1.25rem; }

.page-pedido .card-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.page-pedido .back-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.page-pedido .back-link:hover { text-decoration: underline; }
.page-pedido .summary-total { text-align: right; }
.page-pedido .summary-total .label { font-size: 0.75rem; color: var(--text-gray); display: block; }
.page-pedido .summary-total .value { font-size: 0.9375rem; font-weight: 700; color: var(--text-dark); }
.page-pedido .info-notice {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: #eff6ff;
    border-radius: 0.5rem;
    margin-top: 1rem;
}
.page-pedido .info-notice .material-symbols-outlined { color: var(--primary); flex-shrink: 0; }
.page-pedido .info-notice p { font-size: 0.8125rem; color: var(--text-gray); line-height: 1.5; margin: 0; }

.page-pedido .sidebar-card { min-width: 0; }
@media (min-width: 992px) {
    .page-pedido .sidebar-card { position: sticky; top: 1rem; }
}
.page-pedido .quote-form { padding: 1.25rem; }
.page-pedido .form-group { margin-bottom: 1.25rem; }
.page-pedido .form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
}
.page-pedido .form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-family: inherit;
}
.page-pedido .form-control.textarea { min-height: 80px; resize: vertical; }
.page-pedido .grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.page-pedido .input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}
.page-pedido .input-with-icon .material-symbols-outlined {
    position: absolute;
    left: 0.75rem;
    font-size: 1.25rem;
    color: var(--text-gray);
}
.page-pedido .input-with-icon .form-control { padding-left: 2.5rem; }
.quote-form .form-terms-wrap { border-top: 1px solid var(--border-color); padding-top: 20px; margin-top: 20px; }
.page-pedido .terms-area {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.page-pedido .terms-area input { margin-top: 0.25rem; }
.page-pedido .terms-area label { font-size: 0.8125rem; color: var(--text-gray); font-weight: 400; }
.page-pedido .terms-area a { color: var(--primary); }
.page-pedido .finalize-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}
.page-pedido .finalize-btn:hover { background: var(--primary-dark); }
.page-pedido .security-badge {
    font-size: 0.75rem;
    color: var(--text-gray);
    text-align: center;
    margin-top: 1rem;
}
