:root {
  --blue: #274296;
  --purple: #664896;
  --ink: #11162a;
  --muted: #73798c;
  --light: #f7f8fc;
  --white: #fff;
  --line: #e6e9f1;
  --radius: 22px;
  --shadow: 0 20px 60px rgba(17, 22, 42, .10);
  --toast-bg: #274296;
  --toast-text: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Alexandria", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.8;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1240px, calc(100% - 48px));
  margin: auto;
}

.site-header {
  position: fixed;
  top: 15px;
  right: 18px;
  left: 18px;
  height: 72px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  color: #fff;
  transition: .35s;
  background: rgba(10, 15, 30, .10);
  backdrop-filter: blur(12px);
}

.site-header.scrolled {
  background: rgba(255,  ‌255, 255, .94);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .07);
}

.brand img {
  display: block;
  width: auto;
  height: 60px;
  max-height: 60px;
  max-width: 76px;
  object-fit: contain;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.site-header.scrolled .brand img {
  background: transparent;
  filter: none;
}

.desktop-nav {
  display: flex;
  gap: 26px;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
}

.desktop-nav a {
  position: relative;
  padding: 24px 0;
}

.desktop-nav a:after {
  content: "";
  position: absolute;
  bottom: 14px;
  right: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: .3s;
}

.desktop-nav a:hover:after,
.desktop-nav a.active:after {
  width: 100%;
}

.header-actions {
  display: flex;
  gap: 5px;
  align-items: center;
}

.icon-btn,
.menu-btn {
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 22px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover,
.menu-btn:hover {
  background: rgba(127, 127, 127, .1);
}

.cart-trigger,
#wishlistBtn {
  position: relative;
}

.cart-count,
.wish-count {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--purple);
  color: #fff;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 9px;
  display: grid;
  place-items: center;
}

.menu-btn {
  display: none;
}

/* ===== زر تبديل اللغة ===== */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 6px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  padding: 4px 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: .3s;
}

.site-header.scrolled .lang-switch {
  background: var(--light);
  border-color: var(--line);
}

.lang-btn {
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  transition: .3s;
  opacity: 0.5;
  cursor: pointer;
}

.lang-btn.active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.site-header.scrolled .lang-btn.active {
  background: var(--blue);
  color: #fff;
}

.lang-btn:hover {
  opacity: 1;
}

.lang-divider {
  opacity: 0.3;
  font-size: 12px;
  color: inherit;
}

@media(max-width: 520px) {
  .lang-switch {
    font-size: 11px;
    padding: 3px 4px;
  }
  .lang-btn {
    font-size: 10px;
    padding: 3px 8px;
  }
}

.hero {
  min-height: 860px;
  height: 92vh;
  position: relative;
  background: url("https://images.unsplash.com/photo-1616486338812-3dadae4b4ace?auto=format&fit=crop&w=2200&q=90") center/cover;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 8, 18, .78), rgba(12, 18, 36, .30), rgba(12, 18, 36, .18));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 48px));
  margin: auto;
  padding-top: 90px;
}

.eyebrow,
.section-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--blue);
  margin-bottom: 12px;
}

.hero .eyebrow {
  color: #dce4ff;
}

.hero h1 {
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1.15;
  margin: 0 0 20px;
  font-weight: 500;
}

.hero h1 strong {
  font-weight: 800;
}

.hero p {
  font-size: 17px;
  max-width: 550px;
  color: #f2f4f9;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 13px 25px;
  font-weight: 700;
  transition: .25s;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(39, 66, 150, .3);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, .55);
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.btn-ghost:hover {
  background: #fff;
  color: var(--ink);
}

.btn-light {
  background: #fff;
  color: var(--blue);
}

.btn-light:hover {
  transform: translateY(-2px);
}

.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  opacity: .9;
}

.scroll-hint span {
  font-size: 20px;
}

.trust-strip {
  width: min(700px, calc(100% - 48px));
  margin: -35px auto 0;
  position: relative;
  z-index: 4;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 18px 25px;
  gap: 10px;
}

.trust-strip>div {
  display: grid;
  grid-template-columns: 35px 1fr;
  column-gap: 8px;
  align-items: center;
  padding: 5px 12px;
  border-left: 1px solid var(--line);
}

.trust-strip>div:last-child {
  border: 0;
}

.trust-icon {
  grid-row: 1/3;
  color: var(--blue);
  font-size: 20px;
}

.trust-strip b {
  font-size: 13px;
}

.trust-strip small {
  font-size: 10px;
  color: var(--muted);
}

.editorial {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 70px;
  align-items: center;
  padding-top: 130px;
  padding-bottom: 130px;
}

.editorial-copy h2,
.section-head h2,
.jordan-copy h2 {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.3;
  margin: 0 0 20px;
}

.editorial-copy h2 em {
  font-style: normal;
  color: var(--blue);
}

.editorial-copy p {
  color: var(--muted);
  max-width: 510px;
  font-size: 16px;
}

.text-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
}

.editorial-image {
  height: 560px;
  border-radius: 30px;
  background: url("https://images.unsplash.com/photo-1616594039964-ae9021a400a0?auto=format&fit=crop&w=1400&q=85") center/cover;
  box-shadow: var(--shadow);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 30px;
}

.section-head h2 {
  font-size: 40px;
  margin: 0;
}

.categories {
  padding-bottom: 130px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.category-card {
  min-height: 430px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  color: #fff;
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: end;
  transition: transform .3s;
}

.category-card:hover {
  transform: scale(1.02);
}

.category-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 25%, rgba(7, 12, 27, .85));
}

.category-card>div {
  position: relative;
  padding: 28px;
  width: 100%;
}

.category-card span {
  font-size: 12px;
  opacity: .7;
}

.category-card h3 {
  font-size: 25px;
  margin: 6px 0;
}

.category-card p {
  font-size: 12px;
  opacity: .86;
  margin: 0;
}

.cat-mattress {
  background-image: url("sno.png");
}

.cat-pillow {
  background-image: url("pil.jpg");
}

.cat-bed {
  background-image: url("plz.png");
}

.products {
  padding: 80px 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.product-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  transition: .3s;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.product-image {
  height: 310px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.wish {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #fff;
  border: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 20px;
  transition: .3s;
}

.wish.active {
  color: #e74c3c;
}

.wish:hover {
  transform: scale(1.1);
}

.product-info {
  padding: 18px;
}

.product-info h3 {
  font-size: 15px;
  margin: 0 0 6px;
}

.product-info p {
  font-size: 10px;
  color: var(--muted);
  margin: 0 0 12px;
}

.product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price {
  font-weight: 800;
  color: var(--blue);
  font-size: 17px;
}

.add-btn {
  border: 0;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 11px;
  transition: .3s;
}

.add-btn:hover {
  background: var(--blue);
}

.add-btn.added {
  background: #27ae60;
}

.technology {
  background: var(--ink);
  color: #fff;
  padding: 120px 0;
}

.tech-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.tech-image {
  min-height: 600px;
  border-radius: 30px;
  background: url("https://images.unsplash.com/photo-1631049552240-59c37f38802b?auto=format&fit=crop&w=1400&q=85") center/cover;
}

.tech-copy h2 {
  font-size: clamp(38px, 4vw, 60px);
  line-height: 1.25;
  margin: 0 0 18px;
}

.tech-copy>p {
  color: #aeb7ce;
  max-width: 500px;
}

.tech-list {
  margin-top: 45px;
}

.tech-list>div {
  display: grid;
  grid-template-columns: 55px 1fr;
  column-gap: 12px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.tech-list span {
  grid-row: 1/3;
  color: #a9baff;
  font-size: 12px;
}

.tech-list b {
  font-size: 15px;
}

.tech-list small {
  color: #8f99b2;
  font-size: 11px;
}

/* ===== النشرة البريدية ===== */
.newsletter {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: "✉";
  position: absolute;
  font-size: 200px;
  opacity: 0.05;
  left: -30px;
  top: -20px;
  transform: rotate(-15deg);
}

.newsletter-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.newsletter-text {
  flex: 1;
  min-width: 280px;
}

.newsletter-text h2 {
  font-size: 28px;
  margin: 8px 0 5px;
  font-weight: 700;
}

.newsletter-text p {
  color: #d9e0ff;
  font-size: 14px;
  margin: 0;
}

.newsletter form {
  display: flex;
  background: #fff;
  padding: 5px;
  border-radius: 999px;
  min-width: min(450px, 100%);
  flex: 1;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.newsletter input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 14px 22px;
  min-width: 0;
  font-size: 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
}

.newsletter input::placeholder {
  color: #aaa;
}

.newsletter form .btn-light {
  padding: 12px 32px;
  border-radius: 999px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  border: 0;
  transition: .3s;
  white-space: nowrap;
}

.newsletter form .btn-light:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(39, 66, 150, 0.4);
}

#newsletterMessage {
  width: 100%;
  text-align: center;
}

footer {
  background: #0c1227;
  color: #fff;
  padding-top: 70px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
}

.footer-brand img {
  width: 130px;
  filter: none;
  max-height: 50px;
  object-fit: contain;
}

.footer-brand p {
  color: #b8c0d3;
  font-size: 11px;
}

.footer-brand>span {
  font-size: 11px;
  color: #aab8e9;
}

.footer-grid h4 {
  margin: 0 0 15px;
  font-size: 13px;
}

.footer-grid>div:not(.footer-brand) a {
  display: block;
  color: #aab2c5;
  font-size: 11px;
  margin: 8px 0;
  transition: .3s;
}

.footer-grid>div:not(.footer-brand) a:hover {
  color: #fff;
}

.socials {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.socials a {
  border: 1px solid #303a57;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: .3s;
}

.socials a:hover {
  border-color: var(--blue);
  background: var(--blue);
}

.copyright {
  border-top: 1px solid #242d45;
  text-align: center;
  padding: 20px;
  color: #7f899e;
  font-size: 10px;
}

.whatsapp {
  position: fixed;
  bottom: 22px;
  left: 22px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #1fc86b;
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 70;
  font-size: 25px;
  box-shadow: 0 12px 30px rgba(31, 200, 107, .35);
  transition: .3s;
}

.whatsapp:hover {
  transform: scale(1.1);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: #0b1124;
  color: #fff;
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  transform: translateY(-110%);
  transition: .4s;
}

.mobile-menu.open {
  transform: none;
}

.mobile-menu a {
  font-size: 25px;
  font-weight: 600;
}

.close-menu {
  position: absolute;
  top: 25px;
  left: 25px;
  background: transparent;
  color: #fff;
  border: 0;
  font-size: 35px;
}

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 27, .95);
  color: #fff;
  z-index: 90;
  display: none;
  place-items: center;
  text-align: center;
  padding: 30px;
}

.search-overlay.open {
  display: grid;
}

.search-overlay>div {
  width: min(850px, 100%);
}

.search-overlay span {
  display: block;
  color: #9eb0ff;
  margin-bottom: 12px;
}

.search-overlay input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .4);
  color: #fff;
  font-size: 40px;
  outline: 0;
  padding: 15px 0;
  text-align: center;
}

.search-overlay button {
  position: absolute;
  top: 25px;
  left: 30px;
  background: none;
  color: #fff;
  border: 0;
  font-size: 38px;
}

.search-results {
  margin-top: 20px;
  text-align: right;
}

.search-results .result-item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  cursor: pointer;
  transition: .3s;
}

.search-results .result-item:hover {
  color: #9eb0ff;
}

.popular {
  color: #8d97af;
  font-size: 12px;
  margin-top: 25px;
}

.cart-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(430px, 100%);
  background: #fff;
  z-index: 95;
  transform: translateX(-110%);
  transition: .35s;
  display: flex;
  flex-direction: column;
  box-shadow: 20px 0 60px rgba(0, 0, 0, .18);
}

.cart-drawer.open {
  transform: none;
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.cart-head h3 {
  margin: 0;
}

.cart-head button {
  border: 0;
  background: none;
  font-size: 28px;
}

.cart-items {
  padding: 20px;
  flex: 1;
  overflow: auto;
}

.empty-cart {
  text-align: center;
  color: var(--muted);
  padding-top: 80px;
}

.cart-item {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.cart-item img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
}

.cart-item h4 {
  margin: 0;
  font-size: 12px;
}

.cart-item p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 10px;
}

.cart-bottom {
  border-top: 1px solid var(--line);
  padding: 20px;
}

.cart-bottom>div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.full {
  width: 100%;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  z-index: 80;
  display: none;
}

.drawer-backdrop.open {
  display: block;
}

.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--toast-bg);
  color: var(--toast-text);
  padding: 14px 30px;
  border-radius: 12px;
  font-size: 14px;
  z-index: 1000;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .2);
  animation: slideUp .4s ease;
}

.toast.success {
  background: #27ae60;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ===== صفحة تفاصيل المنتج ===== */
.product-detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 200;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 30px;
  backdrop-filter: blur(8px);
}

.product-detail-overlay.open {
  display: flex;
}

.product-detail-modal {
  background: #fff;
  border-radius: 28px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 40px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  animation: modalSlideUp 0.4s ease;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.close-detail {
  position: sticky;
  top: 0;
  float: left;
  background: var(--light);
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  transition: .3s;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-detail:hover {
  background: #e74c3c;
  color: #fff;
  transform: rotate(90deg);
}

.product-detail-content {
  margin-top: 10px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.detail-image {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.detail-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.detail-info h2 {
  font-size: 28px;
  margin: 0 0 8px;
  color: var(--ink);
}

.detail-info .detail-price {
  font-size: 26px;
  font-weight: 800;
  color: var(--blue);
  display: block;
  margin-bottom: 10px;
}

.detail-info .detail-desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.detail-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-specs .spec-item {
  display: flex;
  flex-direction: column;
}

.detail-specs .spec-item b {
  font-size: 13px;
  color: var(--ink);
}

.detail-specs .spec-item span {
  font-size: 11px;
  color: var(--muted);
}

.detail-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.detail-actions .btn {
  flex: 1;
  min-width: 140px;
  justify-content: center;
}

.detail-actions .btn-secondary {
  background: var(--light);
  color: var(--ink);
  border: 1px solid var(--line);
}

.detail-actions .btn-secondary:hover {
  background: var(--ink);
  color: #fff;
}

.detail-sku {
  font-size: 11px;
  color: var(--muted);
  margin-top: 15px;
}

.detail-options {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin: 15px 0;
}

.detail-options select {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  min-width: 140px;
  outline: none;
}

.detail-options select:focus {
  border-color: var(--blue);
}

.detail-price-display {
  font-size: 16px;
  color: var(--muted);
  margin: 10px 0;
}

.detail-price-display strong {
  color: var(--blue);
  font-size: 20px;
}

.detail-buy-now {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  border: 0;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: .3s;
  width: 100%;
  margin-top: 10px;
}

.detail-buy-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(39, 66, 150, 0.3);
}

@media(max-width: 1050px) {
  .desktop-nav {
    gap: 14px;
    font-size: 11px;
  }
  .category-grid,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width: 800px) {
  .site-header {
    top: 10px;
    right: 10px;
    left: 10px;
    padding: 0 15px;
  }
  .desktop-nav {
    display: none;
  }
  .menu-btn {
    display: block;
  }
  .brand img {
    width: 105px;
  }
  .hero {
    min-height: 760px;
    height: 88vh;
  }
  .hero-content {
    padding-top: 80px;
  }
  .hero h1 {
    font-size: 48px;
  }
  .hero p {
    font-size: 14px;
  }
  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 15px 18px;
    margin-top: -30px;
  }
  .trust-strip>div {
    border: 0;
    padding: 3px 8px;
  }
  .editorial,
  .tech-inner {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-top: 90px;
    padding-bottom: 90px;
  }
  .editorial-image,
  .tech-image {
    min-height: 390px;
    height: 390px;
  }
  .section-head {
    align-items: start;
    flex-direction: column;
  }
  .section-head h2 {
    font-size: 32px;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-image {
    height: 230px;
  }
  .newsletter-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .newsletter form {
    min-width: 0;
    flex-direction: column;
    border-radius: 16px;
    padding: 0;
    background: transparent;
    gap: 12px;
  }
  .newsletter input {
    background: #fff;
    border-radius: 999px;
    padding: 14px 20px;
  }
  .newsletter form .btn-light {
    width: 100%;
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .product-detail-modal {
    padding: 25px;
    border-radius: 20px;
  }
  .detail-image img {
    height: 250px;
  }
  .detail-info h2 {
    font-size: 22px;
  }
  .detail-specs {
    grid-template-columns: 1fr 1fr;
  }
  .detail-actions {
    flex-direction: column;
  }
  .detail-actions .btn {
    flex: none;
    width: 100%;
  }
}

@media(max-width: 520px) {
  .container {
    width: min(100% - 28px, 1240px);
  }
  .header-actions .icon-btn:not(.cart-trigger):not(.menu-btn) {
    display: none;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero h1 {
    font-size: 42px;
  }
  .trust-strip {
    width: calc(100% - 28px);
    grid-template-columns: 1fr 1fr;
    padding: 12px 14px;
    gap: 5px;
  }
  .trust-strip>div {
    padding: 3px 6px;
  }
  .trust-icon {
    font-size: 16px;
  }
  .trust-strip b {
    font-size: 11px;
  }
  .trust-strip small {
    font-size: 9px;
  }
  .category-grid {
    grid-template-columns: 1fr;
  }
  .category-card {
    min-height: 300px;
  }
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .product-image {
    height: 190px;
  }
  .product-info {
    padding: 12px;
  }
  .product-info h3 {
    font-size: 12px;
  }
  .price {
    font-size: 14px;
  }
  .add-btn {
    font-size: 9px;
    padding: 7px 9px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1/-1;
  }
  .toast {
    font-size: 12px;
    padding: 12px 20px;
    width: 90%;
  }
  .product-detail-overlay {
    padding: 15px;
  }
  .product-detail-modal {
    padding: 18px;
    border-radius: 16px;
  }
  .detail-specs {
    grid-template-columns: 1fr;
  }
  .detail-options {
    flex-direction: column;
  }
  .detail-options select {
    width: 100%;
  }
}
/* ===== زر المستخدم ===== */
.user-link {
  color: inherit;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 30px;
  transition: .3s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.user-link:hover {
  background: rgba(255, 255, 255, 0.15);
}

.site-header.scrolled .user-link {
  color: var(--ink);
  background: var(--light);
  border-color: var(--line);
}

.site-header.scrolled .user-link:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.user-link.logged-in {
  background: rgba(39, 66, 150, 0.1);
  border-color: var(--blue);
  color: var(--blue);
}

.user-link.logged-in:hover {
  background: var(--blue);
  color: #fff;
}

@media(max-width: 520px) {
  .user-link {
    font-size: 11px;
    padding: 5px 10px;
  }
}
/* ===== زر في القائمة (تسجيل الدخول / حسابي) ===== */
.desktop-nav-link {
  position: relative;
  padding: 24px 0;
  font-size: 13px;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  transition: .3s;
  cursor: pointer;
  background: transparent;
  border: 0;
  font-family: inherit;
}

.desktop-nav-link:after {
  content: "";
  position: absolute;
  bottom: 14px;
  right: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: .3s;
}

.desktop-nav-link:hover:after {
  width: 100%;
}

.desktop-nav-link.logged-in {
  color: inherit;
}

.desktop-nav-link.logged-in:after {
  background: currentColor;
}

.site-header.scrolled .desktop-nav-link.logged-in {
  color: inherit;
}

/* للشاشات الصغيرة */
@media(max-width: 800px) {
  .desktop-nav-link {
    display: none;
  }
}

/* في الموبايل مينو */
.mobile-menu .desktop-nav-link {
  display: block;
  font-size: 25px;
  font-weight: 600;
  padding: 0;
  color: #fff;
}

.mobile-menu .desktop-nav-link:after {
  display: none;
}

.mobile-menu .desktop-nav-link.logged-in {
  color: #aaffaa;
}
/* ASPEN HOME logo: transparent background, clean mark without a sticker-like tile */
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  background: transparent;
  padding: 0;
}
.brand img,
.site-header .brand img,
.site-header.scrolled .brand img,
.footer-brand img {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
@media (max-width: 700px) {
  .brand img { height: 52px; max-height: 52px; max-width: 70px; }
}

/* Clean adaptive ASPEN HOME logo in the glass header */
.site-header .brand,
.site-header .brand img,
.site-header.scrolled .brand,
.site-header.scrolled .brand img {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.site-header .brand { padding: 0 !important; display:flex; align-items:center; }
@media (max-width: 700px) {
  .site-header .brand img { height: 54px; max-height:54px; max-width:68px; }
}

/* Final contrast fix for the adaptive header logo */
.site-header .brand img {
  display: block !important;
  object-fit: contain !important;
  background: transparent !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
  filter: none !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
}

/* ASPEN transparent logo supplied for dark hero/header */
.site-header .brand img {
  display: block !important;
  width: auto !important;
  height: 60px !important;
  max-height: 60px !important;
  max-width: 76px !important;
  object-fit: contain !important;
  background: transparent !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
  filter: none !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

/* One consistent original ASPEN logo everywhere */
.site-header .brand img,
.site-header.scrolled .brand img {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  object-fit: contain !important;
}

/* Adaptive ASPEN logo contrast: white wordmark on dark hero, original on white header */
.site-header .brand img,
.site-header.scrolled .brand img {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  object-fit: contain !important;
}


/* Interactive bedroom category selector on the homepage */
.interactive-categories {
  padding-top: 8px;
  padding-bottom: 105px;
}
.interactive-categories-head {
  margin-bottom: 26px;
}
.interactive-categories-head h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3vw, 42px);
  color: var(--navy, #11172d);
}
.interactive-categories-head p {
  margin: 0;
  color: #777d8e;
  font-size: 13px;
}
.interactive-bedroom {
  isolation: isolate;
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 28px;
  background: #e9e1d9;
  box-shadow: 0 24px 65px rgba(19, 25, 48, .13);
  aspect-ratio: 1672 / 941;
}
.interactive-bedroom-base,
.interactive-spotlight,
.interactive-bedroom-dimmer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.interactive-bedroom-base,
.interactive-spotlight {
  display: block;
  object-fit: cover;
  object-position: center;
}
.interactive-bedroom-dimmer {
  z-index: 1;
  pointer-events: none;
  background: rgba(10, 14, 30, .32);
  opacity: 0;
  transition: opacity .25s ease;
}
.interactive-spotlight {
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  filter: brightness(1.055) saturate(1.025) contrast(1.005);
  transition: opacity .22s ease;
}
.spotlight-pillows {
  clip-path: polygon(28% 22%, 72% 22%, 74% 46%, 28% 46%);
}
.spotlight-mattress {
  /* Match the visible mattress silhouette: rear edge, sloped sides, and front/base edge. */
  clip-path: polygon(30% 41%, 70% 41%, 80% 60%, 80% 75%, 20% 75%, 20% 60%);
  /* Slightly softer edge so the selected area blends into the photograph. */
  filter: brightness(1.035) saturate(1.02);
}
.spotlight-bedframe {
  clip-path: polygon(18% 75%, 82% 75%, 83% 88%, 18% 88%);
}
.interactive-bedroom:has(.interactive-hotspot:hover) .interactive-bedroom-dimmer,
.interactive-bedroom:has(.interactive-hotspot:focus-visible) .interactive-bedroom-dimmer {
  opacity: 1;
}
.interactive-bedroom:has(.hotspot-pillows:hover) .spotlight-pillows,
.interactive-bedroom:has(.hotspot-pillows:focus-visible) .spotlight-pillows,
.interactive-bedroom:has(.hotspot-mattress:hover) .spotlight-mattress,
.interactive-bedroom:has(.hotspot-mattress:focus-visible) .spotlight-mattress,
.interactive-bedroom:has(.hotspot-bedframe:hover) .spotlight-bedframe,
.interactive-bedroom:has(.hotspot-bedframe:focus-visible) .spotlight-bedframe {
  opacity: 1;
}
.interactive-hotspot {
  position: absolute;
  z-index: 4;
  display: block;
  color: #fff;
  text-decoration: none;
  outline: none;
}
.hotspot-pillows {
  z-index: 6;
  left: 28%; top: 22%; width: 46%; height: 21%;
  clip-path: polygon(4% 10%, 96% 10%, 100% 95%, 0 95%);
}
.hotspot-mattress {
  z-index: 5;
  left: 17%; top: 41%; width: 66%; height: 34%;
  /* Clickable area follows the mattress outline instead of a rectangular box. */
  clip-path: polygon(19.7% 0, 80.3% 0, 95.5% 56%, 95.5% 100%, 4.5% 100%, 4.5% 56%);
}
.hotspot-mattress::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1.5px solid rgba(255, 255, 255, .82);
  border-radius: 2px;
  clip-path: polygon(19.7% 0, 80.3% 0, 95.5% 56%, 95.5% 100%, 4.5% 100%, 4.5% 56%);
  filter: drop-shadow(0 0 3px rgba(174, 169, 255, .75));
  opacity: 0;
  transition: opacity .2s ease;
}
.interactive-bedroom:has(.hotspot-mattress:hover) .hotspot-mattress::after,
.interactive-bedroom:has(.hotspot-mattress:focus-visible) .hotspot-mattress::after {
  opacity: 1;
}
.hotspot-bedframe {
  z-index: 4;
  left: 17%; top: 75%; width: 66%; height: 15%;
  clip-path: polygon(2% 0, 98% 0, 96% 88%, 5% 88%);
}
.hotspot-label {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translate(-50%, -7px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: max-content;
  max-width: calc(100vw - 36px);
  padding: 11px 20px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 14px;
  background: rgba(20, 28, 58, .88);
  box-shadow: 0 10px 35px rgba(0,0,0,.2);
  font-weight: 700;
  font-size: clamp(14px, 1.6vw, 23px);
  text-align: center;
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
  backdrop-filter: blur(10px);
}
.hotspot-label small {
  font-size: .62em;
  font-weight: 500;
  letter-spacing: .02em;
  opacity: .88;
  direction: ltr;
}
.interactive-hotspot:hover .hotspot-label,
.interactive-hotspot:focus-visible .hotspot-label {
  opacity: 1;
  transform: translate(-50%, 0);
}
.interactive-hotspot:focus-visible .hotspot-label {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.hotspot-mattress .hotspot-label { top: 18%; }
.hotspot-bedframe .hotspot-label { top: 3%; }
@media (max-width: 800px) {
  .interactive-categories { padding-bottom: 72px; }
  .interactive-bedroom { border-radius: 18px; }
  .hotspot-label {
    opacity: 1;
    transform: translate(-50%, 0);
    padding: 7px 10px;
    border-radius: 10px;
    font-size: clamp(10px, 2.5vw, 15px);
    background: rgba(20, 28, 58, .78);
  }
  .hotspot-pillows { left: 28%; top: 22%; width: 46%; height: 21%; }
  .hotspot-mattress { left: 17%; top: 41%; width: 66%; height: 34%; }
  .hotspot-bedframe { left: 17%; top: 75%; width: 66%; height: 15%; }
  .hotspot-label small { font-size: .72em; }
}
@media (max-width: 520px) {
  .interactive-categories-head { margin-bottom: 18px; }
  .interactive-bedroom { border-radius: 13px; }
  .hotspot-label { padding: 5px 7px; font-size: 10px; gap: 1px; }
  .hotspot-bedframe .hotspot-label { top: -5%; }
}
@media (prefers-reduced-motion: reduce) {
  .interactive-bedroom-dimmer, .interactive-spotlight, .hotspot-label { transition: none; }
}

.categories { padding-bottom: 65px; }
