@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap");

:root {
    --bg: #0f172a;
    --surface: rgba(15, 23, 42, 0.75);
    --surface-solid: #15213b;
    --card: rgba(30, 41, 68, 0.85);
    --accent: #f97316;
    --accent-soft: rgba(249, 115, 22, 0.2);
    --text: #f8fafc;
    --text-muted: #cbd5f5;
    --border: rgba(148, 163, 200, 0.2);
    --radius: 1rem;
    --shadow: 0 30px 60px rgba(8, 15, 33, 0.3);
}

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

html {
    direction: rtl;
}

html,
body {
    height: 100%;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.18), transparent 45%),
        radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.14), transparent 45%),
        var(--bg);
    background-repeat: no-repeat;
    color: var(--text);
    font-family: "Inter", "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-align: right;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1100px, 92vw);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    background: rgba(15, 23, 42, 0.85);
    border-bottom: 1px solid var(--border);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 1rem;
}

.brand {
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.05em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.site-nav a {
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

.site-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -0.45rem;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), #6366f1);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 200ms ease;
}

.site-nav a:focus-visible,
.site-nav a:hover {
    color: var(--text);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.75rem;
    cursor: pointer;
}

main {
    display: block;
}

.section {
    padding: clamp(3rem, 6vw, 5rem) 0;
    background: var(--bg);
}

.section-header {
    max-width: 46rem;
    margin-bottom: clamp(2rem, 5vw, 3rem);
    background: transparent;
}

.section-header .eyebrow,
.section-header h2,
.section-header p {
    color: var(--text);
}

.section-header .eyebrow {
    color: var(--accent);
}

.section-header p {
    color: var(--text-muted);
}

.hero {
    padding: clamp(4rem, 8vw, 8rem) 0 clamp(3rem, 6vw, 6rem);
}

.hero .container {
    display: grid;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.hero-content h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero .lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 32rem;
}

.hero .cta-group {
    margin-top: 1.25rem;
}

.hero-visual {
    min-height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none;
    border: none;
    border-radius: 0;
}

.hero-visual::before,
.hero-visual::after {
    display: none !important;
    content: none !important;
}

.hero-visual img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.eyebrow {
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    line-height: 1.15;
    margin-bottom: 0.75rem;
    color: var(--text);
}

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

.info-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 1.75rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.info-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.why .split {
    display: grid;
    gap: clamp(2rem, 5vw, 4rem);
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: start;
}

.feature-list {
    list-style: none;
    display: grid;
    gap: 1.5rem;
}

.feature-list li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: start;
}

.feature-list h3 {
    margin-bottom: 0.35rem;
}

.feature-list .icon {
    font-size: 1.75rem;
    color: var(--accent);
    margin-top: 0.15rem;
}

.metric-panel {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.metric-title {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.metric-panel dl {
    display: grid;
    gap: 1.5rem;
}

.metric-panel dt {
    font-size: 2.1rem;
    font-weight: 700;
}

.metric-panel dd {
    color: var(--text-muted);
}

.products .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    align-items: start;
}

.products .product-grid img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
}

.products .product-grid .method-img-1 {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 500px;
    width: auto;
    margin: 0 auto;
}

.products .product-grid .method-img-2 {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    width: auto;
    margin: 0 auto;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: start;
}

.review-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    transition: transform 200ms ease, box-shadow 200ms ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(8, 15, 33, 0.4);
    border-color: var(--accent);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.avatar-initial {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    text-align: center;
}

.review-author {
    flex: 1;
}

.review-author h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.review-stars {
    display: flex;
    gap: 0.25rem;
}

.review-stars .uil {
    color: #fbbf24;
    font-size: 1.1rem;
}

.review-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.review-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.review-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.review-value {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.product-card {
    background: var(--surface);
    border-radius: calc(var(--radius) - 0.25rem);
    overflow: hidden;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.product-card img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.product-content {
    padding: 1.5rem;
    display: grid;
    gap: 1rem;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price {
    font-weight: 600;
}

.link {
    color: var(--accent);
    font-weight: 600;
}

.cta .split {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.25), rgba(99, 102, 241, 0.25));
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: clamp(2rem, 5vw, 3rem);
    box-shadow: var(--shadow);
}

.contact .contact-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    background: var(--surface);
    padding: clamp(1.75rem, 4vw, 2.5rem);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.contact-form label {
    display: grid;
    gap: 0.5rem;
    color: var(--text-muted);
}

.contact-form label span {
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text);
    font: inherit;
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.contact-form .full {
    grid-column: 1 / -1;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.875rem 1.5rem;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 200ms ease;
}

.contact-email:hover {
    border-color: var(--accent);
    background: rgba(249, 115, 22, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.2);
}

.contact-email .uil {
    font-size: 1.25rem;
    color: var(--accent);
}

.contact-email a {
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 500;
    transition: color 200ms ease;
}

.contact-email:hover a {
    color: var(--accent);
}

.contact .section-header h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.5rem;
    color: var(--text);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.btn.primary {
    background: linear-gradient(135deg, var(--accent), #6366f1);
    color: var(--text);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.35);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.45);
}

.btn.ghost {
    border: 1px solid var(--border);
    color: var(--text);
    background: transparent;
}

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

.site-footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    background: rgba(10, 15, 30, 0.85);
}

.site-footer .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 1.25rem;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--text);
}

.cta .btn {
    flex-shrink: 0;
}

.cta .split > div {
    max-width: 32rem;
}

@media (max-width: 768px) {
    .site-nav {
        position: fixed;
        inset: 4.25rem auto auto 1rem;
        background: rgba(15, 23, 42, 0.95);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
        box-shadow: var(--shadow);
        transform: scale(0.95);
        opacity: 0;
        pointer-events: none;
        transition: opacity 180ms ease, transform 180ms ease;
    }

    .site-nav[data-open="true"] {
        opacity: 1;
        transform: scale(1);
        pointer-events: auto;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-header .container {
        padding: 0.85rem 0;
    }

    .hero {
        padding-top: 6rem;
    }

    .cta .split {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta .btn {
        width: 100%;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .review-card {
        padding: 1.5rem;
    }

    .review-avatar {
        width: 50px;
        height: 50px;
    }

    .avatar-initial {
        font-size: 1.5rem;
    }
}

/* ============================================
   التحسينات الجديدة - شارات الخصم والعروض
   ============================================ */

/* شارة الخصم في الهيدر */
.discount-banner {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(239, 68, 68, 0.15));
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 99;
    backdrop-filter: blur(10px);
}

.discount-banner .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.discount-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f97316, #ef4444);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

.countdown-timer {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
}

.countdown-timer .uil {
    color: var(--accent);
    font-size: 1.1rem;
}

/* تأثير Pulse للشارة */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(249, 115, 22, 0.6);
    }
}

.pulse-badge {
    animation: pulse 2s ease-in-out infinite;
}

/* ============================================
   تحسينات Hero Section
   ============================================ */

.hero-content {
    position: relative;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.badge-best-seller {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.2));
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.3);
}

.badge-rating {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(239, 68, 68, 0.2));
    color: #f97316;
    border-color: rgba(249, 115, 22, 0.3);
}

.badge-shipping {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(22, 163, 74, 0.2));
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* عرض الأسعار */
.price-display {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.price-old {
    font-size: 1.25rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-bottom: 0.5rem;
}

.price-new {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-save {
    font-size: 1rem;
    color: #22c55e;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.badge-price-guarantee {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* إثبات اجتماعي */
.social-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(249, 115, 22, 0.1);
    border-radius: var(--radius);
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.proof-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text);
}

.proof-item .uil {
    color: var(--accent);
    font-size: 1.1rem;
}

/* عداد المخزون */
.stock-counter {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.15));
    border-radius: var(--radius);
    border: 1px solid rgba(239, 68, 68, 0.3);
    flex-wrap: wrap;
}

.stock-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.stock-number {
    font-size: 2rem;
    font-weight: 700;
    color: #ef4444;
    animation: pulse 2s ease-in-out infinite;
}

.stock-warning {
    padding: 0.4rem 0.8rem;
    background: #ef4444;
    color: white;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* تحسين صورة المنتج */
.hero-visual {
    position: relative;
}

.product-image-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--border);
    background: var(--card);
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    transition: all 0.4s ease;
}

.product-image-wrapper:hover {
    border-color: var(--accent);
    box-shadow: 0 25px 70px rgba(249, 115, 22, 0.3);
    transform: translateY(-5px);
}

.product-image-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(99, 102, 241, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.product-image-wrapper:hover::before {
    opacity: 1;
}

.product-badge-top {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 2;
}

.product-badge-bottom {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 2;
}

.badge-new {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

.badge-discount {
    background: linear-gradient(135deg, #f97316, #ef4444);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.badge-quality,
.badge-fast {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: rgba(15, 23, 42, 0.9);
    color: var(--text);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.badge-quality .uil {
    color: #22c55e;
}

.badge-fast .uil {
    color: var(--accent);
}

.product-image-zoom {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
    border-radius: calc(var(--radius) - 0.5rem);
    transition: transform 0.5s ease;
}

.product-image-wrapper:hover .product-image-zoom {
    transform: scale(1.05);
}

/* تأثير Float */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.product-image-wrapper {
    animation: float 6s ease-in-out infinite;
}

/* ============================================
   تحسينات الأزرار
   ============================================ */

.btn-buy-now {
    font-size: 1.1rem;
    padding: 1rem 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.btn-buy-now::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-buy-now:hover::before {
    left: 100%;
}

@keyframes pulse-btn {
    0%, 100% {
        box-shadow: 0 12px 30px rgba(99, 102, 241, 0.35);
    }
    50% {
        box-shadow: 0 12px 40px rgba(99, 102, 241, 0.5);
    }
}

.pulse-btn {
    animation: pulse-btn 2s ease-in-out infinite;
}

.btn-add-cart,
.btn-quick-view {
    width: 100%;
    margin-bottom: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn.primary:hover {
    transform: translateY(-3px) scale(1.02);
}

/* ============================================
   تأثيرات حركية Scroll
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* ============================================
   تحسينات قسم المنتج
   ============================================ */

.product-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.product-card-main {
    position: relative;
}

.product-image-container {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--border);
    background: var(--card);
    transition: all 0.3s ease;
}

.product-image-container:hover {
    border-color: var(--accent);
    box-shadow: 0 20px 60px rgba(249, 115, 22, 0.3);
}

.product-image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.product-image-container:hover img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.7), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    gap: 1rem;
}

.product-image-container:hover .product-overlay {
    opacity: 1;
}

.product-price-box {
    background: var(--card);
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 1rem;
}

.price-old-small {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-bottom: 0.25rem;
}

.price-new-small {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.price-save-small {
    font-size: 0.85rem;
    color: #22c55e;
    font-weight: 600;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .discount-banner .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-badges {
        justify-content: center;
    }
    
    .price-display {
        text-align: center;
    }
    
    .price-new {
        justify-content: center;
    }
    
    .social-proof {
        justify-content: center;
    }
    
    .stock-counter {
        justify-content: center;
    }
    
    .product-showcase {
        grid-template-columns: 1fr;
    }
    
    .product-badge-top,
    .product-badge-bottom {
        position: static;
        flex-direction: row;
        margin: 0.5rem 0;
    }
    
    .btn-buy-now {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
