/* ===== THEME VARIABLES ===== */
:root {
  --bg-primary: #0F172A;
  --bg-secondary: #1E293B;
  --bg-tertiary: #334155;
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-tertiary: #94A3B8;
  --border-color: #475569;
  --primary: #3B82F6;
  --primary-light: #60A5FA;
  --primary-dark: #1E40AF;
  --accent: #3B82F6;
  --accent-light: #60A5FA;
  --accent-dark: #1E40AF;
  --success: #22C55E;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #3B82F6;
  --overlay: rgba(0,0,0,0.8);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family:'Poppins',sans-serif;
  color:var(--text-primary);
  background:var(--bg-primary);
  line-height:1.6;
}
img { max-width:100%; display:block; }
a { text-decoration:none; color:inherit; }
ul { list-style:none; }
.container { max-width:1200px; margin:0 auto; padding:0 20px; }

/* ===== NAV ===== */
.navbar {
  position:fixed; top:0; left:0; width:100%;
  background:rgba(250,247,242,0.95);
  backdrop-filter:blur(10px);
  z-index:1000;
  border-bottom:1px solid rgba(0,0,0,0.05);
}
.nav-inner {
  display:flex; align-items:center; justify-content:space-between;
  height:70px;
}
.logo {
  font-family:'Playfair Display',serif;
  font-size:1.6rem; font-weight:700;
  color:var(--primary);
}
.logo span { color:var(--accent); }
.nav-links {
  display:flex; gap:2rem;
}
.nav-links a {
  font-size:0.95rem; font-weight:500;
  transition:color .3s;
}
.nav-links a:hover { color:var(--accent); }
.hamburger {
  display:none; font-size:1.6rem; background:none; border:none; cursor:pointer;
}

/* ===== HERO ===== */
.hero {
  height:100vh; min-height:600px;
  background:url('https://images.unsplash.com/photo-1556905055-8f358a7a47b2?w=1600&q=85') center/cover no-repeat;
  position:relative;
  display:flex; align-items:center;
}
.hero-overlay {
  position:absolute; inset:0;
  background:linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 100%);
}
.hero-content { position:relative; color:#fff; max-width:650px; }
.hero-content h1 {
  font-family:'Playfair Display',serif;
  font-size:3.5rem; line-height:1.2; margin-bottom:1rem;
}
.hero-content p {
  font-size:1.2rem; font-weight:300; margin-bottom:2rem; opacity:.9;
}

/* ===== BUTTONS ===== */
.btn {
  display:inline-block;
  background:var(--accent); color:#fff;
  padding:14px 36px; border-radius:50px;
  font-weight:500; font-size:1rem;
  border:2px solid var(--accent);
  transition:all .3s; cursor:pointer;
}
.btn:hover { background:transparent; color:var(--accent); }
.btn-dark { background:var(--primary); border-color:var(--primary); }
.btn-dark:hover { background:transparent; color:var(--primary); }

/* ===== SECTIONS ===== */
.section { padding:100px 0; }
.section-title {
  font-family:'Playfair Display',serif;
  font-size:2.5rem; text-align:center; margin-bottom:.5rem;
  color:var(--primary);
}
.section-sub { text-align:center; color:var(--text-secondary); margin-bottom:3rem; }

/* ===== FILTERS ===== */
.filter-btns {
  display:flex; justify-content:center; gap:1rem; flex-wrap:wrap;
  margin-bottom:3rem;
}
.filter-btn {
  padding:10px 28px; border-radius:50px; border:1.5px solid #c4915e;
  background:transparent; color:var(--accent);
  font-weight:500; cursor:pointer; transition:all .3s;
}
.filter-btn.active, .filter-btn:hover { background:var(--accent); color:#fff; }

/* ===== PRODUCTS ===== */
.products {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
  gap:2rem;
}
.product-card {
  background:#fff; border-radius:16px; overflow:hidden;
  box-shadow:0 8px 30px rgba(0,0,0,0.06);
  transition:transform .4s, box-shadow .4s;
  animation:fadeUp .5s ease forwards;
  opacity:0;
}
.product-card:hover { transform:translateY(-6px); box-shadow:0 16px 40px rgba(0,0,0,0.1); }
.product-card img {
  width:100%; height:360px; object-fit:cover;
  transition:transform .6s;
}
.product-card:hover img { transform:scale(1.04); }
.product-info { padding:1.2rem 1.2rem 1.5rem; }
.product-info h3 { font-size:1.2rem; font-weight:600; margin-bottom:.3rem; }
.product-info .category {
  font-size:.8rem; color:var(--accent); font-weight:500;
  text-transform:uppercase; letter-spacing:.5px;
}
.product-info .price {
  display:block; margin-top:.6rem;
  font-size:1.15rem; font-weight:600; color:var(--primary);
}
@keyframes fadeUp {
  to { opacity:1; transform:translateY(0); }
}
.product-card { transform:translateY(20px); }

/* ===== CUSTOM ===== */
.custom { background:#f1ebe4; }
.custom-inner {
  display:grid; grid-template-columns:1fr 1fr; gap:4rem; align-items:center;
}
.custom-text p { font-size:1.05rem; color:var(--text-secondary); margin-bottom:1.5rem; }
.custom-features { margin-bottom:2rem; }
.custom-features li {
  padding:.5rem 0; font-size:1rem;
  border-bottom:1px solid rgba(0,0,0,0.06);
}
.custom-features li:last-child { border:none; }
.custom-img { border-radius:16px; overflow:hidden; box-shadow:0 12px 40px rgba(0,0,0,0.1); }
.custom-img img { width:100%; height:450px; object-fit:cover; }

/* ===== CONTACT ===== */
.contact-form {
  max-width:700px; margin:0 auto;
  display:flex; flex-direction:column; gap:1.2rem;
}
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:1.2rem; }
.contact-form input,
.contact-form textarea {
  width:100%;
  padding:14px 18px; border-radius:10px; border:1.5px solid #ddd6ce;
  background:#fff; font-family:'Poppins',sans-serif; font-size:1rem;
  transition:border-color .3s; outline:none;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color:#c4915e; }
.contact-form textarea { resize:vertical; }

/* ===== FOOTER ===== */
.footer {
  background:#2d2b2a; color:#bbb; padding:30px 0;
}
.footer-inner {
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:1rem;
}
.footer-links a { margin-left:1.5rem; transition:color .3s; }
.footer-links a:hover { color:#c4915e; }

/* ===== LANG SELECT ===== */
.lang-switcher {
  display:flex; align-items:center;
  margin-left:1rem; padding-left:1rem;
  border-left:1px solid #ddd6ce;
}
.lang-select {
  appearance:none; -webkit-appearance:none;
  background:transparent; border:1.5px solid #c4915e; border-radius:8px;
  padding:6px 30px 6px 12px;
  font-size:.85rem; font-weight:500; color:#c4915e;
  cursor:pointer; outline:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c4915e' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 10px center; background-size:12px;
  transition:all .25s;
}
.lang-select:hover { background-color:rgba(196,145,94,0.06); }
.lang-select option { color:#2d2b2a; background:#fff; }

/* ===== RTL ===== */
html[dir="rtl"] .nav-links { flex-direction:row; }
html[dir="rtl"] .lang-switcher { margin-left:0; margin-right:1rem; padding-left:0; padding-right:1rem; border-left:none; border-right:1px solid var(--border-color); }
html[dir="rtl"] .hero-content { text-align:right; }
html[dir="rtl"] .section-title { text-align:center; }
html[dir="rtl"] .custom-text { text-align:right; }
html[dir="rtl"] .contact-form input,
html[dir="rtl"] .contact-form textarea { text-align:right; }
html[dir="rtl"] .footer-links a:first-child { margin-right:0; }
html[dir="rtl"] .footer-links a { margin-left:0; margin-right:1.5rem; }

@media(max-width:768px) {
  html[dir="rtl"] .lang-switcher { margin-right:0; padding-right:0; border-right:none; }
}

/* ===== RESPONSIVE ===== */
@media(max-width:768px) {
  .nav-links {
    position:fixed; top:70px; left:0; width:100%;
    flex-direction:column; background:rgba(26,26,26,0.98);
    padding:2rem; gap:1.2rem; text-align:center;
    transform:translateY(-120%); transition:transform .4s; box-shadow:0 10px 30px rgba(0,0,0,0.2);
  }
  .nav-links.open { transform:translateY(0); }
  .hamburger { display:block; }
  .hero { min-height:500px; }
  .hero-content h1 { font-size:2.4rem; }
  .hero-content p { font-size:1rem; }
  .section { padding:60px 0; }
  .custom-inner { grid-template-columns:1fr; gap:2rem; }
  .custom-img img { height:280px; }
  .products { grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:1.2rem; }
  .product-card img { height:280px; }
  .form-row { grid-template-columns:1fr; }
  .section-title { font-size:2rem; }
  .filter-btn { padding:8px 20px; font-size:.9rem; }
  .footer-inner { flex-direction:column; text-align:center; }
  .footer-links a { margin:0 .7rem; }
  .lang-select { padding:4px 26px 4px 10px; font-size:.8rem; }
}

@media(max-width:480px) {
  .nav-inner { height:60px; }
  .logo { font-size:1.3rem; }
  .nav-links { top:60px; padding:1.2rem; }
  .hero { min-height:400px; }
  .hero-content h1 { font-size:1.8rem; }
  .hero-content p { font-size:.9rem; margin-bottom:1.5rem; }
  .btn { padding:12px 28px; font-size:.9rem; }
  .section { padding:40px 0; }
  .section-title { font-size:1.6rem; }
  .section-sub { font-size:.9rem; margin-bottom:2rem; }
  .products { grid-template-columns:1fr; gap:1rem; }
  .product-card img { height:240px; }
  .product-info { padding:1rem; }
  .product-info h3 { font-size:1.05rem; }
  .contact-form { gap:1rem; }
  .contact-form input, .contact-form textarea { padding:12px 14px; font-size:.9rem; }
  .custom-features li { font-size:.9rem; padding:.4rem 0; }
  .custom-text p { font-size:.95rem; }
  .footer { padding:20px 0; font-size:.85rem; }
  .footer-links { display:flex; flex-wrap:wrap; justify-content:center; gap:.5rem; }
  .footer-links a { margin:0; }
  .lang-switcher { margin-left:0; padding-left:0; border-left:none; }
}
