/* ==========================================================================
   Scoped Product Series Block - FINAL VERSION (Full-width Mobile Buttons)
   ========================================================================== */

.product-series {
    --color-primary: #003366;
    --color-secondary: #E85A4F;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-background: #f8f9fa;
    --color-card-bg: #ffffff;
    --color-border: #dee2e6;
    --font-family-base: 'Vazirmatn', sans-serif;
    --line-height-base: 1.7;
    --spacing-unit: 1rem;
    --border-radius: 8px;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
    --transition-speed: 0.3s;
    font-family: var(--font-family-base);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background-color: var(--color-background);
    padding: calc(var(--spacing-unit) * 4) 0;
}

.product-series *,
.product-series *::before,
.product-series *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.product-series .container {
    max-width: 1200px;
    margin: 0 auto;
}

.product-series h2, 
.product-series h3, 
.product-series h4 {
    line-height: 1.3;
    font-weight: 700;
    color: var(--color-primary);
}

.product-series a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.product-series a:hover {
    color: var(--color-primary);
}

.product-series__header {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.product-series__header h2 { font-size: 2rem; margin-bottom: 0.5rem; }
.product-series__header p { font-size: 1.1rem; color: var(--color-text-light); max-width: 700px; margin: 0 auto; }
.product-series__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }

.product-card {
    background-color: var(--color-card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.product-card:hover { transform: translateY(-5px); box-shadow: var(--card-shadow-hover); }

.product-card__figure {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #eee;
}

.product-card__figure a {
    pointer-events: none;
    cursor: default;
}

.product-card__figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card__body { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.product-card__title { font-size: 1.25rem; margin-bottom: 0.75rem; }
.product-card__description { color: var(--color-text-light); font-size: 0.95rem; margin-bottom: 1rem; flex-grow: 1; }

.product-card__meta { margin-bottom: 1rem; }
.product-card__meta h4 {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.25rem;
}

.product-card__downloads,
.product-card__specs-list {
    list-style: none;
    padding-right: 0;
    font-size: 0.9rem;
}

.product-card__downloads li,
.product-card__specs-list li {
    position: relative;
    padding-right: 1.5rem;
    margin-bottom: 0.5rem;
}

.product-card__downloads li::before,
.product-card__specs-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    top: 0;
    color: var(--color-secondary);
    font-weight: bold;
}

/* UPDATED: Buttons are now full-width and stacked */
.product-card__actions {
    display: grid;
    grid-template-columns: 1fr; /* Changed to a single column */
    gap: 0.5rem; /* Reduced gap for stacked buttons */
    margin-top: auto;
    padding-top: 1rem;
}

.btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    width: 100% !important; /* Ensure it takes full width of the grid column */
    padding: 0.65rem 1rem !important;
    border: 1px solid #8F151E !important;
    border-radius: var(--border-radius) !important;
    background: linear-gradient(180deg, #990000 0%, #8F151E 100%) !important;
    color: #FFFFFF !important;
    font-family: var(--font-family-base) !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    text-decoration: none !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out !important;
}

.btn:hover {
    color: #FFFFFF !important;
    text-decoration: none !important;
    background: linear-gradient(180deg, #a31c1c 0%, #990000 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.btn:active {
    transform: translateY(1px) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}