/* Quick Order Table - frontend (6 columns: Image, Name, Description, Price, Quantity, Add to cart) */
@import url('https://fonts.googleapis.com/css2?family=Dosis:wght@700&display=swap');

.qot-wrap {
    margin: 1.5em 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.qot-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.qot-results {
    font-size: 0.95rem;
    color: #475569;
}

.qot-sort {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qot-sort label {
    font-size: 0.9rem;
    color: #64748b;
}

.qot-sort-select {
    margin-bottom: 0;
    padding: 8px 14px;
    font-size: 0.9rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    min-width: 180px;
}

/* Table - clean minimal design: white background, horizontal lines only */
.qot-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
}

.qot-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.qot-table th,
.qot-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

.qot-table thead th {
    background: #fff;
    font-weight: 700;
    color: #111827;
    font-size: 14px;
}

.qot-table tbody tr:hover {
    background: #fafafa;
}

/* Image column */
.qot-col-image {
    width: 90px;
    vertical-align: middle;
}

.qot-thumb-link {
    display: block;
    line-height: 0;
    background: #fff;
}

.qot-thumb,
.qot-thumb-placeholder img {
    width: 56px;
    height: 80px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
}

.qot-thumb-placeholder {
    display: inline-block;
    width: 56px;
    height: 80px;
    background: #f9fafb;
    border-radius: 6px;
}

.qot-thumb-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qot-col-name {
    min-width: 160px;
}

.qot-name {
    color: #b91c1c;
    font-weight: 600;
    text-decoration: none;
}

.qot-name:hover {
    text-decoration: underline;
}

.qot-col-price {
    white-space: nowrap;
}

.qot-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}

.qot-price-current,
.qot-price .qot-current {
    font-weight: 700;
    color: #111827;
    font-size: 15px;
}

.qot-price del.qot-regular {
    color: #9ca3af;
    font-size: 14px;
}

/* Quantity column */
.qot-col-qty {
    width: 100px;
    white-space: nowrap;
}

.qot-qty-label {
    display: block;
    margin: 0;
}

.qot-qty-input {
    width: 64px;
    padding: 8px 10px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #111;
    box-sizing: border-box;
    text-align: center;
}

.qot-col-qty input.qot-qty-input {
    margin-bottom: 0 !important;
    width: 70px;
    border-radius: 5px;
}

.qot-qty-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.qot-qty-input.qot-unavailable,
.qot-qty-input:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    border-color: #e5e7eb;
    cursor: not-allowed;
    opacity: 0.9;
}

/* Add to cart column */
.qot-col-action {
    width: 120px;
    white-space: nowrap;
}

.qot-add-to-cart {
    display: inline-block;
    font-family: Dosis, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #fff;
    background: #3b82f6;
    cursor: pointer;
    transition: background 0.2s;
}

.qot-col-action button.qot-add-to-cart {
    padding: 10px 15px;
    font-size: 14px;
    border-radius: 5px;
    line-height: 15px;
}

.qot-add-to-cart:hover {
    background: #2563eb;
    color: #fff;
}

.qot-add-to-cart.qot-unavailable,
.qot-add-to-cart:disabled {
    background: #9ca3af;
    color: #fff;
    opacity: 0.9;
    cursor: not-allowed;
}

.qot-add-to-cart.qot-unavailable:hover,
.qot-add-to-cart:disabled:hover {
    background: #9ca3af;
    color: #fff;
}

.qot-unavailable {
    color: #9ca3af;
    font-size: 13px;
}

.qot-no-results {
    padding: 2em;
    text-align: center;
    color: #6b7280;
}

/* Responsive */
@media (max-width: 992px) {
    .qot-table th,
    .qot-table td {
        padding: 12px 14px;
    }
}

@media (max-width: 768px) {
    .qot-table-wrapper {
        margin-left: -8px;
        margin-right: -8px;
        width: calc(100% + 16px);
    }
    .qot-table {
        font-size: 13px;
    }
    .qot-table th,
    .qot-table td {
        padding: 12px 10px;
    }
    .qot-col-image {
        width: 70px;
    }
    .qot-thumb,
    .qot-thumb-placeholder img {
        width: 48px;
        height: 64px;
    }
    .qot-thumb-placeholder {
        width: 48px;
        height: 64px;
    }
    .qot-col-name {
        min-width: 0;
    }
    .qot-name {
        font-size: 13px;
    }
    .qot-price-current,
    .qot-price .qot-current {
        font-size: 14px;
    }
    .qot-qty-input {
        width: 56px;
        padding: 8px;
        font-size: 13px;
    }
    .qot-add-to-cart {
        padding: 8px 14px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .qot-header {
        flex-direction: column;
        align-items: stretch;
    }
    .qot-table thead th {
        font-size: 12px;
        padding: 10px 8px;
    }
    .qot-table td {
        padding: 10px 8px;
    }
    .qot-add-to-cart {
        padding: 8px 12px;
        font-size: 12px;
    }
}
