/* ========== VARIAVEIS GLOBAIS (identidade visual da barbearia) ========== */
:root {
    --green-primary: #2D4B40;
    --green-hover: #1a3d32;
    --green-light: #3a6355;
    --bg-cream: #F8F5ED;
    --bg-white: #FFFFFF;
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #e8e4d8;
    --gold: #FFD700;
    --gold-dim: #B8860B;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.18);
    --shadow-card: 0 2px 8px rgba(45,75,64,0.08);
    --transition: 0.3s ease;
}

/* ========== RESET E BASE ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #F8F5ED 0%, #EBE5D7 100%);
    background-attachment: fixed;
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.6;
    padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px));
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

/* ========== HEADER ========== */
.products-header {
    width: 100%;
    max-width: 700px;
    padding: 16px 16px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.back-link {
    align-self: flex-start;
    color: var(--green-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 12px;
    transition: color var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(45,75,64,0.06);
}

.back-link:hover { background: rgba(45,75,64,0.12); }

.header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.header-logo {
    height: 48px;
    width: auto;
    border-radius: var(--radius-sm);
}

.header-brand h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--green-primary);
    letter-spacing: 0.5px;
}

/* ========== STEPPER (3 passos: Produtos -> Carrinho -> Dados) ========== */
.stepper {
    width: 100%;
    max-width: 700px;
    padding: 0 24px 20px;
    display: flex;
    align-items: flex-end;
    gap: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #d4d0c8;
    color: var(--text-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all var(--transition);
    min-width: 36px;
    border: 2px solid transparent;
}

.step.active .step-number {
    background-color: var(--green-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(45,75,64,0.3);
}

.step.completed .step-number {
    background-color: var(--green-primary);
    color: white;
}

.step.completed .step-number::after {
    content: '✓';
    font-size: 0.8rem;
}

.step-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step.active .step-label { color: var(--green-primary); font-weight: 700; }

.step-line {
    flex: 1;
    height: 3px;
    background-color: #d4d0c8;
    margin: 0 8px;
    margin-bottom: 22px;
    border-radius: 2px;
    transition: background-color 0.4s ease;
}

.step-line.active { background-color: var(--green-primary); }

/* ========== MAIN CONTENT ========== */
.products-main {
    width: 100%;
    max-width: 700px;
    padding: 0 16px;
    flex: 1;
}

/* ========== ANIMACAO DE TRANSICAO ENTRE PASSOS ========== */
.step-content { display: none; animation: fadeUp 0.4s ease; }
.step-content.active { display: block; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--green-primary);
    margin-bottom: 4px;
}

.step-subtitle {
    color: var(--text-medium);
    font-size: 0.92rem;
    margin-bottom: 20px;
}

/* ========== LISTA DE PRODUTOS (passo 1) ========== */
.products-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: all 0.2s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: transparent;
    transition: background 0.2s ease;
    border-radius: 0 2px 2px 0;
}

.product-card.in-cart {
    border-color: rgba(45,75,64,0.2);
    background-color: rgba(45,75,64,0.02);
}

.product-card.in-cart::before {
    background: var(--green-primary);
}

.product-card:active {
    transform: scale(0.98);
}

.product-photo {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-cream);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-medium);
    font-size: 1.6rem;
    opacity: 0.3;
}

.product-info {
    flex: 1;
    min-width: 0;
}

.product-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 2px;
    line-height: 1.3;
}

.product-desc {
    font-size: 0.78rem;
    color: var(--text-medium);
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--green-primary);
}

.product-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.product-qty button {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--green-primary);
    background: white;
    color: var(--green-primary);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.product-qty button:active {
    transform: scale(0.9);
}

.product-qty button:hover { background: var(--green-primary); color: white; }
.product-qty button.btn-remove { border-color: #ccc; color: #ccc; }
.product-qty button.btn-remove:hover { border-color: var(--green-primary); color: white; background: var(--green-primary); }

.product-qty span {
    font-weight: 700;
    font-size: 1.05rem;
    min-width: 22px;
    text-align: center;
}

/* ========== CARRINHO (passo 2) ========== */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.cart-item-photo {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-cream);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-medium);
    font-size: 1.2rem;
    opacity: 0.3;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.92rem;
}

.cart-item-price {
    font-size: 0.82rem;
    color: var(--text-medium);
    margin-top: 2px;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.cart-item-qty button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid var(--green-primary);
    background: white;
    color: var(--green-primary);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.cart-item-qty button:active { transform: scale(0.9); }
.cart-item-qty button:hover { background: var(--green-primary); color: white; }
.cart-item-qty span { font-weight: 700; min-width: 18px; text-align: center; font-size: 0.9rem; }

.cart-summary {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--green-primary);
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--green-primary);
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(45,75,64,0.1);
}

.pickup-info {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: rgba(45,75,64,0.05);
    padding: 14px;
    border-radius: var(--radius-md);
}

.pickup-info i {
    font-size: 1.4rem;
    color: var(--green-primary);
    margin-top: 2px;
}

.pickup-info strong { font-size: 0.88rem; color: var(--text-dark); }
.pickup-info p { font-size: 0.78rem; color: var(--text-medium); margin-top: 2px; }
.pickup-highlight { color: var(--green-primary) !important; font-weight: 600 !important; }

/* ========== FORMULARIO DE DADOS (passo 3) ========== */
.client-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--green-primary);
}

.form-group label i { margin-right: 6px; }

.form-group input {
    padding: 14px 16px;
    border: 2px solid #ddd;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: border-color var(--transition);
    outline: none;
    -webkit-appearance: none;
    background: white;
}

.form-group input:focus {
    border-color: var(--green-primary);
    box-shadow: 0 0 0 3px rgba(45,75,64,0.1);
}

/* ========== RESUMO DO PEDIDO (passo 3) ========== */
.order-summary {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--green-primary);
}

.order-summary h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--green-primary);
    margin-bottom: 14px;
}

.order-summary-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    padding: 4px 0;
}

.order-item-name { font-weight: 500; }
.order-item-qty { color: var(--text-medium); font-size: 0.78rem; margin: 0 6px; }
.order-item-price { font-weight: 600; color: var(--green-primary); }

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 2px solid rgba(45,75,64,0.1);
    padding-top: 12px;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--green-primary);
}

/* ========== TELA DE CONFIRMACAO ========== */
.confirmation-box {
    text-align: center;
    padding: 40px 20px;
}

.confirm-icon {
    font-size: 3.5rem;
    color: #4CAF50;
    margin-bottom: 16px;
    animation: popIn 0.5s ease;
}

@keyframes popIn {
    0% { transform: scale(0); }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.confirmation-box h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    color: var(--green-primary);
    margin-bottom: 8px;
}

.confirm-text {
    color: var(--text-medium);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.confirm-details {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    text-align: left;
    margin-bottom: 16px;
}

.confirm-details .order-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.confirm-details .order-total {
    font-size: 1.15rem;
    margin-top: 8px;
}

.pickup-info-confirm {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: white;
    padding: 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: left;
    margin-bottom: 16px;
}

.pickup-info-confirm i {
    font-size: 1.4rem;
    color: var(--green-primary);
    margin-top: 2px;
}

.pickup-info-confirm strong { font-size: 0.88rem; }
.pickup-info-confirm p { font-size: 0.78rem; color: var(--text-medium); margin-top: 2px; }

.confirm-whatsapp {
    font-size: 0.88rem;
    color: var(--text-medium);
    margin-bottom: 24px;
}

.confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.92rem;
    transition: all var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.btn-whatsapp:hover { background-color: #128C7E; transform: translateY(-2px); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background-color: var(--green-primary);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.92rem;
    transition: all var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.btn-secondary:hover { background-color: var(--green-hover); transform: translateY(-2px); }

.btn-outline-product {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: transparent;
    color: var(--green-primary);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.92rem;
    border: 2px solid var(--green-primary);
    transition: all var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.btn-outline-product:hover { background-color: var(--green-primary); color: white; transform: translateY(-2px); }

/* ========== BARRA DE NAVEGACAO FIXA (voltar / proximo / badge carrinho) ========== */
.products-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 700px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: linear-gradient(to top, rgba(235,229,215,0.98) 70%, transparent);
    z-index: 100;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cart-badge {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -8px;
    background: var(--green-primary);
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(45,75,64,0.3);
}

.btn-back,
.btn-next {
    padding: 13px 28px;
    border: none;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    -webkit-tap-highlight-color: transparent;
    min-height: 48px;
}

.btn-back {
    background: white;
    color: var(--green-primary);
    border: 2px solid var(--green-primary);
    box-shadow: var(--shadow-sm);
}

.btn-back:hover { background-color: rgba(45,75,64,0.05); }
.btn-back:active { transform: scale(0.96); }

.btn-next {
    background-color: var(--green-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(45,75,64,0.3);
}

.btn-next:hover { background-color: var(--green-hover); transform: translateY(-1px); }
.btn-next:active { transform: scale(0.96) translateY(0); }

.btn-back:disabled,
.btn-next:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.empty-products {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-medium);
}

.empty-products i { font-size: 3rem; margin-bottom: 16px; opacity: 0.3; display: block; }

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 20px;
    background: var(--green-primary);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all var(--transition);
}

.btn-back-home:hover { background-color: var(--green-hover); }

/* ========== RESPONSIVO MOBILE-FIRST ========== */

/* Tablet (até 768px) */
@media (max-width: 768px) {
    body { background-attachment: scroll; }
    .header-brand h1 { font-size: 1.3rem; }
    .header-logo { height: 44px; }
    .stepper { padding: 0 16px 16px; }
    .step-label { font-size: 0.65rem; }
    .step-number { width: 32px; height: 32px; font-size: 0.8rem; min-width: 32px; }
    .step-line { margin-bottom: 18px; }
    .step-title { font-size: 1.3rem; }
}

/* Mobile pequeno (até 480px) */
@media (max-width: 480px) {
    body { background-attachment: scroll; }
    .products-header { padding: 12px 12px 0; }
    .header-brand { gap: 10px; margin-bottom: 12px; }
    .header-brand h1 { font-size: 1.15rem; }
    .header-logo { height: 40px; }
    .back-link { font-size: 0.82rem; padding: 5px 10px; }

    .stepper { padding: 0 12px 12px; }
    .step-label { display: none; }
    .step-number { width: 30px; height: 30px; font-size: 0.78rem; min-width: 30px; }
    .step-line { margin-bottom: 0; height: 3px; }
    .step { gap: 4px; }

    .products-main { padding: 0 12px; }
    .step-title { font-size: 1.2rem; }
    .step-subtitle { font-size: 0.85rem; margin-bottom: 14px; }

    /* Cards de produto empilhados no mobile */
    .product-card {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        gap: 10px;
    }
    .product-photo { width: 100%; height: 140px; border-radius: var(--radius-sm); }
    .product-info { text-align: left; }
    .product-qty { justify-content: flex-end; }

    /* Nav bar */
    .products-nav {
        padding: 10px 12px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    }
    .btn-back, .btn-next {
        flex: 1;
        justify-content: center;
        padding: 12px 16px;
        font-size: 0.88rem;
        min-height: 48px;
    }

    /* Confirmação */
    .confirm-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .confirmation-box { padding: 24px 12px; }
    .confirmation-box h2 { font-size: 1.35rem; }
    .confirm-details { padding: 14px; }
    .order-summary { padding: 14px; }
    .form-group input { padding: 14px; font-size: 16px; }
    .btn-whatsapp, .btn-secondary, .btn-outline-product {
        justify-content: center;
        min-height: 48px;
    }
}

/* ========== OUT OF STOCK ========== */

.product-card.out-of-stock {
    opacity: 0.6;
    position: relative;
}
.product-card.out-of-stock .product-qty { display: none; }
.product-card .out-of-stock-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #C62828;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== MODAL DE DETALHE DO PRODUTO (bottom sheet) ========== */

.product-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 500;
    display: none;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

.product-modal-overlay.open {
    display: flex;
    opacity: 1;
}

.product-modal {
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    background: white;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
    position: relative;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.product-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.4);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.product-modal-close:hover {
    background: rgba(0,0,0,0.6);
}

.product-modal-photo {
    width: 100%;
    height: 280px;
    background: var(--bg-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.product-modal-photo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 12px;
}

.product-modal-photo .product-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-medium);
    font-size: 4rem;
    opacity: 0.2;
}

.product-modal-body {
    padding: 20px 20px calc(24px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
}

.product-modal-name {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 1.35rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-modal-desc {
    font-size: 0.92rem;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 16px;
    white-space: pre-line;
}

.product-modal-price {
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--green-primary);
    margin-bottom: 8px;
}

.product-modal-stock {
    font-size: 0.82rem;
    color: var(--text-medium);
    margin-bottom: 20px;
}

.product-modal-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.product-modal-actions button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--green-primary);
    background: white;
    color: var(--green-primary);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.product-modal-actions button:active {
    transform: scale(0.9);
}

.product-modal-actions button:hover {
    background: var(--green-primary);
    color: white;
}

.modal-btn-remove.disabled {
    border-color: #ccc;
    color: #ccc;
    cursor: default;
}

.modal-btn-add.disabled {
    border-color: #ccc;
    color: #ccc;
    cursor: default;
}

.modal-qty-value {
    font-weight: 800;
    font-size: 1.5rem;
    min-width: 40px;
    text-align: center;
    color: var(--green-primary);
}

/* ========== FIX IMAGENS MOBILE — object-fit: contain ========== */

@media (max-width: 480px) {
    .product-card {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        gap: 10px;
        cursor: pointer;
    }
    .product-photo {
        width: 100%;
        height: 180px;
        border-radius: var(--radius-sm);
    }
    .product-photo img {
        object-fit: contain;
        padding: 4px;
    }
    .product-info { text-align: left; }
    .product-qty { justify-content: flex-end; }

    /* Modal full height no mobile */
    .product-modal {
        max-width: 100%;
        max-height: 95vh;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }
    .product-modal-photo {
        height: 240px;
    }
    .product-modal-name {
        font-size: 1.2rem;
    }
}

@media (min-width: 481px) {
    /* Desktop: clicar no card tb abre o modal */
    .product-card {
        cursor: pointer;
    }
    .product-photo img {
        object-fit: cover;
    }
}
