/* ==========================================================================
   MAIN CONTENT STYLES - Luxury By Meem (Typography & Layout)
   ========================================================================== */

/* 1. LAYOUT & CONTAINERS */
.site-main {
  padding: 0;
}

.container {
  max-width: var(--wp--style--global--wide-size, 1200px);
  margin: 0 auto;
  padding: 0 20px;
}

/* 2. PAGE & POST HEADERS (Unified) */
.page-header,
.entry-header {
  margin-bottom: 40px;
  text-align: center;
}

.page-title,
.entry-title {
  margin-bottom: 15px;
  font-weight: 700;
  color: var(--wp--preset--color--contrast);
}

.entry-meta {
  display: flex;
  justify-content: center;
  gap: 15px;
  font-size: var(--wp--preset--font-size--small);
  opacity: 0.6;
}

/* 3. ENTRY CONTENT (Typography & Typography) */
.entry-content {
  max-width: var(--wp--style--global--content-size);
  margin: 0 auto;
}

.entry-content p {
  margin-bottom: 1.6em;
  line-height: 1.8;
}

.entry-content blockquote {
  border-left: 3px solid var(--wp--preset--color--primary);
  padding: 20px 30px;
  margin: 35px 0;
  background-color: var(--wp--preset--color--secondary);
  font-style: italic;
  color: var(--wp--preset--color--contrast);
}

/* 4. POST MEDIA */
.post-thumbnail {
  margin-bottom: 35px;
  border-radius: 8px; /* زيادة الانحناء قليلاً للمسة عصرية */
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.post-thumbnail:hover img {
  transform: scale(1.03);
}

/* 5. ARCHIVE ITEMS & NAVIGATION */
.archive-item {
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(206, 187, 154, 0.2);
}

.read-more {
  display: inline-block;
  color: var(--wp--preset--color--primary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  margin-top: 20px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.read-more:hover {
  opacity: 0.7;
}

/* 6. PAGINATION */
.nav-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 50px;
}

.page-numbers {
  padding: 12px 20px;
  background: var(--wp--preset--color--secondary);
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--wp--preset--color--contrast);
  transition: all 0.3s ease;
}

.page-numbers.current,
.page-numbers:hover {
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--base);
}

/* 7. RESPONSIVE FIXES */
@media (max-width: 768px) {
  .site-main {
    padding: 40px 0;
  }

  .entry-content {
    padding: 0 15px;
  }

  .page-title,
  .entry-title {
    font-size: 1.5rem;
  }
}

/* 8. RTL ADJUSTMENTS */
[dir="rtl"] .entry-content blockquote {
  border-left: none;
  border-right: 3px solid var(--wp--preset--color--primary);
}

.custom-cursor {
  width: 10px;
  height: 10px;
  border: 1px solid var(--wp--preset--color--contrast);
  background-color: var(--wp--preset--color--contrast);
  border-radius: 50%;
  position: absolute;
  transition-duration: 200ms;
  transition-timing-function: ease-out;
  pointer-events: none;
  z-index: 9999;
}
.expand {
  transform: scale(3);
  background-color: #9c845c;
  opacity: 0.2;
}

/* ==========================================================================
   FRONT PAGE STYLES - Luxury By Meem
   ========================================================================== */
.hero-cinema {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

.hero-content h1 {
  font-size: clamp(4rem, 8vw, 8rem);
  font-family: var(--wp--preset--font-family--heading);
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -2px;
}

.cta-minimal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-minimal:hover {
  border-bottom-color: var(--wp--preset--color--primary);
  gap: 15px;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-indicator .line {
  width: 1px;
  height: 60px;
  background: rgba(255, 255, 255, 0.3);
  margin: 15px auto 0;
  animation: scroll-pulse 2s ease infinite;
}

@keyframes scroll-pulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(1);
  }
  50% {
    opacity: 1;
    transform: scaleY(1.5);
  }
}

.manifesto {
  padding: 100px 20px;
  background: #fafafa;
}

.manifesto-text {
  font-family: var(--wp--preset--font-family--body);
  font-size: 1.75rem;
  line-height: 1.8;
  text-align: center;
  color: var(--wp--preset--color--contrast);
  letter-spacing: 0.5px;
  font-weight: 300;
  max-width: 800px;
  margin: 0 auto;
}

.featured-story {
  padding: 120px 20px;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: center;
}

.story-image img {
  width: 100%;
  height: auto;
}

.eyebrow {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--wp--preset--color--primary);
  margin-bottom: 20px;
}

.story-content h2 {
  font-size: 3rem;
  font-family: var(--wp--preset--font-family--heading);
  margin-bottom: 30px;
  line-height: 1.1;
}

.story-content p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 40px;
}

.link-underline {
  position: relative;
  color: var(--wp--preset--color--contrast);
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.link-underline::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--wp--preset--color--primary);
  transition: width 0.4s ease;
}

.link-underline:hover::after {
  width: 100%;
}

@media (max-width: 968px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.bento-categories {
  padding: 0 20px 120px;
  max-width: 1400px;
  margin: 0 auto;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.bento-item {
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
}

.bento-large {
  aspect-ratio: 3 / 4;
}

.bento-small {
  aspect-ratio: 1 / 1;
}

.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
  display: flex;
  align-items: flex-end;
  padding: 40px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.bento-item:hover .bento-overlay {
  opacity: 1;
}

.bento-item:hover img {
  transform: scale(1.05);
}

.bento-overlay h3 {
  color: #fff;
  font-size: 2rem;
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 400;
}

@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
}

.craftsmanship {
  padding: 120px 20px;
  background: #f8f6f3;
}

.craft-header h2 {
  font-size: 3.5rem;
  text-align: center;
  font-family: var(--wp--preset--font-family--heading);
  margin-bottom: 60px;
}

.craft-stats {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-bottom: 80px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 3.5rem;
  font-family: var(--wp--preset--font-family--heading);
  color: var(--wp--preset--color--primary);
  margin-bottom: 10px;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #666;
}

.video-custom-player {
  position: relative;
  max-width: 1000px;
  margin: 0 auto 60px;
  aspect-ratio: 16 / 9;
}

.video-custom-player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(206, 187, 154, 0.9);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.play-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.craft-footer p {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.125rem;
  line-height: 1.8;
  color: #333;
}

.founder-moment {
  padding: 160px 20px;
  background: #fff;
}

.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.founder-image img {
  width: 100%;
  filter: grayscale(100%);
}

.founder-letter p {
  font-size: 1.25rem;
  line-height: 1.9;
  color: var(--wp--preset--color--contrast);
  margin-bottom: 40px;
  font-style: italic;
}

.signature {
  display: block;
  width: 200px;
  margin-bottom: 10px;
}

.founder-name {
  display: block;
  font-size: 0.875rem;
  letter-spacing: 1px;
  color: #666;
}

@media (max-width: 968px) {
  .founder-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

.private-shopping {
  padding: 100px 20px;
  background: var(--wp--preset--color--contrast);
  color: #fff;
  text-align: center;
}

.private-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 30px;
  opacity: 0.6;
}

.private-shopping h2 {
  font-size: 2.5rem;
  font-family: var(--wp--preset--font-family--heading);
  color: #fff;
  margin-bottom: 15px;
}

.private-shopping p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 40px;
}

.whatsapp-cta {
  display: inline-block;
  padding: 18px 50px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 2px;
  transition: all 0.4s ease;
}

.whatsapp-cta:hover {
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--contrast);
  border-color: var(--wp--preset--color--primary);
}

.newsletter-elevated {
  padding: 120px 20px;
  background: #f8f6f3;
  text-align: center;
}

.newsletter-elevated h2 {
  font-size: 3rem;
  font-family: var(--wp--preset--font-family--heading);
  margin-bottom: 15px;
}

.newsletter-elevated p {
  font-size: 1.125rem;
  color: #666;
  margin-bottom: 50px;
}

/* ✨ NEW: Bordered "box" container for input + button */
.newsletter-form-box {
  max-width: 500px;
  margin: 0 auto 20px;
  background: white;
  border: 2px solid var(--wp--preset--color--contrast);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* Subtle depth */
}

/* ✨ UPDATED: Form inside box */
.newsletter-form-inline {
  display: flex;
  padding: 8px; /* Internal spacing */
}

.newsletter-form-inline input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1.125rem;
  padding: 12px 16px;
  outline: none;
  min-width: 0; /* Fixes flex overflow */
}

/* ✨ COMPLETELY REVISED: Arrow button styling */
.newsletter-form-inline button {
  background: var(--wp--preset--color--primary, #000); /* Fallback to black */
  border: none;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0; /* Prevent shrinking */
}

.newsletter-form-inline button i {
  font-size: 1.25rem; /* Perfect arrow size */
  transition: transform 0.3s ease;
}

.newsletter-form-inline button:hover {
  background: var(
    --wp--preset--color--primary-hover,
    #333
  ); /* Fallback hover */
}

.newsletter-form-inline button:hover i {
  transform: translateX(3px); /* Subtle motion feedback */
}

.privacy-note {
  display: block;
  font-size: 0.75rem;
  color: #999;
  max-width: 500px;
  margin: 8px auto 0;
}


/* FEATURED PRODUCTS CSS */
    .featured-products-edit {
        padding: 10vh 0;
        background: #fff;
        overflow: hidden;
    }

    .featured-header {
        text-align: center;
        margin-bottom: 8vh;
        padding: 0 10vw;
    }

    .products-horizontal-track {
        display: flex;
        gap: 20px;
        padding: 0 5vw;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        /* Makes it feel like a smooth app on mobile */
        scrollbar-width: none;
        /* Hides scrollbar on Firefox */
        justify-content: center;
    }

    .products-horizontal-track::-webkit-scrollbar {
        display: none;
        /* Hides scrollbar on Chrome/Safari */
    }

    .product-card {
        flex: 0 0 30%;
        /* 3 items visible on desktop */
        max-width: 200px;
        scroll-snap-align: start;
    }

    .product-image-box {
        position: relative;
        aspect-ratio: 3 / 4;
        /* Perfect uniform height/width */
        overflow: hidden;
        background: var(--wp--preset--color--secondary);
        margin-bottom: 20px;
    }

    .product-image-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 1.2s ease;
    }

    .product-overlay {
        position: absolute;
        inset: 0;
        background: #cebb9ac4;
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0;
        transition: opacity 0.4s ease;
    }

    .product-card:hover .product-overlay {
        opacity: 1;
    }

    .product-card:hover img {
        transform: scale(1.08);
    }

    .view-detail-btn {
        padding: 15px 30px;
        background: #fff;
        color: #000;
        text-transform: uppercase;
        font-size: 10px;
        letter-spacing: 2px;
        text-decoration: none;
    }

    .product-info {
        text-align: left;
    }

    .product-name {
        font-family: var(--wp--preset--font-family--heading);
        font-size: 0.9rem;
        margin-bottom: 5px;
        font-weight: 400;
    }
    .product-info a:hover{
        text-decoration: underline;
        text-underline-offset: .3rem;
    }
    .product-price {
        font-size: 14px;
        color: var(--wp--preset--color--primary);
        letter-spacing: 1px;
        font-weight: bold;
    }

    /* MOBILE RESPONSIVENESS */
    @media (max-width: 768px) {
        .product-card {
            flex: 0 0 85%;
            /* Shows most of one product, hints at the next */
        }

        .products-horizontal-track {
            padding: 0 10vw;
            /* Adds centering for the swipe */
            gap: 15px;
        }

        .product-image-box {
            aspect-ratio: 1 / 1;
            /* Squares look better on small mobile screens */
        }
    }
    
    
    /* Newsletter */
.luxury-newsletter{
    margin-top:120px;
    padding:80px;
    background:var(--wp--preset--color--secondary);
    text-align:center;
}

.luxury-newsletter h2{
    font-size:32px;
    margin-bottom:10px;
}

.luxury-newsletter-form{
    margin-top:20px;
}

.luxury-newsletter input{
    padding:14px 18px;
    width:280px;
    border:1px solid var(--theme--border-light);
}

.luxury-newsletter button{
    padding:14px 26px;
    border:none;
    background:var(--wp--preset--color--primary);
    color:#fff;
    cursor:pointer;
}
    
