/* ============================================================
   CARTA - TORTAS D'ROSSI
   ============================================================ */

.carta-page {
    background: #fffaf7;
    min-height: 70vh;
}

.carta-eyebrow {
    display: inline-block;
    margin-bottom: 8px;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 2px;

    color: #b73535;
}

.carta-title {
    margin-bottom: 12px;

    font-size: clamp(34px, 5vw, 52px);
    font-weight: 800;

    color: #2e2521;
}

.carta-subtitle {
    max-width: 650px;

    margin: 0 auto;

    color: #756761;

    line-height: 1.7;
}


/* ============================================================
   CATEGORÍAS
   ============================================================ */

.carta-categorias {
    display: flex;

    align-items: center;

    gap: 10px;

    overflow-x: auto;

    margin-bottom: 38px;
    padding-bottom: 7px;

    scrollbar-width: thin;
}

.carta-categoria {
    flex-shrink: 0;

    padding: 10px 20px;

    border: 1px solid #e3d8d1;

    border-radius: 100px;

    background: #fff;

    color: #433832;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition: 0.25s ease;
}

.carta-categoria:hover {
    background: #f5e9e3;

    color: #2e2521;
}

.carta-categoria.active {
    background: #2e2521;

    border-color: #2e2521;

    color: #fff;
}


/* ============================================================
   TARJETA
   ============================================================ */

.producto-card {
    height: 100%;

    overflow: hidden;

    border: 1px solid #eee5df;

    border-radius: 18px;

    background: #fff;

    box-shadow:
        0 8px 30px rgba(73, 49, 38, 0.06);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.producto-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 16px 38px rgba(73, 49, 38, 0.11);
}


/* Imagen */

.producto-card-imagen {
    position: relative;

    display: block;

    width: 100%;
    height: 250px;

    overflow: hidden;

    background: #f6f1ee;
}

.producto-card-imagen img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.5s ease;
}

.producto-card:hover .producto-card-imagen img {
    transform: scale(1.05);
}

.producto-sin-imagen {
    width: 100%;
    height: 100%;

    display: flex;

    justify-content: center;
    align-items: center;

    font-size: 65px;
}


/* Destacado */

.producto-destacado {
    position: absolute;

    top: 14px;
    left: 14px;

    padding: 6px 11px;

    border-radius: 100px;

    background: #fff;

    color: #a42d2d;

    font-size: 11px;
    font-weight: 700;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, .1);
}


/* Contenido */

.producto-card-body {
    display: flex;

    flex-direction: column;

    height: calc(100% - 250px);

    padding: 20px;
}

.producto-categoria {
    margin-bottom: 7px;

    color: #a27b69;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;
}

.producto-card-title {
    margin-bottom: 10px;

    font-size: 20px;
    font-weight: 800;

    line-height: 1.25;
}

.producto-card-title a {
    color: #302621;

    text-decoration: none;
}

.producto-card-description {
    margin-bottom: 20px;

    color: #756761;

    font-size: 13px;

    line-height: 1.6;
}

.producto-card-footer {
    display: flex;

    justify-content: space-between;
    align-items: flex-end;

    gap: 12px;

    margin-top: auto;
}

.producto-card-footer small {
    display: block;

    color: #8a7a72;

    font-size: 11px;
}

.producto-card-footer strong {
    display: block;

    color: #302621;

    font-size: 19px;
}

.producto-ver {
    color: #a42d2d;

    font-size: 12px;
    font-weight: 700;

    text-decoration: none;
}

.producto-ver:hover {
    color: #7e1e1e;
}


/* Vacío */

.carta-vacia {
    padding: 70px 20px;

    border-radius: 18px;

    background: #fff;

    text-align: center;

    color: #756761;
}

/* ============================================================
   DETALLE DE PRODUCTO
   ============================================================ */

.producto-detalle {
    min-height: 80vh;

    background: #fffaf7;
}

.detalle-volver {
    color: #73645d;

    font-size: 13px;

    text-decoration: none;
}

.detalle-volver:hover {
    color: #332721;
}


/* Galería */

.detalle-imagen-principal {
    width: 100%;

    aspect-ratio: 1 / 1;

    overflow: hidden;

    border-radius: 22px;

    background: #f2ece8;
}

.detalle-imagen-principal img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.detalle-sin-imagen {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 90px;
}

.detalle-miniaturas {
    display: flex;

    gap: 10px;

    margin-top: 15px;

    overflow-x: auto;
}

.detalle-miniatura {
    flex-shrink: 0;

    width: 75px;
    height: 75px;

    padding: 0;

    overflow: hidden;

    border: 2px solid transparent;

    border-radius: 12px;

    background: #fff;

    cursor: pointer;
}

.detalle-miniatura img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.detalle-miniatura.active {
    border-color: #3a2b24;
}


/* Información */

.detalle-info {
    max-width: 600px;
}

.detalle-categoria {
    display: inline-block;

    margin-bottom: 8px;

    color: #a42d2d;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}

.detalle-info h1 {
    margin-bottom: 15px;

    color: #302621;

    font-size: clamp(34px, 5vw, 52px);

    font-weight: 800;

    line-height: 1.05;
}

.detalle-descripcion {
    margin-bottom: 30px;

    color: #73645d;

    line-height: 1.75;
}


/* Bloques */

.config-bloque {
    padding: 22px 0;

    border-top: 1px solid #e8ded8;
}

.config-bloque h3 {
    margin-bottom: 14px;

    color: #302621;

    font-size: 15px;
    font-weight: 700;
}

.config-bloque h3 span {
    color: #c02c2c;
}


/* Opciones */

.config-opciones {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;
}

.config-radio-card,
.config-checkbox-card {
    cursor: pointer;
}

.config-radio-card input,
.config-checkbox-card input {
    position: absolute;

    opacity: 0;
    pointer-events: none;
}

.config-radio-card>span,
.config-checkbox-card>span {
    min-width: 115px;

    display: flex;

    flex-direction: column;

    padding: 11px 16px;

    border: 1px solid #ded4ce;

    border-radius: 12px;

    background: #fff;

    transition: 0.2s ease;
}

.config-radio-card strong,
.config-checkbox-card strong {
    color: #40342e;

    font-size: 13px;
}

.config-radio-card small,
.config-checkbox-card small {
    margin-top: 3px;

    color: #9b5749;

    font-size: 11px;
}

.config-radio-card input:checked+span,
.config-checkbox-card input:checked+span {
    border-color: #352821;

    background: #352821;

    box-shadow:
        0 5px 15px rgba(53, 40, 33, 0.15);
}

.config-radio-card input:checked+span strong,
.config-checkbox-card input:checked+span strong {
    color: #fff;
}

.config-radio-card input:checked+span small,
.config-checkbox-card input:checked+span small {
    color: #f0d9d0;
}


/* Adicional */

.config-adicionales {
    display: flex;

    flex-direction: column;

    gap: 8px;
}

.adicional-item {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 15px;

    padding: 13px 15px;

    border: 1px solid #e4dad4;

    border-radius: 12px;

    background: #fff;

    cursor: pointer;
}

.adicional-item>div {
    display: flex;

    align-items: center;

    gap: 9px;
}

.adicional-item strong {
    color: #8c4139;

    font-size: 13px;
}


/* Cantidad */

.cantidad-control {
    display: inline-flex;

    align-items: center;

    overflow: hidden;

    border: 1px solid #ded4ce;

    border-radius: 12px;

    background: #fff;
}

.cantidad-control button {
    width: 43px;
    height: 43px;

    border: 0;

    background: transparent;

    font-size: 21px;
}

.cantidad-control input {
    width: 55px;
    height: 43px;

    border: 0;

    outline: none;

    text-align: center;

    font-weight: 700;

    appearance: textfield;
}


/* Resumen */

.config-resumen {
    margin-top: 15px;

    padding: 20px;

    border-radius: 16px;

    background: #f3ebe6;
}

.config-resumen>div {
    display: flex;

    justify-content: space-between;
    align-items: center;
}

.config-resumen span {
    color: #685850;

    font-size: 13px;
}

.config-resumen strong {
    color: #302621;

    font-size: 27px;
}

.config-resumen small {
    display: block;

    margin-top: 8px;

    color: #897870;

    font-size: 11px;
}


/* WhatsApp */

.btn-whatsapp-producto {
    width: 100%;

    margin-top: 16px;

    padding: 16px 20px;

    border: 0;

    border-radius: 100px;

    background: #1eae5d;

    color: #fff;

    font-weight: 700;

    transition: 0.25s ease;
}

.btn-whatsapp-producto:hover {
    background: #168d4b;

    transform: translateY(-2px);
}

/* ============================================================
   MÉTODO DE ENTREGA
   ============================================================ */

.entrega-tipos {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;
}


.entrega-card {
    cursor: pointer;

    position: relative;
}


.entrega-card input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}


.entrega-card-content {
    display: flex;

    align-items: center;

    gap: 13px;

    min-height: 82px;

    padding: 14px;

    border:
        1px solid #ded4ce;

    border-radius: 14px;

    background: #fff;

    transition:
        0.2s ease;
}


.entrega-card-content>span:last-child {
    display: flex;

    flex-direction: column;

    gap: 2px;
}


.entrega-icono {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 43px;
    height: 43px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #f4ebe6;

    font-size: 20px;
}


.entrega-card strong {
    color: #342822;

    font-size: 13px;
}


.entrega-card small {
    color: #817169;

    font-size: 11px;

    line-height: 1.4;
}


.entrega-card input:checked+.entrega-card-content {

    border-color: #392b24;

    background: #392b24;

    box-shadow:
        0 6px 18px rgba(57,
            43,
            36,
            0.15);
}


.entrega-card input:checked+.entrega-card-content strong {

    color: #fff;
}


.entrega-card input:checked+.entrega-card-content small {

    color: #e9dad3;
}


.entrega-card input:checked+.entrega-card-content .entrega-icono {

    background:
        rgba(255,
            255,
            255,
            0.15);
}


/* ============================================================
   DETALLE DEL MÉTODO
   ============================================================ */

.entrega-detalle {
    margin-top: 17px;

    padding: 17px;

    border-radius: 14px;

    background: #faf6f3;
}


.tienda-seleccionada {
    display: flex;

    align-items: flex-start;

    gap: 12px;

    margin-top: 14px;

    padding: 15px;

    border: 1px solid #e6ddd8;

    border-radius: 12px;

    background: #fff;
}


.tienda-seleccionada.d-none {
    display: none !important;
}


.tienda-seleccionada-icono {
    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 40px;
    height: 40px;

    border-radius: 50%;

    background: #f3ebe6;

    font-size: 18px;
}


.tienda-seleccionada-info {
    display: flex;

    flex-direction: column;

    gap: 2px;
}


.tienda-seleccionada-info small {
    color: #8a7971;

    font-size: 10px;
}


.tienda-seleccionada-info strong {
    color: #352922;

    font-size: 13px;
}


.tienda-seleccionada-info span {
    color: #76665e;

    font-size: 11px;

    line-height: 1.5;
}


.tienda-seleccionada strong {
    color: #352922;

    font-size: 13px;
}


.tienda-seleccionada span {
    color: #76665e;

    font-size: 12px;
}


/* ============================================================
   DELIVERY
   ============================================================ */

.delivery-aviso {
    display: flex;

    align-items: flex-start;

    gap: 11px;

    margin-top: 15px;

    padding: 12px;

    border-radius: 12px;

    background: #fff;
}


.delivery-aviso>span {
    font-size: 21px;
}


.delivery-aviso>div {
    display: flex;

    flex-direction: column;

    gap: 2px;
}


.delivery-aviso strong {
    color: #352922;

    font-size: 12px;
}


.delivery-aviso small {
    color: #7c6a61;

    font-size: 11px;

    line-height: 1.5;
}


/* ============================================================
   MÓVIL
   ============================================================ */

@media (max-width: 576px) {

    .entrega-tipos {

        grid-template-columns: 1fr;

    }

}

/* ============================================================
   BOTONES PRODUCTO
   ============================================================ */

.acciones-producto {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 10px;

    margin-top: 16px;
}


.btn-agregar-carrito {
    padding: 16px 20px;

    border: 0;

    border-radius: 100px;

    background: #382821;

    color: #fff;

    font-weight: 700;

    transition: 0.25s ease;
}


.btn-agregar-carrito:hover {
    background: #241a16;

    transform: translateY(-2px);
}


.acciones-producto
.btn-whatsapp-producto {
    margin-top: 0;
}


.producto-agregado-mensaje {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 15px;

    margin-top: 12px;

    padding: 13px 16px;

    border-radius: 12px;

    background: #e8f7ee;

    color: #176d3c;

    font-size: 12px;
    font-weight: 600;
}


.producto-agregado-mensaje a {
    color: #176d3c;

    font-weight: 700;

    text-decoration: none;
}



/* ============================================================
   CARRITO
   ============================================================ */

.carrito-page {
    min-height: 80vh;

    background: #fffaf7;
}


.carrito-eyebrow {
    color: #a42d2d;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1.5px;
}


.carrito-title {
    margin-top: 5px;
    margin-bottom: 4px;

    color: #302621;

    font-size: clamp(
        34px,
        5vw,
        50px
    );

    font-weight: 800;
}



/* ============================================================
   ITEM
   ============================================================ */

.carrito-item {
    display: grid;

    grid-template-columns:
        145px 1fr;

    overflow: hidden;

    border: 1px solid #ebe1dc;

    border-radius: 17px;

    background: #fff;

    box-shadow:
        0 5px 20px
        rgba(50, 35, 27, 0.05);
}


.carrito-item-imagen {
    min-height: 170px;

    background: #f4eeea;
}


.carrito-item-imagen img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


.carrito-sin-imagen {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    font-size: 45px;
}


.carrito-item-info {
    display: flex;

    flex-direction: column;

    padding: 18px 20px;
}


.carrito-item-info h3 {
    margin: 0 0 9px;

    color: #342820;

    font-size: 18px;
    font-weight: 800;
}


.carrito-item-opciones {
    display: flex;

    flex-direction: column;

    gap: 3px;

    color: #73645d;

    font-size: 11px;

    line-height: 1.5;
}


.carrito-item-bottom {
    display: flex;

    align-items: center;

    gap: 14px;

    margin-top: auto;

    padding-top: 14px;
}


.carrito-cantidad {
    display: inline-flex;

    align-items: center;

    border: 1px solid #ddd2cc;

    border-radius: 100px;
}


.carrito-cantidad button {
    width: 34px;
    height: 32px;

    border: 0;

    background: transparent;

    font-size: 17px;
}


.carrito-cantidad span {
    min-width: 28px;

    text-align: center;

    font-weight: 700;
}


.carrito-eliminar {
    border: 0;

    background: transparent;

    color: #b13a36;

    font-size: 11px;

    cursor: pointer;
}


.carrito-item-subtotal {
    margin-left: auto;

    color: #332720;

    font-size: 17px;
}



/* ============================================================
   RESUMEN
   ============================================================ */

.carrito-resumen {
    position: sticky;

    top: 100px;

    padding: 24px;

    border-radius: 18px;

    background: #fff;

    box-shadow:
        0 8px 30px
        rgba(48, 35, 28, 0.08);
}


.carrito-resumen h4 {
    margin-bottom: 23px;

    color: #302621;

    font-weight: 800;
}


.carrito-resumen-linea,
.carrito-total {
    display: flex;

    justify-content: space-between;

    gap: 15px;

    margin-bottom: 12px;
}


.carrito-resumen-linea {
    color: #74635a;

    font-size: 13px;
}


.carrito-total {
    align-items: center;

    color: #302621;
}


.carrito-total strong {
    font-size: 25px;
}


.carrito-delivery-nota {
    margin-top: 18px;

    padding: 11px;

    border-radius: 10px;

    background: #f6efeb;

    color: #796860;

    font-size: 10px;

    line-height: 1.5;
}



/* ============================================================
   VACÍO
   ============================================================ */

.carrito-vacio {
    padding: 80px 20px;

    text-align: center;

    border-radius: 20px;

    background: #fff;
}


.carrito-vacio-icono {
    margin-bottom: 15px;

    font-size: 60px;
}



/* ============================================================
   BADGE NAV
   ============================================================ */

.carrito-nav-link {
    position: relative;

    display: inline-flex;

    align-items: center;

    gap: 5px;
}


.carrito-badge {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 18px;
    height: 18px;

    padding: 0 5px;

    border-radius: 100px;

    background: #bd2f2f;

    color: #fff;

    font-size: 10px;
    font-weight: 700;
}



/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (
    max-width: 767px
) {

    .acciones-producto {
        grid-template-columns: 1fr;
    }


    .carrito-item {
        grid-template-columns:
            105px 1fr;
    }


    .carrito-item-imagen {
        min-height: 150px;
    }


    .carrito-item-bottom {
        flex-wrap: wrap;
    }


    .carrito-item-subtotal {
        width: 100%;

        margin-left: 0;

        text-align: right;
    }

}

/* ============================================================
   CHECKOUT / DATOS DEL CLIENTE
   ============================================================ */

.checkout-titulo {
    display: flex;

    align-items: center;

    gap: 13px;
}


.checkout-icono {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #f4ebe6;

    font-size: 20px;
}


.checkout-titulo h4 {
    color: #302621;
}


/* ============================================================
   CAMPOS DEL CHECKOUT
   ============================================================ */

.carrito-page .form-control,
.carrito-page .form-select,
.carrito-page .input-group-text {

    min-height: 46px;

    border-color: #e0d6d0;

    border-radius: 10px;
}


.carrito-page textarea.form-control {
    min-height: auto;
}


.carrito-page .form-control:focus,
.carrito-page .form-select:focus {

    border-color: #8c6555;

    box-shadow:
        0 0 0 0.2rem
        rgba(140, 101, 85, 0.12);
}


.carrito-page .input-group-text {

    background: #f5efeb;

    color: #594940;

    font-size: 13px;
    font-weight: 600;
}


/* ============================================================
   AVISO DEL PEDIDO
   ============================================================ */

.pedido-aviso {
    display: flex;

    align-items: flex-start;

    gap: 11px;

    padding: 13px;

    border-radius: 12px;

    background: #f7f2ee;
}


.pedido-aviso > span {
    font-size: 19px;
}


.pedido-aviso > div {
    display: flex;

    flex-direction: column;

    gap: 2px;
}


.pedido-aviso strong {
    color: #43352e;

    font-size: 12px;
}


.pedido-aviso small {
    color: #7d6d65;

    font-size: 11px;

    line-height: 1.5;
}


/* ============================================================
   BOTÓN WHATSAPP RESUMEN
   ============================================================ */

.carrito-resumen
.btn-whatsapp-producto {

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;
}


/* ============================================================
   MÓVIL
   ============================================================ */

@media (max-width: 576px) {

    .checkout-titulo {
        align-items: flex-start;
    }

}