/* List page redesign - shared visual language with homepage */

.page-content {
    position: relative;
    padding: 58px 0 40px;
    overflow: hidden;
}

.page-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 91, 255, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 91, 255, .055) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(circle at 72% 16%, black 0, transparent 48%);
    pointer-events: none;
}

.page-content > .container {
    position: relative;
}

/* Breadcrumb */
.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    padding: 9px 13px;
    border-radius: 999px;
    border: 1px solid rgba(99, 91, 255, .13);
    background: rgba(255, 255, 255, .72);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 750;
    box-shadow: 0 10px 30px rgba(20, 25, 47, .045);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 850;
}

.breadcrumb a:hover {
    color: var(--primary-dark);
}

.breadcrumb-sep {
    color: var(--muted);
}

/* Page title */
.page-title {
    max-width: 860px;
    color: var(--ink);
    font-size: clamp(38px, 6vw, 66px);
    line-height: 1;
    letter-spacing: -.065em;
    font-weight: 900;
    margin-bottom: 18px;
}

.page-subtitle {
    max-width: 780px;
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.75;
    margin-bottom: 32px;
}

#websiteCount {
    color: var(--primary);
    font-weight: 900;
}

/* Filters */
.filters {
    position: relative;
    margin: 0 0 28px;
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background:
        radial-gradient(circle at 100% 0%, rgba(99,91,255,.08), transparent 18rem),
        rgba(255,255,255,.82);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.filters-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 340px));
    justify-content: center;
    gap: 22px;
    align-items: end;
    width: 100%;
    margin-inline: auto;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.filter-select,
.search-input {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(28, 38, 73, .12);
    border-radius: 15px;
    background: rgba(255,255,255,.92);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    font-weight: 750;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.filter-select {
    padding: 11px 40px 11px 14px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2365708a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 13px center;
    background-size: 17px;
}

.search-input {
    padding: 11px 14px;
}

.filter-select:focus,
.search-input:focus {
    outline: none;
    border-color: rgba(99, 91, 255, .45);
    box-shadow: 0 0 0 5px rgba(99, 91, 255, .09);
    background: #fff;
}

/* Section heading before table */
.page-content h2 {
    color: var(--ink);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.1;
    letter-spacing: -.045em;
    font-weight: 900;
    margin: 30px 0 18px;
}

/* Table */
.products-table-container {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.86);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.products-table {
    width: 100%;
    border-collapse: collapse;
}

.products-table thead {
    background:
        linear-gradient(180deg, rgba(255,255,255,.94), rgba(247,248,252,.78));
}

.products-table th {
    padding: 18px 18px;
    color: var(--text-secondary);
    text-align: left;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .075em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(28,38,73,.08);
    white-space: nowrap;
}

.products-table th:last-child {
    text-align: center;
}

.products-table tbody tr {
    border-bottom: 1px solid rgba(28,38,73,.07);
    transition: background .2s ease;
}

.products-table tbody tr:hover {
    background: rgba(99,91,255,.045);
}

.products-table tbody tr:last-child {
    border-bottom: 0;
}

.products-table td {
    padding: 18px;
    color: var(--text-primary);
    font-size: 14px;
    vertical-align: middle;
}

.products-table td:last-child {
    text-align: center;
}

.website-name {
    color: var(--ink);
    font-weight: 900;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.check-icon,
.cross-icon {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    font-size: 14px;
}

.check-icon {
    color: var(--success);
    background: rgba(16,185,129,.09);
}

.cross-icon {
    color: var(--danger);
    background: rgba(239,68,68,.09);
}

.price {
    color: var(--ink);
    font-size: 15px;
    font-weight: 900;
    white-space: nowrap;
}

/* Quantity actions */
.action-buttons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.qty-display {
    min-width: 30px;
    color: var(--ink);
    text-align: center;
    font-size: 15px;
    font-weight: 900;
}

.btn-qty {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border: 0;
    border-radius: 13px;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.btn-qty:hover {
    transform: translateY(-2px);
}

.btn-qty.btn-minus {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 10px 22px rgba(239,68,68,.18);
}

.btn-qty.btn-plus {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 10px 22px rgba(99,91,255,.18);
}

/* Empty / loading state */
.empty-state {
    padding: 70px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.empty-state-content {
    display: grid;
    justify-items: center;
    gap: 14px;
}

.empty-state i {
    color: var(--primary);
    font-size: 42px;
    opacity: .72;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 750;
}

/* Pagination */
#pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 18px;
    border: 1px solid var(--border);
    border-top: 0;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    background: rgba(255,255,255,.82);
    box-shadow: 0 14px 34px rgba(20,25,47,.045);
}

.page-btn {
    min-width: 42px;
    height: 40px;
    padding: 0 13px;
    border: 1px solid rgba(28,38,73,.10);
    border-radius: 14px;
    background: rgba(255,255,255,.9);
    color: var(--text-primary);
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 900;
    transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

.page-btn:hover {
    transform: translateY(-2px);
    background: rgba(99,91,255,.07);
    color: var(--primary);
}

.page-btn.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 12px 26px rgba(99,91,255,.22);
}

.page-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* SEO Content */
.seo-content {
    width: min(1180px, calc(100% - 40px));
    margin: 48px auto 0;
    padding: clamp(28px, 5vw, 54px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background:
        radial-gradient(circle at 100% 0%, rgba(21,200,183,.12), transparent 22rem),
        rgba(255,255,255,.86);
    box-shadow: var(--shadow-card);
    color: var(--text-secondary);
    font-size: 15.5px;
    line-height: 1.9;
}

.seo-content h2 {
    color: var(--ink);
    font-size: clamp(24px, 3.4vw, 38px);
    line-height: 1.12;
    letter-spacing: -.045em;
    font-weight: 900;
    margin: 34px 0 14px;
}

.seo-content h2:first-child {
    margin-top: 0;
}

.seo-content p {
    margin-bottom: 18px;
}

.seo-content ul {
    margin: 0 0 20px;
    padding: 18px 18px 18px 38px;
    border-radius: 18px;
    border: 1px solid rgba(28,38,73,.07);
    background: rgba(247,248,252,.72);
}

.seo-content li {
    margin: 7px 0;
}

.seo-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 900;
}

.seo-content a:hover {
    text-decoration: underline;
}

/* Toast */
.toast-notification {
    position: fixed;
    top: 100px;
    right: 24px;
    z-index: 2400;
    min-width: 310px;
    max-width: min(420px, calc(100vw - 32px));
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(28,38,73,.10);
    background: rgba(255,255,255,.96);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
    transform: translateX(440px);
    opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
}

.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-notification.success {
    border-left: 4px solid var(--success);
}

.toast-notification.info {
    border-left: 4px solid var(--primary);
}

.toast-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 14px;
}

.toast-notification.success .toast-icon {
    color: var(--success);
    background: rgba(16,185,129,.10);
}

.toast-notification.info .toast-icon {
    color: var(--primary);
    background: rgba(99,91,255,.10);
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    color: var(--ink);
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 2px;
}

.toast-message {
    color: var(--text-secondary);
    font-size: 13px;
    word-break: break-word;
}

.toast-close {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border: 0;
    border-radius: 11px;
    background: #f1f4fb;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.toast-close:hover {
    color: var(--danger);
    background: #fff1f2;
}

/* Responsive */
@media (max-width: 1100px) {
    .filters-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filters-grid > .filter-group:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 860px) {
    .page-content {
        padding-top: 44px;
    }

    .page-title {
        font-size: 40px;
    }

    .page-subtitle {
        font-size: 15.5px;
    }

    .filters {
        padding: 20px;
        border-radius: 24px;
    }

    .filters-grid {
        grid-template-columns: 1fr;
    }

    .filters-grid > .filter-group:last-child {
        grid-column: auto;
    }

    .products-table-container {
        overflow-x: auto;
    }

    .products-table {
        min-width: 760px;
    }

    .seo-content {
        width: min(100% - 28px, 1180px);
        padding: 26px;
        border-radius: 24px;
    }
}

@media (max-width: 768px) {
    .products-table {
        min-width: 0;
    }

    .products-table thead th:nth-child(2),
    .products-table thead th:nth-child(3),
    .products-table thead th:nth-child(4),
    .products-table thead th:nth-child(5),
    .products-table thead th:nth-child(6),
    .products-table tbody td:nth-child(2),
    .products-table tbody td:nth-child(3),
    .products-table tbody td:nth-child(4),
    .products-table tbody td:nth-child(5),
    .products-table tbody td:nth-child(6) {
        display: none;
    }

    .products-table th,
    .products-table td {
        padding: 14px 10px;
        font-size: 13px;
    }

    .website-name {
        max-width: 170px;
        font-size: 13px;
    }

    .price {
        font-size: 13px;
    }

    .action-buttons {
        gap: 5px;
    }

    .btn-qty {
        width: 30px;
        height: 30px;
        border-radius: 11px;
        font-size: 12px;
    }

    .qty-display {
        min-width: 22px;
        font-size: 13px;
    }

    .toast-notification {
        top: auto;
        right: 14px;
        left: 14px;
        bottom: 18px;
        min-width: 0;
    }
}

@media (max-width: 420px) {
    .breadcrumb {
        max-width: 100%;
        flex-wrap: wrap;
    }

    .page-title {
        font-size: 34px;
    }

    .products-table th,
    .products-table td {
        padding: 12px 8px;
    }

    .website-name {
        max-width: 130px;
    }

    .seo-content h2 {
        font-size: 23px;
    }
}