/**
 * Menu Page Fixes
 * Ensures all interactive elements are clickable and properly styled
 */

/* ===== SIZE SELECTOR FIXES ===== */
.size-label {
    font-size: 13px;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

.size_main_sb {
    display: flex !important;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.size_main_sb a {
    height: 38px;
    min-width: 50px;
    padding: 8px 14px;
    text-align: center;
    background-color: #f5f5f5;
    color: #666;
    font-weight: 600;
    font-size: 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    pointer-events: auto;
}

.size_main_sb a:hover {
    background-color: #e8e8e8;
    color: #333;
    text-decoration: none;
    transform: translateY(-2px);
}

.size_main_sb a.active {
    color: white !important;
    background: linear-gradient(135deg, #B2201D, #e00b2b) !important;
    border-color: #B2201D;
    box-shadow: 0 4px 12px rgba(178, 32, 29, 0.3);
}

/* ===== CRUST OPTIONS FIXES ===== */
.crust-label {
    font-size: 13px;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}


.crust_main_sb {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    width: 100%;
}

.crust_main_sb a,
.crust_main_sb .crust-option {
    flex: 0 0 calc(50% - 4px);
    /* 2 items per row with 8px gap */
    width: calc(50% - 4px);
    justify-content: center;
    padding: 10px 5px;
    /* Minimal side padding */
    background-color: #f5f5f5;
    color: #666;
    font-weight: 500;
    font-size: 13px;
    border-radius: 6px;
    /* Slightly less rounded for button-like appearance */
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    pointer-events: auto;
    text-align: center;
    box-sizing: border-box;
}

.crust_main_sb a:hover,
.crust_main_sb .crust-option:hover {
    background-color: #e8e8e8;
    color: #333;
    text-decoration: none;
    transform: translateY(-2px);
}

.crust_main_sb a.active,
.crust_main_sb .crust-option.active {
    color: white !important;
    background: #B2201D !important;
    /* Solid color as per reference image */
    border-color: #B2201D;
    box-shadow: 0 2px 5px rgba(178, 32, 29, 0.2);
}

.crust-extra {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.9;
}

/* ===== QUANTITY SELECTOR FIXES ===== */
.quantity-section {
    margin: 10px 0 5px 0;
    padding: 8px 0;
    border-top: 1px solid #e8e8e8;
}

.quantity-label {
    font-size: 13px;
    font-weight: 600;
    color: #000;
    margin-bottom: 10px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quantity-selector {
    display: flex !important;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    background: white;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.qty-btn:hover {
    border-color: #B2201D;
    color: #B2201D;
    background: #fff5f5;
    transform: scale(1.1);
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    background: #f9f9f9;
}

/* ===== CATEGORY NAVIGATION FIXES ===== */
.filter {
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.filter:hover {
    transform: scale(1.05);
}

.filter.active {
    border: 3px solid #B2201D !important;
}

/* Ensure slick slider buttons are visible and clickable */
.main-box .prev,
.main-box .next {
    cursor: pointer;
    pointer-events: auto;
    z-index: 10;
}

/* ===== CART BUTTON FIXES ===== */
.cart a {
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.cart a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(178, 32, 29, 0.4);
}

/* ===== ENSURE NO OVERLAPPING ELEMENTS ===== */
.b-text {
    position: relative;
    z-index: 1;
}

.items {
    position: relative;
}

/* ===== INITIAL STATE: Hide all products until filtered ===== */
.portfolio {
    display: none;
}

.portfolio.w3-animate-zoom {
    display: block;
}

/* ===== EMPTY STATE STYLING ===== */
.empty-state-message {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 12px;
    margin: 40px 0;
}

.empty-state-content {
    max-width: 400px;
    margin: 0 auto;
}

.empty-state-content i {
    font-size: 64px;
    color: #ccc;
    margin-bottom: 20px;
}

.empty-state-content h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 12px;
}

.empty-state-content p {
    font-size: 16px;
    color: #666;
}

/* ===== RESPONSIVE FIXES ===== */
@media (max-width: 768px) {
    .size_main_sb {
        justify-content: center;
    }



    .quantity-selector {
        gap: 8px;
    }
}