:root {
    --brand: #B78474;
    --brand-dark: #9a6a5c;
    --brand-light: #d4a494;
    --brand-rgb: 183, 132, 116;
    --bg-header: #FFF0F3;
    --bg-section: #FFF6F8;
    --bg-main: #FFFFFF;
    --bg-card: #ffffff;
    --text-primary: #171717;
    --text-secondary: #888888;
    --text-light: #ffffff;
    --text-muted: #bbbbbb;
    --border-color: #f0dadd;
    --radius: 14px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    --shadow-sm: 0 6px 16px rgba(23, 23, 23, 0.06);
    --shadow-md: 0 10px 25px rgba(23, 23, 23, 0.08);
    --shadow-lg: 0 20px 40px rgba(23, 23, 23, 0.12);
    --header-height: 72px;
    --transition: all 0.3s ease;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Poppins', 'Ubuntu', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-en); background: var(--bg-main); color: var(--text-primary); line-height: 1.6; }
body[dir="rtl"] { font-family: var(--font-ar); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.container { width: min(1200px, 92%); margin: 0 auto; }
.section-space { padding: 2rem 0; }
.store-header, .store-footer { background: var(--bg-header); }
.store-footer { padding: 1.5rem 0; margin-top: 2rem; color: var(--text-secondary); }
.nav-wrap { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { color: var(--brand-dark); font-size: 1.6rem; font-weight: 700; letter-spacing: 1px; }
.nav-links { display: flex; gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1rem; margin-top: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.card { background: #fff; border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow-sm); transition: var(--transition); }
.card:hover { transform: translateY(-4px); }
.price { color: var(--brand-dark); font-weight: 700; }
.price-old { color: var(--text-muted); text-decoration: line-through; font-size: 0.85rem; font-weight: 400; }
.alert { padding: .8rem 1rem; border-radius: 10px; margin-bottom: 1rem; }
.alert-success { background: #ecfdf3; color: #047857; }
.alert-error { background: #fef2f2; color: #dc2626; }
.row-between { display: flex; justify-content: space-between; align-items: center; }
.form-stack { display: grid; gap: .8rem; max-width: 560px; }
input, textarea, select { width: 100%; border: 1px solid var(--border-color); border-radius: 10px; padding: .7rem; font: inherit; }

/* Reset browser default <button> chrome — light grey box on dark navbars
   was a UA style. .btn / .navbar-action-btn / .lang-switch / etc. all
   re-assert their own styling, so this is safe. */
button {
    font: inherit; cursor: pointer;
    background: none; border: none;
    color: inherit; padding: 0;
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 28px; border-radius: var(--radius-full); font-weight: 600; font-size: 0.95rem; border: none; cursor: pointer; transition: var(--transition); text-decoration: none; }
.btn-primary { background: var(--brand); color: var(--text-light); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--brand); border: 2px solid var(--brand); }
.btn-outline:hover { background: var(--brand); color: var(--text-light); transform: translateY(-2px); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 50%; }

/* Section Titles */
.section-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 8px; }
.section-subtitle { color: var(--text-secondary); font-size: 1rem; margin-bottom: 32px; }

/* Grids */
.grid-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-categories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-brands { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Sections */
.section { padding: 60px 0; }
.section-alt { background: var(--bg-section); }

/* Brand Logo Card */
.brand-card { background: var(--bg-main); border-radius: var(--radius); padding: 24px; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); transition: var(--transition); height: 100px; }
.brand-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.brand-card img { max-height: 50px; max-width: 120px; object-fit: contain; filter: grayscale(100%); opacity: 0.7; transition: var(--transition); }
.brand-card:hover img { filter: grayscale(0); opacity: 1; }
.brand-card-name { font-size: 1.2rem; font-weight: 700; color: var(--text-secondary); letter-spacing: 1px; }

/* Newsletter */
.newsletter-section { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%); color: white; padding: 60px 0; text-align: center; border-radius: var(--radius-xl); margin: 0 24px; }
.newsletter-section h2 { color: white; font-size: 1.8rem; margin-bottom: 8px; }
.newsletter-section p { color: rgba(255,255,255,0.85); margin-bottom: 24px; }
.newsletter-form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; }
.newsletter-form input { flex: 1; padding: 14px 20px; border-radius: var(--radius-full); border: none; font-size: 0.95rem; }
.newsletter-form button { padding: 14px 28px; border-radius: var(--radius-full); background: white; color: var(--brand); font-weight: 700; border: none; cursor: pointer; transition: var(--transition); white-space: nowrap; }
.newsletter-form button:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Feature Cards */
.feature-card { text-align: center; padding: 32px 20px; }
.feature-card-icon { width: 60px; height: 60px; background: rgba(var(--brand-rgb), 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 1.4rem; color: var(--brand); }
.feature-card h4 { margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* Sale Badge */
.sale-badge { position: absolute; top: 12px; left: 12px; background: var(--danger); color: white; padding: 4px 12px; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 700; z-index: 2; }
body[dir="rtl"] .sale-badge { left: auto; right: 12px; }

/* Text Utilities */
.text-center { text-align: center; }
.text-brand { color: var(--brand); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* Responsive */
@media (max-width: 1024px) { .grid-4, .grid-products, .grid-categories, .grid-brands, .grid-features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-2, .grid-products, .grid-categories, .grid-brands, .grid-features { grid-template-columns: 1fr; } .newsletter-form { flex-direction: column; } .section-title { font-size: 1.4rem; } .section { padding: 40px 0; } }
