/* ================================================
   پوشا AI - استایل اصلی
   ================================================ */

:root {
    --primary-color: #7c3aed;
    --primary-dark: #6d28d9;
    --primary-light: #a78bfa;
    --secondary-color: #ec489a;
    --success: #10b981;
    --danger: #dc2626;
    --warning: #f59e0b;
    --info: #3b82f6;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-xl: 0 25px 50px rgba(0,0,0,0.15);
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: Tahoma, 'Vazirmatn', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background: #fff;
    direction: rtl;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============ Navbar ============ */
.navbar {
    background: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}
.nav-menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}
.nav-menu a {
    color: var(--gray-700);
    font-weight: 500;
}
.nav-menu a:hover { color: var(--primary-color); }
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ============ Hero Banner ============ */
.hero-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-size: cover;
    background-position: center;
    color: white;
    padding: 5rem 0;
    text-align: center;
    position: relative;
}
.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
}
.hero-content {
    position: relative;
    z-index: 1;
}
.hero-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}
.hero-banner p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ============ Buttons ============ */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--gray-100);
    color: var(--gray-700);
    border: none;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    font-family: inherit;
    line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}
.btn-primary:hover { color: white; box-shadow: var(--shadow-lg); }
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}
.btn-outline:hover { background: var(--primary-color); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-success { background: var(--success); color: white; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.875rem; }
.btn-large { padding: 1rem 2.5rem; font-size: 1.1rem; }

/* ============ Sections ============ */
.page-section {
    padding: 3rem 0;
}
.page-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}
.page-subtitle {
    color: var(--gray-500);
    margin-bottom: 2rem;
}
.section-title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--gray-900);
}

/* ============ Features ============ */
.features { padding: 4rem 0; background: var(--gray-50); }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.feature-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}
.feature-card:hover { transform: translateY(-5px); }
.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.feature-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}
.feature-card p {
    color: var(--gray-500);
    font-size: 0.95rem;
}

/* ============ Products ============ */
.featured-products { padding: 4rem 0; }
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}
.product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}
.product-image-placeholder {
    width: 100%;
    height: 220px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--gray-300);
}
.product-image-placeholder.large {
    height: 400px;
    font-size: 5rem;
}
.product-info { padding: 1rem; }
.product-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}
.product-desc {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}
.product-price {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.product-price del {
    color: var(--gray-500);
    margin-left: 0.5rem;
    font-weight: 400;
}
.product-actions {
    display: flex;
    gap: 0.5rem;
}
.product-actions .btn { flex: 1; text-align: center; padding: 0.5rem; }

/* ============ Product Detail ============ */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.product-gallery img {
    width: 100%;
    border-radius: var(--radius-lg);
}
.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    overflow-x: auto;
}
.gallery-thumbs .thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    cursor: pointer;
    border-radius: var(--radius);
    border: 2px solid transparent;
    transition: border 0.2s;
}
.gallery-thumbs .thumb:hover { border-color: var(--primary-color); }
.product-details h1 { font-size: 1.8rem; margin-bottom: 1rem; }
.product-category {
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
}
.product-short-desc {
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}
.product-price-box {
    padding: 1rem 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 1.5rem;
}
.current-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}
.old-price {
    color: var(--gray-500);
    margin-left: 1rem;
    font-size: 1rem;
}
.product-description {
    margin-bottom: 1.5rem;
}
.product-description h3 { margin-bottom: 0.5rem; }
.product-cta { margin-bottom: 1.5rem; }
.product-meta {
    display: flex;
    justify-content: space-between;
    color: var(--gray-500);
    font-size: 0.875rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

/* ============ Categories Filter ============ */
.categories-filter {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.cat-filter {
    padding: 0.5rem 1.2rem;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 9999px;
    color: var(--gray-700);
    font-size: 0.9rem;
    transition: all 0.2s;
}
.cat-filter:hover, .cat-filter.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ============ TryOn ============ */
.tryon-page { padding: 1rem 0; }
.product-summary {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}
.product-summary img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius);
}

/* ============ Gallery ============ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}
.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: var(--shadow);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
    color: white;
    opacity: 0;
    transition: opacity 0.2s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-actions { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.btn-icon {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 9999px;
    cursor: pointer;
    font-size: 0.875rem;
}
.btn-icon:hover { background: rgba(255,255,255,0.3); }

/* ============ Contact ============ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-top: 2rem;
}
.contact-info, .contact-form {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

/* ============ Forms ============ */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gray-700);
}
.form-control, .form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border 0.2s;
    background: white;
}
.form-control:focus, .form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}
.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--gray-500);
    font-size: 0.85rem;
}

/* ============ Alerts ============ */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin: 1rem 0;
    border: 1px solid transparent;
}
.alert-success { background: #d1fae5; color: #065f46; border-color: #6ee7b7; }
.alert-error, .alert-danger { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.alert-info { background: #dbeafe; color: #1e40af; border-color: #93c5fd; }
.alert-warning { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
.alert h3, .alert h4 { margin-bottom: 0.5rem; }
.alert ul { margin-right: 1.5rem; }

/* ============ Empty State ============ */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--gray-500);
}
.empty-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ============ Footer ============ */
.site-footer {
    background: var(--gray-900);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.site-footer h4 {
    margin-bottom: 1rem;
    color: var(--primary-light);
}
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 0.5rem; }
.site-footer a { color: rgba(255,255,255,0.8); }
.site-footer a:hover { color: white; }
.social-icons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    font-size: 1.2rem;
    text-decoration: none;
    transition: background 0.2s;
}
.social-icons a:hover { background: var(--primary-color); }
.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
}

/* ============ Login Page ============ */
.blank-layout {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.login-page {
    width: 100%;
    max-width: 420px;
}
.login-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}
.login-header {
    text-align: center;
    margin-bottom: 2rem;
}
.login-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}
.login-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--gray-900);
}
.login-header p {
    color: var(--gray-500);
}
.password-wrapper {
    position: relative;
}
.password-wrapper input {
    padding-left: 3rem;
}
.toggle-password {
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
}
.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

/* ============ Error Pages ============ */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 1rem;
}
.error-content {
    background: white;
    padding: 3rem 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-xl);
    max-width: 500px;
}
.error-code {
    font-size: 5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1;
}
.error-content h1 {
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}
.error-content p {
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

/* ============ About ============ */
.about-section {
    padding: 4rem 0;
    background: var(--gray-50);
}
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: var(--gray-700);
    line-height: 1.8;
}
.page-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: var(--gray-700);
}

/* ============ Footer Credit ============ */
.footer-credit {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.85;
}
.footer-credit a {
    transition: opacity 0.2s;
}
.footer-credit a:hover {
    opacity: 1;
    text-decoration: underline !important;
}

/* ============ All Products Section (Home) ============ */
.all-products .products-grid {
    margin-top: 1.5rem;
}
