/* ========================================
   USER STORE PAGE - FRESH BUILD
   "Clean, Modern, Lightweight"
   ======================================== */

:root {
    --store-bg: #ffffff;
    --store-header-bg: #f8f8f8;
    --store-border: 2px solid var(--black);
    --store-accent: var(--red);
    --store-text: var(--black);
    --store-text-muted: #666;
    --store-gap: 20px;
}

.store-page-wrapper {
    background-color: var(--store-bg);
    min-height: 100vh;
}

/* --- STORE HEADER --- */
.store-header {
    background-color: var(--store-header-bg);
    border-bottom: var(--store-border);
    padding: 40px 0;
}

/* Manage Toolbar System */
.manage-toolbar {
    background: var(--white);
    border: var(--store-border);
    padding: 12px;
    margin-top: 0;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
    animation: slideDown 0.2s ease-out;
}

.toolbar-level {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toolbar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

.toolbar-label {
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 8px;
    color: var(--store-text-muted);
    font-family: 'Courier New', monospace;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.store-identity {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 32px;
    align-items: start;
    max-width: var(--shell-max-width);
    margin: 0 auto;
    padding: 0 var(--shell-gutter);
}

.store-avatar-frame {
    width: 120px;
    height: 120px;
    border: var(--store-border);
    background: var(--white);
    overflow: hidden;
    position: relative;
    box-shadow: 4px 4px 0 var(--black);
}

.store-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 900;
    color: var(--store-text-muted);
    background: #eee;
}

.store-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.store-name {
    font-size: 32px;
    line-height: 1.1;
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.store-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
    font-weight: 700;
    color: var(--store-text-muted);
    font-family: 'Courier New', monospace;
}

.store-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.store-bio {
    font-size: 14px;
    line-height: 1.5;
    max-width: 600px;
    color: #333;
}

.store-actions-primary {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 180px;
}

/* --- NAVIGATION TABS --- */
.store-nav-sticky {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: var(--store-border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.store-tabs {
    display: flex;
    max-width: var(--shell-max-width);
    margin: 0 auto;
    padding: 0 var(--shell-gutter);
}

.store-tab {
    padding: 16px 24px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--store-text-muted);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.store-tab:hover {
    color: var(--black);
    background-color: #f9f9f9;
}

.store-tab.active {
    color: var(--black);
    border-bottom-color: var(--store-accent);
}

/* --- CONTENT GRID --- */
.store-content {
    max-width: var(--shell-max-width);
    margin: 0 auto;
    padding: 40px var(--shell-gutter);
    min-height: 50vh;
}

.store-section {
    display: none;
    animation: fadeUp 0.3s ease-out;
}

.store-section.active {
    display: block;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

/* --- CARDS --- */
.store-card {
    border: var(--store-border);
    background: var(--white);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.store-card:hover {
    transform: translateY(-4px);
    box-shadow: 6px 6px 0 var(--black);
}

.card-media {
    aspect-ratio: 1;
    border-bottom: var(--store-border);
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
}

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

.card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--black);
    color: var(--white);
    font-size: 10px;
    padding: 4px 8px;
    font-weight: 700;
}

.card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.card-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    text-transform: uppercase;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-price {
    font-size: 16px;
    font-weight: 900;
    color: var(--black);
    margin-top: auto; /* Push to bottom */
}

.card-price .muted {
    font-size: 12px;
    text-decoration: line-through;
    color: var(--store-text-muted);
    font-weight: normal;
    margin-left: 6px;
}

.card-actions {
    display: grid;
    grid-template-columns: 1fr;
    border-top: var(--store-border);
}

.card-btn {
    padding: 12px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    background: var(--white);
    color: var(--black);
    text-decoration: none;
    transition: background 0.2s;
    text-transform: uppercase;
}

.card-btn:hover {
    background: var(--black);
    color: var(--white);
}

/* --- PAGINATION & EMPTY STATES --- */
.store-empty {
    text-align: center;
    padding: 60px;
    border: 2px dashed #ccc;
    color: var(--store-text-muted);
}

.store-pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .store-identity {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .store-avatar-frame {
        margin: 0 auto;
        width: 100px;
        height: 100px;
    }

    .store-info {
        align-items: center;
    }

    .store-meta {
        justify-content: center;
    }

    .store-actions-primary {
        width: 100%;
        flex-direction: row;
    }
    
    .store-actions-primary .btn {
        flex: 1;
    }

    .store-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .card-body {
        padding: 10px;
    }
    
    .card-title {
        font-size: 12px;
    }
    
    .card-price {
        font-size: 14px;
    }
}
