/* Mobile-First App UI Optimization for Store Profile - Compact Edition */

/* Global Smoothness */
#storeProfilePage {
    background: transparent;
    min-height: 100vh;
    padding-bottom: 50px;
}

/* Store Header - Ultra-Compact PWA App Style */
.store-header {
    background: #111;
    background: radial-gradient(circle at top right, rgba(255, 122, 0, 0.3), transparent),
        radial-gradient(circle at bottom left, rgba(0, 119, 182, 0.3), transparent),
        linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 20px 15px 15px;
    /* Extremely reduced padding */
    border-radius: 0 0 30px 30px;
    margin: -20px -20px 20px -20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.store-info {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: row;
    /* Horizontal for compact app feel */
    align-items: center;
    text-align: right;
    gap: 12px;
}

/* Ultra Compact Logo */
.store-logo-container {
    width: 55px;
    /* Reduced from 70px to 55px */
    height: 55px;
}

.store-logo,
.store-logo-placeholder {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    background: white;
    padding: 2px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    object-fit: cover;
}

.store-logo-placeholder {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.store-logo-placeholder i {
    font-size: 1.6rem;
    color: white;
}

/* Typography Optimized for Ultra-Compact App */
.store-details {
    flex: 1;
}

.store-details h1 {
    font-size: 1.15rem;
    /* Even smaller font */
    font-weight: 800;
    margin: 0;
    color: white;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.store-stats-compact {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    /* Smaller stats */
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.8);
}

.store-stats-compact .divider {
    opacity: 0.5;
}

#storeDescription {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 130px;
    /* Limit on mobile to keep it compact */
}

/* Floating App Search Bar */
.store-search-bar {
    margin: -25px 15px 25px;
    z-index: 10;
    position: relative;
}

.search-input-wrapper input {
    height: 54px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    padding: 0 50px 0 20px;
    font-size: 1rem;
    width: 100%;
}

.search-input-wrapper .search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Segmented Control Tabs (iOS/Android Style) */
.store-tabs {
    display: flex;
    background: #eef2f6;
    padding: 4px;
    border-radius: 14px;
    margin: 0 12px 20px;
    gap: 4px;
}

.store-tab {
    flex: 1;
    padding: 10px;
    border-radius: 11px;
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    background: transparent;
    color: #64748b;
    transition: all 0.2s ease;
}

.store-tab.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.tab-content {
    background: transparent !important;
}

/* Grid Layout for App */
.store-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 12px;
    background: transparent !important;
}

/* Product Card Enhancements within Store */
.store-products-grid .product-card {
    background: #fdfdfd;
    /* Off-white for premium look and reduced glare */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    border: 1px solid #f1f5f9;
}

/* Tablet & Desktop Adjustments */
@media (min-width: 768px) {
    .store-header {
        margin: 0 0 35px 0;
        border-radius: 25px;
        padding: 40px;
    }

    .store-logo,
    .store-logo-placeholder {
        width: 100px;
        height: 100px;
        border-radius: 24px;
    }

    .store-details h1 {
        font-size: 2.2rem;
    }

    .store-stats-compact {
        font-size: 1.05rem;
    }

    #storeDescription {
        max-width: none;
    }

    .store-tabs {
        width: 450px;
        margin-left: auto;
    }
}