/* Estilos Generales */
body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f8f2e6;
    color: #5a5a5a;
    margin: 0;
    padding: 0;
    font-size: 16px;
}

/* Header y Footer */
header, footer {
    background-color: #c5a88e; /* Cambio de color de fondo */
    color: #fff; /* Texto en color claro */
    text-align: center;
    padding: 1em 0;
    border-top: 5px solid #c5a88e;
    border-bottom: 5px solid #c5a88e;
}

.header-nav img {
    height: 20px;
    width: 20px;
    vertical-align: middle;
    margin-right: 10px;
}

nav.header-nav {
    display: flex;
    justify-content: center;
    padding: 0.5em 0;
    font-size: 1.1em;
}

nav.header-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #222;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

nav.header-nav a:hover {
    color: #c5a88e;
}

nav.header-nav a.active {
    color: #c5a88e;
    font-weight: bold;
}

img {
    max-width: 100%;
    height: auto;
}


/* Contenedor Principal */
.container {
    max-width: 1200px; /* Ancho máximo del contenido */
    margin: 0 auto; /* Centrar el contenido en la página */
    padding: 20px; /* Espaciado interno */
}

#propertiesContainer {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 3px;
    background-color: #fff;
    max-height: 150px;
    overflow-y: auto;
}

.property-columns {
    display: flex;
    align-items: flex-start;
    margin-top: 10px;
}

.property-column {
    flex: 1;
    padding: 0 20px;
}	


/* Estilos de la Cesta */
.cart-container {
    background-color: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    font-size: 0.9em; /* Texto más pequeño para un aspecto refinado */
}



.cart-container img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    margin-right: 20px; /* Mayor espacio entre la imagen y el texto */
    border-radius: 10px; /* Bordes más redondeados para la imagen */
}

.cart-container p {
    margin: 10px 0; /* Mayor espacio entre párrafos */
    color: #222;
    font-size: 1.2em; /* Tamaño de fuente más grande */
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.cart-item img {
    width: 100px; /* Imágenes más pequeñas para un diseño más limpio */
    height: auto;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 20px;
}

.cart-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-item-details p {
    margin: 0; /* Eliminar el margen para un diseño más apretado */
    font-weight: 300; /* Texto más delgado */
}

.cart-item-price {
    font-weight: 500; /* Precio en negrita, pero no demasiado */
    color: #333; /* Color de texto oscuro para contraste */
}

.quantity-area {
    display: flex;
    align-items: center;
}

.quantity-input {
    width: 50px; /* Tamaño fijo para la entrada de cantidad */
    margin: 0 10px; /* Espacio alrededor de la entrada de cantidad */
    text-align: center;
}

.update-btn, .remove-btn {
    background-color: #c5a88e;
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 5px;
}

.update-btn:hover, .remove-btn:hover {
    background-color: #a89680; /* Efecto de hover */
}


/* Resumen de la Cesta */

/* Add this to your existing CSS */
.img-square-wrapper {
    padding: 10px;
    width: 150px; /* Adjust the size to fit your design */
    height: 150px; /* Adjust the size to fit your design */
    overflow: hidden;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.card-horizontal {
    display: flex;
    flex: 1 1 auto;
}

.quantity-input {
    width: 60px;
    margin: 0 10px;
    text-align: center;
}

/* Override Bootstrap button styles as needed */
.btn-outline-secondary, .btn-outline-danger {
    margin: 5px;
}

.cart-summary {
    width: 300px; /* or whatever width you prefer */
}

/* Ensure the cart summary and proceed button are clearly visible */
.cart-summary h3, .cart-summary .btn {
    margin-top: 10px;
}

.cart-total {
    font-size: 1.4em;
    font-weight: bold;
    color: #222;
    margin: 15px 0;
}

.checkout-button {
    background-color: #c5a88e;
    color: #fff;
    padding: 10px 25px;
    border: none;
    border-radius: 4px;
    font-size: 1.2em;
    cursor: pointer;
    text-decoration: none;
    display: block; /* Ocupa su propio espacio */
    width: max-content; /* Tamaño según contenido */
    margin: 20px auto 0; /* Centra el botón en la parte inferior */
}

.checkout-button:hover {
    background-color: #a89680;
}

/* Estilos de Paginación */
.pagination {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px; /* Espaciado inferior */
}

.pagination a {
    display: inline-block;
    padding: 5px 10px;
    background-color: #f0f0f0;
    margin: 2px;
    text-decoration: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #222; /* Color de texto más oscuro */
}

.pagination a.active {
    background-color: #007bff;
    color: #fff;
}

/* Estilos para la lista de productos en el index.php */
.products-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around; /* Distribuye las tarjetas uniformemente y centra los elementos */
    gap: 20px; /* Espacio entre las tarjetas */
}

.product-card {
    flex-basis: calc(33.333% - 20px); /* Toma un tercio del espacio disponible menos el espacio entre tarjetas */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra los elementos de la tarjeta verticalmente */
    padding: 15px;
    box-sizing: border-box; /* Incluye el padding en la anchura total del elemento */
}

.product-card:hover {
    transform: translateY(-5px); /* Slight raise effect on hover */
    box-shadow: 0px 12px 20px 0px rgba(0,0,0,0.2); /* Deeper shadow on hover for a "lifting" effect */
}

.product-card img {
    width: 100%; /* Asegura que la imagen ocupe todo el ancho de la tarjeta */
    height: 200px; /* Altura fija para todas las imágenes */
    object-fit: contain; /* Asegura que la imagen cubra toda el área asignada sin perder su aspecto */
    margin-bottom: 10px; /* Espacio debajo de la imagen */
}

.product-card h3 {
    font-size: 1em; /* Moderate font size for product title */
    color: #333; /* Darker color for text for better readability */
    margin: 0.5em 0; /* Space around the title */
    padding: 0 10px; /* Padding to ensure text doesn't touch the edges */
}

.product-card p {
    font-size: 0.9em; /* Smaller text for description and price */
    color: #555; /* Slightly lighter color than the title */
    margin: 0.5em 0;
    padding: 0 10px;
}

/* You can also add a "View Product" button if you like */
.product-card a {
    display: inline-block;
    margin: 10px 0; /* Spacing at the bottom of the card */
    padding: 10px 15px; /* Padding inside the button */
    background-color: #c5a88e; /* Button color that matches your theme */
    color: white; /* Text color */
    border-radius: 5px; /* Rounded corners for the button */
    text-decoration: none; /* Remove underline from the link */
    font-weight: bold; /* Bold text */
    transition: background-color 0.3s; /* Transition for the button */
}

.product-card a:hover {
    background-color: #a89680; /* Slightly darker color on hover */
}


@media (max-width: 768px) {
    .product-card {
        flex-basis: calc(50% - 20px); /* En pantallas pequeñas, dos tarjetas por fila */
    }
}

@media (max-width: 480px) {
    .product-card {
        flex-basis: 100%; /* En pantallas muy pequeñas, una tarjeta por fila */
    }
}

/*.search-form {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 10px;
margin-bottom: 20px;
}*/

.search-form {
    background-color: #f5f5f5;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: flex;
    justify-content: flex-start; /* Esto alinea los elementos al inicio (izquierda) */
    margin-bottom: 10px;
}

.search-form input[type="text"],
.search-form input[type="number"],
.search-form select {
flex: 1;
min-width: 120px; /* O el mínimo ancho que desees */
margin: 0 5px;
}

.search-form label {
display: flex;
align-items: center;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.search-form input[type="submit"] {
margin-left: 10px;
}

.profile-icon {
    height: 20px; /* Ajusta la altura a la deseada */
    width: 20px;  /* Ajusta el ancho para mantener la proporción */
    vertical-align: middle;
}

        .profile-container {
            display: flex;
            width: 80%;
            margin: 2em auto;
            background-color: #fff;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            border-radius: 10px;
            overflow: hidden;
        }

        .sidebar {
            background-color: #f8f2e6;
            padding: 1em;
            width: 200px; /* Adjust width as necessary */
        }

        .nav-sidebar ul {
            list-style-type: none;
            padding: 0;
        }

        .nav-sidebar ul li a {
            display: block;
            padding: 10px;
            color: #222;
            text-decoration: none;
            background-color: #f8f2e6;
            transition: background-color 0.3s;
        }

        .nav-sidebar ul li a.active,
        .nav-sidebar ul li a:hover {
            background-color: #c5a88e;
            color: #fff;
        }

        .content {
            flex-grow: 1;
            padding: 1em;
            background: #fff; /* fondo blanco */
            padding: 20px;
            border-radius: 8px; /* bordes redondeados */
            box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* sombra suave */
        }

        .order-history h2 {
            margin-bottom: 20px;
        }

        .order-table {
            width: 100%;
        }

        .order-table-header {
            display: flex;
            font-weight: bold;
            border-bottom: 2px solid #000; /* línea debajo del encabezado */
        }

        .order-table-row {
            display: flex;
            border-bottom: 1px solid #ddd; /* líneas entre filas */
        }

        .order-header-item,
        .order-item {
            flex: 1;
            padding: 10px; /* espaciado interno */
        }

        /* Estilos para responsive */
        @media (max-width: 768px) {
            .order-table-header,
            .order-table-row {
                flex-direction: column;
                align-items: start;
            }

            .order-header-item,
            .order-item {
                flex: none;
                width: 100%;
            }
            .profile-container {
                flex-direction: column;
                width: 100%;
            }

            .sidebar {
                width: auto;
            }

            .content {
                order: -1;
            }
        }

        table {
            width: 100%;
            border-collapse: collapse;
        }

        table, th, td {
            border: 1px solid #ddd;
        }

        th, td {
            text-align: left;
            padding: 8px;
        }

        th {
            background-color: #c5a88e;
            color: white;
        }

        tr:nth-child(even) {
            background-color: #f2f2f2;
        }

        .sidebar ul li.active a {
            background-color: #000;
            color: #fff;
        }


        .user-data-form {
            max-width: 500px;
            margin: 20px auto;
        }

        .user-data-form .form-group {
            margin-bottom: 15px;
        }

        .user-data-form .form-group label {
            display: block;
            margin-bottom: 5px;
        }

        .user-data-form .form-group input {
            width: 100%;
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 5px;
        }

        .user-data-form .update-button {
            background-color: #222;
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
        }
        .order-card {
            display: flex;
            align-items: center;
            justify-content: space-between;
            border: 1px solid #ccc;
            padding: 15px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            margin-bottom: 15px;
            background-color: #fff;
        }

        .order-card-status {
            display: flex;
            align-items: center;
            color: #28a745; /* color verde para el estado de entregado */
            font-weight: bold;
            margin-right: 20px;
        }

        .order-status-icon {
            font-size: 24px; /* Ajusta el tamaño del ícono */
            margin-right: 10px;
        }

        .order-card-details {
            flex-grow: 1;
        }

.order-card-details span {
    display: block;
}

        .order-number, .order-total {
            display: block;
            font-weight: bold;
            color: #333;
        }

        .order-date {
            color: #666;
        }

        .order-card-image img {
            width: 50px; /* Ajusta el tamaño de la imagen */
            height: auto;
        }

        .orders-section h2 {
            color: #000;
            margin-bottom: 20px;
            text-align: center;
        }

        .orders-container {
            background: #fff;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        .order-details {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }

        .order-number {
            font-weight: bold;
            color: #000;
        }

        .order-date {
            color: #666;
            margin-top: 5px;
        }

        .order-total {
            color: #000;
            margin-top: 5px;
        }

        .order-status {
            display: flex;
            align-items: center;
        }

.order-status-text {
    /* Estilos comunes para el texto del estado */
    font-weight: bold;
    margin-right: 10px;
    padding: 2px 5px;
    border-radius: 5px;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.8em;
}

.order-status-text.delivered {
    background-color: #28a745; /* Verde para entregado */
}

.order-status-text.cancelled {
    background-color: #dc3545; /* Rojo para cancelado */
}

.order-status-text.sent {
    background-color: #007bff; /* Azul para enviado */
}

.order-status-text.pending {
    background-color: #ffc107; /* Amarillo para pendiente */
}

        .order-payment-status {
            color: #28a745; /* Green for paid status */
            margin-right: 10px;
        }

        .order-shipping-status {
            font-weight: bold;
            color: #28a745; /* Green for delivered status */
        }

        /* Estilos para responsive */
        @media (max-width: 768px) {
            .order-card {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .order-status {
                margin-top: 10px;
                width: 100%;
                justify-content: space-between;
            }
        }

        .order-card-images {
            display: flex;
            align-items: center;
            gap: 10px; /* Agrega un espacio de 10px entre las imágenes */
        }

        .order-card-image img {
            width: 80px; /* Ajusta el ancho de las imágenes */
            height: 80px; /* Establece una altura fija para todas las imágenes */
        }



main {
    padding: 2em;
    width: calc(100% - 40px); /* Resta los márgenes izquierdo y derecho */
    margin: 0 auto;
}


/* Estilos para dispositivos móviles */

 @media (max-width: 768px) {
            .order-table-header,
            .order-table-row {
                flex-direction: column;
                align-items: start;
            }

            .order-header-item,
            .order-item {
                flex: none;
                width: 100%;
            }
            .profile-container {
                flex-direction: column;
                width: 100%;
            }

            .sidebar {
                width: auto;
            }

            .content {
                order: -1;
            }
        }



/* General Admin Dashboard Styles */

/* Estilos para las tablas de gestión */
.table {
    width: 100%;
    margin-bottom: 1rem;
    background-color: #fff;
}

.table th,
.table td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
}

.table-hover tbody tr:hover {
    color: #212529;
    background-color: rgba(0, 0, 0, 0.075);
}

/* Estilos para mensajes de alerta */
.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

.alert-success {
    background-color: #dff0d8;
    color: #3c763d;
    border-color: #d6e9c6;
}

      .alert-success {
            color: #155724;
            background-color: #d4edda;
            border-color: #c3e6cb;
            padding: .75rem 1.25rem;
            margin-bottom: 1rem;
            border: 1px solid transparent;
            border-radius: .25rem;
        }

.alert-danger {
    background-color: #f2dede;
    color: #a94442;
    border-color: #ebccd1;
}

        .message {
            color: #d9534f;
            font-size: 14px;
            margin-bottom: 15px;
        }



/* Product detail*/

.product-detail-container {
            background-color: #fff;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            padding: 2em;
            margin: 2em auto;
            width: 80%;
            display: flex;
            flex-wrap: wrap;
            align-items: flex-start;
        }

        .product-image {
            flex: 1;
            text-align: center;
            padding: 1em;
        }

        .product-image img {
            max-width: 100%;
            height: auto;
            border: 1px solid #ddd;
            border-radius: 5px;
        }

        .product-details {
            flex: 2;
            padding: 1em;
        }

        .product-details h2 {
            color: #222;
            margin: 0.5em 0;
        }

        .product-details .price {
            color: black;
            font-weight: bold;
            margin: 0.5em 0;
        }

        .add-to-cart-button {
            background-color: #c5a88e;
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 1em;
            transition: background-color 0.3s ease;
            text-transform: uppercase;
            display: inline-block;
            margin: 20px 0;
        }

        .add-to-cart-button:hover {
            background-color: #a89680;
        }

        .quantity-input {
            padding: 5px;
            width: 50px;
            border: 1px solid #ddd;
            border-radius: 5px;
            margin-right: 10px;
            text-align: center;
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
            .product-detail-container {
                flex-direction: column;
            }

            .product-image, .product-details {
                width: 100%;
            }
        }


.container{
            margin-top: 5%;
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 5%;
        }

.reset-container, .register-container {
    background: #fff;
    padding: 40px;
    width: 300px; /* Adjust width to match */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin: auto;
}

.reset-container h2, .register-container h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 25px;
}


/* Input styles */
input[type=email], input[type=password], input[type=name] {
    width: calc(100% - 20px); /* Adjusted to match */
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 10px; /* Added to match */
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

/* Button styles */
.reset-container button, .register-container button {
    width: 100%;
    padding: 10px;
    margin-top: 20px; /* Adjusted to match */
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.reset-container button:hover, .register-container button:hover {
    background-color: #555;
}

/* Link styles */
.reset-container a, .register-container a {
    display: block;
    margin-top: 20px;
    color: #007bff;
    text-decoration: none;
}

.reset-container a:hover, .register-container a:hover {
    text-decoration: underline;
}


        .reset-container button {
            width: 100%;
            padding: 10px;
            margin-top: 10px;
            background-color: #333;
            color: #fff;
            border: none;
            border-radius: 3px;
            cursor: pointer;
        }

        .reset-container button:hover {
            background-color: #555;
        }


        .reset-container p {
            color: #666;
            font-size: 14px;
        }

        .reset-container a {
            display: block;
            margin-top: 20px;
            color: #007bff;
            text-decoration: none;
        }


        .register-container {
            background: #fff;
            padding: 40px;
            width: 350px;
            border-radius: 10px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            text-align: center;
        }

        .form-group {
            margin-bottom: 20px;
        }
	
	input[type=name]
        input[type=text],
        input[type=email],
        input[type=password] {
            padding: 10px;
            margin: 5px 0;
            border: 1px solid #ccc;
            border-radius: 5px;
            box-sizing: border-box;
        }

        .register-button {
            width: 100%;
            padding: 10px;
            background-color: #000;
            color: #fff;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
        }

        .register-button:hover {
            background-color: #555;
        }

        .register-footer a {
            color: #007bff;
            text-decoration: none;
        }

        .register-footer a:hover {
            text-decoration: underline;
        }


/* Estilos actualizados para centrar completamente el formulario de actualización del producto */
.update-product-form {
    width: 50%; /* o el ancho que prefieras */
    max-width: 500px; /* o el máximo ancho que prefieras */
    padding: 20px;
    margin: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background-color: #fff; /* Fondo blanco para el formulario */
    display: flex;
    flex-direction: column;
    align-items: center;

}


.update-product-form h2 {
    color: #333; /* Color oscuro para el encabezado */
    text-align: center; /* Alinear el título en el centro */
    margin-bottom: 20px; /* Espacio debajo del título */
}

.update-product-form form {
    display: flex;
    flex-direction: column; /* Diseño vertical organizado */
    align-items: center; /* Alinear elementos al centro */
}

/* Estilos de los campos de formulario */
.update-product-form input[type="text"],
.update-product-form input[type="number"],
.update-product-form textarea,
.update-product-form select {
    padding: 10px;
    margin-bottom: 15px; /* Espacio entre cada campo */
    border: 1px solid #ccc; /* Borde sutil */
    border-radius: 5px; /* Bordes redondeados para los campos */
    box-sizing: border-box; /* Incluir padding y borde en el ancho */
    width: 100%; /* Ancho completo para expandir en el contenedor */
}

/* Estilos del botón de envío */
.update-product-form input[type="submit"] {
    background-color: #c5a88e; /* Color elegante para el botón */
    color: blanco;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s; /* Transición suave para efecto de hover */
}

.update-product-form input[type="submit"]:hover {
    background-color: #a89680; /* Tono más oscuro al pasar el mouse */
}

/* Estilos para la imagen actual */
.update-product-form .current-image {
    border-radius: 5px; /* Esquinas redondeadas para la imagen */
    margin-bottom: 15px; /* Espacio debajo de la imagen */
}

/* Estilos para las etiquetas de los campos */
.update-product-form label {
    font-weight: bold; /* Etiquetas en negrita para claridad */
    margin-bottom: 5px; /* Espacio arriba de cada campo */
    text-align: left; /* Alineación a la izquierda para las etiquetas */
    width: 100%; /* Ancho completo para las etiquetas */
}


.form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Asegúrate de que ocupe el ancho disponible */
    max-width: 500px; /* O el ancho máximo que prefieras */
    margin: auto; /* Esto centrará el div si tiene un ancho máximo */
    padding: 20px; /* Añade un poco de espacio alrededor del contenido */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background-color: #fff; /* Fondo blanco para el contenedor */
}

.form-container h2 {
    margin-top: 0;
    margin-bottom: 20px; /* Espacio debajo del título */
}


/* Ajustes de Diseño Responsivo */
@media (max-width: 768px) {
    .update-product-form {
        width: 80%; /* Ancho más grande en pantallas pequeñas */
        padding: 10px;
    }
}

