/* ===========================================================
   Hala Furnishing — stylesheet
   =========================================================== */

:root {
  --primary: #2c2869;
  --primary-light: #3d3690;
  --primary-dark: #1c1946;
  --gold: #c9a227;
  --text: #262530;
  --muted: #6b6a78;
  --bg-light: #f6f5fa;
  --border: #e6e4ee;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(44, 40, 105, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 700; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: #fff; color: var(--primary); border-color: #fff; }
.btn-outline:hover { background: transparent; color: #fff; }
.btn-block { width: 100%; text-align: center; }
.btn-sm { padding: 8px 18px; font-size: 12px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--primary-dark); color: #d8d6ee; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar a { color: #d8d6ee; margin-right: 18px; }
.topbar a:hover { color: #fff; }
.topbar-right { display: flex; align-items: center; }
.lang-switch { cursor: pointer; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--border); position: sticky; top: 0; background: #fff; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.logo { display: inline-flex; flex-direction: column; line-height: 1.15; font-size: 22px; font-weight: 800; letter-spacing: .03em; color: var(--primary); }
.logo span:not(.logo-ar) { color: var(--gold); }
.logo-ar { font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-top: 2px; }
.logo-img { display: block; height: 44px; width: auto; max-width: 220px; object-fit: contain; }
.logo-text { display: none; flex-direction: column; } /* shown by JS if /assets/img/logo.svg fails to load */
.footer-logo { color: #fff; margin-bottom: 14px; display: inline-flex; }
.footer-logo span:not(.logo-ar) { color: var(--gold); }
.footer-logo .logo-ar { color: #a7a5c4; }

/* ---------- Logo intro transition (homepage only) ---------- */
.page-home .logo {
  animation: logoIntro 900ms cubic-bezier(.22, .9, .28, 1) both;
  transform-origin: left center;
}
.page-home .logo-img,
.page-home .logo-text {
  animation: logoReveal 900ms cubic-bezier(.22, .9, .28, 1) both;
}
@keyframes logoIntro {
  0%   { opacity: 0; transform: translateY(-16px) scale(.9); }
  60%  { opacity: 1; transform: translateY(2px) scale(1.03); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes logoReveal {
  0%   { opacity: 0; filter: blur(4px); }
  100% { opacity: 1; filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  .page-home .logo,
  .page-home .logo-img,
  .page-home .logo-text {
    animation: none;
  }
}

.main-nav ul { display: flex; gap: 30px; }
.main-nav a { font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .03em; padding: 10px 0; display: block; }
.main-nav a.active, .main-nav a:hover { color: var(--primary); }
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 0; background: #fff; min-width: 200px;
  box-shadow: var(--shadow); border-radius: 6px; padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .2s ease;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a { padding: 10px 20px; text-transform: none; font-weight: 500; }
.dropdown li a:hover { background: var(--bg-light); color: var(--primary); }

.header-icons { display: flex; align-items: center; gap: 18px; }
.search-form { display: flex; align-items: center; background: var(--bg-light); border-radius: 30px; padding: 6px 6px 6px 16px; }
.search-form input { border: none; background: transparent; outline: none; font-family: inherit; width: 170px; font-size: 13px; }
.search-form button { border: none; background: var(--primary); color: #fff; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; }
.icon-link { position: relative; font-size: 20px; }
.cart-count {
  position: absolute; top: -8px; right: -10px; background: var(--gold); color: #fff;
  font-size: 11px; font-weight: 700; border-radius: 50%; width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
}
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--primary); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex; align-items: center;
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(201,162,39,.25), transparent 55%);
}
.hero-inner { position: relative; z-index: 2; max-width: 620px; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: .15em; font-size: 13px; color: var(--gold); font-weight: 700; margin-bottom: 14px; }
.hero h1 { font-size: 44px; line-height: 1.2; margin-bottom: 18px; }
.hero p { font-size: 16px; color: #d8d6ee; margin-bottom: 30px; max-width: 480px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-dots { position: absolute; bottom: 24px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; }
.hero-dots button.active { background: #fff; }

/* ---------- Section shell ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-light); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .15em; font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.section-head h2 { font-size: 32px; }
.section-head p { color: var(--muted); }

/* ---------- Categories ---------- */
.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.category-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 16px; text-align: center; transition: all .2s ease;
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.category-icon {
  width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--bg-light); display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.category-card:hover .category-icon { background: var(--primary); color: #fff; }
.category-card h3 { font-size: 16px; margin-bottom: 4px; }
.category-card p { font-size: 12px; color: var(--muted); margin: 0; }

/* ---------- Product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-card {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff;
  transition: box-shadow .2s ease, transform .2s ease; position: relative;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.product-thumb { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--bg-light); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.product-card:hover .product-thumb img { transform: scale(1.06); }
.product-badge {
  position: absolute; top: 12px; left: 12px; background: var(--gold); color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 4px; text-transform: uppercase;
}
.product-info { padding: 18px; }
.product-cat { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); font-weight: 700; }
.product-info h3 { font-size: 16px; margin: 6px 0 8px; }
.product-info h3 a { color: var(--text); }
.product-info h3 a:hover { color: var(--primary); }
.price-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.price { font-weight: 700; color: var(--primary); font-size: 16px; }
.price-old { text-decoration: line-through; color: var(--muted); font-size: 13px; }
.add-cart-form { display: flex; }

/* ---------- Collections / creative section ---------- */
.collection-banner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  background: var(--primary); color: #fff; border-radius: 16px; padding: 60px; overflow: hidden;
}
.collection-banner h2 { font-size: 30px; }
.collection-banner p { color: #d8d6ee; margin-bottom: 24px; }
.collection-img { border-radius: 12px; overflow: hidden; }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.testimonial-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.testimonial-card .stars { color: var(--gold); margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-card p.quote { font-style: italic; color: var(--muted); margin-bottom: 20px; }
.testimonial-person { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.testimonial-person strong { display: block; font-size: 14px; }
.testimonial-person span { font-size: 12px; color: var(--muted); }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.news-thumb { aspect-ratio: 16/10; background: var(--bg-light); }
.news-body { padding: 20px; }
.news-tag { color: var(--gold); font-size: 11px; text-transform: uppercase; font-weight: 700; letter-spacing: .08em; }
.news-body h3 { font-size: 15px; margin: 8px 0 0; }

/* ---------- CTA strip ---------- */
.cta-strip {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  color: #fff; text-align: center; padding: 70px 20px; border-radius: 16px;
}
.cta-strip h2 { font-size: 28px; margin-bottom: 10px; }
.cta-strip p { color: #d8d6ee; margin-bottom: 26px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb-bar { background: var(--bg-light); padding: 22px 0; border-bottom: 1px solid var(--border); }
.breadcrumb-bar .container { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.breadcrumb-bar a { color: var(--primary); font-weight: 600; }
.breadcrumb-bar h1 { font-size: 26px; margin: 4px 0 0; color: var(--text); }

/* ---------- Shop layout ---------- */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: start; }
.shop-sidebar { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.shop-sidebar h4 { font-size: 15px; margin-bottom: 14px; }
.shop-sidebar ul li { margin-bottom: 4px; }
.shop-sidebar ul li a {
  display: flex; justify-content: space-between; padding: 9px 10px; border-radius: 6px; font-size: 14px; color: var(--text);
}
.shop-sidebar ul li a:hover, .shop-sidebar ul li a.active { background: var(--bg-light); color: var(--primary); font-weight: 600; }
.shop-sidebar ul li a.active { background: var(--primary); color: #fff; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; color: var(--muted); font-size: 14px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: flex-start; }
.product-gallery img { border-radius: var(--radius); border: 1px solid var(--border); }
.product-detail .product-cat { display: inline-block; margin-bottom: 10px; }
.product-detail h1 { font-size: 30px; }
.product-detail .price-row { margin: 18px 0; }
.product-detail .price { font-size: 24px; }
.product-desc { color: var(--muted); margin-bottom: 24px; }
.qty-input { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; width: fit-content; margin-right: 14px; }
.qty-input button { width: 38px; height: 44px; border: none; background: var(--bg-light); font-size: 16px; cursor: pointer; }
.qty-input input { width: 50px; text-align: center; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); height: 44px; font-family: inherit; font-size: 15px; }
.detail-actions { display: flex; align-items: center; gap: 0; margin-bottom: 30px; }
.detail-meta { border-top: 1px solid var(--border); padding-top: 20px; font-size: 14px; color: var(--muted); }
.detail-meta p { margin: 6px 0; }

/* ---------- Cart page ---------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; text-transform: uppercase; font-size: 12px; letter-spacing: .06em; color: var(--muted); padding: 14px 10px; border-bottom: 1px solid var(--border); }
.cart-table td { padding: 18px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-product { display: flex; align-items: center; gap: 14px; }
.cart-product img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }
.cart-remove { color: #c0392b; font-size: 13px; font-weight: 600; }
.cart-summary { max-width: 380px; margin-left: auto; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-top: 30px; }
.cart-summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 14px; color: var(--muted); }
.cart-summary-row.total { font-size: 18px; font-weight: 700; color: var(--text); border-top: 1px solid var(--border); padding-top: 14px; margin-top: 14px; }
.whatsapp-btn { background: #25D366; border-color: #25D366; display: flex; align-items: center; justify-content: center; gap: 8px; }
.whatsapp-btn:hover { background: #1ebc59; border-color: #1ebc59; }
.checkout-note { font-size: 12px; color: var(--muted); text-align: center; margin: 12px 0 0; line-height: 1.5; }

/* ---------- Contact page ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info-card { background: var(--primary); color: #fff; border-radius: var(--radius); padding: 36px; }
.contact-info-card h3 { margin-bottom: 20px; }
.contact-info-card ul li { margin-bottom: 16px; font-size: 14px; color: #d8d6ee; }
.contact-info-card ul li strong { display: block; color: #fff; margin-bottom: 2px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 6px; font-family: inherit; font-size: 14px; outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.alert { padding: 14px 18px; border-radius: 6px; margin-bottom: 20px; font-size: 14px; }
.alert-success { background: #e5f7ec; color: #1e7a45; border: 1px solid #b8e8cb; }

/* ---------- About page ---------- */
.about-hero { background: var(--bg-light); padding: 60px 0; text-align: center; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.stat-box { text-align: center; }
.stat-box strong { display: block; font-size: 32px; color: var(--primary); }
.stat-box span { color: var(--muted); font-size: 13px; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.team-card { text-align: center; }
.team-photo { aspect-ratio: 1/1; border-radius: 50%; background: var(--bg-light); margin: 0 auto 14px; max-width: 140px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-dark); color: #c7c5df; padding-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 50px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a:hover { color: #fff; }
.footer-col p { font-size: 14px; color: #a7a5c4; }
.social-links { display: flex; gap: 10px; margin-top: 18px; }
.social-links a {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px;
}
.social-links a:hover { background: var(--gold); }
.newsletter-form { display: flex; margin-top: 14px; }
.newsletter-form input { flex: 1; padding: 11px 14px; border: none; border-radius: 4px 0 0 4px; font-family: inherit; outline: none; }
.newsletter-form button { border: none; background: var(--gold); color: #fff; padding: 0 18px; border-radius: 0 4px 4px 0; cursor: pointer; font-weight: 700; }
.contact-list li { font-size: 14px; margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; }
.footer-bottom p { font-size: 13px; color: #8f8dae; margin: 0; text-align: center; }

.whatsapp-fab {
  position: fixed; bottom: 26px; right: 26px; width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 26px; box-shadow: 0 8px 20px rgba(0,0,0,.2); z-index: 200;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid, .testimonial-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-layout, .product-detail, .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .collection-banner { grid-template-columns: 1fr; padding: 40px; }
  .stats-row, .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .topbar-left a:nth-child(2) { display: none; }
  .main-nav { position: fixed; top: 0; right: -280px; width: 280px; height: 100vh; background: #fff; box-shadow: -4px 0 20px rgba(0,0,0,.15); transition: right .25s ease; padding: 90px 24px; z-index: 300; }
  .main-nav.open { right: 0; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; padding-left: 14px; }
  .has-dropdown.open .dropdown { display: block; }
  .search-form { display: none; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 30px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid, .testimonial-grid, .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
