    :root {
      --primary: #e96479;
      --secondary: #f8c291;
      --accent: #f6b93b;
      --light: #fff7f2;
      --dark: #2c2c2c;
      --text: #3e3e3e;
      --white: #ffffff;
      --bg: #fff7f2;
      --shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
      --shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.22);
      --transition: 0.32s;
      --radius: 16px;
      --header-height: 80px;
      --header-bg: rgba(255, 255, 255, 0.97);
      --footer-bg: #2c1a14;
      --footer-text: #f8d7c4;
      --danger: #ff4d6d;
      --warning: #f6b93b;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: "Poppins", sans-serif;
      background: var(--bg);
      color: var(--text);
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
      line-height: 1.6;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    main {
      flex: 1;
      padding: 40px 0;
    }

    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 18px;
    }

    /* Header */
    header {
      position: sticky;
      top: 0;
      height: var(--header-height);
      background: var(--header-bg);
      backdrop-filter: blur(12px);
      box-shadow: var(--shadow);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 2rem;
      z-index: 1000;
      transition: background var(--transition);
    }

    .header-scrolled {
      background: rgba(255, 255, 255, 0.95);
      box-shadow: 0 6px 28px rgba(0, 0, 0, 0.12);
      backdrop-filter: blur(16px);
      border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    .header-content {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      position: relative;
      padding: 0 24px;
    }

    /* Logo */
    .logo {
      display: flex;
      align-items: center;
      color: var(--primary);
      text-decoration: none;
      transition: transform 0.3s ease, color 0.3s ease;
      z-index: 1001;
    }

    .logo:hover {
      transform: scale(1.05);
      color: var(--accent);
    }

    .logo-icon {
      font-size: 34px;
      color: var(--accent);
      margin-right: 12px;
      transition: transform 0.5s ease, color 0.3s ease;
    }

    .logo:hover .logo-icon {
      transform: rotate(15deg) scale(1.1);
    }

    .logo-text {
      font-family: "Playfair Display", serif;
      font-size: 28px;
      font-weight: 700;
      letter-spacing: 0.5px;
      transition: color 0.3s ease;
    }

    .logo:hover .logo-text {
      color: var(--accent);
    }

    /* Navigation */
    nav {
      display: flex;
      align-items: center;
      gap: 32px;
    }

    nav ul {
      display: flex;
      gap: 30px;
      list-style: none;
      margin: 0;
      padding: 0;
    }

    nav a {
      color: var(--text);
      text-decoration: none;
      padding: 10px 4px;
      position: relative;
      font-weight: 500;
      font-size: 16px;
      transition: color 0.3s ease, transform 0.25s ease;
    }

    nav a::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -4px;
      height: 2px;
      width: 0;
      background: var(--accent);
      border-radius: 2px;
      transition: width 0.35s ease;
    }

    nav a:hover {
      color: var(--primary);
      transform: translateY(-2px);
    }

    nav a:hover::after {
      width: 100%;
    }

    nav a.active {
      color: var(--primary);
      font-weight: 600;
    }

    nav a.active::after {
      width: 100%;
    }

    /* Mobile menu button */
    .mobile-menu-btn {
      position: relative;
      width: 30px;
      height: 24px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      border: none;
      background: none;
      cursor: pointer;
      z-index: 1001;
      padding: 0;
      gap: 7px;
      color: var(--text-color, #333);
      display: none;
    }

    .bar {
      display: block;
      height: 3px;
      width: 100%;
      background-color: var(--text-color, #333);
      border-radius: 3px;
      transition: all 0.4s ease;
    }

    .mobile-menu-btn.active .top {
      transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active .middle {
      opacity: 0;
    }

    .mobile-menu-btn.active .bottom {
      transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Auth buttons */
    .auth-buttons {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 16px;
    }

    .btn {
      padding: 12px 28px;
      border-radius: 40px;
      border: 0;
      cursor: pointer;
      font-weight: 600;
      font-size: 15px;
      letter-spacing: 0.4px;
      text-transform: uppercase;
      transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      position: relative;
      overflow: hidden;
    }

    .btn:active {
      transform: scale(0.97);
    }

    .btn-login {
      background: transparent;
      border: 2px solid var(--primary);
      color: var(--primary);
      box-shadow: inset 0 0 0 0 var(--primary);
      transition: all 0.4s ease;
    }

    .btn-login:hover {
      background: var(--primary);
      color: var(--white);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), 0 0 15px rgba(255, 255, 255, 0.2) inset;
      transform: translateY(-2px);
    }

    .btn::after {
      content: '';
      position: absolute;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
      background: rgba(255, 255, 255, 0.1);
      opacity: 0;
      transition: opacity 0.4s, transform 0.4s;
      border-radius: 40px;
    }

    .btn:active::after {
      opacity: 1;
      transform: scale(1.2);
    }

    .btn i {
      transition: transform 0.3s ease;
    }

    .btn:hover i {
      transform: translateX(4px) rotate(10deg);
    }

    /* User menu */
    .user-menu {
      position: relative;
      display: inline-block;
    }

    .btn-user {
      background: transparent;
      border: 2px solid var(--primary);
      color: var(--primary);
      padding: 10px 24px;
      font-weight: 600;
      font-size: 15px;
      border-radius: 40px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
      position: relative;
      overflow: hidden;
    }

    .btn-user:hover {
      background: var(--primary);
      color: var(--white);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12), 0 0 15px rgba(255, 255, 255, 0.1) inset;
    }

    .user-dropdown {
      position: absolute;
      right: 0;
      top: calc(100% + 8px);
      background: var(--white);
      border-radius: 16px;
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
      min-width: 220px;
      padding: 14px 0;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-15px) scale(0.95);
      transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
      z-index: 100;
      border: 1px solid rgba(123, 63, 0, 0.12);
    }

    .user-dropdown.open {
      opacity: 1;
      visibility: visible;
      transform: translateY(0) scale(1);
    }

    .user-dropdown a {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 20px;
      border-radius: 12px;
      text-decoration: none;
      color: var(--text);
      transition: all 0.25s ease;
      font-size: 15px;
      position: relative;
      overflow: hidden;
    }

    .user-dropdown a:hover {
      background: linear-gradient(90deg, rgba(255, 200, 150, 0.1), rgba(210, 105, 30, 0.1));
      color: var(--primary);
      transform: translateX(6px);
      box-shadow: 0 4px 15px rgba(210, 105, 30, 0.2);
    }

    .user-dropdown a i {
      width: 20px;
      text-align: center;
      color: var(--accent);
      transition: transform 0.3s ease;
    }

    .user-dropdown a:hover i {
      transform: translateX(3px) rotate(10deg);
    }

    .btn-user::after {
      content: '';
      position: absolute;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
      background: rgba(255, 255, 255, 0.08);
      opacity: 0;
      transition: opacity 0.4s, transform 0.4s;
      border-radius: 40px;
    }

    .btn-user:active::after {
      opacity: 1;
      transform: scale(1.2);
    }

    /* Cart icon */
    .cart-icon {
      position: relative;
      font-size: 20px;
      color: var(--primary);
      cursor: pointer;
      transition: all 0.3s ease;
      padding: 10px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .cart-icon:hover {
      background: rgba(123, 63, 0, 0.1);
      transform: translateY(-2px);
    }

    .cart-count {
      position: absolute;
      top: -2px;
      right: 2px;
      background: var(--accent);
      color: var(--dark);
      width: 22px;
      height: 22px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      font-weight: 700;
      transition: all 0.3s ease;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .cart-icon:hover .cart-count {
      transform: scale(1.2);
    }

    /* Theme Toggle Button */
    .theme-toggle {
      position: relative;
      background: rgba(255, 255, 255, 0.07);
      /* شفافية أعلى */
      border: 2px solid var(--primary);
      color: var(--primary);
      width: 50px;
      height: 50px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      backdrop-filter: blur(14px);
      /* تأثير زجاجي */
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
      transition: all 0.4s ease-in-out;
      margin-left: 12px;
      overflow: hidden;
      left: auto;
      bottom: auto;
    }

    /* Hover */
    .theme-toggle:hover {
      background: var(--primary);
      color: var(--white);
      transform: rotate(35deg) scale(1.12);
      box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
    }

    /* Active (ضغط) */
    .theme-toggle:active {
      transform: rotate(-15deg) scale(0.92);
      box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.2);
    }

    /* Glow عند الوضع الليلي */
    body.dark .theme-toggle {
      box-shadow: 0 0 15px rgba(255, 223, 70, 0.6),
        0 0 30px rgba(255, 223, 70, 0.3);
      color: #ffdf46;
    }

    /* أيقونة متغيرة */
    .theme-toggle i {
      font-size: 20px;
      transition: transform 0.6s ease, opacity 0.4s ease;
    }

    /* دوران الأيقونة عند التبديل */
    body.dark .theme-toggle i {
      transform: rotate(180deg);
      opacity: 0.9;
    }



    /* Notification wrapper */
    .notification-wrapper {
      position: relative;
      margin-left: 12px;
      display: flex;
      align-items: center;
    }

    .notification-icon {
      position: relative;
      cursor: pointer;
      font-size: 22px;
      color: var(--text-color);
      transition: transform 0.2s ease, color 0.25s ease;
    }

    .notification-icon:hover {
      transform: scale(1.15);
      color: var(--primary);
    }

    .notification-badge {
      position: absolute;
      top: -6px;
      right: -6px;
      min-width: 16px;
      height: 16px;
      padding: 0 5px;
      background: var(--danger, #ff3b30);
      color: #fff;
      font-size: 11px;
      font-weight: bold;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      box-shadow: 0 2px 6px rgba(255, 59, 48, 0.5);
    }

    .notifications-panel {
      position: absolute;
      top: calc(100% + 10px);
      right: 0;
      width: 360px;
      background: rgba(255, 255, 255, 0.95);
      border-radius: 16px;
      box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
      z-index: 1200;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-15px) scale(0.95);
      transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
      border: 1px solid rgba(0, 0, 0, 0.05);
      backdrop-filter: blur(12px);
      overflow: hidden;
    }

    .notifications-panel.open {
      opacity: 1;
      visibility: visible;
      transform: translateY(0) scale(1);
    }

    .notifications-header {
      padding: 14px 16px;
      background: var(--primary, #7b3f00);
      color: #fff;
      font-size: 15px;
      font-weight: 600;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 8px;
    }

    .notifications-header .mark-all-read {
      background: var(--accent, #ffdd57);
      color: var(--dark, #222);
      border: none;
      border-radius: 24px;
      padding: 6px 14px;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    }

    .notifications-header .mark-all-read:hover {
      background: var(--secondary, #f39c12);
      color: #fff;
      transform: translateY(-2px) scale(1.05);
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
    }

    .notifications-list {
      max-height: 360px;
      overflow-y: auto;
      scrollbar-width: thin;
      scrollbar-color: var(--primary, #7b3f00) transparent;
    }

    .notifications-list::-webkit-scrollbar {
      width: 6px;
    }

    .notifications-list::-webkit-scrollbar-thumb {
      background: var(--primary, #7b3f00);
      border-radius: 4px;
    }

    .notifications-list::-webkit-scrollbar-track {
      background: transparent;
    }

    .notification-item {
      padding: 14px 16px;
      border-bottom: 1px solid rgba(0, 0, 0, 0.06);
      font-size: 14px;
      line-height: 1.5;
      cursor: pointer;
      transition: background 0.25s ease;
      display: flex;
      align-items: center;
      gap: 10px;
      border-radius: 8px;
    }

    .notification-item:last-child {
      border-bottom: none;
    }

    .notification-item:hover {
      background: rgba(0, 0, 0, 0.03);
    }

    .notification-item i {
      font-size: 16px;
      color: var(--primary, #7b3f00);
    }

/* 🌙 Dark Mode Styles */
body.dark-mode .notifications-panel {
  background: rgba(30, 30, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
  color: #f1f1f1;
}

body.dark-mode .notifications-header {
  background: var(--primary, #7b3f00);
  color: #fff;
}

body.dark-mode .notifications-header .mark-all-read {
  background: var(--accent, #ffdd57);
  color: #222;
}

body.dark-mode .notifications-header .mark-all-read:hover {
  background: var(--secondary, #f39c12);
  color: #fff;
}

body.dark-mode .notification-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #eaeaea;
}

body.dark-mode .notification-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

body.dark-mode .notification-item i {
  color: var(--accent, #ffdd57);
}

body.dark-mode .notifications-list::-webkit-scrollbar-thumb {
  background: var(--accent, #ffdd57);
}


    /* Responsive styles */
    @media (max-width: 991.98px) {
      .header-content {
        display: grid !important;
        grid-template-columns: auto auto 1fr auto;
        grid-template-areas: "logo menu-btn user-menu auth";
        align-items: center;
        gap: 15px;
        padding: 0 15px !important;
        position: relative;
      }

      .logo {
        grid-area: logo;
        justify-self: start;
      }

      .mobile-menu-btn {
        grid-area: menu-btn;
        display: flex !important;
        justify-self: center;
        margin: 0;
      }

      .user-menu,
      .user-dropdown,
      .cart-icon,
      #userName {
        grid-area: user-menu;
        display: none !important;
        align-items: center;
        gap: 10px;
        justify-self: end;
        min-width: 0;
      }

      #userName {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100px;
        font-size: 14px;
      }

      .auth-buttons {
        grid-area: auth;
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
        justify-self: end;
      }

      .btn-login {
        padding: 8px 14px;
        font-size: 14px;
        min-width: 70px;
      }

      .btn-login i {
        font-size: 12px;
        margin-right: 4px;
      }

      .theme-toggle {
        width: 40px;
        height: 40px;
        margin-left: 6px;
        display: flex !important;
        align-items: center;
        justify-content: center;
      }

      .theme-toggle i {
        font-size: 16px;
      }

      body.is-admin .cart-icon {
        display: none !important;
      }

      nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        z-index: 999;
        flex-direction: column;
        gap: 15px;
      }

      nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
      }

      nav ul {
        flex-direction: column;
        gap: 15px;
        width: 100%;
      }

      nav a {
        padding: 12px 0;
        font-size: 17px;
        display: block;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
      }

      .btn-order {
        margin: 15px 0 0 0;
        width: 100%;
        text-align: center;
      }
    }

    @media (max-width: 700px) {

      .user-menu,
      .user-dropdown,
      .cart-icon,
      #userName {
        display: none !important;
      }
    }

    @media (max-width: 760px) {
      .auth-buttons {
        gap: 6px;
      }

      .btn-login {
        padding: 6px 12px;
        font-size: 12px;
        min-width: 60px;
      }

      .theme-toggle {
        width: 36px;
        height: 36px;
        margin-left: 6px;
      }

      .theme-toggle i {
        font-size: 14px;
      }
    }

    @media (max-width: 480px) {
      .notifications-panel {
        position: fixed;
        top: 70px;
        right: 12px;
        left: 12px;
        width: auto;
        max-height: 75vh;
        border-radius: 16px;
      }
    }

    /* Dark mode styles */
    body.dark-mode header,
    body.dark-mode .header-scrolled {
      background: #181818 !important;
      color: #f3f3f3 !important;
    }

    body.dark-mode nav a {
      color: #f3f3f3 !important;
    }

    body.dark-mode nav a.active,
    body.dark-mode nav a:hover {
      color: #ffe6c7 !important;
    }

    body.dark-mode .mobile-menu-btn .bar {
      background-color: #f3f3f3 !important;
    }

    /* ============================
   🌟 Ultimate Product Page Styles
   ============================ */
    /* ========== PRO MAX ULTIMATE ENHANCEMENTS ========== */

    /* ---------- Enhanced Breadcrumbs with Animation ---------- */
    .breadcrumbs {
      display: flex;
      align-items: center;
      gap: 8px;
      margin: 20px 0;
      font-size: 0.9rem;
      color: #777;
      flex-wrap: wrap;
      position: relative;
    }

    .breadcrumbs::before {
      content: '';
      position: absolute;
      bottom: -5px;
      left: 0;
      width: 0;
      height: 2px;
      background: linear-gradient(90deg, var(--primary), var(--secondary));
      transition: width 0.6s ease;
    }

    .breadcrumbs:hover::before {
      width: 100%;
    }

    .breadcrumbs a {
      color: var(--primary);
      text-decoration: none;
      transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      position: relative;
      padding: 4px 8px;
      border-radius: 4px;
    }

    .breadcrumbs a::after {
      content: '';
      position: absolute;
      bottom: -2px;
      left: 50%;
      width: 0;
      height: 2px;
      background: var(--secondary);
      transition: all 0.3s ease;
      transform: translateX(-50%);
    }

    .breadcrumbs a:hover {
      color: var(--secondary);
      background: rgba(123, 63, 0, 0.05);
      transform: translateY(-1px);
    }

    .breadcrumbs a:hover::after {
      width: 80%;
    }

    .breadcrumbs span {
      color: #999;
      transition: transform 0.3s ease;
    }

    .breadcrumbs:hover span {
      transform: scale(1.1);
    }

    /* ---------- Premium Card with 3D Effects ---------- */
    .card {
      display: flex;
      flex-wrap: wrap;
      gap: 40px;
      border-radius: var(--radius);
      box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.04);
      background: linear-gradient(135deg, var(--white) 0%, #fafafa 100%);
      margin-top: 10px;
      padding: 30px;
      transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
      position: relative;
      overflow: hidden;
    }

    /* .card::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg,
          transparent,
          rgba(255, 255, 255, 0.4),
          transparent);
      transition: left 0.8s ease;
    }

    .card:hover::before {
      left: 100%;
    } */

    .card:hover {
      transform: translateY(-8px) scale(1.002);
      box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 15px 30px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5);
    }

    .card:active {
      transform: translateY(-2px) scale(1.001);
    }

    /* ---------- Luxury Gallery with Parallax ---------- */
    .gallery-container {
      flex: 1;
      min-width: 300px;
      position: relative;
      perspective: 1000px;
    }

    .gallery {
      height: 500px;
      background: linear-gradient(135deg, var(--light) 0%, #e8e8e8 100%);
      border-radius: var(--radius);
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      cursor: zoom-in;
      transform-style: preserve-3d;
      transition: transform 0.4s ease;
    }

    .gallery:hover {
      transform: rotateX(1deg) rotateY(1deg);
    }

    .gallery::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.03) 100%);
      pointer-events: none;
    }

    .gallery img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: all 0.8s cubic-bezier(0.23, 1, 0.320, 1);
      user-select: none;
      pointer-events: none;
      transform: translateZ(20px);
    }

    .gallery:hover img {
      transform: scale(1.08) rotate(0.5deg) translateZ(25px);
    }

    /* Enhanced Thumbnails with Scroll Animation */
    .thumbnails {
      display: flex;
      gap: 12px;
      margin-top: 20px;
      overflow-x: auto;
      padding: 15px 10px;
      scrollbar-width: none;
      position: relative;
    }

    .thumbnails::-webkit-scrollbar {
      display: none;
    }

    .thumbnails::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 1px;
      background: linear-gradient(90deg,
          transparent,
          rgba(0, 0, 0, 0.1),
          transparent);
    }

    .thumbnail {
      flex: 0 0 auto;
      width: 80px;
      height: 80px;
      border-radius: 12px;
      overflow: hidden;
      cursor: pointer;
      border: 3px solid transparent;
      transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      position: relative;
      transform-style: preserve-3d;
    }

    .thumbnail::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .thumbnail:hover {
      border-color: var(--primary);
      transform: scale(1.15) translateY(-5px) rotateY(5deg);
      z-index: 2;
      box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    }

    .thumbnail:hover::before {
      opacity: 1;
    }

    .thumbnail.active {
      border-color: var(--primary);
      transform: scale(1.1) translateY(-3px);
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    }

    .thumbnail img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.4s ease;
    }

    .thumbnail:hover img {
      transform: scale(1.1);
    }

    /* ---------- Premium Meta Section ---------- */
    .meta {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      position: relative;
    }

    .title {
      font-family: "Playfair Display", serif;
      font-size: 2.4rem;
      font-weight: 700;
      margin-bottom: 20px;
      color: var(--primary);
      line-height: 1.2;
      position: relative;
      background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      animation: titleGlow 3s ease-in-out infinite alternate;
    }

    @keyframes titleGlow {
      0% {
        text-shadow: 0 0 20px rgba(123, 63, 0, 0.3);
      }

      100% {
        text-shadow: 0 0 30px rgba(210, 105, 30, 0.5);
      }
    }

    /* ---------- Luxury Pricing with Counter Animation ---------- */
    .price-container {
      display: flex;
      align-items: center;
      gap: 15px;
      margin-bottom: 25px;
      flex-wrap: wrap;
      position: relative;
    }

    .price {
      color: var(--primary);
      font-weight: 800;
      font-size: 2.2rem;
      position: relative;
      animation: pricePulse 2s ease-in-out infinite;
    }

    @keyframes pricePulse {

      0%,
      100% {
        transform: scale(1);
      }

      50% {
        transform: scale(1.02);
      }
    }

    .original-price {
      color: #888;
      text-decoration: line-through;
      font-size: 1.3rem;
      position: relative;
    }

    .original-price::after {
      content: '';
      position: absolute;
      top: 50%;
      left: -5%;
      width: 110%;
      height: 2px;
      background: linear-gradient(90deg, transparent, #888, transparent);
      transform: translateY(-50%);
    }

    .sale-badge {
      background: linear-gradient(135deg, var(--accent) 0%, #ff6b35 100%);
      color: white;
      padding: 6px 16px;
      border-radius: 25px;
      font-size: 0.95rem;
      font-weight: 600;
      animation: saleGlow 2s ease-in-out infinite;
      position: relative;
      overflow: hidden;
    }

    .sale-badge::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
      transform: rotate(45deg);
      animation: shine 3s infinite;
    }

    @keyframes saleGlow {

      0%,
      100% {
        box-shadow: 0 0 0 0 rgba(210, 105, 30, 0.6);
        transform: translateY(0);
      }

      50% {
        box-shadow: 0 0 20px 5px rgba(210, 105, 30, 0.4);
        transform: translateY(-2px);
      }
    }

    @keyframes shine {
      0% {
        transform: translateX(-100%) rotate(45deg);
      }

      100% {
        transform: translateX(100%) rotate(45deg);
      }
    }

    /* ---------- Enhanced Stock Info ---------- */
    .stock-info {
      margin-top: 15px;
      font-weight: 500;
      color: #555;
      position: relative;
    }

    .stock-bar {
      height: 4px;
      background: #eee;
      border-radius: 2px;
      overflow: hidden;
      margin-top: 8px;
      position: relative;
    }

    .stock-progress {
      height: 100%;
      background: linear-gradient(90deg, #28a745, #2ecc71);
      border-radius: 2px;
      transition: width 1.5s ease-in-out;
      position: relative;
    }

    .stock-progress::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
      animation: stockShine 2s infinite;
    }

    @keyframes stockShine {
      0% {
        transform: translateX(-100%);
      }

      100% {
        transform: translateX(100%);
      }
    }

    .low-stock .stock-progress {
      background: linear-gradient(90deg, #e67e22, #f39c12);
    }

    .out-of-stock,
    .in-stock {
      padding: 10px 18px;
      border-radius: var(--radius);
      font-weight: 600;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-top: 12px;
      transition: all 0.3s ease;
    }

    .out-of-stock {
      color: #e74c3c;
      background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(231, 76, 60, 0.05) 100%);
      border-left: 4px solid #e74c3c;
    }

    .in-stock {
      color: #28a745;
      background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.05) 100%);
      border-left: 4px solid #28a745;
    }

    /* ---------- Premium Rating Stars ---------- */
    .rating {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 25px;
    }

    .stars {
      display: flex;
      gap: 3px;
      position: relative;
    }

    .stars i {
      font-size: 20px;
      color: #ffd700;
      text-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
      transition: all 0.3s ease;
      cursor: pointer;
      position: relative;
    }

    .stars i:hover {
      transform: scale(1.3) rotate(15deg);
      text-shadow: 0 4px 8px rgba(255, 215, 0, 0.6);
    }

    .stars i::after {
      content: '★';
      position: absolute;
      top: 0;
      left: 0;
      color: #ffa500;
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .stars i:hover::after {
      opacity: 1;
    }

    .review-count {
      color: #777;
      font-size: 0.95rem;
      position: relative;
      padding-left: 12px;
    }

    .review-count::before {
      content: '•';
      position: absolute;
      left: 0;
      color: #ddd;
    }

    /* ---------- Enhanced Description ---------- */
    .desc {
      color: #444;
      line-height: 1.7;
      margin-bottom: 30px;
      font-size: 1.1rem;
      white-space: pre-line;
      position: relative;
      padding-left: 20px;
      border-left: 3px solid var(--primary);
      background: linear-gradient(135deg, transparent 0%, rgba(123, 63, 0, 0.02) 100%);
      padding: 20px;
      border-radius: 0 var(--radius) var(--radius) 0;
    }

    /* ---------- Luxury Product Info ---------- */
    .product-info {
      background: linear-gradient(135deg, rgba(123, 63, 0, 0.03) 0%, rgba(123, 63, 0, 0.01) 100%);
      padding: 25px;
      border-radius: var(--radius);
      margin-bottom: 30px;
      border: 1px solid rgba(123, 63, 0, 0.1);
      position: relative;
      overflow: hidden;
    }

    .product-info::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 3px;
      height: 100%;
      background: linear-gradient(180deg, var(--primary), var(--secondary));
    }

    .product-info div {
      display: flex;
      justify-content: space-between;
      margin-bottom: 15px;
      padding-bottom: 15px;
      border-bottom: 1px solid rgba(123, 63, 0, 0.08);
      transition: all 0.3s ease;
    }

    .product-info div:hover {
      background: rgba(255, 255, 255, 0.5);
      padding-left: 10px;
      border-radius: 4px;
    }

    .product-info div:last-child {
      margin-bottom: 0;
      padding-bottom: 0;
      border-bottom: none;
    }

    .info-label {
      font-weight: 600;
      color: var(--primary);
      position: relative;
    }

    .info-label::after {
      content: ':';
      position: absolute;
      right: -5px;
    }

    /* ---------- Ultimate Actions ---------- */
    .actions {
      display: flex;
      gap: 15px;
      flex-wrap: wrap;
      margin-bottom: 25px;
      align-items: center;
      position: relative;
    }

    /* Premium Quantity Selector */
    .quantity {
      display: flex;
      align-items: center;
      gap: 12px;
      background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
      border-radius: var(--radius);
      padding: 10px 15px;
      border: 1px solid rgba(0, 0, 0, 0.08);
      position: relative;
      overflow: hidden;
    }

    .quantity::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
    }

    .quantity-btn {
      background: none;
      border: none;
      font-size: 1.4rem;
      cursor: pointer;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      color: var(--primary);
      transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      position: relative;
      overflow: hidden;
    }

    .quantity-btn::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 0;
      height: 0;
      background: var(--accent);
      border-radius: 50%;
      transition: all 0.3s ease;
      transform: translate(-50%, -50%);
    }

    .quantity-btn:hover::before {
      width: 100%;
      height: 100%;
    }

    .quantity-btn:hover {
      color: var(--white);
      transform: scale(1.1) rotate(90deg);
    }

    .quantity-btn:active {
      transform: scale(0.95);
    }

    .quantity-input {
      width: 60px;
      text-align: center;
      border: none;
      background: transparent;
      font-weight: 700;
      font-size: 1.2rem;
      color: var(--primary);
      outline: none;
      padding: 8px;
      border-radius: 4px;
      transition: all 0.3s ease;
    }

    .quantity-input:focus {
      background: rgba(123, 63, 0, 0.05);
      box-shadow: 0 0 0 2px rgba(123, 63, 0, 0.1);
    }

    /* ---------- Ultimate Buttons ---------- */
    .btn {
      background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
      color: var(--white);
      padding: 16px 32px;
      border-radius: 50px;
      border: 0;
      cursor: pointer;
      font-weight: 600;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
      font-size: 1.05rem;
      position: relative;
      overflow: hidden;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .btn::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
      transition: left 0.8s ease;
    }

    .btn:hover::before {
      left: 100%;
    }

    .btn:hover {
      transform: translateY(-5px) scale(1.02);
      box-shadow:
        0 15px 30px rgba(210, 105, 30, 0.4),
        0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .btn:active {
      transform: translateY(-2px) scale(1);
    }

    .btn:disabled {
      background: #ccc;
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
    }

    .btn-back {
      background: transparent;
      color: var(--primary);
      border: 2px solid var(--primary);
      position: relative;
      overflow: hidden;
    }

    .btn-back::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 0;
      height: 100%;
      background: var(--primary);
      transition: width 0.4s ease;
      z-index: -1;
    }

    .btn-back:hover {
      color: var(--white);
      background: var(--primary);
    }

    .btn-back:hover::before {
      width: 100%;
    }

    .btn-wishlist {
      background: transparent;
      color: #888;
      border: 2px solid #ddd;
      transition: all 0.4s ease;
    }

    .btn-wishlist:hover {
      background: rgba(255, 0, 0, 0.1);
      color: #e74c3c;
      border-color: #e74c3c;
      transform: scale(1.1);
    }

    .btn-wishlist.active {
      background: rgba(255, 0, 0, 0.15);
      color: #e74c3c;
      border-color: #e74c3c;
      animation: heartBeat 0.6s ease;
    }

    @keyframes heartBeat {

      0%,
      100% {
        transform: scale(1);
      }

      25% {
        transform: scale(1.3);
      }

      50% {
        transform: scale(0.9);
      }

      75% {
        transform: scale(1.1);
      }
    }

    /* ---------- Premium Responsive Design ---------- */
    @media (max-width: 1200px) {
      .gallery {
        height: 450px;
      }

      .title {
        font-size: 2.1rem;
      }
    }

    @media (max-width: 992px) {
      .card {
        flex-direction: column;
        padding: 25px;
        gap: 30px;
      }

      .gallery {
        height: 400px;
      }

      .title {
        font-size: 1.9rem;
      }

      .actions {
        justify-content: center;
      }
    }

    @media (max-width: 768px) {
      .gallery {
        height: 350px;
      }

      .title {
        font-size: 1.7rem;
      }

      .price {
        font-size: 1.8rem;
      }

      .btn {
        padding: 14px 28px;
        font-size: 1rem;
        flex: 1;
        justify-content: center;
        min-width: 140px;
      }
    }

    @media (max-width: 576px) {
      .gallery {
        height: 300px;
      }

      .price {
        font-size: 1.6rem;
      }

      .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
      }

      .thumbnail {
        width: 60px;
        height: 60px;
      }

      .product-info {
        padding: 20px 15px;
      }
    }

    /* ---------- Advanced Micro-interactions ---------- */
    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(30px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .card {
      animation: fadeInUp 0.8s ease-out;
    }

    .gallery-container {
      animation: fadeInUp 0.8s ease-out 0.1s both;
    }

    .meta {
      animation: fadeInUp 0.8s ease-out 0.2s both;
    }

    /* Loading shimmer effect for images */
    .gallery img[src=""],
    .thumbnail img[src=""] {
      background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
      background-size: 200% 100%;
      animation: loading 1.5s infinite;
    }

    @keyframes loading {
      0% {
        background-position: 200% 0;
      }

      100% {
        background-position: -200% 0;
      }
    }

    /* Focus states for accessibility */
    .btn:focus-visible,
    .quantity-btn:focus-visible,
    .thumbnail:focus-visible {
      outline: 3px solid var(--primary);
      outline-offset: 2px;
      box-shadow: 0 0 0 3px rgba(123, 63, 0, 0.3);
    }

    /* Reduced motion support */
    @media (prefers-reduced-motion: reduce) {
      * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }
    }

    /* Dark mode support */
    @media (prefers-color-scheme: dark) {
      .card {
        background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
      }

      .gallery {
        background: linear-gradient(135deg, #3d3d3d 0%, #2d2d2d 100%);
      }

      .quantity {
        background: linear-gradient(135deg, #3d3d3d 0%, #2d2d2d 100%);
      }
    }

    /* Print styles */
    @media print {
      .card {
        box-shadow: none;
        border: 1px solid #ddd;
      }

      .btn {
        display: none;
      }

      .gallery:hover img {
        transform: none;
      }
    }

    /* Toast Notification */
    .toast {
      position: fixed;
      top: 20px;
      right: 20px;
      background: var(--white);
      padding: 15px 20px;
      border-radius: var(--radius);
      box-shadow: var(--shadow-hover);
      display: flex;
      align-items: center;
      gap: 10px;
      z-index: 2000;
      transform: translateX(150%);
      transition: transform 0.3s ease;
    }

    .toast.show {
      transform: translateX(0);
    }

    .toast.success {
      border-left: 4px solid #4caf50;
    }

    .toast.error {
      border-left: 4px solid #f44336;
    }

    .toast.warning {
      border-left: 4px solid #ff9800;
    }

    /* =============================
   🌟 Related Products Section
   ============================= */

    /* Section Title */
    .section-title {
      font-family: "Playfair Display", serif;
      font-size: 2rem;
      color: var(--primary);
      margin: 40px 0 20px;
      position: relative;
      padding-bottom: 12px;
      line-height: 1.2;
    }

    .section-title::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 0;
      width: 70px;
      height: 4px;
      background: var(--accent);
      border-radius: 2px;
      transition: width 0.4s ease;
    }

    .section-title:hover::after {
      width: 110px;
      /* subtle interactive effect */
    }

    /* Grid Layout */
    .related-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
      gap: 25px;
      margin-top: 25px;
    }

    /* Product Card */
    .prod {
      background: var(--white);
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: var(--shadow);
      cursor: pointer;
      transition: transform 0.35s ease, box-shadow 0.35s ease;
      display: flex;
      flex-direction: column;
      position: relative;
      isolation: isolate;
      /* ensures overlay effects */
    }

    /* .prod:hover {
      transform: translateY(-6px) scale(1.02);
      box-shadow: var(--shadow-hover);
    } */

    /* Image */
    .prod-img {
      width: 100%;
      height: 200px;
      object-fit: cover;
      user-select: none;
      transition: transform 0.4s ease;
    }

    .prod:hover .prod-img {
      transform: scale(1.07);
    }

    /* Overlay effect */
    .prod::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0));
      opacity: 0;
      transition: opacity 0.35s ease;
      z-index: 1;
    }

    .prod:hover::before {
      opacity: 1;
    }

    /* Content */
    .prod-content {
      padding: 20px;
      display: flex;
      flex-direction: column;
      flex-grow: 1;
      position: relative;
      z-index: 2;
    }

    /* Product Name */
    .prod-name {
      font-weight: 700;
      color: var(--primary);
      margin-bottom: 10px;
      font-size: 1.1rem;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      text-overflow: ellipsis;
      transition: color 0.3s ease;
    }

    .prod:hover .prod-name {
      color: var(--secondary);
    }

    /* Rating */
    .prod-rating {
      display: flex;
      align-items: center;
      gap: 4px;
      font-size: 0.9rem;
      color: #ffa500;
      margin: 8px 0;
    }

    /* Price */
    .prod-price {
      color: var(--primary);
      font-weight: 800;
      margin-top: auto;
      font-size: 1.2rem;
      transition: transform 0.3s ease, color 0.3s ease;
    }

    .prod:hover .prod-price {
      color: var(--secondary);
      transform: scale(1.05);
    }

    /* Actions */
    .prod-actions {
      display: flex;
      justify-content: space-between;
      margin-top: 15px;
      gap: 10px;
      flex-wrap: wrap;
    }

    /* Buttons */
    .btn-view {
      background: transparent;
      color: var(--primary);
      border: 2px solid var(--primary);
      padding: 8px 16px;
      font-size: 0.9rem;
      border-radius: 25px;
      font-weight: 600;
      transition: all 0.3s ease;
    }

    .btn-view:hover,
    .btn-view:focus-visible {
      background: var(--primary);
      color: var(--white);
      box-shadow: 0 4px 12px rgba(123, 63, 0, 0.2);
      transform: translateY(-2px);
    }




    /* Responsive Tweaks */
    @media (max-width: 768px) {
      .prod-img {
        height: 180px;
      }

      .section-title {
        font-size: 1.7rem;
      }
    }

    @media (max-width: 480px) {
      .prod-img {
        height: 160px;
      }

      .btn-view {
        flex: 1;
        text-align: center;
      }
    }


    /* Loading state */
    .loader {
      display: flex;
      justify-content: center;
      align-items: center;
      height: 400px;
    }

    .spinner {
      width: 50px;
      height: 50px;
      border: 4px solid var(--light);
      border-top: 4px solid var(--primary);
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }

    @keyframes spin {
      0% {
        transform: rotate(0deg);
      }

      100% {
        transform: rotate(360deg);
      }
    }

    /* ==========================
   🌟 Image Loading Spinners
   ========================== */

    /* Default Spinner */
    .img-loader {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 42px;
      height: 42px;
      border: 3px solid rgba(123, 63, 0, 0.15);
      border-top-color: var(--primary);
      border-radius: 50%;
      animation: spin 0.9s linear infinite;
      z-index: 5;
    }

    /* Spin Animation */
    @keyframes spin {
      100% {
        transform: translate(-50%, -50%) rotate(360deg);
      }
    }

    /* ✅ Variant 1: Dual Ring */
    .img-loader.dual-ring {
      border: 3px solid transparent;
      border-top: 3px solid var(--primary);
      border-right: 3px solid var(--secondary);
      animation: spin 1s linear infinite;
    }

    /* ✅ Variant 2: Pulse Loader */
    .img-loader.pulse {
      border: none;
      width: 14px;
      height: 14px;
      background: var(--primary);
      border-radius: 50%;
      animation: pulse 1.2s ease-in-out infinite;
    }

    @keyframes pulse {

      0%,
      100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
      }

      50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 1;
      }
    }

    /* ✅ Variant 3: Dots Loader */
    .img-loader.dots {
      width: auto;
      height: auto;
      border: none;
      display: flex;
      gap: 6px;
      align-items: center;
      justify-content: center;
    }

    .img-loader.dots::before,
    .img-loader.dots::after,
    .img-loader.dots span {
      content: "";
      width: 8px;
      height: 8px;
      background: var(--primary);
      border-radius: 50%;
      animation: bounce 0.6s infinite alternate;
    }

    .img-loader.dots span {
      animation-delay: 0.2s;
    }

    .img-loader.dots::after {
      animation-delay: 0.4s;
    }

    @keyframes bounce {
      from {
        transform: translateY(0);
        opacity: 0.6;
      }

      to {
        transform: translateY(-8px);
        opacity: 1;
      }
    }

    /* Premium Footer - ULTRA IMPROVED */
    footer {
      background: linear-gradient(135deg, var(--footer-bg) 0%, rgba(0, 0, 0, 0.95) 100%);
      color: var(--footer-text);
      padding: 90px 0 35px;
      position: relative;
      overflow: hidden;
    }

    /* تأثير زخرفة ثابتة subtle */
    footer::before {
      content: "";
      position: absolute;
      inset: 0;
      background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'><circle cx='200' cy='200' r='180' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='2'/><circle cx='200' cy='200' r='140' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'/></svg>") center/contain no-repeat;
      opacity: 0.4;
      z-index: 0;
    }


    .footer-content {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 40px;
      margin-bottom: 60px;
    }


    /* Section Titles */
    .footer-section h3 {
      color: var(--accent);
      margin-bottom: 26px;
      font-size: 1.45rem;
      position: relative;
      padding-bottom: 12px;
      font-family: "Playfair Display", serif;
      letter-spacing: 0.5px;
    }

    .footer-section h3::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 0;
      width: 55px;
      height: 3px;
      background: var(--accent);
      border-radius: 2px;
      transition: width 0.4s ease;
    }

    .footer-section h3:hover::after {
      width: 80px;
    }

    /* Paragraph */
    .footer-section p {
      margin-bottom: 24px;
      line-height: 1.7;
      opacity: 0.9;
      font-size: 15px;
      transition: opacity 0.3s ease;
    }

    .footer-section p:hover {
      opacity: 1;
    }

    /* Links */
    .footer-links {
      list-style: none;
      padding-left: 0;
    }

    .footer-links li {
      margin: 14px 0;
      transition: transform 0.3s ease;
    }

    .footer-links li:hover {
      transform: translateX(6px);
    }

    .footer-links a {
      color: var(--footer-text);
      text-decoration: none;
      opacity: 0.85;
      transition: all 0.35s ease;
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 15px;
      position: relative;
    }

    .footer-links a::after {
      content: "";
      position: absolute;
      bottom: -3px;
      left: 0;
      width: 0;
      height: 2px;
      background: var(--accent);
      transition: width 0.3s ease;
    }

    .footer-links a:hover {
      opacity: 1;
      color: var(--accent);
    }

    .footer-links a:hover::after {
      width: 100%;
    }

    /* Social Icons */
    .footer-social {
      display: flex;
      gap: 18px;
      margin-top: 26px;
      justify-content: center;
    }

    .footer-social a {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 46px;
      height: 46px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.08);
      color: var(--footer-text);
      transition: all 0.35s ease;
      font-size: 18px;
      text-decoration: none;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
      backdrop-filter: blur(8px);
    }

    .footer-social a:hover {
      background: var(--accent);
      color: var(--dark);
      transform: translateY(-4px) scale(1.1);
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 0 12px var(--accent);
    }

    /* Footer Bottom */
    .footer-bottom {
      position: relative;
      z-index: 1;
      text-align: center;
      padding-top: 45px;
      border-top: 1px solid rgba(255, 255, 255, 0.12);
      opacity: 0.85;
      font-size: 0.95rem;
      letter-spacing: 0.6px;
      transition: opacity 0.3s ease;
    }

    .footer-bottom:hover {
      opacity: 1;
    }

    /* Contact Button */
    .footer-contact {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      margin-top: 22px;
      padding: 13px 28px;
      background: var(--accent);
      color: var(--dark);
      text-decoration: none;
      border-radius: 35px;
      font-weight: 600;
      transition: all 0.35s ease;
      box-shadow: 0 5px 18px rgba(0, 0, 0, 0.2);
    }

    .footer-contact:hover {
      background: var(--secondary);
      color: var(--white);
      transform: translateY(-4px);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25), 0 0 12px var(--secondary);
    }

    /* Animations */
    @keyframes footerGlow {
      0% {
        transform: rotate(0deg);
      }

      100% {
        transform: rotate(360deg);
      }
    }


    /* Premium Back to top button */
    .back-to-top {
      position: fixed;
      bottom: 40px;
      right: 40px;
      width: 60px;
      height: 60px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.08);
      /* شفافية */
      color: var(--primary);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      opacity: 0;
      visibility: hidden;
      transform: translateY(20px) scale(0.9);
      transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
      backdrop-filter: blur(12px);
      /* زجاج */
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
      z-index: 99;
      font-size: 22px;
      overflow: hidden;
    }

    /* لما يظهر */
    .back-to-top.visible {
      opacity: 1;
      visibility: visible;
      transform: translateY(0) scale(1);
      animation: pulseGlow 2s infinite;
    }

    /* Hover */
    .back-to-top:hover {
      background: var(--primary);
      color: #fff;
      transform: translateY(-6px) scale(1.05);
      box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28),
        0 0 15px rgba(0, 140, 255, 0.5);
    }

    /* Pulse Animation */
    @keyframes pulseGlow {
      0% {
        box-shadow: 0 0 0 rgba(0, 140, 255, 0.5);
      }

      50% {
        box-shadow: 0 0 20px rgba(0, 140, 255, 0.7);
      }

      100% {
        box-shadow: 0 0 0 rgba(0, 140, 255, 0.5);
      }
    }


    /* Premium Animations */
    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(20px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes pulse {
      0% {
        transform: scale(1);
      }

      50% {
        transform: scale(1.05);
      }

      100% {
        transform: scale(1);
      }
    }

    @keyframes float {
      0% {
        transform: translateY(0);
      }

      50% {
        transform: translateY(-10px);
      }

      100% {
        transform: translateY(0);
      }
    }

    @keyframes cartAnimation {
      0% {
        transform: scale(1);
      }

      50% {
        transform: scale(1.2);
      }

      100% {
        transform: scale(1);
      }
    }

    /* Animations */
    @keyframes cartBounce {

      0%,
      20%,
      50%,
      80%,
      100% {
        transform: translateY(0);
      }

      40% {
        transform: translateY(-10px);
      }

      60% {
        transform: translateY(-5px);
      }
    }

    @keyframes itemAdded {
      0% {
        transform: scale(1);
      }

      50% {
        transform: scale(1.1);
      }

      100% {
        transform: scale(1);
      }
    }

    @keyframes pulse {
      0% {
        transform: scale(1);
      }

      50% {
        transform: scale(1.05);
      }

      100% {
        transform: scale(1);
      }
    }

    .cart-bounce {
      animation: cartBounce 1s ease;
    }

    .item-added {
      animation: itemAdded 0.5s ease;
    }

    .pulse {
      animation: pulse 0.5s ease;
    }

    /* Dark mode styles */
    body.dark-mode {
      --bg: #1a1a1a;
      --text: #f0f0f0;
      --white: #2d2d2d;
      --light: #2d2d2d;
      --shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
      --shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.6);
      --header-bg: rgba(45, 45, 45, 0.95);
      --footer-bg: #1e1a15;
      --footer-text: #d9c7b1;
    }

    body.dark-mode nav a {
      color: #f0f0f0;
    }

    body.dark-mode .btn {
      border-color: #555;
    }

    body.dark-mode .card,
    body.dark-mode .prod {
      background: #2d2d2d;
      border-color: #444;
    }

    body.dark-mode .product-info {
      background: rgba(123, 63, 0, 0.15);
    }

    body.dark-mode .quantity {
      background: #3d3d3d;
    }

    body.dark-mode .quantity-input {
      background: #3d3d3d;
      color: #f0f0f0;
    }

    body.dark-mode .btn-wishlist {
      border-color: #555;
      color: #aaa;
    }

    body.dark-mode .gallery {
      background: #3d3d3d;
    }

    body.dark-mode .breadcrumbs a {
      color: var(--accent);
    }

    body.dark-mode .breadcrumbs span {
      color: #777;
    }

    @media (max-width: 992px) {
      .card {
        flex-direction: column;
      }

      .gallery {
        height: 350px;
      }

      nav ul {
        gap: 20px;
      }

      .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
      }
    }

    @media (max-width: 768px) {
      .header-content {
        flex-wrap: wrap;
      }

      .mobile-menu-btn {
        display: flex;
      }

      nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        z-index: 999;
        flex-direction: column;
        gap: 15px;
      }

      nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
      }

      nav ul {
        flex-direction: column;
        gap: 15px;
        width: 100%;
      }

      nav a {
        padding: 12px 0;
        font-size: 17px;
        display: block;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
      }

      .gallery {
        height: 300px;
        cursor: pointer;
      }

      .gallery:hover img {
        transform: none;
      }

      .thumbnails {
        overflow-x: auto;
        padding-bottom: 10px;
      }

      .related-grid {
        grid-template-columns: 1fr;
      }

      .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
      }

      .footer-section h3:after {
        left: 50%;
        transform: translateX(-50%);
      }

      .footer-social {
        justify-content: center;
      }

      .back-to-top {
        bottom: 30px;
        right: 30px;
        width: 50px;
        height: 50px;
        font-size: 18px;
      }

      .price-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
      }

      .actions {
        flex-direction: column;
        align-items: stretch;
      }

      .quantity {
        justify-content: center;
      }
    }

    @media (max-width: 576px) {
      .title {
        font-size: 1.8rem;
      }

      .price,
      .original-price {
        font-size: 1.5rem;
      }

      .card {
        padding: 20px;
      }

      .breadcrumbs {
        font-size: 0.8rem;
      }

      footer {
        padding: 60px 0 25px;
      }

      .footer-bottom {
        font-size: 0.9rem;
      }
    }

    /* Loader */
    .loader-container {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(10, 12, 18, 0.95);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      z-index: 9999;
      transition: all 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
      backdrop-filter: blur(5px);
      -webkit-backdrop-filter: blur(5px);
    }

    .loader-container::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(45deg,
          transparent,
          rgba(255, 255, 255, 0.03),
          transparent);
      animation: shine 3s infinite cubic-bezier(0.4, 0, 0.2, 1);
    }

    @keyframes shine {
      0% {
        transform: translateX(-100%) skewX(-15deg);
        opacity: 0.2;
      }

      60% {
        opacity: 0.4;
      }

      100% {
        transform: translateX(100%) skewX(-15deg);
        opacity: 0.2;
      }
    }

    .loader-container.hidden {
      opacity: 0;
      visibility: hidden;
      transform: scale(1.05);
    }

    .loader {
      position: relative;
      width: 80px;
      height: 80px;
      border-radius: 50%;
      perspective: 800px;
      margin-bottom: 20px;
    }

    .loader-inner {
      position: absolute;
      width: 100%;
      height: 100%;
      border-radius: 50%;
      box-sizing: border-box;
    }

    .loader-inner:nth-child(1) {
      border-bottom: 4px solid var(--primary);
      animation: rotate1 1.8s linear infinite;
      filter: drop-shadow(0 0 6px var(--primary)) drop-shadow(0 0 12px rgba(123, 63, 0, 0.4));
    }

    .loader-inner:nth-child(2) {
      border-right: 4px solid rgba(244, 164, 96, 0.8);
      animation: rotate2 1.8s linear infinite 0.3s;
      filter: drop-shadow(0 0 4px rgba(244, 164, 96, 0.4));
    }

    .loader-inner:nth-child(3) {
      border-top: 4px solid rgba(244, 164, 96, 0.4);
      animation: rotate3 1.8s linear infinite 0.6s;
    }

    @keyframes rotate1 {
      0% {
        transform: rotateX(45deg) rotateY(-35deg) rotateZ(0deg);
      }

      100% {
        transform: rotateX(45deg) rotateY(-35deg) rotateZ(360deg);
      }
    }

    @keyframes rotate2 {
      0% {
        transform: rotateX(60deg) rotateY(15deg) rotateZ(0deg);
      }

      100% {
        transform: rotateX(60deg) rotateY(15deg) rotateZ(360deg);
      }
    }

    @keyframes rotate3 {
      0% {
        transform: rotateX(30deg) rotateY(65deg) rotateZ(0deg);
      }

      100% {
        transform: rotateX(30deg) rotateY(65deg) rotateZ(360deg);
      }
    }

    .loader-text {
      position: relative;
      color: white;
      font-family: "Poppins", "Helvetica Neue", sans-serif;
      font-weight: 300;
      letter-spacing: 2px;
      font-size: 12px;
      text-transform: uppercase;
      animation: pulse 2s ease-in-out infinite;
      margin-top: 15px;
    }

    .loader-text::after {
      content: "...";
      position: absolute;
      animation: dots 1.5s steps(5, end) infinite;
    }

    @keyframes pulse {

      0%,
      100% {
        opacity: 0.8;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
      }

      50% {
        opacity: 1;
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
      }
    }

    @keyframes dots {

      0%,
      20% {
        content: ".";
      }

      40% {
        content: "..";
      }

      60%,
      100% {
        content: "...";
      }
    }

    .loader-progress {
      width: 100px;
      height: 2px;
      background: rgba(255, 255, 255, 0.1);
      margin-top: 20px;
      border-radius: 2px;
      overflow: hidden;
    }

    .loader-progress::before {
      content: "";
      display: block;
      height: 100%;
      width: 0;
      background: linear-gradient(90deg,
          transparent,
          var(--primary),
          transparent);
      animation: progress 2.5s ease-in-out infinite;
    }

    @keyframes progress {
      0% {
        width: 0;
        margin-left: 0;
      }

      50% {
        width: 100%;
        margin-left: 0;
      }

      100% {
        width: 0;
        margin-left: 100%;
      }
    }

    /* Toast Notification */
    #toast-container {
      position: fixed;
      top: 20px;
      right: 20px;
      display: flex;
      flex-direction: column;
      gap: 14px;
      z-index: 3000;
    }

    .toast {
      background: rgba(255, 255, 255, 0.8);
      backdrop-filter: blur(12px);
      color: var(--dark);
      padding: 16px 20px;
      border-radius: 14px;
      box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
      display: flex;
      align-items: center;
      gap: 14px;
      min-width: 280px;
      max-width: 360px;
      font-size: 15px;
      font-weight: 500;
      line-height: 1.5;
      position: relative;
      overflow: hidden;
      opacity: 0;
      transform: translateX(120%) scale(0.95);
      animation: toastIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
      border-left: 5px solid transparent;
    }

    .toast .icon {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      flex-shrink: 0;
      color: #fff;
    }

    .toast .close-btn {
      margin-left: auto;
      background: none;
      border: none;
      font-size: 18px;
      cursor: pointer;
      color: inherit;
      opacity: 0.5;
      transition: opacity 0.2s ease;
    }

    .toast .close-btn:hover {
      opacity: 1;
    }

    .toast.success {
      border-left-color: #4caf50;
    }

    .toast.success .icon {
      background: linear-gradient(135deg, #4caf50, #2e7d32);
    }

    .toast.error {
      border-left-color: #f44336;
    }

    .toast.error .icon {
      background: linear-gradient(135deg, #f44336, #b71c1c);
    }

    .toast.warning {
      border-left-color: #ff9800;
    }

    .toast.warning .icon {
      background: linear-gradient(135deg, #ff9800, #e65100);
    }

    .toast.info {
      border-left-color: #2196f3;
    }

    .toast.info .icon {
      background: linear-gradient(135deg, #2196f3, #0d47a1);
    }

    @keyframes toastIn {
      to {
        opacity: 1;
        transform: translateX(0) scale(1);
      }
    }

    @keyframes toastOut {
      to {
        opacity: 0;
        transform: translateX(120%) scale(0.95);
      }
    }

    body.dark-mode .toast {
      background: rgba(30, 30, 30, 0.85);
      color: #f5f5f5;
    }

    /* Mobile Bottom Nav */
    .mobile-bottom-nav {
      position: fixed;
      left: 50%;
      transform: translateX(-50%) translateY(0);
      bottom: 14px;
      width: 92%;
      max-width: 480px;
      height: 64px;
      background: rgba(255, 255, 255, 0.85);
      border-radius: 20px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
      display: none;
      justify-content: space-around;
      align-items: center;
      z-index: 3000;
      transition: transform 0.35s ease, background 0.3s ease;
      backdrop-filter: blur(12px) saturate(150%);
    }

    @media (max-width: 768px) {
      .mobile-bottom-nav {
        display: flex;
      }

      .back-to-top {
        bottom: 90px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
        border-radius: 50%;
      }
    }

    .mobile-bottom-nav .nav-btn {
      position: relative;
      background: none;
      border: none;
      color: var(--primary, #7b3f00);
      font-size: 24px;
      cursor: pointer;
      outline: none;
      padding: 8px;
      border-radius: 14px;
      transition: color 0.25s ease, transform 0.25s ease, background 0.25s ease;
    }

    .mobile-bottom-nav .nav-btn:hover {
      background: rgba(0, 0, 0, 0.05);
      transform: translateY(-2px);
    }

    .mobile-bottom-nav .nav-btn:active {
      transform: scale(0.92);
      color: var(--secondary, #d35400);
    }

    .mobile-bottom-nav .nav-btn.active {
      color: var(--secondary, #d35400);
    }

    .mobile-bottom-nav .nav-btn.active::after {
      content: "";
      position: absolute;
      bottom: -4px;
      left: 50%;
      transform: translateX(-50%);
      width: 22px;
      height: 3px;
      background: var(--secondary, #d35400);
      border-radius: 2px;
      animation: activeSlide 0.3s ease;
    }

    @keyframes activeSlide {
      from {
        width: 0;
        opacity: 0;
      }

      to {
        width: 22px;
        opacity: 1;
      }
    }

    .mobile-bottom-nav .notification-badge,
    .mobile-bottom-nav .cart-count {
      position: absolute;
      top: 4px;
      right: 8px;
      background: var(--accent, #ff3b30);
      color: #fff;
      border-radius: 999px;
      font-size: 11px;
      min-width: 18px;
      height: 18px;
      padding: 0 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
      animation: badgePulse 2s infinite;
    }

    @keyframes badgePulse {

      0%,
      100% {
        transform: scale(0.9);
      }

      50% {
        transform: scale(1.15);
      }
    }

    body.dark-mode .mobile-bottom-nav {
      background: rgba(34, 34, 34, 0.85);
      box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6);
    }

    body.dark-mode .mobile-bottom-nav .nav-btn {
      color: var(--accent, #f39c12);
    }

    body.dark-mode .mobile-bottom-nav .nav-btn:hover {
      background: rgba(255, 255, 255, 0.05);
    }

    body.dark-mode .mobile-bottom-nav .notification-badge,
    body.dark-mode .mobile-bottom-nav .cart-count {
      background: var(--accent, #f39c12);
      color: #222;
    }

    .mobile-bottom-nav.hide {
      transform: translateX(-50%) translateY(120%);
    }

    .zoom-lens {
      position: absolute;
      border: 2px solid var(--primary);
      background-color: rgba(244, 164, 96, 0.3);
      cursor: none;
      display: none;
      width: 100px;
      height: 100px;
      border-radius: 50%;
      pointer-events: none;
      z-index: 9999999999999;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    }

    /* نافذة التكبير */
    .zoom-window {
      position: absolute;
      top: 0;
      left: calc(100% + 20px);
      width: 400px;
      height: 400px;
      border: 2px solid var(--primary);
      border-radius: var(--radius);
      overflow: hidden;
      display: none;
      background: var(--white);
      box-shadow: var(--shadow-hover);
      z-index: 10000;
    }

    .zoom-window img {
      position: absolute;
      max-width: none;
      width: auto;
      height: auto;
    }

    /* بديل التكبير للهواتف */
    .mobile-zoom-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.9);
      z-index: 1000;
      justify-content: center;
      align-items: center;
    }

    .mobile-zoom-overlay img {
      max-width: 90%;
      max-height: 80%;
      border-radius: var(--radius);
    }

    .close-zoom {
      position: absolute;
      top: 20px;
      right: 20px;
      color: white;
      font-size: 30px;
      cursor: pointer;
      background: rgba(0, 0, 0, 0.5);
      width: 40px;
      height: 40px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .rating-input-section {
      margin-top: 35px;
      padding: 28px;
      background: var(--white);
      border-radius: var(--radius, 12px);
      border: 1px solid rgba(123, 63, 0, 0.15);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
      transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    }

    .rating-input-section:hover {
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    }

    .rating-input-section h3 {
      color: var(--primary);
      margin-bottom: 18px;
      font-family: "Playfair Display", serif;
      font-size: 1.4rem;
      font-weight: 600;
      letter-spacing: 0.5px;
    }

    /* ⭐ Star Rating */
    .star-rating-input {
      display: flex;
      gap: 8px;
      margin-bottom: 16px;
    }

    .star-rating-input i {
      font-size: 28px;
      color: #d3d3d3;
      cursor: pointer;
      transition: transform 0.25s ease, color 0.25s ease;
    }

    .star-rating-input i:hover {
      transform: scale(1.2);
      color: #ffc107;
    }

    .star-rating-input i.active {
      color: #ff9800;
      text-shadow: 0 0 6px rgba(255, 152, 0, 0.6);
    }

    /* 📝 Feedback Text */
    .rating-feedback {
      margin-bottom: 16px;
      min-height: 22px;
    }

    #ratingText {
      color: var(--primary);
      font-weight: 600;
      font-size: 1rem;
      letter-spacing: 0.3px;
    }

    /* 🔤 Inputs */
    #reviewText,
    #userNamee {
      width: 100%;
      padding: 12px 14px;
      border: 1px solid #ddd;
      border-radius: 8px;
      margin-bottom: 14px;
      font-family: "Poppins", sans-serif;
      font-size: 1rem;
      resize: vertical;
      transition: all 0.25s ease;
      background: #fff;
      color: #333;
    }

    #reviewText:focus,
    #userNamee:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(123, 63, 0, 0.15);
    }

    #reviewText {
      min-height: 100px;
      line-height: 1.5;
    }

    /* 🚀 Submit Button */
    #submitRating {
      width: 100%;
      padding: 14px;
      background: var(--primary);
      color: #fff;
      border: none;
      border-radius: 8px;
      font-family: "Poppins", sans-serif;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.25s ease;
      box-shadow: 0 3px 8px rgba(123, 63, 0, 0.25);
    }

    #submitRating:hover {
      background: var(--secondary);
      transform: translateY(-2px);
      box-shadow: 0 5px 12px rgba(123, 63, 0, 0.35);
    }

    #submitRating:active {
      transform: translateY(0);
      box-shadow: 0 3px 8px rgba(123, 63, 0, 0.25);
    }

    #submitRating:disabled {
      background: #bbb;
      cursor: not-allowed;
      box-shadow: none;
    }

    /* 🌙 Dark Mode */
    body.dark-mode .rating-input-section {
      background: #252525;
      border-color: rgba(255, 255, 255, 0.08);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }

    body.dark-mode .rating-input-section h3 {
      color: #f5f5f5;
    }

    body.dark-mode #reviewText,
    body.dark-mode #userNamee {
      background: #333;
      border-color: #555;
      color: #f5f5f5;
    }

    body.dark-mode #reviewText:focus,
    body.dark-mode #userNamee:focus {
      border-color: var(--secondary);
      box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.25);
    }

    body.dark-mode #submitRating {
      background: var(--primary);
      box-shadow: 0 3px 8px rgba(255, 165, 0, 0.25);
    }

    body.dark-mode #submitRating:hover {
      background: var(--secondary);
      box-shadow: 0 5px 12px rgba(255, 165, 0, 0.4);
    }

    /* ===== THANK YOU MESSAGE ENHANCEMENTS ===== */
    .thank-you-message {
      display: none;
      text-align: center;
      padding: clamp(20px, 3vw, 30px);
      background: linear-gradient(135deg, #f0f8f0 0%, #e8f5e9 100%);
      border-radius: 12px;
      margin-top: 24px;
      color: #2e7d32;
      border-left: 4px solid #4caf50;
      box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
      position: relative;
      overflow: hidden;
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .thank-you-message::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.1), transparent);
      transition: left 0.6s ease;
    }

    .thank-you-message:hover::before {
      left: 100%;
    }

    .thank-you-message.show {
      animation: slideInUp 0.6s ease-out, pulseGlow 2s ease-in-out 0.6s;
    }

    .thank-you-message .icon {
      font-size: 2.5rem;
      margin-bottom: 12px;
      display: block;
      animation: bounceIn 0.8s ease-out;
    }

    .thank-you-message h3 {
      font-size: clamp(1.25rem, 2.5vw, 1.75rem);
      margin-bottom: 8px;
      font-weight: 700;
    }

    .thank-you-message p {
      font-size: clamp(0.9rem, 2vw, 1.1rem);
      line-height: 1.6;
      opacity: 0.9;
      margin-bottom: 16px;
    }

    .thank-you-message .action-buttons {
      display: flex;
      gap: 12px;
      justify-content: center;
      flex-wrap: wrap;
      margin-top: 20px;
    }

    /* ===== MESSAGE BOX ENHANCEMENTS ===== */
    .msg-box {
      display: none;
      padding: clamp(12px, 2vw, 16px);
      border-radius: 12px;
      margin-bottom: 20px;
      text-align: center;
      font-weight: 500;
      position: relative;
      border-left: 4px solid;
      box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
      transition: all 0.3s ease;
      backdrop-filter: blur(10px);
    }

    .msg-box.show {
      animation: slideInDown 0.5s ease-out, fadeIn 0.5s ease-out;
    }

    .msg-box.dismissible {
      padding-right: 40px;
    }

    .msg-box .close-btn {
      position: absolute;
      top: 12px;
      right: 12px;
      background: none;
      border: none;
      font-size: 1.2rem;
      cursor: pointer;
      opacity: 0.7;
      transition: opacity 0.2s ease;
      padding: 4px;
      border-radius: 4px;
    }

    .msg-box .close-btn:hover {
      opacity: 1;
      background: rgba(0, 0, 0, 0.1);
    }

    .msg-success {
      background: linear-gradient(135deg, #f0f8f0 0%, #e8f5e9 100%);
      color: #2e7d32;
      border-color: #4caf50;
    }

    .msg-warning {
      background: linear-gradient(135deg, #fff8e1 0%, #fff3e0 100%);
      color: #f57c00;
      border-color: #ff9800;
    }

    .msg-info {
      background: linear-gradient(135deg, #e3f2fd 0%, #e1f5fe 100%);
      color: #0288d1;
      border-color: #03a9f4;
    }

    .msg-error {
      background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
      color: #c62828;
      border-color: #f44336;
    }

    .msg-box .icon {
      font-size: 1.5rem;
      margin-right: 8px;
      vertical-align: middle;
    }

    .msg-box .content {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }

    /* ===== SPINNER ENHANCEMENTS ===== */
    .spinner {
      display: inline-block;
      width: 20px;
      height: 20px;
      border: 3px solid rgba(255, 255, 255, 0.3);
      border-radius: 50%;
      border-top-color: currentColor;
      animation: spin 1s ease-in-out infinite;
      position: relative;
    }

    .spinner::after {
      content: '';
      position: absolute;
      top: -3px;
      left: -3px;
      right: -3px;
      bottom: -3px;
      border-radius: 50%;
      border: 3px solid transparent;
      border-top-color: currentColor;
      opacity: 0.2;
      animation: spinReverse 1.5s linear infinite;
    }

    .spinner-lg {
      width: 32px;
      height: 32px;
      border-width: 4px;
    }

    .spinner-sm {
      width: 16px;
      height: 16px;
      border-width: 2px;
    }

    .spinner-primary {
      color: #2196f3;
    }

    .spinner-success {
      color: #4caf50;
    }

    .spinner-warning {
      color: #ff9800;
    }

    .spinner-danger {
      color: #f44336;
    }

    /* ===== DARK MODE ENHANCEMENTS ===== */
    body.dark-mode .thank-you-message {
      background: linear-gradient(135deg, #1b3b1b 0%, #142814 100%);
      color: #81c784;
      border-left-color: #4caf50;
      box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
    }

    body.dark-mode .msg-success {
      background: linear-gradient(135deg, #1b3b1b 0%, #142814 100%);
      color: #81c784;
      border-color: #4caf50;
    }

    body.dark-mode .msg-warning {
      background: linear-gradient(135deg, #332900 0%, #2b2300 100%);
      color: #ffb74d;
      border-color: #ff9800;
    }

    body.dark-mode .msg-info {
      background: linear-gradient(135deg, #002640 0%, #001f33 100%);
      color: #4fc3f7;
      border-color: #03a9f4;
    }

    body.dark-mode .msg-error {
      background: linear-gradient(135deg, #3c1b1b 0%, #2c1414 100%);
      color: #e57373;
      border-color: #f44336;
    }

    body.dark-mode .msg-box .close-btn:hover {
      background: rgba(255, 255, 255, 0.1);
    }

    /* ===== ANIMATIONS ===== */
    @keyframes spin {
      to {
        transform: rotate(360deg);
      }
    }

    @keyframes spinReverse {
      to {
        transform: rotate(-360deg);
      }
    }

    @keyframes slideInUp {
      from {
        opacity: 0;
        transform: translateY(30px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes slideInDown {
      from {
        opacity: 0;
        transform: translateY(-30px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
      }

      to {
        opacity: 1;
      }
    }

    @keyframes bounceIn {
      0% {
        opacity: 0;
        transform: scale(0.3);
      }

      50% {
        opacity: 1;
        transform: scale(1.05);
      }

      70% {
        transform: scale(0.9);
      }

      100% {
        opacity: 1;
        transform: scale(1);
      }
    }

    @keyframes pulseGlow {

      0%,
      100% {
        box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
      }

      50% {
        box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
      }
    }

    /* ===== RESPONSIVE DESIGN ===== */
    @media (max-width: 768px) {
      .thank-you-message {
        margin: 16px 12px 0;
        border-left: 3px solid #4caf50;
      }

      .msg-box {
        margin: 0 12px 16px;
        border-left: 3px solid;
      }

      .thank-you-message .action-buttons {
        flex-direction: column;
        align-items: center;
      }
    }

    /* ===== ACCESSIBILITY ===== */
    @media (prefers-reduced-motion: reduce) {

      .thank-you-message,
      .msg-box,
      .spinner {
        animation: none;
        transition: none;
      }

      .spinner {
        animation: spin 2s linear infinite;
      }
    }

    /* ===== PRINT STYLES ===== */
    @media print {

      .thank-you-message,
      .msg-box {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
      }

      .msg-box .close-btn {
        display: none;
      }
    }

    /* ===== REVIEWS SECTION ENHANCEMENTS ===== */
    .reviews-section {
      margin-top: 2rem;
      padding: 0;
      background: var(--card-bg);
      border-radius: 16px;
      box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
      border: 1px solid var(--border-light);
      overflow: hidden;
      display: none;
      opacity: 0;
      transform: translateY(20px);
      transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
      position: relative;
    }

    .reviews-section::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: linear-gradient(90deg, var(--primary), var(--secondary));
      opacity: 0.8;
    }

    .reviews-section.visible {
      display: block;
      opacity: 1;
      transform: translateY(0);
      animation: slideInUp 0.6s ease-out;
    }

    .reviews-section .section-header {
      padding: 1.75rem 1.5rem 1rem;
      border-bottom: 1px solid var(--border-light);
      background: var(--card-header-bg, var(--card-bg));
      display: flex;
      justify-content: between;
      align-items: center;
      flex-wrap: wrap;
      gap: 1rem;
    }

    .reviews-section h3 {
      margin: 0;
      color: var(--text);
      font-size: 1.5rem;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .reviews-section h3::before {
      content: '';
      font-size: 1.75rem;
    }

    .reviews-stats {
      display: flex;
      align-items: center;
      gap: 1.5rem;
      margin-left: auto;
      flex-wrap: wrap;
    }

    .rating-overview {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      background: rgba(var(--primary-rgb, 123, 63, 0), 0.05);
      padding: 0.5rem 1rem;
      border-radius: 12px;
      border: 1px solid rgba(var(--primary-rgb, 123, 63, 0), 0.1);
    }

    .average-rating {
      font-size: 2rem;
      font-weight: 700;
      color: var(--primary);
      line-height: 1;
    }

    .total-reviews {
      font-size: 0.9rem;
      color: var(--text-light);
      white-space: nowrap;
    }

    .reviews-filters {
      display: flex;
      gap: 0.5rem;
      padding: 1rem 1.5rem;
      background: var(--filter-bg, rgba(0, 0, 0, 0.02));
      border-bottom: 1px solid var(--border-light);
      flex-wrap: wrap;
    }

    .filter-btn {
      padding: 0.5rem 1rem;
      border: 1px solid var(--border);
      background: var(--filter-btn-bg, transparent);
      color: var(--text-light);
      border-radius: 20px;
      font-size: 0.85rem;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .filter-btn:hover,
    .filter-btn.active {
      background: var(--primary);
      color: white;
      border-color: var(--primary);
      transform: translateY(-1px);
      box-shadow: 0 4px 8px rgba(var(--primary-rgb, 123, 63, 0), 0.2);
    }

    .reviews-container {
      max-height: 600px;
      overflow-y: auto;
      scroll-behavior: smooth;
    }

    .reviews-container::-webkit-scrollbar {
      width: 6px;
    }

    .reviews-container::-webkit-scrollbar-track {
      background: var(--scrollbar-track, rgba(0, 0, 0, 0.05));
      border-radius: 3px;
    }

    .reviews-container::-webkit-scrollbar-thumb {
      background: var(--scrollbar-thumb, rgba(0, 0, 0, 0.2));
      border-radius: 3px;
    }

    .reviews-container::-webkit-scrollbar-thumb:hover {
      background: var(--scrollbar-thumb-hover, rgba(0, 0, 0, 0.4));
    }

    .review-item {
      padding: 1.5rem;
      border-bottom: 1px solid var(--border-light);
      transition: all 0.3s ease;
      position: relative;
      animation: fadeInUp 0.5s ease-out;
      animation-fill-mode: both;
    }

    .review-item:hover {
      background: var(--item-hover-bg, rgba(0, 0, 0, 0.02));
      transform: translateX(4px);
    }

    .review-item:last-child {
      border-bottom: none;
    }

    .review-item.highlighted {
      background: rgba(var(--primary-rgb, 123, 63, 0), 0.05);
      border-left: 4px solid var(--primary);
    }

    .review-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 0.75rem;
      gap: 1rem;
    }

    .reviewer-info {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .reviewer-avatar {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-weight: 600;
      font-size: 1.1rem;
      flex-shrink: 0;
    }

    .reviewer-details {
      display: flex;
      flex-direction: column;
    }

    .reviewer-name {
      font-weight: 600;
      color: var(--text);
      margin-bottom: 0.25rem;
    }

    .review-date {
      font-size: 0.85rem;
      color: var(--text-light);
    }

    .review-meta {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      flex-shrink: 0;
    }

    .review-rating {
      display: flex;
      align-items: center;
      gap: 0.25rem;
      background: rgba(var(--primary-rgb, 123, 63, 0), 0.1);
      padding: 0.25rem 0.75rem;
      border-radius: 12px;
      font-weight: 600;
      color: var(--primary);
    }

    .review-rating .star {
      color: #ffc107;
      font-size: 1.1rem;
    }

    .review-actions {
      display: flex;
      gap: 0.5rem;
    }

    .review-action-btn {
      background: transparent;
      border: 1px solid var(--border);
      color: var(--text-light);
      padding: 0.25rem 0.5rem;
      border-radius: 6px;
      font-size: 0.8rem;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .review-action-btn:hover {
      background: var(--primary);
      color: white;
      border-color: var(--primary);
    }

    .review-text {
      color: var(--text);
      line-height: 1.6;
      margin-bottom: 0.75rem;
      position: relative;
    }

    .review-text.expandable {
      max-height: 4.8em;
      overflow: hidden;
      position: relative;
    }

    .review-text.expandable::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 2em;
      background: linear-gradient(transparent, var(--card-bg));
      opacity: 0.9;
    }

    .review-text.expanded {
      max-height: none;
    }

    .review-text.expanded::after {
      display: none;
    }

    .expand-review {
      background: transparent;
      border: none;
      color: var(--primary);
      font-size: 0.85rem;
      cursor: pointer;
      padding: 0.25rem 0;
      margin-top: 0.5rem;
      display: inline-flex;
      align-items: center;
      gap: 0.25rem;
      transition: all 0.2s ease;
    }

    .expand-review:hover {
      color: var(--primary-dark);
      text-decoration: underline;
    }

    .review-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 1rem;
      padding-top: 0.75rem;
      border-top: 1px solid var(--border-light);
    }

    .review-helpful {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      font-size: 0.85rem;
      color: var(--text-light);
    }

    .helpful-btn {
      background: transparent;
      border: 1px solid var(--border);
      color: var(--text-light);
      padding: 0.25rem 0.75rem;
      border-radius: 12px;
      font-size: 0.8rem;
      cursor: pointer;
      transition: all 0.2s ease;
      display: flex;
      align-items: center;
      gap: 0.25rem;
    }

    .helpful-btn:hover {
      background: var(--success-light);
      color: var(--success);
      border-color: var(--success);
    }

    .helpful-btn.active {
      background: var(--success);
      color: white;
      border-color: var(--success);
    }

    .no-reviews {
      text-align: center;
      color: var(--text-light);
      font-style: italic;
      padding: 3rem 2rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1rem;
    }

    .no-reviews .icon {
      font-size: 3rem;
      opacity: 0.5;
    }

    .load-more-reviews {
      text-align: center;
      padding: 1.5rem;
      border-top: 1px solid var(--border-light);
    }

    .btn-load-more {
      background: transparent;
      color: var(--primary);
      border: 1px solid var(--primary);
      padding: 0.75rem 1.5rem;
      border-radius: 25px;
      font-size: 0.9rem;
      cursor: pointer;
      transition: all 0.3s ease;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
    }

    .btn-load-more:hover {
      background: var(--primary);
      color: white;
      transform: translateY(-2px);
      box-shadow: 0 6px 12px rgba(var(--primary-rgb, 123, 63, 0), 0.2);
    }

    .btn-load-more:disabled {
      opacity: 0.6;
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
    }

    .btn-reviews-toggle {
      background: transparent;
      color: var(--primary);
      border: 1px solid var(--primary);
      padding: 0.75rem 1.5rem;
      border-radius: 25px;
      font-size: 0.9rem;
      cursor: pointer;
      margin-left: 10px;
      transition: all 0.3s ease;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      font-weight: 600;
    }

    .btn-reviews-toggle:hover {
      background: var(--primary);
      color: white;
      transform: translateY(-2px);
      box-shadow: 0 6px 12px rgba(var(--primary-rgb, 123, 63, 0), 0.2);
    }

    .rating-input-section {
      margin-top: 2rem;
      padding: 2rem;
      background: var(--white);
      border-radius: 16px;
      border: 1px solid rgba(123, 63, 0, 0.15);
      box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
    }

    .rating-input-section::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: linear-gradient(90deg, var(--primary), var(--secondary));
    }

    .rating-input-section:hover {
      box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
      transform: translateY(-2px);
    }

    .user-reviewed-message {
      background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
      color: #2e7d32;
      padding: 1.25rem;
      border-radius: 12px;
      text-align: center;
      margin-top: 1.5rem;
      display: none;
      border-left: 4px solid #4caf50;
      box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
      animation: slideInUp 0.5s ease-out;
    }

    .user-reviewed-message.show {
      display: block;
    }

    body.dark-mode .user-reviewed-message {
      background: linear-gradient(135deg, #1b3b1b, #142814);
      color: #81c784;
      border-left-color: #4caf50;
      box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
    }

    /* ===== DARK MODE ENHANCEMENTS ===== */
    body.dark-mode .reviews-section {
      box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
      border-color: var(--border-dark);
    }

    body.dark-mode .rating-input-section {
      background: var(--card-bg-dark, #1e1e1e);
      border-color: rgba(255, 255, 255, 0.1);
      box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }

    body.dark-mode .review-item:hover {
      background: var(--item-hover-bg-dark, rgba(255, 255, 255, 0.03));
    }

    body.dark-mode .reviews-filters {
      background: var(--filter-bg-dark, rgba(255, 255, 255, 0.02));
    }

    body.dark-mode .rating-overview {
      background: rgba(var(--primary-rgb, 123, 63, 0), 0.1);
      border-color: rgba(var(--primary-rgb, 123, 63, 0), 0.2);
    }

    /* ===== ANIMATIONS ===== */
    @keyframes slideInUp {
      from {
        opacity: 0;
        transform: translateY(30px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(20px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .review-item:nth-child(1) {
      animation-delay: 0.05s;
    }

    .review-item:nth-child(2) {
      animation-delay: 0.1s;
    }

    .review-item:nth-child(3) {
      animation-delay: 0.15s;
    }

    .review-item:nth-child(4) {
      animation-delay: 0.2s;
    }

    .review-item:nth-child(5) {
      animation-delay: 0.25s;
    }

    /* ===== RESPONSIVE DESIGN ===== */
    @media (max-width: 768px) {
      .reviews-section .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
      }

      .reviews-stats {
        margin-left: 0;
        width: 100%;
        justify-content: space-between;
      }

      .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
      }

      .review-meta {
        width: 100;
        justify-content: space-between;
      }

      .review-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
      }

      .review-helpful {
        width: 100;
        justify-content: space-between;
      }
    }

    @media (max-width: 480px) {
      .reviews-section {
        border-radius: 12px;
        margin: 1rem 0.5rem 0;
      }

      .rating-input-section {
        margin: 1.5rem 0.5rem 0;
        padding: 1.5rem;
      }

      .review-item {
        padding: 1.25rem 1rem;
      }
    }

    /* ===== ACCESSIBILITY ===== */
    @media (prefers-reduced-motion: reduce) {

      .reviews-section,
      .review-item,
      .btn-reviews-toggle,
      .btn-load-more {
        transition: none;
        animation: none;
      }
    }

    /* Focus styles for accessibility */
    .btn-reviews-toggle:focus,
    .btn-load-more:focus,
    .filter-btn:focus,
    .review-action-btn:focus,
    .helpful-btn:focus {
      outline: 2px solid var(--primary);
      outline-offset: 2px;
    }

    /* ===== SUGGESTIONS SECTION ENHANCEMENTS ===== */
    .suggestions-section {
      position: relative;
      margin: 3rem 0;
      padding: 0;
    }

    .section-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 2rem;
      padding: 0 1rem;
    }

    .section-title {
      font-size: clamp(1.5rem, 3vw, 2.25rem);
      font-weight: 800;
      color: var(--text);
      margin: 0;
      position: relative;
      display: inline-flex;
      align-items: center;
      gap: 0.75rem;
    }

    .section-title::after {
      content: '';
      width: 40px;
      height: 4px;
      background: linear-gradient(90deg, var(--primary), var(--secondary));
      border-radius: 2px;
    }

    .section-subtitle {
      font-size: 1rem;
      color: var(--text-light);
      margin-top: 0.5rem;
    }

    .view-all-btn {
      background: transparent;
      color: var(--primary);
      border: 2px solid var(--primary);
      padding: 0.75rem 1.5rem;
      border-radius: 25px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      text-decoration: none;
    }

    .view-all-btn:hover {
      background: var(--primary);
      color: white;
      transform: translateY(-2px);
      box-shadow: 0 8px 20px rgba(var(--primary-rgb, 123, 63, 0), 0.3);
    }

    .suggestions-container {
      position: relative;
      width: 100%;
      overflow: hidden;
    }

    #suggestions {
      display: flex;
      gap: 1.5rem;
      overflow-x: auto;
      padding: 1rem 0.5rem 2rem;
      scroll-behavior: smooth;
      scrollbar-width: none;
      -ms-overflow-style: none;
      scroll-padding: 0 1rem;
    }

    #suggestions::-webkit-scrollbar {
      display: none;
    }

    #suggestions .prod {
      min-width: 280px;
      background: var(--white);
      border-radius: 16px;
      box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 2px 4px rgba(0, 0, 0, 0.02);
      flex-shrink: 0;
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      position: relative;
      overflow: hidden;
      border: 1px solid rgba(0, 0, 0, 0.05);
      animation: fadeInUp 0.6s ease-out;
    }

    #suggestions .prod:hover {
      transform: translateY(-8px);
      box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 8px 16px rgba(0, 0, 0, 0.05);
      border-color: rgba(var(--primary-rgb, 123, 63, 0), 0.2);
    }

    .prod-badge {
      position: absolute;
      top: 12px;
      left: 12px;
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      color: white;
      padding: 0.5rem 0.75rem;
      border-radius: 20px;
      font-size: 0.75rem;
      font-weight: 700;
      z-index: 2;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .prod-badge.popular {
      background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    }

    .prod-badge.new {
      background: linear-gradient(135deg, #4ecdc4, #44a08d);
    }

    .prod-badge.sale {
      background: linear-gradient(135deg, #ffd93d, #ff9c3d);
    }

    .prod-image-container {
      position: relative;
      width: 100%;
      height: 200px;
      overflow: hidden;
      border-radius: 16px 16px 0 0;
    }

    #suggestions .prod-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: all 0.5s ease;
    }

    #suggestions .prod:hover .prod-img {
      transform: scale(1.05);
    }

    .prod-overlay {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.4));
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    #suggestions .prod:hover .prod-overlay {
      opacity: 1;
    }

    .quick-actions {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      display: flex;
      gap: 0.5rem;
      opacity: 0;
      transition: all 0.3s ease;
    }

    #suggestions .prod:hover .quick-actions {
      opacity: 1;
      transform: translate(-50%, -50%) translateY(-10px);
    }

    .quick-btn {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.95);
      border: none;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.3s ease;
      backdrop-filter: blur(10px);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .quick-btn:hover {
      background: var(--primary);
      color: white;
      transform: scale(1.1);
    }

    .prod-content {
      padding: 1.25rem;
    }

    .prod-category {
      font-size: 0.8rem;
      color: var(--text-light);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 0.5rem;
      font-weight: 600;
    }

    .prod-title {
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 0.75rem;
      line-height: 1.4;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .prod-rating {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 0.75rem;
    }

    .prod-rating-stars {
      display: flex;
      gap: 0.1rem;
    }

    .prod-rating i {
      color: #ffc107;
      font-size: 1rem;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }

    .prod-rating-count {
      font-size: 0.85rem;
      color: var(--text-light);
    }

    .prod-price {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      margin-bottom: 1rem;
    }

    .current-price {
      font-size: 1.25rem;
      font-weight: 800;
      color: var(--primary);
    }

    .original-price {
      font-size: 1rem;
      color: var(--text-light);
      text-decoration: line-through;
    }

    .discount {
      background: #ff4757;
      color: white;
      padding: 0.25rem 0.5rem;
      border-radius: 4px;
      font-size: 0.75rem;
      font-weight: 700;
    }

    .prod-features {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-bottom: 1rem;
    }

    .feature-tag {
      background: rgba(var(--primary-rgb, 123, 63, 0), 0.1);
      color: var(--primary);
      padding: 0.25rem 0.5rem;
      border-radius: 4px;
      font-size: 0.75rem;
      font-weight: 600;
    }

    .add-to-cart-btn {
      width: 100%;
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      color: white;
      border: none;
      padding: 0.75rem 1.5rem;
      border-radius: 12px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
    }

    .add-to-cart-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 20px rgba(var(--primary-rgb, 123, 63, 0), 0.4);
    }

    .add-to-cart-btn.added {
      background: linear-gradient(135deg, #4caf50, #45a049);
    }

    /* ===== NAVIGATION CONTROLS ENHANCEMENT ===== */
    .navigation-controls {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 2rem;
      padding: 0 1rem;
    }

    .nav-btn {
      background: var(--white);
      color: var(--primary);
      border: 2px solid var(--primary);
      border-radius: 50%;
      width: 50px;
      height: 50px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      position: relative;
      overflow: hidden;
    }

    .nav-btn::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb, 123, 63, 0), 0.2), transparent);
      transition: left 0.6s ease;
    }

    .nav-btn:hover::before {
      left: 100%;
    }

    .nav-btn:hover:not(:disabled) {
      background: var(--primary);
      color: white;
      transform: scale(1.1);
      box-shadow: 0 8px 20px rgba(var(--primary-rgb, 123, 63, 0), 0.3);
    }

    .nav-btn:disabled {
      background: #f0f0f0;
      color: #ccc;
      border-color: #e0e0e0;
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
    }

    .group-indicator {
      display: flex;
      gap: 0.75rem;
      align-items: center;
    }

    .group-dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background-color: #e0e0e0;
      transition: all 0.3s ease;
      cursor: pointer;
      position: relative;
    }

    .group-dot::before {
      content: '';
      position: absolute;
      top: -4px;
      left: -4px;
      right: -4px;
      bottom: -4px;
      border-radius: 50%;
      background: transparent;
      transition: background 0.3s ease;
    }

    .group-dot:hover::before {
      background: rgba(var(--primary-rgb, 123, 63, 0), 0.1);
    }

    .group-dot.active {
      background-color: var(--primary);
      transform: scale(1.2);
      box-shadow: 0 2px 8px rgba(var(--primary-rgb, 123, 63, 0), 0.3);
    }

    /* ===== PRODUCTS GRID LAYOUT ===== */
    /* استبدل الكود القديم بهذا الكود المحسن */
    .products-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
      gap: 1rem;
    }


    /* 5 أعمدة للشاشات الكبيرة جداً */
    @media (min-width: 1400px) {
      .products-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
      }
    }

    /* 4 أعمدة للشاشات الكبيرة */
    @media (min-width: 1200px) and (max-width: 1399px) {
      .products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }
    }

    /* 3 أعمدة للشاشات المتوسطة */
    @media (min-width: 992px) and (max-width: 1199px) {
      .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
    }

    /* عمودين للشاشات الصغيرة */
    @media (min-width: 768px) and (max-width: 991px) {
      .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    /* عمود واحد للهواتف */
    @media (max-width: 767px) {
      .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
      }
    }

    /* تأكد من أن المنتجات تتكيف بشكل صحيح */
    #suggestions .prod {
      min-width: 0;
      /* هذا مهم لحل مشكلة التكيف */
      width: 100%;
    }

    /* ===== MOBILE OPTIMIZATIONS ===== */
    @media (max-width: 767px) {
      .suggestions-section {
        margin: 2rem 0;
      }

      .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1.5rem;
      }

      .view-all-btn {
        align-self: stretch;
        text-align: center;
      }

      #suggestions {
        gap: 1rem;
        padding: 0.5rem 0.5rem 1.5rem;
        scroll-snap-type: x mandatory;
      }

      #suggestions .prod {
        flex: 0 0 auto;
        min-width: 75%;
        max-width: 90%;
      }


      .navigation-controls {
        margin-top: 1.5rem;
      }

      .nav-btn {
        width: 44px;
        height: 44px;
      }
    }

    /* ===== DARK MODE ENHANCEMENTS ===== */
    body.dark-mode #suggestions .prod {
      background: var(--card-bg-dark, #1e1e1e);
      border-color: rgba(255, 255, 255, 0.1);
      box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.1);
    }

    body.dark-mode #suggestions .prod:hover {
      box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 8px 16px rgba(0, 0, 0, 0.2);
      border-color: rgba(var(--primary-rgb, 123, 63, 0), 0.3);
    }

    body.dark-mode .nav-btn {
      background: var(--card-bg-dark, #1e1e1e);
      border-color: var(--primary);
    }

    body.dark-mode .nav-btn:disabled {
      background: #2a2a2a;
      border-color: #404040;
      color: #666;
    }

    body.dark-mode .group-dot {
      background-color: #404040;
    }

    body.dark-mode .feature-tag {
      background: rgba(var(--primary-rgb, 123, 63, 0), 0.2);
    }

    /* ===== ANIMATIONS ===== */
    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(30px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes pulse {
      0% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb, 123, 63, 0), 0.4);
      }

      70% {
        box-shadow: 0 0 0 10px rgba(var(--primary-rgb, 123, 63, 0), 0);
      }

      100% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb, 123, 63, 0), 0);
      }
    }

    .prod:nth-child(1) {
      animation-delay: 0.1s;
    }

    .prod:nth-child(2) {
      animation-delay: 0.2s;
    }

    .prod:nth-child(3) {
      animation-delay: 0.3s;
    }

    .prod:nth-child(4) {
      animation-delay: 0.4s;
    }

    .prod:nth-child(5) {
      animation-delay: 0.5s;
    }

    /* ===== ACCESSIBILITY ===== */
    @media (prefers-reduced-motion: reduce) {

      #suggestions .prod,
      .nav-btn,
      .quick-btn {
        transition: none;
        animation: none;
      }

      #suggestions {
        scroll-behavior: auto;
      }
    }

    /* Focus styles */
    .prod:focus-within {
      outline: 2px solid var(--primary);
      outline-offset: 2px;
    }

    .nav-btn:focus,
    .quick-btn:focus,
    .add-to-cart-btn:focus {
      outline: 2px solid var(--primary);
      outline-offset: 2px;
    }

    /* ===== LOADING STATES ===== */
    .prod.loading {
      pointer-events: none;
    }

    .prod.loading .prod-img {
      background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
      background-size: 200% 100%;
      animation: loading 1.5s infinite;
    }

    @keyframes loading {
      0% {
        background-position: 200% 0;
      }

      100% {
        background-position: -200% 0;
      }
    }

    /* ===== PERFORMANCE OPTIMIZATIONS ===== */
    .prod-img {
      will-change: transform;
    }

    #suggestions {
      will-change: transform;
    }

    /* ===== PRINT STYLES ===== */
    @media print {

      .navigation-controls,
      .quick-actions,
      .add-to-cart-btn {
        display: none;
      }

      #suggestions {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        overflow: visible;
      }

      #suggestions .prod {
        min-width: auto;
        break-inside: avoid;
      }
    }

    /* تحسين وضوح سكشن المنتج في الفاتح والداكن */
    .card,
    .meta,
    .product-info {
      background: var(--white);
      color: var(--text);
    }

    body.dark-mode .card,
    body.dark-mode .meta,
    body.dark-mode .quantity,
    body.dark-mode .product-info {
      background: #232323;
      color: #f5f5f5;
    }

    body.dark-mode .desc {
      background: #232323;
      color: #f5f5f5;
      border-left: 3px solid var(--secondary);
    }

    .zoom-lens {
      z-index: 9999;
    }

    .gallery-container {
      position: relative;
      z-index: 1;
    }

    /* تحسين عرض المنتجات في الهاتف */

    /* أجهزة اللوحي الصغيرة (800px - 1100px) */
    @media (min-width: 800px) and (max-width: 1100px) {

      /* تحسينات الهيدر */
      .header-content {
        display: grid !important;
        grid-template-columns: auto auto 1fr auto;
        grid-template-areas: "logo menu-btn user-menu auth";
        align-items: center;
        gap: 15px;
        padding: 0 15px !important;
        position: relative;
      }

      .logo {
        grid-area: logo;
        justify-self: start;
      }

      .mobile-menu-btn {
        grid-area: menu-btn;
        display: flex !important;
        justify-self: center;
        margin: 0;
      }

      .user-menu,
      .user-dropdown,
      .cart-icon,
      #userName {
        grid-area: user-menu;
        display: none !important;
        align-items: center;
        gap: 10px;
        justify-self: end;
        min-width: 0;
      }

      #userName {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100px;
        font-size: 14px;
      }

      .auth-buttons {
        grid-area: auth;
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
        justify-self: end;
      }

      .btn-login {
        padding: 8px 14px;
        font-size: 14px;
        min-width: 70px;
      }

      .btn-login i {
        font-size: 12px;
        margin-right: 4px;
      }

      .theme-toggle {
        width: 40px;
        height: 40px;
        margin-left: 6px;
        display: flex !important;
        align-items: center;
        justify-content: center;
      }

      .theme-toggle i {
        font-size: 16px;
      }

      /* إخفاء عربة التسوق للمسؤول */
      body.is-admin .cart-icon {
        display: none !important;
      }

      /* تحسينات التنقل */
      nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        z-index: 999;
        flex-direction: column;
        gap: 15px;
      }

      nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
      }

      nav ul {
        flex-direction: column;
        gap: 15px;
        width: 100%;
      }

      nav a {
        padding: 12px 0;
        font-size: 17px;
        display: block;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
      }

      .btn-order {
        margin: 15px 0 0 0;
        width: 100%;
        text-align: center;
      }

      /* تحسينات قسم البطل */
      .hero {
        min-height: 85vh;
        background-attachment: scroll;
        animation: none;
        padding: calc(var(--header-height) + 30px) 20px 60px;
      }

      body:not(.dark-mode) .hero,
      body.dark-mode .hero {
        --hero-bg: linear-gradient(135deg,
            rgba(0, 0, 0, 0.4),
            rgba(0, 0, 0, 0.2)),
          url("https://images.unsplash.com/photo-1578985545062-69928b1d9587?auto=format&fit=crop&w=1200&q=80") center/cover no-repeat;
      }

      .hero h1 {
        font-size: 2.4rem;
        margin-bottom: 1rem;
      }

      .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        max-width: 90%;
      }

      .btn-hero {
        padding: 14px 28px;
        font-size: 16px;
      }

      /* تحسينات عامة */
      .section-title {
        font-size: 2.2rem;
      }

      .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
      }

      .notifications-panel {
        width: 300px;
        right: -50px;
      }
    }

    @media (max-width: 760px) {
      .logo-icon i {
        font-size: 18px;
        left: 0px;
      }

      .logo-text {
        font-size: 18px;
        left: 0px;
      }

      .auth-buttons {
        gap: 6px;
      }

      .btn-login {
        padding: 6px 12px;
        font-size: 12px;
        min-width: 60px;
      }

      .theme-toggle {
        width: 36px;
        height: 36px;
        margin-left: 6px;
      }

      .theme-toggle i {
        font-size: 14px;
      }
    }

    @media (max-width: 700px) {

      .user-menu,
      .user-dropdown,
      .cart-icon,
      .notification-icon,
      #userName {
        display: none !important;
      }
    }

    @media (max-width: 991.98px) {

      /* Logo on left */
      .logo {
        grid-area: logo;
        justify-self: start;
      }
    }

    /* تحسين عرض المنتجات في الهاتف */
    @media (max-width: 800px) {

      .related-grid,
      #suggestions.related-grid,
      #related.related-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        width: 100% !important;
      }

      .prod {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
      }

      .prod-img {
        width: 100% !important;
        height: auto !important;
        min-height: 160px;
        object-fit: cover;
      }
    }

    /* ===== تحسينات التمرير الأفقي للهاتف ===== */

    /* ===== منع التمرير الأفقي غير المرغوب فيه للصفحة ككل ===== */
    @media (max-width: 768px) {

      html,
      body {
        overflow-x: hidden !important;
        width: 100% !important;
        position: relative !important;
      }

      .container {
        max-width: 100% !important;
        overflow: hidden !important;
      }
    }

    /* ===== تحسينات الهواتف المحمولة (أقل من 768px) ===== */
    @media (max-width: 767.98px) {

      /* تحسينات الهيدر */
      .header-content {
        padding: 0 12px !important;
        gap: 10px;
      }

      .logo {
        flex: 0 0 auto;
      }

      .logo-icon {
        font-size: 24px;
        margin-right: 8px;
      }

      .logo-text {
        font-size: 18px;
      }

      .mobile-menu-btn {
        width: 26px;
        height: 20px;
      }

      .bar {
        height: 2px;
      }

      .auth-buttons {
        gap: 4px;
      }

      .btn-login {
        padding: 6px 10px;
        font-size: 11px;
        min-width: 50px;
      }

      .theme-toggle {
        width: 32px;
        height: 32px;
        margin-left: 4px;
      }

      .theme-toggle i {
        font-size: 12px;
      }

      /* تحسينات الصفحة الرئيسية */
      .container {
        padding: 0 12px;
      }

      main {
        padding: 20px 0;
      }

      /* تحسينات صفحة المنتج */
      .card {
        padding: 15px;
        gap: 20px;
        margin: 10px 0;
      }

      .gallery {
        height: 250px;
        border-radius: 12px;
      }

      .gallery img {
        border-radius: 12px;
      }

      .thumbnails {
        margin-top: 15px;
        gap: 8px;
      }

      .thumbnail {
        width: 50px;
        height: 50px;
        border-radius: 8px;
      }

      .title {
        font-size: 1.4rem;
        margin-bottom: 15px;
      }

      .price-container {
        margin-bottom: 20px;
        gap: 8px;
      }

      .price {
        font-size: 1.4rem;
      }

      .original-price {
        font-size: 1rem;
      }

      .sale-badge {
        padding: 4px 12px;
        font-size: 0.8rem;
      }

      .rating {
        margin-bottom: 20px;
      }

      .stars i {
        font-size: 16px;
      }

      .desc {
        font-size: 0.95rem;
        padding: 15px;
        margin-bottom: 20px;
      }

      .product-info {
        padding: 15px;
        margin-bottom: 20px;
      }

      .actions {
        gap: 10px;
        margin-bottom: 20px;
        flex-direction: column;
      }

      .quantity {
        justify-content: center;
        padding: 8px 12px;
      }

      .quantity-btn {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
      }

      .quantity-input {
        width: 50px;
        font-size: 1rem;
      }

      .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
      }

      /* تحسينات الخبز */
      .breadcrumbs {
        font-size: 0.8rem;
        margin: 15px 0;
      }

      /* تحسينات القسم ذو الصلة */
      .section-title {
        font-size: 1.5rem;
        margin: 30px 0 15px;
      }

      .related-grid {
        gap: 15px;
      }

      .prod {
        min-width: 100%;
      }

      .prod-img {
        height: 160px;
      }

      .prod-content {
        padding: 15px;
      }

      .prod-name {
        font-size: 1rem;
      }

      .prod-price {
        font-size: 1.1rem;
      }

      /* تحسينات التقييمات */
      .rating-input-section {
        padding: 20px 15px;
        margin-top: 20px;
      }

      .rating-input-section h3 {
        font-size: 1.2rem;
      }

      .star-rating-input i {
        font-size: 24px;
      }

      #reviewText,
      #userNamee {
        padding: 10px 12px;
        font-size: 0.9rem;
      }

      #submitRating {
        padding: 12px;
        font-size: 0.9rem;
      }

      .reviews-section {
        margin: 1rem 0 0;
      }

      .reviews-section .section-header {
        padding: 1.25rem 1rem 0.75rem;
      }

      .reviews-section h3 {
        font-size: 1.3rem;
      }

      .review-item {
        padding: 1.25rem 1rem;
      }

      /* تحسينات الفوتر */
      footer {
        padding: 50px 0 25px;
      }

      .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 40px;
      }

      .footer-section {
        text-align: center;
      }

      .footer-section h3 {
        font-size: 1.3rem;
        margin-bottom: 20px;
      }

      .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
      }

      .footer-links {
        text-align: center;
      }

      .footer-links li {
        justify-content: center;
      }

      .footer-social {
        justify-content: center;
      }

      .footer-social a {
        width: 40px;
        height: 40px;
        font-size: 16px;
      }

      .footer-bottom {
        padding-top: 30px;
        font-size: 0.85rem;
      }

      .footer-contact {
        padding: 10px 20px;
        font-size: 0.9rem;
      }

      /* تحسينات الإشعارات */
      .notifications-panel {
        position: fixed;
        top: 70px;
        right: 10px;
        left: 10px;
        width: auto;
        max-height: 70vh;
      }

      .notification-item {
        padding: 12px 14px;
        font-size: 0.9rem;
      }

      /* تحسينات الزر العائم */
      .back-to-top {
        bottom: 80px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 16px;
      }

      /* تحسينات التكبير */
      .zoom-window {
        display: none !important;
      }

      .gallery {
        cursor: pointer;
      }

      /* تحسينات التنقل السفلي */
      .mobile-bottom-nav {
        height: 60px;
        bottom: 10px;
        border-radius: 15px;
        width: 94%;
      }

      .mobile-bottom-nav .nav-btn {
        font-size: 20px;
        padding: 6px;
      }

      /* منع التمرير الأفقي */
      html,
      body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
      }

      .container {
        max-width: 100%;
        overflow: hidden;
      }

      /* تحسينات النصوص الطويلة */
      .prod-name,
      .prod-title {
        -webkit-line-clamp: 2;
        line-clamp: 2;
      }

      .desc {
        white-space: normal;
        line-height: 1.6;
      }
    }

    /* ===== تحسينات إضافية للهواتف الصغيرة جداً (أقل من 400px) ===== */
    @media (max-width: 399.98px) {
      .header-content {
        padding: 0 8px !important;
      }

      .logo-text {
        font-size: 16px;
      }

      .logo-icon {
        font-size: 20px;
        margin-right: 6px;
      }

      .btn-login {
        padding: 5px 8px;
        font-size: 10px;
        min-width: 45px;
      }

      .theme-toggle {
        width: 28px;
        height: 28px;
      }

      .theme-toggle i {
        font-size: 10px;
      }

      .gallery {
        height: 200px;
      }

      .title {
        font-size: 1.2rem;
      }

      .price {
        font-size: 1.2rem;
      }

      .section-title {
        font-size: 1.3rem;
      }

      .prod-img {
        height: 140px;
      }

      .footer-section h3 {
        font-size: 1.1rem;
      }

      .mobile-bottom-nav {
        height: 55px;
      }

      .mobile-bottom-nav .nav-btn {
        font-size: 18px;
      }
    }

    /* ===== تحسينات التوجيه الأفقي للهواتف ===== */
    @media (max-width: 767.98px) and (orientation: landscape) {
      .header-content {
        padding: 0 10px !important;
      }

      .gallery {
        height: 200px;
      }

      .card {
        flex-direction: row;
        gap: 15px;
      }

      .gallery-container {
        flex: 0 0 40%;
      }

      .meta {
        flex: 0 0 55%;
      }

      .actions {
        flex-direction: row;
        flex-wrap: wrap;
      }

      .btn {
        flex: 0 0 calc(50% - 5px);
      }
    }

    /* ===== تحسينات للأجهزة عالية الدقة ===== */
    @media (max-width: 767.98px) and (-webkit-min-device-pixel-ratio: 2) {

      .gallery img,
      .thumbnail img,
      .prod-img {
        image-rendering: -webkit-optimize-contrast;
      }
    }

    /* ===== دعم خاص للآيفون ===== */
    @supports (-webkit-touch-callout: none) {
      @media (max-width: 767.98px) {
        .gallery {
          -webkit-overflow-scrolling: touch;
        }

        .mobile-bottom-nav {
          padding-bottom: env(safe-area-inset-bottom);
        }
      }
    }

    /* ===== تحسينات الأداء للهواتف ===== */
    @media (max-width: 767.98px) {
      .card {
        will-change: transform;
      }

      .gallery img {
        transform: translateZ(0);
      }

      /* تقليل الرسوم المتحركة للأداء */
      .card::before,
      .btn::before,
      .thank-you-message::before {
        animation: none;
        display: none;
      }

      .card:hover {
        transform: none;
      }
    }

    /* ===== دعم وضع التوفير الطاقة ===== */
    @media (prefers-reduced-motion: reduce) and (max-width: 767.98px) {
      * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }

      .gallery:hover img {
        transform: none;
      }
    }

    /* ===== تحسينات الهواتف المحمولة (أقل من 768px) ===== */
    @media (max-width: 767.98px) {

      /* تحسينات الهيدر */
      .header-content {
        padding: 0 12px !important;
        gap: 10px;
      }

      .logo {
        flex: 0 0 auto;
      }

      .logo-icon {
        font-size: 24px;
        margin-right: 8px;
      }

      .logo-text {
        font-size: 18px;
      }

      .mobile-menu-btn {
        width: 26px;
        height: 20px;
      }

      .bar {
        height: 2px;
      }

      .auth-buttons {
        gap: 4px;
      }

      .btn-login {
        padding: 6px 10px;
        font-size: 11px;
        min-width: 50px;
      }

      .theme-toggle {
        width: 32px;
        height: 32px;
        margin-left: 4px;
      }

      .theme-toggle i {
        font-size: 12px;
      }

      /* تحسينات الصفحة الرئيسية */
      .container {
        padding: 0 12px;
      }

      main {
        padding: 20px 0;
      }

      /* تحسينات صفحة المنتج */
      .card {
        padding: 15px;
        gap: 20px;
        margin: 10px 0;
        flex-direction: column;
      }

      .gallery {
        height: 250px;
        border-radius: 12px;
      }

      .gallery img {
        border-radius: 12px;
      }

      .thumbnails {
        margin-top: 15px;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 5px;
      }

      .thumbnail {
        width: 50px;
        height: 50px;
        border-radius: 8px;
        flex-shrink: 0;
      }

      .title {
        font-size: 1.4rem;
        margin-bottom: 15px;
        text-align: center;
      }

      .price-container {
        margin-bottom: 20px;
        gap: 8px;
        justify-content: center;
        flex-direction: column;
        align-items: center;
      }

      .price {
        font-size: 1.4rem;
      }

      .original-price {
        font-size: 1rem;
      }

      .sale-badge {
        padding: 4px 12px;
        font-size: 0.8rem;
      }

      .rating {
        margin-bottom: 20px;
        justify-content: center;
      }

      .stars i {
        font-size: 16px;
      }

      .desc {
        font-size: 0.95rem;
        padding: 15px;
        margin-bottom: 20px;
        text-align: center;
      }

      .product-info {
        padding: 15px;
        margin-bottom: 20px;
      }

      .actions {
        gap: 10px;
        margin-bottom: 20px;
        flex-direction: column;
      }

      .quantity {
        justify-content: center;
        padding: 8px 12px;
        width: 100%;
      }

      .quantity-btn {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
      }

      .quantity-input {
        width: 50px;
        font-size: 1rem;
      }

      .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
        margin: 2px 0;
      }

      /* تحسينات الأزرار الخاصة */
      .btn-add-to-cart,
      .btn-back,
      .btn-wishlist {
        min-height: 44px;
        /* للوصول السهل */
      }

      /* تحسينات الخبز */
      .breadcrumbs {
        font-size: 0.8rem;
        margin: 15px 0;
        justify-content: center;
      }

      /* تحسينات القسم ذو الصلة */
      .section-title {
        font-size: 1.5rem;
        margin: 30px 0 15px;
        text-align: center;
      }

      .related-grid {
        gap: 15px;
        display: flex !important;
        flex-direction: column !important;
      }

      .prod {
        width: 100% !important;
        min-width: 100% !important;
        margin: 0 !important;
      }

      .prod-img {
        height: 160px;
        width: 100%;
      }

      .prod-content {
        padding: 15px;
      }

      .prod-name {
        font-size: 1rem;
      }

      .prod-price {
        font-size: 1.1rem;
      }

      .prod-actions {
        flex-direction: column;
        gap: 8px;
      }

      .btn-view {
        width: 100%;
        text-align: center;
        padding: 10px;
      }

      /* تحسينات التقييمات */
      .rating-input-section {
        padding: 20px 15px;
        margin-top: 20px;
      }

      .rating-input-section h3 {
        font-size: 1.2rem;
        text-align: center;
      }

      .star-rating-input {
        justify-content: center;
      }

      .star-rating-input i {
        font-size: 24px;
      }

      #reviewText,
      #userNamee {
        padding: 10px 12px;
        font-size: 0.9rem;
        width: 100%;
      }

      #submitRating {
        padding: 12px;
        font-size: 0.9rem;
        width: 100%;
      }

      .reviews-section {
        margin: 1rem 0 0;
      }

      .reviews-section .section-header {
        padding: 1.25rem 1rem 0.75rem;
      }

      .reviews-section h3 {
        font-size: 1.3rem;
      }

      .review-item {
        padding: 1.25rem 1rem;
      }

      /* تحسينات الفوتر */
      footer {
        padding: 50px 0 25px;
      }

      .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 40px;
      }

      .footer-section {
        text-align: center;
      }

      .footer-section h3 {
        font-size: 1.3rem;
        margin-bottom: 20px;
      }

      .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
      }

      .footer-links {
        text-align: center;
      }

      .footer-links li {
        justify-content: center;
      }

      .footer-social {
        justify-content: center;
      }

      .footer-social a {
        width: 40px;
        height: 40px;
        font-size: 16px;
      }

      .footer-bottom {
        padding-top: 30px;
        font-size: 0.85rem;
      }

      .footer-contact {
        padding: 10px 20px;
        font-size: 0.9rem;
      }

      /* تحسينات الإشعارات */
      .notifications-panel {
        position: fixed;
        top: 70px;
        right: 10px;
        left: 10px;
        width: auto;
        max-height: 70vh;
      }

      .notification-item {
        padding: 12px 14px;
        font-size: 0.9rem;
      }

      /* تحسينات الزر العائم */
      .back-to-top {
        bottom: 80px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 16px;
      }

      /* تحسينات التكبير */
      .zoom-window {
        display: none !important;
      }

      .gallery {
        cursor: pointer;
      }

      /* تحسينات التنقل السفلي */
      .mobile-bottom-nav {
        height: 60px;
        bottom: 10px;
        border-radius: 15px;
        width: 94%;
      }

      .mobile-bottom-nav .nav-btn {
        font-size: 20px;
        padding: 6px;
        min-height: 44px;
        min-width: 44px;
      }

      /* منع التمرير الأفقي */
      html,
      body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
      }

      .container {
        max-width: 100%;
        overflow: hidden;
      }

      /* تحسينات النصوص الطويلة */
      .prod-name,
      .prod-title {
        -webkit-line-clamp: 2;
        line-clamp: 2;
      }

      .desc {
        white-space: normal;
        line-height: 1.6;
      }

      /* تحسينات خاصة للأزرار المقطوعة */
      .auth-buttons {
        flex-wrap: nowrap;
        min-width: auto;
      }

      .btn-login {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      /* تحسينات الـ suggestions */
      #suggestions {
        flex-direction: column;
        gap: 1rem;
        overflow-x: hidden;
      }

      #suggestions .prod {
        min-width: 100%;
        width: 100%;
      }

      .navigation-controls {
        display: none;
        /* إخفاء عناصر التحكم في الشاشات الصغيرة */
      }
    }

    /* ===== تحسينات إضافية للهواتف الصغيرة جداً (أقل من 400px) ===== */
    @media (max-width: 399.98px) {
      .header-content {
        padding: 0 8px !important;
      }

      .logo-text {
        font-size: 16px;
      }

      .logo-icon {
        font-size: 20px;
        margin-right: 6px;
      }

      .btn-login {
        padding: 5px 8px;
        font-size: 10px;
        min-width: 45px;
      }

      .theme-toggle {
        width: 28px;
        height: 28px;
      }

      .theme-toggle i {
        font-size: 10px;
      }

      .gallery {
        height: 200px;
      }

      .title {
        font-size: 1.2rem;
      }

      .price {
        font-size: 1.2rem;
      }

      .section-title {
        font-size: 1.3rem;
      }

      .prod-img {
        height: 140px;
      }

      .footer-section h3 {
        font-size: 1.1rem;
      }

      .mobile-bottom-nav {
        height: 55px;
      }

      .mobile-bottom-nav .nav-btn {
        font-size: 18px;
        padding: 4px;
      }

      /* تحسينات إضافية للأزرار */
      .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
      }

      .quantity-btn {
        width: 28px;
        height: 28px;
        font-size: 1rem;
      }

      .quantity-input {
        width: 40px;
        font-size: 0.9rem;
      }
    }
.footer-bottom .developer-link {
  font-weight: 600;
  color: var(--primary, #7b3f00); /* يستعمل لون أساسي لو معرف في :root */
  text-decoration: none;
  transition: color 0.3s ease, transform 0.2s ease;
  position: relative;
}

.footer-bottom .developer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.footer-bottom .developer-link:hover {
  color: #e96479; /* لون مميز عند الـ hover */
  transform: translateY(-2px);
}

.footer-bottom .developer-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
    @media (min-width: 900px) {
   
      .theme-toggle {
        width: 40px;
        height: 40px;
        margin-left: 6px;
        display: none !important;
        align-items: center;
        justify-content: center;
      }
    
    }