/* Custom Fonts */

.norwester {
    font-family: "Norwester", sans-serif;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.05em;
}

.divebar-vintage {
    font-family: divebarVintage, sans-serif;
    font-weight: 100;
    font-style: normal;
    letter-spacing: unset !important;
}

/* Custom Search Styles */

.search-container {
    background-color: white;
    border-radius: 50px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding-right: 10px;
    max-width: 500px;
    width: 100%;
    transition: all 0.3s ease;
}

.search-container:hover {
    box-shadow: 0 7px 17px rgba(0, 0, 0, 0.15);
}

.form-control.search-input {
    border: none;
    background: transparent;
    padding-left: 20px;
    font-size: 1rem;
    height: 50px;
}

.form-control.search-input:focus {
    box-shadow: none;
    outline: none;
}

.btn-search {
    background-color: #007F8B;
    color: white;
    border-radius: 50px;
    border: none;
    font-size: 0.7rem;
    transition: all 0.3s ease;
}

.btn-search:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.search-icon {
    color: #6c757d;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}

/* Custom Category Card Styles */

.category-card {
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: pointer;
}

.category-image {
    transition: all 0.5s ease;
}

.category-card:hover .category-image {
    transform: scale(1.05);
}

.category-card.active {
    background-color: #007F8B !important;
    color: white;
}

/* Custom Radio */

label.radio {
    cursor: pointer;
    height: 100%;
    width: 100%;
    text-align: center;
    font-size: 0.8em;
}

label.radio.disabled {
    cursor: not-allowed;
}

label.radio input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

label.radio .radio {
    padding: 7px 7px 7px 7px;
    border: 1px solid #007F8B;
    color: #007F8B;
    display: inline-block;
    /*border-radius: 10px;*/
    text-transform: uppercase;
    height: 100%;
    width: 100%;
}

label.radio .radio.disabled {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
}

label.radio .radio-day {
    padding: 15px 7px 15px 7px;
}

.numberday {
    font-size: 35px;
}
. weekday {
    font-size: 10px;
}

label.radio input:checked + span, label.radio input:checked + p {
    color: #fff;
    background-color: #007F8B;
}

#help-text-pickup-address {
    letter-spacing: -0.05em;
    line-height: 1.2em;
    font-weight: 600;
    font-size: 0.9em;
    padding-top: 5px;
    margin: 0;
}

.was-validated label.radio input:invalid + span {
    border: 1px solid #dc3545;
}

/* Custom Buttons and Typo*/

.pepecolor {
    color: #007F8B;
}

.bg-pepecolor {
    background-color: #007F8B;
}

.border-pepecolor {
    border-color: #007F8B !important;
}

.border-bottom-pepecolor {
    border-bottom: 1px solid #007F8B !important;
}

.pepeshadow {
    text-shadow: 0.05px 0.05em #000;
}

.pepeshadow-2 {
    text-shadow: 0.03em 0.03em #000;
}


.form-check-input:checked {
    background-color: #007F8B !important;
    border-color: #007F8B !important;
}

/* Override init-tel */

.iti {
    width: 100%;
}

/* Override forms */

.form-control {
    border: unset;
    border-radius: unset;
    border-bottom: solid 1px #007F8B;
}

.form-control:focus {
    box-shadow: 0 -0 0 0.1rem #007F8B;
}

/* Products card in category pages */

.product-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 colonna su mobile */
    gap: 2rem;
    padding: 0 1rem; /* Aggiunto padding laterale per mobile */
}

.product-card-custom {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: row; /* Image on left, info on right */
    overflow: hidden; /* To clip children corners */
}

@media (hover: hover) {
    .product-card-custom:hover {
        transform: translateY(-10px);
        box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.45);
    }
}

.product-card-custom .product-image-container {
    position: relative;
    flex: 0 0 150px; /* Fixed width for the image */
    overflow: hidden;
}

.price-ribbon {
    position: absolute;
    top: 15px;
    right: -5px;
    background-color: #007F8B;
    color: white;
    padding: 4px 10px;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
    font-weight: bold;
    font-family: "Norwester", sans-serif;
    box-shadow: -3px 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.price-ribbon::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    border-top: 5px solid #005f6b;
    border-right: 5px solid transparent;
}

.product-card-custom .product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sezione INFO compattata */
.product-card-custom .product-info {
    padding: 1rem; /* Padding ridotto */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card-custom .product-name {
    font-family: "Norwester", sans-serif;
    color: #007F8B;
    font-size: 1.2rem; /* Dimensione font ridotta */
    margin-bottom: 0.25rem; /* Margine inferiore ridotto */
}

.product-card-custom .product-ingredients {
    font-size: 0.75rem; /* Dimensione font ridotta */
    color: #555;
    margin-bottom: 0.75rem; /* Margine inferiore ridotto */
    flex-grow: 1;
    /* min-height rimosso per compattare */
}

.product-card-custom .product-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: auto;
}

.product-card-custom .btn-add-to-cart, .btn-pepecolor {
    background-color: #007F8B;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1rem; /* Padding ridotto per un pulsante più piccolo */
    font-family: "Norwester", sans-serif;
    letter-spacing: 0.05em;
    font-size: 0.9rem; /* Dimensione font leggermente ridotta */
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
}

.product-card-custom .btn-add-to-cart:hover, .btn-pepecolor:hover {
    color: white;
    background-color: #005f6b;
    transform: scale(1.05);
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0;
    }
}

@media (min-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}