/* ==================================================
   1. Price Down Today Page
================================================== */

.page-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}


/* ==================================================
   2. Breadcrumb
================================================== */

.breadcrumb {
    margin-bottom: 20px;
    font-size: 13px;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumb-item a {
    text-decoration: none;
}


/* ==================================================
   3. Page Header
================================================== */

.price-down-header {
    margin-bottom: 20px;
}

.price-down-header-label {
    margin: 0 0 5px;
    color: #777;
    font-size: 13px;
}

.price-down-title {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.price-down-description {
    margin: 0 0 10px;
    color: #555;
    font-size: 14px;
    line-height: 1.7;
}

.price-down-count,
.price-down-updated-at {
    margin: 4px 0 0;
    color: #666;
    font-size: 13px;
}

.price-down-count strong {
    color: #222;
}


/* ==================================================
   4. Category Navigation
================================================== */

.price-down-category-navigation {
    margin-bottom: 18px;
}

.price-down-category-list {
    display: grid;
    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.price-down-category-item {
    min-width: 0;
}

.price-down-category-link {
    display: flex;
    width: 100%;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid #d8dde3;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition:
        border-color 0.15s ease,
        background-color 0.15s ease,
        color 0.15s ease;
}

a.price-down-category-link:hover {
    border-color: #90caf9;
    background: #f3f9ff;
    color: #1565c0;
    text-decoration: none;
}

.price-down-category-link.is-current {
    border-color: #1976d2;
    background: #1976d2;
    color: #fff;
}


/* ==================================================
   5. Comparison Period
================================================== */

.price-down-period {
    margin-bottom: 18px;
    padding: 10px 13px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    background: #fafbfc;
}

.price-down-period-text {
    margin: 0;
    color: #555;
    font-size: 12px;
    line-height: 1.6;
}


/* ==================================================
   6. List Section
================================================== */

.price-down-section {
    min-width: 0;
}

.price-down-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.price-down-section-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.price-down-section-count {
    flex-shrink: 0;
    margin: 0;
    color: #666;
    font-size: 13px;
    line-height: 1.4;
}

.price-down-list {
    display: grid;
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}


/* ==================================================
   7. Empty State
================================================== */

.price-down-empty-section {
    min-width: 0;
}

.price-down-empty {
    padding: 48px 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    text-align: center;
}

.price-down-empty-title {
    margin: 0;
    color: #222;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
}

.price-down-empty-description {
    margin: 10px 0 0;
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}

.price-down-empty-link {
    margin: 20px 0 0;
}


/* ==================================================
   8. Bottom Navigation
================================================== */

.price-down-bottom-navigation {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.price-down-bottom-navigation .button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
}

.price-down-bottom-navigation .button-primary {
    background: #1976d2;
    color: #fff;
}

.price-down-bottom-navigation .button-secondary {
    background: #f3f3f3;
    color: #333;
}


/* ==================================================
   9. Visually Hidden
================================================== */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ==================================================
   10. Tablet
================================================== */

@media (max-width: 1000px) {

    .price-down-list {
        grid-template-columns: 1fr;
    }
}


/* ==================================================
   11. Mobile
================================================== */

@media (max-width: 767px) {

    .page-content {
        padding: 16px;
    }

    .breadcrumb {
        margin-bottom: 16px;
        font-size: 12px;
    }

    .price-down-header {
        margin-bottom: 16px;
    }

    .price-down-header-label {
        font-size: 12px;
    }

    .price-down-title {
        margin-bottom: 6px;
        font-size: 25px;
        line-height: 1.3;
    }

    .price-down-description {
        font-size: 13px;
        line-height: 1.6;
    }

    .price-down-count,
    .price-down-updated-at {
        font-size: 12px;
    }

    .price-down-category-navigation {
        margin-bottom: 14px;
    }

    .price-down-category-list {
        gap: 5px;
    }

    .price-down-category-link {
        min-height: 38px;
        padding: 7px 5px;
        font-size: 11px;
    }

    .price-down-period {
        margin-bottom: 15px;
        padding: 8px 10px;
    }

    .price-down-period-text {
        font-size: 11px;
    }

    .price-down-section-heading {
        align-items: flex-end;
        margin-bottom: 10px;
    }

    .price-down-section-title {
        font-size: 17px;
    }

    .price-down-section-count {
        font-size: 11px;
    }

    .price-down-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .price-down-empty {
        padding: 36px 16px;
    }

    .price-down-empty-title {
        font-size: 17px;
    }

    .price-down-empty-description {
        font-size: 12px;
    }

    .price-down-bottom-navigation {
        flex-direction: column;
        margin-top: 24px;
    }

    .price-down-bottom-navigation .button {
        width: 100%;
        text-align: center;
    }
}


/* ==================================================
   12. Small Mobile
================================================== */

@media (max-width: 380px) {

    .page-content {
        padding: 12px;
    }

    .price-down-title {
        font-size: 22px;
    }

    .price-down-category-link {
        min-height: 35px;
        padding: 6px 3px;
        font-size: 10px;
    }

    .price-down-section-title {
        font-size: 16px;
    }

    .price-down-section-count {
        font-size: 10px;
    }
}