:root {
  --color-bg: #ffffff;
  --color-text: #000000;
  --color-accent: #8b8b8b; /* Subtle metallic silver/grey */
  --font-logo: 'Aref Ruqaa', serif;
  --font-heading: 'Amiri', serif;
  --font-body: 'Tajawal', sans-serif;
  --container-width: 1400px;
}

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

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography Engine */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 800px;
  padding: 2rem;
  z-index: 10;
}

.hero-title {
  font-size: clamp(3.5rem, 8vw, 6rem);
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 700;
  color: #333;
}

.hero-desc {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  color: #555;
  font-weight: 500;
}

.margin-bottom {
  margin-bottom: 2rem;
}

.primary-btn {
  background: var(--color-text);
  color: var(--color-bg);
  padding: 1rem 3rem;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-body);
  transition: all 0.3s ease;
  border: 1px solid var(--color-text);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.primary-btn:hover {
  background: transparent;
  color: var(--color-text);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.page-title {
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  margin-bottom: 3rem;
}

p {
  font-weight: 400;
  letter-spacing: 0.05em;
  font-size: 1.25rem;
  line-height: 1.8;
}

/* Base Layout & Header */
.site-header {
  position: fixed; /* This already keeps it sticky at the top! */
  top: 0;
  width: 100%;
  padding: 2rem 4rem; /* Keeps your luxurious spacing */
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2000; /* We just bumped this from 100 to 2000 so it sits above everything */
  background: rgba(255, 255, 255, 0.95); /* Keeps your elegant semi-transparent look */
  backdrop-filter: blur(10px); /* Keeps your premium glass blur effect */
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logo a {
  text-decoration: none;
  color: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-ar {
  font-family: var(--font-logo);
  font-size: 3rem;
  line-height: 1;
}

.logo-en {
  display: none; /* Hide English sub-logo */
}

.main-nav {
  display: flex;
  gap: 3rem;
}

.main-nav a {
  color: #000;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: opacity 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  opacity: 0.5;
}

/* Page Transitions (SPA) */
.page-section {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  min-height: 100vh;
  padding-top: 120px; /* Header height offset */
}

.page-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Home Section Layout */
.hero-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  margin-top: -120px; /* Counter offset */
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.2; /* Make hero image softer in light mode to not overpower text */
  z-index: -1;
  filter: grayscale(100%);
}

.editorial-section {
  display: flex;
  min-height: 100vh;
  padding: 10rem 4rem;
  gap: 8rem;
  align-items: center;
}

.editorial-image {
  flex: 1;
}

.editorial-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.editorial-text {
  flex: 1;
  max-width: 600px;
}

.editorial-text h3 {
  font-size: 3rem;
  margin-bottom: 2rem;
}

.subtitle {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.discover-btn {
  display: inline-block;
  margin-top: 3rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-text);
  color: var(--color-text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  transition: color 0.3s, border-color 0.3s;
}

.discover-btn:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.lookbook-teaser {
  height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lookbook-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  z-index: -1;
}

/* About Section */
.about-container, .products-container, .contact-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 4rem;
}

.article-layout {
  display: flex;
  gap: 6rem;
}

.article-col {
  flex: 1;
}

/* Fixed Dropcap for Arabic RTL */
.dropcap {
  float: right; /* Changed from left to right */
  font-family: var(--font-heading); /* Changed to use the proper Arabic font */
  font-size: 6rem;
  line-height: 0.8;
  margin: 0.1em 0 0 0.1em; /* Adjusted margins for right-side alignment */
  color: var(--color-text);
}

/* Fixed Pull-quote for Arabic RTL */
.pull-quote {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-style: italic;
  padding-right: 2rem; /* Changed padding to the right side */
  padding-left: 0;
  border-right: 4px solid var(--color-accent); /* Moved the border to the right side */
  border-left: none;
  margin-top: 2rem;
}

/* Contact Section */
.contact-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 4rem;
  margin-top: 4rem;
}

.contact-block h4 {
  font-size: 1rem;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.contact-block a {
  color: var(--color-text);
  text-decoration: none;
}

/* Products Section - Catalog Layout */
.catalog-layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 2rem;
}

.catalog-category {
  border-bottom: 1px solid #ebebeb; /* Light divider */
  padding-bottom: 2rem;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.category-header h2 {
  font-size: 1.5rem;
  margin: 0;
}

.see-all-btn {
  background: #f5f5f5;
  border: none;
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-family: var(--font-body); /* Using Aref Ruqaa or Inter depending on preference, fallback to sans-serif */
  font-size: 0.9rem;
  cursor: pointer;
  color: #333;
  transition: background 0.2s ease;
}

.see-all-btn:hover {
  background: #e0e0e0;
}

.catalog-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.catalog-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 0;
}

.catalog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.item-thumb {
  width: 100%;
  aspect-ratio: 1; /* Square thumbnails for the cards */
  border-radius: 0;
  background-size: cover;
  background-position: center;
  background-color: #f9f9f9;
  flex-shrink: 0;
}

.item-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  gap: 1rem;
}

.item-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #000;
}

.item-text {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.item-desc {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.35rem;
}

.add-btn {
  background: #000;
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.add-btn:hover {
  background: var(--color-accent);
  transform: scale(1.05);
}

/* Teaser Content Adjustments */
.lookbook-overlay {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.85); /* Light frosted overlay */
  backdrop-filter: blur(5px);
  z-index: 1;
}

.lookbook-teaser-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 600px;
  padding: 2rem;
}

.teaser-desc {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #333;
  line-height: 1.6;
}

/* Global Footer */
.site-footer {
  background-color: #f9f9f9;
  border-top: 1px solid #ebebeb;
  padding: 4rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand .logo-ar {
  font-family: var(--font-logo);
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  color: #000;
  text-decoration: none;
}

.footer-brand p {
  color: #666;
  font-size: 1rem;
}

.footer-links h4,
.footer-social h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: #000;
}

.footer-links ul,
.footer-social ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-social li {
  margin-bottom: 0.75rem;
}

.footer-links a,
.footer-social a {
  color: #555;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 1rem;
}

.footer-links a:hover,
.footer-social a:hover {
  color: var(--color-text);
  text-decoration: underline;
}

.footer-bottom {
  max-width: var(--container-width);
  margin: 0 auto;
  border-top: 1px solid #ddd;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #888;
}

.footer-bottom a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Media Queries */
@media (max-width: 1024px) {
  .editorial-section, .article-layout {
    flex-direction: column;
    gap: 4rem;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* WhatsApp Floating Bar Styles */
.wa-floating-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #000000; /* Matching your luxury black theme */
    color: #ffffff;
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    direction: rtl;
}

/* Hides the bar by pushing it down off the screen */
.wa-floating-bar.hidden {
    transform: translateY(100%);
}

.wa-bar-content {
    max-width: var(--container-width, 1400px);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#wa-selected-count {
    font-family: var(--font-body, 'Tajawal', sans-serif);
    font-size: 1.1rem;
    font-weight: 500;
}

#wa-send-btn {
    background-color: #25D366; /* WhatsApp Green */
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-family: var(--font-body, 'Tajawal', sans-serif);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#wa-send-btn:hover {
    background-color: #128C7E;
}

/* Style for when a product is already selected */
.wa-add-btn.selected {
    background-color: #dc3545; /* Red or subtle grey to indicate removal */
    color: white;
    border-color: #dc3545;
}

/* Brand Logo Image Styling */
.brand-logo {
    height: 60px; /* Adjust this value to make the logo larger or smaller */
    width: auto;
    object-fit: contain;
    display: block;
    mix-blend-mode: multiply; /* Optional: This removes the white background from the jpg if your header isn't purely white */
    transition: opacity 0.3s ease;
}

.brand-logo:hover {
    opacity: 0.7; /* Adds a subtle luxury fade effect when hovered */
}

/* Mobile Menu Toggle Styling */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    transition: all 0.3s ease;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .site-header {
        /* Removed position: relative; so it stays sticky! */
        padding: 1rem 1.5rem; /* Shrinks the large desktop padding for mobile */
    }

    .menu-toggle {
        display: flex; /* Show the hamburger on mobile */
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-bg);
        flex-direction: column;
        align-items: center;
        padding: 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        
        /* Hidden by default using clip-path for a smooth reveal */
        clip-path: inset(0 0 100% 0);
        transition: clip-path 0.4s ease-in-out, padding 0.4s ease-in-out;
        z-index: 1000;
    }

    .main-nav.open {
        clip-path: inset(0 0 0 0);
        padding: 2rem 0;
    }

    .main-nav a {
        margin: 1rem 0;
        font-size: 1.25rem;
    }

    /* Animate the hamburger into an "X" when open */
    .menu-toggle.open span:nth-child(1) {
        transform: translateY(9.5px) rotate(45deg);
    }
    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.open span:nth-child(3) {
        transform: translateY(-9.5px) rotate(-45deg);
    }
}