.shop-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.shop-card-link .shop-card {
    cursor: pointer;
}

.shop-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 16px;
    margin-bottom: 16px;
}

.shop-card-featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--green-mid) 0%, var(--green-dark) 100%);
    border-radius: var(--radius-card);
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    box-shadow: var(--shadow-card);
    position: relative;
    min-height: 140px;
    color: var(--white);
}

.shop-card-featured::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.shop-card-featured .shop-card-image {
    flex: 0 0 auto;
    position: relative;
    z-index: 1;
}

.shop-card-featured .shop-card-image img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

.shop-card-featured .shop-card-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.shop-card-featured h3 {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.shop-card-featured .shop-card-price {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--white);
}

.shop-card-featured .price-value {
    font-size: 1.5rem;
    font-weight: 900;
}

.shop-card-featured svg {
    width: 20px;
    height: 20px;
    color: #ffd700;
}

.shop-card-secondary {
    background: var(--green-light);
    border-radius: var(--radius-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    box-shadow: var(--shadow-soft);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shop-card-secondary:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-card);
}

.shop-card-secondary .shop-card-image {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    overflow: hidden;
}

.shop-card-secondary .shop-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-card-secondary .shop-card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shop-card-secondary h3 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--green-dark);
    margin: 0;
}

.shop-card-secondary .shop-card-description {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

.shop-grid-secondary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 16px;
    margin-bottom: 16px;
}

.shop-grid-secondary .shop-card-secondary {
    margin: 0;
}

.shop-card-compact {
    background: var(--white);
    border-radius: var(--radius-card);
    padding: 12px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    transition: all 0.2s ease;
}

.shop-card-compact:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
}

.shop-card-compact .shop-card-image {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-pale);
    border-radius: 12px;
}

.shop-card-compact .shop-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.shop-card-compact h4 {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}

.shop-card-compact .shop-card-price {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--green-dark);
}

.btn-shop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--green-dark);
    color: var(--white);
    border: none;
    border-radius: var(--radius-pill);
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 800;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    margin-top: 8px;
}

.btn-shop:active {
    background: var(--green-mid);
    transform: scale(0.98);
}

.btn-shop:disabled {
    background: var(--text-label);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-shop svg {
    width: 16px;
    height: 16px;
}

.badge-discount {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff6b6b;
    color: var(--white);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 900;
    z-index: 2;
}

.badge-new {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--teal);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 900;
    z-index: 2;
}

.shop-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 16px 12px;
    scrollbar-width: none;
    margin-bottom: 12px;
}

.shop-filters::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    flex: 0 0 auto;
    background: var(--white);
    border: 2px solid var(--green-light);
    color: var(--text-main);
    border-radius: var(--radius-pill);
    padding: 8px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-btn:active,
.filter-btn.active {
    background: var(--green-dark);
    color: var(--white);
    border-color: var(--green-dark);
}

.currency-display {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--green-light);
    border-radius: var(--radius-pill);
    padding: 8px 12px;
    margin: 0 16px 12px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--green-dark);
}

.currency-display svg {
    width: 18px;
    height: 18px;
    color: #ffd700;
}

.shop-card.loading {
    opacity: 0.6;
    pointer-events: none;
}

.shop-card.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.desktop-sidebar {
    display: none;
}

.desktop-header {
    display: none;
}

.desktop-header {
    display: none;
}

@media (min-width: 768px) {
    body {
        display: flex;
        min-height: 100vh;
        background: #eef6f1;
    }

    .desktop-sidebar {
        display: flex;
        flex-direction: column;
        width: 240px;
        min-height: 100vh;
        background: #1a7a4a;
        padding: 32px 20px 24px;
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 200;
        gap: 8px;
    }

    .sidebar-logo {
        font-size: 1.5rem;
        font-weight: 900;
        color: #fff;
        letter-spacing: .15em;
        margin-bottom: 32px;
        padding: 0 8px;
    }

    .sidebar-nav {
        display: flex;
        flex-direction: column;
        gap: 4px;
        flex: 1;
    }

    .sidebar-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 11px 14px;
        border-radius: 12px;
        text-decoration: none;
        color: rgba(255, 255, 255, .65);
        font-size: .92rem;
        font-weight: 700;
        transition: background .15s, color .15s;
    }

    .sidebar-link:hover,
    .sidebar-link.active {
        background: rgba(255, 255, 255, .18);
        color: #fff;
    }

    .sidebar-link svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

    .sidebar-badge {
        margin-top: auto;
        background: rgba(255, 255, 255, .12);
        border-radius: 12px;
        padding: 12px 14px;
        display: flex;
        align-items: center;
        gap: 8px;
        color: #fff;
        font-size: .85rem;
        font-weight: 800;
    }

    .sidebar-badge .dot {
        width: 10px;
        height: 10px;
        background: #2db56e;
        border-radius: 50%;
    }

    .app {
        margin-left: 240px;
        width: calc(100% - 240px);
        max-width: none;
        min-height: 100vh;
        padding-bottom: 0;
        background: transparent;
    }

    .app-header {
        display: none;
    }

    .name-bar {
        display: none;
    }

    .bottom-nav {
        display: none;
    }

    .scroll-content {
        overflow: visible;
        max-height: none;
        padding: 0 36px 36px;
    }

    .desktop-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 28px 36px 20px;
    }

    .desktop-header h1 {
        font-size: 1.9rem;
        font-weight: 900;
        color: #1a2e1f;
    }

    .desktop-header-right {
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .desktop-user-pill {
        display: flex;
        align-items: center;
        gap: 10px;
        background: #fff;
        border-radius: 999px;
        padding: 8px 16px;
        box-shadow: 0 2px 12px rgba(30, 100, 60, .08);
        font-size: .9rem;
        font-weight: 800;
        color: #1a2e1f;
    }

    .desktop-user-pill .dot {
        width: 10px;
        height: 10px;
        background: #2db56e;
        border-radius: 50%;
    }

    .section {
        padding: 0;
        margin-bottom: 24px;
    }

    .section-header {
        margin-bottom: 14px;
    }

    .section-header h2 {
        font-size: 1.25rem;
    }

    .banner {
        margin: 0;
        border-radius: 18px;
    }

    .tips-scroll {
        flex-wrap: wrap;
        overflow: visible;
    }

    .tip-card {
        flex: 0 0 calc(50% - 6px);
    }

    .tip-paragraph {
        padding: 4px 0 0;
    }

    .bar-chart {
        height: 160px;
    }

    .chart-box {
        border-radius: 18px;
        padding: 24px;
    }

    .meals-list,
    .exercise-list {
        gap: 14px;
    }

    .meal-item,
    .exercise-item {
        padding: 18px 20px;
        border-radius: 18px;
    }

    .meal-thumb,
    .ex-thumb {
        width: 54px;
        height: 54px;
    }

    .desktop-grid {
        display: grid;
        grid-template-columns: 1fr 300px;
        gap: 24px;
        align-items: start;
    }

    .desktop-main {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .desktop-aside {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .shop-card {
        padding: 18px;
        gap: 18px;
    }

    .shop-card-image {
        width: 90px;
        height: 90px;
    }

    .summary-card {
        padding: 24px;
        gap: 28px;
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-value {
        font-size: 1.7rem;
    }
}

@media (min-width: 1100px) {
    .scroll-content {
        padding: 0 44px 44px;
    }

    .desktop-header {
        padding: 28px 44px 20px;
    }

    .desktop-grid {
        grid-template-columns: 1fr 340px;
        gap: 28px;
    }

    .stat-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .tip-card {
        flex: 0 0 calc(33.33% - 8px);
    }

    .bar-chart {
        height: 180px;
    }
}

@media (max-width: 380px) {
    .app-header {
        padding-inline: 14px;
    }
}