﻿html, body {
    width: 100%;
}

html {
    height:100%;
}

body {
    margin: 0;
    font-family: 'Oswald', sans-serif;
    position: relative;
    min-height: 100%;
    padding-bottom: 150px;
}

header {
    height: 80px;
    width: 100%;
    background:black;
    display:flex;
    justify-content:center;
      
}

.aHeader {
    background-color: black;
    width:100px;
    height:100%;
    background-image: url("../logo/LogoAS.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

nav {
    z-index:1;
    display: flex;
    position: sticky;
    top: 0;
    justify-content: space-between;
    flex-direction: row;
    padding: 0 24px;
    border-bottom: 1px solid var(--very-light-pink);
    background: black;
    height: 35px;
    align-items: center;
    gap: 15px;
}

    nav div {
        display: flex;
        height: 100%;
        gap: 10px;
    }

    nav a {
        display: block;
        height: 100%;
        line-height: 35px;
        text-decoration: none;
        color: white;
        padding: 0px 10px;
        border-radius: 8px 8px 0 0;
        font-family: 'Koulen';
        transition: background-color 0.5s, color 0.5s;
    }

.menuButton {
    display: none;
}

.menu1 {

    width: 198px;
    height: auto;
    padding: 0;
    flex-direction: column;
    justify-items: center;
    right: 0;
    left: -137px;
    background-color: black;
    display: none;
    position: absolute;
    top: 100%;
    z-index: 0;
    border-radius: 0 0 10px 10px;
}

    .menu1 a {
        width: 50%;
        padding: 0;
        display: flex;
        gap: 10px;
        align-items: center;
        justify-content: center;
    }


.lastDiv {
    display: flex;
}

.userBotton {
    position: relative;
}

.userBotton nav {
    display: flex;
}

.carrusel {
    z-index:0;
    width: 100%;
    height: 500px;
    overflow: hidden;
    position: relative;
}

    .carrusel div {
        display: flex;
        transition: all 1s;
    }

    .carrusel img {
        width: 100%;
        height: 500px;
        object-fit:cover;
        flex: none;
    }

    .carrusel a {
        position: absolute;
        top: 50%;
        left: 10px;
        width: 50px;
        height: 50px;
        text-decoration: none;
        background-color: white;
        color: black;
        border-radius: 25px;
        text-align: center;
        line-height: 50px;
        font-size: 1.5em;
        transform: translateY(-50%);
        opacity: .3;
        transition: all .1s ease-in;
    }

        .carrusel a:hover {
            opacity: 1;
        }

        .carrusel a:last-of-type {
            right: 1dvh;
            left: unset;
        }

footer {
    position: absolute;
    bottom: 0;

    width: 100%;
    background-color: #070707;
    color: #fff;
    display: flex;
    flex-direction: column;
}

.contacto {
    float: left;
    padding: 20px;
}

.contacto h4 {
        margin: 0;
        color: #e4e4e4;
    }

    .contacto a {
        color: #e4e4e4;
        text-decoration: none;
        margin: 0 10px;
    }

footer p {
    margin: auto;
    font-size: small;
    text-align: center;
    background-color: black;
    width: 100%;
    padding: 10px 0;
}

/*/////////////Productos//////////////////////////*/

.container {
    display: inherit;
    margin: 20px;

}

.container h1 {
    font-weight: 700;
    margin: 0 0 20px 0;
}

.container-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: minmax(400px, auto);
    grid-gap: 10px;
    gap: 10px;
    justify-items: center;
}

.product {
    height: 400px;
    width: 300px;
    text-decoration: none;
    padding: 0;
    margin: 0;
    color: black;
    text-align:center;
}

.imgContainer {
    width:100%;
    height:70%;
}

.imgContainer img {
    height : 100%;
    width:auto;
}

.product h2 {
    padding: 0;
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
    word-wrap: break-word;
}

.product h3 {
    padding: 0;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 400;
    /*//////////////////////////////Producto//////////////////////////*/
}
.container-producto {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto;
    margin: 20px 20px;
}

.container-producto img {
    grid-column: 1/2;
    grid-row: 1/2;
    height: auto;
    justify-self: center;
}

.container-info {
    grid-column: 2/2;
    grid-row: 1/2;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.container-producto h3 {
    padding: 0;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 200;
}

.container-producto h1 {
    font-size: 3rem;
    font-weight: 600;
    padding: 0;
    margin: 0;
}

.container-producto h2 {
    padding: 0;
    margin: 15px 0;
    font-weight: 400;
}

.container-producto label {
    font-size: 1rem;
    font-weight: 400;
}

.tallas {
    margin: 15px 0 20px 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(70px, 1fr));
    grid-auto-rows: minmax(auto, 4fr);
    grid-gap: 10px;
    gap: 10px;
}

    .tallas label {
        background: white;
        padding: 10px;
        width: 80%;
        border-radius: 20px;
        border: 1px solid rgb(112, 112, 112);
        text-align: center;
    }

.contador {
    margin: 15px 0 20px 0;
    display: flex;
    width: 150.5px;
    height: 50px;
    border: 1px solid grey;
}

    .contador button {
        border: 0;
        margin: 0;
        padding: 0;
        background-color: red;
        width: 50px;
        height: 50px;
    }

        .contador button:not(:focus-visible):not(.focused), .quantity__input:not(:focus-visible):not(.focused) {
            box-shadow: inherit;
            background-color: inherit;
        }

    .contador input {
        text-align: center;
        border: 0;
        margin: 0;
        padding: 0;
        width: 50px;
        height: 50px;
    }

        .contador input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        .contador input [type=number] {
            -moz-appearance: textfield;
        }

section input[type=submit] {
    margin: 5px 0;
}

.botonesClass {
    display: flex;
    flex-direction: column;
}

.comprarButton {
    height: 50px;
    background-color: black;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: white;
    border: 1px solid black;
    border-radius: 50px;
    cursor: pointer;
    outline: none;
}

.agregarButton {
    height: 50px;
    background-color: white;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: black;
    border: 1px solid grey;
    border-radius: 50px;
    cursor: pointer;
    outline: none;
}

.descripcion {
    grid-column: span 2;
    width: 100%;
    grid-row: 2/2;
    align-items: center;
    width: 100%;
}

    .descripcion label {
        font-size: 2rem;
    }

    .descripcion p {
        text-align: justify;
    }

/*/////////////////Carrito////////////////////*/

.my-order {
    width: 60%;
    margin: auto;
    margin-top: 20px;
}

.my-order-container {
    display: flex;
    flex-direction: column;
    padding: 10px;
    border-radius: 5px;
    background-color: #fafafa;
    margin-top: 10PX;
}

    .my-order-container::after {
        content: "";
        display: table;
        clear: both;
    }

    .my-order-container h2 {
        padding: 0;
        margin: 0;
        margin-top: 10px;
        display: inline-flex;
    }

.shopping-cart {
    display: grid;
    margin: 20px 0px 20px 0px;
    grid-template-columns: 20% 60% 20%;
    grid-template-rows: 80% 20%;
    grid-template-areas: "imagen nombreproducto precio"
        "opc opc opc";
    border-bottom: 1px solid #e4e4e4;
    padding-bottom: 10px;
    align-items:center;
}

    .shopping-cart img {
        width: auto;
        height: 100px;
        justify-self: center;
        grid-area: imagen;
    }


    .shopping-cart div a {
        color: black;
        text-decoration: none;
    }

    .shopping-cart div p:nth-child(2) {
        color: gray;
        font-size: small;
    }

    .shopping-cart p:nth-child(3) {
        font-size: var(--md);
        font-weight: bold;
        grid-area: precio;
    }

    .shopping-cart  form {
        grid-area: opc;
        text-align: center;
    }

        .shopping-cart form  section input[type="submit"] {
            text-decoration: none;
            font-size: medium;
            color: goldenrod;
            border: 0;
            background-color: transparent;
            cursor: pointer;
            font-family: Bahnschrift;
        }

.my-order-resume {
    display: flex;
    flex-direction: column;
    padding: 10px;
    border-radius: 5px;
    background-color: #fafafa;
    /*  background-color:blue;*/
}

    .my-order-resume::after {
        content: "";
        display: table;
        clear: both;
    }

    .my-order-resume h4 {
        padding: 0;
        margin: 0;
        margin-top: 10px;
        display: inline-flex;
    }

    .my-order-resume a {
        background: black;
        padding: 10px;
        width: 200px;
        margin: auto;
        text-align: center;
        text-decoration: none;
        color: white;
        font-weight: 500;
        border-radius: 50px;
    }




.resume p span {
    float: right;
    font-weight: bold;
    margin-right: 10PX;
}

/*///////////////////////////Lista de productos y marcas ///////////////////////////////////////*/

.productos {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .productos div {
        text-align: right;
        width: 80%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        padding: 0;
    }

.agregar {
    padding: 5px 10px;
    margin: 0 0 10px 0;
    text-align: center;
    text-decoration: none;
    background-color: black;
    border-radius: 15px;
    color: white;
    width: 15%;
}


.productos ul {
    width: 80%;
    position: initial;
    padding: 0;
}

.seleccionar-marca {
    width: 100%;
}


    .seleccionar-marca select {
        width: 100%;
        float: right;
        padding: 5px 0 5px 10px;
        font-size: large;
        padding: 0;
        font-family: 'Oswald', sans-serif;
        border: 0;
        background-color: lightgoldenrodyellow;
    }

        .seleccionar-marca select option {
            width: 100%;
        }


.productos ul li {
    list-style: none;
    font-size: x-large;
    padding: 2px;
    cursor: pointer;
    margin-bottom: 5px;
}

    .productos ul li:hover {
        background-color: lightgray;
        border-radius: 5px;
    }

    .productos ul li span {
        color: grey;
    }

.productos a {
    cursor: pointer;
    float: right;
    margin-right: 5px;
}



/*Aqui termina lista de productos*/
/*//////////////////////Agregar y editar /////////////////////////////////////////*/
.agregar-editar-section {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-agregar-editar {
    display: flex;
    flex-direction: column;
    width: 50%;
}

    .form-agregar-editar input[type="text"], .form-agregar-editar input[type="number"], .form-agregar-editar select {
        border: 0;
        border-bottom: 1px solid #b5b5b5;
        font-size: medium;
        padding: 5px;
        margin-bottom: 15px;
        font-family: 'Oswald', sans-serif;
        word-wrap: break-word;
    }

    .form-agregar-editar textarea {
        border: 0;
        border-bottom: 1px solid #b5b5b5;
        font-size: medium;
        margin-bottom: 15px;
        font-family: 'Oswald', sans-serif;
    }


.form-agregar-editar #imagePreview {
    width: 100px;
    height: 100px;
    border-radius: 15px;
}

.botones {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

    .botones input[type="submit"] {
        margin: 0;
        padding: 5px;
        border-radius: 15px;
        font-size: medium;
        color: white;
        border: 0;
        background-color: black;
        font-family: 'Oswald', sans-serif;
        margin-right: 10px;
        width: 20%;
        cursor: pointer;
    }

    .botones a {
        width: 20%;
    }

        .botones a input[type="button"] {
            margin: 0;
            padding: 5px;
            border-radius: 15px;
            font-size: medium;
            color: white;
            border: 0;
            background-color: black;
            font-family: 'Oswald', sans-serif;
            margin-left: 10px;
            width: 100%;
            cursor: pointer;
        }


.agregar-editar-section ul {
    width: 80%;
    position: initial;
    padding: 0;
}

    .agregar-editar-section ul li {
        list-style: none;
        font-size: x-large;
        padding: 2px;
        cursor: pointer;
        margin-bottom: 5px;
    }

        .agregar-editar-section ul li:hover {
            background-color: lightgray;
            border-radius: 5px;
        }

        .agregar-editar-section ul li span {
            color: grey;
        }
/*//////////////////////Eliminar /////////////////////////////////////////*/
.eliminar {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-eliminar {
    text-align: center;
    width: 50%;
}

    .form-eliminar p {
        font-size: medium;
    }

        .form-eliminar p span {
            color: gray;
        }

/*////////////////////// compra realizada /////////////////////////////////////////*/

.compra-realizada {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .compra-realizada div {
        margin-top: 5%;
        width: 40%;
        border-radius: 5px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
        text-align: center;
        padding: 20px;
    }

        .compra-realizada div p {
            font-size: x-large;
        }

.regresar-a {
    padding: 0 20px 5px 20px;
    text-decoration: none;
    margin-top: 10px;
    color: white;
    font-size: x-large;
    border-radius: 20px;
    background-color: black;
}

#error, .error {
    text-align: center;
    width:100%;
    color: red;
    margin: 5px;
    font-size:medium;
}

.error, #error div ul {
    list-style: none;
}

/*/////////////////////////// media ///////////////////////////////////////*/


    @media (max-width: 880px) {
        .menuButton {
            display: block;
            position: relative;
        }

            .menuButton div {
                display: flex;
            }

        .menuCategorias {
            display: none;
            width: 198px;
            height: auto;
            align-items: center;
            padding: 0;
            flex-direction: column;
            justify-items: center;
            right: -122px;
            left: -25px;
            background-color: black;
            position: absolute;
            top: 100%;
            z-index: 1;
            border-radius: 0 0 10px 10px;
        }
        .container-producto {
            display: flex;
            flex-direction: column;
        }

            .container-producto img {
                height: auto;
                width: 100%;
                align-self: center;
            }

        .tallas {
            grid-template-columns: repeat(auto, minmax(70px, 1fr));
            grid-auto-rows: minmax(auto, 4fr);
        }

        .container-info {
            flex-direction: column;
        }
    }


