/* ══════════════════════════════════════
   Store Layout Styles
   ══════════════════════════════════════ */

/* ── Page Layout ── */
.store-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.store-main {
    flex: 1;
    padding-top: var(--space-8);
    padding-bottom: var(--space-16);
}

/* ── Footer ── */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: var(--space-16) 0 var(--space-8);
    margin-top: auto;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-10);
    margin-bottom: var(--space-12);
}

@media (max-width: 768px) {
    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.footer__logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-400), var(--primary-600));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    font-weight: 800;
    color: #ffffff;
}

.footer__logo-text {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: #ffffff;
}

.footer__description {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    opacity: 0.8;
    max-width: 320px;
}

.footer__section-title {
    font-size: var(--text-base);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: var(--space-4);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer__link {
    font-size: var(--text-sm);
    color: var(--footer-text);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.footer__link:hover {
    color: var(--accent-400);
    transform: translateX(4px);
}

[dir="rtl"] .footer__link:hover {
    transform: translateX(-4px);
}

.footer__bottom {
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-xs);
    opacity: 0.6;
}

/* ── Hero Section ── */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-900) 50%, var(--primary-800) 100%);
    padding: var(--space-20) 0;
    overflow: hidden;
    border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(212, 165, 32, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255, 107, 0, 0.15) 0%, transparent 40%);
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    color: #ffffff;
}

.hero__title {
    font-size: var(--text-5xl);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--space-6);
    color: #ffffff;
}

.hero__title span {
    color: var(--accent-400);
}

.hero__subtitle {
    font-size: var(--text-lg);
    opacity: 0.85;
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-8);
}

.hero__actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero {
        padding: var(--space-12) 0;
    }
    .hero__title {
        font-size: var(--text-2xl);
    }
}

/* ── Section Headers ── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-8);
}

.section-title {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--text-primary);
    position: relative;
    padding-bottom: var(--space-3);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-500), var(--accent-400));
    border-radius: var(--radius-full);
}

[dir="rtl"] .section-title::after { right: 0; }
[dir="ltr"] .section-title::after { left: 0; }

.section-link {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--primary-500);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.section-link:hover {
    color: var(--primary-600);
    gap: var(--space-2);
}

/* ── Auth Pages ── */
.auth-page {
    min-height: calc(100vh - var(--navbar-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8) var(--space-4);
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--bg-secondary) 50%, var(--accent-50) 100%);
}

[data-theme="dark"] .auth-page {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
}

.auth-page__inner {
    width: 100%;
    max-width: 480px;
    animation: fadeInUp 0.6s ease;
}

/* ── Profile Page ── */
.profile-page {
    max-width: 800px;
    margin: 0 auto;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-400), var(--primary-600));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: var(--text-3xl);
    font-weight: 700;
    flex-shrink: 0;
}

.profile-info h2 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-1);
}

.profile-info p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

/* ── Empty State ── */
.empty-state {
    text-align: center;
    padding: var(--space-16) var(--space-8);
}

.empty-state__icon {
    font-size: 4rem;
    margin-bottom: var(--space-4);
    opacity: 0.4;
}

.empty-state__title {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.empty-state__text {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin-bottom: var(--space-6);
}
