@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

:root {
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --accent: #e50914; /* قرمز نتفلیکسی */
    --text-main: #ffffff;
    --text-muted: #b3b3b3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif !important; /* اعمال اجباری فونت */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* Navbar */
.navbar {
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #333;
    padding: 1rem 0;
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 900; font-size: 1.5rem; color: var(--accent); text-decoration: none; }
.nav-links a { color: var(--text-main); text-decoration: none; margin-left: 15px; transition: 0.3s; }
.cart-badge { background: var(--accent); color: white; border-radius: 50%; padding: 2px 8px; font-size: 0.8rem; margin-right: 5px; }

/* Products Grid - 2 Columns */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* دقیقا دو ستون */
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s;
    border: 1px solid #222;
}

.product-card:hover { transform: translateY(-5px); border-color: #444; }

.product-image img {
    width: 100%;
    height: 400px; /* ارتفاع ثابت برای یکدست شدن */
    object-fit: cover;
    display: block;
}

.product-info { padding: 20px; }
.product-info h3 { margin-bottom: 10px; font-size: 1.4rem; }
.product-info p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 15px; }
.product-footer { display: flex; justify-content: space-between; align-items: center; }
.price { font-size: 1.2rem; font-weight: bold; }

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
    text-decoration: none;
    display: inline-block;
}
.btn-primary { background: var(--text-main); color: black; }
.btn-primary:hover { background: #ddd; }
.btn-outline { border: 1px solid #555; background: transparent; color: white; }

/* Cart Page Styles */
.cart-item {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 8px;
}
.cart-item img { width: 80px; height: 80px; object-fit: cover; border-radius: 6px; margin-left: 20px; }
.cart-details { flex-grow: 1; }
.quantity-controls { display: flex; align-items: center; gap: 10px; }
.qty-btn { width: 30px; height: 30px; background: #333; border: none; color: white; cursor: pointer; border-radius: 4px; }
.cart-summary { margin-top: 30px; padding: 20px; background: #1a1a1a; border-radius: 8px; text-align: left; }

/* Responsive */
@media (max-width: 768px) {
    .products-grid { grid-template-columns: 1fr; } /* در موبایل تک ستون */
}
