/* Общие стили для сетки товаров */
.wccc-grid {
    display: grid;
    gap: 20px;
}
.wccc-grid[data-cols-desktop="4"] { grid-template-columns: repeat(4, 1fr); }
.wccc-grid[data-cols-desktop="3"] { grid-template-columns: repeat(3, 1fr); }
.wccc-grid[data-cols-desktop="2"] { grid-template-columns: repeat(2, 1fr); }
.wccc-grid[data-cols-desktop="1"] { grid-template-columns: 1fr; }
@media (max-width: 768px) {
    .wccc-grid[data-cols-tablet="2"] { grid-template-columns: repeat(2, 1fr); }
    .wccc-grid[data-cols-tablet="1"] { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .wccc-grid[data-cols-mobile="2"] { grid-template-columns: repeat(2, 1fr); }
    .wccc-grid[data-cols-mobile="1"] { grid-template-columns: 1fr; }
}

/* Стикеры */
.wccc-sticker {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    color: #fff;
    font-size: 12px;
    z-index: 10;
    border-radius: 3px;
}

/* Конструктор */
#wccc-constructor .step {
    display: none;
}
#wccc-constructor .step.active {
    display: block;
}
.packaging-tabs {
    margin-bottom: 20px;
}
.packaging-tabs .tab {
    display: inline-block;
    padding: 10px 15px;
    cursor: pointer;
    background: #f1f1f1;
    border: none;
    margin-right: 5px;
}
.packaging-tabs .tab.active {
    background: #ccc;
}
.packaging-card {
    display: inline-block;
    margin: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}
.packaging-card.selected {
    border: 2px solid #007cba;
}
.ingredient-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    border-bottom: 1px solid #eee;
}
.ingredient-row img {
    width: 50px;
    height: 50px;
    margin-right: 15px;
}
.ingredient-row .info {
    flex: 1;
}
.ingredient-row .controls {
    margin-left: auto;
}
.ingredient-row .controls button {
    width: 30px;
    height: 30px;
    cursor: pointer;
}
.weight-info {
    margin: 20px 0;
    padding: 10px;
    background: #f9f9f9;
}
.ingredients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}
.ingredient-card {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    position: relative;
}
.ingredient-card:hover {
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}
.ingredient-card[data-tooltip]:hover:after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 5px;
    border-radius: 3px;
    white-space: nowrap;
    z-index: 100;
}
.print-actions {
    margin-top: 20px;
}
.print-actions {
    margin-top: 20px;
}
.print-actions button {
    margin-right: 10px;
    padding: 8px 15px;
    cursor: pointer;
}
.wccc-sticker {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    color: #fff;
    font-size: 12px;
    z-index: 10;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.wccc-sticker img {
    max-width: 50px;
    max-height: 50px;
    display: block;
}