/* General Styles */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
	   font-family: 'Miriam Libre', sans-serif; /* Aplica la fuente Miriam Libre */
}

body {
    background-color: #f7fafc; /* bg-gray-100 */
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Asegura que el body ocupa toda la pantalla */
}

main {
    flex: 1; /* Permite que el contenido principal crezca y ocupe el espacio disponible */
}

/* Header Styles */
header {
    background-color: #000; /* bg-black */
    color: #fff; /* text-white */
    padding: 1rem; /* p-4 */
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row; /* flex-header */
    flex-wrap: wrap;
    position: relative;
}

header .text-4xl {
    font-size: 2.25rem; /* text-4xl */
    font-weight: 800; /* font-bold */
    color: #f97316; /* text-orange-500 */
}

header .relative {
    position: relative;
    width: 100%;
}

header .w-full {
    width: 100%;
}

header .p-2 {
    padding: 0.5rem;
}

header .absolute {
    position: absolute;
}

header .mt-2 {
    margin-top: 0.5rem;
}

header .mr-2 {
    margin-right: 0.5rem;
}

header .space-x-4 > :not(:last-child) {
    margin-right: 1rem;
}

header .flex-grow {
    flex-grow: 1;
    margin: 0 1rem; /* mx-4 */
}

header .header-item {
    background-color: #fbbf24;
    padding: 10px;
    text-align: center;
    border-radius: 10px; /* Added for rounded corners */
    display: flex;
    flex-direction: column;
    align-items: center;
}

header .header-item i {
    display: block;
    font-size: 1.5rem;
}

/* Dropdown menu for mobile */
.mobile-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: #000;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 10;
}

.mobile-menu a {
    width: 100%;
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #fbbf24;
    color: white;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu-toggle {
    display: none;
}

/* Form Container Styles (Shared by registration and login) */
.registration-container {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 5px;
}

.registration-container h2 {
    background-color: #fbbf24;
    color: black;
    padding: 10px;
    text-align: center;
}

.registration-container input[type="text"],
.registration-container input[type="email"],
.registration-container input[type="password"],
.registration-container input[type="number"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
}

.registration-container p {
    color: #fbbf24;
    text-align: center;
    margin: 10px 0;
}

.registration-container .register-btn,
.registration-container .login-btn {
    width: 100%;
    background-color: #fbbf24;
    color: black;
    padding: 10px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
}

.registration-container .login-link,
.registration-container .forgot-link {
    text-align: center;
    margin: 10px 0;
    color: white;
    cursor: pointer;
}

/* Footer Styles */
footer {
    background-color: #000; /* bg-black */
    color: #fff; /* text-white */
    padding: 1rem; /* p-4 */
    text-align: center; /* text-center */
    margin-top: auto; /* Empuja el footer al final de la página */
}

footer .text-xl {
    font-size: 1.25rem; /* text-xl */
    font-weight: 700; /* font-bold */
}

footer .mt-2 {
    margin-top: 0.5rem;
}

/* Product Card Styles */
.product-card {
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    background-color: #fff;
    margin: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    background-color: #f3f3f3; /* Color de fondo para contraste */
    height: 200px; /* Ajusta la altura deseada */
    width: 100%; /* Asegura que ocupe el ancho completo */
    display: flex; /* Permite centrar la imagen */
    align-items: center; /* Centrar verticalmente */
    justify-content: center; /* Centrar horizontalmente */
    overflow: hidden; /* Evita que la imagen se salga */
    border-radius: 10px; /* Coincide con las esquinas redondeadas de la tarjeta */
}

.product-image img {
    max-width: 100%; /* Limita el ancho máximo de la imagen */
    max-height: 100%; /* Limita la altura máxima de la imagen */
    object-fit: cover; /* Asegura que la imagen cubra todo el contenedor */
    border-radius: 10px; /* Coincide con el borde redondeado */
}

.product-card .product-info {
    text-align: center;
    width: 100%;
}

.product-card .product-info .buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.product-card .product-info .buttons button {
    padding: 5px 10px;
    border-radius: 5px;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 5px;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
        padding: 0 40px;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .mobile-menu-toggle {
        display: block;
        background-color: #fbbf24;
        padding: 10px;
        border-radius: 10px;
        cursor: pointer;
    }

    .mobile-menu {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .mobile-menu a {
        padding: 10px;
        text-align: left;
    }

    .mobile-menu-toggle.active + .mobile-menu {
        display: flex;
    }

    header .flex-grow {
        order: 2;
        margin: 1rem 0; /* Added margin for spacing */
        width: 100%; /* Increase width of the search bar */
    }

    .header-items {
        display: none; /* Hide header items in mobile view */
    }
}

