/* ═══════════════════════════════════════════════════════
   Shop Styles — IranFit
   ═══════════════════════════════════════════════════════ */

/* ── Shop Tabs ─────────────────────────────────────── */
.shop-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.shop-tab {
    flex: 1;
    padding: 10px 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--card2);
    color: var(--muted);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.shop-tab:hover { border-color: var(--lime-dim); color: var(--text); }
.tab-active { background: var(--lime); color: var(--on-accent); border-color: var(--lime); }
.tab-active:hover { background: var(--lime-dim); color: var(--on-accent); }

/* ── Shop Grid (Client browse) ─────────────────────── */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.shop-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    color: var(--text);
    padding: 20px 14px;
    text-align: center;
    font: inherit;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.shop-card:hover { border-color: var(--lime); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(var(--accent-rgb),0.15); }
.shop-card-icon { font-size: 36px; }
.shop-card-name { font-size: 14px; font-weight: 700; }
.shop-card-type { font-size: 11px; color: var(--muted); }
.shop-card-count { font-size: 11px; color: var(--lime); font-weight: 600; }

/* ── Shop Header Card ──────────────────────────────── */
.shop-header-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 14px;
}
.shop-header-icon { font-size: 32px; }
.shop-header-card strong { display: block; font-size: 16px; }
.shop-header-card small { color: var(--muted); font-size: 12px; }

.btn-back-shop {
    display: inline-block;
    background: none;
    border: none;
    color: var(--lime);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 10px;
    padding: 0;
}
.btn-back-shop:hover { text-decoration: underline; }

/* ── Category Pills ────────────────────────────────── */
.category-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 14px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.category-pills::-webkit-scrollbar { display: none; }
.pill {
    flex-shrink: 0;
    padding: 7px 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--card2);
    color: var(--text2);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.pill:hover { border-color: var(--lime-dim); }
.pill-active { background: var(--lime); color: var(--on-accent); border-color: var(--lime); }

/* ── Product Grid ──────────────────────────────────── */
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 100px;
}
.product-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
    transition: border-color 0.2s;
}
.product-card:hover { border-color: var(--lime-dim); }
.product-image {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    background: var(--card2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}
.product-info { flex: 1; min-width: 0; }
.product-brand { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.product-name { font-size: 14px; font-weight: 700; line-height: 1.3; margin-bottom: 2px; }
.product-desc { font-size: 11px; color: var(--muted); line-height: 1.4; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-pricing { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.product-price { font-size: 14px; font-weight: 800; color: var(--lime); }
.product-discount { color: #f59e0b; }
.product-old-price { font-size: 12px; color: var(--muted); text-decoration: line-through; }
.product-stock { font-size: 10px; margin-top: 3px; font-weight: 600; }
.in-stock { color: var(--lime); }
.out-stock { color: #ef4444; }

.btn-add-cart {
    flex-shrink: 0;
    padding: 8px 12px;
    border: 1px solid var(--lime);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--lime);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-add-cart:hover { background: var(--lime); color: var(--on-accent); }

/* ── Cart Bar ──────────────────────────────────────── */
.cart-bar {
    position: fixed;
    bottom: 64px;
    left: 50%;
    transform: translateX(-50%);
    width: min(100%, 448px);
    background: var(--card);
    border: 1px solid var(--lime);
    border-radius: var(--radius);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.5);
    z-index: 100;
    animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    from { transform: translateX(-50%) translateY(20px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}
.cart-bar-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
}
.cart-icon { font-size: 20px; }
.cart-total { color: var(--lime); font-weight: 800; }
.btn-checkout {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--lime);
    color: var(--on-accent);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-checkout:hover { background: var(--lime-dim); }

/* ── Cart Items List (in checkout modal) ───────────── */
.cart-items-list { margin-bottom: 16px; }
.cart-item-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--line);
}
.cart-item-row:last-child { border-bottom: none; }

/* ── Toast Message ─────────────────────────────────── */
.shop-toast {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--lime);
    color: var(--on-accent);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    z-index: 200;
    animation: fadeIn 0.2s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Responsive ────────────────────────────────────── */
@media (min-width: 360px) {
    .shop-grid { grid-template-columns: repeat(2, 1fr); }
}
