﻿:root {
  --bg: #f4efe9;
  --ink: #2c1e14;
  --muted: #6f6258;
  --accent: #a35a2f;
  --accent-2: #ead7c2;
  --card: #fdf8f3;
  --shadow: rgba(44, 30, 20, 0.12);
  --overlay: rgba(244, 239, 233, 0.78);
  --line: #e1d7cd;
  --soft: #fff7f1;
  --soft-2: #fffaf6;
  --star-muted: #e9dfd3;
  --chip-bg: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

@media (prefers-reduced-motion: no-preference) {
  :root {
    --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  }
}

body {
  margin: 0;
  font-family: "Archivo", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #fff3e6 0%, var(--bg) 45%, #efe5d8 100%);
}

[dir="rtl"] body {
  font-family: "Tajawal", "Cairo", "Archivo", sans-serif;
}

html.no-transition *,
html.no-transition *::before,
html.no-transition *::after {
  transition: none !important;
  animation: none !important;
}

.page.lang-pulse {
  animation: langPulse 0.45s ease-in-out;
}

@keyframes langPulse {
  from {
    opacity: 0.8;
  }
  to {
    opacity: 1;
  }
}


body.modal-open {
  overflow: hidden;
}

body.dark {
  --bg: #0f0e0c;
  --ink: #f4efe9;
  --muted: #c1b7ad;
  --card: #1a1917;
  --shadow: rgba(0, 0, 0, 0.55);
  --overlay: rgba(10, 10, 10, 0.7);
  --line: #3a332c;
  --soft: #1f1c19;
  --soft-2: #191714;
  --star-muted: #3f3831;
  --chip-bg: #0f0e0c;
}

.page {
  min-height: 100vh;
}

.bg-image {
  position: fixed;
  inset: -10%;
  background-image: url("assets/background.jpg");
  background-size: cover;
  background-position: center;
  filter: blur(4px) brightness(0.75);
  transform: translateY(0);
  z-index: -2;
}

body.dark .bg-image {
  filter: blur(4px) brightness(0.55);
}

.bg-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 8vw;
  position: sticky;
  top: 0;
  background: rgba(244, 239, 233, 0.92);
  backdrop-filter: blur(8px);
  z-index: 10;
  gap: 16px;
  flex-wrap: wrap;
}

body.dark .site-header {
  background: rgba(12, 12, 12, 0.85);
}

.logo {
  font-family: "Fraunces", "Georgia", serif;
  font-size: 26px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

[dir="rtl"] .logo span {
  font-family: "Tajawal", "Cairo", "Archivo", sans-serif;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.logo-mark {
  width: clamp(48px, 6vw, 80px);
  height: clamp(48px, 6vw, 80px);
  object-fit: contain;
}

.logo img {
  width: clamp(48px, 6vw, 80px);
  height: clamp(48px, 6vw, 80px);
  object-fit: contain;
  flex-shrink: 0;
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.action-menu {
  position: relative;
}

.menu-toggle {
  min-width: 44px;
  padding: 8px 12px;
  font-size: 16px;
}

.action-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 35px var(--shadow);
  padding: 12px;
  display: none;
  z-index: 30;
}

.action-panel.show {
  display: grid;
  gap: 10px;
}

.action-panel .ghost,
.action-panel .lang-toggle,
.action-panel .theme-toggle,
.action-panel .notif-button {
  width: 100%;
  justify-content: center;
}

.action-panel .notif-wrap {
  width: 100%;
}

.action-panel .notif-panel {
  right: 0;
}

.lang-toggle {
  min-width: 44px;
  padding: 8px 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.theme-toggle {
  min-width: 44px;
  padding: 8px 12px;
  font-size: 16px;
}

button {
  font-family: inherit;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
    background-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}

.ghost {
  background: transparent;
  border: 1px solid var(--muted);
  color: var(--ink);
}

.cart {
  background: var(--ink);
  color: white;
}

.cart span {
  background: var(--accent);
  color: white;
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 6px;
  font-size: 12px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  gap: 40px;
  padding: 60px 8vw 40px;
}

.hero-copy h1 {
  font-family: "Fraunces", "Georgia", serif;
  font-size: clamp(42px, 6vw, 76px);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 12px 0 16px;
}

.lead {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 14px 30px var(--shadow);
}

.secondary {
  background: var(--accent-2);
  color: var(--ink);
}

.hero-media img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 30px 60px var(--shadow);
}

.promo-banner {
  margin: 0 8vw 40px;
  border-radius: 28px;
  min-height: 320px;
  background-image: url("assets/products/hero.svg");
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 50px var(--shadow);
}

.promo-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(25, 18, 14, 0.85), rgba(25, 18, 14, 0.15));
}

.showcase-hero {
  padding: 40px 8vw 10px;
}

.showcase-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(180px, 1fr));
  gap: 20px;
}

.hero-card {
  background: var(--card);
  border-radius: 26px;
  box-shadow: 0 18px 35px var(--shadow);
  overflow: hidden;
  display: grid;
  position: relative;
}

.hero-card-large {
  grid-row: 1 / 3;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 1.1fr);
  align-items: stretch;
}

.hero-card-small {
  grid-template-columns: 1fr 1fr;
  min-height: 200px;
}

.hero-card-content {
  padding: 28px;
  display: grid;
  gap: 12px;
  align-content: center;
}

.hero-card-content h2 {
  font-family: "Fraunces", "Georgia", serif;
  font-size: clamp(28px, 3vw, 46px);
  margin: 0;
}

.hero-card-content h3 {
  margin: 0;
  font-size: 22px;
}

.hero-card-media {
  position: relative;
  overflow: hidden;
  background: #efe5d8;
}

.hero-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-card-large .hero-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.25), transparent);
}

@media (max-width: 1024px) {
  .showcase-hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .hero-card-large,
  .hero-card-small {
    grid-row: auto;
    grid-template-columns: 1fr;
  }
}

.promo-content {
  position: relative;
  z-index: 1;
  color: #fdf8f3;
  padding: 48px;
  max-width: 420px;
  display: grid;
  gap: 16px;
}

body.dark .promo-banner::after {
  background: linear-gradient(90deg, rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.2));
}

.section {
  padding: 60px 8vw;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.category-card {
  background: var(--card);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 35px var(--shadow);
  text-align: center;
  padding-bottom: 18px;
}

.category-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.category-card h3 {
  margin: 16px 0 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.filters input,
.filters select {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #e1d7cd;
  font-family: inherit;
  background: white;
}

.highlight-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.showcase .product-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
}

.showcase {
  padding-top: 0;
}

.showcase-layout {
  display: grid;
  grid-template-columns: minmax(240px, 1.05fr) minmax(0, 3fr);
  gap: 24px;
}

.showcase-sidebar {
  order: 1;
  display: grid;
  gap: 20px;
}

.showcase-panel {
  background: var(--card);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 16px 28px var(--shadow);
  display: grid;
  gap: 12px;
}

.showcase-panel h4 {
  margin: 0;
}

.showcase-panel.banner {
  background: linear-gradient(135deg, rgba(163, 90, 47, 0.15), rgba(234, 215, 194, 0.85)),
    url("assets/products/hero.svg") center/cover;
  min-height: 220px;
  color: var(--ink);
}

.mini-list {
  display: grid;
  gap: 14px;
}

.mini-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  cursor: pointer;
}

.mini-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--soft);
}

.mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mini-meta h5 {
  margin: 0;
  font-size: 15px;
}

.mini-meta .price {
  font-size: 13px;
}

.showcase-main {
  order: 2;
  display: grid;
  gap: 28px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: minmax(220px, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--card);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 18px 35px var(--shadow);
  display: grid;
  align-content: space-between;
  background-size: cover;
  background-position: center;
}

.feature-card.feature-large {
  grid-row: auto;
  background-image: linear-gradient(120deg, rgba(44, 30, 20, 0.55), rgba(44, 30, 20, 0)),
    url("assets/categories/women.jpg");
  color: #fdf8f3;
}

.feature-card.feature-small {
  background-color: var(--card);
  min-height: 220px;
}

.categories-showcase {
  padding-top: 0;
}

.category-circles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  align-items: center;
}

.category-circle {
  border-radius: 999px;
  padding: 0;
  display: grid;
  gap: 14px;
  align-items: center;
  justify-items: center;
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-circle.is-active {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px var(--shadow);
  outline: 2px solid var(--accent);
}

.category-circle img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
}

.promo-wide {
  padding-top: 0;
}

.promo-wide-card {
  background: linear-gradient(120deg, rgba(44, 30, 20, 0.7), rgba(44, 30, 20, 0.1)),
    url("assets/background.jpg") center/cover;
  color: #fdf8f3;
  border-radius: 28px;
  padding: 36px;
  box-shadow: 0 20px 45px var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.service-card {
  background: var(--card);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 16px 28px var(--shadow);
  text-align: center;
}

.service-card h4 {
  margin: 0 0 8px;
}

.blog {
  padding-bottom: 20px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.blog-card {
  background: var(--card);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 35px var(--shadow);
  display: grid;
}

.blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.blog-card div {
  padding: 16px;
  display: grid;
  gap: 8px;
}

.feature-card.feature-small .eyebrow {
  color: var(--accent);
}

@media (max-width: 1024px) {
  .showcase-layout {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .feature-card.feature-large {
    grid-row: auto;
  }
}

.product {
  background: var(--card);
  border-radius: 24px;
  box-shadow: 0 18px 35px var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
}

.product-media {
  height: 240px;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-info {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.tag {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  font-weight: 700;
}

.price {
  font-weight: 700;
  font-size: 18px;
}

.add {
  border-radius: 14px;
  background: var(--ink);
  color: white;
  margin-top: auto;
}

.add:hover,
.primary:hover,
.secondary:hover,
.ghost:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px var(--shadow);
}

.product,
.category-card,
.collections-banner,
.contact-card,
.story-card {
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.product:hover,
.category-card:hover,
.collections-banner:hover,
.contact-card:hover,
.story-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 40px var(--shadow);
}

.nav a,
.footer-links a {
  transition: color 0.25s var(--ease-out), letter-spacing 0.25s var(--ease-out);
}

.nav a:hover,
.footer-links a:hover {
  color: var(--ink);
  letter-spacing: 1.2px;
}

.admin-panel.show,
.payment-panel.show,
.auth-panel.show {
  animation: modalFade 0.35s var(--ease-out);
}

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

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

.collections {
  padding-top: 0;
}

.collections-banner {
  background: var(--card);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 18px 35px var(--shadow);
  display: grid;
  gap: 20px;
}

.collections-chips {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.collections-chips span {
  background: #fff2e5;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
}

.story {
  background: rgba(32, 27, 22, 0.92);
  color: white;
}

.story-card {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 30px;
  padding: 40px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
}

.story .eyebrow {
  color: var(--accent-2);
}

.story .lead,
.story .stat-label {
  color: rgba(255, 255, 255, 0.7);
}

.story-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.contact {
  padding-bottom: 80px;
}

.contact-card {
  background: var(--card);
  border-radius: 28px;
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  box-shadow: 0 20px 45px var(--shadow);
}

.contact-form {
  display: grid;
  gap: 12px;
}

input,
textarea,
select {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #e1d7cd;
  font-family: inherit;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 8vw 48px;
  border-top: 1px solid #e1d7cd;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(380px, 92vw);
  height: 100%;
  background: var(--card);
  box-shadow: -20px 0 40px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 40;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid #eee3d8;
}

.cart-items {
  padding: 20px;
  display: grid;
  gap: 16px;
  overflow-y: auto;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
}

.cart-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: #f2ebe2;
  overflow: hidden;
}

.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qty {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty button {
  border-radius: 999px;
  padding: 4px 10px;
  background: #f3e1d3;
}

.qty .cart-add {
  background: var(--ink);
  color: white;
  padding: 6px 12px;
}

.cart-summary {
  padding: 20px;
  border-top: 1px solid #eee3d8;
  display: grid;
  gap: 12px;
}

.payment-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: #fff7f1;
  border: 1px solid #f3e1d3;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.payment-option input {
  accent-color: var(--accent);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 30;
}

.overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.product-panel {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: start center;
  padding: 36px 4vw 48px;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 52;
  overflow-y: auto;
}

.product-panel.show {
  opacity: 1;
  pointer-events: auto;
}

.product-card-lg {
  position: relative;
  background: var(--card);
  width: min(1180px, 96vw);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
  display: grid;
  gap: 24px;
}

.product-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(340px, 1.08fr) 1fr;
  gap: 28px;
  align-items: start;
}

.product-gallery {
  display: grid;
  gap: 12px;
}

.product-main {
  min-height: 420px;
  border-radius: 24px;
  background: linear-gradient(135deg, #f6e7d6, #ead7c2);
  overflow: hidden;
  box-shadow: 0 18px 36px var(--shadow);
  display: grid;
  place-items: center;
}

.product-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 10px;
}

.thumb {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: var(--soft);
  padding: 4px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.thumb:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.thumb.is-active {
  border-color: var(--ink);
}

.thumb img,
.thumb .thumb-fallback {
  width: 100%;
  height: 82px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.product-meta h3 {
  margin: 6px 0 8px;
  font-size: 28px;
}

.product-note {
  margin: 0;
  color: var(--muted);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 4px;
}

.stars {
  display: inline-flex;
  gap: 2px;
  font-size: 18px;
  color: var(--star-muted);
}

.star.filled {
  color: var(--accent);
}

.rating-value {
  font-weight: 700;
}

.rating-count {
  color: var(--muted);
  font-size: 14px;
}

.option-group {
  margin: 14px 0;
  display: grid;
  gap: 10px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--chip-bg);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.chip.is-active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
  box-shadow: 0 10px 22px var(--shadow);
}

.chip:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.qty-large {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--soft-2);
  font-weight: 700;
}

.qty-large button {
  background: #f3e1d3;
  padding: 8px 12px;
  border-radius: 10px;
}

.qty-large button:last-child {
  background: var(--ink);
  color: white;
}

.shipping-note {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 600;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.product-suggest {
  background: transparent;
  padding-bottom: 6px;
}

.product-grid-compact .product-media {
  height: 160px;
}

.product-grid-compact .product-info {
  gap: 6px;
}

.admin-panel,
.payment-panel {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 50;
}

.payment-panel {
  z-index: 55;
}

.admin-panel.show,
.payment-panel.show,
.auth-panel.show {
  opacity: 1;
  pointer-events: auto;
}

.admin-card,
.payment-card {
  width: min(720px, 92vw);
  background: var(--card);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 90vh;
  overflow: hidden;
}

.admin-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.tab-button.is-active {
  background: var(--ink);
  color: white;
}

.tab-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tab-alerts {
  position: relative;
  padding-right: 36px;
}

.icon-bell {
  display: inline-flex;
  width: 18px;
  height: 18px;
}

.icon-bell svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.badge {
  position: absolute;
  right: 10px;
  top: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.badge.is-hidden {
  display: none;
}

.notif-wrap {
  position: relative;
}

.notif-button {
  position: relative;
}

.notif-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(320px, 90vw);
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 18px 35px var(--shadow);
  padding: 12px;
  display: none;
  z-index: 20;
}

.notif-panel.show {
  display: grid;
  gap: 10px;
}

.notif-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
}

.notif-item {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff7f1;
  cursor: pointer;
}

.notif-item strong {
  font-size: 14px;
}

.notif-item small {
  color: var(--muted);
}

.admin-tab {
  display: none;
}

.admin-tab.is-active {
  display: grid;
  gap: 16px;
  overflow-y: auto;
  padding-right: 4px;
  flex: 1;
  min-height: 0;
  animation: tabFade 0.28s ease-in-out;
  will-change: opacity;
}

@keyframes tabFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.inventory-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.inventory-filters input,
.inventory-filters select {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #e1d7cd;
  font-family: inherit;
  background: white;
}

.inventory-row {
  display: grid;
  grid-template-columns: 1fr repeat(3, minmax(90px, 120px)) auto;
  gap: 10px;
  align-items: center;
}

.inventory-row input {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #e1d7cd;
  font-family: inherit;
  background: white;
}

.inventory-row input::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.admin-form input::placeholder,
.admin-form textarea::placeholder,
.admin-form select::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.inventory-row .profit {
  font-weight: 700;
}

@media (max-width: 720px) {
  .site-header {
    padding: 14px 4vw;
  }

  .logo {
    font-size: 22px;
  }

  .logo img {
    width: 52px;
    height: 52px;
  }

  .actions {
    gap: 8px;
  }
  .inventory-row {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

.auth-panel {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 55;
}

.auth-card {
  width: min(520px, 92vw);
  background: var(--card);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
  display: grid;
  gap: 16px;
}

.auth-form {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: #fff7f1;
  border: 1px solid #f3e1d3;
}

.auth-form.is-hidden {
  display: none;
}

.auth-form .linklike {
  border: none;
  padding: 0;
  justify-self: start;
  text-decoration: underline;
  background: transparent;
}

.auth-form h4 {
  margin: 0;
}

.auth-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-notifications {
  padding: 12px;
  border-radius: 16px;
  background: #fffaf6;
  border: 1px solid #f3e1d3;
  display: grid;
  gap: 8px;
}

.auth-notifications h4 {
  margin: 0;
  font-size: 1rem;
}

.auth-notifications-list {
  display: grid;
  gap: 8px;
  max-height: 180px;
  overflow: auto;
}

.auth-notification-item {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #f0dfd1;
}

.auth-notification-item small {
  opacity: 0.7;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.admin-form textarea {
  grid-column: 1 / -1;
  min-height: 80px;
}

.admin-form input[type="file"],
.payment-form input[type="file"] {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed #e1d7cd;
  background: #fffaf6;
  font-family: inherit;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 16px;
  background: #fff7f1;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.role-admin {
  background: #2c1e14;
  color: #fff7f1;
}

.role-management {
  background: #a35a2f;
  color: white;
}

.role-staff {
  background: #ead7c2;
  color: #2c1e14;
}

.role-customer {
  background: #f4efe9;
  color: #6f6258;
}

.admin-item button {
  background: var(--ink);
  color: white;
  border-radius: 12px;
  padding: 6px 12px;
}

.admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.payment-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  background: #fff7f1;
  border: 1px solid #f3e1d3;
  border-radius: 16px;
  padding: 16px;
}

.payment-value {
  font-size: 22px;
  font-weight: 700;
  margin: 6px 0 10px;
}

.payment-form {
  display: grid;
  gap: 12px;
}

.payment-list-item {
  display: grid;
  gap: 6px;
  padding: 12px 16px;
  border-radius: 16px;
  background: #f5f1ec;
}

.payment-thumb {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  background: #e9dfd3;
}

.payment-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

[dir="rtl"] body {
  font-family: "Tajawal", "Cairo", "Tahoma", "Arial", sans-serif;
}

[dir="rtl"] .logo,
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] .eyebrow,
[dir="rtl"] .stat,
[dir="rtl"] .price,
[dir="rtl"] button {
  font-family: "Tajawal", "Cairo", "Tahoma", "Arial", sans-serif;
}

[dir="rtl"] .site-header {
  flex-direction: row-reverse;
}

[dir="rtl"] .logo {
  order: 3;
}

[dir="rtl"] .nav {
  order: 2;
}

[dir="rtl"] .actions {
  order: 1;
}

[dir="rtl"] .nav,
[dir="rtl"] .actions {
  flex-direction: row-reverse;
}

[dir="rtl"] .nav {
  flex-direction: row;
  direction: rtl;
  justify-content: flex-end;
}

[dir="rtl"] .hero-copy,
[dir="rtl"] .split-copy,
[dir="rtl"] .story-card,
[dir="rtl"] .contact-card,
[dir="rtl"] .section-header,
[dir="rtl"] .site-footer {
  text-align: right;
}

[dir="rtl"] .cart span {
  margin-left: 0;
  margin-right: 6px;
}

[dir="rtl"] .cart-drawer {
  right: auto;
  left: 0;
  transform: translateX(-100%);
}

[dir="rtl"] .cart-drawer.open {
  transform: translateX(0);
}

[dir="rtl"] .cart-item {
  grid-template-columns: auto 1fr 64px;
}

[dir="rtl"] .filters,
[dir="rtl"] .section-header,
[dir="rtl"] .admin-header {
  flex-direction: row-reverse;
}

[dir="rtl"] .showcase-layout {
  direction: rtl;
}

[dir="rtl"] .showcase-sidebar {
  order: 2;
}

[dir="rtl"] .showcase-main {
  order: 1;
}

[dir="rtl"] .showcase-hero-grid {
  direction: rtl;
}

[dir="rtl"] .hero-card-content {
  text-align: right;
}

[dir="rtl"] .hero-card-large .hero-card-media::after {
  background: linear-gradient(270deg, rgba(0, 0, 0, 0.25), transparent);
}

[dir="rtl"] .promo-wide-card,
[dir="rtl"] .service-card,
[dir="rtl"] .blog-card div {
  text-align: right;
}

[dir="rtl"] .showcase-panel,
[dir="rtl"] .mini-meta {
  text-align: right;
}

[dir="rtl"] .mini-item {
  grid-template-columns: 1fr 64px;
}

[dir="rtl"] .product-meta {
  text-align: right;
}

[dir="rtl"] .product-detail-grid {
  direction: rtl;
}

[dir="rtl"] .product-gallery {
  order: 2;
}

[dir="rtl"] .product-meta {
  order: 1;
}

[dir="rtl"] .product-rating,
[dir="rtl"] .chip-row,
[dir="rtl"] .product-actions {
  flex-direction: row-reverse;
}

[dir="rtl"] .product-close {
  right: auto;
  left: 14px;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

@media (max-width: 980px) {
  .site-header {
    padding: 18px 6vw;
    justify-content: center;
  }

  .logo {
    width: 100%;
    justify-content: center;
  }

  .nav {
    width: 100%;
    justify-content: center;
  }

  .actions {
    width: 100%;
    justify-content: center;
  }
  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .product-main {
    min-height: 360px;
  }
}

@media (max-width: 860px) {
  .site-header {
    padding: 16px 5vw;
    gap: 12px;
  }

  .nav a {
    font-size: 11px;
    letter-spacing: 0.7px;
  }

  .actions button {
    padding: 8px 14px;
  }
  .site-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .hero {
    padding-top: 32px;
  }

  .site-footer {
    flex-direction: column;
  }
}
