.card-soft,
.metric-card,
.pos-card,
.login-card {
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-xl);
    background: var(--bg-panel);
    box-shadow: var(--shadow-soft);
}

.metric-card {
    padding: 1.5rem;
    background: linear-gradient(135deg, #fff7d6, #fffdf8);
}

.metric-label,
.section-title,
.page-kicker {
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    font-weight: 700;
}

.metric-value {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--text-main);
}

.toolbar-wrap,
.stock-row,
.cart-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.pos-card {
    padding: 1.25rem;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(180deg, #ffffff, #fff4dd);
}

.pos-card-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.pos-card-price {
    font-size: 1rem;
    font-weight: 800;
}

.pos-card-stock {
    color: var(--text-soft);
}

.drink-card,
.pos-product-card,
.cart-item-panel {
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-xl);
    background: var(--bg-panel);
    box-shadow: var(--shadow-soft);
}

.drink-card {
    overflow: hidden;
}

.drink-card-media,
.pos-product-media {
    aspect-ratio: 16 / 16;
    background: linear-gradient(135deg, #fff8e1, #fff);
}

.drink-card-image,
.pos-product-image,
.drink-preview-image,
.composer-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.drink-card-body,
.pos-product-body {
    padding: 1rem 1.1rem 1.2rem;
}

.drink-card-placeholder {
    width: 100%;
    height: 100%;
    min-height: 150px;
    display: grid;
    place-items: center;
    color: var(--text-soft);
    font-weight: 600;
}

.drink-meta-grid {
    display: grid;
    gap: 0.75rem;
}

.drink-meta-grid div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.95rem;
}

.drink-meta-grid span {
    color: var(--text-soft);
}

.drink-upload-preview {
    height: 180px;
    overflow: hidden;
    border-radius: 24px;
    border: 1px dashed var(--line-soft);
}

.choice-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.choice-chip {
    position: relative;
}

.choice-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-chip span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    padding: 0.7rem 0.95rem;
    border-radius: 999px;
    border: 1px solid var(--line-soft);
    background: #fff;
    cursor: pointer;
    transition: all .2s ease;
}

.choice-chip input:checked + span {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

.pos-product-card {
    overflow: hidden;
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease;
}

.pos-product-card:hover {
    transform: translateY(-3px);
}

.pos-product-card-disabled {
    opacity: 0.55;
}

.composer-thumb-wrap {
    width: 84px;
    height: 84px;
    border-radius: 22px;
    overflow: hidden;
    background: #fff7ed;
    border: 1px solid var(--line-soft);
}

.cart-item-panel {
    padding: 1rem;
}

.pos-workspace {
    position: relative;
}


.pending-orders-panel {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    width: 300px;
    max-height: calc(100vh - 2rem);
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: var(--bg-panel);
    box-shadow: var(--shadow-soft);
}

.pending-panel-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--line-soft);
}

.pending-order-list {
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
}

.pending-order-item {
    display: block;
    padding: 0.95rem 1rem;
    color: var(--text-main);
    text-decoration: none;
    border-bottom: 1px solid var(--line-soft);
}

.pending-order-item:hover,
.pending-order-item.active {
    background: #fff7df;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.status-pending {
    background: #fff7ed;
    color: #9a3412;
}

.status-completed {
    background: #ecfdf5;
    color: #047857;
}

.status-deleted {
    background: #f3f4f6;
    color: #4b5563;
}
.drink-grid {
    display: grid;
    /*    gap: 16px;
*/ 
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.drink-grid-item{
    height:100%;
}
/*.pos-product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}*/
/**/
.pos-product-card {
    height: 100%;
}

.pos-product-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.add-pos-item {
    margin-top: auto;
}

/*.pos-card-title {
    min-height: 48px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}*/
.pos-sidebar-sticky {
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 85px);
    overflow-y: auto;
}
@media (min-width: 1400px) {
    .drink-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}
.drink-grid {
    display: grid;
    gap: 16px;
}

@media (min-width: 1600px) {
    .drink-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) and (max-width: 1599px) {
    .drink-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .drink-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .drink-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}
@media (max-width: 1199.98px) {
    .pos-workspace {
        display: flex;
        flex-direction: column;
    }

    .pos-main {
        padding-right: 0;
    }

    .pending-orders-panel {
        position: static;
        order: -1;
        width: auto;
        max-height: none;
    }

    .pending-order-list {
        max-height: 300px;
    }
}
