:root {
    --border-color: #e5e7eb;
    --secondary-text: #4c5054;
    --text-main: #111827;
    --text-muted: rgba(32, 41, 57, 0.7);
    --soft: #eceff3;
    --soft-hover: #eceff3;
}

@media (max-width: 1024px) { .panel-body{ padding: 8px }
    .sidebar-content {
        display: none !important;
    }
}

.directory-hub {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.column-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 2px var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding:8px 16px;
    border-bottom: 1px solid var(--border-color);
}

.column-header h2 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.feed-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.feed-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid var(--bg);
    gap: 12px;
    transition: background 0.12s ease;
}

.feed-item:hover {
    background: #fafafa;
}

.feed-content {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.feed-item .cat-icon-wrapper svg { width: 14px; height: 14px; }

.feed-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}


.feed-title {
    font-size: 13.9px;
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.feed-title:hover {
    color: var(--primary);
}

.feed-meta {
    font-size: 12px;
    font-weight: 400;
    color: var(--secondary-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.feed-price {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-main);
    flex-shrink: 0;
}

.feed-title:hover {
    color: var(--primary);
}

.feed-empty {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12.5px;
}

.bottom-category-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 12px 0;
}

.category-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 10px;
}

.cat-card {
    background: var(--bg);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
}

.cat-info {
    display: flex;
    flex-direction: column;
}

.cat-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.cat-card:hover .cat-name {
    color: var(--primary);
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.btn-primary-block {
    display: block;
    text-align: center;
    padding: 10px 14px;
    background: var(--primary);
    color: #ffffff;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13.5px;
    text-decoration: none;
    transition: background 0.15s;
}

.btn-primary-block:hover {
    background: var(--primary-hover);
}





/* Skeleton */
@keyframes shimmer {
        0% { background-position: -200px 0; } 100% { background-position: calc(200px + 100%) 0; }
}
.skeleton-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.skeleton-icon { width: 22px; height: 22px; border-radius: 50px; background: linear-gradient(90deg, #f0f2f5 25%, #e4e7eb 50%, #f0f2f5 75%); background-size: 200px 100%; animation: shimmer 1.4s infinite linear; flex-shrink: 0; }
.skeleton-lines { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.skeleton-line { height: 11px; border-radius: 4px; background: linear-gradient(90deg, #f0f2f5 25%, #e4e7eb 50%, #f0f2f5 75%); background-size: 200px 100%; animation: shimmer 1.4s infinite linear; }
.skeleton-line-sub { height: 9px; }




.trust-section-header {
    margin: 8px 0 0 0;
    text-align: left;
}
.trust-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 14px 0;
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.trust-card-header {
    background: white;
}
.trust-card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}
.trust-card-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--secondary-text);
    margin: 0 0 12px 0;
    line-height: 1.4;
}
.trust-card-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}





.best-deals-rail {
    padding: 12px;
    margin: 0;
}

.best-deals-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.best-deals-header h2 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.best-deals-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rail-arrow-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--bg);
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.rail-arrow-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.best-deals-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.best-deals-track::-webkit-scrollbar {
    display: none;
}

.deal-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
    background: var(--bg);
    border: none;
    border-radius: 8px;
    padding: 10px 12px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.deal-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.deal-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: var(--secondary-text);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.deal-cat-badge .cat-icon-wrapper svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.deal-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    flex-shrink: 0;
}

.deal-card-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.deal-card:hover .deal-card-title {
    color: var(--primary);
}

.deal-card-meta {
    font-size: 12px;
    color: var(--secondary-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.skeleton-deal-card {
    pointer-events: none;
    justify-content: space-between;
    min-height: 82px;
}

.skeleton-deal-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.skeleton-bar {
    border-radius: 4px;
    background: linear-gradient(90deg, #e2e6ec 25%, #d3d9e2 50%, #e2e6ec 75%);
    background-size: 200px 100%;
    animation: shimmer 1.4s infinite linear;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .two-column-grid {
        grid-template-columns: 1fr;
    }

    .category-directory-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 8px;
    }

    .cat-card {
        padding: 13px;
    }

    .cat-name {
        font-size: 12px;
    }
    .trust-grid {
        grid-template-columns: 1fr;
    }
}