/* PRODUCT CARD STYLES */
.product-card {
    border: 1px solid #dee2e6; /* Light gray border */
    border-radius: 5px; /* Rounded corners */
    padding: 20px;
    margin-bottom: 20px;
    display: flex; /* Use flexbox for layout */
    align-items: center; /* Center items vertically */
    justify-content: space-between; /* Space out items */
    transition: all 0.3s ease; /* Smooth hover effect */
}

.product-card:hover {
    border: 1px solid #acacac; /* Slightly thicker border on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add subtle shadow */
}

/* PRODUCT IMAGE */
.product-card img {
    max-width: 250px; /* Set max width for image */
    height: auto; /* Maintain aspect ratio */
    margin-right: 20px; /* Add spacing between image and details */
}

/* PRODUCT DETAILS */
.product-details {
    flex: 1; /* Take remaining space */
}

.product-details h5 a {
    font-size: 1.2rem;
    font-weight: bold;
    color: #252525;
    text-decoration: none;
    transition: color 0.3s ease; /* Smooth color transition on hover */
}

.product-details h5 a:hover {
    color: #007bff; /* Distinct blue on hover */
}

.product-details .spec {
    font-weight: 700; /* Bold text */
    color: #444444; /* Darker gray for better contrast */
}

/* PRICE AND BUTTON */
.price-and-button {
    display: flex;
    flex-direction: column; /* Stack vertically */
    align-items: flex-end; /* Align to the right */
    text-align: right; /* Align text to the right */
}

.price-and-button .price {
    font-weight: 700;
    font-size: 1.3rem;
    margin-top: 10px;
}

.price-and-button .price .original-price {
    text-decoration: line-through; /* Strike-through original price */
    color: #6c757d; /* Muted color for original price */
    margin-right: 10px;
}

.product-card:hover .btn-primary:hover {
    background-color: #28a745; /* Green button on hover */
    border-color: #28a745; /* Match border color */
}

/* SORT CONTAINER */
.sort-container {
    display: flex; /* Use flexbox for layout */
    align-items: center; /* Vertically align items */
    white-space: nowrap; /* Prevent text wrapping */
    overflow: hidden; /* Hide overflow */
}

.sort-container label {
    margin-right: 10px; /* Add spacing between label and dropdown */
}

/* PRICE COLUMNS */
.price-container {
    display: flex; /* Default layout for desktop */
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

.price-per-gb-column, .price-column {
    flex: 1;
    max-width: 100px; /* Limit column width */
    text-align: center;
}

.price-per-gb {
    font-size: 0.9rem;
}

/* IMAGE COLUMN */
.image-column {
    flex: 0 0 150px;
    max-width: 150px;
    margin-right: 0.5rem;
}

.image-column img {
    max-width: 100%;
    height: auto;
}

/* DETAILS COLUMN */
.details-column {
    flex: 2;
    max-width: 450px;
    overflow-wrap: break-word;
}

.card-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.5rem;
}

.card-text {
    margin-bottom: 0;
}

/* PRICE CONTAINER */
.price-container {
    flex: 1;
    max-width: 200px;
    display: flex;
    flex-wrap: wrap;
}

.price-per-gb-column,
.price-column {
    flex: 1;
    text-align: center;
    margin-bottom: 0.5rem;
}

.price {
    font-weight: bold;
    font-size: 1.25rem;
}

.add-to-cart {
    margin-top: 0.5rem;
}


/* RESPONSIVE STYLES */
@media (max-width: 767px) { /* Mobile screens */
    .product-card {
        flex-direction: column; /* Stack items vertically */
        align-items: flex-start; /* Align items to the top */
    }

    .product-card img {
        max-width: 100%; /* Full width image on mobile */
        margin-right: 0; /* Reset margin */
    }
    
    .image-column {
        max-width: 100%;
    }

    .price-and-button {
        align-self: stretch; /* Stretch to container width */
        text-align: left; /* Align text to the left */
    }

    .price-container {
        /* flex-direction: column; /* Stack price and details */
        align-items: flex-start; /* Align text to the left */
        margin-top: 2rem; /* Add spacing on mobile */
    }

    .price-per-gb-column {
        margin-right:1rem;
    }

    .price-column .add-to-cart {
        margin-top: 10px; /* Add spacing for better UX */
    }

    .product-details.details-column {
        max-width: 260px !important; /* Limit width on mobile */
    }
}

@media (max-width: 1400px) { /* Desktop screens */

    .product-details.details-column {
        max-width: 300px; /* Reset width for tablets */
    }

}

/* Navbar Custom Styles */


.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.navbar-nav .nav-link {
    font-size: 1rem;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
}

.navbar-nav .nav-link:hover {
    color: #0056b3;
}

.dropdown-menu {
    border-radius: 5px;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Ajustes para el logo y texto del navbar */
.navbar-brand i {
    font-size: 2rem; /* Tamaño del icono de memoria */
}

.navbar-brand strong {
    font-size: 1.5rem;
    font-weight: bold;
}

.navbar-brand small {
    font-size: 0.85rem;
    color: #6c757d; /* Color de texto 'muted' */
}

/* Para hacer los textos de las especificaciones más bonitos */
.card-title {
    font-weight: bold;
    font-size: 1.2rem;
}

.card-text {
    font-size: 1rem;
    color: #495057; /* Gris oscuro para el texto de las especificaciones */
}

.sidebar-title-card{
    overflow: visible;
    white-space: break-spaces;
    font-size:1em;

}