/* ============================
   OYA‑X GlassMode Slim (FIXED)
   ============================ */

body {
    background: #001A36;
    margin: 0;
    padding: 0;
    font-family: IRANSans, sans-serif;
    direction: rtl;
    color: white;
}

/* ---------------------
   فیلترها
---------------------- */
.filter-box {
    width: 90%;
    margin: 15px auto 10px auto;
    padding: 12px;

    background: rgba(0, 46, 93, 0.22);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 10px;

    box-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
}

.filter-box form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.filter-input {
    padding: 7px 10px;
    border-radius: 6px;
    background: rgba(0, 26, 54, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: white;
    font-size: 13px;
    min-width: 110px;
}

.filter-btn {
    padding: 7px 16px;
    background: rgba(212, 175, 55, 0.85);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.filter-btn:hover {
    background: #D4AF37;
}

/* ---------------------
   گرید محصولات
---------------------- */
.products-container {
    width: 90%;
    margin: 15px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
}

/* ---------------------
   کارت محصول
---------------------- */
.product-card {
    background: rgba(0, 46, 93, 0.22);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 10px;

    padding: 10px;
    text-align: center;

    transition: 0.25s;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.product-image {
    width: 100%;
    height: 140px;
    object-fit: cover;

    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.4);

    margin-bottom: 8px;
}

.product-name {
    font-size: 14px;
    color: #D4AF37;
    margin: 5px 0;
}

.product-category {
    font-size: 12px;
    opacity: 0.8;
}

.product-price {
    font-size: 14px;
    margin-top: 5px;
}

.buy-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 7px 16px;

    background: rgba(212, 175, 55, 0.9);
    color: black;

    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;

    transition: 0.25s;
}

.buy-btn:hover {
    background: #D4AF37;
}

/* ---------------------
   صفحه جزئیات
---------------------- */
.detail-container {
    width: 88%;
    margin: 20px auto;
    padding: 18px;

    background: rgba(0, 46, 93, 0.22);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 12px;

    backdrop-filter: blur(10px);
}

.detail-image {
    width: 100%;
    height: 250px;
    object-fit: cover;

    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.4);
}

.detail-title {
    font-size: 20px;
    margin: 12px 0;
    color: #D4AF37;
}

.detail-description {
    margin-top: 10px;
    line-height: 1.7;
}

.detail-buy-btn {
    margin-top: 15px;
    display: inline-block;
    padding: 9px 22px;

    background: rgba(212, 175, 55, 0.9);
    border-radius: 8px;

    text-decoration: none;
    color: black;
    font-size: 14px;
}

.detail-buy-btn:hover {
    background: #D4AF37;
}

/* ============================
     کارت‌های سبد خرید
   ============================ */

.cart-container {
    max-width: 700px;
    margin: 0 auto;
}

.cart-item-card {
    display: flex;
    gap: 15px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
}

.cart-item-card img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
}

.cart-item-info {
    color: #fff;
}

/* دکمه‌های افزایش/کاهش تعداد */
.cart-quantity-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;

    background: rgba(212, 175, 55, 0.9);
    color: black;
    text-decoration: none;

    border-radius: 6px;
    font-size: 22px;
    font-weight: bold;

    transition: 0.2s;
}

.qty-btn:hover {
    background: #D4AF37;
    transform: translateY(-1px);
}

.qty-number {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    min-width: 20px;
    text-align: center;
}

.cart-summary {
    background: rgba(255,255,255,0.12);
    color: #fff;
    padding: 20px;
    margin-top: 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}
