:root {
      --bg-dark:    #0c0b08;
      --bg-card:    #141209;
      --bg-section: #111008;
      --gold:       #c9a84c;
      --gold-light: #e8c56e;
      --gold-dim:   #8a6f2e;
      --green:      #2a5e2a;
      --green-light:#3a8a3a;
      --cream:      #f0e6cc;
      --cream-dim:  #b8a882;
      --white:      #faf7f0;
      --border:     rgba(201,168,76,0.18);
      --navbar-h:   72px;
    }

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

    html { scroll-behavior: smooth; }

    body {
      background: var(--bg-dark);
      color: var(--cream);
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 17px;
      line-height: 1.7;
      overflow-x: hidden;
    }

    body.ar {
      font-family: 'Tajawal', sans-serif;
      direction: rtl;
    }

    /* ─── SCROLLBAR ─── */
    ::-webkit-scrollbar { width: 4px; }
    ::-webkit-scrollbar-track { background: var(--bg-dark); }
    ::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 2px; }

    /* ─── NAVBAR ─── */
    #navbar {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 1000;
      height: var(--navbar-h);
      display: flex;
      align-items: center;
      padding: 0 40px;
      transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
    }
    #navbar.scrolled {
      background: rgba(12,11,8,0.96);
      backdrop-filter: blur(12px);
      box-shadow: 0 1px 0 var(--border);
    }

    .nav-inner {
      width: 100%;
      max-width: 1320px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }

    .nav-logo img {
      height: 44px;
      width: auto;
      transition: opacity 0.2s;
    }
    .nav-logo img:hover { opacity: 0.8; }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 32px;
      list-style: none;
    }
    .nav-links a {
      color: var(--cream-dim);
      text-decoration: none;
      font-family: 'Cormorant Garamond', serif;
      font-size: 15px;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      transition: color 0.2s;
      position: relative;
    }
    .nav-links a::after {
      content: '';
      position: absolute;
      bottom: -4px; left: 0; right: 0;
      height: 1px;
      background: var(--gold);
      transform: scaleX(0);
      transition: transform 0.3s;
    }
    .nav-links a:hover { color: var(--gold-light); }
    .nav-links a:hover::after { transform: scaleX(1); }

    .nav-right {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .lang-btn {
      background: transparent;
      border: 1px solid var(--border);
      color: var(--cream-dim);
      padding: 6px 14px;
      font-family: 'Cormorant Garamond', serif;
      font-size: 13px;
      letter-spacing: 1px;
      text-transform: uppercase;
      cursor: pointer;
      transition: all 0.2s;
      border-radius: 2px;
    }
    .lang-btn:hover {
      border-color: var(--gold);
      color: var(--gold-light);
    }

    .hamburger {
      display: none;
      flex-direction: column;
      gap: 5px;
      cursor: pointer;
      padding: 4px;
      background: none;
      border: none;
    }
    .hamburger span {
      display: block;
      width: 24px;
      height: 1.5px;
      background: var(--cream);
      transition: all 0.3s;
    }
    .hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
    .hamburger.open span:nth-child(2) { opacity: 0; }
    .hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

    /* Mobile menu */
    #mobile-menu {
      display: none;
      position: fixed;
      top: var(--navbar-h); left: 0; right: 0;
      background: rgba(12,11,8,0.98);
      backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--border);
      z-index: 999;
      padding: 24px 40px 32px;
    }
    #mobile-menu.open { display: block; }
    #mobile-menu ul {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
    #mobile-menu a {
      color: var(--cream-dim);
      text-decoration: none;
      font-family: 'Cormorant Garamond', serif;
      font-size: 20px;
      letter-spacing: 1px;
      transition: color 0.2s;
    }
    #mobile-menu a:hover { color: var(--gold-light); }

    /* ─── HERO SLIDER ─── */
    #hero {
      position: relative;
      height: 100vh;
      min-height: 600px;
      overflow: hidden;
    }

    .slide {
      position: absolute;
      inset: 0;
      opacity: 0;
      transition: opacity 1s ease;
      background-size: cover;
      background-position: center;
    }
    .slide.active { opacity: 1; }

    .slide-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(
        to right,
        rgba(10,9,6,0.85) 0%,
        rgba(10,9,6,0.55) 50%,
        rgba(10,9,6,0.2) 100%
      );
    }
    body.ar .slide-overlay {
      background: linear-gradient(
        to left,
        rgba(10,9,6,0.85) 0%,
        rgba(10,9,6,0.55) 50%,
        rgba(10,9,6,0.2) 100%
      );
    }

    .slide-content {
      position: absolute;
      bottom: 18%;
      left: 8%;
      max-width: 580px;
      animation: slideUp 0.8s ease forwards;
    }
    body.ar .slide-content { left: auto; right: 8%; text-align: right; }

    @keyframes slideUp {
      from { opacity: 0; transform: translateY(30px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    .slide-label {
      font-family: 'Cormorant Garamond', serif;
      font-size: 12px;
      letter-spacing: 4px;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 16px;
      display: block;
    }

    .slide-title {
      font-family: 'Playfair Display', serif;
      font-size: clamp(2.2rem, 5vw, 4rem);
      font-weight: 700;
      color: var(--white);
      line-height: 1.15;
      margin-bottom: 20px;
    }
    body.ar .slide-title { font-family: 'Tajawal', sans-serif; font-weight: 700; }

    .slide-desc {
      font-size: 16px;
      color: var(--cream-dim);
      line-height: 1.7;
      margin-bottom: 36px;
      max-width: 460px;
    }
    body.ar .slide-desc { font-family: 'Tajawal', sans-serif; font-size: 15px; }

    .btn-primary {
      display: inline-block;
      background: transparent;
      border: 1px solid var(--gold);
      color: var(--gold-light);
      padding: 13px 36px;
      font-family: 'Cormorant Garamond', serif;
      font-size: 13px;
      letter-spacing: 2.5px;
      text-transform: uppercase;
      text-decoration: none;
      transition: all 0.3s;
      cursor: pointer;
    }
    .btn-primary:hover {
      background: var(--gold);
      color: var(--bg-dark);
    }
    body.ar .btn-primary { font-family: 'Tajawal', sans-serif; letter-spacing: 0.5px; }

    /* Slider nav */
    .slider-nav {
      position: absolute;
      bottom: 40px;
      left: 8%;
      display: flex;
      align-items: center;
      gap: 20px;
      z-index: 10;
    }
    body.ar .slider-nav { left: auto; right: 8%; }

    .slider-dots {
      display: flex;
      gap: 8px;
    }
    .dot {
      width: 24px;
      height: 1.5px;
      background: rgba(201,168,76,0.35);
      cursor: pointer;
      transition: all 0.3s;
    }
    .dot.active {
      background: var(--gold);
      width: 40px;
    }

    .slider-arrows {
      display: flex;
      gap: 8px;
    }
    .arrow-btn {
      width: 40px;
      height: 40px;
      border: 1px solid var(--border);
      background: transparent;
      color: var(--cream-dim);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      transition: all 0.2s;
    }
    .arrow-btn:hover {
      border-color: var(--gold);
      color: var(--gold-light);
    }

    /* ─── SECTION BASE ─── */
    section {
      padding: 100px 40px;
      max-width: 1320px;
      margin: 0 auto;
    }

    .section-label {
      font-size: 11px;
      letter-spacing: 4px;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 12px;
      display: block;
    }

    .section-title {
      font-family: 'Playfair Display', serif;
      font-size: clamp(2rem, 3.5vw, 3rem);
      font-weight: 600;
      color: var(--white);
      line-height: 1.2;
      margin-bottom: 16px;
    }
    body.ar .section-title { font-family: 'Tajawal', sans-serif; }

    .section-divider {
      width: 48px;
      height: 1px;
      background: var(--gold);
      margin-bottom: 48px;
    }
    body.ar .section-divider { margin-right: 0; }

    .section-desc {
      color: var(--cream-dim);
      font-size: 16px;
      max-width: 540px;
      line-height: 1.8;
      margin-bottom: 48px;
    }
    body.ar .section-desc { font-family: 'Tajawal', sans-serif; }

    /* ─── MARQUEE STRIP ─── */
    .marquee-strip {
      background: var(--gold);
      padding: 14px 0;
      overflow: hidden;
      white-space: nowrap;
    }
    .marquee-track {
      display: inline-flex;
      animation: marquee 22s linear infinite;
    }
    .marquee-track span {
      font-family: 'Playfair Display', serif;
      font-size: 13px;
      letter-spacing: 3px;
      text-transform: uppercase;
      color: var(--bg-dark);
      padding: 0 28px;
    }
    .marquee-track span::before {
      content: '✦';
      margin-right: 28px;
      font-size: 10px;
    }
    @keyframes marquee {
      from { transform: translateX(0); }
      to   { transform: translateX(-50%); }
    }

    /* ─── ABOUT STRIP ─── */
    #about-strip {
      background: var(--bg-section);
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      padding: 80px 40px;
    }
    .about-strip-inner {
      max-width: 1320px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 80px;
      align-items: center;
    }
    .about-image-wrap {
      position: relative;
    }
    .about-image-wrap img {
      width: 100%;
      height: 480px;
      object-fit: cover;
      display: block;
    }
    .about-image-accent {
      position: absolute;
      bottom: -20px;
      right: -20px;
      width: 200px;
      height: 200px;
      border: 1px solid var(--gold);
      z-index: -1;
      pointer-events: none;
    }
    body.ar .about-image-accent { right: auto; left: -20px; }

    .about-stats {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
      margin-top: 40px;
    }
    .stat-item {
      border-left: 1px solid var(--border);
      padding-left: 20px;
    }
    body.ar .stat-item { border-left: none; border-right: 1px solid var(--border); padding-left: 0; padding-right: 20px; }
    .stat-number {
      font-family: 'Playfair Display', serif;
      font-size: 2.2rem;
      color: var(--gold-light);
      font-weight: 600;
      line-height: 1;
      margin-bottom: 4px;
    }
    .stat-label {
      font-size: 13px;
      color: var(--cream-dim);
      letter-spacing: 0.5px;
    }
    body.ar .stat-label { font-family: 'Tajawal', sans-serif; }

    /* ─── CATEGORIES ─── */
    #categories-section {
      background: var(--bg-dark);
    }

    .categories-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 2px;
    }

    .cat-card {
      position: relative;
      height: 320px;
      overflow: hidden;
      cursor: pointer;
      background: var(--bg-card);
    }
    .cat-card img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.6s ease;
      display: block;
    }
    .cat-card:hover img { transform: scale(1.06); }
    .cat-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(10,9,6,0.88) 0%, rgba(10,9,6,0.1) 60%);
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 28px;
      transition: background 0.3s;
    }
    .cat-card:hover .cat-overlay {
      background: linear-gradient(to top, rgba(10,9,6,0.92) 0%, rgba(10,9,6,0.3) 60%);
    }
    .cat-name {
      font-family: 'Playfair Display', serif;
      font-size: 1.4rem;
      color: var(--white);
      margin-bottom: 4px;
    }
    body.ar .cat-name { font-family: 'Tajawal', sans-serif; }
    .cat-desc {
      font-size: 13px;
      color: var(--cream-dim);
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    body.ar .cat-desc { font-family: 'Tajawal', sans-serif; }
    .cat-arrow {
      position: absolute;
      top: 20px; right: 20px;
      width: 36px; height: 36px;
      border: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--gold);
      font-size: 12px;
      opacity: 0;
      transition: opacity 0.3s;
    }
    body.ar .cat-arrow { right: auto; left: 20px; }
    .cat-card:hover .cat-arrow { opacity: 1; }

    /* ─── FEATURED PRODUCTS ─── */
    #products-section {
      background: var(--bg-section);
      border-top: 1px solid var(--border);
    }

    .products-header {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      margin-bottom: 48px;
      flex-wrap: wrap;
      gap: 16px;
    }

    .products-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 24px;
    }

    .product-card {
      position: relative; /* anchors the absolute FEATURED badge inside the card */
      background: var(--bg-card);
      border: 1px solid var(--border);
      overflow: hidden;
      transition: border-color 0.3s, transform 0.3s;
      cursor: pointer;
    }
    .product-card:hover {
      border-color: var(--gold-dim);
      transform: translateY(-4px);
    }
    .product-img {
      width: 100%;
      height: 220px;
      object-fit: cover;
      display: block;
      transition: transform 0.5s;
    }
    .product-card:hover .product-img { transform: scale(1.04); }
    .product-info {
      padding: 20px;
    }
    .product-category-tag {
      font-size: 10px;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 8px;
      display: block;
    }
    .product-name {
      font-family: 'Playfair Display', serif;
      font-size: 1.1rem;
      color: var(--white);
      margin-bottom: 8px;
      line-height: 1.3;
    }
    body.ar .product-name { font-family: 'Tajawal', sans-serif; }
    .product-desc {
      font-size: 13px;
      color: var(--cream-dim);
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      margin-bottom: 16px;
    }
    body.ar .product-desc { font-family: 'Tajawal', sans-serif; }
    .product-link {
      font-size: 11px;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--gold);
      text-decoration: none;
      transition: color 0.2s;
    }
    .product-link:hover { color: var(--gold-light); }

    /* ─── NEWS ─── */
    #news-section {
      background: var(--bg-dark);
      border-top: 1px solid var(--border);
    }

    .news-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
      gap: 24px;
    }

    .news-card {
      border: 1px solid var(--border);
      overflow: hidden;
      transition: border-color 0.3s;
    }
    .news-card:hover { border-color: var(--gold-dim); }
    .news-img {
      width: 100%;
      height: 220px;
      object-fit: cover;
      display: block;
      transition: transform 0.5s;
    }
    .news-card:hover .news-img { transform: scale(1.03); }
    .news-body {
      padding: 24px;
      background: var(--bg-card);
    }
    .news-date {
      font-size: 11px;
      letter-spacing: 2px;
      color: var(--gold);
      text-transform: uppercase;
      margin-bottom: 10px;
      display: block;
    }
    .news-text {
      font-size: 14px;
      color: var(--cream-dim);
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
      line-height: 1.7;
    }
    body.ar .news-text { font-family: 'Tajawal', sans-serif; }

    /* ─── FOOTER ─── */
    footer {
      background: var(--bg-section);
      border-top: 1px solid var(--border);
      padding: 60px 40px 32px;
    }
    .footer-inner {
      max-width: 1320px;
      margin: 0 auto;
    }
    .footer-top {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr 1fr;
      gap: 48px;
      padding-bottom: 48px;
      border-bottom: 1px solid var(--border);
      margin-bottom: 32px;
    }
    .footer-brand img {
      height: 40px;
      margin-bottom: 20px;
    }
    .footer-brand p {
      font-size: 14px;
      color: var(--cream-dim);
      line-height: 1.8;
      max-width: 280px;
    }
    body.ar .footer-brand p { font-family: 'Tajawal', sans-serif; }
    .footer-col h4 {
      font-family: 'Playfair Display', serif;
      font-size: 14px;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 20px;
    }
    body.ar .footer-col h4 { font-family: 'Tajawal', sans-serif; letter-spacing: 0; }
    .footer-col ul {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .footer-col a {
      text-decoration: none;
      color: var(--cream-dim);
      font-size: 14px;
      transition: color 0.2s;
    }
    .footer-col a:hover { color: var(--gold-light); }
    body.ar .footer-col a { font-family: 'Tajawal', sans-serif; }

    .footer-social {
      display: flex;
      gap: 12px;
      margin-top: 20px;
    }
    .social-btn {
      width: 36px; height: 36px;
      border: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--cream-dim);
      text-decoration: none;
      font-size: 13px;
      transition: all 0.2s;
    }
    .social-btn:hover {
      border-color: var(--gold);
      color: var(--gold-light);
    }

    .footer-bottom {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 12px;
      color: var(--cream-dim);
      letter-spacing: 0.5px;
    }

    /* ─── LOADING ─── */
    .skeleton {
      background: linear-gradient(90deg, var(--bg-card) 25%, #1e1b12 50%, var(--bg-card) 75%);
      background-size: 200% 100%;
      animation: shimmer 1.5s infinite;
    }
    @keyframes shimmer {
      from { background-position: 200% 0; }
      to   { background-position: -200% 0; }
    }

    /* ─── RESPONSIVE ─── */
    @media (max-width: 1024px) {
      .about-strip-inner { grid-template-columns: 1fr; gap: 48px; }
      .about-image-wrap img { height: 360px; }
      .footer-top { grid-template-columns: 1fr 1fr; }
    }

    @media (max-width: 768px) {
      :root { --navbar-h: 60px; }
      #navbar { padding: 0 20px; }
      section { padding: 64px 20px; }
      .nav-links { display: none; }
      .hamburger { display: flex; }

      .slide-content { left: 5%; right: 5%; max-width: none; }
      body.ar .slide-content { right: 5%; left: 5%; }
      .slide-title { font-size: clamp(1.6rem, 7vw, 2.5rem); }
      .slide-desc { font-size: 14px; }

      .categories-grid { grid-template-columns: 1fr 1fr; }
      .products-grid { grid-template-columns: 1fr; }
      .news-grid { grid-template-columns: 1fr; }
      .about-stats { grid-template-columns: 1fr 1fr; }
      .footer-top { grid-template-columns: 1fr; gap: 32px; }
      .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
      .products-header { flex-direction: column; align-items: flex-start; }
      #about-strip { padding: 60px 20px; }
    }

    @media (max-width: 480px) {
      .categories-grid { grid-template-columns: 1fr; }
      .cat-card { height: 240px; }
      .slider-arrows { display: none; }
    }

    /* ─── UTILITY ─── */
    .text-gold { color: var(--gold-light); }
    .view-all {
      font-size: 12px;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--gold);
      text-decoration: none;
      border-bottom: 1px solid var(--gold-dim);
      padding-bottom: 2px;
      transition: color 0.2s, border-color 0.2s;
    }
    .view-all:hover { color: var(--gold-light); border-color: var(--gold-light); }

    /* Fade-in on scroll */
    .fade-in {
      opacity: 0;
      transform: translateY(24px);
      transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .fade-in.visible {
      opacity: 1;
      transform: none;
    }

select.lang-btn {
  width: 120px !important;
  min-width: 120px !important;
  height: 34px;
  padding: 0 12px;
  color: var(--gold);
  border: 1px solid var(--gold) !important;
  background: rgba(10, 12, 12, 0.55);
  cursor: pointer;
  text-align: center;
}

select.lang-btn option {
  color: #111;
  background: #fff;
}

select.lang-btn:focus,
select.lang-btn:hover {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 1px var(--gold) !important;
  outline: none;
}

/* Product thumbnails: show full bottle without cropping */
.product-card img,
.featured-product-card img,
.product-image img,
.product-img img,
.product-thumb img,
.products-grid img {
  object-fit: contain !important;
  object-position: center center !important;
  background: #f3f3f3;
}

/* Product thumbnails background fill */
.product-card img,
.featured-product-card img,
.product-image img,
.product-img img,
.product-thumb img,
.products-grid img {
  object-fit: contain !important;
  object-position: center center !important;
  background-color: #d9d9d9 !important;
}

/* Fill the image area behind contain thumbnails */
.product-card,
.featured-product-card,
.product-image,
.product-img,
.product-thumb {
  --product-thumb-bg: #d9d9d9;
}


/* Dynamic banner image controls from dashboard */
#hero {
  height: var(--banner-height-desktop, 100vh) !important;
  min-height: var(--banner-height-desktop, 600px) !important;
}

.slide {
  background-image: var(--banner-desktop-image), url('../assets/img/about-placeholder.png') !important;
  background-size: var(--banner-bg-size, cover) !important;
  background-position: var(--banner-position, center center) !important;
  background-repeat: no-repeat !important;
  background-color: var(--banner-bg-color, #000000) !important;
}

@media (max-width: 768px) {
  #hero {
    height: var(--banner-height-mobile, 650px) !important;
    min-height: var(--banner-height-mobile, 650px) !important;
  }

  .slide {
    background-image: var(--banner-mobile-image), var(--banner-desktop-image), url('../assets/img/about-placeholder.png') !important;
  }
}


/* Dynamic banner overlay strength from dashboard */
.slide-overlay {
  background: linear-gradient(
    to right,
    rgba(10,9,6,var(--banner-overlay-start,0.85)) 0%,
    rgba(10,9,6,var(--banner-overlay-mid,0.55)) 50%,
    rgba(10,9,6,var(--banner-overlay-end,0.20)) 100%
  ) !important;
}

body.ar .slide-overlay {
  background: linear-gradient(
    to left,
    rgba(10,9,6,var(--banner-overlay-start,0.85)) 0%,
    rgba(10,9,6,var(--banner-overlay-mid,0.55)) 50%,
    rgba(10,9,6,var(--banner-overlay-end,0.20)) 100%
  ) !important;
}


/* Homepage Our Story image controls from dashboard */
#about-strip .about-image-wrap {
  overflow: hidden;
  background: var(--home-story-img-bg, #000000);
}

#about-strip .about-image-wrap img {
  height: var(--home-story-img-height-desktop, 480px) !important;
  object-fit: var(--home-story-img-fit, cover) !important;
  object-position: var(--home-story-img-position, center center) !important;
  background: var(--home-story-img-bg, #000000) !important;
  transform-origin: center center;
}

#about-strip .about-image-wrap.ken-burns-on img {
  animation: homeStoryKenBurns var(--home-story-kenburns-duration, 12s) ease-in-out infinite alternate;
}

@keyframes homeStoryKenBurns {
  from { transform: scale(1); }
  to { transform: scale(var(--home-story-kenburns-zoom, 1.08)); }
}

@media (max-width: 1024px) {
  #about-strip .about-image-wrap img {
    height: var(--home-story-img-height-mobile, 360px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #about-strip .about-image-wrap.ken-burns-on img {
    animation: none !important;
  }
}


/* Homepage Our Story optional flame glow effect */
#about-strip .about-image-wrap.flame-effect-on {
  position: relative;
  overflow: visible;
}

#about-strip .about-image-wrap.flame-effect-on::before,
#about-strip .about-image-wrap.flame-effect-on::after {
  content: "";
  position: absolute;
  inset: -14px;
  pointer-events: none;
  z-index: 2;
  border-radius: 4px;
}

#about-strip .about-image-wrap.flame-effect-on::before {
  background:
    radial-gradient(circle at 10% 80%, rgba(255, 88, 18, 0.42), transparent 18%),
    radial-gradient(circle at 22% 12%, rgba(255, 146, 36, 0.22), transparent 16%),
    radial-gradient(circle at 88% 18%, rgba(255, 109, 28, 0.30), transparent 18%),
    radial-gradient(circle at 92% 86%, rgba(255, 57, 16, 0.34), transparent 16%);
  filter: blur(12px);
  animation: storyFlamePulse 2.8s ease-in-out infinite alternate;
}

#about-strip .about-image-wrap.flame-effect-on::after {
  border: 1px solid rgba(255, 126, 32, 0.28);
  box-shadow:
    0 0 22px rgba(255, 89, 21, 0.28),
    0 0 54px rgba(255, 139, 31, 0.20),
    inset 0 0 34px rgba(255, 104, 24, 0.14);
  animation: storyFlameFlicker 1.6s ease-in-out infinite alternate;
}

@keyframes storyFlamePulse {
  0% {
    opacity: 0.50;
    transform: scale(0.99);
  }
  100% {
    opacity: 0.92;
    transform: scale(1.015);
  }
}

@keyframes storyFlameFlicker {
  0% {
    opacity: 0.45;
    filter: hue-rotate(0deg);
  }
  45% {
    opacity: 0.80;
    filter: hue-rotate(-10deg);
  }
  100% {
    opacity: 0.62;
    filter: hue-rotate(8deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  #about-strip .about-image-wrap.flame-effect-on::before,
  #about-strip .about-image-wrap.flame-effect-on::after {
    animation: none !important;
  }
}

/* Homepage categories: luxury spacing and gold card borders */
#categories-section .categories-grid {
  gap: 10px !important;
}

#categories-section .cat-card {
  border: 1px solid rgba(201, 168, 76, 0.45) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 14px 34px rgba(0, 0, 0, 0.28);
}

#categories-section .cat-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(201, 168, 76, 0.28);
  pointer-events: none;
  z-index: 3;
}

#categories-section .cat-card:hover {
  border-color: rgba(216, 189, 104, 0.85) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 18px 42px rgba(0, 0, 0, 0.36),
    0 0 22px rgba(201, 168, 76, 0.16);
}

/* Mobile category cards: show full thumbnail cleanly */
@media (max-width: 768px) {
  #categories-section .categories-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  #categories-section .cat-card {
    height: 230px !important;
    border: 1px solid rgba(201, 168, 76, 0.55) !important;
    background: #d9d9d9 !important;
  }

  #categories-section .cat-card img {
    object-fit: contain !important;
    object-position: center center !important;
    background: #d9d9d9 !important;
    padding: 8px !important;
    transform: none !important;
  }

  #categories-section .cat-card:hover img {
    transform: none !important;
  }

  #categories-section .cat-overlay {
    padding: 22px !important;
    background: linear-gradient(
      to top,
      rgba(10, 9, 6, 0.88) 0%,
      rgba(10, 9, 6, 0.48) 45%,
      rgba(10, 9, 6, 0.04) 78%
    ) !important;
  }

  #categories-section .cat-name {
    font-size: 1.35rem !important;
    line-height: 1.2 !important;
  }

  #categories-section .cat-desc {
    font-size: 12px !important;
    line-height: 1.5 !important;
    -webkit-line-clamp: 2 !important;
  }

  #categories-section .cat-arrow {
    opacity: 1 !important;
    width: 32px !important;
    height: 32px !important;
    top: 16px !important;
    right: 16px !important;
  }

  body.ar #categories-section .cat-arrow {
    right: auto !important;
    left: 16px !important;
  }
}

/* Flip homepage slider arrows in Arabic */
body.ar .slider-arrows .arrow-btn i {
  display: inline-block;
  transform: scaleX(-1);
}

/* Homepage luxury browser clock */
#about-strip .about-media-col {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

#about-strip .about-media-col > .luxury-clock-card {
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
  min-height: 118px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 26px;
  border: 1px solid rgba(201,168,76,0.55);
  background:
    linear-gradient(135deg, rgba(201,168,76,0.12), rgba(10,9,6,0.78)),
    rgba(10,9,6,0.74);
  box-shadow: 0 18px 50px rgba(0,0,0,0.34), inset 0 0 24px rgba(201,168,76,0.06);
  backdrop-filter: blur(10px);
}

#about-strip .about-media-col > .luxury-clock-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(201,168,76,0.18);
  pointer-events: none;
}

#about-strip .about-media-col > .luxury-clock-card {
  position: relative;
}

#about-strip .about-media-col .luxury-clock-face {
  position: relative;
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  border: 1px solid rgba(201,168,76,0.75);
  border-radius: 50%;
  background: rgba(0,0,0,0.22);
  box-shadow: inset 0 0 20px rgba(201,168,76,0.08), 0 0 20px rgba(201,168,76,0.08);
}

#about-strip .about-media-col .luxury-clock-face::before,
#about-strip .about-media-col .luxury-clock-face::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  bottom: 7px;
  width: 1px;
  background: rgba(201,168,76,0.25);
  transform: translateX(-50%);
}

#about-strip .about-media-col .luxury-clock-face::after {
  transform: translateX(-50%) rotate(90deg);
}

#about-strip .about-media-col .clock-hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 2px;
  transform-origin: bottom center;
  border-radius: 4px;
  background: var(--gold);
}

#about-strip .about-media-col .clock-hour {
  height: 22px;
  transform: translateX(-50%) rotate(var(--clock-hour, 0deg));
}

#about-strip .about-media-col .clock-minute {
  height: 29px;
  opacity: 0.9;
  transform: translateX(-50%) rotate(var(--clock-minute, 0deg));
}

#about-strip .about-media-col .clock-second {
  height: 31px;
  width: 1px;
  background: var(--gold-light);
  opacity: 0.75;
  transform: translateX(-50%) rotate(var(--clock-second, 0deg));
}

#about-strip .about-media-col .clock-center {
  position: absolute;
  width: 8px;
  height: 8px;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  background: var(--gold);
  transform: translate(-50%, -50%);
}

#about-strip .about-media-col .luxury-clock-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}

#about-strip .about-media-col .luxury-clock-label {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

#luxury-live-time {
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1;
  font-weight: 700;
}

#luxury-live-date {
  color: var(--cream-dim);
  font-size: 14px;
  letter-spacing: 0.6px;
}

body.ar #about-strip .about-media-col > .luxury-clock-card {
  direction: rtl;
}

@media (max-width: 768px) {
  #about-strip .about-media-col > .luxury-clock-card {
    padding: 18px;
    gap: 16px;
  }

  #about-strip .about-media-col .luxury-clock-face {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
  }

  #about-strip .about-media-col .luxury-clock-label {
    letter-spacing: 3px;
  }
}

/* Align homepage clock with Our Story label */
#about-strip .about-strip-inner {
  align-items: start !important;
}

/* Final responsive clock sizing and centering */
#about-strip .about-media-col {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 50px !important;
}

#about-strip .about-media-col .about-image-wrap {
  width: 100% !important;
}

#about-strip .about-media-col > .luxury-clock-card {
  width: 650px !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Mobile clock visual width: match story image/glow */
@media (max-width: 768px) {
  #about-strip .about-media-col > .luxury-clock-card {
    width: calc(100% + 28px) !important;
    max-width: none !important;
    margin-left: -14px !important;
    margin-right: -14px !important;
  }
}
