/*
Theme Name: Khodrahtak Luxury Dual-Edition
Theme URI: https://khodrahtak.com
Author: Khodrahtak Digital Store
Author URI: https://khodrahtak.com
Description: القالب الفاخر المتكامل لمتجر خد راحتك (Khodrahtak.com) — الإصدار 4.0 الشامل لجميع الصفحات والأقسام والمنتجات والسلة والدفع بهوية مزدوجة (أوف-وايت لؤلؤي + وضع سينمائي فحمي مطفي) مع توافق تام مع WooCommerce و Rank Math SEO.
Version: 5.2.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: khodrahtak-luxury
Tags: e-commerce, rtl-language-support, custom-logo, custom-menu
*/

    /* =========================================================================
       DUAL LUXURY PALETTE:
       1) Warm Alabaster & Matte Carbon (Default — Inspired by IBO XPlayer & Apple)
       2) Matte Obsidian Cinema Mode (Pure Charcoal & Warm Gold/Crimson — Zero AI Blue!)
       ========================================================================= */
    :root,
    [data-theme="light"] {
      --bg-canvas: #F6F5F0;
      --bg-alt: #ECEAE2;
      --bg-card: #FFFFFF;
      --bg-subtle: #F2F0E8;
      --bg-header: rgba(246, 245, 240, 0.88);
      --text-primary: #141416;
      --text-secondary: #4A4946;
      --text-muted: #78756F;
      --border-line: rgba(20, 20, 22, 0.09);
      --border-strong: rgba(20, 20, 22, 0.16);
      --brand-amber: #D96216;
      --brand-amber-hover: #B84E0C;
      --brand-crimson: #C81E32;
      --brand-gold: #B47814;
      --whatsapp: #16A34A;
      --shadow-soft: 0 18px 45px rgba(20, 18, 14, 0.07);
      --shadow-hover: 0 26px 60px rgba(20, 18, 14, 0.14);
      --pill-bg: rgba(217, 98, 22, 0.1);
      --chip-bg: #F3F2EC;
      --ambient-tv: radial-gradient(circle, rgba(217, 119, 36, 0.28), rgba(200, 30, 50, 0.14), transparent 70%);
    }

    [data-theme="cinema"] {
      --bg-canvas: #0E0E10;
      --bg-alt: #141417;
      --bg-card: #1A1A1E;
      --bg-subtle: #222227;
      --bg-header: rgba(14, 14, 16, 0.88);
      --text-primary: #F5F5F4;
      --text-secondary: #C7C5C0;
      --text-muted: #8E8C86;
      --border-line: rgba(255, 255, 255, 0.09);
      --border-strong: rgba(255, 255, 255, 0.18);
      --brand-amber: #F07B22;
      --brand-amber-hover: #D96216;
      --brand-crimson: #E11D48;
      --brand-gold: #EAB308;
      --whatsapp: #22C55E;
      --shadow-soft: 0 22px 50px rgba(0, 0, 0, 0.55);
      --shadow-hover: 0 28px 65px rgba(0, 0, 0, 0.78);
      --pill-bg: rgba(240, 123, 34, 0.15);
      --chip-bg: #25252B;
      --ambient-tv: radial-gradient(circle, rgba(240, 123, 34, 0.36), rgba(225, 29, 72, 0.2), transparent 70%);
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      font-family: 'Cairo', system-ui, -apple-system, sans-serif;
      background-color: var(--bg-canvas);
      color: var(--text-primary);
      line-height: 1.65;
      overflow-x: hidden;
      transition: background-color 0.4s ease, color 0.4s ease;
    }
    a { text-decoration: none; color: inherit; }
    button, input, select { font-family: inherit; }

    .container {
      max-width: 1300px;
      margin: 0 auto;
      padding: 0 24px;
    }

    /* 1. Sleek Matte Carbon Top Announcement Bar */
    .top-bar {
      background: #141416;
      color: #E7E5E0;
      font-size: 12.5px;
      padding: 8px 0;
      border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .top-bar-inner {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 12px;
    }
    .live-indicator {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-weight: 700;
    }
    .live-dot {
      width: 8px; height: 8px;
      border-radius: 50%;
      background: #22C55E;
      box-shadow: 0 0 10px #22C55E;
      animation: livePulse 1.6s infinite;
    }
    @keyframes livePulse {
      0%, 100% { transform: scale(1); opacity: 1; }
      50% { transform: scale(1.5); opacity: 0.45; }
    }

    /* 2. Editorial Glass Mega Header + Theme Mode Switcher */
    .site-header {
      position: sticky;
      top: 0;
      z-index: 100;
      background: var(--bg-header);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--border-line);
      transition: background 0.4s ease, border-color 0.4s ease;
    }
    .header-main {
      display: grid;
      grid-template-columns: auto 1fr auto;
      align-items: center;
      gap: 24px;
      padding: 14px 0;
    }
    .brand-logo img {
      height: 40px;
      width: auto;
      display: block;
      transition: opacity 0.3s;
    }
    [data-theme="light"] .logo-for-dark { display: none; }
    [data-theme="cinema"] .logo-for-light { display: none; }

    /* Refined Search Bar */
    .search-box {
      display: flex;
      align-items: center;
      background: var(--bg-card);
      border: 1px solid var(--border-strong);
      border-radius: 999px;
      padding: 4px 5px 4px 4px;
      max-width: 540px;
      width: 100%;
      margin: 0 auto;
      box-shadow: 0 4px 16px rgba(0,0,0,0.04);
      transition: border-color 0.25s, box-shadow 0.25s;
    }
    .search-box:focus-within {
      border-color: var(--brand-amber);
      box-shadow: 0 0 0 3px var(--pill-bg);
    }
    .search-box select {
      background: transparent;
      color: var(--text-primary);
      border: none;
      border-left: 1px solid var(--border-line);
      padding: 7px 14px;
      font-weight: 800;
      font-size: 13px;
      outline: none;
      cursor: pointer;
    }
    .search-box select option { background: var(--bg-card); color: var(--text-primary); }
    .search-box input {
      flex: 1;
      background: transparent;
      border: none;
      color: var(--text-primary);
      padding: 7px 14px;
      font-size: 13.5px;
      outline: none;
    }
    .search-box input::placeholder { color: var(--text-muted); }
    .search-box button {
      background: var(--text-primary);
      color: var(--bg-canvas);
      border: none;
      border-radius: 999px;
      padding: 8px 20px;
      font-weight: 800;
      font-size: 13px;
      cursor: pointer;
      transition: background 0.2s;
    }
    .search-box button:hover { background: var(--brand-amber); color: #fff; }

    .header-actions {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    /* Luxury Theme Switcher Pill */
    .theme-toggle-btn {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      background: var(--bg-subtle);
      border: 1px solid var(--border-strong);
      color: var(--text-primary);
      padding: 8px 15px;
      border-radius: 999px;
      font-weight: 800;
      font-size: 13px;
      cursor: pointer;
      transition: all 0.25s;
    }
    .theme-toggle-btn:hover {
      border-color: var(--brand-amber);
      transform: translateY(-1px);
    }

    .cart-pill-btn {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      background: var(--brand-amber);
      color: #fff;
      border: none;
      padding: 9px 18px;
      border-radius: 999px;
      font-weight: 800;
      font-size: 13.5px;
      cursor: pointer;
      box-shadow: 0 8px 20px rgba(217, 98, 22, 0.26);
      transition: transform 0.2s, background 0.2s;
    }
    .cart-pill-btn:hover {
      background: var(--brand-amber-hover);
      transform: translateY(-2px);
    }
    .cart-badge-num {
      background: #fff;
      color: #141416;
      font-weight: 900;
      font-size: 12px;
      padding: 1px 8px;
      border-radius: 999px;
    }

    /* Categories Sub-Navigation Bar */
    .cats-subnav {
      border-top: 1px solid var(--border-line);
      background: var(--bg-subtle);
      transition: background 0.4s ease;
    }
    .cats-subnav-inner {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 0;
      overflow-x: auto;
      scrollbar-width: none;
    }
    .cats-subnav-inner::-webkit-scrollbar { display: none; }
    .subnav-item {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 15px;
      border-radius: 999px;
      font-size: 13px;
      font-weight: 700;
      color: var(--text-secondary);
      white-space: nowrap;
      transition: all 0.2s;
    }
    .subnav-item:hover {
      background: var(--bg-card);
      color: var(--brand-amber);
    }
    .subnav-item.primary-cat {
      background: #141416;
      color: #fff;
      font-weight: 800;
    }
    [data-theme="cinema"] .subnav-item.primary-cat {
      background: var(--brand-amber);
    }

    /* =========================================================================
       3. HERO STAGE: EDITORIAL LUXURY + 3D FLOATING TITANIUM TV (MOVING SCREENS!)
       ========================================================================= */
    .hero-section {
      padding: 52px 0 44px;
      position: relative;
      overflow: hidden;
    }
    .hero-grid {
      display: grid;
      grid-template-columns: 1.02fr 1.18fr;
      gap: 46px;
      align-items: center;
    }
    .eyebrow-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: var(--pill-bg);
      color: var(--brand-amber);
      border: 1px solid rgba(217, 98, 22, 0.28);
      padding: 6px 16px;
      border-radius: 999px;
      font-size: 13px;
      font-weight: 800;
      margin-bottom: 18px;
    }
    .hero-copy h1 {
      font-size: clamp(30px, 3.8vw, 50px);
      font-weight: 900;
      line-height: 1.24;
      letter-spacing: -0.3px;
      margin-bottom: 18px;
      color: var(--text-primary);
    }
    .hero-copy h1 span {
      color: var(--brand-amber);
    }
    .hero-copy p {
      font-size: 16.5px;
      color: var(--text-secondary);
      line-height: 1.82;
      margin-bottom: 28px;
      max-width: 550px;
    }
    .hero-btns {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-bottom: 32px;
    }
    .btn-solid-luxury {
      position: relative;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      background: #141416;
      color: #FFFFFF;
      padding: 14px 30px;
      border-radius: 14px;
      font-weight: 800;
      font-size: 15.5px;
      border: none;
      cursor: pointer;
      box-shadow: 0 14px 30px rgba(20, 20, 22, 0.22);
      transition: all 0.25s;
    }
    [data-theme="cinema"] .btn-solid-luxury {
      background: var(--brand-amber);
      box-shadow: 0 14px 30px rgba(240, 123, 34, 0.32);
    }
    .btn-solid-luxury:hover {
      background: var(--brand-amber);
      transform: translateY(-3px);
    }
    .btn-wa-luxury {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      background: var(--bg-card);
      border: 1.5px solid var(--whatsapp);
      color: var(--whatsapp);
      padding: 14px 24px;
      border-radius: 14px;
      font-weight: 800;
      font-size: 15px;
      transition: all 0.25s;
    }
    .btn-wa-luxury:hover {
      background: var(--whatsapp);
      color: #fff;
      transform: translateY(-3px);
    }

    .hero-kpis {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
      padding-top: 22px;
      border-top: 1px solid var(--border-line);
    }
    .kpi-item strong {
      display: block;
      font-size: 22px;
      font-weight: 900;
      color: var(--text-primary);
      line-height: 1.2;
    }
    .kpi-item span { font-size: 12.5px; color: var(--text-muted); font-weight: 600; }

    /* 3D Brushed-Titanium OLED Smart TV Stage */
    .tv-stage-wrap {
      perspective: 1500px;
      position: relative;
      padding: 12px 8px 26px;
    }
    .tv-warm-glow {
      position: absolute;
      inset: 6%;
      border-radius: 44px;
      background: var(--ambient-tv);
      filter: blur(42px);
      z-index: 0;
      transition: background 0.6s ease;
    }
    .tv-bezel {
      position: relative;
      z-index: 2;
      background: #111113;
      padding: 9px;
      border-radius: 24px;
      border: 1.5px solid rgba(255, 255, 255, 0.16);
      box-shadow:
        0 34px 75px rgba(15, 14, 12, 0.36),
        0 2px 6px rgba(0,0,0,0.2);
      transform-style: preserve-3d;
      animation: gentleFloat 6s ease-in-out infinite;
      transition: transform 0.2s ease-out;
    }
    @keyframes gentleFloat {
      0%, 100% { transform: translateY(0px) rotateY(-3.5deg) rotateX(1.5deg); }
      50% { transform: translateY(-10px) rotateY(2.5deg) rotateX(-1.5deg); }
    }
    .tv-glass-screen {
      position: relative;
      aspect-ratio: 16 / 9.5;
      border-radius: 16px;
      overflow: hidden;
      background: #09090B;
    }
    .tv-channel-slide {
      position: absolute;
      inset: 0;
      opacity: 0;
      transition: opacity 0.8s ease;
    }
    .tv-channel-slide.active { opacity: 1; }
    .tv-channel-slide img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .tv-channel-slide.active img {
      animation: smoothCinemaPan 10s ease-in-out infinite alternate;
    }
    @keyframes smoothCinemaPan {
      0% { transform: scale(1.02) translate(0, 0); }
      100% { transform: scale(1.11) translate(-1.5%, -1.2%); }
    }

    /* Refined Apple-TV Style Screen OSD */
    .osd-top {
      position: absolute;
      top: 14px; left: 14px; right: 14px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      z-index: 5;
    }
    .osd-live {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: var(--brand-crimson);
      color: #fff;
      font-size: 11px;
      font-weight: 900;
      padding: 4px 12px;
      border-radius: 999px;
      letter-spacing: 0.5px;
    }
    .osd-res {
      background: rgba(17, 17, 19, 0.78);
      backdrop-filter: blur(10px);
      color: #fff;
      border: 1px solid rgba(255,255,255,0.2);
      font-size: 11px;
      font-weight: 800;
      padding: 4px 11px;
      border-radius: 8px;
    }

    .osd-bottom {
      position: absolute;
      bottom: 0; left: 0; right: 0;
      padding: 32px 18px 14px;
      background: linear-gradient(0deg, rgba(10, 10, 12, 0.94) 0%, rgba(10, 10, 12, 0.55) 60%, transparent 100%);
      z-index: 5;
      color: #fff;
    }
    .osd-row {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      gap: 12px;
      margin-bottom: 10px;
    }
    .osd-kicker { font-size: 12px; color: #FDBA74; font-weight: 700; }
    .osd-headline { font-size: 16.5px; font-weight: 800; }

    .eq-mini {
      display: flex;
      align-items: flex-end;
      gap: 3px;
      height: 18px;
    }
    .eq-mini span {
      width: 3.5px;
      background: #F59E0B;
      border-radius: 2px;
      animation: eqMove 0.75s ease-in-out infinite alternate;
    }
    .eq-mini span:nth-child(1) { height: 8px; animation-delay: 0.1s; }
    .eq-mini span:nth-child(2) { height: 17px; animation-delay: 0.3s; }
    .eq-mini span:nth-child(3) { height: 11px; animation-delay: 0s; }
    .eq-mini span:nth-child(4) { height: 18px; animation-delay: 0.2s; }
    @keyframes eqMove { 0% { transform: scaleY(0.3); } 100% { transform: scaleY(1); } }

    .osd-bar {
      height: 3.5px;
      background: rgba(255,255,255,0.2);
      border-radius: 99px;
      overflow: hidden;
    }
    .osd-bar-fill {
      height: 100%;
      width: 100%;
      background: linear-gradient(90deg, #F59E0B, #EF4444);
      transform-origin: right;
      animation: barRun 5s linear infinite;
    }
    @keyframes barRun { 0% { transform: scaleX(0); } 100% { transform: scaleX(1); } }

    /* Floating Glass Companion Badge */
    .floating-badge-card {
      position: absolute;
      bottom: 46px;
      left: -12px;
      z-index: 6;
      background: rgba(20, 20, 22, 0.92);
      backdrop-filter: blur(14px);
      color: #fff;
      border: 1px solid rgba(255,255,255,0.16);
      border-radius: 16px;
      padding: 11px 16px;
      display: flex;
      align-items: center;
      gap: 11px;
      box-shadow: 0 18px 40px rgba(0,0,0,0.35);
      animation: badgeFloat 4.4s ease-in-out infinite alternate;
    }
    @keyframes badgeFloat { 0% { transform: translateY(0); } 100% { transform: translateY(-9px); } }

    /* Tactile Remote Channel Switcher */
    .channel-dock {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 8px;
      margin-top: 16px;
      position: relative;
      z-index: 5;
    }
    .ch-btn {
      background: var(--bg-card);
      border: 1px solid var(--border-strong);
      color: var(--text-secondary);
      padding: 10px 8px;
      border-radius: 12px;
      font-size: 12.5px;
      font-weight: 800;
      cursor: pointer;
      transition: all 0.25s;
      box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    }
    .ch-btn.active, .ch-btn:hover {
      background: #141416;
      color: #fff;
      border-color: #141416;
      transform: translateY(-2px);
    }
    [data-theme="cinema"] .ch-btn.active,
    [data-theme="cinema"] .ch-btn:hover {
      background: var(--brand-amber);
      border-color: var(--brand-amber);
    }

    /* =========================================================================
       4. DUAL MOVING CINEMA & DEVICES GALLERY (IBO XPLAYER / APPLE TV STYLE)
       ========================================================================= */
    .moving-gallery-sec {
      padding: 22px 0 48px;
      overflow: hidden;
    }
    .gallery-kicker {
      text-align: center;
      font-size: 12.5px;
      font-weight: 800;
      color: var(--text-muted);
      margin-bottom: 16px;
      letter-spacing: 0.4px;
    }
    .filmstrip-wrap {
      display: flex;
      overflow: hidden;
      direction: ltr;
      margin-bottom: 14px;
      mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
      -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    }
    .filmstrip-track {
      display: flex;
      gap: 16px;
      width: max-content;
      animation: glideLeft 36s linear infinite;
    }
    .filmstrip-track.reverse {
      animation: glideRight 40s linear infinite;
    }
    .filmstrip-wrap:hover .filmstrip-track {
      animation-play-state: paused;
    }
    @keyframes glideLeft { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
    @keyframes glideRight { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }

    .screen-frame-card {
      direction: rtl;
      position: relative;
      width: 265px;
      height: 152px;
      border-radius: 18px;
      overflow: hidden;
      background: #141416;
      border: 1px solid var(--border-strong);
      box-shadow: var(--shadow-soft);
      flex-shrink: 0;
      transition: transform 0.35s ease, box-shadow 0.35s ease;
    }
    .screen-frame-card:hover {
      transform: scale(1.05);
      box-shadow: var(--shadow-hover);
      z-index: 4;
    }
    .screen-frame-card img {
      width: 100%; height: 100%;
      object-fit: cover;
    }
    .screen-frame-caption {
      position: absolute;
      inset: 0;
      background: linear-gradient(0deg, rgba(12, 12, 14, 0.9) 0%, rgba(12, 12, 14, 0.15) 60%, transparent 100%);
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 13px 15px;
      color: #fff;
    }
    .screen-frame-caption span { font-size: 10.5px; color: #FDBA74; font-weight: 800; }
    .screen-frame-caption strong { font-size: 14px; font-weight: 800; }

    /* =========================================================================
       5. REAL PHOTOGRAPHIC STORE DEPARTMENTS ("أقسام الموقع بصور احترافية واقعية")
       ========================================================================= */
    .departments-sec {
      padding: 64px 0;
      background: var(--bg-alt);
      border-top: 1px solid var(--border-line);
      border-bottom: 1px solid var(--border-line);
      transition: background 0.4s ease;
    }
    .sec-header {
      text-align: center;
      max-width: 700px;
      margin: 0 auto 42px;
    }
    .sec-header .kicker {
      display: inline-block;
      color: var(--brand-amber);
      font-weight: 800;
      font-size: 13px;
      margin-bottom: 8px;
    }
    .sec-header h2 {
      font-size: clamp(26px, 3.2vw, 38px);
      font-weight: 900;
      margin-bottom: 10px;
      color: var(--text-primary);
    }
    .sec-header p { color: var(--text-secondary); font-size: 15.5px; }

    .photo-cats-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 26px;
    }
    .photo-cat-card {
      background: var(--bg-card);
      border: 1px solid var(--border-line);
      border-radius: 24px;
      overflow: hidden;
      display: grid;
      grid-template-columns: 1.05fr 1fr;
      box-shadow: var(--shadow-soft);
      transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    }
    .photo-cat-card:hover {
      transform: translateY(-7px);
      box-shadow: var(--shadow-hover);
      border-color: var(--brand-amber);
    }
    .photo-cat-media {
      position: relative;
      min-height: 290px;
      overflow: hidden;
      background: #141416;
    }
    .photo-cat-media img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .photo-cat-card:hover .photo-cat-media img {
      transform: scale(1.08);
    }
    .photo-cat-pill {
      position: absolute;
      top: 14px;
      right: 14px;
      background: rgba(20, 20, 22, 0.82);
      backdrop-filter: blur(8px);
      color: #fff;
      font-size: 11.5px;
      font-weight: 800;
      padding: 5px 12px;
      border-radius: 999px;
    }
    .photo-cat-info {
      padding: 28px 26px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }
    .cat-en-sub {
      font-size: 11.5px;
      font-weight: 800;
      color: var(--brand-amber);
      letter-spacing: 0.7px;
      text-transform: uppercase;
      display: block;
      margin-bottom: 6px;
    }
    .photo-cat-info h3 {
      font-size: 22px;
      font-weight: 900;
      line-height: 1.32;
      margin-bottom: 10px;
      color: var(--text-primary);
    }
    .photo-cat-info p {
      font-size: 14px;
      color: var(--text-secondary);
      line-height: 1.7;
      margin-bottom: 16px;
    }
    .cat-feature-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-bottom: 20px;
    }
    .cat-feature-tags span {
      background: var(--chip-bg);
      color: var(--text-secondary);
      font-size: 11.5px;
      font-weight: 700;
      padding: 4px 10px;
      border-radius: 8px;
    }
    .cat-explore-btn {
      display: inline-flex;
      align-items: center;
      justify-content: space-between;
      padding: 11px 18px;
      border-radius: 12px;
      background: var(--bg-subtle);
      color: var(--text-primary);
      font-weight: 800;
      font-size: 14px;
      transition: all 0.25s;
    }
    .photo-cat-card:hover .cat-explore-btn {
      background: var(--brand-amber);
      color: #fff;
    }

    /* =========================================================================
       6. INTERACTIVE MULTI-SCREEN & MAC ACTIVATION STUDIO (MATTE CARBON FEATURE!)
       ========================================================================= */
    .mac-studio-sec {
      padding: 64px 0;
    }
    .mac-studio-card {
      background: #141416;
      color: #F5F5F4;
      border-radius: 28px;
      padding: 44px;
      display: grid;
      grid-template-columns: 1.1fr 1fr;
      gap: 40px;
      align-items: center;
      box-shadow: 0 28px 65px rgba(0,0,0,0.22);
    }
    .dev-pills {
      display: flex;
      flex-wrap: wrap;
      gap: 9px;
      margin: 18px 0;
    }
    .dev-pill-btn {
      background: rgba(255,255,255,0.07);
      border: 1px solid rgba(255,255,255,0.14);
      color: #D6D3CD;
      padding: 9px 16px;
      border-radius: 999px;
      font-weight: 700;
      font-size: 13px;
      cursor: pointer;
      transition: all 0.2s;
    }
    .dev-pill-btn.active, .dev-pill-btn:hover {
      background: var(--brand-amber);
      border-color: var(--brand-amber);
      color: #fff;
    }
    .mac-form-panel {
      background: #1E1E22;
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 22px;
      padding: 28px;
    }
    .mac-form-panel select, .mac-form-panel input {
      width: 100%;
      background: #111113;
      border: 1px solid rgba(255,255,255,0.18);
      color: #fff;
      padding: 13px 16px;
      border-radius: 12px;
      font-size: 14px;
      margin-bottom: 12px;
      outline: none;
    }

    /* =========================================================================
       7. DEDICATED DEPARTMENT PRODUCT ROWS
       ========================================================================= */
    .dept-row-sec {
      padding: 52px 0 24px;
    }
    .dept-row-head {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      flex-wrap: wrap;
      gap: 14px;
      margin-bottom: 26px;
      padding-bottom: 14px;
      border-bottom: 1px solid var(--border-line);
    }
    .dept-row-head .tag {
      color: var(--brand-amber);
      font-size: 12.5px;
      font-weight: 800;
      display: block;
    }
    .dept-row-head h2 {
      font-size: clamp(22px, 2.7vw, 31px);
      font-weight: 900;
    }

    .prod-grid-4 {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 22px;
    }
    .lux-prod-card {
      background: var(--bg-card);
      border: 1px solid var(--border-line);
      border-radius: 20px;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      box-shadow: var(--shadow-soft);
      transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    }
    .lux-prod-card:hover {
      transform: translateY(-6px);
      box-shadow: var(--shadow-hover);
      border-color: var(--brand-amber);
    }
    .lp-media {
      position: relative;
      aspect-ratio: 1 / 1;
      background: #141416;
      overflow: hidden;
    }
    .lp-media img {
      width: 100%; height: 100%;
      object-fit: cover;
      transition: transform 0.5s ease;
    }
    .lux-prod-card:hover .lp-media img { transform: scale(1.06); }
    .lp-badge {
      position: absolute;
      top: 12px; right: 12px;
      background: #141416;
      color: #fff;
      font-size: 11px;
      font-weight: 800;
      padding: 4px 11px;
      border-radius: 999px;
    }
    .lp-badge.crimson { background: var(--brand-crimson); }
    .lp-body {
      padding: 18px;
      display: flex;
      flex-direction: column;
      flex: 1;
    }
    .lp-cat { font-size: 11.5px; color: var(--brand-amber); font-weight: 800; margin-bottom: 4px; }
    .lp-title { font-size: 15.5px; font-weight: 800; line-height: 1.42; margin-bottom: 10px; min-height: 44px; color: var(--text-primary); }
    .lp-specs {
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
      margin-bottom: 14px;
    }
    .lp-specs span {
      background: var(--chip-bg);
      color: var(--text-secondary);
      font-size: 11px;
      font-weight: 700;
      padding: 2px 8px;
      border-radius: 6px;
    }
    .lp-price-row {
      margin-top: auto;
      display: flex;
      align-items: baseline;
      gap: 8px;
      margin-bottom: 14px;
    }
    .lp-price { font-size: 21px; font-weight: 900; color: var(--brand-amber); }
    .lp-old { font-size: 13px; color: var(--text-muted); text-decoration: line-through; }
    .lp-btns {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 8px;
    }
    .lp-add-btn {
      background: #141416;
      color: #fff;
      border: none;
      border-radius: 11px;
      padding: 10px 12px;
      font-weight: 800;
      font-size: 13.5px;
      cursor: pointer;
      transition: background 0.2s;
    }
    [data-theme="cinema"] .lp-add-btn { background: var(--brand-amber); }
    .lp-add-btn:hover { background: var(--brand-amber); }
    .lp-wa-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: rgba(22, 163, 74, 0.1);
      border: 1px solid var(--whatsapp);
      color: var(--whatsapp);
      border-radius: 11px;
      padding: 10px 13px;
      font-weight: 800;
      font-size: 13px;
      transition: all 0.2s;
    }
    .lp-wa-btn:hover { background: var(--whatsapp); color: #fff; }

    /* Testimonials */
    .reviews-sec {
      padding: 64px 0;
      background: var(--bg-alt);
      margin-top: 40px;
      border-top: 1px solid var(--border-line);
    }
    .reviews-grid-3 {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 22px;
    }
    .rev-box {
      background: var(--bg-card);
      border: 1px solid var(--border-line);
      border-radius: 20px;
      padding: 26px;
      box-shadow: var(--shadow-soft);
    }
    .rev-user {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-top: 16px;
    }
    .rev-user img {
      width: 46px; height: 46px;
      border-radius: 50%;
      object-fit: cover;
    }

    /* Matte Carbon Footer */
    .lux-footer {
      background: #111113;
      color: #D6D3CD;
      padding: 58px 0 26px;
    }
    .footer-cols {
      display: grid;
      grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
      gap: 30px;
      margin-bottom: 36px;
    }
    .footer-cols h4 { color: #fff; font-size: 16px; font-weight: 800; margin-bottom: 14px; }
    .footer-cols li { list-style: none; color: #9C9992; font-size: 14px; margin-bottom: 9px; }

    /* Live Order Toast */
    .order-toast {
      position: fixed;
      bottom: 22px; right: 22px;
      z-index: 140;
      background: #141416;
      color: #fff;
      border-right: 4px solid var(--brand-amber);
      border-radius: 16px;
      padding: 13px 16px;
      display: flex;
      align-items: center;
      gap: 12px;
      max-width: 340px;
      box-shadow: 0 20px 45px rgba(0,0,0,0.35);
      transform: translateY(140%);
      opacity: 0;
      transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .order-toast.show { transform: translateY(0); opacity: 1; }

    /* Slide-out Cart */
    .backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 200; display: none; }
    .drawer {
      position: fixed; top: 0; left: 0; bottom: 0;
      width: min(410px, 92vw);
      background: var(--bg-card);
      color: var(--text-primary);
      z-index: 201;
      padding: 24px;
      display: none;
      flex-direction: column;
      box-shadow: 20px 0 50px rgba(0,0,0,0.25);
    }
    .backdrop.open, .drawer.open { display: flex; }

    .reveal {
      opacity: 0;
      transform: translateY(24px);
      transition: opacity 0.65s ease, transform 0.65s ease;
    }
    .reveal.in-view { opacity: 1; transform: translateY(0); }

    @media (max-width: 1080px) {
      .hero-grid, .photo-cats-grid, .mac-studio-card { grid-template-columns: 1fr; }
      .prod-grid-4 { grid-template-columns: repeat(2, 1fr); }
      .header-main { grid-template-columns: 1fr; gap: 12px; }
      .footer-cols, .reviews-grid-3 { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 640px) {
      .photo-cat-card, .prod-grid-4, .channel-dock, .footer-cols, .reviews-grid-3 { grid-template-columns: 1fr; }
      .floating-badge-card { position: static; margin-top: 12px; }
    }
  

/* =========================================================================
   GLOBAL THEME ISOLATION & CINEMA MODE CONTRAST LOCK (FIXES ELEMENTOR OVERRIDES!)
   ========================================================================= */
:root,
html[data-theme="light"] {
  --bg-canvas: #F6F5F0;
  --bg-alt: #ECEAE2;
  --bg-card: #FFFFFF;
  --bg-subtle: #F2F0E8;
  --bg-header: rgba(246, 245, 240, 0.92);
  --text-primary: #141416;
  --text-secondary: #454440;
  --text-muted: #73706A;
  --border-line: rgba(20, 20, 22, 0.10);
  --border-strong: rgba(20, 20, 22, 0.18);
  --brand-amber: #D96216;
  --brand-amber-hover: #B84E0C;
  --brand-crimson: #C81E32;
  --whatsapp: #16A34A;
  --chip-bg: #F1EFE8;
}

html[data-theme="cinema"] {
  --bg-canvas: #0E0E10;
  --bg-alt: #141417;
  --bg-card: #1A1A1F;
  --bg-subtle: #232329;
  --bg-header: rgba(14, 14, 16, 0.92);
  --text-primary: #F7F7F5;
  --text-secondary: #D6D4CE;
  --text-muted: #9E9B94;
  --border-line: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.20);
  --brand-amber: #F07B22;
  --brand-amber-hover: #D96216;
  --brand-crimson: #E11D48;
  --whatsapp: #22C55E;
  --chip-bg: #26262D;
}

html,
html[data-theme="light"],
html[data-theme="cinema"],
html body,
html[data-theme="light"] body,
html[data-theme="cinema"] body,
body[class*="elementor-page"],
body.woocommerce,
body.woocommerce-page {
  font-family: 'Cairo', system-ui, -apple-system, sans-serif !important;
  background-color: var(--bg-canvas) !important;
  background-image: none !important;
  color: var(--text-primary) !important;
}

.hero-section,
.departments-sec,
.mac-studio-sec,
.dept-row-sec,
.kh-page-wrap {
  background-color: var(--bg-canvas) !important;
  color: var(--text-primary) !important;
}

html[data-theme="light"] .logo-for-dark { display: none !important; }
html[data-theme="light"] .logo-for-light { display: block !important; }
html[data-theme="cinema"] .logo-for-light { display: none !important; }
html[data-theme="cinema"] .logo-for-dark { display: block !important; }

a { text-decoration: none !important; }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cairo', sans-serif !important;
  color: var(--text-primary);
}
.hero-copy h1 { color: var(--text-primary) !important; }
.hero-copy h1 span { color: var(--brand-amber) !important; }
.hero-copy p { color: var(--text-secondary) !important; }
.sec-header h2, .dept-row-head h2, .photo-cat-info h3 { color: var(--text-primary) !important; }
.sec-header p, .photo-cat-info p { color: var(--text-secondary) !important; }

/* =========================================================================
   4-COLUMN LUXURY PRODUCT CARDS (HOMEPAGE, ARCHIVES, SEARCH & RELATED)
   ========================================================================= */
.prod-grid-4 {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 22px !important;
  width: 100% !important;
}
@media (max-width: 1080px) {
  .prod-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 640px) {
  .prod-grid-4 { grid-template-columns: 1fr !important; }
}

.lux-prod-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-line) !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: var(--shadow-soft) !important;
  margin: 0 !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}
.lux-prod-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--shadow-hover) !important;
  border-color: var(--brand-amber) !important;
}
.lp-media {
  display: block !important;
  position: relative !important;
  aspect-ratio: 1 / 1 !important;
  width: 100% !important;
  background: #18181B !important;
  overflow: hidden !important;
}
.lp-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 !important;
}
.lp-title {
  font-size: 15.5px !important;
  font-weight: 800 !important;
  line-height: 1.45 !important;
  margin: 0 0 10px 0 !important;
  min-height: 45px !important;
  color: var(--text-primary) !important;
}
a.lp-add-btn, button.lp-add-btn, .lux-prod-card a.button.lp-add-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #141416 !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 11px !important;
  padding: 10px 12px !important;
  font-weight: 800 !important;
  font-size: 13.5px !important;
  line-height: 1.3 !important;
  cursor: pointer !important;
  margin: 0 !important;
  width: 100% !important;
  text-align: center !important;
}
html[data-theme="cinema"] a.lp-add-btn,
html[data-theme="cinema"] button.lp-add-btn,
html[data-theme="cinema"] .lux-prod-card a.button.lp-add-btn {
  background: var(--brand-amber) !important;
  color: #FFFFFF !important;
}
a.lp-add-btn:hover, button.lp-add-btn:hover, .lux-prod-card a.button.lp-add-btn:hover {
  background: var(--brand-amber) !important;
  color: #FFFFFF !important;
}
a.lp-add-btn.added::after { content: ' ✓'; }
.lp-btns .added_to_cart { display: none !important; }

a.lp-wa-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(22, 163, 74, 0.12) !important;
  border: 1px solid var(--whatsapp) !important;
  color: var(--whatsapp) !important;
  border-radius: 11px !important;
  padding: 10px 13px !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  white-space: nowrap !important;
}
a.lp-wa-btn:hover {
  background: var(--whatsapp) !important;
  color: #FFFFFF !important;
}

/* =========================================================================
   INNER PAGES: LUXURY ARCHIVE HERO, TOOLBAR, BREADCRUMBS & EDITORIAL PROSE
   ========================================================================= */
.kh-page-wrap {
  padding: 36px 0 76px;
  min-height: 65vh;
}
.kh-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.kh-breadcrumbs a { color: var(--text-secondary) !important; }
.kh-breadcrumbs a:hover { color: var(--brand-amber) !important; }

/* Category & Shop Split Hero Card */
.kh-archive-hero {
  background: #141416;
  color: #F5F5F4;
  border-radius: 26px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  margin-bottom: 28px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255,255,255,0.08);
}
.kh-archive-hero-copy {
  padding: 40px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.kh-archive-hero-copy .kh-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  background: rgba(240, 123, 34, 0.18);
  color: #FDBA74;
  border: 1px solid rgba(240, 123, 34, 0.35);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
}
.kh-archive-hero-copy h1 {
  color: #FFFFFF !important;
  font-size: clamp(24px, 3vw, 38px) !important;
  font-weight: 900 !important;
  line-height: 1.3 !important;
  margin-bottom: 12px !important;
}
.kh-archive-hero-copy p {
  color: #D1CFCA !important;
  font-size: 15px !important;
  line-height: 1.8 !important;
  margin: 0 !important;
}
.kh-archive-hero-media {
  position: relative;
  min-height: 250px;
  background: #0E0E10;
}
.kh-archive-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Department Filter Tabs & Sort Toolbar */
.kh-archive-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: 18px;
  padding: 14px 18px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-soft);
}
.kh-dept-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.kh-dept-tab {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-secondary) !important;
  background: var(--bg-subtle);
  border: 1px solid transparent;
  transition: all 0.2s;
}
.kh-dept-tab:hover {
  border-color: var(--brand-amber);
  color: var(--brand-amber) !important;
}
.kh-dept-tab.active {
  background: #141416;
  color: #FFFFFF !important;
}
html[data-theme="cinema"] .kh-dept-tab.active {
  background: var(--brand-amber);
  color: #FFFFFF !important;
}
.kh-sort-form select {
  background: var(--bg-subtle) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-strong) !important;
  padding: 8px 14px !important;
  border-radius: 11px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  outline: none !important;
}

/* =========================================================================
   SINGLE PRODUCT LUXURY 2-COLUMN BUY STAGE
   ========================================================================= */
.kh-single-stage {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: 26px;
  padding: 32px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 32px;
  align-items: start;
}
.kh-single-poster-box {
  background: #141416;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  position: relative;
  border: 1px solid rgba(255,255,255,0.08);
}
.kh-single-poster-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.kh-single-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.kh-single-thumbs img {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid var(--border-line);
}
.kh-single-thumbs img:hover { border-color: var(--brand-amber); }

.kh-single-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.kh-trust-mini {
  background: var(--bg-subtle);
  border: 1px solid var(--border-line);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-primary);
}

.kh-single-buybox .kh-cat-pill {
  display: inline-block;
  background: var(--pill-bg);
  color: var(--brand-amber);
  font-size: 12.5px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.kh-single-buybox h1 {
  font-size: clamp(22px, 2.8vw, 34px) !important;
  font-weight: 900 !important;
  line-height: 1.32 !important;
  color: var(--text-primary) !important;
  margin-bottom: 12px !important;
}
.kh-single-rating-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 13.5px;
}
.kh-stock-pill {
  color: var(--whatsapp);
  font-weight: 800;
  background: rgba(22, 163, 74, 0.12);
  padding: 3px 12px;
  border-radius: 999px;
}
.kh-single-price-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-line);
  border-radius: 18px;
  padding: 18px 22px;
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.kh-single-price-now {
  font-size: 30px;
  font-weight: 900;
  color: var(--brand-amber);
}
.kh-single-price-old {
  font-size: 16px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-right: 10px;
}
.kh-single-perks {
  list-style: none !important;
  margin: 0 0 20px 0 !important;
  padding: 0 !important;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.kh-single-perks li {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-secondary) !important;
  display: flex;
  align-items: center;
  gap: 7px;
}
.kh-single-mac-box {
  background: var(--bg-subtle);
  border: 1px dashed var(--border-strong);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 18px;
}
.kh-single-mac-box label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary) !important;
  margin-bottom: 8px;
}
.kh-single-mac-box input {
  width: 100%;
  background: var(--bg-card) !important;
  border: 1px solid var(--border-strong) !important;
  color: var(--text-primary) !important;
  padding: 11px 14px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 700;
  outline: none;
}
.kh-single-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}
.kh-single-actions form.cart {
  display: flex !important;
  gap: 10px !important;
  margin: 0 !important;
}
.kh-single-actions form.cart .quantity input.qty {
  width: 72px !important;
  height: 50px !important;
  text-align: center !important;
  font-weight: 900 !important;
  border-radius: 13px !important;
  background: var(--bg-subtle) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-strong) !important;
}
.kh-single-actions form.cart .single_add_to_cart_button {
  flex: 1 !important;
  height: 50px !important;
  font-size: 15.5px !important;
  font-weight: 900 !important;
  border-radius: 13px !important;
  background: #141416 !important;
  color: #FFFFFF !important;
  border: none !important;
  cursor: pointer !important;
}
html[data-theme="cinema"] .kh-single-actions form.cart .single_add_to_cart_button {
  background: var(--brand-amber) !important;
}
.kh-single-wa-cta {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 14px 22px !important;
  border-radius: 14px !important;
  background: #16A34A !important;
  color: #FFFFFF !important;
  font-size: 15.5px !important;
  font-weight: 900 !important;
  box-shadow: 0 12px 26px rgba(22, 163, 74, 0.25) !important;
  transition: transform 0.2s, background 0.2s !important;
}
.kh-single-wa-cta:hover {
  background: #15803D !important;
  transform: translateY(-2px) !important;
}
.kh-pay-methods-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border-line);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
}
.kh-pay-methods-bar span {
  background: var(--chip-bg);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 8px;
}

/* =========================================================================
   UNIFIED LUXURY EDITORIAL PROSE (PRODUCT DETAILS, CATEGORY SEO & POLICIES)
   ========================================================================= */
.kh-card-surface {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-line) !important;
  border-radius: 24px !important;
  padding: 34px !important;
  box-shadow: var(--shadow-soft) !important;
  margin-bottom: 32px !important;
  color: var(--text-primary) !important;
}
.kh-editorial-prose {
  color: var(--text-secondary) !important;
  font-size: 15.5px !important;
  line-height: 1.9 !important;
}
.kh-editorial-prose * {
  font-family: 'Cairo', sans-serif !important;
  max-width: 100%;
}
.kh-editorial-prose h1,
.kh-editorial-prose h2 {
  color: var(--text-primary) !important;
  font-size: clamp(20px, 2.2vw, 26px) !important;
  font-weight: 900 !important;
  margin: 26px 0 12px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid var(--border-line) !important;
}
.kh-editorial-prose h2:first-child { margin-top: 0 !important; }
.kh-editorial-prose h3,
.kh-editorial-prose h4 {
  color: var(--brand-amber) !important;
  font-size: 18.5px !important;
  font-weight: 800 !important;
  margin: 20px 0 10px !important;
}
.kh-editorial-prose p,
.kh-editorial-prose li,
.kh-editorial-prose div {
  color: var(--text-secondary) !important;
}
.kh-editorial-prose strong,
.kh-editorial-prose b {
  color: var(--text-primary) !important;
  font-weight: 800 !important;
}
.kh-editorial-prose ul,
.kh-editorial-prose ol {
  padding-right: 22px !important;
  margin: 12px 0 18px !important;
}
.kh-editorial-prose li { margin-bottom: 8px !important; }
.kh-editorial-prose a {
  color: var(--brand-amber) !important;
  font-weight: 800 !important;
  text-decoration: underline !important;
}
.kh-editorial-prose img {
  border-radius: 16px !important;
  height: auto !important;
  margin: 16px auto !important;
  display: block !important;
}
.kh-editorial-prose table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 18px 0 !important;
  border: 1px solid var(--border-line) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}
.kh-editorial-prose th,
.kh-editorial-prose td {
  padding: 12px 14px !important;
  border: 1px solid var(--border-line) !important;
  color: var(--text-primary) !important;
  background: var(--bg-subtle) !important;
  text-align: right !important;
}
.kh-editorial-prose hr {
  border: none !important;
  border-top: 1px solid var(--border-line) !important;
  margin: 24px 0 !important;
}

/* =========================================================================
   CART, CHECKOUT & MY ACCOUNT LUXURY STYLING (LIGHT & CINEMA MODES!)
   ========================================================================= */
.kh-page-header-bar {
  background: #141416;
  color: #FFFFFF;
  border-radius: 24px;
  padding: 32px 36px;
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  border: 1px solid rgba(255,255,255,0.08);
}
.kh-page-header-bar h1 {
  color: #FFFFFF !important;
  font-size: clamp(22px, 2.6vw, 32px) !important;
  font-weight: 900 !important;
  margin: 4px 0 0 !important;
}
.kh-steps-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.kh-step-pill {
  background: rgba(255,255,255,0.08);
  color: #C7C5C0;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
}
.kh-step-pill.active {
  background: var(--brand-amber);
  color: #FFFFFF;
}

.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-error {
  background: var(--bg-subtle) !important;
  color: var(--text-primary) !important;
  border-top: 3px solid var(--brand-amber) !important;
  border-radius: 14px !important;
  padding: 16px 20px !important;
  margin-bottom: 20px !important;
}
.woocommerce table.shop_table {
  border: 1px solid var(--border-line) !important;
  border-radius: 16px !important;
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
  overflow: hidden !important;
}
.woocommerce table.shop_table th {
  background: var(--bg-subtle) !important;
  color: var(--text-primary) !important;
  font-weight: 800 !important;
  padding: 14px 16px !important;
  border-color: var(--border-line) !important;
}
.woocommerce table.shop_table td {
  color: var(--text-primary) !important;
  padding: 14px 16px !important;
  border-color: var(--border-line) !important;
}
.woocommerce .cart-collaterals .cart_totals,
.woocommerce-page .cart-collaterals .cart_totals {
  background: var(--bg-subtle) !important;
  border: 1px solid var(--border-line) !important;
  border-radius: 18px !important;
  padding: 24px !important;
}
.woocommerce .cart-collaterals .cart_totals h2 {
  color: var(--text-primary) !important;
  font-size: 20px !important;
  margin-bottom: 14px !important;
}
#add_payment_method #payment,
.woocommerce-cart #payment,
.woocommerce-checkout #payment {
  background: var(--bg-subtle) !important;
  border: 1px solid var(--border-line) !important;
  border-radius: 18px !important;
  color: var(--text-primary) !important;
}
#add_payment_method #payment div.payment_box,
.woocommerce-cart #payment div.payment_box,
.woocommerce-checkout #payment div.payment_box {
  background: var(--bg-card) !important;
  color: var(--text-secondary) !important;
  border: 1px solid var(--border-line) !important;
  border-radius: 12px !important;
}
#add_payment_method #payment div.payment_box::before,
.woocommerce-cart #payment div.payment_box::before,
.woocommerce-checkout #payment div.payment_box::before {
  display: none !important;
}

.woocommerce form .form-row label {
  color: var(--text-primary) !important;
  font-weight: 800 !important;
  margin-bottom: 6px !important;
}
.woocommerce input.input-text,
.woocommerce textarea,
.woocommerce select {
  background: var(--bg-subtle) !important;
  border: 1px solid var(--border-strong) !important;
  color: var(--text-primary) !important;
  padding: 12px 15px !important;
  border-radius: 12px !important;
  font-size: 14.5px !important;
}
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  background: #141416 !important;
  color: #FFFFFF !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
  padding: 12px 22px !important;
  border: none !important;
}
html[data-theme="cinema"] .woocommerce a.button,
html[data-theme="cinema"] .woocommerce button.button,
html[data-theme="cinema"] .woocommerce a.button.alt,
html[data-theme="cinema"] .woocommerce button.button.alt {
  background: var(--brand-amber) !important;
  color: #FFFFFF !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: var(--brand-amber) !important;
  color: #FFFFFF !important;
}

/* My Account Login & Dashboard */
#customer_login {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)) !important;
  gap: 28px !important;
}
#customer_login .u-column1,
#customer_login .u-column2 {
  width: 100% !important;
  float: none !important;
  background: var(--bg-subtle) !important;
  border: 1px solid var(--border-line) !important;
  border-radius: 20px !important;
  padding: 26px !important;
}
.woocommerce form.login,
.woocommerce form.register {
  border: none !important;
  padding: 0 !important;
  margin: 14px 0 0 !important;
}
.woocommerce-MyAccount-navigation ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 11px 16px;
  border-radius: 12px;
  background: var(--bg-subtle);
  color: var(--text-primary) !important;
  font-weight: 800;
  border: 1px solid var(--border-line);
}
.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover {
  background: var(--brand-amber);
  color: #FFFFFF !important;
  border-color: var(--brand-amber);
}

/* Static Brand Pages Grids (About & Contact) */
.kh-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}
.kh-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.kh-feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}
.kh-feature-box h3 {
  font-size: 17.5px !important;
  font-weight: 900 !important;
  margin: 10px 0 8px !important;
  color: var(--text-primary) !important;
}
.kh-feature-box p {
  font-size: 14px !important;
  color: var(--text-secondary) !important;
  margin: 0 !important;
}

.lux-footer ul { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.lux-footer a { color: inherit !important; }
.lux-footer a:hover { color: #FDBA74 !important; }

@media (max-width: 960px) {
  .kh-archive-hero,
  .kh-single-stage,
  .kh-grid-2 { grid-template-columns: 1fr !important; }
  .kh-grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
  .kh-single-perks, .kh-single-trust-strip { grid-template-columns: 1fr !important; }
}
@media (max-width: 600px) {
  .kh-grid-4 { grid-template-columns: 1fr !important; }
  .kh-card-surface, .kh-single-stage { padding: 20px !important; }
}


/* =========================================================================
   v4.1.0 PATCH:
   1) TRUE NATURAL IMAGE PROPORTIONS (ZERO CROPPING IN FILMSTRIP & PRODUCTS)
   2) IRONCLAD MOBILE RESPONSIVE LAYOUT (ZERO HORIZONTAL SWIPE / OVERFLOW)
   ========================================================================= */

/* --- 1. TRUE NATURAL IMAGE PROPORTIONS --- */
/* Filmstrip Moving Screens: show 100% real image aspect ratio + clean bottom caption bar */
.screen-frame-card {
  width: auto !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  background: #141416 !important;
  border: 1px solid var(--border-strong) !important;
}
.screen-frame-media {
  height: 205px;
  width: auto;
  background: #0F0F12;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.screen-frame-card .screen-frame-media img,
.screen-frame-card > img {
  height: 205px !important;
  width: auto !important;
  max-width: none !important;
  object-fit: contain !important;
  display: block !important;
}
.screen-frame-caption {
  position: static !important;
  inset: auto !important;
  background: #141416 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 10px 14px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 2px !important;
  min-width: 195px;
}
.screen-frame-caption span {
  font-size: 10.5px !important;
  color: #FDBA74 !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
}
.screen-frame-caption strong {
  font-size: 13.5px !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
}

/* All Store Product Cards (.lux-prod-card): 1:1 true square proportion (0% crop on all 1254x1254 / 1080x1080 posters!) */
.lp-media {
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  background: #111114 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.lp-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

/* Single Product Gallery: true full uncropped poster */
.kh-single-gallery {
  background: #111114 !important;
  padding: 14px !important;
}
.kh-single-gallery img {
  width: 100% !important;
  height: auto !important;
  max-height: 520px !important;
  aspect-ratio: 1 / 1;
  object-fit: contain !important;
}

/* Department Lifestyle Cards: true 4:3 natural proportion */
.photo-cat-media {
  aspect-ratio: 4 / 3;
}
.photo-cat-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* --- 2. IRONCLAD VIEWPORT LOCK & ZERO MOBILE OVERFLOW --- */
html,
body {
  max-width: 100% !important;
  width: 100% !important;
  overflow-x: clip !important;
}
@supports not (overflow-x: clip) {
  html,
  body {
    overflow-x: hidden !important;
  }
}

.top-bar,
.site-header,
.cats-subnav,
.hero-section,
.moving-gallery-sec,
.departments-sec,
.mac-studio-sec,
.dept-row-sec,
.reviews-sec,
.kh-page-wrap,
.lux-footer {
  max-width: 100% !important;
  overflow-x: clip;
}
.site-header {
  /* Keep sticky header working across all mobile browsers */
  overflow-x: visible;
}
.site-header > .container,
.cats-subnav {
  max-width: 100% !important;
  overflow-x: clip;
}

/* Prevent flex/grid children from ever forcing track expansion past 100vw */
.header-main,
.hero-grid,
.photo-cats-grid,
.prod-grid-4,
.mac-studio-card,
.reviews-grid-3,
.footer-cols,
.kh-single-stage,
.kh-archive-hero,
.kh-grid-2,
.kh-grid-4 {
  min-width: 0 !important;
}
.header-main > *,
.hero-grid > *,
.photo-cats-grid > *,
.prod-grid-4 > *,
.mac-studio-card > *,
.reviews-grid-3 > *,
.footer-cols > *,
.kh-single-stage > *,
.kh-archive-hero > * {
  min-width: 0 !important;
  max-width: 100% !important;
}

/* Search box intrinsic width fix (critical for RTL mobile!) */
.search-box {
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
.search-box input[type="text"],
.search-box input[type="search"],
.search-box input {
  min-width: 0 !important;
  width: 100% !important;
  flex: 1 1 0% !important;
}
.search-box select {
  flex-shrink: 0;
  max-width: 135px;
}
.search-box button {
  flex-shrink: 0;
}

/* Tablet & Mobile (<= 1080px) */
@media (max-width: 1080px) {
  .header-main {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 12px 0 !important;
  }
  .brand-logo {
    display: flex;
    justify-content: center;
  }
  .header-actions {
    width: 100% !important;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px !important;
  }
  .hero-grid,
  .photo-cats-grid,
  .mac-studio-card,
  .kh-single-stage,
  .kh-archive-hero {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .prod-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .floating-badge-card {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin-top: 12px !important;
    width: 100% !important;
    animation: none !important;
  }
  .tv-bezel {
    transform: none !important;
    animation: none !important;
  }
}

/* Smartphones (<= 640px — Opera / Chrome / Safari Mobile) */
@media (max-width: 640px) {
  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-right: 14px !important;
    padding-left: 14px !important;
  }
  .kh-top-promo {
    display: none !important;
  }
  .top-bar-inner {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 4px !important;
    font-size: 11.5px !important;
  }
  .brand-logo img {
    height: 36px !important;
    max-width: 200px !important;
  }
  /* Hide redundant department select inside search pill on narrow phones (cats bar is right below!) */
  .search-box select {
    display: none !important;
  }
  .search-box {
    padding: 3px 4px !important;
  }
  .search-box input {
    padding: 7px 10px !important;
    font-size: 12.5px !important;
  }
  .search-box button {
    padding: 8px 15px !important;
    font-size: 12.5px !important;
  }
  /* Fit all 3 header action buttons cleanly on ONE row without overflowing 360px screen */
  .header-actions {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    gap: 6px !important;
  }
  .header-actions .theme-toggle-btn,
  .header-actions .cart-pill-btn {
    padding: 8px 10px !important;
    font-size: 11.5px !important;
    gap: 5px !important;
    flex: 1 1 auto;
    justify-content: center;
    white-space: nowrap;
  }
  .kh-cart-tot-txt {
    display: none !important;
  }
  .cats-subnav-inner {
    padding: 7px 0 !important;
    gap: 6px !important;
  }
  .subnav-item {
    padding: 5px 12px !important;
    font-size: 12px !important;
  }

  /* Hero on Mobile */
  .hero-section {
    padding: 24px 0 28px !important;
  }
  .eyebrow-pill {
    font-size: 11px !important;
    padding: 5px 11px !important;
    white-space: normal !important;
    line-height: 1.45 !important;
  }
  .hero-copy h1 {
    font-size: 25px !important;
    line-height: 1.32 !important;
  }
  .hero-copy p {
    font-size: 14.5px !important;
    margin-bottom: 18px !important;
  }
  .hero-btns {
    flex-direction: column !important;
    width: 100% !important;
  }
  .hero-btns a {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }
  .hero-kpis {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .kpi-item strong {
    font-size: 17px !important;
  }
  .kpi-item span {
    font-size: 11px !important;
  }
  .tv-glass-screen {
    height: 230px !important;
  }
  .channel-dock {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }
  .ch-btn {
    font-size: 11.5px !important;
    padding: 9px 6px !important;
  }

  /* Moving Screens Filmstrip on Mobile */
  .screen-frame-media,
  .screen-frame-card .screen-frame-media img,
  .screen-frame-card > img {
    height: 155px !important;
  }
  .screen-frame-caption {
    padding: 8px 11px !important;
    min-width: 155px;
  }
  .screen-frame-caption strong {
    font-size: 12px !important;
  }

  /* Cards, Departments & WooCommerce on Mobile */
  .photo-cat-card,
  .prod-grid-4,
  .footer-cols,
  .reviews-grid-3,
  .kh-grid-2,
  .kh-grid-4 {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .dept-row-head {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }
  .mac-studio-card {
    padding: 22px 16px !important;
    border-radius: 20px !important;
  }
  .mac-form-panel {
    padding: 16px !important;
  }
  .kh-single-stage,
  .kh-card-surface,
  .kh-archive-hero-copy {
    padding: 18px 15px !important;
  }
  .kh-archive-toolbar form.woocommerce-ordering select {
    width: 100% !important;
    max-width: 100% !important;
  }
  .woocommerce table.shop_table {
    display: block;
    width: 100% !important;
    overflow-x: auto;
  }
  .wa-float {
    bottom: 16px !important;
    left: 14px !important;
    padding: 10px 14px !important;
    font-size: 12.5px !important;
  }
}


/* =========================================================================
   v5.0.0 MASTER PATCH:
   1) DESKTOP DEPARTMENT SHOWCASE CARDS FIX (ZERO OVERLAP - image-8.png)
   2) ARCHIVE HERO, SINGLE POSTER & MY-ACCOUNT BULLETPROOF GRIDS
   3) LUXURY INTERACTIVE SEO FAQ ACCORDION (.kh-faq-sec)
   ========================================================================= */

/* 1. Fix Desktop .photo-cat-card image overlap (image-8.png):
      Full-width cinematic 16:9.5 photo on top + spacious Arabic copy below! */
.photo-cats-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 28px !important;
  align-items: stretch !important;
}
.photo-cat-card {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  overflow: hidden !important;
  border-radius: 24px !important;
  height: 100% !important;
}
.photo-cat-media {
  position: relative !important;
  width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  aspect-ratio: 16 / 9.5 !important;
  overflow: hidden !important;
  background: #141416 !important;
  flex-shrink: 0 !important;
}
.photo-cat-media img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
.photo-cat-info {
  padding: 26px 28px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  flex: 1 1 auto !important;
  gap: 18px !important;
  background: var(--bg-card) !important;
  position: relative !important;
  z-index: 2 !important;
}
.cat-explore-btn {
  width: 100% !important;
  justify-content: space-between !important;
}
@media (max-width: 860px) {
  .photo-cats-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 20px !important;
  }
  .photo-cat-info {
    padding: 20px 18px !important;
  }
}

/* 2. Bulletproof Archive Hero, Single Product Poster, Floating Badge & Login Grid */
.kh-archive-hero {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
}
.kh-archive-hero-media {
  overflow: hidden !important;
  min-height: 240px;
}
.kh-archive-hero-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
@media (max-width: 960px) {
  .kh-archive-hero {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .kh-archive-hero-media {
    min-height: 0 !important;
    aspect-ratio: 16 / 9 !important;
  }
}

.kh-single-poster-box {
  background: #111114 !important;
  aspect-ratio: 1 / 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}
.kh-single-poster-box img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
}

.floating-badge-card {
  left: 14px;
}

#customer_login {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)) !important;
}

/* 3. Luxury Interactive SEO FAQ Accordion (.kh-faq-sec) */
.kh-faq-sec {
  padding: 64px 0 28px;
}
.kh-faq-list {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.kh-faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.kh-faq-item[open] {
  border-color: var(--brand-amber);
  box-shadow: var(--shadow-hover);
}
.kh-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-size: 16.5px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  user-select: none;
}
.kh-faq-item summary::-webkit-details-marker {
  display: none;
}
.kh-faq-item summary::after {
  content: '+';
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--brand-amber);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  flex-shrink: 0;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.kh-faq-item[open] summary::after {
  content: '−';
  background: var(--brand-amber);
  color: #FFFFFF;
}
.kh-faq-ans {
  padding: 0 24px 22px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.9;
  border-top: 1px solid var(--border-line);
  padding-top: 16px;
}
.kh-faq-ans strong {
  color: var(--text-primary);
}
@media (max-width: 640px) {
  .kh-faq-item summary {
    padding: 16px 16px;
    font-size: 14.5px;
  }
  .kh-faq-ans {
    padding: 14px 16px 18px;
    font-size: 14px;
  }
}


/* =========================================================================
   v5.1.0 RICH EDITOR CONTENT PRESERVATION (.kh-rich-surface & .kh-rich-content)
   Preserves 100% of custom inline style="...", <style>, Gutenberg & Elementor
   designs (pricing cards, circles, gold buttons, dark/gradient landing pages)
   while keeping responsive mobile image bounds!
   ========================================================================= */
.kh-rich-surface {
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 34px;
  border: 1px solid var(--border-line);
  box-shadow: var(--shadow-soft);
  background: var(--bg-card);
}
.kh-rich-content {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  line-height: 1.85;
}
.kh-short-desc-wrap {
  padding: 22px 24px;
  border-bottom: 1px solid var(--border-line);
}
/* Responsive media guard ONLY — zero !important overrides on user colors, backgrounds, borders, buttons, or grids! */
.kh-rich-content img,
.kh-rich-content figure,
.kh-rich-content video,
.kh-rich-content iframe {
  max-width: 100% !important;
  height: auto !important;
}
