/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --background: hsl(25, 25%, 98%);
    --foreground: hsl(25, 20%, 15%);
    --primary: hsl(340, 65%, 60%);
    --primary-foreground: hsl(0, 0%, 100%);
    --accent: hsl(150, 40%, 55%);
    --accent-foreground: hsl(0, 0%, 100%);
    --muted: hsl(25, 20%, 95%);
    --muted-foreground: hsl(25, 15%, 45%);
    --border: hsl(25, 20%, 90%);
    
    /* Custom tokens */
    --rose-gold: hsl(340, 65%, 60%);
    --rose-gold-light: hsl(340, 55%, 75%);
    --rose-gold-dark: hsl(340, 70%, 45%);
    --natural-green: hsl(150, 40%, 55%);
    --natural-green-light: hsl(150, 35%, 70%);
    
    /* Shadows */
    --shadow-soft: 0 4px 20px hsla(340, 65%, 60%, 0.1);
    --shadow-card: 0 8px 30px hsla(25, 20%, 15%, 0.08);
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image img,
.hero-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to left,
        hsla(25, 25%, 98%, 0.95),
        hsla(25, 25%, 98%, 0.8),
        hsla(25, 25%, 98%, 0.6)
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 5rem 1rem;
}

.hero-text {
    max-width: 42rem;
    margin-right: auto;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background-color: hsla(340, 65%, 60%, 0.1);
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    animation: fadeIn 0.6s ease-in;
}

.badge svg {
    width: 1rem;
    height: 1rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeIn 0.8s ease-in;
}

.gradient-text {
    background: linear-gradient(to left, var(--primary), var(--rose-gold-light), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    line-height: 1.8;
    animation: fadeIn 1s ease-in;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
    animation: fadeIn 1.2s ease-in;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    animation: fadeIn 1.4s ease-in;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-primary {
    color: var(--primary);
}

.stat-accent {
    color: var(--accent);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Vazirmatn', sans-serif;
}

.btn-primary {
    background: linear-gradient(to left, var(--primary), var(--rose-gold-dark));
    color: var(--primary-foreground);
}

.btn-primary:hover {
    box-shadow: var(--shadow-soft);
    transform: scale(1.05);
}

.btn-outline {
    background: var(--background);
    color: var(--foreground);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    background-color: hsla(340, 65%, 60%, 0.05);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* Sections */
.benefits,
.how-to-use,
.product-details {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.section-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-0.5rem);
}

.benefit-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.benefit-icon-primary {
    background: linear-gradient(135deg, var(--primary), var(--rose-gold-light));
    color: var(--primary-foreground);
}

.benefit-icon-accent {
    background: linear-gradient(135deg, var(--natural-green), var(--natural-green-light));
    color: var(--accent-foreground);
}

.benefit-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--foreground);
}

.benefit-description {
    color: var(--muted-foreground);
    line-height: 1.7;
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-card);
    text-align: center;
}

.step-number {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--rose-gold-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--foreground);
}

.step-description {
    color: var(--muted-foreground);
}

/* Product Details */
.product-details {
    background: linear-gradient(135deg, var(--rose-gold-light), var(--natural-green-light));
    background-size: 200% 200%;
}

.details-content {
    max-width: 900px;
    margin: 0 auto;
}

.details-text {
    background: white;
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-card);
    margin-bottom: 2rem;
}

.details-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.details-description p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--foreground);
}

.details-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--primary);
}

.details-list {
    list-style: none;
    margin-bottom: 2rem;
}

.details-list li {
    padding: 0.5rem 0;
    font-size: 1.125rem;
}

.product-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--muted);
    border-radius: 0.75rem;
}

.info-item {
    font-size: 1rem;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.details-note {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-card);
    border-right: 4px solid var(--accent);
}

.details-note h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.details-note p {
    line-height: 1.8;
    color: var(--foreground);
}

/* Footer */
.footer {
    background: var(--foreground);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-note {
    margin-top: 0.5rem;
    opacity: 0.8;
}

/* Auth forms */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 2rem 1rem;
}

.auth-card {
    background: white;
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-card);
    width: 100%;
    max-width: 500px;
}

.auth-card h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--foreground);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    font-family: inherit;
    transition: border-color 0.2s ease;
}

input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px hsla(340, 65%, 60%, 0.1);
}

.form-footer {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--muted-foreground);
}

.form-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:hover {
    text-decoration: underline;
}

.alert {
    padding: 1rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
}

.alert-error {
    background: hsla(340, 65%, 60%, 0.1);
    color: var(--primary);
}

.alert-success {
    background: hsla(150, 40%, 55%, 0.1);
    color: var(--accent);
}

/* Dashboard */
.dashboard {
    padding: 5rem 0;
}

.dashboard h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-card);
    margin-bottom: 2rem;
}

.dashboard-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.order-list {
    list-style: none;
}

.order-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.order-list li:last-child {
    border-bottom: none;
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Products */
.products-hero {
    padding: 6rem 0 4rem;
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 1rem 4rem;
}

.product-card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-media {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-slider {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem 1.5rem 0.75rem 0.75rem;
    background: var(--muted);
    aspect-ratio: 4 / 3;
    direction: ltr;
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.slider-slide {
    flex: 0 0 100%;
    height: 100%;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: hsla(25, 25%, 98%, 0.9);
    color: var(--foreground);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.slider-control:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 8px 24px hsla(25, 20%, 15%, 0.12);
}

.slider-control-prev {
    left: 1rem;
}

.slider-control-next {
    right: 1rem;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    direction: ltr;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: hsla(25, 20%, 70%, 0.8);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.slider-dot.is-active {
    background: var(--primary);
    transform: scale(1.2);
}

.product-thumbs {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    direction: rtl;
}

.product-thumbs[data-slider-thumbs] {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.product-thumb {
    border: 2px solid transparent;
    border-radius: 0.75rem;
    padding: 0;
    background: none;
    cursor: pointer;
    flex: 0 0 auto;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.product-thumb img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 0.65rem;
    display: block;
}

.product-thumb:is(:hover, :focus-visible) {
    transform: translateY(-2px);
}

.product-thumb.is-active {
    border-color: var(--primary);
}

.product-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.product-body h3 {
    font-size: 1.5rem;
    color: var(--foreground);
}

.product-price {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 600;
}

.product-actions {
    display: flex;
    gap: 1rem;
}

.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.product-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.75rem;
}

/* Cart */
.cart-section {
    padding: 5rem 0;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.cart-table th,
.cart-table td {
    text-align: right;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-item img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 0.75rem;
}

.cart-summary {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-card);
    max-width: 360px;
}

.cart-summary h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.summary-total {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
}

.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    background: white;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-card);
}

.empty-state p {
    margin-bottom: 1.5rem;
    color: var(--muted-foreground);
}

/* Layout */
.site-nav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    background: hsla(25, 25%, 98%, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 40px hsla(25, 20%, 15%, 0.05);
    z-index: 1000;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--foreground);
    text-decoration: none;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-auth {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.site-main {
    padding-top: 72px;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.875rem;
    }
    
    .details-text {
        padding: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-inner {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-auth {
        width: 100%;
        justify-content: center;
    }
}

