/* ============================================
   Ahel Lkhir - Premium E-commerce Design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

:root {
    --primary: #ca8a04; /* Rich bold gold */
    --primary-light: #fef08a;
    --primary-dark: #a16207;
    --secondary: #166534; /* Deep natural green */
    --secondary-dark: #14532d;
    --bg-main: #fcfcfc;
    --bg-card: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #475569;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    direction: rtl;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; color: var(--text-dark); }
p { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-center { text-align: center; }

/* Utilities */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-light { background-color: var(--bg-card); }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    font-family: inherit;
}
.btn-primary {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px 0 rgba(202, 138, 4, 0.39);
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(202, 138, 4, 0.5);
}
.btn-secondary {
    background-color: var(--secondary);
    color: #fff;
}
.btn-secondary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
}
.btn-block { width: 100%; }
.btn:active { transform: translateY(0); }

/* App Bar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.navbar-container { display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 40px; }
.brand-name { font-size: 1.25rem; font-weight: 800; color: var(--secondary); }

/* Hero Section */
.hero {
    padding: 60px 0 100px;
    background: linear-gradient(to bottom, #fef08a11, var(--bg-main));
    overflow: hidden;
}
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    color: var(--secondary);
}
.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 32px;
    color: var(--text-muted);
}
.hero-features {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
}
.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--secondary-dark);
}
.hero-feature svg { color: var(--primary); width: 20px; height: 20px; }
.hero-image {
    position: relative;
}
.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.hero-image::before {
    content: '';
    position: absolute;
    top: -20px; right: -20px; bottom: 20px; left: 20px;
    background-color: var(--primary-light);
    border-radius: var(--radius);
    z-index: 1;
}
.price-tag {
    position: absolute;
    bottom: -20px;
    left: 20px;
    background: var(--bg-card);
    padding: 16px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid var(--primary);
}
.price-label { font-size: 0.875rem; color: var(--text-muted); font-weight: 500; }
.price-amount { font-size: 1.8rem; font-weight: 800; color: var(--primary-dark); }
.price-old { font-size: 1rem; color: var(--text-light); text-decoration: line-through; }

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 48px;
}
.section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 16px;
}
.section-title p {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}
.divider {
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    margin: 0 auto 16px;
    border-radius: 2px;
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.benefit-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}
.benefit-icon {
    width: 64px;
    height: 64px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--primary-dark);
}
.benefit-icon svg { width: 32px; height: 32px; }
.benefit-card h3 { font-size: 1.5rem; margin-bottom: 16px; }

/* Ingredients */
.ingredients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.ingredient-card {
    background: var(--bg-main);
    border-radius: var(--radius);
    overflow: hidden;
    text-align: center;
    transition: all 0.3s ease;
}
.ingredient-card:hover {
    background: var(--bg-card);
    box-shadow: var(--shadow-md);
}
.ingredient-img {
    height: 160px;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}
.ingredient-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ingredient-info { padding: 24px; }
.ingredient-info h3 { font-size: 1.25rem; margin-bottom: 8px; color: var(--secondary); }
.ingredient-info p { font-size: 0.95rem; }

/* Testimonials */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}
.review-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}
.review-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.review-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
}
.review-user h4 { font-size: 1.1rem; margin-bottom: 4px; }
.review-rating { color: var(--primary); font-size: 1.1rem; }
.review-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-dark);
    flex-grow: 1;
}

/* Checkout Section */
.checkout-section {
    background-color: var(--bg-card);
}
.checkout-container {
    background: var(--bg-main);
    border-radius: var(--radius);
    padding: 48px;
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--primary-light);
}
.checkout-header { text-align: center; margin-bottom: 32px; }
.checkout-header h2 { font-size: 2rem; color: var(--secondary); }
.form-group { margin-bottom: 24px; }
.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}
.form-control {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--bg-card);
    color: var(--text-dark);
    transition: all 0.3s ease;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}
select.form-control { appearance: padding-box; } /* Quick fix for select arrows */
.submit-btn {
    font-size: 1.25rem;
    padding: 20px;
    box-shadow: 0 10px 25px -5px rgba(202, 138, 4, 0.5);
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.submit-btn::after {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    bottom: -50%; left: -50%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(45deg) translate(-100%, 0);
    animation: shine 3s infinite;
}
@keyframes shine {
    0% { transform: rotate(45deg) translate(-100%, 0); }
    100% { transform: rotate(45deg) translate(200%, 0); }
}

/* Footer */
.footer {
    background-color: var(--secondary-dark);
    color: #fff;
    padding: 60px 0 20px;
    text-align: center;
}
.footer p { color: rgba(255,255,255,0.7); }

/* Issues Section */
.issues-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.issues-box {
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.red-box { background-color: #fef2f2; border-color: #fca5a5; }
.green-box { background-color: #f0fdf4; border-color: #86efac; }
.issues-list { list-style: none; padding: 0; }
.issues-list li {
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
    color: var(--text-dark);
}
.issues-list li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.success-list li { font-weight: 500; }

/* Responsive */
@media (max-width: 992px) {
    .issues-container { grid-template-columns: 1fr; }
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-features { justify-content: center; }
    .hero-image { margin-top: 40px; }
    .hero-image::before { display: none; }
    .price-tag { bottom: 20px; right: 20px; left: auto; }
}
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .benefits-grid, .reviews-grid { grid-template-columns: 1fr; }
    .ingredients-grid { grid-template-columns: repeat(2, 1fr); }
    .checkout-container { padding: 24px; }
}
@media (max-width: 480px) {
    .ingredients-grid { grid-template-columns: 1fr; }
    .hero-features { flex-direction: column; gap: 12px; }
}
