/* Fuentes */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400..900&family=Cormorant:ital,wght@0,300..700;1,300..700&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400..900&family=Cormorant:ital,wght@0,300..700;1,300..700&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* Modal Animacion */
#modal-mensaje{
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

#modal-cuerpo{
    background: white;
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    text-align: center;
}

#modal-animacion {
    width: 200px;
    height: 150px;
    margin: 0 auto;
}


#modal-texto{
    margin: 0;
    font-weight: 800;
}

/* Variables */
:root{
    --black: #181f0d;
    --primary-color: #546f01;
    --secondary-color: #a4bc00;
    --background-color: #d8cabb;
    --buttons-color: #a88f6b;
}

html {
    scroll-behavior: smooth;
    /* Ocultar la barra lateral */
    overflow: auto;
    scrollbar-width: none;
}

body {
    margin: 0;
    padding: 0;
    color: var(--black);
    background-color: var(--background-color);
    font-family: "DM Sans";
    display: flex;
    flex-direction: column;
}

a:visited { /* Elimina el color del enlace al ser clickeado */
    color: inherit;
}

/* Header-NavBar */

.navbar-brand{
    max-width: 100%;
    max-height: 100%;
    display: flex;
    height: 50px;
    margin: 0%;
    padding: 0%;
}
.navbar-brand img{
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; 
    transition: all 0.3s ease;
    
}

.navbar-brand img:hover{
    transform: scale(1.1);
}

.navbar{
    padding: 0;
    display: flex;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  }
  
  .container-fluid {
    background-color: #546f01;
}

.navbar .nav-link,
.navbar .navbar-brand {
    color: white !important;; 
}

.navbar-nav .nav-link {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.navbar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.navbar-nav li a {
    border-radius: 15px;
    color: white;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-nav li a:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: scale(1.05);
}

.navbar-collapse{
    z-index: 1000;
}

.container-fluid {
    z-index: 1000;
}

/* BANNER */

#banner {
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Imagen de fondo con color */
    background-image: url(../img/carrito-banner.jpg);
    background-color: rgba(0, 0, 0, 0.5);
    background-blend-mode: multiply;
    background-size: cover;
    background-position: center;
}

#banner h1 {
    margin: 0;
    padding: 0;
    font-size: 64px;
    font-family: 'Cormorant';
    text-align: center;
    color: white;
}

/* Shopping List */

.shopping-list {
    margin: 20px 120px;
    display: grid;
    grid-template-columns: 1fr 0.8fr 0.2fr 1fr;
    gap: 15px 0;
}

.list-title {
    padding: 10px;
    font-family: 'DM Sans';
    font-size: 18px;
    font-weight: 400;
    border-bottom: 1px solid #181f0d;
    text-align: center;
    text-shadow: 0px 0px 20px var(--primary-color);
}

.product-list {
    display: flex;
    justify-content: space-between;
    background-color: var(--buttons-color);
    border-radius: 20px 0 0 20px;
}

.product-list h4 {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    font-weight: 400;
    font-size: 20px;
}

.product-list img{
    margin-left: 30px;
    height: 101px;
    width: 101px;
    padding: 3px;
}

.product-cost {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    background-color: var(--buttons-color);
}

.product-cost span {
    margin-left: 5px;
}

.product-count {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    background-color: var(--buttons-color);
}

.product-total {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    background-color: var(--buttons-color);
    border-radius: 0 20px 20px 0;
}

.product-total span{
    margin-left: 5px;
}

.delete-item {
    position: absolute;
    right: 90px;
    background-color: aliceblue;
    border-radius: 20px;
    width: 60px;
    border: 1px solid var(--black);
    cursor: pointer;
    box-shadow: 1px 1px 3px var(--black);
    padding: 0;
    display: flex;
    justify-content: center;
}

.delete-item:hover{
    color: white;
    background-color: var(--primary-color);
    transition: 0.3s ease;
}

.delete-item img:hover path{
    fill: white;
}

/* Overview */

.buy-overview {
    margin: 0px 70px;
    margin-top: 100px;
    height: auto;
    margin-bottom: 20px;
    background-color: var(--buttons-color);
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    padding: 20px;
}

.payment-container {
    width: 50%;
}

.payment-information {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* margin-right: 120px; */
    width: 35dvw;
}

.payment-container p {
    margin: 0;
    font-size: 20px;
    display: flex;
    align-items: center;
}

.payment-information span {
    margin-left: 5px;
}

#sub-total {
    font-weight: 700;
    display: flex;
    justify-content: center;
    padding-right: 50px;
}

#shipping-text {
    border-bottom: 1px solid var(--black);
}

#shipping-cost {
    font-weight: 700;
    border-bottom: 1px solid var(--black);
    display: flex;
    justify-content: center;
    padding-right: 50px;
}

#total-text {
    display: flex;
    margin-right: 75px;
}

#total-cost {
    padding: 0;
    margin-top: 10px;
    margin-right: 50px;
    background-color: var(--primary-color);
    border: none;
    border-radius: 50px;
    height: 50px;
    width: auto;
    flex-grow: 1;
    box-shadow: 1px 1px 5px var(--black);
    font-size: 20px;
    font-weight: 700;
    transition: 0.5s ease;
    color: white;
}

#total-cost:hover {
    background-color: var(--secondary-color);
}

.payment-final {
    display: flex;
    justify-content: space-between;
}

/* Footer */

.footer-pagina{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background-color: #A88F6B;
    padding: 15px;
}
.contenedor-Agroshop p{
    margin: 0%;
    padding: 0%;
}

.redes{
    display: flex;
    padding: 0%;
    margin: 0%;
}

#redesTitulo{
    list-style-type: none;

}

.redes li{
    font-family: "DM sans", sans-serif;
    list-style-type: none;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.redes li a{
    border-radius: 15px;
    color: #ffffff;
    font-family: 'DM Sans', sans-serif;
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}


.redes li a:hover{
    background-color: var(--secondary-color);
    color: white;
    transform: scale(1.05);
}

/* Shopping Cart floating button*/

.boton-flotante {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 1000;
    transition: background-color 0.3s ease;
}
  
.boton-flotante:hover {
    background-color: var(--primary-color);
}

.contador-carrito {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--secondary-color);
    color: white;
    font-size: 14px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Payment-methods */

.payment-checkbox-container {
    background-color: var(--buttons-color);
    margin-right: 5dvw;
}

.input-group-text {
    flex-wrap: wrap;
}

.form-check-input{
    margin-top: 0;
    margin-left: 10px;
}

.payment-image {
    height: 45px;
    margin-left: 10px;
    margin-right: 10px;
}

@media (max-width: 768px){
    /* Banner */
    #banner {
        height: 70px;
    }
    
    #banner h1 {
        font-size: 28px;
        text-align: end;
    }
    
    /* Shopping-List */
    .list-title {
        display: none;
    }

    .shopping-list {
        position: relative;
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
        margin: 20px 5dvw;
        min-width: 20dvw;
        justify-content: start;
    }

    .shopping-list p {
        font-size: 18px;
        padding-left: 50px;
    }
    
    .product-list {
        border-radius: 20px 20px 0 0;
    }

    .product-list h4 {
        margin: 5px 0;
        padding-left: 50px;
    }

    .product-list p {
        position: relative;
    }

    .product-list img {
        position: absolute;
        margin-top: 10px;
        margin-left: 15px;
    }

    .product-name {
        align-items: flex-start;
    }
    
    .product-total {
        margin-bottom: 20px;
        border-radius: 0 0 20px 20px;
        padding: 5px 0;
    }

    .product-count::before {
        content: "Cantidad: ";
        display: block;
        margin-right: 20px;
    }

    .product-cost::before {
        content: "Precio / lb: ";
        display: block;
        margin-right: 20px;
    }

    .product-total::before {
        content: "Total: ";
        font-weight: 400;
        display: block;
        margin-right: 20px;
    }

    .delete-item {
        position: absolute;
        align-items: center;
        right: -20px;
        margin-bottom: 90px;
    }

    .buy-overview {
        margin: 20px 5dvw;
        flex-direction: column-reverse;
    }

    .payment-container {
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    #total-cost {
        max-width: 350px;
    }

    .payment-information {
        text-align: center;
        width: 100%;
    }

    #sub-total {
        padding-right: 150px;
    }

    #shipping-cost {
        padding-right: 150px;
    }

    .payment-options {
        margin-top: 20px;
    }

    /* Payment-methods */

    .payment-checkbox-container {
        margin-right: 0;
    }
}

@media (max-width: 560px){
    .payment-final{
        border-top: 1px solid var(--black);
    }
    .payment-information {
        grid-template-columns: 1fr 1fr;
        width: auto;
        justify-content: center;
        align-items: center;
    }

    #total-text {
        margin-right: 25px;
    }

    #total-cost {
        margin: auto;
        margin-top: 10px;
    }

    #sub-total {
        width: fit-content;
        padding-right: 5dvw;
        padding-left: 5dvw;
        /* margin: auto; */
    }

    #shipping-cost {
        width: fit-content;
        padding-right: 5dvw;
        padding-left: 5dvw;
        border: none;
    }

    #shipping-text {
        border-bottom: none;
    }
}