/* Caffe Luce Menu Styles */

.clm-menu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 50vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Tabs Wrapper - Horizontal Scroll */
.clm-tabs-wrapper {
    position: relative;
    margin-bottom: 30px;
    overflow: hidden;
    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 40px);
}

.clm-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 20px;
}

@media (max-width: 768px) {
    .clm-menu-container {
        padding: 15px;
    }
    
    .clm-tabs-wrapper {
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
    }
    
    .clm-tabs {
        padding: 10px 15px;
        gap: 8px;
    }
    
    .clm-tab {
        padding: 8px 16px;
        font-size: 13px;
    }
}

.clm-tabs::-webkit-scrollbar {
    display: none;
}

/* Tab Buttons */
.clm-tab {
    flex-shrink: 0;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    background-color: #E67E22;
    color: #ffffff;
}

.clm-tab:hover {
    background-color: #D35400;
    color: #ffffff;
}

.clm-tab.active {
    background-color: #ffffff;
    color: #333333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Category Description */
.clm-category-desc {
    text-align: center;
    padding: 15px 20px;
    margin-bottom: 15px;
    background: #fff8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
    font-style: italic;
    line-height: 1.5;
}

/* Hot/Cold Header */
.clm-hotcold-header {
    text-align: right;
    padding: 10px 0;
    margin-bottom: 10px;
}

.clm-hotcold-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}


/* Product Grid */
.clm-grid {
    display: grid;
    grid-template-columns: repeat(var(--clm-columns, 3), 1fr);
    gap: 25px;
}

@media (max-width: 992px) {
    .clm-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .clm-grid {
        grid-template-columns: 1fr;
    }
}

/* Product Card */
.clm-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clm-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.clm-item.hidden {
    display: none;
}

/* Product Image */
.clm-item-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #f5f5f5;
}

.clm-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.clm-item:hover .clm-item-image img {
    transform: scale(1.05);
}

/* Product Content */
.clm-item-content {
    padding: 15px;
}

/* Product Header: Name ... Price */
.clm-item-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.clm-item-name {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    flex-shrink: 0;
}

.clm-item-dots {
    flex-grow: 1;
    border-bottom: 2px dotted #cccccc;
    min-width: 20px;
    margin-bottom: 4px;
}

.clm-item-price {
    font-size: 16px;
    font-weight: 600;
    color: #E67E22;
    flex-shrink: 0;
}

/* Product Description */
.clm-item-description {
    font-size: 13px;
    color: #666666;
    line-height: 1.5;
    margin: 0;
}

/* Animation for filtering */
.clm-item {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   LIST LAYOUT - Full width rows
   ======================================== */
.clm-grid.clm-layout-list {
    display: block;
}

.clm-layout-list .clm-item {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    border-bottom: none;
    padding: 15px 0;
}

.clm-layout-list .clm-item:hover {
    transform: none;
    box-shadow: none;
}

.clm-layout-list .clm-item .clm-item-image,
.clm-layout-list .clm-item .clm-item-description {
    display: none;
}

.clm-layout-list .clm-item .clm-item-content {
    padding: 0;
}

.clm-layout-list .clm-item .clm-item-header {
    margin-bottom: 0;
}

.clm-layout-list .clm-item .clm-item-name {
    font-size: 18px;
    font-weight: 400;
}

.clm-layout-list .clm-item .clm-item-dots {
    border-bottom: 1px dotted #999;
    margin-bottom: 6px;
}

.clm-layout-list .clm-item .clm-item-price {
    font-size: 18px;
    font-weight: 400;
    color: #333;
}

/* ========================================
   NO IMAGE LAYOUT - 2-column grid cards
   ======================================== */
.clm-layout-noimg .clm-item {
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: none;
    border-left: 3px solid #e0e0e0;
}

.clm-layout-noimg .clm-item:hover {
    transform: none;
    box-shadow: none;
    border-left-color: #E67E22;
}

.clm-layout-noimg .clm-item .clm-item-image {
    display: none;
}

.clm-layout-noimg .clm-item .clm-item-content {
    padding: 20px;
}

.clm-layout-noimg .clm-item .clm-item-header {
    margin-bottom: 0;
}

.clm-layout-noimg .clm-item .clm-item-name {
    font-size: 15px;
    font-weight: 500;
}

.clm-layout-noimg .clm-item .clm-item-dots {
    border-bottom: 1px dotted #bbb;
    margin-bottom: 5px;
}

.clm-layout-noimg .clm-item .clm-item-price {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}
