﻿/* ================================
   ORDER SUMMARY PAGE
   ================================ */
.order-summary-page {
    padding-top: 100px;
    padding-bottom: 60px;
    min-height: 100vh;
    background: #f5f5f5;
}

.page-header-section {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

    .page-title i {
        color: #951f20;
        margin-right: 10px;
    }

.rtl-body .page-title i {
    margin-right: 0;
    margin-left: 10px;
}

.page-subtitle {
    color: #666;
    font-size: 16px;
}

/* Cards */
.order-items-card,
.order-total-card,
.help-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    overflow: hidden;
}

.card-header {
    padding: 20px 25px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .card-header h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
        color: #333;
    }

        .card-header h3 i {
            color: #951f20;
        }

.items-count {
    color: #999;
    font-size: 14px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 30px;
}

    .empty-state i {
        font-size: 80px;
        color: #ddd;
        margin-bottom: 20px;
    }

    .empty-state h4 {
        color: #999;
        margin-bottom: 10px;
    }

    .empty-state p {
        color: #bbb;
        margin-bottom: 20px;
    }

/* Items List */
.items-list {
    padding: 20px;
}

.summary-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 15px;
    position: relative;
    transition: all 0.3s ease;
}

    .summary-item:hover {
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }

    .summary-item:last-child {
        margin-bottom: 0;
    }

.item-image {
    width: 120px;
    height: 120px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .item-image img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.item-details {
    flex: 1;
    min-width: 0;
}

.item-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
}

.item-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.option-badge {
    font-size: 12px;
    padding: 4px 10px;
    background: #fff;
    border-radius: 20px;
    color: #666;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #eee;
}

.color-badge .color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.tag-badge {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeeba;
}

.item-tag-info {
    font-size: 12px;
    color: #666;
    background: #fff3cd;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.item-pricing {
    margin-top: 10px;
}

.unit-price {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}

.per-unit {
    font-size: 12px;
    color: #999;
}

.item-quantity-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 5px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

    .qty-btn:hover {
        background: #951f20;
        color: #fff;
    }

.qty-display {
    font-weight: 600;
    font-size: 16px;
    min-width: 30px;
    text-align: center;
}

.item-total {
    font-size: 20px;
    font-weight: 700;
    color: #951f20;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-remove-item {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s;
}

.rtl-body .btn-remove-item {
    right: auto;
    left: 15px;
}

.btn-remove-item:hover {
    background: #fee;
    color: #dc3545;
}

/* Order Total Card */
.order-total-card .card-body {
    padding: 25px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 15px;
}

    .total-row.grand-total {
        font-size: 20px;
        font-weight: 700;
        color: #951f20;
        padding-top: 15px;
    }

.price-value {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.vat-note {
    font-size: 12px;
    color: #999;
    margin-top: 15px;
    text-align: center;
}

.order-total-card .card-footer {
    padding: 20px 25px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.btn-checkout {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, #951f20 0%, #7a1819 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    margin-bottom: 10px;
}

    .btn-checkout:hover {
        background: linear-gradient(135deg, #7a1819 0%, #5a1213 100%);
        transform: translateY(-2px);
        box-shadow: 0 5px 20px rgba(149, 31, 32, 0.4);
    }

.btn-continue {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
}

    .btn-continue:hover {
        border-color: #951f20;
        color: #951f20;
        text-decoration: none;
    }

/* Help Card */
.help-card {
    padding: 20px;
}

    .help-card h4 {
        font-size: 16px;
        font-weight: 600;
        margin: 0 0 15px 0;
        color: #333;
    }

        .help-card h4 i {
            color: #951f20;
        }

    .help-card ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .help-card li {
        padding: 8px 0;
        color: #666;
        font-size: 14px;
    }

        .help-card li i {
            width: 20px;
            color: #951f20;
        }

/* Responsive */
@media (max-width: 768px) {
    .order-summary-page {
        padding-top: 80px;
    }

    .summary-item {
        flex-direction: column;
        text-align: center;
    }

    .item-image {
        width: 100%;
        height: 150px;
    }

    .item-options {
        justify-content: center;
    }

    .item-pricing {
        justify-content: center;
    }

    .unit-price {
        justify-content: center;
    }

    .btn-remove-item {
        top: 10px;
        right: 10px;
    }

    .rtl-body .btn-remove-item {
        right: auto;
        left: 10px;
    }
}
.fa-cube {
    font-size: small !important;
    margin-bottom: 0 !important;
}
/* ============================================
   MULTIPLE TAGS DISPLAY - ORDER SUMMARY
   ============================================ */

.item-tags-section {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #eee;
}

.item-tag-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
}

    .item-tag-info.same-tag {
        background: linear-gradient(135deg, #f0fff4 0%, #e8f5e9 100%);
        border: 1px solid #c8e6c9;
    }

    .item-tag-info.multiple-tags {
        background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
        border: 1px solid #ffe082;
    }

.tag-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #333;
    font-size: 13px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

    .tag-header i {
        color: #8B0000;
    }

.same-tag-badge {
    font-size: 11px;
    font-weight: 500;
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

.tags-count {
    font-size: 12px;
    font-weight: 600;
    color: #f57c00;
    background: rgba(245, 124, 0, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

.tag-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tag-detail {
    font-size: 12px;
    color: #555;
}

    .tag-detail strong {
        color: #333;
    }

/* Toggle Button */
.btn-toggle-tags {
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 11px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    transition: all 0.2s ease;
}

.rtl-body .btn-toggle-tags {
    margin-left: 0;
    margin-right: auto;
}

.btn-toggle-tags:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

.btn-toggle-tags i {
    font-size: 10px;
    color: #888;
    transition: transform 0.2s ease;
}

/* Tags List Container */
.tags-list-container {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.tags-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tag-list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

    .tag-list-item.filled {
        border-color: #c8e6c9;
        background: #f9fff9;
    }

        .tag-list-item.filled .tag-box-number i {
            color: #28a745;
        }

    .tag-list-item.empty {
        border-color: #ffcdd2;
        background: #fff9f9;
    }

        .tag-list-item.empty .tag-box-number i {
            color: #ccc;
        }

.tag-box-number {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 70px;
}

.tag-box-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
    color: #555;
    flex: 1;
}

    .tag-box-details span {
        display: block;
    }

    .tag-box-details .empty-value {
        color: #bbb;
        font-style: italic;
    }

/* Mobile Responsive */
@media (max-width: 768px) {
    .tag-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .btn-toggle-tags {
        margin-left: 0;
        margin-top: 5px;
        width: 100%;
        justify-content: center;
    }

    .rtl-body .btn-toggle-tags {
        margin-right: 0;
    }

    .tag-list-item {
        flex-direction: column;
        gap: 5px;
    }

    .tag-box-number {
        min-width: unset;
    }
}

/* Add to order-summary.css */
.summary-item.stock-warning {
    border: 2px solid #ff6b6b;
    background-color: #fff5f5;
}

    .summary-item.stock-warning::after {
        content: '⚠️';
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 20px;
    }

.stock-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

    .stock-badge.in-stock {
        background-color: #d4edda;
        color: #155724;
    }

    .stock-badge.low-stock {
        background-color: #fff3cd;
        color: #856404;
    }

    .stock-badge.out-of-stock {
        background-color: #f8d7da;
        color: #721c24;
    }