/* Promotions list & detail pages */

.promotions-page {
    padding: 10px 0 30px;
    background: transparent;
}

.promotions-page .container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.promotions-header {
    text-align: center;
    margin-bottom: 22px;
}

.promotions-header h1 {
    font-size: 28px;
    font-weight: 900;
    margin: 0 0 8px;
    color: var(--secondary-color);
    letter-spacing: -0.3px;
}

.promotions-header p {
    margin: 0 auto;
    max-width: 520px;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

.promotions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 0;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.promo-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.promo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    border-color: var(--primary-color);
}

.promo-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: #f7f8fa;
    display: block;
}

.promo-content {
    padding: 14px 16px 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.promo-date {
    font-size: 11px;
    color: var(--primary-color);
    margin-bottom: 6px;
    font-weight: 600;
}

.promo-title {
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 8px;
    color: var(--secondary-color);
    line-height: 1.35;
}

.promo-short {
    font-size: 12px;
    color: #666;
    margin: 0 0 12px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.promo-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--primary-color);
}

.promo-link {
    font-weight: 700;
    color: var(--primary-color);
}

.promo-days-left {
    font-weight: 800;
    color: var(--accent-color);
    background: #fff0f0;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    white-space: nowrap;
}

.promotions-grid .no-products,
.promotions-grid .error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 14px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Promo detail */
.promo-detail-page {
    padding: 10px 0 30px;
}

.promo-detail-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.back-to-list {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: var(--transition);
}

.back-to-list:hover {
    color: var(--secondary-color);
}

.promo-detail-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    margin-bottom: 16px;
}

.promo-full-image {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    display: block;
    background: #f7f8fa;
}

.promo-detail-body {
    padding: 20px 22px 24px;
}

.promo-info-header {
    margin-bottom: 14px;
}

.promo-full-title {
    font-size: 24px;
    font-weight: 900;
    margin: 0 0 10px;
    color: var(--secondary-color);
    letter-spacing: -0.3px;
    line-height: 1.25;
}

.promo-full-date {
    display: inline-block;
    background: #f4f6f9;
    padding: 6px 12px;
    border-radius: 10px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 12px;
}

.promo-description {
    font-size: 13px;
    line-height: 1.6;
    color: #555;
}

.promo-description p {
    margin: 0 0 10px;
}

.promo-description img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 12px 0;
}

.promo-detail-products {
    margin-top: 8px;
}

.promo-detail-products h2 {
    font-size: 20px;
    font-weight: 900;
    margin: 0 0 14px;
    color: var(--secondary-color);
}

@media (max-width: 1100px) {
    .promotions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .promotions-page .container,
    .promo-detail-container {
        padding: 0 12px;
    }

    .promotions-header h1,
    .promo-full-title {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .promotions-header p {
        font-size: 14px;
        line-height: 1.45;
    }

    .promotions-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .promo-image {
        height: 150px;
    }

    .promo-content {
        padding: 14px;
    }

    .promo-title {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .promo-short {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .promo-full-image {
        max-height: 180px;
    }

    .promo-detail-body {
        padding: 12px;
    }

    .promo-description {
        font-size: 12px;
    }

    .promo-detail-products h2 {
        font-size: 16px;
    }
}
