/* Archive / Category — v9: small-BIG-small + list/sidebar */

/* ── Featured row: small | BIG | small ── */
.archive-featured {
    padding: 90px 0 48px;
    background: var(--gray-50);
}
.feat-row {
    display: grid;
    grid-template-columns: 1fr 1.6fr 1fr;
    gap: 24px;
    align-items: start;
}

/* All featured cards */
.feat-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
}
.feat-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}
.feat-card-img {
    display: block;
    overflow: hidden;
}
.feat-card-img img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.5s ease;
}
.feat-card:hover .feat-card-img img { transform: scale(1.04); }

.feat-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
}
.feat-card-body {
    padding: 16px 18px 16px;
    text-align: center;
}

/* Big center card */
.feat-card--big .feat-card-img {
    aspect-ratio: 4/3;
    border-radius: var(--radius);
}
.feat-card--big .feat-card-body { padding: 20px 12px 12px; }
.feat-card--big h2 {
    font-family: var(--font);
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.3;
    margin: 8px 0 10px;
    letter-spacing: -0.3px;
}

/* Small side cards */
.feat-card--small .feat-card-img {
    aspect-ratio: 4/3;
    border-radius: var(--radius);
}
.feat-card--small h2 {
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.35;
    margin: 6px 0 6px;
}

/* Featured links */
.feat-card h2 a {
    color: inherit !important;
    text-decoration: none !important;
    background-image: linear-gradient(var(--cta), var(--teal, #14b8a6));
    background-size: 0% 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.4s ease;
    padding-bottom: 2px;
}
.feat-card h2 a:hover { background-size: 100% 2px; }

/* Category badge */
.feat-cat {
    display: inline-flex; align-items: center;
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.8px;
    padding: 4px 12px; border-radius: 4px;
    background: var(--gray-100); color: var(--gray-600) !important;
    text-decoration: none !important;
    transition: opacity 0.2s;
}
.feat-cat:hover { opacity: 0.7; }

/* Category colors */
.feat-cat[data-cat="zdravlje"] { background: #eff6ff; color: #3b82f6 !important; }
.feat-cat[data-cat="mamamami"] { background: #fdf2f8; color: #ec4899 !important; }
.feat-cat[data-cat="recepti-sto-danas-kuhati"] { background: #fff7ed; color: #f97316 !important; }
.feat-cat[data-cat="stomatologija"] { background: #f5f3ff; color: #8b5cf6 !important; }
.feat-cat[data-cat="lijekovi"] { background: #f3f4f6; color: #111827 !important; }
.feat-cat[data-cat="lifestyle-zdrav-zivot"] { background: #fefce8; color: #ca8a04 !important; }
.feat-cat[data-cat="ljepota"] { background: #fef2f2; color: #ef4444 !important; }
.feat-cat[data-cat="edoktor-price"] { background: #f0fdfa; color: #14b8a6 !important; }

.feat-excerpt {
    font-size: 13px; color: var(--gray-500);
    line-height: 1.55; margin: 0 0 8px;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.feat-meta {
    font-size: 12px; color: var(--gray-400); font-weight: 500;
}
.feat-meta a { color: inherit; text-decoration: none; transition: color 0.2s; }
.feat-meta a:hover { color: var(--primary); }

/* ── Below: list + sidebar ── */
.archive-below {
    padding: 48px 0 80px;
    background: var(--white);
    border-top: 1px solid var(--gray-100);
}
.archive-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
}

/* List cards */
.list-card {
    display: flex;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--gray-100);
    align-items: flex-start;
}
.list-card:first-child { padding-top: 0; }
.list-card-img {
    flex-shrink: 0;
    width: 220px;
    height: 150px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: block;
}
.list-card-img img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.4s ease;
}
.list-card:hover .list-card-img img { transform: scale(1.04); }

.list-card-body { flex: 1; min-width: 0; }
.list-card-body h3 {
    font-family: var(--font);
    font-size: 17px; font-weight: 700;
    color: var(--gray-900); line-height: 1.35;
    margin: 6px 0 8px;
}
.list-card-body h3 a {
    color: inherit !important; text-decoration: none !important;
    background-image: linear-gradient(var(--cta), var(--teal, #14b8a6));
    background-size: 0% 2px; background-position: 0 100%;
    background-repeat: no-repeat; transition: background-size 0.4s ease;
    padding-bottom: 2px;
}
.list-card-body h3 a:hover { background-size: 100% 2px; }

.list-card-excerpt {
    font-size: 14px; color: var(--gray-500);
    line-height: 1.55; margin: 0 0 10px;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.list-card-meta {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--gray-400); font-weight: 500;
}
.list-card-meta .dot { color: var(--gray-300); }
.list-card-meta a { color: var(--gray-500); text-decoration: none; transition: color 0.2s; }.list-card-meta a:hover { color: var(--primary); }

/* ── Sidebar ── */
.archive-sidebar {
    position: sticky;
    top: 90px;
}
.sidebar-widget {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
}
.sidebar-widget h3 {
    font-family: var(--font);
    font-size: 13px; font-weight: 800;
    color: var(--gray-900); text-transform: uppercase;
    letter-spacing: 1px; margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--gray-900);
}

/* Sidebar featured (Zdrava hrana) */
.sidebar-widget--featured { padding: 0; overflow: hidden; }
.sidebar-feat-img {
    display: block; aspect-ratio: 16/10; overflow: hidden;
}
.sidebar-feat-img img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.4s ease;
}
.sidebar-widget--featured:hover .sidebar-feat-img img { transform: scale(1.04); }
.sidebar-feat-body {
    padding: 16px 20px 20px;
}
.sidebar-feat-body h4 {
    font-family: var(--font);
    font-size: 15px; font-weight: 700;
    color: var(--gray-900); line-height: 1.35;
    margin: 8px 0 0;
}
.sidebar-feat-body h4 a {
    color: inherit !important; text-decoration: none !important;
    transition: color 0.2s;
}
.sidebar-feat-body h4 a:hover { color: var(--cta) !important; }

/* Zanimljivo items */
.sidebar-zan-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
}
.sidebar-zan-item:first-of-type { padding-top: 0; }
.sidebar-zan-item:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-zan-item .feat-cat { margin-bottom: 6px; }
.sidebar-zan-item h4 {
    font-family: var(--font);
    font-size: 14px; font-weight: 700;
    color: var(--gray-900) !important; line-height: 1.4;
    margin: 0 0 6px;
}
.sidebar-zan-item h4 a {
    color: var(--gray-900) !important; text-decoration: none !important;
    background-image: linear-gradient(var(--cta), var(--teal, #14b8a6));
    background-size: 0% 2px; background-position: 0 100%;
    background-repeat: no-repeat; transition: background-size 0.4s ease;
    padding-bottom: 1px;
}
.sidebar-zan-item h4 a:hover { background-size: 100% 2px; }
.sidebar-zan-item p {
    font-size: 13px; color: var(--gray-500);
    line-height: 1.5; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}

/* Recepti sidebar */
.sidebar-recipe {
    margin-bottom: 16px;
}
.sidebar-recipe:last-child { margin-bottom: 0; }
.sidebar-recipe-img {
    display: block; aspect-ratio: 16/10;
    border-radius: var(--radius-xs); overflow: hidden;
    margin-bottom: 10px;
}
.sidebar-recipe-img img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.4s ease;
}
.sidebar-recipe:hover .sidebar-recipe-img img { transform: scale(1.04); }
.sidebar-recipe-body h4 {
    font-family: var(--font);
    font-size: 14px; font-weight: 700;
    color: var(--gray-900); line-height: 1.4;
    margin: 6px 0 0;
}
.sidebar-recipe-body h4 a {
    color: inherit !important; text-decoration: none !important;
    transition: color 0.2s;
}
.sidebar-recipe-body h4 a:hover { color: var(--cta) !important; }

/* CTA widget */
.sidebar-widget--cta {
    background: linear-gradient(135deg, #eff6ff, #f0fdfa);
    border-color: rgba(59,130,246,0.15);
    text-align: center;
}
.sidebar-cta-icon {
    width: 56px; height: 56px;
    background: var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
    box-shadow: 0 2px 8px rgba(59,130,246,0.1);
}
.sidebar-widget--cta h4 {
    font-family: var(--font);
    font-size: 17px; font-weight: 700;
    color: var(--gray-900); margin: 0 0 8px;
}
.sidebar-widget--cta p {
    font-size: 13px; color: var(--gray-500);
    line-height: 1.5; margin: 0 0 16px;
}

/* Between CTA (MamaMami trudnoca etc) */
.between-cta {
    padding: 24px 0;
}
.between-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    background: linear-gradient(135deg, #fdf2f8, #fce7f3);
    border: 1px solid rgba(236,72,153,0.15);
    border-radius: var(--radius);
    padding: 32px 36px;
}
.between-cta-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #ec4899;
    background: rgba(236,72,153,0.1);
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 10px;
}
.between-cta-text h3 {
    font-family: var(--font);
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 8px;
}
.between-cta-text p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.55;
    margin: 0 0 18px;
    max-width: 480px;
}
.between-cta-visual {
    flex-shrink: 0;
    opacity: 0.8;
}
@media (max-width: 768px) {
    .between-cta-inner { flex-direction: column; padding: 24px 20px; gap: 16px; text-align: center; }
    .between-cta-text p { max-width: 100%; }
    .between-cta-visual { display: none; }
}

/* ── Pagination ── */
.archive-pagination {
    display: flex; justify-content: center;
    gap: 6px; margin-top: 40px;
}
.archive-pagination a,
.archive-pagination span {
    display: flex; align-items: center; justify-content: center;
    min-width: 42px; height: 42px; padding: 0 14px;
    border-radius: var(--radius-xs);
    font-family: var(--font);
    font-size: 14px; font-weight: 600;
    text-decoration: none !important;
    transition: all 0.25s;
}
.archive-pagination a {
    color: var(--gray-600) !important;
    background: var(--white);
    border: 1px solid var(--gray-200);
}
.archive-pagination a:hover {
    border-color: var(--cta);
    color: var(--cta) !important;
}
.archive-pagination .current {
    background: linear-gradient(135deg, #3b82f6, #14b8a6);
    color: #fff !important; border: none;
    box-shadow: 0 4px 14px rgba(59,130,246,0.2);
}

/* ── Entrance animations ── */
.feat-card {
    opacity: 0; transform: translateY(16px);
    animation: archFade 0.5s ease-out forwards;
}
.feat-row .feat-card:nth-child(1) { animation-delay: 0.05s; }
.feat-row .feat-card:nth-child(2) { animation-delay: 0.15s; }
.feat-row .feat-card:nth-child(3) { animation-delay: 0.25s; }
.list-card {
    opacity: 0; transform: translateY(12px);
    animation: archFade 0.4s ease-out forwards;
}
.list-card:nth-child(1) { animation-delay: 0.1s; }
.list-card:nth-child(2) { animation-delay: 0.18s; }
.list-card:nth-child(3) { animation-delay: 0.26s; }
.list-card:nth-child(4) { animation-delay: 0.34s; }
.list-card:nth-child(n+5) { animation-delay: 0.4s; }

@keyframes archFade {
    to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .archive-layout { grid-template-columns: 1fr; gap: 32px; }
    .archive-sidebar { position: static; }
}
@media (max-width: 768px) {
    .archive-top-bg { padding-top: 70px; }
    .archive-cat-header h1 { font-size: 26px; }
    .feat-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    /* Featured cards: white bg box with padding */
    .feat-card { background: var(--white); border-radius: var(--radius); overflow: hidden; }
    .feat-card--big .feat-card-img { aspect-ratio: 16/9; border-radius: 0; }
    .feat-card--big .feat-card-body { padding: 16px 20px 20px; }
    .feat-card--small { display: flex; gap: 14px; flex-direction: row; padding: 14px; align-items: center; }
    .feat-card--small .feat-card-img { width: 110px; height: 85px; aspect-ratio: auto; border-radius: var(--radius-xs); flex-shrink: 0; }
    .feat-card--small .feat-card-body { text-align: left; padding: 0; }
    .feat-card--small .feat-excerpt { display: none; }
    .list-card { flex-direction: column; gap: 12px; }
    .list-card-img { width: 100%; height: 200px; }
    /* Last 4 articles: compact horizontal (image left, text right) */
    .archive-main article.list-card:nth-last-of-type(-n+4) { flex-direction: row; gap: 14px; }
    .archive-main article.list-card:nth-last-of-type(-n+4) .list-card-img { width: 110px; height: 80px; flex-shrink: 0; }
    .archive-main article.list-card:nth-last-of-type(-n+4) .list-card-body h3 { font-size: 14px; margin: 0 0 4px; }
    .archive-main article.list-card:nth-last-of-type(-n+4) .list-card-excerpt { display: none; }
    .archive-main article.list-card:nth-last-of-type(-n+4) .feat-cat { font-size: 9px; padding: 3px 8px; margin-bottom: 4px; }
    .archive-below { padding: 32px 0 48px; }
}


/* ═══════════ SEARCH v2 + SHOP v2 (2026-07-04) ═══════════ */

/* --- Search hero --- */
.search-hero {
    padding: 110px 0 36px;
    background: linear-gradient(180deg, var(--gray-50), var(--white));
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: 40px;
}
.search-hero-label {
    display: inline-block;
    font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--cta); background: var(--cta-light);
    padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.search-hero h1 { font-size: clamp(26px, 4vw, 38px); color: var(--gray-900); margin: 0 0 22px; }
.search-hero-form {
    display: flex; align-items: center; gap: 10px;
    max-width: 640px; background: var(--white);
    border: 1px solid var(--gray-200); border-radius: 999px;
    padding: 6px 6px 6px 18px;
    box-shadow: 0 4px 18px rgba(15,23,42,0.06);
}
.search-hero-form:focus-within { border-color: var(--cta); box-shadow: 0 4px 18px var(--cta-glow); }
.search-hero-form svg { width: 20px; height: 20px; color: var(--gray-400); flex-shrink: 0; }
.search-hero-form input {
    flex: 1; border: 0; outline: 0; background: transparent;
    font-size: 16px; color: var(--gray-900); min-width: 0;
}
.search-hero-form .btn-primary { border-radius: 999px; padding: 11px 26px; font-size: 14px; white-space: nowrap; }
.search-hero-count { margin-top: 14px; font-size: 14px; color: var(--gray-500); }

.search-price { color: var(--teal-dark); font-weight: 700; }
.search-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.list-card-img--shop {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--teal-light), var(--cta-light));
    color: var(--teal); border-radius: var(--radius);
}
.list-card-img--shop svg { width: 42px; height: 42px; }

.search-empty { padding: 20px 0 90px; }
.search-empty-box {
    max-width: 560px; margin: 0 auto; text-align: center;
    background: var(--white); border: 1px solid var(--gray-100);
    border-radius: 20px; padding: 56px 36px;
    box-shadow: 0 10px 30px rgba(15,23,42,0.05);
}
.search-empty-box h2 { font-size: 22px; color: var(--gray-900); margin: 20px 0 10px; }
.search-empty-box p { color: var(--gray-500); margin-bottom: 24px; }

.search-price .screen-reader-text, .shop-price .screen-reader-text { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
