/* Custom Card Widget Styles - V2 (Golden Dark Theme) */
.custom-card-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* فاصله بین کارت‌ها کمتر شد */
    justify-content: center;
}

.custom-card {
    background-color: #1a1a1a; /* پس‌زمینه مشکی */
    border: 1px solid #C09A4D; /* کادر طلایی تیره‌تر و نازک‌تر */
    border-radius: 6px;
    padding: 15px; /* فاصله داخلی کمتر شد */
    text-align: center;
    width: 200px; /* عرض هر کارت کوچکتر شد */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.custom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(192, 154, 77, 0.2); /* سایه طلایی ملایم در هاور */
}

.card-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 12px;
}

.card-title {
    color: #f0f0f0; /* رنگ عنوان: سفید */
    font-size: 1em; /* اندازه فونت عنوان کوچکتر شد */
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 600;
}

.card-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px; /* فاصله بین دکمه‌ها کمتر شد */
    margin-top: auto;
}

.card-button {
    display: inline-block;
    padding: 8px 15px; /* پدینگ دکمه‌ها کمتر شد */
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em; /* اندازه فونت دکمه‌ها کوچکتر شد */
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

/* 
  استایل هر دو دکمه یکسان است: پس‌زمینه شفاف، متن سفید، کادر طلایی
  در حالت هاور: پس‌زمینه طلایی، متن مشکی
*/

.info-button,
.order-button {
    background-color: transparent;
    color: #f0f0f0; /* رنگ متن دکمه: سفید */
    border: 1px solid #C09A4D; /* کادر طلایی تیره */
}

.info-button:hover,
.order-button:hover {
    background-color: #C09A4D; /* پس‌زمینه طلایی در هاور */
    color: #1a1a1a; /* رنگ متن مشکی در هاور */
    border-color: #C09A4D;
}

/* breakpoint برای موبایل‌های خیلی کوچک (تک ستونه) */
@media (max-width: 479px) {
    .custom-card {
        /* 
         ** در این حالت، هر آیتم تمام عرض را می‌گیرد **
         * برای زیبایی بیشتر، 90% عرض را به آن می‌دهیم تا کمی فاصله از لبه‌ها داشته باشد.
        */
        width: 90% !important;
        margin: 15px auto; /* مارجین بالا و پایین و وسط‌چین شدن افقی */
    }
}