/* Contenedor del carrito */
.carrito-contenido {
    display: grid;
    grid-template-columns: 50% 50%;
    justify-content: space-between;
    padding: 30px 200px;
}

/* Productos del carrito */
.carrito-productos {
    width: 100%;
}

.carrito-2{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 30px;
    height: auto;
    width: 100%;
}

.carrito-productos .producto-carrito {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f7f7f7;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: box-shadow 0.2s;
    align-items: center;
}

.carrito-productos .producto-carrito:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
    background: #eaf6f6;
}

.carrito-productos img {
    width: 150px;
    height: auto;
    max-height: 180px;
    border-radius: 8px;
    object-fit: cover;
    object-position: 0 0;
    border: 2px solid var(--teal, #008080);
    background: #fff;
    margin-right: 20px;
}

.carrito-productos .producto-info {
    width: 65%;
}

.carrito-productos .producto-info h4 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--teal, #008080);
    margin-bottom: 8px;
}

.carrito-productos .producto-info p {
    margin: 5px 0;
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
    max-width: 400px;  
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    justify-self: left;
}

.carrito-productos p {
    text-align: center;
    color: #888;
    font-size: 1.1rem;
    margin-top: 40px;
}

.carrito-productos .producto-info button {
    background: #e91e63;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    margin-top: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.carrito-productos .producto-info button:hover {
    background: #c2185b;
}

/* Resumen del carrito */
.carrito-resumen {
    width: 100%;
    padding: 20px;
    background-color: #f7f7f7;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    height: 85%;
    margin: 0 auto 20px auto;
    box-sizing: border-box;
}

.carrito-resumen h3 {
    margin-top: 0;
    color: var(--teal, #008080);
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-align: center;
}

.carrito-resumen hr {
    border: none;
    border-top: 1px solid #ccc;
    margin: 10px 0 15px 0;
}

/* Formulario de envío */
.carrito-envio {
    margin-top: 20px;
    padding: 20px;
    background-color: #f7f7f7;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
    margin: 0 auto 20px auto;
    width: 100%;
    box-sizing: border-box;
}

.carrito-envio form {
    display: flex;
    flex-direction: column;
}

.carrito-envio input {
    padding: 10px;
    margin: 5px 0;
    border-radius: 4px;
    border: 1px solid #b2dfdb;
    background: #f9f9f9;
    font-size: 1rem;
}

.carrito-envio button {
    background-color: var(--teal);
    color: var(--white);
    padding: 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
    font-size: 1rem;
}

.carrito-envio button:hover {
    background-color: #1c3d44;
}

/* Botón de vaciar carrito */
#vaciar-carrito {
    background-color: #e91e63;
    color: var(--white);
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-top: 15px;
    font-size: 1rem;
}

#vaciar-carrito:hover {
    background-color: #c2185b;
}

/* Estilos para el widget de Wompi */
.wompi-widget-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    width: 100%;
}

.wompi-widget-container button {
    width: 100%;
    padding: 15px;
    background-color: var(--teal);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.wompi-widget-container button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.wompi-widget-container button:hover:not(:disabled) {
    background-color: var(--gold);
}

/* Ajuste del contenedor del resumen para incluir Wompi */
.carrito-resumen {
    margin-bottom: 0;
}

/* Ajuste del botón de pago de Wompi */
.wompi-widget-container form {
    margin-top: 15px;
}

/* Responsive Carrito */
@media (max-width: 768px) {
    .carrito-contenido {
        display: flex;
        flex-direction: column;
        padding: 20px;
    }

    .carrito-productos img {
        width: 100px;
        max-height: 120px;
    }

    .producto-carrito {
        flex-direction: column;
        align-items: flex-start;
    }

    .carrito-2 {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .carrito-contenido {
        padding: 10px;
    }

    .carrito-resumen, .carrito-envio, .wompi-widget-container {
        padding: 15px;
        font-size: 0.9rem;
    }
}

/* Layouts y pequeños ajustes */
.resumen-line, .resumen-total { display:flex; justify-content:space-between; align-items:center; margin:8px 0; }
.resumen-total { font-weight:700; font-size:1.15rem; }

.carrito-card {
    width:100%;
    padding:20px;
    background:#f7f7f7;
    border-radius:8px;
    box-shadow:0 4px 10px rgba(0,0,0,0.1);
    margin:0 auto 20px auto;
    box-sizing:border-box;
    }

.form-grid { display:grid; grid-template-columns: 1fr 1fr; gap:10px; }
.form-grid input, .form-grid select, .form-grid textarea {
    grid-column: span 2;
    padding:10px; border-radius:6px; border:1px solid #b2dfdb; background:#fff; font-size:1rem;
}
.form-grid select:disabled { background:#f1f1f1; color:#777; }

.pago-opciones { display:flex; gap:16px; margin-bottom:10px; }
.pago-opciones label { display:flex; align-items:center; gap:8px; }

.pago-bloque.oculto { display:none; }

.lista-pago { margin:8px 0 12px; padding-left:18px; }
.lista-pago li { margin:4px 0; }

.nota-envio { color:#555; }

.btn { background:#e91e63; color:#fff; border:none; padding:12px 16px; border-radius:8px; cursor:pointer; width:100%; }
.btn:hover { background:#c2185b; }
.btn-primario { background: var(--teal, #008080); }
.btn-primario:hover { background:#1c3d44; }
.btn-secundario { background: var(--gold, #8A703F); }
.btn-secundario:hover { filter:brightness(0.95); }

.terminos { display:flex; gap:10px; align-items:flex-start; font-size:0.95rem; }
.terminos input { margin-top:3px; }

@media (max-width: 768px){
    .form-grid { grid-template-columns: 1fr; }
}

.resumen-line, .resumen-total{display:flex;justify-content:space-between;align-items:center;margin:8px 0}
.resumen-total{font-weight:700;font-size:1.1rem}
.terminos{display:flex;gap:10px;align-items:flex-start;margin-top:8px}
#departamento,#municipio{background:#fff}

    /* ====== Variables de marca (fallbacks) ====== */
    :root{
    --deep-blue: #1D4D59;
    --gold: #8A703F;
    --beige: #E6CFBE;
    --ink: #0f172a;
    --muted: #64748b;
    --bg-soft: #f7f7f7;
    --ok: #16a34a;
    --warn: #eab308;
    }

    /* ====== Inputs con íconos ====== */
    .input-group{ position:relative; display:flex; align-items:center; gap:8px }
    .input-group i{ position:absolute; left:12px; font-size:0.95rem; color: var(--muted); }
    .input-group input{ padding-left:36px; }
    .carrito-envio input, .carrito-envio select, .carrito-envio textarea{
    border:1px solid #dbe3e7; background:#fff; transition: box-shadow .15s, border-color .15s;
    }
    .carrito-envio input:focus, .carrito-envio select:focus, .carrito-envio textarea:focus{
    outline:none; border-color: var(--deep-blue);
    box-shadow: 0 0 0 3px rgba(29,77,89,.12);
    }

    /* ====== Términos y extras ====== */
    .terminos{ margin-top:12px; color:#111; }
    .extras-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:14px; margin-top:10px; }
    .checkbox{ display:flex; align-items:center; gap:8px; }
    .helper{ color:var(--muted); font-size:0.85rem; }
    .btn-mini{ width:auto; padding:8px 12px; border-radius:8px; background: var(--deep-blue); color:#fff; border:none; cursor:pointer; }
    .btn-mini:hover{ filter: brightness(.95); }
    .oculto{ display:none; }

    /* ====== Botones/CTA ====== */
    .btn{ background: linear-gradient(180deg, var(--deep-blue), #133843); }
    .btn:hover{ filter: brightness(1.05); }
    .btn.btn-primary{ background: linear-gradient(180deg, var(--gold), #6d552e); }

    /* ====== Trust row ====== */
    .trust-row{
    display:grid; grid-template-columns: repeat(3, 1fr); gap:10px;
    background:#fff; border:1px solid #e5e7eb; border-radius:10px; padding:12px; margin-top:12px;
    }
    .trust-row div{ display:flex; align-items:center; gap:8px; color: var(--ink); font-weight:600; }
    .trust-row i{ color: var(--deep-blue); }

    /* ====== Tarjetas/visual ====== */
    .carrito-resumen, .carrito-envio, .wompi-widget-container{
    background: #fff;
    border: 1px solid #e5e7eb;
    }
    .carrito-resumen h3, .carrito-envio h3{
    color: var(--deep-blue);
    letter-spacing:.2px;
    }
    .carrito-resumen hr{
    border: none; border-top: 1px solid #e5e7eb; margin: 10px 0;
    }

    /* ======= FORM CARRITO — layout y look & feel ======= */
.carrito-envio form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

/* Íconos embebidos en inputs (ya usas .input-group) */
.carrito-envio .input-group {
    position: relative;
    grid-column: span 1; /* Nombre y Email quedan lado a lado */
}
.carrito-envio .input-group i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted, #64748b);
    font-size: 0.95rem;
}
.carrito-envio .input-group input {
    padding-left: 36px;
}

/* Campos base */
.carrito-envio input,
.carrito-envio select,
.carrito-envio textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #dbe3e7;
    background: #fff;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

/* Focus ring en el color de marca */
.carrito-envio input:focus,
.carrito-envio select:focus,
.carrito-envio textarea:focus {
    outline: none;
    border-color: var(--deep-blue, #1D4D59);
    box-shadow: 0 0 0 3px rgba(29,77,89,.12);
}

/* Campos deshabilitados (municipio hasta que elijan depto) */
.carrito-envio select:disabled {
    background: #f1f5f9;
    color: #6b7280;
    cursor: not-allowed;
}

/* Grid responsive de campos: qué va 1-2 columnas */
#telefono,
#direccion,
#barrio,
#indicaciones,
.terminos {
    grid-column: span 2; /* toman todo el ancho */
}

/* Departamento y Municipio compartiendo fila */
#departamento,
#municipio {
    grid-column: span 1;
    background: #fff;
}

/* Textarea más cómodo */
#indicaciones {
    min-height: 90px;
    resize: vertical;
}

/* Ayudas y nota de envío */
.helper,
.nota-envio {
    color: var(--muted, #64748b);
    font-size: 0.9rem;
}

/* Validación básica con :valid / :invalid */
.carrito-envio input:invalid,
.carrito-envio select:invalid,
.carrito-envio textarea:invalid {
    border-color: #ef4444;
}
.carrito-envio input:valid,
.carrito-envio select:valid,
.carrito-envio textarea:valid {
    border-color: #22c55e;
}

/* Checkbox de Términos */
.terminos {
    display: flex;
    flex: space-around;
    margin-top: 4px;
}

/* Botones coherentes con el resto del UI */
#wompi-button.btn {
    background: linear-gradient(180deg, var(--gold, #8A703F), #6d552e);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 14px;
    font-weight: 600;
}
#wompi-button.btn:disabled {
    filter: grayscale(1) brightness(.95);
    cursor: not-allowed;
}
#vaciar-carrito.btn {
    background: linear-gradient(180deg, #e91e63, #c2185b);
    border-radius: 10px;
    font-weight: 600;
}

/* Tarjetas (Resumen / Envío / Wompi) — mismo estilo visual */
.carrito-resumen,
.carrito-envio,
.wompi-widget-container {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

/* Headings y separadores dentro de las tarjetas */
.carrito-resumen h3,
.carrito-envio h3 {
    color: var(--deep-blue, #1D4D59);
    letter-spacing: .2px;
    margin-bottom: 6px;
}
.carrito-resumen hr,
.carrito-envio hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 8px 0 12px 0;
}

/* Responsive */
@media (max-width: 820px) {
    .carrito-envio form {
        grid-template-columns: 1fr;
    }
    .carrito-envio .input-group,
    #departamento,
    #municipio,
    #telefono,
    #direccion,
    #barrio,
    #indicaciones,
    .terminos {
        grid-column: span 1;
    }
}

/* Términos: checkbox + texto pegaditos */
.carrito-envio .terminos {
    display: inline-flex;      /* más natural dentro del flow */
    align-items: center;       /* centrado vertical */
    gap: 4px;                  /* antes 10px */
    margin-top: 2px;           /* más compacto */
}

/* Quita espacios extra del checkbox y dale color de marca */
.carrito-envio .terminos input[type="checkbox"] {
    margin: 0;                 /* sin separación extra */
    width: 18px;
    height: 18px;
    accent-color: #1D4D59;     /* azul MARES */
}

/* Si lo quieres ultra pegado, cambia gap a 2px */
