﻿/* wwwroot/themes/t01-anime/donations-store.css (CLEAN UNIFIED) */

:root {
    --ds-card-h: 440px; /* ارتفاع البطاقة */
    --ds-card-img-h: 170px; /* ارتفاع الصورة */
}

/* ===== Page ===== */
.ds-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 16px 70px;
    direction: rtl;
}

/* ===== Banner ===== */
.ds-banner {
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(0,0,0,.08);
}

.ds-banner__inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 14px;
    align-items: stretch;
}

.ds-banner__media {
    min-height: 170px;
    background: radial-gradient(circle at 30% 40%, rgba(255,255,255,.9) 0 45%, transparent 46%), linear-gradient(135deg, rgba(0,0,0,.06), rgba(0,0,0,.02));
}

.ds-banner__content {
    padding: 18px 18px 16px;
}

.ds-banner__title {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 900;
    background: rgba(20,157,128,.18);
    border: 1px solid rgba(20,157,128,.35);
    margin-bottom: 10px;
}

.ds-banner__list {
    margin: 0;
    padding: 0 18px 0 0;
    list-style: none;
}

    .ds-banner__list li {
        position: relative;
        padding-right: 18px;
        margin: 8px 0;
        font-size: 13px;
        opacity: .9;
        line-height: 1.7;
    }

        .ds-banner__list li::before {
            content: "";
            position: absolute;
            right: 0;
            top: 10px;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: rgba(245,158,11,.9);
        }

.ds-banner__note {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,.08);
    font-size: 12px;
    color: rgba(20,157,128,1);
    font-weight: 800;
}

/* ===== Breadcrumb ===== */
.ds-breadcrumb {
    margin: 18px 0 10px;
    font-size: 13px;
    opacity: .85;
    text-align: right;
}

.ds-breadcrumb__sep {
    padding: 0 6px;
}

/* ===== Layout (content right, sidebar left) ===== */
.ds-main {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 14px;
    margin-top: 12px;
}

.ds-content {
    order: 1;
}

.ds-sidebar {
    order: 2;
}

/* ===== Sidebar ===== */
.ds-sidebox {
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(0,0,0,.06);
}

.ds-side-link {
    display: block;
    padding: 12px 14px;
    text-decoration: none;
    color: rgba(0,0,0,.7);
    font-weight: 800;
    font-size: 13px;
    border-bottom: 1px solid rgba(0,0,0,.06);
    position: relative;
}

    .ds-side-link:hover {
        background: rgba(0,0,0,.02);
    }

    .ds-side-link.is-active {
        background: rgba(60,51,64,.08);
        color: rgba(0,0,0,.85);
    }

        .ds-side-link.is-active::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 4px;
            background: #3c3340;
        }

/* Share */
.ds-share {
    padding: 12px 14px 14px;
}

.ds-share__title {
    font-weight: 900;
    font-size: 13px;
    margin: 2px 0 10px;
}

.ds-share__icons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ds-share__btn {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

    .ds-share__btn:nth-child(1) {
        background: #25D366;
    }

    .ds-share__btn:nth-child(2) {
        background: #E60023;
    }

    .ds-share__btn:nth-child(3) {
        background: #0A66C2;
    }

    .ds-share__btn:nth-child(4) {
        background: #1877F2;
    }

    .ds-share__btn:nth-child(5) {
        background: #111;
    }

    .ds-share__btn:nth-child(6) {
        background: #64748b;
    }

/* ===== Filters ===== */
.ds-filters {
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    box-shadow: 0 10px 22px rgba(0,0,0,.06);
}

.ds-search {
    flex: 1;
    min-width: 220px;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 6px;
    padding: 10px 12px;
    outline: none;
    font-weight: 800;
    font-size: 13px;
}

.ds-select-wrap {
    min-width: 170px;
}

.ds-select {
    width: 100%;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 6px;
    padding: 10px 12px;
    outline: none;
    font-weight: 800;
    font-size: 13px;
    background: #fff;
}

.ds-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 13px;
    color: rgba(0,0,0,.75);
    white-space: nowrap;
}

    .ds-check input {
        width: 16px;
        height: 16px;
    }

.ds-filter-btn {
    border: none;
    background: #3c3340;
    color: #fff;
    font-weight: 900;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
}

    .ds-filter-btn:hover {
        filter: brightness(.95);
    }

/* ===== Cards grid ===== */
.ds-cards {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width:1200px) {
    .ds-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width:740px) {
    .ds-cards {
        grid-template-columns: 1fr;
    }
}

.ds-empty {
    padding: 18px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 8px;
    font-weight: 800;
    opacity: .85;
}

.ds-card {
    padding-left: 0 !important;
    position: static !important;
}

/* ===== Unified Card sizing ===== */
.ds-page .qb-project-card {
    height: var(--ds-card-h);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0 !important;
}

    /* ===== Image area (root fix) ===== */
    .ds-page .qb-project-card .room-image-box,
    .ds-page .qb-project-card .qb-project-image {
        height: var(--ds-card-img-h);
        min-height: var(--ds-card-img-h);
        max-height: var(--ds-card-img-h);
        padding: 0;
        margin: 0;
        overflow: hidden;
        display: block;
        background: rgba(0,0,0,.04);
    }

        .ds-page .qb-project-card .room-image-box img,
        .ds-page .qb-project-card .qb-project-image img {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;
        }

/* Badge position (keep theme styling, only position) */
.ds-page .qb-project-badge {
    left: auto;
    right: 205px;
}

/* ===== Body layout ===== */
.ds-page .qb-project-card .room-info-box,
.ds-page .qb-project-card .qb-project-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 10px;
    padding-bottom: 14px;
}

/* Title clamp */
.ds-page .qb-project-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
   
    font-size: 13px;
    
}

/* Meta smaller */
.ds-page .qb-project-meta {
    font-size: 14px;
   
}

/* Amounts (2×2 fixed) */
.ds-page .qb-amounts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    grid-auto-rows: 34px;
    gap: 6px;
    margin: 8px 0;
    height: 74px;
    overflow: hidden;
}

.ds-page .qb-amount-btn {
    height: 34px;
    padding: 0 10px;
    font-size: 12px;
    line-height: 34px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Amount input + ريال */
.ds-page .qb-amount-input-wrap {
    position: relative;
   
}

.ds-page .qb-amount-input {
    padding: 8px 10px;
   
    font-size: 12px;
}

.ds-page .qb-currency {
    position: absolute;
    right: 233px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-weight: 900;
    opacity: .85;
}
.ds-page .qb-amount-input-wrap {
    position: relative !important;
}

    .ds-page .qb-amount-input-wrap .qb-currency {
        position: absolute !important;
        right: 233px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        pointer-events: none !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 22px !important;
        height: 22px !important;
    }

        .ds-page .qb-amount-input-wrap .qb-currency img {
            width: 100% !important;
            height: 100% !important;
            object-fit: contain !important;
            display: block !important;
        }

/* اترك مساحة داخل input عشان ما يتداخل مع الرمز */
.ds-page .qb-amount-input {
   
}

/* Actions pinned bottom */
.ds-page .qb-project-actions {
    margin-top: auto !important;
    min-height: 44px;
    align-items: center;
}

.ds-page .qb-mini-btn {
    width: 34px !important;
    height: 34px !important;
}

.ds-page .room-book-btn {
    padding: 8px 10px !important;
    font-size: 12px !important;
}

/* ===== Responsive layout ===== */
@media (max-width:980px) {
    .ds-main {
        grid-template-columns: 1fr;
    }

    .ds-content {
        order: 1;
    }

    .ds-sidebar {
        order: 2;
    }
}

@media (max-width:640px) {
    .ds-banner__inner {
        grid-template-columns: 1fr;
    }

    .ds-banner__media {
        min-height: 140px;
    }
}
