/* business-profile.css - Instagram/TikTok Style (Light Mode) */
:root {
    --biz-bg: #ffffff;
    --biz-card: #ffffff;
    --biz-accent: #0095f6;
    /* Instagram Blue */
    --biz-accent-glow: rgba(0, 149, 246, 0.1);
    --biz-text: #000000;
    --biz-text-dim: #737373;
    --biz-border: #dbdbdb;
    --biz-glass: rgba(255, 255, 255, 0.8);
    --biz-radius: 8px;
    /* More social media style */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background: var(--biz-bg);
    color: var(--biz-text);
    overflow-x: hidden;
}

.biz-profile-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--biz-bg);
    padding-bottom: 20px;
}

/* Header */
.biz-header {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--biz-bg);
    border-bottom: 1px solid var(--biz-border);
}

.biz-menu-btn {
    background: none;
    border: none;
    color: var(--biz-text);
    font-size: 22px;
    cursor: pointer;
}

/* Hero Section (Instagram Style) */
.biz-hero {
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Alignment like social profiles */
    text-align: left;
}

.biz-hero-top {
    display: flex;
    align-items: center;
    gap: 25px;
    width: 100%;
    margin-bottom: 20px;
}

.biz-logo-wrapper {
    position: relative;
    flex-shrink: 0;
}

.biz-logo-main {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    /* Circular like social apps */
    object-fit: cover;
    border: 1px solid var(--biz-border);
    padding: 2px;
}

.biz-verified-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: var(--biz-accent);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: 2px solid white;
}

.biz-stats {
    display: flex;
    justify-content: space-around;
    flex: 1;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
}

.stat-label {
    font-size: 13px;
    color: var(--biz-text-dim);
}

/* Info Section */
.biz-info-section {
    width: 100%;
    margin-bottom: 20px;
}

.biz-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.biz-category {
    font-size: 14px;
    color: var(--biz-text-dim);
    margin-bottom: 4px;
}

.biz-description {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 10px;
    position: relative;
    max-width: 100%;
}

.biz-location,
.biz-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #00376b;
    /* Instagram link color */
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.edit-desc-btn {
    display: inline-block;
    color: var(--biz-accent);
    cursor: pointer;
    margin-left: 10px;
}

/* Actions Buttons */
.biz-actions {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-bottom: 20px;
}

.biz-btn {
    flex: 1;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid var(--biz-border);
    font-size: 14px;
    background: #efefef;
    color: black;
}

.biz-btn:active {
    opacity: 0.7;
}

.btn-follow {
    background: var(--biz-accent);
    color: white;
    border: none;
}

.btn-follow.active {
    background: #efefef;
    color: black;
    border: 1px solid var(--biz-border);
}

/* Grid Tabs */
.biz-products-tabs {
    border-top: 1px solid var(--biz-border);
    display: flex;
    justify-content: space-around;
}

.tab-icon {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-size: 20px;
    color: var(--biz-text-dim);
    cursor: pointer;
    border-top: 1px solid transparent;
    margin-top: -1px;
}

.tab-icon.active {
    color: var(--biz-text);
    border-top: 1px solid var(--biz-text);
}

/* Grid */
.biz-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--biz-border);
}

.biz-grid-item {
    aspect-ratio: 1/1;
    background: white;
    overflow: hidden;
    position: relative;
}

.biz-grid-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.badge-resume {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
}

/* Menu Overlay */
.biz-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100%;
    background: white;
    z-index: 1000;
    transition: 0.3s;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.biz-menu-overlay.active {
    right: 0;
}

.biz-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    color: black;
    text-decoration: none;
    border-bottom: 1px solid #efefef;
    font-size: 14px;
}

/* Floating Business Profile Shortcut (Bottom Right) */
.business-profile-mini {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: none;
    /* Controlled by JS */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
    border: 3px solid var(--biz-accent);
    overflow: hidden;
    padding: 2px;
}

.business-profile-mini:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 149, 246, 0.4);
}

.business-profile-mini:active {
    transform: scale(0.95);
}

.business-profile-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}