/* Sales Menu Styles */

.sales-dropdown-layout {
    padding: 10px 0;
}

.sales-products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px 8px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 15px;
}

.sales-products-grid .product-card {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.sales-products-grid .product-image {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
    margin-bottom: 4px;
    background: #f8f8f8;
    border-radius: 3px;
}

.sales-products-grid .product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sales-products-grid .product-card h4 {
    font-size: 11px;
    margin: 2px 0 1px;
    color: #222;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 2px;
}

.sales-products-grid .product-card .price {
    font-size: 11px;
    font-weight: 600;
    color: #C27BA0;
    margin: 0;
    line-height: 1.2;
}

.sales-products-grid .product-price-original {
    text-decoration: line-through;
    color: #999;
    font-size: 9px;
    font-weight: 400;
    display: block;
}

.sales-products-grid .product-price-sale {
    color: #dc3545;
    font-size: 11px;
    font-weight: 600;
}

.sale-loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 14px;
}

.sale-no-products {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 14px;
}

/* Mobile Sales Menu */
@media screen and (max-width: 768px) {
    .sales-mobile-section {
        display: none;
        width: 100%;
        border-top: 1px solid #f0f0f0;
        margin-top: 0;
        padding-top: 0;
    }

    .sales-mobile-section.open {
        display: block;
    }

    .sales-mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0;
        cursor: pointer;
        font-weight: 600;
        font-size: 16px;
        color: #222;
        border-bottom: 1px solid #f0f0f0;
    }

    .sales-mobile-toggle {
        font-size: 12px;
        transition: transform 0.3s;
        color: #C27BA0;
    }

    .sales-mobile-toggle.open {
        transform: rotate(180deg);
    }

    .sales-mobile-content {
        display: none;
        padding-bottom: 15px;
    }

    .sales-mobile-content.open {
        display: block;
    }

    .sales-mobile-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .sales-mobile-grid .product-card {
        text-align: center;
        cursor: pointer;
    }

    .sales-mobile-grid .product-image {
        position: relative;
        padding-top: 75%;
        overflow: hidden;
        margin-bottom: 4px;
        background: #f5f5f5;
        border-radius: 4px;
    }

    .sales-mobile-grid .product-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .sales-mobile-grid .product-card h4 {
        font-size: 11px;
        margin: 2px 0 1px;
        color: #222;
        font-weight: 500;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .sales-mobile-grid .price {
        font-size: 11px;
        font-weight: 600;
        color: #C27BA0;
        margin: 0;
    }

    .sales-mobile-grid .product-price-original {
        text-decoration: line-through;
        color: #999;
        font-size: 9px;
        font-weight: 400;
        display: block;
    }

    .sales-mobile-grid .product-price-sale {
        color: #dc3545;
        font-size: 11px;
        font-weight: 600;
    }

    .sales-mobile-loading {
        text-align: center;
        padding: 20px;
        color: #666;
        font-size: 13px;
    }
}

/* Desktop styles - hide mobile sales section */
@media screen and (min-width: 769px) {
    .sales-mobile-section {
        display: none !important;
    }
}
