.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.products-grid {
    padding: 2rem 1rem;
    font-family: 'Segoe UI', sans-serif;
}

.product-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-info h2 {
    margin-top: 20px;
    font-size: 1.8rem;
}

h1{
    margin-top: 40px;
}

h2{
    margin-top: 40px;
}

.product-actions {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.action {
    text-decoration: none;
    padding: 0.5rem 1rem;
    background-color: #eee;
    color: #333;
    border-radius: 4px;
    font-size: 15px
}

.action:hover {
    background-color: #ddd;
}

.action.primary {
    background-color: #007bff;
    color: #fff;
}

.action.primary:hover {
    background-color: #0056b3;
}

.pagination-footer {
    margin-top: 3rem;
    text-align: center;
}

.pagination-nav {
    margin-bottom: 1rem;
}

.pagination-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.pagination-list li {
    display: inline;
}

.pagination-list a {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: #f2f2f2;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
}

.pagination-list a:hover {
    background: #ddd;
}

.pagination-info {
    font-size: 0.9rem;
    color: #666;
}


footer {
    margin-top: 3rem;
    padding: 1rem 0;
    background: #f9f9f9;
    border-top: 1px solid #ddd;
}

.footer-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

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

/* Contenitore ricerca */
.search-container {
    background-color: #DCDCDC;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

/* Form di ricerca in linea */
.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Input di ricerca */
.search-input {
   
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    
}

/* Bottone ricerca */
.search-button {
    padding: 8px 16px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

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

/* Lista categorie */
.categories-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Singolo elemento categoria */
.category-item {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    width: 180px;
    text-align: center;
}

/* Immagine categoria */
.category-image {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Placeholder "No Image" */
.category-no-image {
    height: 100px;
    line-height: 100px;
    color: #999;
    border: 1px solid #ddd;
    border-radius: 6px;
    user-select: none;
}


/* Container form ricerca nel menu */
.top-nav-search {
    display: inline-block;
    vertical-align: middle;
    margin-right: 20px;
}

/* Input ricerca */
.top-nav-search .search-input {
    padding: 5px 10px;
    font-size: 0.9rem;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    width: 180px;
    transition: border-color 0.3s ease;
}

.top-nav-search .search-input:focus {
    border-color: #007BFF;
    outline: none;
}

/* Bottone submit ricerca */

/* Sistema display inline per nav */
.top-nav-title, .top-nav-search, .top-nav-links {
    display: inline-block;
    vertical-align: middle;
    margin-top: 10px;
}

.top-nav {
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
}

.top-nav a {
    margin-left: 15px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.top-nav a:hover {
    color: #007BFF;
}

.top-nav-search .search-button {
    background-color: transparent;
    border: none;
    color: #555;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0 6px;
    line-height: 1;
    transition: color 0.2s ease;
}

.top-nav-search .search-button:hover {
    color: #007BFF;
}

.cart-container {
    max-width: 600px;
    margin: 2rem auto;
    background: #fffef5;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    font-family: sans-serif;
}

.cart-container h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.cart-list {
    list-style: none;
    padding: 0;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #ddd;
}

.item-name {
    font-weight: bold;
}

.item-price {
    color: #333;
    margin-right: 1rem;
}

.remove-button {
    background-color: transparent;
    border: none;
    color: #cc0000;
    font-weight: bold;
    cursor: pointer;
    text-decoration: underline;
}

.remove-button:hover {
    color: #ff0000;
}

.cart-actions {
    text-align: center;
    margin-top: 2rem;
}

.checkout-button {
    background-color: #f0c14b;
    border: 1px solid #a88734;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    color: #111;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.2s;
}

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

.cart-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.cart-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cart-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: relative;
}

.cart-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.item-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
}

.item-quantity,
.item-price,
.item-subtotal {
    display: block;
    color: #666;
    margin-top: 0.3rem;
    font-size: 0.95rem;
}

.remove-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #ff4d4f;
    border: none;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.remove-button:hover {
    background-color: #d9363e;
}

.cart-total {
    font-size: 1.3rem;
    font-weight: 700;
    color: #222;
    margin-top: 1.5rem;
    text-align: right;
}

.cart-actions {
    margin-top: 1.5rem;
    text-align: right;
}

.checkout-button {
    background-color: #f0c14b;
    color: #111;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

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

.users.form.content {
    margin-top: 40px;
}
