/* Page-Specific Styles for Sanctuary / Store Partners */
body {
    background: #f4f6f8;
}

.container {
    max-width: 900px;
}

.card {
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.sanctuary-header-layout {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.sanctuary-logo-main {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: contain;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    flex-shrink: 0;
    padding: 4px;
}

.sanctuary-body {
    flex-grow: 1;
}

.sanctuary-meta {
    margin-top: 12px;
    font-size: 0.85em;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sanctuary-meta a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
}

.sanctuary-meta a:hover {
    text-decoration: underline;
}

/* Toolbar / Search & Filter Section */
.store-toolbar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

.store-search-input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 0.95em;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.store-search-input:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 0.9em;
}

/* Category Tabs Styling */
.category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    white-space: nowrap;
}

.tab-btn {
    background: #f1f3f5;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 600;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background: #e2e6ea;
    color: #212529;
}

.tab-btn.active {
    background: #0066cc;
    color: white;
    border-color: #0066cc;
}

/* Individual Store Card Layout */
.stores-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.store-item-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.store-item-card:hover {
    border-color: #cbd3da;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.store-main-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.store-info-left {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex-grow: 1;
}

.store-logo {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: contain;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    flex-shrink: 0;
    padding: 2px;
}

.store-details h4 {
    margin: 0 0 4px 0;
    font-size: 1.05em;
    color: #1a1a1a;
}

.badge-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.commission-badge {
    font-size: 0.75em;
    background: #e6fcf5;
    color: #0ca678;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.category-tag {
    font-size: 0.75em;
    color: #495057;
    background: #f1f3f5;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.store-description {
    color: #4a5568;
    font-size: 0.9em;
    margin: 0;
    line-height: 1.4;
}

.btn {
    background: #0066cc;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.2s, transform 0.1s;
    flex-shrink: 0;
    height: fit-content;
}

.btn:hover {
    background: #0052a3;
}

.btn:active {
    transform: scale(0.98);
}

/* Product Preview Chips Container */
.product-preview-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px dashed #e9ecef;
}

.product-chip {
    font-size: 0.78em;
    background: #f8f9fa;
    color: #334155;
    padding: 4px 10px;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.product-chip:hover {
    background: #edf2f7;
    color: #0066cc;
    border-color: #cbd5e1;
}

/* Pagination Controls */
.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

.page-btn {
    background: white;
    border: 1px solid #ced4da;
    color: #495057;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 600;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-btn:not(:disabled):hover {
    background: #f1f3f5;
}

#loading {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 40px;
}

#error-card {
    display: none;
    color: #c5221f;
}

@media (max-width: 600px) {
    .sanctuary-header-layout { flex-direction: column; }
    .store-main-row { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
}
