/* ============================================
   SHOP PROFILE CSS
   ============================================ */

.shop-body { background: var(--cream); }
.navbar-shop { background: rgba(253,248,243,.97); }

/* Cover */
.shop-cover {
    height: 320px;
    position: relative;
    overflow: hidden;
}
.shop-cover-img {
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-color: linear-gradient(135deg, var(--cream-dark), var(--rose-light));
    transition: transform .4s ease;
}
.shop-cover:hover .shop-cover-img { transform: scale(1.02); }
.shop-cover-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.4));
}

.cover-change-btn {
    position: absolute;
    bottom: 16px; right: 20px;
    background: rgba(0,0,0,.5);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    cursor: pointer;
    display: flex; align-items: center; gap: 8px;
    backdrop-filter: blur(4px);
    transition: var(--transition);
}
.cover-change-btn:hover { background: rgba(0,0,0,.7); }

/* Header */
.shop-header-wrap {
    background: var(--white);
    border-bottom: 1px solid var(--border);
}
.shop-header {
    display: flex;
    gap: 28px;
    padding: 0 0 28px;
    align-items: flex-end;
}

.shop-avatar-wrap {
    position: relative;
    margin-top: -50px;
    flex-shrink: 0;
}
.shop-avatar {
    width: 110px; height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-md);
    display: block;
}
.avatar-change-btn {
    position: absolute;
    bottom: 4px; right: 4px;
    width: 30px; height: 30px;
    background: var(--rose);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    cursor: pointer;
    border: 2px solid var(--white);
    transition: var(--transition);
}
.avatar-change-btn:hover { background: var(--rose-dark); }

.shop-header-info { flex: 1; padding-top: 20px; }
.shop-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.shop-name-row h1 {
    font-size: 30px;
    color: var(--charcoal);
}

/* Badge-evi na profilu */
.shop-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.badge-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px 4px 7px;
    border-radius: 50px;
    border: 1.5px solid;
    font-size: 12.5px;
    font-weight: 600;
    cursor: default;
    transition: var(--transition);
}
.badge-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.badge-icon { font-size: 14px; }

.shop-meta-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.shop-meta-item {
    font-size: 13.5px;
    color: var(--mid);
    display: flex; align-items: center; gap: 5px;
}
.shop-meta-item i { font-size: 12px; }

.shop-description {
    color: var(--charcoal-mid);
    font-size: 14.5px;
    max-width: 600px;
    margin-bottom: 14px;
    line-height: 1.55;
}

.shop-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.social-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 7px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    border: 1.5px solid var(--border);
    transition: var(--transition);
}
.social-btn.instagram:hover { border-color: #E1306C; color: #E1306C; }
.social-btn.facebook:hover { border-color: #1877F2; color: #1877F2; }
.social-btn.website:hover { border-color: var(--rose); color: var(--rose); }
.social-btn i { font-size: 14px; }

/* Tabs */
.shop-tabs-wrap {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 64px;
    z-index: 80;
}
.shop-tabs {
    display: flex;
    gap: 0;
}
.shop-tab {
    padding: 16px 24px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-family: 'DM Sans', sans-serif;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--mid);
    cursor: pointer;
    transition: var(--transition);
    display: flex; align-items: center; gap: 7px;
    margin-bottom: -1px;
}
.shop-tab:hover { color: var(--charcoal); }
.shop-tab.active {
    color: var(--rose);
    border-bottom-color: var(--rose);
}
.tab-count {
    background: var(--cream-dark);
    border-radius: 50px;
    padding: 1px 8px;
    font-size: 11px;
    font-weight: 700;
}
.shop-tab.active .tab-count { background: rgba(201,99,123,.15); color: var(--rose); }

/* Tab content */
.shop-content { padding: 36px 0 60px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Articles grid shop */
.articles-grid-shop {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.article-card-shop {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
}
.article-card-shop:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.article-img-shop {
    height: 220px;
    position: relative;
    overflow: hidden;
    background: var(--cream-dark);
}
.article-img-shop img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.article-card-shop:hover .article-img-shop img { transform: scale(1.06); }
.sale-ribbon {
    position: absolute;
    top: 0; right: 0;
    background: var(--rose);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 10px;
    border-bottom-left-radius: 10px;
}

.article-info-shop {
    padding: 14px 16px;
}
.article-info-shop h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 14.5px;
    font-weight: 600;
    margin-bottom: 4px;
}
.article-info-shop p {
    font-size: 13px;
    color: var(--mid);
    margin-bottom: 10px;
    line-height: 1.45;
}
.article-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}
.article-edit-btn {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--cream-dark);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    color: var(--mid);
    transition: var(--transition);
}
.article-edit-btn:hover { background: var(--rose); color: var(--white); }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}
.empty-icon { font-size: 60px; margin-bottom: 16px; }
.empty-state h3 { font-size: 22px; margin-bottom: 8px; }
.empty-state p { color: var(--mid); margin-bottom: 20px; }
.btn-primary-sm {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--rose);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}
.btn-primary-sm:hover { background: var(--rose-dark); }

/* About grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.about-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
}
.about-card h3 {
    font-size: 16px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    margin-bottom: 14px;
    display: flex; align-items: center; gap: 8px;
    color: var(--charcoal);
}
.about-card h3 i { color: var(--rose); }
.about-card p { font-size: 14px; color: var(--mid); }

/* Badges full list */
.badges-full { display: flex; flex-direction: column; gap: 12px; }
.badge-full-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.badge-full-icon { font-size: 28px; flex-shrink: 0; }
.badge-full-item strong { font-size: 14px; display: block; margin-bottom: 2px; }
.badge-full-item p { font-size: 12.5px; color: var(--mid); margin: 0; }

/* Stats */
.stats-grid {
    display: flex;
    gap: 24px;
}
.stat-item { text-align: center; }
.stat-num {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--charcoal);
    font-family: 'Playfair Display', serif;
}
.stat-label { font-size: 12px; color: var(--mid); }

/* Footer mini */
.footer-mini {
    background: var(--charcoal);
    padding: 20px 0;
    text-align: center;
    color: rgba(255,255,255,.5);
    font-size: 13px;
}
.footer-mini a { color: var(--rose); }

/* ---- Tablet ---- */
@media (max-width: 768px) {
    .shop-cover { height: 200px; }
    .shop-header { gap: 14px; flex-wrap: wrap; }
    .shop-avatar { width: 84px; height: 84px; }
    .shop-avatar-wrap { margin-top: -38px; }
    .shop-name-row { flex-direction: column; align-items: flex-start; gap: 8px; }
    .shop-name-row h1 { font-size: 22px; }
    .shop-badges { flex-wrap: wrap; }
    .shop-meta-row { gap: 10px; flex-wrap: wrap; }
    .shop-meta-item { font-size: 12.5px; }
    .shop-socials { flex-wrap: wrap; gap: 8px; }
    .articles-grid-shop { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .article-img-shop { height: 180px; }
    .shop-tab { padding: 12px 14px; font-size: 13px; }
    .tab-count { display: none; }
    .about-grid { grid-template-columns: 1fr; }
    .stats-grid { gap: 16px; }
}

/* ---- Mobile ---- */
@media (max-width: 480px) {
    .shop-cover { height: 160px; }
    .shop-header-wrap .container { padding: 0 14px; }
    .shop-avatar { width: 72px; height: 72px; }
    .shop-avatar-wrap { margin-top: -32px; }
    .shop-name-row h1 { font-size: 20px; }
    .shop-description { font-size: 13.5px; }
    .articles-grid-shop { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .article-img-shop { height: 150px; }
    .article-info-shop { padding: 10px; }
    .article-info-shop h4 { font-size: 13px; }
    .article-info-shop p { display: none; }
    .shop-tab { padding: 10px 12px; font-size: 12.5px; }
    .shop-content { padding: 20px 0 40px; }
    .badge-item { padding: 3px 8px 3px 5px; font-size: 11.5px; }
    .badge-name { display: none; }
    .badge-icon { font-size: 16px; }
    .social-btn { padding: 6px 12px; font-size: 12.5px; }
}

/* Sale badge na karticama (alias za sale-ribbon) */
.article-sale-badge {
    position: absolute;
    top: 12px; right: 12px;
    background: var(--rose);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 50px;
    display: inline-block;
    width: fit-content;
    line-height: 1;
}