/**
 * PleChat - Store Styles
 */

.stores-page {
    min-height: 100vh;
    padding-bottom: 40px;
}

/* Categories Filter */
.categories-filter {
    display: flex;
    gap: 8px;
    padding: 16px 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.categories-filter::-webkit-scrollbar { display: none; }

.cat-chip {
    flex-shrink: 0;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all var(--transition);
    white-space: nowrap;
}

.cat-chip:hover, .cat-chip.active {
    background: var(--accent-gradient);
    color: #fff;
    border-color: transparent;
}

/* Stores Grid */
.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 0 24px;
}

.store-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.store-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
    color: inherit;
}

.banner-gradient.large {
    height: 100%;
}

.store-status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.store-status-badge.status-pending { background: rgba(245,158,11,0.9); color: #000; }
.store-status-badge.status-approved { background: rgba(16,185,129,0.9); color: #fff; }
.store-status-badge.status-rejected { background: rgba(239,68,68,0.9); color: #fff; }

.store-card-body {
    padding: 24px;
    position: relative;
}

.store-logo-wrapper {
    margin-bottom: 16px;
}

.store-logo {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 3px solid var(--bg-surface);
}

.logo-placeholder {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    border: 3px solid var(--bg-surface);
}

.logo-placeholder.large {
    width: 80px;
    height: 80px;
    font-size: 2rem;
}

.store-card-body h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.store-category {
    font-size: 0.8rem;
    color: var(--accent-primary);
    font-weight: 500;
}

.store-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.4;
}

.store-meta {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.rejection-reason {
    font-size: 0.8rem;
    color: var(--danger);
    margin-top: 8px;
}

/* Create Store Form */
.create-store-form {
    max-width: 600px;
    margin: 24px auto;
    padding: 0 24px;
}

.create-store-form form {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.file-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
}

.file-upload-area:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.file-upload-area input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload-area span {
    font-size: 0.85rem;
}

/* Store Profile Page */
.store-profile-page {
    min-height: 100vh;
    background: var(--bg-primary);
    padding-top: 20px;
    padding-bottom: 120px;
}

.store-profile-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px 180px;
}

.store-profile-header {
    display: flex;
    align-items: center;
    gap: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    padding-top: 44px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}
.store-profile-top-bar {
    position: sticky;
    top: 16px;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: rgba(21, 29, 42, 0.65); /* Translucent glass card background */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 9999px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3), var(--shadow-glow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.store-top-bar-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.store-top-bar-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-primary);
    transform: scale(1.05);
}

.store-top-bar-btn:active {
    transform: scale(0.95);
}

.store-profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-gradient);
}

.store-profile-logo {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    padding: 6px;
    border: 4px solid var(--bg-primary);
    box-shadow: var(--shadow-lg);
    flex-shrink: 0;
}

.store-profile-logo img {
    width: 100%;
    height: 100%;
    border-radius: calc(var(--radius-lg) - 6px);
    object-fit: cover;
}

.store-profile-logo .logo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: calc(var(--radius-lg) - 6px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    color: #fff;
    font-size: 2.5rem;
    font-weight: 800;
}

.store-profile-info {
    flex: 1;
    padding-bottom: 10px;
}

.store-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.store-name-row h1 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.5px;
}

.store-profile-info .store-owner {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.store-profile-info .store-category {
    display: inline-block;
    color: var(--accent-primary);
    background: rgba(132, 239, 210, 0.1);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.store-profile-header #chatStoreBtn {
    margin-bottom: 10px;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 700;
    box-shadow: var(--accent-glow);
}

.store-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 700px;
}

.store-stats-bar {
    display: flex;
    gap: 40px;
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item strong {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.product-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.placeholder-img {
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.product-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-footer {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent-primary);
    letter-spacing: -0.5px;
}

.contact-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
}

.contact-btn:hover {
    background: var(--accent-primary);
    color: var(--text-inverse);
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .store-profile-banner { height: 180px; }
    
    .store-profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: 0;
        gap: 16px;
    }

    .store-profile-logo {
        width: 100px;
        height: 100px;
    }

    .store-name-row {
        justify-content: center;
        flex-direction: column;
        gap: 6px;
    }

    .store-name-row h1 { font-size: 1.75rem; }

    .store-profile-header #chatStoreBtn {
        width: 100%;
        margin-top: 12px;
    }

    .store-stats-bar {
        justify-content: center;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .store-profile-banner { height: 140px; }
    .products-grid { 
        grid-template-columns: 1fr; 
        margin-bottom: 120px;
        gap: 24px;
    }
    .store-stats-bar { gap: 16px; }
    .stat-item strong { font-size: 1.25rem; }
}

/* Location Section Styles */
.form-location-section {
    margin: 24px 0;
    padding: 20px;
    background: rgba(29, 78, 216, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    animation: slideDown 0.3s ease;
}

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

.form-location-section:focus-within {
    border-color: var(--accent-primary);
    box-shadow: var(--accent-glow);
}

.location-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.location-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.blue-glow-icon {
    color: var(--accent-primary);
    filter: drop-shadow(0 0 5px var(--accent-primary));
}

.store-coverage-section {
    margin-bottom: 30px;
    animation: slideUp 0.6s ease;
}

.coverage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.coverage-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.coverage-item:hover {
    border-color: var(--accent-primary);
    transform: translateX(4px);
    background: var(--bg-hover);
}

.coverage-icon {
    width: 36px;
    height: 36px;
    background: rgba(132, 239, 210, 0.1);
    color: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.coverage-text strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.coverage-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.store-location-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.store-location-info span {
    color: var(--text-secondary);
}

.store-location-info.small {
    font-size: 0.72rem;
    margin-top: 2px;
}

.store-location-info.small svg {
    width: 10px;
    height: 10px;
}

/* Manage Store Styles */
.store-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.modal.large {
    max-width: 700px;
}

.manage-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px;
    cursor: pointer;
    transition: all var(--transition);
    border-radius: var(--radius-md);
}

.tab-btn:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.tab-btn.active {
    color: var(--accent-primary);
    background: rgba(29, 78, 216, 0.1);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

.products-manage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
}

.product-manage-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all var(--transition);
}

.product-manage-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.product-manage-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.product-manage-card .info {
    padding: 10px;
}

.product-manage-card h4 {
    font-size: 0.85rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-manage-card p {
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 0.9rem;
}

.close-modal {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color var(--transition);
}

.close-modal:hover {
    color: var(--danger);
}

/**
 * PleChat - Stores Styles
 * SaaS / Futuristic Style
 */

.stores-page {
    min-height: 100vh;
    background: var(--bg-primary);
    padding: 0 0 100px;
}

.stores-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

/* Header */
.stores-header {
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
    animation: fadeIn 0.8s ease;
}

.stores-title h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.stores-title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Grid */
.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

/* Store Card */
.store-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
}

.store-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.store-logo-wrapper {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    padding: 2px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.store-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.store-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.store-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.store-name-row h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.store-category {
    font-size: 0.8rem;
    color: var(--accent-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.store-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.store-card-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.store-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Verification Badge 3D */
.verified-badge {
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #84EFD2 0%, #5ED9B9 100%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    position: relative;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.25),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.4);
    animation: badgeShine 3s infinite ease-in-out;
}

.verified-badge-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(180deg, #84EFD2 0%, #5ED9B9 100%);
    box-shadow: 0 0 8px rgba(132, 239, 210, 0.4);
    flex-shrink: 0;
    position: relative;
    animation: badgeGlow 2s infinite alternate;
}

/* Mobile */
@media (max-width: 640px) {
    .stores-grid { grid-template-columns: 1fr; }
    .stores-title h1 { font-size: 2rem; }
}.store-name-row h3 {
    margin-bottom: 0 !important;
}

/* Verification Form Styles */
.verification-form {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.form-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

.verification-status-info {
    margin-bottom: 20px;
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.alert-info { background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.2); color: #60a5fa; }
.alert-success { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.2); color: #34d399; }
.alert-danger { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.2); color: #f87171; }

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 600px) {
    .form-row-3 {
        grid-template-columns: 1fr;
    }
}
