/* =========================
   ACTIVITY TABS
========================= */

.activity-tabs-wrap{
    margin-bottom:16px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    flex-wrap:wrap;
    padding:14px 16px;
    border-radius:22px;
    background:linear-gradient(135deg,#0f172a 0%, #1e3a8a 48%, #2563eb 100%);
    border:1px solid rgba(255,255,255,.10);
    box-shadow:0 18px 34px rgba(37,99,235,.20);
}

.activity-tabs{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    align-items:center;
}

.activity-tab{
    display:inline-flex;
    align-items:center;
    gap:8px;
    height:42px;
    padding:0 16px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.14);
    background:rgba(255,255,255,.10);
    color:#ffffff;
    font-size:13px;
    font-weight:800;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
    transition:.22s ease;
    white-space:nowrap;
    backdrop-filter:blur(6px);
}

.activity-tab:hover{
    transform:translateY(-1px);
    background:rgba(255,255,255,.16);
    border-color:rgba(255,255,255,.24);
    box-shadow:0 10px 24px rgba(15,23,42,.18);
}

.activity-tab.active{
    color:#0f172a;
    border-color:#ffffff;
    background:linear-gradient(180deg,#ffffff 0%, #eaf1ff 100%);
    box-shadow:0 12px 28px rgba(15,23,42,.18);
}

.activity-tab i{
    font-size:12px;
}

.activity-tab-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:22px;
    height:22px;
    padding:0 7px;
    border-radius:999px;
    background:rgba(255,255,255,.18);
    color:#ffffff;
    font-size:11px;
    font-weight:900;
}

.activity-tab.active .activity-tab-badge{
    background:#1e3a8a;
    color:#ffffff;
}

.activity-tabs-meta{
    display:inline-flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}

.activity-tabs-chip{
    display:inline-flex;
    align-items:center;
    gap:8px;
    height:38px;
    padding:0 14px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.14);
    background:rgba(255,255,255,.10);
    color:#ffffff;
    font-size:12px;
    font-weight:800;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
    backdrop-filter:blur(6px);
}

/* =========================
   PRODUCTS TOOLBAR
========================= */

.products-toolbar{
    background:linear-gradient(90deg,#0b1220 0%, #172554 45%, #2563eb 100%);
    border:1px solid rgba(255,255,255,.08);
    border-radius:20px;
    padding:16px 18px;
    box-shadow:0 18px 40px rgba(37,99,235,.18);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap;
    margin-bottom:16px;
    direction:ltr;
}

.toolbar-left,
.toolbar-right{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}

.toolbar-left{
    justify-content:flex-start;
}

.toolbar-right{
    justify-content:flex-end;
    margin-left:auto;
}

.toolbar-pill{
    height:40px;
    padding:0 15px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.12);
    background:rgba(255,255,255,.10);
    backdrop-filter:blur(6px);
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:#fff;
    font-size:13px;
    font-weight:700;
}

/* =========================
   CATALOG HEAD
========================= */

.section-head--catalog{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:18px;
}

.catalog-panel-head-wrap{
    flex:1;
    min-width:0;
}

.catalog-panel-head h2{
    margin:0;
    font-size:24px;
    letter-spacing:-.02em;
}

.catalog-panel-head p{
    margin:6px 0 0;
    color:#64748b;
    font-size:14px;
}

.section-head--catalog .catalog-switcher{
    margin-bottom:0;
    flex:0 0 auto;
    align-self:flex-start;
}

/* =========================
   SWITCHER
========================= */

.catalog-switcher{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:6px;
    border:1px solid #dbe4f0;
    background:#ffffff;
    border-radius:18px;
    box-shadow:0 8px 22px rgba(15,23,42,.05);
    margin-bottom:14px;
}

.catalog-tab{
    height:42px;
    padding:0 16px;
    border:none;
    border-radius:14px;
    background:transparent;
    color:#475569;
    font-weight:800;
    display:inline-flex;
    align-items:center;
    gap:8px;
    cursor:pointer;
    transition:.2s ease;
}

.catalog-tab.is-active{
    background:linear-gradient(135deg,#4f46e5,#635bff);
    color:#fff;
    box-shadow:0 10px 22px rgba(79,70,229,.20);
}

.catalog-panel{
    width:100%;
}

/* =========================
   PRODUCTS GRID
========================= */

.products-area{
    width:100%;
}

.catalog-scroll-shell{
    width:100%;
    background:#ffffff;
    border:1px solid #e6ecf5;
    border-radius:26px;
    padding:14px;
    box-shadow:0 10px 30px rgba(15,23,42,.05);
    overflow:hidden;
}

.catalog-scroll-grid{
    width:100%;
    display:grid;
    grid-template-columns:repeat(5, minmax(0, 1fr));
    gap:18px;
    max-height:1180px;
    overflow-y:auto;
    overflow-x:hidden;
    padding-right:6px;
    align-items:start;
}

.catalog-scroll-grid::-webkit-scrollbar{
    width:10px;
}

.catalog-scroll-grid::-webkit-scrollbar-track{
    background:#edf2f7;
    border-radius:999px;
}

.catalog-scroll-grid::-webkit-scrollbar-thumb{
    background:linear-gradient(180deg,#c7d2fe 0%,#818cf8 100%);
    border-radius:999px;
    border:2px solid #edf2f7;
}

.catalog-scroll-grid::-webkit-scrollbar-thumb:hover{
    background:linear-gradient(180deg,#a5b4fc 0%,#6366f1 100%);
}

/* =========================
   PRODUCT CARD
========================= */

.product-card{
    width:100%;
    min-width:0;
    max-width:none;
    background:#fff;
    border:1px solid #e7ecf5;
    border-radius:24px;
    overflow:hidden;
    box-shadow:0 10px 28px rgba(15,23,42,.05);
    transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    display:flex;
    flex-direction:column;
}

.product-card:hover{
    transform:translateY(-3px);
    box-shadow:0 18px 36px rgba(15,23,42,.10);
    border-color:#dce5f3;
}

.product-media{
    min-height:170px;
    padding:14px 14px 8px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(180deg,#f8fafc 0%,#ffffff 100%);
}

.product-image{
    width:100%;
    height:145px;
    object-fit:contain;
    display:block;
    filter:drop-shadow(0 10px 16px rgba(15,23,42,.08));
    transition:transform .25s ease;
}

.product-card:hover .product-image{
    transform:scale(1.04);
}

.product-image-placeholder{
    width:100%;
    height:145px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:8px;
    border:1px dashed #d9e2ec;
    border-radius:20px;
    background:#ffffff;
    color:#94a3b8;
    text-align:center;
}

.product-image-placeholder i{
    font-size:36px;
}

.product-image-placeholder span{
    font-size:12px;
    font-weight:700;
}

.product-body{
    padding:10px 16px 16px;
    display:flex;
    flex-direction:column;
}

.product-tags-row{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:10px;
}

.mini-badge{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:6px 10px;
    border-radius:999px;
    font-size:11px;
    font-weight:800;
    line-height:1;
    white-space:nowrap;
}

.mini-badge i{
    font-size:10px;
}

.mini-badge--shop{
    background:#eef2ff;
    color:#4f46e5;
    border:1px solid #dbe4ff;
}

.mini-badge--delivery{
    background:#ecfdf5;
    color:#059669;
    border:1px solid #d1fae5;
}

.product-title{
    font-size:1.05rem;
    font-weight:900;
    line-height:1.28;
    color:#0f172a;
    margin-bottom:8px;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    min-height:2.6em;
}

.product-meta{
    font-size:.90rem;
    line-height:1.5;
    color:#64748b;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    min-height:2.7em;
    margin-bottom:10px;
}

.product-rating{
    display:flex;
    align-items:center;
    gap:7px;
    margin-bottom:12px;
}

.stars{
    color:#f59e0b;
    display:inline-flex;
    gap:2px;
    font-size:13px;
}

.rating-value{
    color:#64748b;
    font-size:.90rem;
    font-weight:700;
}

.product-price-row{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:10px;
    margin-bottom:14px;
}

.product-price{
    font-size:1.05rem;
    font-weight:900;
    line-height:1.05;
    color:#0f172a;
}

.product-price small{
    display:block;
    margin-bottom:6px;
    font-size:.70rem;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:#94a3b8;
}

.product-stock{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:7px 11px;
    border-radius:999px;
    background:#ecfdf5;
    color:#059669;
    border:1px solid #d1fae5;
    font-size:.78rem;
    font-weight:800;
    white-space:nowrap;
}

.add-cart-btn{
    width:100%;
    min-height:48px;
    border:none;
    border-radius:18px;
    background:linear-gradient(135deg,#635bff 0%,#4f46e5 100%);
    color:#ffffff;
    font-size:.98rem;
    font-weight:800;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    box-shadow:0 10px 22px rgba(79,70,229,.20);
    transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
    cursor:pointer;
}

.add-cart-btn:hover{
    transform:translateY(-1px);
    box-shadow:0 14px 24px rgba(79,70,229,.24);
    background:linear-gradient(135deg,#5548ff 0%,#4338ca 100%);
}

/* =========================
   EMPTY STATE
========================= */

.catalog-empty-state{
    width:100%;
    background:#ffffff;
    border:1px solid #e6ecf5;
    border-radius:26px;
    padding:60px 20px;
    text-align:center;
    box-shadow:0 10px 30px rgba(15,23,42,.05);
}

.catalog-empty-icon{
    width:80px;
    height:80px;
    margin:0 auto 20px;
    border-radius:20px;
    background:linear-gradient(135deg,#eef2ff,#f8fbff);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:34px;
    color:#4f46e5;
}

.catalog-empty-state h3{
    font-size:22px;
    font-weight:900;
    color:#0f172a;
    margin-bottom:10px;
}

.catalog-empty-state p{
    font-size:14px;
    color:#64748b;
    margin:0;
    line-height:1.8;
}

/* =========================
   SERVICES GRID
========================= */

.services-catalog-shell{
    width:100%;
    background:#ffffff;
    border:1px solid #e6ecf5;
    border-radius:26px;
    padding:14px;
    box-shadow:0 10px 30px rgba(15,23,42,.05);
    overflow:hidden;
}

.services-catalog-grid{
    width:100%;
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:18px;
    max-height:980px;
    overflow-y:auto;
    overflow-x:hidden;
    padding-right:6px;
    align-items:start;
}

.service-market-card{
    background:#fff;
    border:1px solid #e7ecf5;
    border-radius:24px;
    overflow:hidden;
    box-shadow:0 10px 28px rgba(15,23,42,.05);
    transition:.22s ease;
    display:flex;
    flex-direction:column;
}

.service-market-card:hover{
    transform:translateY(-3px);
    box-shadow:0 18px 36px rgba(15,23,42,.10);
    border-color:#dce5f3;
}

.service-market-icon{
    min-height:120px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(180deg,#f8fafc 0%,#ffffff 100%);
    color:#4f46e5;
    font-size:42px;
}

.service-market-body{
    padding:14px 16px 16px;
    display:flex;
    flex-direction:column;
}

.service-market-tags{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:10px;
}

.service-market-title{
    font-size:1.05rem;
    font-weight:900;
    line-height:1.3;
    color:#0f172a;
    margin-bottom:8px;
}

.service-market-meta{
    font-size:.90rem;
    line-height:1.5;
    color:#64748b;
    min-height:44px;
    margin-bottom:12px;
}

.service-market-price-row{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:10px;
    margin-bottom:14px;
}

.service-market-price{
    font-size:1.05rem;
    font-weight:900;
    line-height:1.05;
    color:#0f172a;
}

.service-market-price small{
    display:block;
    margin-bottom:6px;
    font-size:.70rem;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:#94a3b8;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width:1400px){
    .catalog-scroll-grid{
        grid-template-columns:repeat(4, minmax(0, 1fr));
    }
}

@media (max-width:1100px){
    .catalog-scroll-grid{
        grid-template-columns:repeat(3, minmax(0, 1fr));
    }

    .services-catalog-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }
}

@media (max-width:900px){
    .section-head--catalog{
        flex-direction:column;
        align-items:stretch;
    }

    .section-head--catalog .catalog-switcher{
        align-self:flex-start;
    }
}

@media (max-width:800px){
    .catalog-scroll-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }
}

@media (max-width:640px){
    .catalog-scroll-shell{
        padding:10px;
        border-radius:20px;
    }

    .catalog-scroll-grid{
        grid-template-columns:1fr;
        max-height:none;
        overflow:visible;
        padding-right:0;
    }

    .product-media{
        min-height:155px;
        padding:12px 12px 8px;
    }

    .product-image,
    .product-image-placeholder{
        height:132px;
    }

    .product-body{
        padding:10px 14px 14px;
    }

    .product-title{
        font-size:1rem;
    }

    .catalog-switcher{
        width:100%;
        display:flex;
    }

    .catalog-tab{
        flex:1;
        justify-content:center;
    }

    .services-catalog-grid{
        grid-template-columns:1fr;
        max-height:none;
        overflow:visible;
        padding-right:0;
    }

    .section-head--catalog .catalog-switcher{
        width:100%;
    }
}
