/* Products Page Specific Styles - Tema Dark Wine/Purple */

/* Products Hero */
.products-hero {
    background: transparent;
    color: #fff;
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #d4d4d4;
    margin-bottom: 0;
    text-shadow: 0 0 10px rgba(27, 0, 4, 0.2);
}

/* Filters Section */
.filters-section {
    background: transparent;
    padding: 3rem 0;
    position: relative;
}

.filters {
    display: flex;
    gap: 1.5rem;
    align-items: end;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    min-width: 180px;
}

.filter-group label {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.9rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Custom Filter Dropdowns - Mesma estética dos dropdowns de sabor */
.custom-filter-dropdown {
    position: relative;
    width: 100%;
}

.filter-dropdown-btn {
    width: 100%;
    height: 44px;
    padding: 0 32px 0 14px;
    border: 1px solid rgba(97, 53, 162, 0.3);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    backdrop-filter: blur(8px);
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-dropdown-btn:hover {
    border-color: rgba(97, 53, 162, 0.4);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 3px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.custom-filter-dropdown.active .filter-dropdown-btn {
    border-color: rgba(97, 53, 162, 0.5);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 4px 12px rgba(97, 53, 162, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.filter-dropdown-text {
    flex: 1;
    text-align: left;
    color: #ffffff;
}

.filter-dropdown-arrow {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.custom-filter-dropdown.active .filter-dropdown-arrow {
    transform: rotate(180deg);
    color: rgba(255, 255, 255, 0.8);
}

.filter-dropdown-list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(97, 53, 162, 0.4);
    border-radius: 10px;
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99999;
    padding: 0;
    min-width: 200px;
}

.custom-filter-dropdown.active .filter-dropdown-list {
    max-height: 320px;
    opacity: 1;
    transform: translateY(0);
    padding: 8px 0;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Estilização da scrollbar para os dropdowns de filtro */
.filter-dropdown-list::-webkit-scrollbar {
    width: 8px;
}

.filter-dropdown-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.filter-dropdown-list::-webkit-scrollbar-thumb {
    background: rgba(97, 53, 162, 0.6);
    border-radius: 10px;
    transition: background 0.2s ease;
}

.filter-dropdown-list::-webkit-scrollbar-thumb:hover {
    background: rgba(97, 53, 162, 0.8);
}

.filter-dropdown-option {
    padding: 14px 18px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-dropdown-option:last-child {
    border-bottom: none;
}

.filter-dropdown-option:hover {
    background: linear-gradient(135deg, 
        rgba(97, 53, 162, 0.25) 0%, 
        rgba(109, 63, 176, 0.18) 100%);
    color: #ffffff;
    padding-left: 22px;
}

.filter-dropdown-option:first-child {
    border-radius: 10px 10px 0 0;
}

.filter-dropdown-option:last-child {
    border-radius: 0 0 10px 10px;
}

/* Search Input */
.search-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(97, 53, 162, 0.3);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    backdrop-filter: blur(8px);
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    outline: none;
}

.search-input:hover {
    border-color: rgba(97, 53, 162, 0.4);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 3px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.search-input:focus {
    border-color: rgba(97, 53, 162, 0.5);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 4px 12px rgba(97, 53, 162, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.search-input {
    min-width: 250px;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

/* Products Grid */
.products-section {
    padding: 4rem 0;
    background: transparent;
    position: relative;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.product-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    border-radius: 25px;
    overflow: visible;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 30px rgba(97, 53, 162, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    z-index: 1;
}

.product-card:has(.custom-flavor-dropdown.active) {
    z-index: 10000;
}

.product-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 50px rgba(97, 53, 162, 0.25),
        0 0 80px rgba(97, 53, 162, 0.15);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.08) 100%);
    border-color: rgba(255, 255, 255, 0.2);
}

.product-image-container {
    position: relative;
    overflow: visible;
    height: 320px;
    background: transparent;
    border-radius: 25px 25px 0 0;
    padding: 0.5rem;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.25rem;
    transform: scale(1.1);
    filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.4)) 
            drop-shadow(0 0 30px rgba(0, 255, 0, 0.3));
}

.product-card:hover .product-image {
    transform: scale(1.15);
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5)) 
            drop-shadow(0 0 40px rgba(0, 255, 0, 0.4));
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #ff4444 0%, #ff6666 100%);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 
        0 4px 15px rgba(255, 68, 68, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
    z-index: 2;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.product-info {
    padding: 2rem 1.5rem;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #ffffff;
    line-height: 1.3;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    min-height: 3rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-category {
    font-size: 0.8rem;
    color: #6135A2;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(97, 53, 162, 0.5);
}

.product-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: #6135A2;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px rgba(97, 53, 162, 0.7);
    position: relative;
}

.product-price::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #6135A2, transparent);
    border-radius: 2px;
    opacity: 0.6;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    z-index: 1;
    position: relative;
}

.custom-flavor-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-btn {
    width: 100%;
    height: 44px;
    padding: 0 32px 0 14px;
    border: 1px solid rgba(97, 53, 162, 0.3);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    backdrop-filter: blur(8px);
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dropdown-btn:hover {
    border-color: rgba(97, 53, 162, 0.4);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 3px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.custom-flavor-dropdown.active .dropdown-btn {
    border-color: rgba(97, 53, 162, 0.5);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 4px 12px rgba(97, 53, 162, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.filter-select:active,
.filter-select:focus:active {
    border-color: rgba(97, 53, 162, 0.5);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 4px 12px rgba(97, 53, 162, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.dropdown-text {
    flex: 1;
    text-align: left;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.custom-flavor-dropdown[data-selected-value] .dropdown-text {
    color: #ffffff;
    font-style: normal;
}

.dropdown-arrow {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.custom-flavor-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
    color: rgba(255, 255, 255, 0.8);
}

.dropdown-list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(97, 53, 162, 0.4);
    border-radius: 10px;
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99999;
    padding: 0;
    min-width: 200px;
}

.custom-flavor-dropdown.active .dropdown-list {
    max-height: 320px;
    opacity: 1;
    transform: translateY(0);
    padding: 8px 0;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Estilização da scrollbar para os dropdowns de sabor */
.dropdown-list::-webkit-scrollbar {
    width: 8px;
}

.dropdown-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.dropdown-list::-webkit-scrollbar-thumb {
    background: rgba(97, 53, 162, 0.6);
    border-radius: 10px;
    transition: background 0.2s ease;
}

.dropdown-list::-webkit-scrollbar-thumb:hover {
    background: rgba(97, 53, 162, 0.8);
}

.dropdown-option {
    padding: 14px 18px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:hover {
    background: linear-gradient(135deg, 
        rgba(97, 53, 162, 0.25) 0%, 
        rgba(109, 63, 176, 0.18) 100%);
    color: #ffffff;
    padding-left: 22px;
}

.dropdown-option:first-child {
    border-radius: 10px 10px 0 0;
}

.dropdown-option:last-child {
    border-radius: 0 0 10px 10px;
}

.btn-add-cart {
    width: 100%;
    height: 44px;
    background: rgba(97, 53, 162, 0.3);
    color: #ffffff;
    border: 1px solid rgba(97, 53, 162, 0.4);
    padding: 0 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    backdrop-filter: blur(8px);
    box-shadow: 
        0 2px 6px rgba(97, 53, 162, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-add-cart:hover:not(:disabled) {
    background: rgba(97, 53, 162, 0.4);
    border-color: rgba(97, 53, 162, 0.5);
    box-shadow: 
        0 3px 8px rgba(97, 53, 162, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-add-cart:disabled {
    background: rgba(97, 53, 162, 0.15);
    border-color: rgba(97, 53, 162, 0.2);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
    opacity: 0.5;
}

/* Loading Indicator */
.loading {
    text-align: center;
    padding: 4rem;
    color: #d4d4d4;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #6135A2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 20px rgba(97, 53, 162, 0.3);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* No Products */
.no-products {
    text-align: center;
    padding: 4rem;
    color: #d4d4d4;
}

.no-products h3 {
    margin-bottom: 1rem;
    color: #ffffff;
    font-size: 1.8rem;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.no-products p {
    font-size: 1.1rem;
    color: #b0b0b0;
}

/* Pagination */
.pagination-section {
    background: transparent;
    padding: 3rem 0;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.pagination-btn {
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.pagination-btn:hover {
    border-color: rgba(97, 53, 162, 0.6);
    color: #ffffff;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.08) 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(97, 53, 162, 0.3);
}

.pagination-btn.active {
    background: linear-gradient(135deg, 
        rgba(97, 53, 162, 0.4) 0%, 
        rgba(109, 63, 176, 0.35) 100%);
    border-color: rgba(97, 53, 162, 0.6);
    color: #ffffff;
    box-shadow: 
        0 12px 35px rgba(97, 53, 162, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-btn:disabled:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Product Modal */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 3000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-modal.active {
    display: flex;
    opacity: 1;
}

.modal-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    border-radius: 25px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 50px rgba(97, 53, 162, 0.2);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 2rem;
    cursor: pointer;
    color: #ffffff;
    z-index: 1;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1) rotate(90deg);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 3rem;
}

.modal-image {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.4));
}

.modal-info h2 {
    margin-bottom: 1rem;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 800;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.modal-info p {
    color: #d4d4d4;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.modal-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: #6135A2;
    margin-bottom: 2rem;
    text-shadow: 0 0 20px rgba(97, 53, 162, 0.7);
    position: relative;
}

.modal-price::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #6135A2, transparent);
    border-radius: 2px;
    opacity: 0.8;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: center;
}

.quantity-selector .quantity-btn {
    width: 45px;
    height: 45px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    color: #ffffff;
    border-radius: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.quantity-selector .quantity-btn:hover {
    border-color: rgba(97, 53, 162, 0.6);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.08) 100%);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(97, 53, 162, 0.3);
}

.quantity-selector .quantity-input {
    width: 100px;
    text-align: center;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    font-size: 1.2rem;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    color: #ffffff;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.quantity-selector .quantity-input:focus {
    outline: none;
    border-color: rgba(97, 53, 162, 0.6);
    box-shadow: 0 8px 25px rgba(97, 53, 162, 0.3);
}

.add-to-cart-modal {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 968px) {
    .filters {
        flex-direction: column;
        gap: 1.25rem;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-select,
    .search-input {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .products-hero {
        padding: 6rem 0 3rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .filters-section {
        padding: 2rem 0;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 2rem;
    }
    
    .product-image-container {
        height: 280px;
    }
    
    .product-info {
        padding: 1.5rem;
    }
    
    .product-name {
        font-size: 1.1rem;
        min-height: 2.6rem;
    }
    
    .product-price {
        font-size: 1.6rem;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
    
    .modal-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .pagination-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .custom-flavor-dropdown {
        width: 100%;
    }
    
    .dropdown-btn {
        height: 42px;
        padding: 0 32px 0 12px;
        font-size: 0.85rem;
    }
    
    .btn-add-cart {
        width: 100%;
        height: 42px;
        padding: 0 16px;
        font-size: 0.85rem;
    }
    
    .quantity-selector {
        flex-direction: row;
        gap: 1rem;
    }
    
    .quantity-selector .quantity-input {
        width: 80px;
    }
}

/* Animation for product cards */
.product-card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for multiple cards */
.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

/* Hover effects for better UX */
.product-card:hover .product-badge {
    transform: scale(1.1);
}

.product-card:hover .product-actions {
    transform: translateY(-2px);
}

/* Focus states for accessibility */
.filter-select:focus,
.search-input:focus,
.pagination-btn:focus,
.modal-close:focus,
.quantity-selector .quantity-btn:focus,
.dropdown-btn:focus {
    outline: 2px solid rgba(97, 53, 162, 0.6);
    outline-offset: 2px;
}

/* Flavors Modal */
.flavors-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 3000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.flavors-modal.active {
    display: flex;
    opacity: 1;
}

.flavors-modal-title {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.flavors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.flavor-item {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 30px rgba(97, 53, 162, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.flavor-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 50px rgba(97, 53, 162, 0.25),
        0 0 80px rgba(97, 53, 162, 0.15);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.08) 100%);
    border-color: rgba(255, 255, 255, 0.2);
}

.flavor-icon {
    font-size: 3rem;
    filter: drop-shadow(0 0 15px rgba(97, 53, 162, 0.4));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.flavor-item:hover .flavor-icon {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 25px rgba(97, 53, 162, 0.6));
}

.flavor-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.btn-flavor-select {
    width: 100%;
    background: linear-gradient(135deg, 
        rgba(97, 53, 162, 0.4) 0%, 
        rgba(109, 63, 176, 0.35) 100%);
    color: #ffffff;
    border: 1px solid rgba(97, 53, 162, 0.6);
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 25px rgba(97, 53, 162, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.btn-flavor-select:hover {
    background: linear-gradient(135deg, 
        rgba(97, 53, 162, 0.5) 0%, 
        rgba(109, 63, 176, 0.45) 100%);
    border-color: rgba(97, 53, 162, 0.8);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 12px 35px rgba(97, 53, 162, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.no-flavors {
    text-align: center;
    color: #d4d4d4;
    font-size: 1.1rem;
    padding: 3rem;
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .flavors-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .flavor-item {
        padding: 1.5rem 1rem;
    }
    
    .flavor-icon {
        font-size: 2.5rem;
    }
    
    .flavors-modal-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .flavors-grid {
        grid-template-columns: 1fr;
    }
}
