/* Winelockr Main Stylesheet
   Based on the mood board design
   Created: 2023
*/

/* Import Google Fonts - Plus Jakarta Sans for all text */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@200;300;400;500;600;700;800&display=swap');

/* Variables */
:root {
    /* Primary Colors */
    --wine-red: #8B0000;
    --wine-dark: #4A0000;
    --wine-light: #C07F7F;

    /* Secondary Colors */
    --cream: #F5F5DC;
    --gold: #D4AF37;
    --charcoal: #36454F;
    --purple: #800080;

    /* Neutral Colors */
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --medium-gray: #E9ECEF;
    --dark-gray: #343A40;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;

    /* Border Radius */
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 1rem;

    /* Box Shadow */
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.15);
}

/* Base Styles */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    padding-top: 70px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--light-gray);
    color: var(--charcoal);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    color: #000000;
}

a {
    color: var(--wine-red);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--wine-dark);
    text-decoration: underline;
}

/* Navbar */
.navbar {
    background-color: var(--wine-red) !important;
    box-shadow: var(--box-shadow);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: var(--white) !important;
}

.navbar-brand img {
    height: 30px;
    margin-right: var(--spacing-sm);
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--cream);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: var(--gold);
}

.logo-navbar img {
    scale: 1;
    transition: all 0.3s ease;
}

.logo-navbar img:hover {
    scale: 1.3;
    transition: all 0.3s ease;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius-md);
}

.dropdown-item:hover {
    background-color: var(--medium-gray);
}

/* Sidebar */
.sidebar {
    min-height: calc(100vh - 70px);
    background-color: var(--white);
    padding: var(--spacing-lg) 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.1);
}

.sidebar .nav-link {
    color: var(--charcoal);
    padding: var(--spacing-md) var(--spacing-lg);
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.sidebar .nav-link.active {
    background-color: var(--light-gray);
    color: var(--wine-red);
    font-weight: 600;
    border-left: 3px solid var(--wine-red);
}

.sidebar .nav-link:hover {
    background-color: var(--light-gray);
    color: var(--wine-red);
}

.sidebar .nav-link i {
    margin-right: var(--spacing-sm);
    color: var(--wine-red);
}

/* Main Content */
.main-content {
    padding: var(--spacing-lg);
    flex: 1;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: var(--spacing-lg);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.card-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--medium-gray);
    padding: var(--spacing-md) var(--spacing-lg);
    font-weight: 600;
}

.card-body {
    padding: var(--spacing-lg);
}

.card-dashboard {
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
    border-top: 4px solid var(--wine-red);
}

.card-dashboard:hover {
    transform: translateY(-5px);
}

.card-dashboard .card-body {
    padding: var(--spacing-lg);
}

.card-dashboard .card-title {
    color: var(--wine-red);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.card-dashboard .card-text {
    color: var(--charcoal);
}

.card-dashboard .card-icon {
    font-size: 2.5rem;
    color: var(--wine-red);
    margin-bottom: var(--spacing-md);
}

/* Buttons */
.btn {
    border-radius: var(--border-radius-md);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--wine-red);
    border-color: var(--wine-red);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--wine-dark);
    border-color: var(--wine-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--charcoal);
    border-color: var(--charcoal);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--dark-gray);
    border-color: var(--dark-gray);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--wine-red);
    border-color: var(--wine-red);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--wine-red);
    color: var(--white);
    transform: translateY(-2px);
}

/* Forms */
.form-control {
    border-radius: var(--border-radius-md);
    border: 1px solid var(--medium-gray);
    padding: var(--spacing-md);
}

.form-control:focus {
    border-color: var(--wine-light);
    box-shadow: 0 0 0 0.25rem rgba(139, 0, 0, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--charcoal);
}

.form-select {
    border-radius: var(--border-radius-md);
    border: 1px solid var(--medium-gray);
    padding: var(--spacing-md);
}

.form-select:focus {
    border-color: var(--wine-light);
    box-shadow: 0 0 0 0.25rem rgba(139, 0, 0, 0.25);
}

/* Tables */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    background-color: var(--light-gray);
    color: var(--wine-dark);
    font-weight: 600;
    border-bottom: 2px solid var(--wine-red);
}

.table td {
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(139, 0, 0, 0.05);
}

/* Alerts */
.alert {
    border-radius: var(--border-radius-md);
    border: none;
    box-shadow: var(--box-shadow);
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Footer */
.footer {
    background-color: var(--charcoal);
    color: var(--white);
    padding: var(--spacing-lg) 0;
    text-align: center;
    margin-top: auto;
}

.footer a {
    color: var(--cream);
}

.footer a:hover {
    color: var(--gold);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 56px;
        bottom: 0;
        left: 0;
        z-index: 100;
        padding: 0;
        box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.1);
        width: 100%;
        max-width: 100%;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        padding: var(--spacing-md);
    }
}

/* Custom Utility Classes */
.text-purple {
    color: var(--purple) !important;
}

.text-teal {
    color: #20c997 !important;
}

/* Additional Sidebar Styles for Bootstrap 5 */
@media (max-width: 767.98px) {
    #sidebarMenu {
        position: fixed;
        top: 56px;
        bottom: 0;
        left: 0;
        z-index: 1000;
        width: 80%;
        max-width: 300px;
        overflow-y: auto;
        background-color: var(--white);
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

    #sidebarMenu.show {
        transform: translateX(0);
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    }

    .main-content {
        width: 100%;
    }
}

.round {
    border-radius: 50% !important;
}

.flex-row-to-column {
    display: flex;
    flex-direction: row;
}

.btn-vuoto {
    background-color: transparent;
    border: 3px solid #E13761;
    color: #E13761;
    border-radius: 40px;
    padding: 8px 16px;
    font-weight: 700;
}

.btn-vuoto:hover {
    background-color: #E13761;
    color: white;
    text-decoration: none;
}

.font-heading-XXL {
    font-size: 80px;
    line-height: 100%;

    font-weight: bolder;
}

.font-heading-XL {
    font-size: 60px;
    line-height: 72px;

    font-weight: bold;
}

.font-heading-L {
    font-size: 40px;
    line-height: 48px;

}

.font-heading-M {
    font-size: 24px;
    line-height: 32px;

}

.font-heading-S {
    font-size: 18px;
    line-height: 24px;

}

.font-heading-XS {
    font-size: 14px;
    line-height: 20px;
    font-weight: bold;
}

.font-paragraph-L {
    font-size: 18px;
    line-height: 24px;
}

.font-paragraph-M {
    font-size: 16px;
    line-height: 24px;
}

.font-paragraph-S {
    font-size: 14px;
    line-height: 24px;
}

.btn-pieno {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 17px 41px;
    background: #E13761;
    color: #ffffff;
    border: none;
    border-radius: 40px;
    width: fit-content;
}

.domande-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 60px 20px;
    background: #4B0619;
    color: #ffffff;
    border: none;
    border-radius: 56px;
}

.footer {
    background: #151213;
    padding: 40px 0 20px 0;
    padding-inline: 10px;
    color: #fff;
    font-family: 'Inter', Arial, sans-serif;
}

.imgdesk {
    display: flex;
}

.imgcell {
    display: none;
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
    text-align: left;
}

.footer-col {
    min-width: 220px;
    flex: 1;
}

.footer-main {
    flex: 2;
    min-width: 415px;
    max-width: 550px;
}

.footer-logo {
    width: 120px;
    margin-bottom: 10px;
}

.footer-desc {
    font-size: 1.12rem;
    margin: 0;
    color: #dadada;
    font-weight: 400;
}

.footer-title {
    color: #D45877;
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 18px;
    text-transform: uppercase;
    font-weight: 500;
}

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

.footer-list li {
    margin-bottom: 10px;
}

.footer-list a {
    color: #fff;
    text-decoration: none;
    font-size: 1.12rem;
    font-weight: 400;
    transition: color 0.2s;
}

.footer-list a:hover {
    color: #D45877;
}

.collapse-menu-button {
    background: none;
    border: none;
}

.wine-slider-wrapper {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    padding: 20px 0;
    margin: 0 -15px;
    padding-left: 15px;
    padding-right: 15px;
    scrollbar-width: thin;
    scrollbar-color: #E13761 transparent;
}

.wine-slider-wrapper::-webkit-scrollbar {
    height: 8px;
}

.wine-slider-wrapper::-webkit-scrollbar-track {
    background: rgba(225, 55, 97, 0.1);
    border-radius: 10px;
}

.wine-slider-wrapper::-webkit-scrollbar-thumb {
    background: #E13761;
    border-radius: 10px;
    transition: background 0.3s ease;
}

.wine-slider-wrapper::-webkit-scrollbar-thumb:hover {
    background: #c72d51;
}

.wine-slider-wrapper.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.wine-slider-wrapper.dragging .wine-card-inner {
    pointer-events: none;
}

.wine-slider {
    display: flex;
    gap: 2rem;
    width: max-content;
    padding-bottom: 10px;
    /* prevent selection for copy */
    user-select: none;
}

.wine-card {
    flex: 0 0 300px;
    min-width: 300px;
    max-width: 300px;
}

.wine-card-inner {
    background: white;
    border-radius: 40px;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    transition: all 0.3s ease;
    gap: 10px;
}

.wine-card-inner:hover {
    transform: translateY(-8px);
}

.wine-image-container {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wine-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.wine-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.wine-name {
    color: #000000;
    font-weight: 700;
    margin-bottom: 0.5rem;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wine-producer {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.btn-wine-detail {
    background: #E13761;
    color: white;
    border: none;
    border-radius: 40px;
    padding: 12px 28px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(225, 55, 97, 0.2);
}

.btn-wine-detail:hover {
    background: #c72d51;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 55, 97, 0.35);
}

.btn-wine-detail:active {
    transform: translateY(0);
}

.number-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: #E13761;
    color: white;
    font-weight: bold;
    font-size: 2rem;
}

.step-img {
    width: 100%;
    max-width: 388px;
}

.card-guida {
    display: flex;
    flex-direction: row;
    padding: 40px;
    gap: 32px;
    background-color: #FFF1F3;
    border-radius: 32px;
    max-width: 1020px;
}

.card-guida h2 {
    color: #861536;
    font-weight: bold;
}

.accordion-button::after {
    display: none !important;
}

.faq-icon {
    display: inline-flex;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-left: auto;
    font-size: 20px;
    font-weight: bold;
    border: 1px solid #ccc;
    border-radius: 50%;
    background: #fff;
    color: #c1121f;
    transition: all 0.2s;
    flex-shrink: 0;
}

.accordion-button.collapsed {
    font-weight: bold;
}

.accordion-button.collapsed .faq-icon {
    background: #fff;
    border-color: #ccc;
    color: #c1121f;
}

.accordion-button:not(.collapsed) {
    background: #ffffff;
    color: #000000;
    font-weight: bold;
}

.accordion-button:not(.collapsed) .faq-icon {
    background: #70001a;
    border-color: #70001a;
    color: #fff;
}

.faq-icon::before {
    content: "+";
    line-height: 1;
    transform: rotate(0deg);
    transition: transform 0.5s;
}

.accordion-button:not(.collapsed) .faq-icon::before {
    transform: rotate(135deg);
    transition: transform 0.5s;
}

/* Rimuovi l'ombra e il background default in focus */
.accordion-button:focus {
    box-shadow: none;
}

.accordion-body {
    background-color: #FBF5F6;
}

.btn-selezioni {
    background: transparent;
    color: #E13761;
    border: solid 3px #E13761;
    border-radius: 40px;
    padding: 12px 28px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.txtor {
    color: #861536;
}

@media screen and (max-width: 1000px) {

    .imgdesk {
        display: none !important;
    }

    .imgcell {
        display: block !important;
    }

    .mobile-menu {
        background: #fff;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
        padding: 1rem 2rem;
        z-index: 100;
        flex-direction: column;
        gap: 1.2rem;
        display: flex;
        align-items: flex-start;
    }

    .flex-row-to-column {
        flex-direction: column;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }

    .footer-main,
    .footer-col {
        min-width: unset;
        margin-right: 0;
    }

    .font-hero {
        font-size: 40px;
        line-height: 48px;
    }

    .font-heading-XXL {
        font-size: 48px;
        line-height: 56px;
    }

    .font-heading-XL {
        font-size: 32px;
        line-height: 40px;
    }

    .font-heading-L {
        font-size: 24px;
        line-height: 32px;
    }

    .font-heading-M {
        font-size: 20px;
        line-height: 32px;
    }

    .font-heading-S {
        font-size: 16px;
        line-height: 24px;
    }

    .font-paragraph-XS {
        font-size: 14px;
        line-height: 20px;
    }

    .font-paragraph-L {
        font-size: 16px;
        line-height: 24px;
    }

    .font-paragraph-M {
        font-size: 14px;
        line-height: 20px;
    }

    .font-paragraph-S {
        font-size: 12px;
        line-height: 20px;
    }

    .font-label {
        font-size: 14px;
        line-height: 20px;
    }

    .wine-slider-wrapper {
        padding-left: 20px;
        padding-right: 20px;
        margin: 0 -20px;
    }

    .wine-card {
        flex: 0 0 260px;
        min-width: 260px;
        max-width: 260px;
    }

    .wine-card-inner {
        padding: 1.5rem;
    }

    .wine-image-container {
        height: 180px;
    }

    .wine-name {
        font-size: 1rem;
        min-height: 2rem;
    }

    .wine-producer {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .btn-wine-detail {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .card-guida {
        flex-direction: column;
        padding: 20px;
        gap: 16px;
    }

    .card-guida .number-container {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .card-guida img {
        width: 100%;
        max-width: 300px;
    }

}

/* Vini.php */
.wines-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-box {
    position: relative;
    width: 300px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #6d0019;
    box-shadow: 0 0 0 3px rgba(109, 0, 25, 0.1);
}

.filters-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.sort-dropdown {
    position: relative;
}

.sort-btn {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.sort-btn:hover {
    background: #f0f0f0;
    border-color: #d0d0d0;
}

.sort-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #F7F4F4;
    border: 1px solid #1403070F;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 230px;
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;

}

.sort-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.sort-option {
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.sort-option:hover {
    background: #eaeaea;
    border-radius: 8px;
}

.sort-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    background-color: white;
}

.sort-option input[type="radio"]:checked {
    border-color: #FF5162;
}

.sort-option input[type="radio"]:checked::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #FF5162;
    border-radius: 50%;
}

.sort-option label {
    cursor: pointer;
    flex: 1;
    margin: 0;
    user-select: none;
}

.active-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex: 1;
}

.filter-pill {
    background: #861536;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-pill i {
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.filter-pill i:hover {
    transform: scale(1.2);
}

.filter-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-btn-wrapper {
    position: relative;
}

.filter-btn {
    background: white;
    border: 2px solid #6d0019;
    background-color: #6d0019;
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn.sort-btn {
    border: 2px solid #ECE3E3;
    background: #ECE3E3;
    color: #333;
}

.filter-btn:hover {
    background: white;
    color: #6d0019;
}

.filter-btn.sort-btn:hover {
    background: #b6b6b6;
    border-color: #b6b6b6;
    color: #333;
}

.wines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.wine-card-item {
    background: white;
    border: 1px solid #14030733;
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.wine-card-item:hover {
    transform: translateY(-4px);
}

.wine-card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 12px;
}

.wine-image-wrapper {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(225, 55, 97, 0.3) 30%, transparent 65%);
    border-radius: 12px;
}

.wine-bottle-image {
    max-width: 80%;
    max-height: 100%;
    object-fit: contain;
}

.wine-details {
    text-align: left;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
}

.wine-title {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0;
}

.wine-producer {
    color: #1403077A;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0;
}

.wine-specs {
    display: flex;
    justify-content: flex-start;
    gap: 4px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #000000;
    align-items: center;
}

.wine-specs span {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    border-radius: 40px;
    background-color: #F0EDEE;
    color: #000000;
    font-weight: 500;
    padding: 6px 10px;
    text-align: left;
}

.wine-buy-btn {
    width: 100%;
    background: #E13761;
    color: white;
    border: none;
    border-radius: 40px;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: auto;
    margin-bottom: 12px;
}

a.wine-buy-btn:hover,
button.wine-buy-btn:hover {
    background: #c72d51;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(225, 55, 97, 0.3);
}

a.wine-buy-btn,
button.wine-buy-btn {
    cursor: pointer;
}

.no-wines {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #999;
    font-size: 1.1rem;
}

/* Modal filtro */
.filter-modal {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    background: #F7F4F4;
    border: 1px solid #1403070F;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10000;
    min-width: 230px;
    opacity: 0;
    pointer-events: none;
    padding: 20px;
}

.filter-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.filter-content {
    width: 100%;
    max-height: 70vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: visible;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e8e8e8;
}

.filter-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #000;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
    padding: 0.5rem;
    line-height: 1;
}

.close-modal:hover {
    color: #000;
}

.price-range-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    gap: 14px;
}

.price-range-display-value {
    background-color: white;
    color: #000000;
    border: 1px solid #1403071F;
    border-radius: 14px;
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    gap: 4px;
}

.price-range-display-value input[type="number"] {
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    width: 60px;
    outline: none;
    color: #000;
}

.price-range-display-value input[type="number"]::-webkit-inner-spin-button,
.price-range-display-value input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.price-input-error {
    font-size: 12px;
    color: #FF5162;
    margin-top: 8px;
    text-align: center;
    display: none;
}

.range-slider-container {
    position: relative;
    height: 50px;
}

.range-slider-track {
    position: absolute;
    width: 100%;
    height: 3px;
    background: #e0e0e0;
    border-radius: 3px;
    top: 50%;
    transform: translateY(-50%);
}

.range-slider-range {
    position: absolute;
    height: 100%;
    background: #FF5162;
    border-radius: 3px;
}

.range-slider-input {
    position: absolute;
    width: 100%;
    height: 6px;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    top: 50%;
    transform: translateY(-50%);
}

.range-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: white;
    border: 5px solid #FF5162;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.range-slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.range-slider-input::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: white;
    border: 5px solid #FF5162;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.range-slider-input::-moz-range-thumb:hover {
    transform: scale(1.15);
}

.apply-filter-btn {
    width: 100%;
    background: #E13761;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 1rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.apply-filter-btn:hover {
    background: #c72d51;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(225, 55, 97, 0.3);
}

/* Filter options (checkbox list) */
.filter-options {
    max-height: 350px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
}

.filter-options::-webkit-scrollbar {
    width: 6px;
}

.filter-options::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.filter-options::-webkit-scrollbar-thumb {
    background: #FF5162;
    border-radius: 3px;
}

.filter-option-item {
    display: flex;
    align-items: center;
    padding: 0.55rem;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.filter-option-item:hover {
    background: #f8f8f8;
}

.filter-option-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: #FF5162;
}

.filter-option-item label {
    flex: 1;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    margin: 0;
    line-height: 1;
}

.apply-filter-btn:hover {
    background: #c72d51;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(225, 55, 97, 0.3);
}

.close-circle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    background-color: #D7BFC7;
    border-radius: 50%;
    cursor: pointer;
}

.close-circle i {
    font-size: 12px;
    color: black;
}

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

    .search-box {
        width: 100%;
    }

    .wines-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }

    .sort-menu {
        left: auto;
        right: 0;
    }

    .filter-modal {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin-top: 0;
        width: 90%;
        max-width: 400px;
    }

    .filter-btn-wrapper {
        width: 100%;
    }

    .filter-btn {
        width: 100%;
        justify-content: center;
    }

    .filter-pill {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 576px) {
    .wine-card {
        flex: 0 0 240px;
        min-width: 240px;
        max-width: 240px;
    }

    .wine-slider {
        gap: 1.5rem;
    }
}