/* تصميم عام */
.wc-pos-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    background: #f8f9fa;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

/* الهيدر */
.wc-pos-header {
    background: #2c3e50;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* المحتوى الرئيسي */
.wc-pos-main {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    padding: 20px;
    background: #fff;
}

/* قسم المنتجات */
.wc-pos-products {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.wc-pos-search {
    margin-bottom: 15px;
    position: sticky;
    top: 0;
    background: #fff;
    padding: 10px 0;
    z-index: 10;
}

.wc-pos-search input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.wc-pos-products-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    padding: 5px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.wc-pos-product {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px;
    transition: all 0.3s ease;
    background: #fff;
}

.wc-pos-product:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.wc-pos-product h3 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #333;
}

.wc-pos-product-price {
    font-weight: bold;
    color: #27ae60;
    margin: 8px 0;
}

.wc-pos-quantity {
    width: 50px;
    padding: 5px;
    margin-right: 5px;
    text-align: center;
}

.wc-pos-add-to-cart {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.3s;
}

.wc-pos-add-to-cart:hover {
    background: #2980b9;
}

/* قسم السلة */
.wc-pos-cart {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.wc-pos-cart-items {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 15px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-name {
    flex-grow: 1;
}

.cart-item-price {
    font-weight: bold;
}

.cart-item-remove {
    color: #e74c3c;
    cursor: pointer;
    margin-left: 10px;
}

.wc-pos-cart-totals {
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

.wc-pos-cart-totals div {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
}

.wc-pos-cart-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.wc-pos-cart-actions button {
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

#wc-pos-add-discount {
    background: #f39c12;
    color: white;
}

#wc-pos-process-payment {
    background: #27ae60;
    color: white;
    grid-column: 1 / -1;
}

.wc-pos-cart-actions button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* الفوتر */
.wc-pos-footer {
    background: #34495e;
    color: #ecf0f1;
    padding: 10px 20px;
    text-align: center;
    font-size: 12px;
}