/*!
 * ═══════════════════════════════════════════════════════════════════════════
 * SADAF — Unified Store Stylesheet
 * ═══════════════════════════════════════════════════════════════════════════
 *  Uses --sadaf-* variables from sadaf-commerce.css for full theme support.
 *  All store pages share this CSS — no page-specific color definitions.
 * ═══════════════════════════════════════════════════════════════════════════
 */

/* ─── Store Header ─── */
.store-header {
    background: var(--sadaf-surface);
    border-bottom: 1px solid var(--sadaf-border);
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--sadaf-shadow-sm);
    transition: background-color .25s, border-color .25s;
}
.store-header__inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
}
.store-header__brand {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}
.store-header__logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--sadaf-primary);
    text-decoration: none;
    white-space: nowrap;
}
.store-header__logo i { font-size: 1.2rem; }
.store-header__nav {
    display: flex;
    gap: 4px;
}
.store-header__nav a {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--sadaf-text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all .15s;
}
.store-header__nav a:hover { background: var(--sadaf-surface-2); color: var(--sadaf-primary); }
.store-header__nav a.active { background: var(--sadaf-primary-soft); color: var(--sadaf-primary); }

/* Search */
.store-header__search { flex: 1; max-width: 420px; }
.store-search-form { position: relative; }
.store-search__input {
    width: 100%;
    height: 42px;
    padding: 0 38px 0 14px;
    border: 2px solid var(--sadaf-border);
    border-radius: 21px;
    background: var(--sadaf-surface-2);
    color: var(--sadaf-text);
    font-family: inherit;
    font-size: 0.86rem;
    transition: all .15s;
}
.store-search__input:focus {
    outline: none;
    border-color: var(--sadaf-primary);
    box-shadow: 0 0 0 3px var(--sadaf-primary-ring);
}
.store-search__icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sadaf-text-subtle);
    font-size: 0.9rem;
    pointer-events: none;
}

/* Actions */
.store-header__actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.store-header__action {
    height: 42px;
    min-width: 42px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--sadaf-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: all .15s;
}
.store-header__action:hover {
    background: var(--sadaf-surface-2);
    color: var(--sadaf-primary);
}
.store-header__action--wallet {
    background: var(--sadaf-primary-soft);
    color: var(--sadaf-primary);
}
.store-header__action--primary {
    background: linear-gradient(135deg, var(--sadaf-primary), var(--sadaf-primary-hover));
    color: #fff;
}
.store-header__action-text { font-size: 0.78rem; font-weight: 700; }
.store-header__badge {
    position: absolute;
    top: -2px;
    left: -2px;
    background: var(--sadaf-primary);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}
.store-header__badge--success { background: var(--sadaf-success); }

/* Avatar */
.store-header__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--sadaf-border);
    flex-shrink: 0;
}
.store-header__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.store-header__avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--sadaf-primary), var(--sadaf-purple));
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

/* ─── Store Footer ─── */
.store-footer {
    background: var(--sadaf-surface);
    border-top: 1px solid var(--sadaf-border);
    padding: 32px 20px 16px;
    margin-top: 40px;
    transition: background-color .25s, border-color .25s;
}
.store-footer__inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 24px;
}
.store-footer__brand {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--sadaf-primary);
    margin-bottom: 8px;
}
.store-footer__desc {
    font-size: 0.82rem;
    color: var(--sadaf-text-muted);
    line-height: 1.7;
}
.store-footer__title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--sadaf-text);
    margin-bottom: 10px;
}
.store-footer__col a {
    display: block;
    font-size: 0.8rem;
    color: var(--sadaf-text-muted);
    text-decoration: none;
    padding: 4px 0;
    transition: color .15s;
}
.store-footer__col a:hover { color: var(--sadaf-primary); }
.store-footer__bottom {
    max-width: 1400px;
    margin: 20px auto 0;
    padding-top: 16px;
    border-top: 1px solid var(--sadaf-border);
    text-align: center;
    font-size: 0.78rem;
    color: var(--sadaf-text-subtle);
}

/* ─── Store Container ─── */
.store-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 200px);
}

/* ─── Store Page Header ─── */
.store-page-header {
    margin-bottom: 20px;
}
.store-page-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--sadaf-text);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 4px;
}
.store-page-header h1 i { color: var(--sadaf-primary); }
.store-page-header p {
    font-size: 0.84rem;
    color: var(--sadaf-text-muted);
    margin: 0;
}

/* ─── Shared Card ─── */
.store-card {
    background: var(--sadaf-surface);
    border: 1px solid var(--sadaf-border);
    border-radius: 16px;
    box-shadow: var(--sadaf-shadow-sm);
    overflow: hidden;
    transition: background-color .25s, border-color .25s;
}

/* ─── Breadcrumb ─── */
.store-breadcrumb {
    display: flex;
    gap: 6px;
    align-items: center;
    font-size: 0.8rem;
    color: var(--sadaf-text-muted);
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.store-breadcrumb a {
    color: var(--sadaf-text-muted);
    text-decoration: none;
    transition: color .15s;
}
.store-breadcrumb a:hover { color: var(--sadaf-primary); }
.store-breadcrumb i { font-size: 0.6rem; opacity: 0.4; }
.store-breadcrumb span { color: var(--sadaf-text); font-weight: 600; }

/* ─── Responsive Header ─── */
@media (max-width: 900px) {
    .store-header__nav { display: none; }
    .store-header__action-text { display: none; }
    .store-header__search { max-width: none; }
}
@media (max-width: 600px) {
    .store-header__inner { flex-wrap: wrap; gap: 8px; }
    .store-header__search { order: 3; flex: 1 1 100%; }
    .store-header__actions { gap: 4px; }
    .store-header__action { min-width: 38px; height: 38px; padding: 0 8px; }
    .store-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
    .store-footer__inner { grid-template-columns: 1fr; }
}
