/* سوپرمارکت — Static Demo */
:root {
    --primary: #EF4444;
    --secondary: #F59E0B;
    --bg: #140505;
    --bg-2: color-mix(in srgb, #140505 95%, white);
    --card: color-mix(in srgb, #140505 90%, white);
    --border: color-mix(in srgb, #EF4444 25%, transparent);
    --text: #f8f5ff;
    --text-muted: #9a8fb8;
    --radius: 20px;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    direction: rtl;
    line-height: 1.7;
    background-image: 
        radial-gradient(ellipse at top right, color-mix(in srgb, var(--primary) 15%, transparent), transparent 50%),
        radial-gradient(ellipse at bottom left, color-mix(in srgb, var(--secondary) 15%, transparent), transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

.demo-badge {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(0,0,0,0.85);
    border: 2px solid var(--primary);
    color: #fff;
    padding: 8px 18px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 700;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10,10,20,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 900;
    color: var(--text);
}

.logo-icon {
    font-size: 28px;
    filter: drop-shadow(0 4px 12px var(--primary));
}

.nav {
    display: flex;
    gap: 24px;
}

.nav a {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
}

.nav a:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    gap: 8px;
}

.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    font-size: 18px;
    position: relative;
    transition: 0.3s;
}

.icon-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--primary);
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 900;
    display: grid;
    place-items: center;
}

/* Hero */
.hero {
    padding: 100px 0 80px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: color-mix(in srgb, var(--primary) 15%, transparent);
    border: 1px solid var(--border);
    color: var(--primary);
    padding: 10px 24px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 28px;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text), var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 99px;
    font-weight: 800;
    font-size: 14px;
    border: none;
    transition: 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 10px 30px color-mix(in srgb, var(--primary) 40%, transparent);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 45px color-mix(in srgb, var(--primary) 60%, transparent);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Features */
.features {
    padding: 60px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: 0.3s;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Section */
.section-head {
    text-align: center;
    margin-bottom: 50px;
}

.eyebrow {
    display: inline-block;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-head h2 {
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 900;
    margin-bottom: 12px;
}

.section-head h2 .accent {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-head p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Products */
.products-section {
    padding: 80px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: 0.4s;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 50px color-mix(in srgb, var(--primary) 25%, transparent);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-2);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--primary);
    color: #fff;
    padding: 5px 14px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 800;
}

.product-body {
    padding: 18px;
}

.product-body h3 {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.5;
}

.product-price {
    color: var(--primary);
    font-size: 16px;
    font-weight: 900;
    margin-bottom: 14px;
}

.product-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border: none;
    border-radius: 99px;
    font-weight: 800;
    font-size: 13px;
    transition: 0.3s;
}

.product-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px color-mix(in srgb, var(--primary) 50%, transparent);
}

/* CTA */
.cta-section {
    padding: 80px 0;
}

.cta-box {
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 20%, transparent), color-mix(in srgb, var(--secondary) 20%, transparent));
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 60px 40px;
    text-align: center;
}

.cta-box h2 {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 900;
    margin-bottom: 12px;
}

.cta-box p {
    color: var(--text-muted);
    margin-bottom: 28px;
}

.cta-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.cta-form input {
    flex: 1;
    padding: 16px 24px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 99px;
    color: var(--text);
    font-family: inherit;
    outline: none;
    font-size: 14px;
}

.cta-form input:focus {
    border-color: var(--primary);
}

.cta-form button {
    padding: 16px 36px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 99px;
    font-weight: 800;
    font-size: 14px;
    transition: 0.3s;
    white-space: nowrap;
}

.cta-form button:hover {
    background: var(--secondary);
    transform: scale(1.05);
}

/* Footer */
.footer {
    background: rgba(0,0,0,0.4);
    border-top: 1px solid var(--border);
    padding: 60px 0 24px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer h4 {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--primary);
}

.footer p, .footer a {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 10px;
    line-height: 1.9;
}

.footer a:hover {
    color: var(--primary);
    padding-right: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--text-muted);
    font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav { display: none; }
    .hero { padding: 60px 0 40px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { justify-content: center; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-form { flex-direction: column; }
    .demo-badge { font-size: 11px; padding: 6px 12px; top: 12px; left: 12px; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .product-body { padding: 12px; }
    .product-body h3 { font-size: 13px; }
    .product-price { font-size: 14px; }
    .product-btn { font-size: 12px; padding: 10px; }
}
