/* ---------- Brand colors ---------- */
:root {
  --green: #173F35;
  --champagne: #C6A77A;
  --ivory: #F5F1E8;
  --white: #FFFFFF;
  --charcoal: #242424;

  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", Arial, sans-serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--charcoal);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 3px;
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--green);
  color: var(--ivory);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.main-nav a:hover { color: var(--champagne); }

.cart-link span {
  display: inline-block;
  min-width: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--champagne);
  color: var(--green);
  font-size: 0.8rem;
  text-align: center;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--champagne);
  color: var(--ivory);
  padding: 6px 14px;
  font: inherit;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero img {
  width: 100%;
  height: clamp(200px, 30vw, 360px);
  object-fit: cover;
  object-position: center;
}

/* ---------- Intro ---------- */
.intro {
  text-align: center;
  padding: 56px 24px 32px;
}

.intro h1 {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--green);
  line-height: 1.15;
}

.intro p { margin-top: 12px; }

/* ---------- Categories ---------- */
.categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 24px 72px;
}

.category {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 360px;
  padding: 28px;
  transition: transform 0.2s ease;
}

.category:hover { transform: translateY(-4px); }

.category h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 600;
}

.category span { margin-top: 4px; }

.category-women { background: var(--green); color: var(--ivory); }
.category-men   { background: var(--charcoal); color: var(--ivory); }
.category-kids  { background: var(--champagne); color: var(--green); }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 40px 24px;
  background: var(--white);
}

.footer-logo {
  width: 120px;
  margin: 0 auto 12px;
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .menu-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--green);
    border-top: 1px solid var(--champagne);
  }

  .main-nav.open { display: flex; }

  .main-nav a {
    width: 100%;
    padding: 14px 24px;
  }

  .intro h1 { font-size: 2rem; }

  .categories { grid-template-columns: 1fr; }
  .category { min-height: 220px; }
}

/* ---------- Shop page ---------- */
.shop {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.shop h1 {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--green);
}

.filters {
  display: flex;
  gap: 10px;
  margin: 20px 0 8px;
}

.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--green);
  background: transparent;
  color: var(--green);
  font: inherit;
  cursor: pointer;
}

.filter-btn.active {
  background: var(--green);
  color: var(--ivory);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.product-card {
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.product-image {
  aspect-ratio: 4 / 5;
  background: var(--champagne);
  opacity: 0.35;
}

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

.product-info h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--green);
}

.product-price { font-weight: 500; }

.add-btn {
  margin-top: 12px;
  padding: 10px;
  border: none;
  background: var(--green);
  color: var(--ivory);
  font: inherit;
  cursor: pointer;
}

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

@media (max-width: 760px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .shop h1 { font-size: 2rem; }
}

/* ---------- Category tiles with photos ---------- */
.category {
  position: relative;
  overflow: hidden;
  min-height: 420px;
}

.category img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-text {
  position: relative;
  z-index: 1;
}

.category:has(img) { color: var(--ivory); }

.category:has(img)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(23, 63, 53, 0.85), transparent 60%);
}

/* ---------- Product photos ---------- */
.product-image {
  opacity: 1;
  background: #E9DFCB;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- New arrivals ---------- */
.featured {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 72px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.section-head h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--green);
}

.section-head a {
  color: var(--green);
  border-bottom: 1px solid var(--champagne);
}

.featured .product-grid { grid-template-columns: repeat(4, 1fr); }

/* ---------- Benefits strip ---------- */
.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 40px 24px;
  background: var(--green);
  color: var(--ivory);
  text-align: center;
}

.benefits h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--champagne);
}

@media (max-width: 760px) {
  .category { min-height: 300px; }
  .featured .product-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: 1fr; }
}

/* ---------- Store header (H&M style) ---------- */
.site-header {
  display: block;
  padding: 0;
  background: var(--ivory);
  color: var(--green);
  border-bottom: 1px solid rgba(23, 63, 53, 0.15);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
  background: var(--green);
  color: var(--ivory);
  font-size: 0.85rem;
}

.topbar a { text-decoration: underline; }

.header-main {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 14px 24px;
}

.brand { color: var(--green); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav a:hover {
  color: var(--green);
  text-decoration: underline;
}

.header-actions {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.header-actions svg,
.menu-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-actions a:hover { color: var(--champagne); }

.cart-link { position: relative; }

.cart-link span {
  position: absolute;
  top: -8px;
  right: -10px;
  min-width: 18px;
  padding: 0 4px;
  font-size: 0.7rem;
  line-height: 18px;
}

.lang {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
}

.lang svg { width: 16px; height: 16px; }

.menu-toggle {
  border: none;
  padding: 4px;
  color: var(--green);
}

@media (max-width: 760px) {
  .header-main { gap: 12px; padding: 12px 16px; }
  .menu-toggle { order: -1; }
  .brand { font-size: 1.6rem; }
  .hide-mobile { display: none; }
  .header-actions { gap: 18px; }

  .main-nav {
    background: var(--ivory);
    border-top: 1px solid rgba(23, 63, 53, 0.15);
    gap: 0;
  }
}
/* ---------- Language dropdown ---------- */
.lang { position: relative; }

.lang-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 130px;
  list-style: none;
  background: var(--white);
  border: 1px solid rgba(23, 63, 53, 0.15);
  z-index: 20;
}

.lang-menu.open { display: block; }

.lang-menu button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  color: var(--green);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.lang-menu button:hover { background: var(--ivory); }

/* ---------- Arabic (right-to-left) ---------- */
html[lang="ar"] body,
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] button,
html[lang="ar"] input {
  font-family: "Cairo", "Segoe UI", Arial, sans-serif;
}
html[lang="ar"] .main-nav a { letter-spacing: 0; }
[dir="rtl"] .footer-grid { text-align: right; }
.footer-copy { text-align: center; }
[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .lang-menu button { text-align: right; }

/* ---------- Social icons ---------- */
.social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
  margin-bottom: 40px;
}

.site-footer .social a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: var(--champagne);
  color: var(--charcoal);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

/* the ring that pulses outward on hover */
.site-footer .social a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--champagne);
  opacity: 0;
}

.site-footer .social a:hover,
.site-footer .social a:focus-visible {
  transform: translateY(-6px) scale(1.12);
  box-shadow: 0 10px 18px rgba(198, 167, 122, 0.55);
  background: var(--champagne);
  color: var(--charcoal);
}

.site-footer .social a:hover::after,
.site-footer .social a:focus-visible::after {
  animation: ring 0.9s ease-out infinite;
}

.site-footer .social a:hover svg {
  animation: wiggle 0.6s ease;
}

.social svg {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes ring {
  from { transform: scale(1); opacity: 0.8; }
  to   { transform: scale(1.7); opacity: 0; }
}

@keyframes wiggle {
  0%   { rotate: 0deg; }
  25%  { rotate: -14deg; }
  50%  { rotate: 12deg; }
  75%  { rotate: -6deg; }
  100% { rotate: 0deg; }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer .social a,
  .site-footer .social a::after,
  .social svg { animation: none; transition: none; }
}

/* ---------- Page banner ---------- */
.page-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
    height: clamp(200px, 26vw, 500px);
  background: var(--green);
  text-align: center;
  overflow: hidden;
}

.page-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-banner-text {
  position: relative;
  z-index: 1;
  padding: 0 24px;
}

.page-banner h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  color: var(--ivory);
}

.page-banner p { color: var(--champagne); }

/* ---------- Filters and sort ---------- */
.shop { padding-top: 32px; }

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.shop-toolbar .filters {
  flex-wrap: wrap;
  margin: 0;
}

.sort {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort select {
  padding: 8px 12px;
  border: 1px solid var(--green);
  background: var(--white);
  color: var(--green);
  font: inherit;
}

.result-count {
  margin-top: 16px;
  opacity: 0.7;
}

/* ---------- More filters ---------- */
.shop-toolbar { align-items: flex-start; }

.shop-toolbar .filters {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

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

.more-btn {
  padding: 8px 20px;
  border: 1px dashed var(--green);
  background: transparent;
  color: var(--green);
  font: inherit;
  cursor: pointer;
}

.more-btn:hover {
  background: var(--green);
  color: var(--ivory);
}

.more-filters {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.more-filters.open {
  display: flex;
}

.more-filters .filter-btn {
  margin: 0;
}

/* ---------- Banner with photo: title on the left ---------- */
.page-banner { justify-content: flex-start; }

.page-banner-text {
  padding: 0 0 0 10%;
  text-align: left;
}

.page-banner h1 { color: var(--ivory); }
.page-banner p { color: var(--champagne); }

[dir="rtl"] .page-banner-text {
  padding: 0 10% 0 0;
  text-align: right;
}

@media (max-width: 760px) {
  .page-banner-text { padding-left: 5%; }
  [dir="rtl"] .page-banner-text { padding-right: 5%; padding-left: 0; }
  .page-banner h1 { font-size: 1.5rem; }
  .page-banner p { display: none; }
}
.site-header { position: relative; }

.search-box {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #F5F1E8;
  border-top: 1px solid #C6A77A;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
  padding: 16px 24px 20px;
  z-index: 50;
}
.search-box.open { display: block; }

.search-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid #173F35;
}
.search-inner input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: "Jost", "Cairo", sans-serif;
  font-size: 18px;
  padding: 10px 0;
  color: #242424;
}
.search-inner button {
  border: 0;
  background: none;
  font-size: 28px;
  cursor: pointer;
  color: #173F35;
}

.search-results { max-width: 700px; margin: 10px auto 0; }
.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #e4dccb;
  color: #242424;
  text-decoration: none;
}
.search-item img { width: 44px; height: 56px; object-fit: cover; }
.search-item span { flex: 1; }
.search-item b { color: #173F35; font-weight: 500; }
.search-empty { padding: 12px 0; color: #242424; }

/* ---------- Login / Sign up ---------- */
.auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 80px);
  background: var(--ivory);
}

/* left brand panel */
.auth-art {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 56px;
  background: var(--green);
  color: var(--ivory);
  overflow: hidden;
}
.auth-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
.auth-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(23, 63, 53, 0.96) 10%, rgba(23, 63, 53, 0.35) 70%);
}
.auth-art-content { position: relative; z-index: 1; max-width: 420px; }

.auth-logo {
  display: inline-block;
  margin-bottom: 28px;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--champagne);
}
.auth-art h2 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.1;
}
.auth-art p { margin: 14px 0 26px; opacity: 0.85; }

.auth-perks { list-style: none; display: grid; gap: 12px; }
.auth-perks li { display: flex; align-items: center; gap: 12px; }
.auth-perks svg {
  flex: none;
  width: 26px;
  height: 26px;
  padding: 5px;
  border-radius: 50%;
  background: var(--champagne);
  fill: none;
  stroke: var(--green);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* right form panel */
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  animation: authIn 0.6s ease both;
}
@keyframes authIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.auth-card h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--green);
}
.auth-sub { margin: 6px 0 26px; opacity: 0.75; }

/* social buttons */
.social-login { display: grid; gap: 10px; }
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(23, 63, 53, 0.3);
  background: var(--white);
  color: var(--charcoal);
  font: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.social-btn svg { width: 22px; height: 22px; }
.social-btn:hover {
  transform: translateY(-2px);
  border-color: var(--champagne);
  box-shadow: 0 8px 18px rgba(23, 63, 53, 0.12);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
  font-size: 0.85rem;
  opacity: 0.7;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(23, 63, 53, 0.25);
}

/* fields */
.field-wrap { display: block; margin-bottom: 16px; }
.field-wrap > span { display: block; margin-bottom: 6px; font-size: 0.9rem; font-weight: 500; }

.field { position: relative; }
.field input {
  width: 100%;
  padding: 13px 44px;
  border: 1px solid rgba(23, 63, 53, 0.3);
  background: var(--white);
  color: var(--charcoal);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(198, 167, 122, 0.45);
}
.field input.invalid { border-color: #b3261e; }

.field-icon,
.toggle-pass svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.field-icon {
  position: absolute;
  top: 50%;
  inset-inline-start: 14px;
  transform: translateY(-50%);
  color: var(--green);
  opacity: 0.7;
  pointer-events: none;
}
.toggle-pass {
  position: absolute;
  top: 50%;
  inset-inline-end: 10px;
  transform: translateY(-50%);
  display: flex;
  padding: 4px;
  border: none;
  background: none;
  color: var(--green);
  cursor: pointer;
}
.toggle-pass.on { color: var(--champagne); }

/* remember me / forgot */
.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; cursor: pointer; }
.check input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--green); flex: none; }
.auth-link { color: var(--green); border-bottom: 1px solid var(--champagne); }

/* password strength */
.strength { margin-top: 8px; }
.strength-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.strength-bar i { height: 4px; background: rgba(23, 63, 53, 0.15); transition: background 0.3s ease; }
.strength small { display: block; margin-top: 4px; min-height: 16px; font-size: 0.8rem; opacity: 0.8; }
.strength[data-level="1"] i:nth-child(-n+1) { background: #b3261e; }
.strength[data-level="2"] i:nth-child(-n+2) { background: #d98a1f; }
.strength[data-level="3"] i:nth-child(-n+3) { background: #8fa83a; }
.strength[data-level="4"] i:nth-child(-n+4) { background: var(--green); }

/* error + button */
.auth-error { min-height: 22px; margin: 12px 0 6px; color: #b3261e; font-size: 0.9rem; }
.auth-error.info { color: var(--green); }
.auth-card.shake { animation: shake 0.4s ease; }
@keyframes shake {
  20%, 60% { transform: translateX(-7px); }
  40%, 80% { transform: translateX(7px); }
}

.auth-btn {
  width: 100%;
  padding: 14px;
  border: none;
  background: var(--green);
  color: var(--ivory);
  font: inherit;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.auth-btn:hover { background: var(--charcoal); transform: translateY(-2px); }
.auth-btn.loading { opacity: 0.7; pointer-events: none; }

.auth-switch { margin-top: 22px; text-align: center; font-size: 0.95rem; }
.auth-switch a { color: var(--green); font-weight: 500; border-bottom: 1px solid var(--champagne); }

/* tablet / phone: hide the brand panel */
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-panel { padding: 32px 18px 56px; }
  .auth-card h1 { font-size: 2.3rem; }
}
/* ---------- Favorites ---------- */
[hidden] { display: none !important; }

.header-actions a { position: relative; }
.fav-badge {
  position: absolute;
  top: -8px;
  inset-inline-end: -10px;
  min-width: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--champagne);
  color: var(--green);
  font-size: 0.7rem;
  line-height: 18px;
  text-align: center;
}

/* hero */
.fav-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 24px 56px;
  text-align: center;
  color: var(--ivory);
  background: radial-gradient(circle at 50% 0%, #20594a 0%, var(--green) 65%);
}
.fav-hero::before,
.fav-hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(198, 167, 122, 0.25);
}
.fav-hero::before { top: -160px; inset-inline-start: -80px; }
.fav-hero::after  { bottom: -190px; inset-inline-end: -60px; }

.fav-hero-heart {
  position: relative;
  z-index: 1;
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  fill: var(--champagne);
  stroke: var(--champagne);
  stroke-width: 1;
  stroke-linejoin: round;
  filter: drop-shadow(0 6px 16px rgba(198, 167, 122, 0.45));
  animation: heartbeat 1.8s ease-in-out infinite;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14%      { transform: scale(1.14); }
  28%      { transform: scale(1); }
  42%      { transform: scale(1.1); }
  70%      { transform: scale(1); }
}
.fav-hero h1 {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600;
  color: var(--ivory);
}
.fav-hero p { position: relative; z-index: 1; margin-top: 6px; color: var(--champagne); }

/* page */
.fav-page { max-width: 1100px; margin: 0 auto; padding: 36px 24px 80px; }

.fav-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(23, 63, 53, 0.15);
}
.fav-count { font-size: 1.05rem; color: var(--green); font-weight: 500; }
.fav-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.fav-btn-main,
.fav-btn-ghost {
  padding: 10px 22px;
  font: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.fav-btn-main { border: 1px solid var(--green); background: var(--green); color: var(--ivory); }
.fav-btn-main:hover { background: var(--charcoal); border-color: var(--charcoal); transform: translateY(-2px); }
.fav-btn-ghost { border: 1px solid var(--green); background: transparent; color: var(--green); }
.fav-btn-ghost:hover { background: var(--green); color: var(--ivory); transform: translateY(-2px); }

/* heart button on every product photo */
.product-image { position: relative; }
.fav-btn {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fav-btn:hover { transform: scale(1.12); }
.fav-btn svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: fill 0.2s ease;
}
.fav-btn.active svg { fill: var(--champagne); animation: heartPop 0.45s ease; }
@keyframes heartPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.45); }
  100% { transform: scale(1); }
}

/* cards in the favorites grid */
.fav-grid .product-card { animation: favIn 0.5s ease both; transition: opacity 0.35s ease, transform 0.35s ease; }
.fav-grid .product-card:nth-child(2) { animation-delay: 0.06s; }
.fav-grid .product-card:nth-child(3) { animation-delay: 0.12s; }
.fav-grid .product-card:nth-child(4) { animation-delay: 0.18s; }
.fav-grid .product-card:nth-child(5) { animation-delay: 0.24s; }
.fav-grid .product-card:nth-child(6) { animation-delay: 0.3s; }
@keyframes favIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.fav-grid .product-card.removing { opacity: 0; transform: scale(0.9); }

/* empty state */
.fav-empty {
  max-width: 520px;
  margin: 24px auto 0;
  padding: 56px 32px;
  text-align: center;
  background: var(--white);
  border-top: 3px solid var(--champagne);
  animation: favIn 0.6s ease both;
}
.fav-empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--ivory);
  animation: floaty 3s ease-in-out infinite;
}
.fav-empty-icon svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: var(--champagne);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}
.fav-empty h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--green);
}
.fav-empty p { margin: 8px 0 26px; opacity: 0.75; }
.fav-empty-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.fav-empty-links a {
  padding: 10px 26px;
  border: 1px solid var(--green);
  color: var(--green);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.fav-empty-links a:hover { background: var(--green); color: var(--ivory); transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
  .fav-hero-heart, .fav-empty-icon, .fav-grid .product-card, .fav-empty { animation: none; }
}
/* ---------- Kids page: full-screen Boys | Girls ---------- */
.kids-split {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: calc(100vh - 98px);
  min-height: 540px;
  background: var(--green);
  overflow: hidden;
}

/* thin gold line between the two photos */
.kids-split::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(198, 167, 122, 0.8);
  z-index: 2;
}

.split-side {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 24px 70px;
  overflow: hidden;
  color: var(--ivory);
}

.split-side img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.9s ease, filter 0.6s ease;
}

.split-side::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(23, 63, 53, 0.92) 0%, rgba(23, 63, 53, 0.25) 45%, transparent 70%);
}

.split-text {
  position: relative;
  z-index: 1;
  text-align: center;
  transition: transform 0.5s ease;
}

.split-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 600;
  line-height: 1;
}

.split-text p { margin: 8px 0 20px; opacity: 0.9; }

.split-cta {
  display: inline-block;
  padding: 11px 30px;
  border: 1px solid var(--champagne);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease;
}
.split-cta::after { content: " →"; }
[dir="rtl"] .split-cta::after { content: " ←"; }

/* hover: zoom the photo, dim the other side */
.split-side:hover img { transform: scale(1.07); }
.split-side:hover .split-text { transform: translateY(-12px); }
.split-side:hover .split-cta { background: var(--champagne); color: var(--green); }
.kids-split:hover .split-side:not(:hover) img { filter: brightness(0.55) saturate(0.7); }

/* the OR badge in the middle */
.split-or {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--ivory);
  color: var(--green);
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  box-shadow: 0 0 0 8px rgba(245, 241, 232, 0.25), 0 14px 34px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

/* rotating dashed ring around it */
.split-or::before {
  content: "";
  position: absolute;
  inset: -16px;
  border: 1px dashed var(--champagne);
  border-radius: 50%;
  animation: spinRing 14s linear infinite;
}
@keyframes spinRing { to { transform: rotate(360deg); } }

/* phone: stack Boys on top, Girls below */
@media (max-width: 760px) {
  .kids-split {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    height: calc(100vh - 70px);
    min-height: 640px;
  }
  .kids-split::before {
    top: 50%;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 1px;
  }
  .split-side { padding-bottom: 36px; }
  .split-or { width: 64px; height: 64px; font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .split-or::before { animation: none; }
  .split-side img, .split-text { transition: none; }
}
/* ---------- Bag page ---------- */
.bag-page { max-width: 1100px; margin: 0 auto; padding: 36px 24px 80px; }

.bag-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

.bag-list { display: grid; gap: 16px; }

.bag-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px;
  background: var(--white);
  animation: favIn 0.4s ease both;
}

.bag-img {
  flex: none;
  width: 100px;
  aspect-ratio: 4 / 5;
  background: #E9DFCB;
  overflow: hidden;
}
.bag-img img { width: 100%; height: 100%; object-fit: cover; }

.bag-info { flex: 1; min-width: 0; }
.bag-info h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--green);
}
.bag-price { display: block; margin-bottom: 10px; opacity: 0.8; }

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(23, 63, 53, 0.35);
}
.qty button {
  width: 34px;
  height: 34px;
  border: none;
  background: none;
  color: var(--green);
  font-size: 1.2rem;
  cursor: pointer;
}
.qty button:hover:not(:disabled) { background: var(--ivory); }
.qty button:disabled { opacity: 0.3; cursor: default; }
.qty span { min-width: 34px; text-align: center; font-weight: 500; }

.bag-line {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  color: var(--green);
  font-size: 1.1rem;
}
[dir="rtl"] .bag-line { align-items: flex-start; }

.bag-remove {
  display: flex;
  padding: 6px;
  border: none;
  background: none;
  color: var(--charcoal);
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.bag-remove:hover { opacity: 1; color: #b3261e; }
.bag-remove svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* order summary */
.bag-summary {
  position: sticky;
  top: 20px;
  padding: 26px;
  background: var(--white);
  border-top: 3px solid var(--champagne);
}
.bag-summary h2 {
  margin-bottom: 18px;
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--green);
}
.sum-row { display: flex; justify-content: space-between; padding: 8px 0; }
.sum-row.total {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(23, 63, 53, 0.2);
  font-size: 1.2rem;
  color: var(--green);
}
.sum-note { margin: 10px 0 18px; font-size: 0.85rem; opacity: 0.7; }

.bag-checkout { width: 100%; padding: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.bag-continue {
  display: block;
  margin-top: 16px;
  text-align: center;
  color: var(--green);
  border-bottom: 1px solid var(--champagne);
  width: fit-content;
  margin-inline: auto;
}
.bag-clear {
  display: block;
  margin: 18px auto 0;
  border: none;
  background: none;
  color: var(--charcoal);
  opacity: 0.6;
  font: inherit;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
}
.bag-clear:hover { opacity: 1; }

@media (max-width: 860px) {
  .bag-layout { grid-template-columns: 1fr; }
  .bag-summary { position: static; }
}
@media (max-width: 480px) {
  .bag-item { flex-wrap: wrap; }
  .bag-img { width: 80px; }
  .bag-line { flex-direction: row; width: 100%; justify-content: space-between; align-items: center; }
}
/* ---------- Contact page ---------- */
.contact-page { max-width: 1100px; margin: 0 auto; padding: 48px 24px 80px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  align-items: start;
}

.contact-info { display: grid; gap: 14px; }

.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  background: var(--white);
  border-inline-start: 3px solid var(--champagne);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.contact-card:hover {
  transform: translateX(6px);
  box-shadow: 0 10px 24px rgba(23, 63, 53, 0.12);
}
[dir="rtl"] .contact-card:hover { transform: translateX(-6px); }

.cc-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green);
  color: var(--champagne);
  transition: background 0.25s ease, color 0.25s ease;
}
.contact-card:hover .cc-icon { background: var(--champagne); color: var(--green); }

.cc-icon svg,
.contact-social svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-card small { display: block; opacity: 0.65; font-size: 0.85rem; }
.contact-card b { font-weight: 500; color: var(--green); font-size: 1.05rem; word-break: break-all; }

.contact-follow { margin-top: 10px; }
.contact-follow h3 {
  margin-bottom: 12px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--green);
}
.contact-social { display: flex; gap: 12px; flex-wrap: wrap; }
.contact-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--champagne);
  color: var(--charcoal);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.contact-social a:hover {
  transform: translateY(-6px) scale(1.1);
  box-shadow: 0 10px 18px rgba(198, 167, 122, 0.55);
}

/* form card */
.contact-form-card {
  padding: 36px 32px;
  background: var(--white);
  border-top: 3px solid var(--champagne);
}
.contact-form-card h2 {
  margin-bottom: 22px;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--green);
}
.field textarea {
  width: 100%;
  min-height: 150px;
  padding: 13px 14px;
  border: 1px solid rgba(23, 63, 53, 0.3);
  background: var(--white);
  color: var(--charcoal);
  font: inherit;
  resize: vertical;
}
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(198, 167, 122, 0.45);
}
.field textarea.invalid { border-color: #b3261e; }
.contact-note { margin-top: 12px; text-align: center; font-size: 0.85rem; opacity: 0.65; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form-card { padding: 28px 20px; }
}

/* ---------- About page ---------- */
.about-page { max-width: 1100px; margin: 0 auto; padding: 56px 24px 80px; }

.about-story {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: center;
}
.about-text h2,
.about-cta h2 {
  margin-bottom: 16px;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--green);
}
.about-text p { margin-bottom: 14px; font-size: 1.05rem; }

.about-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 520px;
  background: var(--green);
  overflow: hidden;
}
.about-photo::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(198, 167, 122, 0.8);
  pointer-events: none;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 64px 0;
}
.value-card {
  padding: 34px 26px;
  text-align: center;
  background: var(--white);
  border-top: 3px solid var(--champagne);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.value-card:hover { transform: translateY(-8px); box-shadow: 0 16px 30px rgba(23, 63, 53, 0.14); }

.value-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--green);
  color: var(--champagne);
}
.value-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.value-card h3 {
  margin-bottom: 6px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--green);
}

.about-cta {
  padding: 48px 24px;
  text-align: center;
  background: var(--white);
  border-top: 3px solid var(--champagne);
}

@media (max-width: 860px) {
  .about-values { grid-template-columns: 1fr; margin: 40px 0; }
}
/* ---------- Terms / Privacy pages + footer links ---------- */
html[lang="ar"] .en-only,
html[lang="en"] .ar-only { display: none; }

.legal-page { max-width: 820px; margin: 0 auto; padding: 48px 24px 80px; }
.legal-page h2 {
  margin: 32px 0 8px;
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--green);
}
.legal-page h2:first-child { margin-top: 0; }
.legal-page p { margin-bottom: 8px; font-size: 1.02rem; }
.legal-page mark { background: #fff3a3; padding: 0 3px; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 26px;
  margin-bottom: 18px;
}
.footer-links a { color: var(--green); border-bottom: 1px solid var(--champagne); }
.footer-links a:hover { color: var(--champagne); }

/* ---------- Account menu (avatar + dropdown) ---------- */
.user-menu { position: relative; }

/* the round photo in the header */
.user-btn {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: none;
  color: var(--ivory);
  font: inherit;
  cursor: pointer;
  box-shadow: 0 0 0 2px var(--ivory), 0 0 0 4px var(--champagne);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.user-btn:hover { transform: scale(1.07); }
.user-btn[aria-expanded="true"] {
  box-shadow: 0 0 0 2px var(--ivory), 0 0 0 5px var(--champagne), 0 8px 20px rgba(198, 167, 122, 0.55);
}
.user-btn img,
.user-btn span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--green);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
/* small green "online" dot */
.user-btn::after {
  content: "";
  position: absolute;
  bottom: -1px;
  inset-inline-end: -1px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--ivory);
  border-radius: 50%;
  background: #3ecf8e;
}

/* the dropdown card */
.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 18px);
  inset-inline-end: -6px;
  z-index: 40;
  width: 300px;
  max-width: calc(100vw - 24px);
  padding-bottom: 10px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(23, 63, 53, 0.3), 0 0 0 1px rgba(23, 63, 53, 0.08);
  overflow: hidden;
  transform-origin: top right;
}
[dir="rtl"] .user-dropdown { transform-origin: top left; }
.user-dropdown.open { display: block; animation: menuIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes menuIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.95); }
  to   { opacity: 1; transform: none; }
}

/* green header of the card */
.user-head {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 26px 20px 20px;
  text-align: center;
  color: var(--ivory);
  background:
    radial-gradient(circle at 85% 0%, rgba(198, 167, 122, 0.45), transparent 55%),
    linear-gradient(160deg, #1f5446 0%, var(--green) 70%);
  overflow: hidden;
}
.user-head::before,
.user-head::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(198, 167, 122, 0.3);
  border-radius: 50%;
  pointer-events: none;
}
.user-head::before { width: 190px; height: 190px; top: -110px; inset-inline-start: -60px; }
.user-head::after  { width: 130px; height: 130px; bottom: -80px; inset-inline-end: -30px; }

.user-photo {
  position: relative;
  z-index: 1;
  width: 78px;
  height: 78px;
  margin-bottom: 6px;
  cursor: pointer;
}
.user-photo-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--champagne);
  color: var(--green);
  font-size: 1.5rem;
  font-weight: 600;
  overflow: hidden;
  box-shadow: 0 0 0 3px var(--green), 0 0 0 5px var(--champagne), 0 10px 24px rgba(0, 0, 0, 0.35);
  transition: filter 0.2s ease, transform 0.25s ease;
}
.user-photo-img img { width: 100%; height: 100%; object-fit: cover; }
.user-photo:hover .user-photo-img { filter: brightness(0.85); transform: scale(1.04); }

.user-photo-cam {
  position: absolute;
  bottom: -2px;
  inset-inline-end: -2px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: var(--champagne);
  color: var(--green);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.user-photo:hover .user-photo-cam { transform: scale(1.15) rotate(-8deg); }
.user-dropdown .user-photo-cam svg {
  width: 14px;
  height: 14px;
  padding: 0;
  background: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.user-who { position: relative; z-index: 1; min-width: 0; }
.user-head .user-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ivory);
}
.user-head .user-email {
  display: block;
  margin-top: 2px;
  color: var(--champagne);
  font-size: 0.85rem;
  word-break: break-all;
}
.user-dropdown .user-remove {
  display: inline;
  width: auto;
  margin: 8px 0 0;
  padding: 0;
  border-radius: 0;
  background: none;
  color: rgba(245, 241, 232, 0.8);
  font-size: 0.78rem;
  text-decoration: underline;
}
.user-dropdown .user-remove:hover { background: none; color: var(--champagne); transform: none; }

/* menu rows */
.user-dropdown > a,
.user-dropdown > button {
  display: flex;
  align-items: center;
  gap: 14px;
  width: calc(100% - 20px);
  margin: 3px 10px;
  padding: 9px 12px;
  border: none;
  border-radius: 10px;
  background: none;
  color: var(--charcoal);
  font: inherit;
  font-size: 0.97rem;
  text-align: start;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.user-head + a { margin-top: 12px; }

.user-dropdown > a svg,
.user-dropdown > button svg {
  flex: none;
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 50%;
  background: var(--ivory);
  color: var(--green);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: background 0.2s ease, color 0.2s ease;
}

.user-dropdown > a:hover,
.user-dropdown > button:hover {
  background: var(--ivory);
  color: var(--green);
  transform: translateX(4px);
}
[dir="rtl"] .user-dropdown > a:hover,
[dir="rtl"] .user-dropdown > button:hover { transform: translateX(-4px); }

.user-dropdown > a:hover svg,
.user-dropdown > button:hover svg { background: var(--green); color: var(--champagne); }

/* log out */
#logoutBtn {
  width: calc(100% - 20px);
  margin-top: 8px;
  padding-top: 9px;
  border-top: none;
  color: #b3261e;
}
#logoutBtn svg { background: #fbeeed; color: #b3261e; }
#logoutBtn:hover { background: #fbeeed; color: #b3261e; }
#logoutBtn:hover svg { background: #b3261e; color: #fff; }

/* rows slide in one after another */
.user-dropdown.open > a,
.user-dropdown.open > button { animation: rowIn 0.4s ease both; }
.user-dropdown.open > :nth-child(2) { animation-delay: 0.05s; }
.user-dropdown.open > :nth-child(3) { animation-delay: 0.1s; }
.user-dropdown.open > :nth-child(4) { animation-delay: 0.15s; }
.user-dropdown.open > :nth-child(5) { animation-delay: 0.2s; }
.user-dropdown.open > :nth-child(6) { animation-delay: 0.25s; }
@keyframes rowIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: none; }
}
[dir="rtl"] .user-dropdown.open > a,
[dir="rtl"] .user-dropdown.open > button { animation-name: rowInRtl; }
@keyframes rowInRtl {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .user-dropdown.open,
  .user-dropdown.open > a,
  .user-dropdown.open > button { animation: none; }
}

/* ---------- Photo editor ---------- */
.crop-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 35, 29, 0.72);
  backdrop-filter: blur(4px);
  animation: cropFade 0.25s ease both;
}
@keyframes cropFade { from { opacity: 0; } to { opacity: 1; } }

.crop-card {
  width: 100%;
  max-width: 360px;
  padding: 28px 14px 22px;
  text-align: center;
  background: var(--white);
  border-top: 3px solid var(--champagne);
  border-radius: 14px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  animation: cropPop 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes cropPop {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}
.crop-card h3 {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--green);
}
.crop-card p { margin: 2px 0 16px; font-size: 0.9rem; opacity: 0.7; }

.crop-stage {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto;
  overflow: hidden;
  background: #111;
  border-radius: 10px;
  cursor: grab;
  touch-action: none;
  user-select: none;
  direction: ltr;
}
.crop-stage.grab { cursor: grabbing; }
.crop-stage img { position: absolute; max-width: none; pointer-events: none; }

/* dark area outside the circle */
.crop-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 114px, rgba(15, 35, 29, 0.68) 115px);
}
/* gold ring around the circle */
.crop-stage::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 230px;
  height: 230px;
  transform: translate(-50%, -50%);
  border: 2px solid var(--champagne);
  border-radius: 50%;
  pointer-events: none;
}

.crop-zoom {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 280px;
  margin: 18px auto 20px;
  color: var(--green);
  font-size: 1.3rem;
}
.crop-zoom input { flex: 1; accent-color: var(--green); }

.crop-actions { display: flex; gap: 10px; max-width: 280px; margin: 0 auto; }
.crop-actions button {
  flex: 1;
  padding: 12px;
  font: inherit;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.crop-actions button:hover { transform: translateY(-2px); }
.crop-cancel { border: 1px solid var(--green); background: transparent; color: var(--green); }
.crop-cancel:hover { background: var(--ivory); }
.crop-save { border: 1px solid var(--green); background: var(--green); color: var(--ivory); }
.crop-save:hover { background: var(--charcoal); border-color: var(--charcoal); }

@media (prefers-reduced-motion: reduce) {
  .crop-modal, .crop-card { animation: none; }
}

/* ---------- Settings page ---------- */

/* profile header */
.set-hero {
  position: relative;
  overflow: hidden;
  padding: 48px 24px;
  color: var(--ivory);
  background:
    radial-gradient(circle at 12% 0%, #2a6a58 0%, transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(198, 167, 122, 0.28), transparent 50%),
    var(--green);
}
.set-hero::before,
.set-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(198, 167, 122, 0.25);
  pointer-events: none;
}
.set-hero::before { width: 340px; height: 340px; top: -180px; inset-inline-end: 12%; }
.set-hero::after  { width: 220px; height: 220px; bottom: -120px; inset-inline-start: 6%; }

.set-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr 320px;
  align-items: center;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}
.set-hero-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--champagne);
  color: var(--green);
  font-size: 2.2rem;
  font-weight: 600;
  box-shadow: 0 0 0 4px var(--green), 0 0 0 6px var(--champagne), 0 18px 40px rgba(0, 0, 0, 0.4);
}
.set-hero-avatar img { width: 100%; height: 100%; object-fit: cover; }

.set-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--champagne);
}
html[lang="ar"] .set-eyebrow { letter-spacing: 0; }
.set-hero h1 {
  margin: 2px 0 4px;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ivory);
}
.set-hero-mail { opacity: 0.85; word-break: break-all; }
.set-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 5px 14px;
  border: 1px solid rgba(198, 167, 122, 0.6);
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--champagne);
}
.set-badge:empty { display: none; }

.set-meter {
  padding: 18px 20px;
  border: 1px solid rgba(198, 167, 122, 0.3);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
}
.set-meter-top { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.9rem; }
.set-meter-top b { color: var(--champagne); font-size: 1.1rem; }
.set-bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.18); overflow: hidden; }
.set-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #C6A77A, #ecd7b0);
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.set-meter small { display: block; margin-top: 10px; font-size: 0.8rem; opacity: 0.75; }

/* layout */
.set-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 24px 80px;
}

/* left menu */
.set-nav {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 12px;
  background: var(--white);
  border-top: 3px solid var(--champagne);
  box-shadow: 0 12px 30px rgba(23, 63, 53, 0.08);
}
.set-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: none;
  border-radius: 8px;
  background: none;
  color: var(--charcoal);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, padding 0.2s ease;
}
.set-tab svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.set-tab:hover { background: var(--ivory); padding-inline-start: 18px; }
.set-tab.active { background: var(--green); color: var(--ivory); }
.set-tab.active svg { color: var(--champagne); }
.set-tab.active::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 22%;
  bottom: 22%;
  width: 3px;
  border-radius: 3px;
  background: var(--champagne);
}

/* panels + cards */
.set-panel { display: none; }
.set-panel.active { display: block; animation: favIn 0.4s ease both; }

.set-card {
  display: block;
  margin-bottom: 20px;
  padding: 30px;
  border-radius: 12px;
  background: var(--white);
  border-top: 3px solid var(--champagne);
  box-shadow: 0 12px 30px rgba(23, 63, 53, 0.07);
  transition: box-shadow 0.3s ease;
}
.set-card:hover { box-shadow: 0 18px 40px rgba(23, 63, 53, 0.12); }
.set-card h2 {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--green);
}
.set-desc { margin: 4px 0 22px; font-size: 0.95rem; opacity: 0.7; }
.set-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.set-card .field input,
.set-card .field select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(23, 63, 53, 0.3);
  border-radius: 8px;
  background: var(--white);
  color: var(--charcoal);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.set-card .field textarea { border-radius: 8px; }
.set-card .field input:focus,
.set-card .field select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(198, 167, 122, 0.45);
}
.set-card .field input[readonly] { background: var(--ivory); opacity: 0.8; }
.set-card .field input.invalid { border-color: #b3261e; }

/* buttons */
.set-btn {
  padding: 12px 28px;
  border: 1px solid var(--green);
  border-radius: 8px;
  background: var(--green);
  color: var(--ivory);
  font: inherit;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.set-btn:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(23, 63, 53, 0.2);
}
.set-btn.ghost { background: transparent; color: var(--green); }
.set-btn.ghost:hover { background: var(--green); color: var(--ivory); border-color: var(--green); }
.set-btn.danger { background: #b3261e; border-color: #b3261e; }
.set-btn.danger:hover { background: #8c1d17; border-color: #8c1d17; }
.set-btn.loading { opacity: 0.6; pointer-events: none; }
.set-card .auth-error { margin: 4px 0 14px; }

/* photo */
.set-photo { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.set-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--green);
  color: var(--champagne);
  font-size: 1.8rem;
  font-weight: 600;
  box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--champagne);
}
.set-avatar img { width: 100%; height: 100%; object-fit: cover; }
.set-photo-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* payment options */
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pay-opt { display: block; position: relative; cursor: pointer; }
.pay-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pay-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 100%;
  padding: 18px;
  border: 1px solid rgba(23, 63, 53, 0.25);
  border-radius: 12px;
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.pay-box svg {
  width: 30px;
  height: 30px;
  margin-bottom: 8px;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pay-box b { color: var(--green); font-weight: 500; }
.pay-box small { opacity: 0.7; }
.pay-opt:hover .pay-box { transform: translateY(-3px); border-color: var(--champagne); }
.pay-opt input:checked + .pay-box {
  border-color: var(--green);
  background: var(--ivory);
  box-shadow: 0 0 0 2px var(--champagne);
}
.pay-opt input:focus-visible + .pay-box { outline: 2px solid var(--champagne); outline-offset: 3px; }
.set-note {
  margin: 18px 0 8px;
  padding: 12px 14px;
  border-inline-start: 3px solid var(--champagne);
  background: #FBF8F1;
  font-size: 0.88rem;
}

/* switches */
.set-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(23, 63, 53, 0.12);
  cursor: pointer;
}
.set-switch b { display: block; font-weight: 500; color: var(--green); }
.set-switch small { opacity: 0.7; }
.set-switch input {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: none;
  width: 46px;
  height: 26px;
  border-radius: 13px;
  background: #cfd8d4;
  cursor: pointer;
  transition: background 0.25s ease;
}
.set-switch input::after {
  content: "";
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease;
}
.set-switch input:checked { background: var(--green); }
.set-switch input:checked::after { transform: translateX(20px); }
[dir="rtl"] .set-switch input:checked::after { transform: translateX(-20px); }
#formNotify .auth-error { margin-top: 14px; }

.set-lang { display: flex; gap: 10px; flex-wrap: wrap; }
.set-lang .set-btn.active { background: var(--green); color: var(--ivory); }

.danger-card { border-top-color: #b3261e; }
.danger-card h2 { color: #b3261e; }

/* pop-up messages */
.toast-wrap {
  position: fixed;
  z-index: 1100;
  inset-inline-end: 20px;
  bottom: 20px;
  display: grid;
  gap: 10px;
  max-width: calc(100vw - 40px);
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
  padding: 14px 18px;
  border-radius: 12px;
  border-inline-start: 4px solid var(--champagne);
  background: var(--green);
  color: var(--ivory);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  animation: toastIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.toast::before {
  content: "\2713";
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--champagne);
  color: var(--green);
  font-weight: 700;
}
.toast.out { animation: toastOut 0.3s ease both; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

/* tablet / phone */
@media (max-width: 900px) {
  .set-hero-inner { grid-template-columns: auto 1fr; }
  .set-meter { grid-column: 1 / -1; }
  .set-layout { grid-template-columns: 1fr; padding-top: 24px; }
  .set-nav { position: static; display: flex; overflow-x: auto; gap: 6px; }
  .set-tab { flex: none; white-space: nowrap; }
}
@media (max-width: 600px) {
  .set-hero-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .set-hero-avatar { width: 96px; height: 96px; }
  .set-grid, .pay-grid { grid-template-columns: 1fr; }
  .set-card { padding: 22px 18px; }
  .toast-wrap { inset-inline-start: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .set-panel.active, .toast, .toast.out { animation: none; }
  .set-bar i { transition: none; }
}
/* ---------- My orders page ---------- */
.ord-hero {
  padding: 56px 24px;
  text-align: center;
  color: var(--ivory);
  background:
    radial-gradient(circle at 15% 0%, #2a6a58 0%, transparent 55%),
    var(--green);
}
.ord-hero h1 { font-family: var(--font-heading); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 600; color: var(--ivory); }
.ord-hero p:last-child { margin-top: 6px; opacity: 0.85; }

.ord-wrap { max-width: 900px; margin: 0 auto; padding: 36px 24px 80px; }
.ord-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.ord-filters .set-btn { padding: 9px 20px; }
.ord-filters .set-btn.active { background: var(--green); color: var(--ivory); }

.ord-card {
  margin-bottom: 20px;
  padding: 26px;
  border-radius: 12px;
  border-top: 3px solid var(--champagne);
  background: var(--white);
  box-shadow: 0 12px 30px rgba(23, 63, 53, 0.07);
  animation: favIn 0.4s ease both;
}
.ord-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.ord-num { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 600; color: var(--green); }
.ord-date { font-size: 0.88rem; opacity: 0.7; }
.ord-badge { padding: 5px 14px; border-radius: 999px; font-size: 0.8rem; background: var(--ivory); color: var(--green); border: 1px solid var(--champagne); }
.ord-badge.delivered { background: var(--green); color: var(--ivory); }
.ord-badge.cancelled { background: #fdf3f2; color: #b3261e; border-color: #b3261e; }

.ord-track { display: flex; list-style: none; margin: 24px 0 18px; padding: 0; }
.ord-track li { position: relative; flex: 1; text-align: center; font-size: 0.8rem; opacity: 0.5; }
.ord-track li i {
  display: block; position: relative; z-index: 1;
  width: 16px; height: 16px; margin: 0 auto 8px;
  border-radius: 50%; background: #d8dfdb;
}
.ord-track li::before {
  content: ""; position: absolute; top: 7px; height: 2px; background: #d8dfdb;
  inset-inline-start: -50%; width: 100%;
}
.ord-track li:first-child::before { display: none; }
.ord-track li.done { opacity: 1; color: var(--green); }
.ord-track li.done i { background: var(--green); }
.ord-track li.done::before { background: var(--green); }
.ord-track li.now i { box-shadow: 0 0 0 4px rgba(198, 167, 122, 0.55); background: var(--champagne); }

.ord-items { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(23, 63, 53, 0.12); }
.ord-items li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(23, 63, 53, 0.08); }
.ord-items img { width: 52px; height: 64px; object-fit: cover; border-radius: 6px; }
.ord-items span { flex: 1; }
.ord-items b { color: var(--green); font-weight: 500; }

.ord-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 16px; font-size: 0.9rem; }
.ord-foot small { display: block; opacity: 0.65; }
.ord-total { text-align: end; }
.ord-total b { font-family: var(--font-heading); font-size: 1.6rem; color: var(--green); }

.ord-empty { text-align: center; padding: 60px 20px; border-radius: 12px; background: var(--white); border-top: 3px solid var(--champagne); }
.ord-empty h2 { font-family: var(--font-heading); font-size: 1.9rem; color: var(--green); }
.ord-empty p { margin: 6px 0 20px; opacity: 0.7; }
.ord-empty .set-btn { display: inline-block; text-decoration: none; }

@media (max-width: 600px) {
  .ord-card { padding: 20px 16px; }
  .ord-track li { font-size: 0.7rem; }
}

/* ---------- Admin: products ---------- */
.adm-wrap { max-width: 1100px; margin: 0 auto; padding: 36px 24px 80px; }
.adm-top { display: grid; grid-template-columns: 200px 1fr; gap: 24px; margin-bottom: 8px; }
.adm-photo {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 250px; border: 2px dashed var(--champagne); border-radius: 12px;
  background: var(--ivory); color: var(--green); cursor: pointer; overflow: hidden;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.adm-photo:hover { background: #efe8d8; border-color: var(--green); }
.adm-photo img { width: 100%; height: 100%; object-fit: cover; }
.adm-photo span { padding: 14px; font-size: 0.9rem; }
.adm-title { margin: 36px 0 18px; font-family: var(--font-heading); font-size: 2rem; color: var(--green); }
.adm-title span { font-size: 1rem; opacity: 0.6; }
.adm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.adm-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 12px;
  border-top: 3px solid var(--champagne); background: var(--white);
  box-shadow: 0 12px 30px rgba(23, 63, 53, 0.07); animation: favIn 0.4s ease both;
}
.adm-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--ivory); }
.adm-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; flex: 1; }
.adm-body b { font-family: var(--font-heading); font-size: 1.25rem; color: var(--green); font-weight: 600; }
.adm-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 0.8rem; margin: 2px 0 8px; }
.adm-meta span { padding: 2px 10px; border-radius: 99px; background: var(--ivory); border: 1px solid var(--champagne); }
.adm-meta .out { background: #fdf3f2; color: #b3261e; border-color: #b3261e; }
.adm-actions { display: flex; gap: 8px; margin-top: auto; }
.adm-actions .set-btn { flex: 1; padding: 9px 10px; font-size: 0.85rem; letter-spacing: 0.03em; }
@media (max-width: 700px) {
  .adm-top { grid-template-columns: 1fr; }
  .adm-photo { min-height: 200px; }
}

/* ---------- Sold out + product pop-up ---------- */
.product-card { cursor: pointer; }
.product-card.sold .product-image img { opacity: 0.45; }
.sold-tag {
  position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2;
  padding: 3px 12px; border-radius: 99px; background: #b3261e; color: #fff; font-size: 0.75rem;
}
.add-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.qv-modal {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(0, 0, 0, 0.55); animation: favIn 0.25s ease both;
}
.qv-card {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  width: min(860px, 100%); max-height: 90vh; overflow: auto;
  border-radius: 14px; border-top: 4px solid var(--champagne); background: var(--white);
}
.qv-img { background: var(--ivory); min-height: 340px; }
.qv-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.qv-info { display: flex; flex-direction: column; gap: 10px; padding: 34px 30px; }
.qv-info h2 { font-family: var(--font-heading); font-size: 2rem; font-weight: 600; color: var(--green); }
.qv-price { font-size: 1.3rem; font-weight: 500; color: var(--green); }
.qv-desc { line-height: 1.8; opacity: 0.85; white-space: pre-line; }
.qv-add { align-self: flex-start; margin-top: auto; }
.qv-close {
  position: absolute; top: 10px; inset-inline-end: 14px; z-index: 2;
  width: 36px; height: 36px; border: none; border-radius: 50%;
  background: rgba(255, 255, 255, 0.9); color: var(--green); font-size: 1.5rem; cursor: pointer;
}
@media (max-width: 700px) {
  .qv-card { grid-template-columns: 1fr; }
  .qv-img { min-height: 260px; }
}

/* ---------- Admin dashboard (new look) ---------- */
.ad-hero {
  position: relative;
  overflow: hidden;
  padding: 44px 24px 0;
  color: var(--ivory);
  background:
    radial-gradient(circle at 10% 0%, #2a6a58 0%, transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(198, 167, 122, 0.28), transparent 50%),
    var(--green);
}
.ad-hero::before {
  content: ""; position: absolute; width: 340px; height: 340px; top: -190px;
  inset-inline-end: 10%; border-radius: 50%; border: 1px solid rgba(198, 167, 122, 0.25);
}
.ad-hero-inner {
  position: relative; z-index: 1; display: flex; justify-content: space-between;
  align-items: flex-end; gap: 20px; flex-wrap: wrap; max-width: 1200px; margin: 0 auto;
}
.ad-hero h1 {
  margin: 2px 0 4px; font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; color: var(--ivory);
}
.ad-sub { opacity: 0.85; }
.ad-chip {
  display: flex; align-items: center; gap: 8px; padding: 8px 16px;
  border: 1px solid rgba(198, 167, 122, 0.55); border-radius: 999px;
  font-size: 0.85rem; background: rgba(255, 255, 255, 0.08);
}
.ad-chip b { color: var(--champagne); font-weight: 500; }
.ad-dot { width: 8px; height: 8px; border-radius: 50%; background: #46d39a; box-shadow: 0 0 0 4px rgba(70, 211, 154, 0.25); }

.ad-stats {
  position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; max-width: 1200px; margin: 30px auto 0; transform: translateY(50%);
}
.ad-stat {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px;
  border-radius: 12px; border-top: 3px solid var(--champagne);
  background: var(--white); color: var(--charcoal);
  box-shadow: 0 16px 36px rgba(23, 63, 53, 0.16);
  transition: transform 0.25s ease;
}
.ad-stat:hover { transform: translateY(-4px); }
.ad-stat i {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 46px; height: 46px; border-radius: 12px; background: var(--ivory); color: var(--green);
}
.ad-stat svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ad-stat b { display: block; font-family: var(--font-heading); font-size: 2rem; line-height: 1; color: var(--green); }
.ad-stat span { font-size: 0.85rem; opacity: 0.7; }

.ad-layout {
  display: grid; grid-template-columns: 430px 1fr; gap: 28px; align-items: start;
  max-width: 1200px; margin: 0 auto; padding: 90px 24px 80px;
}
.ad-form { margin: 0; }
.ad-label {
  margin: 22px 0 10px; padding-bottom: 6px; border-bottom: 1px solid rgba(198, 167, 122, 0.5);
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--champagne);
}
html[lang="ar"] .ad-label { letter-spacing: 0; }
.ad-form .set-grid { grid-template-columns: 1fr 1fr; }
.ad-actions { margin-top: 6px; }

.ad-photo {
  display: flex; align-items: center; justify-content: center; text-align: center;
  height: 280px; border: 2px dashed var(--champagne); border-radius: 14px;
  background: var(--ivory); color: var(--green); cursor: pointer; overflow: hidden;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.ad-photo:hover { background: #efe8d8; border-color: var(--green); }
.ad-photo img { width: 100%; height: 100%; object-fit: cover; }
.ad-photo span { display: grid; justify-items: center; gap: 8px; padding: 14px; font-size: 0.9rem; }
.ad-photo svg { width: 38px; height: 38px; fill: none; stroke: var(--champagne); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.ad-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.ad-toolbar .adm-title { margin: 0; }
.ad-search {
  width: 260px; max-width: 100%; padding: 11px 16px; border: 1px solid rgba(23, 63, 53, 0.3);
  border-radius: 999px; background: var(--white); font: inherit; color: var(--charcoal);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ad-search:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(198, 167, 122, 0.45); }
.ad-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.ad-pill {
  padding: 8px 20px; border: 1px solid var(--champagne); border-radius: 999px;
  background: var(--white); color: var(--green); font: inherit; font-size: 0.9rem; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.ad-pill:hover { transform: translateY(-2px); }
.ad-pill.active { background: var(--green); color: var(--ivory); border-color: var(--green); }

.adm-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.adm-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.adm-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(23, 63, 53, 0.16); }
.adm-img { position: relative; }
.adm-img .out-tag {
  position: absolute; top: 10px; inset-inline-start: 10px; padding: 3px 12px;
  border-radius: 99px; background: #b3261e; color: #fff; font-size: 0.75rem;
}
.adm-price { font-weight: 500; color: var(--green); }

@media (max-width: 1000px) {
  .ad-layout { grid-template-columns: 1fr; padding-top: 110px; }
  .ad-stats { grid-template-columns: repeat(2, 1fr); transform: translateY(30%); }
}
@media (max-width: 600px) {
  .ad-stats { grid-template-columns: 1fr 1fr; gap: 10px; transform: translateY(25%); }
  .ad-stat { padding: 14px; }
  .ad-stat i { display: none; }
  .ad-layout { padding-top: 130px; }
  .ad-form .set-grid { grid-template-columns: 1fr; }
}

/* admin dashboard: keep the number cards fully inside the green header */
.ad-hero { padding-bottom: 28px; }
.ad-stats { transform: none; margin-top: 28px; }
.ad-layout { padding-top: 40px; }

@media (max-width: 1000px) {
  .ad-stats { transform: none; }
  .ad-layout { padding-top: 32px; }
}
@media (max-width: 600px) {
  .ad-stats { transform: none; }
  .ad-layout { padding-top: 28px; }
}

/* smaller product cards on the shop pages */
.shop .product-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.shop .product-info { padding: 12px 14px 14px; }
.shop .product-info h3 { font-size: 1.15rem; }

@media (max-width: 1000px) {
  .shop .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .shop .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ===== Admin tabs ===== */
.tx-tabs { max-width: 1200px; margin: 26px auto 0; padding: 0 24px; display: flex; gap: 8px; flex-wrap: wrap; }
.tx-tabs button { font: 500 .8rem "Jost", sans-serif; letter-spacing: .12em; text-transform: uppercase; padding: 12px 22px; border: 1px solid rgba(23,63,53,.2); border-radius: 999px; background: #fff; color: #173F35; cursor: pointer; transition: .2s; }
.tx-tabs button:hover { border-color: #C6A77A; }
.tx-tabs button.active { background: #173F35; color: #F5F1E8; border-color: #173F35; }
.tx-tabs button[hidden], .tx-panel[hidden] { display: none !important; }

.tx-wrap { max-width: 1200px; margin: 0 auto; padding: 24px 24px 70px; }
.tx-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.tx-stats div { background: #fff; border: 1px solid rgba(23,63,53,.12); border-radius: 16px; padding: 18px 20px; }
.tx-stats div.gold { background: #173F35; border-color: #173F35; }
.tx-stats small { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; opacity: .65; }
.tx-stats b { font: 600 1.7rem "Cormorant Garamond", serif; color: #173F35; }
.tx-stats .gold small { color: #C6A77A; opacity: 1; }
.tx-stats .gold b { color: #F5F1E8; }

.tx-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.tx-bar input, .tx-bar select { font: inherit; padding: 12px 16px; border: 1px solid rgba(23,63,53,.2); border-radius: 12px; background: #fff; min-width: 180px; }
.tx-bar input { flex: 1; }

.tx-card { background: #fff; border: 1px solid rgba(23,63,53,.12); border-radius: 18px; padding: 20px; margin-bottom: 14px; box-shadow: 0 6px 22px rgba(23,63,53,.05); }
.tx-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tx-top b { font: 600 1.25rem "Cormorant Garamond", serif; color: #173F35; display: block; }
.tx-top small { opacity: .6; }
.tx-who { margin: 10px 0; font-size: .92rem; opacity: .85; }
.tx-items { list-style: none; margin: 0; padding: 10px 0; border-top: 1px dashed rgba(23,63,53,.18); border-bottom: 1px dashed rgba(23,63,53,.18); }
.tx-items li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: .92rem; }
.tx-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: .88rem; }
.tx-foot b { color: #173F35; font-size: 1.05rem; }

.tx-st { font: 600 .78rem "Jost", sans-serif; letter-spacing: .08em; text-transform: uppercase; padding: 9px 14px; border-radius: 999px; border: 0; cursor: pointer; }
.tx-b-pending { background: #f6ead2; color: #8a6a1f; }
.tx-b-confirmed { background: #dcebf5; color: #1f5a82; }
.tx-b-shipped { background: #e6dff3; color: #5a3d8a; }
.tx-b-delivered { background: #d9efe3; color: #1d6b45; }
.tx-b-cancelled { background: #f6dcdc; color: #9a2b2b; }

.tx-table { background: #fff; border: 1px solid rgba(23,63,53,.12); border-radius: 18px; overflow: hidden; }
.tx-row { display: grid; grid-template-columns: 2.2fr 1.3fr .6fr .9fr 1.3fr; gap: 12px; align-items: center; padding: 14px 20px; border-bottom: 1px solid rgba(23,63,53,.08); font-size: .92rem; }
.tx-row:last-child { border-bottom: 0; }
.tx-row.head { background: #173F35; color: #C6A77A; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.tx-row small, .tx-staff small { display: block; opacity: .6; word-break: break-all; }

.tx-role { font-style: normal; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: #eee; color: #444; }
.tx-role.admin { background: #dcebf5; color: #1f5a82; }
.tx-role.owner { background: #C6A77A; color: #173F35; font-weight: 600; }

.tx-staff { display: flex; align-items: center; gap: 14px; justify-content: space-between; background: #fff; border: 1px solid rgba(23,63,53,.12); border-radius: 16px; padding: 16px 20px; margin-bottom: 10px; }
.tx-note { background: #f3ecdf; border-radius: 12px; padding: 14px 18px; margin-bottom: 16px; font-size: .9rem; }
.tx-empty { text-align: center; padding: 40px 0; opacity: .6; }

@media (max-width: 800px) {
  .tx-row { grid-template-columns: 1fr 1fr; }
  .tx-row.head { display: none; }
}

/* real numbers (1 2 3) instead of old-style letters */
.ad-stats *, .tx-stats *, .tx-top b, .tx-foot b {
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

/* header follows you while scrolling */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 2px 14px rgba(23, 63, 53, 0.08);
}

/* ===== Admin: product details ===== */
.px-box { margin: 22px 0; display: grid; gap: 18px; }
.px-sec { background: #fff; border: 1px solid rgba(23,63,53,.14); border-radius: 18px; padding: 20px; }
.px-sec h4 { margin: 0 0 14px; font: 600 1.25rem "Cormorant Garamond", serif; color: #173F35; }
.px-sec h4::after { content: ""; display: block; width: 36px; height: 2px; background: #C6A77A; margin-top: 6px; }
.px-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.px-sec label { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #173F35; }
.px-sec input[type=text], .px-sec input[type=number] { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid rgba(23,63,53,.2); border-radius: 12px; font: inherit; background: #fff; text-transform: none; letter-spacing: 0; }
.px-sec input:focus { outline: 0; border-color: #C6A77A; box-shadow: 0 0 0 3px rgba(198,167,122,.25); }
.px-hint { margin: 8px 0 0; font-size: .85rem; color: #8a6a1f; min-height: 1em; }
.px-check { margin-top: 12px; display: flex !important; gap: 10px; align-items: center; text-transform: none !important; letter-spacing: 0 !important; font-size: .95rem !important; }

.px-color { border: 1px solid rgba(23,63,53,.14); border-radius: 14px; padding: 14px; margin-bottom: 12px; background: #faf8f3; }
.px-color-top { display: flex; gap: 10px; align-items: center; }
.px-color-top input[type=color] { width: 46px; height: 46px; padding: 0; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px rgba(23,63,53,.25); cursor: pointer; background: none; flex: none; }
.px-color-top input[type=text] { margin-top: 0 !important; }
.px-x { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f6dcdc; color: #9a2b2b; font-size: 1.3rem; cursor: pointer; }
.px-photos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.px-ph { position: relative; width: 70px; height: 88px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(23,63,53,.15); }
.px-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.px-ph b { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: rgba(36,36,36,.75); color: #fff; font-size: .9rem; line-height: 19px; text-align: center; cursor: pointer; }
.px-add { width: 70px; height: 88px; border: 2px dashed #C6A77A; border-radius: 10px; display: flex !important; align-items: center; justify-content: center; font-size: 1.6rem !important; color: #C6A77A !important; cursor: pointer; letter-spacing: 0 !important; }
.px-add:hover { background: #f3ecdf; }

.px-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.px-chip { min-width: 52px; padding: 10px 14px; border: 1px solid rgba(23,63,53,.25); border-radius: 10px; background: #fff; color: #173F35; font: 500 .9rem "Jost", sans-serif; cursor: pointer; transition: .15s; }
.px-chip.on { background: #173F35; color: #F5F1E8; border-color: #173F35; }
.px-stock { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.px-st { display: grid !important; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; background: #faf8f3; border-radius: 12px; padding: 10px 12px; }
.px-st span { font-weight: 600; font-size: 1rem; }
.px-st input { margin-top: 0 !important; padding: 8px 10px !important; }
.px-st small { grid-column: 1 / -1; opacity: .6; text-transform: none; letter-spacing: 0; }

.adm-price s { opacity: .5; font-size: .85em; margin-left: 4px; }
.adm-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.adm-tags .tg { font-style: normal; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: #eee; color: #444; }
.adm-tags .tg.new { background: #d9efe3; color: #1d6b45; }
.adm-tags .tg.sale { background: #f6dcdc; color: #9a2b2b; }

@media (max-width: 600px) { .px-grid { grid-template-columns: 1fr; } }
#pxGallery .px-ph, #pxGallery .px-add { width: 96px; height: 120px; }

/* ===== Part 3: product cards ===== */
.product-card { cursor: pointer; }
.product-image { position: relative; overflow: hidden; }
.product-image img.alt { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; }
.product-card:hover .product-image img.alt { opacity: 1; }
.card-tags { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; z-index: 2; }
html[dir="rtl"] .card-tags { left: auto; right: 12px; }
.tag { font: 600 .66rem "Jost", sans-serif; letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; border-radius: 4px; line-height: 1; }
.tag-new { background: #173F35; color: #F5F1E8; }
.tag-sale { background: #B23A2B; color: #fff; }
.card-swatches { display: flex; align-items: center; gap: 6px; margin: 8px 0 2px; }
.card-swatches i { width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(23,63,53,.3), inset 0 0 0 2px #fff; }
.card-swatches small { font-size: .75rem; opacity: .6; }
.product-price.sale { color: #B23A2B; }
.old-price { margin-inline-start: 8px; opacity: .5; font-size: .85em; font-weight: 400; }
.card-price { margin: 4px 0 10px; }
.bag-opts { display: block; font-size: .85rem; opacity: .7; margin: 4px 0; }

/* ===== Part 3: product page ===== */
.pp { background: #F5F1E8; }
.pp-wrap { max-width: 1280px; margin: 0 auto; padding: 26px 24px 90px; }
.pp-loading { text-align: center; padding: 120px 0; opacity: .5; }
.pp-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .85rem; margin-bottom: 26px; color: #173F35; }
.pp-crumbs a { opacity: .65; text-decoration: none; color: inherit; }
.pp-crumbs a:hover { opacity: 1; color: #C6A77A; }
.pp-crumbs span { opacity: .35; }
.pp-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: start; }

.pp-gallery { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; position: sticky; top: 120px; }
.pp-thumbs { display: flex; flex-direction: column; gap: 10px; max-height: 660px; overflow-y: auto; scrollbar-width: none; }
.pp-thumb { padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: #fff; cursor: pointer; aspect-ratio: 3 / 4; opacity: .7; transition: .2s; }
.pp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-thumb:hover { opacity: 1; }
.pp-thumb.on { border-color: #173F35; opacity: 1; }
.pp-stage { position: relative; overflow: hidden; border-radius: 22px; background: #fff; aspect-ratio: 3 / 4; box-shadow: 0 24px 60px rgba(23,63,53,.12); }
.pp-stage img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) { .pp-stage:hover img { transform: scale(1.7); } }
.pp-tags { position: absolute; top: 16px; left: 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; pointer-events: none; }
html[dir="rtl"] .pp-tags { left: auto; right: 16px; }
.pp-tags .tag { font-size: .74rem; padding: 7px 13px; }
.pp-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: #173F35; font-size: 1.7rem; line-height: 1; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.15); opacity: 0; transition: .2s; }
.pp-stage:hover .pp-arrow { opacity: 1; }
.pp-arrow.prev { left: 14px; } .pp-arrow.next { right: 14px; }
.pp-arrow:hover { background: #173F35; color: #F5F1E8; }
.pp-count { position: absolute; left: 16px; bottom: 16px; background: rgba(36,36,36,.65); color: #fff; font-size: .75rem; letter-spacing: .1em; padding: 6px 12px; border-radius: 999px; }
.pp-zoom { position: absolute; right: 16px; bottom: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); cursor: pointer; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.pp-zoom svg { width: 22px; height: 22px; fill: none; stroke: #173F35; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.pp-kicker { margin: 0 0 8px; font: 500 .75rem "Jost", sans-serif; letter-spacing: .24em; text-transform: uppercase; color: #C6A77A; }
.pp-info h1 { margin: 0; font: 600 clamp(2rem, 3.4vw, 3rem) / 1.1 "Cormorant Garamond", serif; color: #173F35; }
.pp-sku { margin-top: 10px; font-size: .85rem; opacity: .6; }
.pp-sku span { letter-spacing: .08em; }
.pp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin: 18px 0 26px; padding-bottom: 24px; border-bottom: 1px solid rgba(23,63,53,.15); }
.pp-price .now { font: 600 2rem "Jost", sans-serif; color: #173F35; }
.pp-price .now.sale { color: #B23A2B; }
.pp-price s { font-size: 1.15rem; opacity: .45; }
.pp-save { font-size: .78rem; letter-spacing: .06em; background: #f6e3df; color: #B23A2B; padding: 6px 12px; border-radius: 999px; }

.pp-block { margin-bottom: 22px; }
.pp-label { font: 500 .8rem "Jost", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #173F35; margin-bottom: 12px; }
.pp-label b { font-weight: 600; letter-spacing: .04em; text-transform: none; font-size: .95rem; }
.pp-swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.pp-swatch { width: 62px; height: 62px; padding: 3px; border: 2px solid rgba(23,63,53,.18); border-radius: 50%; background: #fff; cursor: pointer; transition: .2s; overflow: hidden; }
.pp-swatch img, .pp-swatch i { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: top; }
.pp-swatch:hover { border-color: #C6A77A; }
.pp-swatch.on { border-color: #173F35; box-shadow: 0 0 0 3px rgba(198,167,122,.45); }
.pp-sizes { display: flex; flex-wrap: wrap; gap: 10px; border-radius: 12px; }
.pp-sizes.shake { animation: ppShake .45s; }
@keyframes ppShake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.pp-size { min-width: 58px; height: 50px; padding: 0 16px; border: 1.5px solid #173F35; border-radius: 10px; background: #fff; color: #173F35; font: 500 .95rem "Jost", sans-serif; cursor: pointer; transition: .18s; }
.pp-size:hover { background: #f3ecdf; }
.pp-size.on { background: #173F35; color: #F5F1E8; }
.pp-size.out { border-color: rgba(23,63,53,.2); color: rgba(23,63,53,.35); cursor: not-allowed; background: linear-gradient(to top right, transparent calc(50% - 1px), rgba(178,58,43,.55) 50%, transparent calc(50% + 1px)), #fff; }
.pp-qtyrow { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pp-qty { display: inline-flex; align-items: center; border: 1.5px solid #173F35; border-radius: 12px; overflow: hidden; background: #fff; }
.pp-qty button { width: 48px; height: 48px; border: 0; background: none; font-size: 1.3rem; color: #173F35; cursor: pointer; }
.pp-qty button:hover { background: #f3ecdf; }
.pp-qty span { min-width: 44px; text-align: center; font-weight: 600; }
.pp-low { color: #B23A2B; font-weight: 500; }
.pp-subtotal { margin: 4px 0 18px; font-size: 1.02rem; color: #173F35; }
.pp-subtotal b { font-size: 1.2rem; }
.pp-msg { min-height: 1.3em; margin-bottom: 8px; color: #B23A2B; font-size: .9rem; font-weight: 500; }
.pp-actions { display: flex; gap: 12px; }
.pp-add, .pp-buy { display: block; width: 100%; height: 58px; border: 0; border-radius: 14px; font: 600 .95rem "Jost", sans-serif; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: .25s; text-align: center; text-decoration: none; line-height: 58px; }
.pp-add { background: #173F35; color: #F5F1E8; flex: 1; }
.pp-add:hover:not(:disabled) { background: #0f2c25; transform: translateY(-2px); box-shadow: 0 14px 28px rgba(23,63,53,.28); }
.pp-add.done { background: #1d6b45; }
.pp-buy { margin-top: 12px; background: #C6A77A; color: #173F35; }
.pp-buy:hover:not(:disabled) { background: #b8975f; transform: translateY(-2px); box-shadow: 0 14px 28px rgba(198,167,122,.4); }
.pp-add:disabled, .pp-buy:disabled { opacity: .45; cursor: not-allowed; }
.pp-fav { position: static !important; flex: none; width: 58px; height: 58px; border-radius: 14px !important; border: 1.5px solid #173F35 !important; background: #fff; display: grid; place-items: center; cursor: pointer; }
.pp-fav svg { width: 24px; height: 24px; }
.pp-guide { margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; color: #173F35; font: 500 .95rem "Jost", sans-serif; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; padding: 0; }
.pp-guide svg { width: 22px; height: 22px; fill: none; stroke: #173F35; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pp-desc { margin-top: 30px; padding-top: 26px; border-top: 1px solid rgba(23,63,53,.15); }
.pp-desc h3 { margin: 0 0 10px; font: 600 1.4rem "Cormorant Garamond", serif; color: #173F35; }
.pp-desc p { margin: 0; line-height: 1.8; color: #333; }
.pp-help { display: block; margin-top: 24px; padding: 14px 18px; border-radius: 14px; background: #fff; border: 1px dashed #C6A77A; color: #173F35; text-decoration: none; font-size: .92rem; transition: .2s; }
.pp-help:hover { background: #f3ecdf; }
.pp-more { margin-top: 90px; }
.pp-more h2 { font: 600 2.2rem "Cormorant Garamond", serif; color: #173F35; margin: 0 0 26px; text-align: center; }
.pp-more h2::after { content: ""; display: block; width: 50px; height: 2px; background: #C6A77A; margin: 12px auto 0; }
.pp-more .product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pp-empty { text-align: center; padding: 120px 0; }
.pp-empty h2 { font: 600 2.4rem "Cormorant Garamond", serif; color: #173F35; margin-bottom: 24px; }
.pp-empty .pp-add { display: inline-block; width: auto; padding: 0 36px; }

.pp-lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(15,25,22,.94); display: grid; place-items: center; cursor: zoom-out; padding: 24px; }
.pp-lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; object-fit: contain; }
.pp-lb-x, .pp-modal-x { position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 1.8rem; cursor: pointer; }
.pp-modal { position: fixed; inset: 0; z-index: 2000; background: rgba(15,25,22,.6); display: grid; place-items: center; padding: 20px; }
.pp-modal-card { position: relative; background: #fff; border-radius: 22px; padding: 36px 32px 30px; max-width: 460px; width: 100%; }
.pp-modal-card h3 { margin: 0 0 14px; font: 600 1.8rem "Cormorant Garamond", serif; color: #173F35; }
.pp-modal-card ul { margin: 0 0 20px; padding-inline-start: 20px; line-height: 1.8; }
.pp-modal-x { background: #f3ecdf; color: #173F35; top: 14px; right: 14px; width: 38px; height: 38px; font-size: 1.5rem; }
.pp-wa { display: block; text-align: center; padding: 14px; border-radius: 12px; background: #173F35; color: #F5F1E8; text-decoration: none; font-weight: 500; }

@media (max-width: 1000px) {
  .pp-grid { grid-template-columns: 1fr; gap: 28px; }
  .pp-gallery { grid-template-columns: 1fr; position: static; }
  .pp-thumbs { flex-direction: row; order: 2; max-height: none; overflow-x: auto; }
  .pp-thumb { width: 74px; flex: none; }
  .pp-arrow { opacity: 1; }
  .pp-more .product-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Admin: save message (shows right above Save) ===== */
#msgProduct { min-height: 1.4em; margin: 10px 0; color: #B23A2B; font-weight: 500; font-size: .92rem; }
#msgProduct.ok { color: #1d6b45; }

/* ===== CHECKOUT (payment.html) ===== */
.pay { background: #F5F1E8; }
.pay-wrap { max-width: 1180px; margin: 0 auto; padding: 30px 24px 90px; }
.pay-loading { text-align: center; padding: 120px 0; opacity: .55; }

.pay-steps { display: flex; justify-content: center; gap: 10px; list-style: none; margin-bottom: 30px; flex-wrap: wrap; }
.pay-steps li { display: flex; align-items: center; gap: 9px; font-size: .88rem; letter-spacing: .06em; text-transform: uppercase; color: #173F35; opacity: .45; }
.pay-steps li + li::before { content: ""; width: 38px; height: 1px; background: #173F35; opacity: .4; margin-inline-end: 9px; }
.pay-steps li i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; border: 1px solid #173F35; display: grid; place-items: center; font-size: .78rem; }
.pay-steps li.done, .pay-steps li.now { opacity: 1; }
.pay-steps li.done i { background: #173F35; color: #F5F1E8; }
.pay-steps li.now i { background: #C6A77A; border-color: #C6A77A; color: #173F35; }

.pay-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 30px; align-items: start; }
.pay-form { display: grid; gap: 20px; }
.pay-card { background: #fff; border: 1px solid rgba(23,63,53,.1); border-radius: 14px; padding: 26px; box-shadow: 0 8px 28px rgba(23,63,53,.05); }
.pay-card h2 { font-family: var(--font-heading); font-size: 1.55rem; color: #173F35; display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-weight: 600; }
.pay-card h2 i { font-style: normal; font-family: var(--font-body); font-size: .8rem; width: 28px; height: 28px; border-radius: 50%; background: #173F35; color: #F5F1E8; display: grid; place-items: center; flex: none; }

.pay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pay-field { display: grid; gap: 6px; margin-bottom: 14px; }
.pay-field > span { font-size: .8rem; letter-spacing: .04em; color: #173F35; opacity: .75; }
.pay-field input, .pay-field select, .pay-field textarea {
  width: 100%; font: inherit; font-size: .95rem; padding: 12px 14px; border: 1px solid rgba(23,63,53,.22);
  border-radius: 8px; background: #FBFAF6; color: #242424; transition: border-color .2s, box-shadow .2s;
}
.pay-field textarea { resize: vertical; }
.pay-field input:focus, .pay-field select:focus, .pay-field textarea:focus { outline: none; border-color: #C6A77A; box-shadow: 0 0 0 3px rgba(198,167,122,.25); }
.pay-phone { display: flex; align-items: stretch; }
.pay-phone b { display: grid; place-items: center; padding: 0 14px; background: #EFE9DB; border: 1px solid rgba(23,63,53,.22); border-inline-end: 0; border-radius: 8px 0 0 8px; font-weight: 500; font-size: .9rem; color: #173F35; direction: ltr; }
.pay-phone input { border-radius: 0 8px 8px 0; direction: ltr; text-align: left; }
[dir="rtl"] .pay-phone b { border-radius: 0 8px 8px 0; border-inline-end: 1px solid rgba(23,63,53,.22); border-inline-start: 0; }
[dir="rtl"] .pay-phone input { border-radius: 8px 0 0 8px; }

.pay-methods { display: grid; gap: 10px; }
.pay-method { position: relative; display: flex; align-items: center; gap: 14px; padding: 15px 16px; border: 1px solid rgba(23,63,53,.2); border-radius: 10px; cursor: pointer; background: #FBFAF6; transition: all .2s; }
.pay-method:hover:not(.off) { border-color: #C6A77A; }
.pay-method.on { border-color: #173F35; background: #fff; box-shadow: 0 0 0 2px #173F35 inset; }
.pay-method.off { opacity: .5; cursor: not-allowed; }
.pay-method input { position: absolute; opacity: 0; pointer-events: none; }
.pay-m-icon { width: 44px; height: 44px; border-radius: 10px; background: #173F35; display: grid; place-items: center; flex: none; }
.pay-m-icon svg { width: 22px; height: 22px; fill: none; stroke: #C6A77A; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pay-m-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.pay-m-text b { font-weight: 500; color: #173F35; }
.pay-m-text small { opacity: .65; font-size: .8rem; }
.pay-method em { font-style: normal; font-size: .72rem; padding: 4px 10px; border-radius: 99px; background: #EFE9DB; color: #173F35; }
.pay-chips { display: flex; gap: 6px; margin-top: 4px; }
.pay-chips i { font-style: normal; font-size: .62rem; letter-spacing: .08em; font-weight: 600; padding: 2px 7px; border: 1px solid rgba(23,63,53,.3); border-radius: 4px; color: #173F35; }

.pay-box { margin-top: 16px; padding: 18px; border-radius: 10px; background: #FBFAF6; border: 1px dashed rgba(198,167,122,.9); display: grid; gap: 12px; }
.pay-box p { font-size: .9rem; line-height: 1.6; }
.pay-box-title b { color: #173F35; }
.pay-acc { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border: 1px solid rgba(23,63,53,.12); border-radius: 8px; padding: 12px 14px; }
.pay-acc small { display: block; font-size: .72rem; opacity: .6; text-transform: uppercase; letter-spacing: .06em; }
.pay-acc b { font-size: 1.05rem; color: #173F35; word-break: break-all; direction: ltr; unicode-bidi: plaintext; }
.pay-copy { border: 1px solid #173F35; background: transparent; color: #173F35; border-radius: 99px; padding: 7px 16px; font: inherit; font-size: .8rem; cursor: pointer; flex: none; }
.pay-copy:hover { background: #173F35; color: #F5F1E8; }
.pay-how { padding-inline-start: 20px; display: grid; gap: 4px; font-size: .86rem; opacity: .8; }
.pay-file { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; cursor: pointer; }
.pay-file-btn { border: 1px solid #173F35; color: #173F35; border-radius: 99px; padding: 8px 18px; font-size: .84rem; }
.pay-file:hover .pay-file-btn { background: #173F35; color: #F5F1E8; }
.pay-file-name { font-size: .82rem; opacity: .65; word-break: break-all; }
.pay-note { margin-top: 14px; padding: 14px 16px; border-radius: 8px; background: #FFF6E2; border: 1px solid #E8D4A6; font-size: .88rem; line-height: 1.6; }
.pay-note a { color: #173F35; font-weight: 600; }

.pay-error { display: none; padding: 13px 16px; border-radius: 8px; background: #fdecea; color: #8c1d17; border: 1px solid #f3c0bb; font-size: .9rem; }
.pay-error:not(:empty) { display: block; }
.pay-submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 17px 24px; border: 0; border-radius: 99px; background: #173F35; color: #F5F1E8; font: inherit; font-size: 1rem; letter-spacing: .05em; cursor: pointer; text-decoration: none; transition: background .2s, transform .2s; }
.pay-submit:hover { background: #0f2d25; transform: translateY(-1px); }
.pay-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.pay-submit.loading { opacity: .65; pointer-events: none; }
.pay-ghost { display: inline-flex; align-items: center; justify-content: center; padding: 15px 28px; border-radius: 99px; border: 1px solid #173F35; color: #173F35; text-decoration: none; font-size: .95rem; background: transparent; }
.pay-ghost:hover { background: #173F35; color: #F5F1E8; }
.pay-secure { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .8rem; opacity: .6; }
.pay-secure svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.pay-summary { position: sticky; top: 100px; background: #fff; border: 1px solid rgba(23,63,53,.1); border-radius: 14px; padding: 24px; box-shadow: 0 8px 28px rgba(23,63,53,.05); }
.pay-summary h2 { font-family: var(--font-heading); font-size: 1.5rem; color: #173F35; margin-bottom: 16px; font-weight: 600; }
.pay-summary ul { list-style: none; display: grid; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid rgba(23,63,53,.12); margin-bottom: 14px; }
.pay-summary li { display: flex; align-items: center; gap: 12px; font-size: .88rem; }
.pay-thumb { position: relative; width: 58px; height: 72px; border-radius: 8px; background: #EFE9DB; flex: none; }
.pay-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }
.pay-thumb em { position: absolute; top: -7px; inset-inline-end: -7px; min-width: 20px; height: 20px; border-radius: 99px; background: #173F35; color: #F5F1E8; font-style: normal; font-size: .7rem; display: grid; place-items: center; padding: 0 5px; }
.pay-li { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pay-li small { opacity: .6; font-size: .76rem; }
.pay-summary li > span { white-space: nowrap; font-weight: 500; color: #173F35; }
.pay-sum { display: flex; justify-content: space-between; padding: 6px 0; font-size: .92rem; }
.pay-sum.total { margin-top: 8px; padding-top: 14px; border-top: 1px solid rgba(23,63,53,.12); font-size: 1.1rem; color: #173F35; }
.pay-sum.total b { font-family: var(--font-heading); font-size: 1.5rem; }
.pay-edit, .pay-help { display: block; text-align: center; margin-top: 12px; font-size: .84rem; color: #173F35; }
.pay-help { opacity: .7; }

.pay-msg { max-width: 560px; margin: 50px auto; background: #fff; border-radius: 16px; padding: 44px 32px; text-align: center; display: grid; gap: 14px; justify-items: center; box-shadow: 0 10px 34px rgba(23,63,53,.08); }
.pay-msg h2 { font-family: var(--font-heading); font-size: 2rem; color: #173F35; font-weight: 600; }
.pay-msg p { opacity: .75; line-height: 1.6; }
.pay-msg-icon { width: 64px; height: 64px; border-radius: 50%; background: #173F35; display: grid; place-items: center; }
.pay-msg-icon svg { width: 28px; height: 28px; fill: none; stroke: #C6A77A; stroke-width: 1.6; }
.pay-msg-icon.bad { background: #b3261e; color: #fff; font-size: 1.8rem; font-weight: 600; }
.pay-msg-actions { display: grid; gap: 10px; width: 100%; max-width: 320px; margin-top: 10px; }
.pay-check { width: 72px; height: 72px; border-radius: 50%; background: #173F35; display: grid; place-items: center; }
.pay-check svg { width: 34px; height: 34px; fill: none; stroke: #C6A77A; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pay-done-num { font-weight: 500; color: #173F35; opacity: 1 !important; letter-spacing: .06em; }
.pay-done-total { padding: 12px 26px; border-radius: 10px; background: #F5F1E8; display: grid; }
.pay-done-total small { opacity: .6; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.pay-done-total b { font-family: var(--font-heading); font-size: 1.6rem; color: #173F35; }

@media (max-width: 900px) {
  .pay-grid { grid-template-columns: 1fr; }
  .pay-summary { position: static; order: -1; }
}
@media (max-width: 560px) {
  .pay-wrap { padding: 20px 14px 70px; }
  .pay-card { padding: 20px 16px; }
  .pay-row { grid-template-columns: 1fr; }
  .pay-steps li + li::before { width: 18px; }
}

/* payment status pill (orders + admin) */
.pay-st { font-style: normal; font-size: .72rem; padding: 4px 11px; border-radius: 99px; background: #EFE9DB; color: #173F35; white-space: nowrap; }
.pay-st.paid { background: #dff3e6; color: #17653a; }
.pay-st.awaiting_confirmation { background: #FFF1CF; color: #8a6200; }
.pay-st.failed, .pay-st.rejected { background: #fdecea; color: #8c1d17; }
.ord-pay { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0 0; margin-top: 12px; border-top: 1px dashed rgba(23,63,53,.18); font-size: .88rem; }


/* ===== ADMIN: STORE SETTINGS ===== */
.st-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.st-head h2 { font-family: var(--font-heading); font-size: 2.1rem; font-weight: 600; color: #173F35; line-height: 1.1; }
.st-head p { margin-top: 6px; max-width: 560px; opacity: .7; font-size: .92rem; line-height: 1.55; }
.st-owner { display: inline-flex; align-items: center; gap: 7px; padding: 7px 15px; border-radius: 99px; background: #173F35; color: #C6A77A; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.st-owner svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.st-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; padding-bottom: 80px; }
.st-cards { display: grid; gap: 18px; }
.st-card { background: #fff; border: 1px solid rgba(23,63,53,.1); border-radius: 14px; padding: 24px; box-shadow: 0 8px 26px rgba(23,63,53,.05); }
.st-ct { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.st-ct > div { flex: 1; min-width: 0; }
.st-ct h3 { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 600; color: #173F35; }
.st-ct p { font-size: .82rem; opacity: .65; margin-top: 2px; }
.st-ic { width: 46px; height: 46px; border-radius: 12px; background: #173F35; display: grid; place-items: center; flex: none; }
.st-ic svg { width: 23px; height: 23px; fill: none; stroke: #C6A77A; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.st-pill { font-style: normal; font-size: .72rem; padding: 5px 13px; border-radius: 99px; letter-spacing: .04em; flex: none; }
.st-pill.ok { background: #dff3e6; color: #17653a; }
.st-pill.off { background: #EFE9DB; color: #7a6a4d; }

.st-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.st-f { display: grid; gap: 6px; }
.st-f > span { font-size: .78rem; letter-spacing: .04em; color: #173F35; opacity: .75; }
.st-f input { width: 100%; font: inherit; font-size: .95rem; padding: 12px 14px; border: 1px solid rgba(23,63,53,.22); border-radius: 8px; background: #FBFAF6; color: #242424; transition: border-color .2s, box-shadow .2s; }
.st-f input:focus { outline: none; border-color: #C6A77A; box-shadow: 0 0 0 3px rgba(198,167,122,.25); background: #fff; }
.st-amt { display: flex; align-items: stretch; }
.st-amt input { border-radius: 8px 0 0 8px; border-inline-end: 0; direction: ltr; text-align: left; }
.st-amt b { display: grid; place-items: center; padding: 0 14px; background: #EFE9DB; border: 1px solid rgba(23,63,53,.22); border-radius: 0 8px 8px 0; font-size: .78rem; font-weight: 500; letter-spacing: .06em; color: #173F35; }

.st-switch { display: flex; align-items: center; gap: 14px; cursor: pointer; padding: 14px 16px; border: 1px solid rgba(23,63,53,.14); border-radius: 10px; background: #FBFAF6; font-size: .92rem; color: #173F35; }
.st-switch input { position: absolute; opacity: 0; pointer-events: none; }
.st-switch i { width: 46px; height: 26px; border-radius: 99px; background: #cfc8b6; position: relative; flex: none; transition: background .25s; }
.st-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); transition: transform .25s; }
.st-switch input:checked + i { background: #173F35; }
.st-switch input:checked + i::after { transform: translateX(20px); background: #C6A77A; }
.st-switch input:focus-visible + i { box-shadow: 0 0 0 3px rgba(198,167,122,.5); }
.st-hint { margin-top: 12px; font-size: .8rem; opacity: .6; line-height: 1.5; }

.st-prev { position: sticky; top: 100px; background: #173F35; color: #F5F1E8; border-radius: 14px; padding: 24px; }
.st-prev h3 { font-family: var(--font-heading); font-size: 1.45rem; font-weight: 600; color: #C6A77A; }
.st-prev > p { font-size: .8rem; opacity: .65; margin: 2px 0 14px; }
.st-prev ul { list-style: none; }
.st-prev li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid rgba(245,241,232,.12); font-size: .88rem; }
.st-prev li b { font-weight: 500; color: #C6A77A; text-align: end; }
.st-prev li b.off { color: rgba(245,241,232,.4); font-weight: 400; }

.st-save { grid-column: 1 / -1; position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 140%); z-index: 60; width: min(640px, calc(100% - 28px)); display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 12px 14px 12px 20px; background: #242424; color: #F5F1E8; border-radius: 99px; box-shadow: 0 14px 40px rgba(0,0,0,.3); transition: transform .3s ease; }
.st-save.show { transform: translate(-50%, 0); }
.st-save > span { display: flex; align-items: center; gap: 10px; font-size: .88rem; }
.st-save > span i { width: 9px; height: 9px; border-radius: 50%; background: #C6A77A; animation: stPulse 1.6s infinite; }
.st-save > div { display: flex; gap: 8px; }
.st-save .set-btn { padding: 9px 22px; font-size: .84rem; border-radius: 99px; }
.st-save .set-btn.ghost { color: #F5F1E8; border-color: rgba(245,241,232,.35); }
.st-save .set-btn.ghost:hover { background: rgba(245,241,232,.12); color: #fff; border-color: rgba(245,241,232,.6); }
.st-save .set-btn:not(.ghost) { background: #C6A77A; border-color: #C6A77A; color: #173F35; font-weight: 600; }
@keyframes stPulse { 50% { opacity: .35; } }

.st-toast { position: fixed; left: 50%; top: 22px; transform: translate(-50%, -160%); z-index: 70; padding: 12px 22px; border-radius: 99px; background: #173F35; color: #F5F1E8; font-size: .9rem; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .3s ease; }
.st-toast.show { transform: translate(-50%, 0); }
.st-toast.bad { background: #b3261e; }

@media (max-width: 900px) {
  .st-layout { grid-template-columns: 1fr; }
  .st-prev { position: static; order: -1; }
}
@media (max-width: 560px) {
  .st-row { grid-template-columns: 1fr; }
  .st-card { padding: 20px 16px; }
  .st-ct { flex-wrap: wrap; }
  .st-save { border-radius: 20px; }
}

/* admin: payment box */

.tx-pay { margin: 12px 0 0; padding: 12px 14px; border-radius: 8px; background: #FBFAF6; border: 1px solid rgba(23,63,53,.12); display: grid; gap: 8px; }
.tx-pay-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tx-pay small { opacity: .75; word-break: break-all; }
.tx-pay-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tx-pay-actions .set-btn { padding: 8px 16px; font-size: .8rem; }
.tx-notes { margin-top: 10px; font-size: .85rem; padding: 9px 12px; background: #FFF6E2; border-radius: 6px; }
.tx-foot small { opacity: .6; font-weight: 400; margin-inline-end: 6px; }

/* Paymob link button + settings link field */
.pay-link { display: inline-flex; align-items: center; justify-content: center; padding: 14px 22px; border-radius: 99px; background: #C6A77A; color: #173F35; font-weight: 600; text-decoration: none; letter-spacing: .04em; transition: transform .2s, background .2s; }
.pay-link:hover { background: #b8976a; transform: translateY(-1px); }
.st-linkf { margin-bottom: 14px; }

/* ===== SETTINGS PAGE (remake) ===== */
.sx { background: #F5F1E8; padding-bottom: 80px; }

/* hero */
.sx-hero { position: relative; overflow: hidden; color: #F5F1E8; background: radial-gradient(circle at 85% 0%, #24604f 0%, #173F35 60%); }
.sx-hero::before, .sx-hero::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(198,167,122,.25); pointer-events: none; }
.sx-hero::before { width: 420px; height: 420px; top: -240px; inset-inline-end: 8%; }
.sx-hero::after { width: 260px; height: 260px; bottom: -150px; inset-inline-start: 4%; }
.sx-hero-in { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 46px 24px 50px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.sx-id { display: flex; align-items: center; gap: 24px; min-width: 0; }
.sx-avatar { width: 104px; height: 104px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden; background: #C6A77A; color: #173F35; font-family: var(--font-heading); font-size: 2.2rem; font-weight: 600; box-shadow: 0 0 0 4px #173F35, 0 0 0 6px #C6A77A, 0 16px 34px rgba(0,0,0,.35); }
.sx-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sx-avatar span { display: grid; place-items: center; width: 100%; height: 100%; }
.sx-avatar.big { width: 96px; height: 96px; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #C6A77A, 0 10px 24px rgba(23,63,53,.2); }
.sx-id-text { min-width: 0; }
.sx-eyebrow { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: #C6A77A; }
.sx-hero h1 { font-family: var(--font-heading); font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 600; line-height: 1.05; color: #F5F1E8; margin: 4px 0 2px; }
.sx-mail { opacity: .8; word-break: break-all; font-size: .95rem; }
.sx-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sx-badge { font-size: .74rem; letter-spacing: .05em; padding: 5px 13px; border-radius: 99px; border: 1px solid rgba(245,241,232,.3); background: rgba(245,241,232,.08); }
.sx-badge:empty { display: none; }
.sx-badge.gold { background: #C6A77A; border-color: #C6A77A; color: #173F35; font-weight: 600; }
.sx-badge.ok { background: rgba(62,207,142,.18); border-color: rgba(62,207,142,.5); color: #b9f3d8; }
.sx-badge.ok::before { content: "✓ "; }
.sx-quick { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.sx-quick a { font-size: .85rem; padding: 8px 18px; border-radius: 99px; border: 1px solid rgba(198,167,122,.7); color: #F5F1E8; transition: background .2s, color .2s; }
.sx-quick a:hover { background: #C6A77A; color: #173F35; }

.sx-meter { display: flex; align-items: center; gap: 20px; padding: 20px 26px; border-radius: 16px; background: rgba(245,241,232,.08); border: 1px solid rgba(245,241,232,.16); backdrop-filter: blur(4px); }
.sx-ring { position: relative; width: 110px; height: 110px; flex: none; }
.sx-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.sx-ring circle { fill: none; stroke-width: 9; }
.sx-ring .bg { stroke: rgba(245,241,232,.15); }
.sx-ring .fg { stroke: #C6A77A; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset .9s cubic-bezier(.22,1,.36,1); }
.sx-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-heading); font-size: 1.7rem; color: #C6A77A; }
.sx-meter-text h3 { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 600; color: #F5F1E8; }
.sx-meter-text ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; margin: 8px 0 6px; font-size: .85rem; }
.sx-meter-text li { display: flex; align-items: center; gap: 8px; opacity: .65; }
.sx-meter-text li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid rgba(245,241,232,.5); flex: none; }
.sx-meter-text li.done { opacity: 1; }
.sx-meter-text li.done::before { background: #C6A77A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23173F35' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/10px no-repeat; border-color: #C6A77A; }
.sx-meter-text small { font-size: .78rem; opacity: .7; }

/* layout + nav */
.sx-layout { max-width: 1180px; margin: 0 auto; padding: 34px 24px 0; display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: start; }
.sx .sx-nav { position: sticky; top: 100px; display: grid; gap: 4px; padding: 10px; background: #fff; border-radius: 16px; border: 1px solid rgba(23,63,53,.08); box-shadow: 0 10px 30px rgba(23,63,53,.07); }
.sx .set-tab { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; padding: 11px 12px; border: 0; border-radius: 11px; background: none; color: #242424; font: inherit; text-align: start; cursor: pointer; transition: background .2s, color .2s; }
.sx .set-tab svg { width: 38px; height: 38px; padding: 9px; border-radius: 10px; background: #F5F1E8; color: #173F35; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; transition: background .2s, color .2s; }
.sx .set-tab span { display: grid; line-height: 1.25; }
.sx .set-tab b { font-weight: 500; font-size: .95rem; }
.sx .set-tab small { font-size: .74rem; opacity: .6; }
.sx .set-tab:hover { background: #F5F1E8; padding-inline-start: 12px; }
.sx .set-tab.active { background: #173F35; color: #F5F1E8; }
.sx .set-tab.active svg { background: rgba(198,167,122,.2); color: #C6A77A; }
.sx .set-tab.active::before { display: none; }

/* cards */
.sx-content { min-width: 0; }
.sx .set-panel.active { display: grid; gap: 22px; animation: favIn .4s ease both; }
.sx-card { background: #fff; border-radius: 16px; padding: 30px 32px; border: 1px solid rgba(23,63,53,.08); box-shadow: 0 10px 30px rgba(23,63,53,.06); position: relative; overflow: hidden; }
.sx-card::before { content: ""; position: absolute; inset-inline-start: 0; top: 26px; bottom: 26px; width: 3px; border-radius: 3px; background: #C6A77A; }
.sx-card-h { margin-bottom: 22px; }
.sx-card-h h2 { font-family: var(--font-heading); font-size: 1.9rem; font-weight: 600; color: #173F35; line-height: 1.1; }
.sx-card-h p { margin-top: 5px; font-size: .93rem; opacity: .68; max-width: 560px; }
.sx-card.danger { border-color: rgba(179,38,30,.3); }
.sx-card.danger::before { background: #b3261e; }
.sx-card.danger .sx-card-h h2 { color: #8c1d17; }

/* fields */
.sx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.sx-f { display: grid; gap: 7px; margin-bottom: 18px; align-content: start; }
.sx-f > span { font-size: .8rem; font-weight: 500; letter-spacing: .04em; color: #173F35; }
.sx .sx-f input, .sx .sx-f select, .sx .sx-f textarea { width: 100%; font: inherit; font-size: .96rem; padding: 13px 15px; border: 1px solid rgba(23,63,53,.22); border-radius: 10px; background: #FBFAF6; color: #242424; transition: border-color .2s, box-shadow .2s, background .2s; }
.sx .sx-f input:focus, .sx .sx-f select:focus, .sx .sx-f textarea:focus, .sx-phone select:focus { outline: none; border-color: #C6A77A; background: #fff; box-shadow: 0 0 0 3px rgba(198,167,122,.3); }
.sx .sx-f input[readonly] { background: #F0EBDD; opacity: .85; }
.sx .sx-f textarea { resize: vertical; }
.sx .sx-f [hidden] { display: none !important; }
.sx-phone { display: flex; }
.sx-phone select { width: 112px; flex: none; font: inherit; font-size: .92rem; padding: 13px 10px; border: 1px solid rgba(23,63,53,.22); border-inline-end: 0; border-radius: 10px 0 0 10px; background: #EFE9DB; color: #173F35; direction: ltr; }
.sx .sx-phone input { border-radius: 0 10px 10px 0; direction: ltr; text-align: left; }
[dir="rtl"] .sx-phone select { border-radius: 0 10px 10px 0; border-inline-end: 1px solid rgba(23,63,53,.22); border-inline-start: 0; }
[dir="rtl"] .sx .sx-phone input { border-radius: 10px 0 0 10px; }
.sx-help { margin: -6px 0 14px; font-size: .82rem; opacity: .6; }
.sx .set-btn { border-radius: 99px; padding: 12px 30px; }
.sx-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.sx-photo { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

/* address preview */
.sx-preview { display: flex; align-items: center; gap: 14px; margin: 4px 0 18px; padding: 15px 18px; border-radius: 12px; background: #173F35; color: #F5F1E8; }
.sx-preview-ic { width: 42px; height: 42px; border-radius: 50%; background: rgba(198,167,122,.2); display: grid; place-items: center; flex: none; }
.sx-preview-ic svg { width: 21px; height: 21px; fill: none; stroke: #C6A77A; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sx-preview small { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; opacity: .65; }
.sx-preview b { font-weight: 500; line-height: 1.4; }

/* security facts */
.sx-facts { list-style: none; display: grid; }
.sx-facts li { display: flex; justify-content: space-between; gap: 14px; padding: 13px 0; border-top: 1px solid rgba(23,63,53,.1); font-size: .95rem; }
.sx-facts li:first-child { border-top: 0; padding-top: 0; }
.sx-facts span { opacity: .65; }
.sx-facts b { font-weight: 500; color: #173F35; }

/* payment options */
.sx-pays { display: grid; gap: 12px; }
.sx-pay { position: relative; cursor: pointer; }
.sx-pay input { position: absolute; opacity: 0; pointer-events: none; }
.sx-pay > span { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; align-items: center; padding: 16px 18px; border: 1px solid rgba(23,63,53,.2); border-radius: 12px; background: #FBFAF6; transition: all .2s; }
.sx-pay i { grid-row: span 2; width: 48px; height: 48px; border-radius: 12px; background: #173F35; display: grid; place-items: center; }
.sx-pay svg { width: 23px; height: 23px; fill: none; stroke: #C6A77A; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sx-pay b { font-weight: 500; color: #173F35; }
.sx-pay small { opacity: .65; font-size: .82rem; }
.sx-pay:hover > span { border-color: #C6A77A; }
.sx-pay input:checked + span { border-color: #173F35; background: #fff; box-shadow: 0 0 0 2px #173F35 inset; }
.sx-pay input:focus-visible + span { box-shadow: 0 0 0 3px rgba(198,167,122,.5); }
.sx-note { margin: 16px 0 8px; padding: 12px 16px; border-radius: 10px; background: #FFF6E2; border: 1px solid #E8D4A6; font-size: .85rem; }

/* switches */
.sx-switch { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 0; border-top: 1px solid rgba(23,63,53,.1); cursor: pointer; }
.sx-switch:first-of-type { border-top: 0; padding-top: 0; }
.sx-switch b { display: block; font-weight: 500; color: #173F35; }
.sx-switch small { opacity: .65; }
.sx-switch input { position: absolute; opacity: 0; pointer-events: none; }
.sx-switch i { position: relative; width: 48px; height: 28px; border-radius: 99px; background: #cfc8b6; flex: none; transition: background .25s; }
.sx-switch i::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); transition: transform .25s, background .25s; }
.sx-switch input:checked ~ i { background: #173F35; }
.sx-switch input:checked ~ i::after { transform: translateX(20px); background: #C6A77A; }
[dir="rtl"] .sx-switch input:checked ~ i::after { transform: translateX(-20px); }
.sx-switch input:focus-visible ~ i { box-shadow: 0 0 0 3px rgba(198,167,122,.5); }

@media (max-width: 900px) {
  .sx-layout { grid-template-columns: 1fr; padding-top: 22px; }
  .sx .sx-nav { position: static; display: flex; overflow-x: auto; gap: 6px; padding: 8px; scrollbar-width: none; }
  .sx .sx-nav::-webkit-scrollbar { display: none; }
  .sx .set-tab { width: auto; flex: none; padding: 8px 14px 8px 8px; }
  .sx .set-tab small { display: none; }
  .sx .set-tab svg { width: 32px; height: 32px; padding: 7px; }
}
@media (max-width: 600px) {
  .sx-hero-in { padding: 30px 16px 34px; }
  .sx-id { flex-direction: column; text-align: center; align-items: center; }
  .sx-badges, .sx-quick { justify-content: center; }
  .sx-meter { width: 100%; padding: 16px; }
  .sx-layout { padding: 18px 14px 0; }
  .sx-card { padding: 24px 20px; }
  .sx-grid { grid-template-columns: 1fr; }
}

/* fix: phone box (country code + number side by side) */
.sx .sx-f .sx-phone { display: flex; align-items: stretch; width: 100%; }
.sx .sx-f .sx-phone select { width: 118px; flex: none; border-radius: 10px 0 0 10px; border-inline-end: 0; background: #EFE9DB; color: #173F35; padding: 13px 8px; direction: ltr; }
.sx .sx-f .sx-phone input { flex: 1; min-width: 0; width: auto; border-radius: 0 10px 10px 0; direction: ltr; text-align: left; }
[dir="rtl"] .sx .sx-f .sx-phone select { border-radius: 0 10px 10px 0; border-inline-end: 1px solid rgba(23,63,53,.22); border-inline-start: 0; }
[dir="rtl"] .sx .sx-f .sx-phone input { border-radius: 10px 0 0 10px; }

/* ===== shipping zones (admin Settings) ===== */
.st-sub { margin: 22px 0 10px; font-family: var(--font-body); font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #173F35; opacity: .75; }
.st-zones { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 14px; }
.st-z { display: grid; gap: 4px; font-size: .82rem; color: #173F35; }
.st-z input, .st-cty input, .st-add select { width: 100%; font: inherit; font-size: .92rem; padding: 10px 12px; border: 1px solid rgba(23,63,53,.22); border-radius: 8px; background: #FBFAF6; color: #242424; }
.st-z input:focus, .st-cty input:focus, .st-add select:focus { outline: none; border-color: #C6A77A; box-shadow: 0 0 0 3px rgba(198,167,122,.25); background: #fff; }
.st-ctys { display: grid; gap: 8px; }
.st-cty { display: grid; grid-template-columns: 1fr 180px 36px; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid rgba(23,63,53,.12); border-radius: 10px; background: #FBFAF6; font-size: .9rem; }
.st-cty .st-amt input { border-radius: 8px 0 0 8px; }
.st-x { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #fdecea; color: #b3261e; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.st-x:hover { background: #b3261e; color: #fff; }
.st-add { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.st-add select { flex: 1; min-width: 200px; width: auto; }
@media (max-width: 560px) { .st-cty { grid-template-columns: 1fr 120px 32px; } }

/* checkout: free delivery hint */
.pay-freehint { margin: 4px 0 6px; padding: 8px 12px; border-radius: 8px; background: #FFF6E2; font-size: .8rem; text-align: center; color: #7a5b00; }

/* ===== ADMIN: CUSTOMERS (remake) ===== */
.cx-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.cx-head h2 { font-family: var(--font-heading); font-size: 2.1rem; font-weight: 600; color: #173F35; line-height: 1.1; }
.cx-head p { margin-top: 6px; opacity: .7; font-size: .92rem; max-width: 560px; }
.cx-head .set-btn { display: inline-flex; align-items: center; gap: 8px; }
.cx-head .set-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.cx-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 22px; }
.cx-stats > div { position: relative; background: #fff; border: 1px solid rgba(23,63,53,.1); border-radius: 16px; padding: 18px 20px; box-shadow: 0 8px 24px rgba(23,63,53,.05); overflow: hidden; }
.cx-stats > div::before { content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 100%; height: 3px; background: #C6A77A; }
.cx-stats small { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; opacity: .65; }
.cx-stats b { font: 600 1.9rem "Cormorant Garamond", serif; color: #173F35; font-variant-numeric: lining-nums; }
.cx-stats em { font-style: normal; font-size: .8rem; margin-inline-start: 8px; color: #17653a; background: #dff3e6; padding: 2px 8px; border-radius: 99px; }
.cx-stats .gold { background: #173F35; border-color: #173F35; }
.cx-stats .gold small { color: #C6A77A; opacity: 1; }
.cx-stats .gold b { color: #F5F1E8; }
.cx-stats .warn::before { background: #b3261e; }
.cx-stats .warn b { color: #b3261e; }

.cx-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.cx-search { flex: 1 1 280px; position: relative; display: block; }
.cx-search svg { position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; fill: none; stroke: #173F35; stroke-width: 1.8; stroke-linecap: round; opacity: .55; pointer-events: none; }
.cx-search input { width: 100%; font: inherit; padding: 13px 16px 13px 46px; border: 1px solid rgba(23,63,53,.2); border-radius: 99px; background: #fff; color: #242424; }
[dir="rtl"] .cx-search input { padding: 13px 46px 13px 16px; }
.cx-tools select { font: inherit; font-size: .92rem; padding: 12px 16px; border: 1px solid rgba(23,63,53,.2); border-radius: 99px; background: #fff; color: #173F35; cursor: pointer; }
.cx-search input:focus, .cx-tools select:focus { outline: none; border-color: #C6A77A; box-shadow: 0 0 0 3px rgba(198,167,122,.28); }

.cx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.cx-chips button { font: inherit; font-size: .84rem; padding: 8px 18px; border-radius: 99px; border: 1px solid rgba(23,63,53,.25); background: transparent; color: #173F35; cursor: pointer; transition: all .2s; }
.cx-chips button:hover { border-color: #173F35; }
.cx-chips button.active { background: #173F35; color: #F5F1E8; border-color: #173F35; }
.cx-count { margin: 6px 2px 14px; font-size: .84rem; opacity: .6; }

.cx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.cx-card { background: #fff; border: 1px solid rgba(23,63,53,.1); border-radius: 18px; padding: 20px; cursor: pointer; box-shadow: 0 8px 24px rgba(23,63,53,.05); transition: transform .25s, box-shadow .25s, border-color .25s; display: grid; gap: 14px; align-content: start; }
.cx-card:hover, .cx-card:focus-visible { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(23,63,53,.14); border-color: #C6A77A; outline: none; }
.cx-top { display: flex; align-items: center; gap: 14px; }
.cx-id { flex: 1; min-width: 0; display: grid; }
.cx-id b { font-weight: 600; color: #173F35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-id small { opacity: .6; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-av { position: relative; width: 50px; height: 50px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden; background: #173F35; color: #C6A77A; font-weight: 600; letter-spacing: .04em; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #C6A77A; }
.cx-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cx-av.big { width: 78px; height: 78px; font-size: 1.4rem; }
.cx-info { list-style: none; display: grid; gap: 7px; font-size: .86rem; }
.cx-info li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cx-info svg { width: 16px; height: 16px; flex: none; fill: none; stroke: #C6A77A; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cx-nums { display: flex; border-top: 1px solid rgba(23,63,53,.1); padding-top: 14px; }
.cx-nums > div { flex: 1; display: grid; gap: 1px; text-align: center; }
.cx-nums > div + div { border-inline-start: 1px solid rgba(23,63,53,.1); }
.cx-nums b { font: 600 1.2rem "Cormorant Garamond", serif; color: #173F35; font-variant-numeric: lining-nums; }
.cx-nums small { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; opacity: .55; }
.cx-flag { padding: 8px 12px; border-radius: 8px; background: #fdecea; color: #8c1d17; font-size: .8rem; text-align: center; }
.cx-flag.big { margin-bottom: 14px; font-size: .88rem; }
.cx-more { text-align: center; margin-top: 22px; }

/* details drawer */
.cx-drawer { position: fixed; inset: 0; z-index: 1200; }
.cx-drawer[hidden] { display: none; }
.cx-shade { position: absolute; inset: 0; background: rgba(16,36,30,.55); opacity: 0; transition: opacity .25s; }
.cx-panel { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: min(480px, 100%); background: #F5F1E8; box-shadow: -20px 0 50px rgba(0,0,0,.25); padding: 34px 28px 40px; overflow-y: auto; transform: translateX(100%); transition: transform .3s cubic-bezier(.22,1,.36,1); }
[dir="rtl"] .cx-panel { transform: translateX(-100%); box-shadow: 20px 0 50px rgba(0,0,0,.25); }
.cx-drawer.show .cx-shade { opacity: 1; }
.cx-drawer.show .cx-panel { transform: none; }
.cx-close { position: absolute; top: 14px; inset-inline-end: 16px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #fff; color: #173F35; font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.cx-close:hover { background: #173F35; color: #F5F1E8; }
.cx-dh { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; padding-inline-end: 40px; }
.cx-dh h3 { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 600; color: #173F35; line-height: 1.1; }
.cx-dh p { opacity: .65; font-size: .88rem; word-break: break-all; margin-bottom: 8px; }
.cx-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.cx-act { font: inherit; font-size: .82rem; padding: 8px 16px; border-radius: 99px; border: 1px solid #173F35; background: transparent; color: #173F35; cursor: pointer; text-decoration: none; transition: all .2s; }
.cx-act:hover { background: #173F35; color: #F5F1E8; }
.cx-nums.big { background: #fff; border-radius: 14px; padding: 16px 6px; margin-bottom: 8px; border: 1px solid rgba(23,63,53,.08); }
.cx-panel h4 { margin: 22px 0 8px; font: 600 .74rem "Jost", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #173F35; opacity: .7; }
.cx-kv { list-style: none; background: #fff; border-radius: 14px; border: 1px solid rgba(23,63,53,.08); padding: 4px 16px; }
.cx-kv li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid rgba(23,63,53,.08); font-size: .9rem; }
.cx-kv li:first-child { border-top: 0; }
.cx-kv span { opacity: .6; flex: none; }
.cx-kv b { font-weight: 500; text-align: end; word-break: break-word; color: #173F35; }
.cx-role { margin-top: 20px; }
.cx-ord { width: 100%; display: flex; align-items: center; gap: 12px; margin-bottom: 8px; padding: 12px 16px; border: 1px solid rgba(23,63,53,.1); border-radius: 12px; background: #fff; font: inherit; cursor: pointer; text-align: start; transition: border-color .2s, transform .2s; }
.cx-ord:hover { border-color: #C6A77A; transform: translateX(3px); }
[dir="rtl"] .cx-ord:hover { transform: translateX(-3px); }
.cx-ord span { flex: 1; display: grid; }
.cx-ord small { opacity: .6; font-size: .76rem; }
.cx-ord strong { font-weight: 600; color: #173F35; font-variant-numeric: lining-nums; }
.cx-st { font-style: normal; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; background: #eee; color: #444; }
.cx-st.pending { background: #FFF1CF; color: #8a6200; }
.cx-st.confirmed { background: #dcebf5; color: #1f5a82; }
.cx-st.shipped { background: #e6e0f5; color: #4b3a8a; }
.cx-st.delivered { background: #dff3e6; color: #17653a; }
.cx-st.cancelled { background: #fdecea; color: #8c1d17; }
@media (max-width: 560px) { .cx-grid { grid-template-columns: 1fr; } .cx-panel { padding: 30px 18px 36px; } }

.cx-more button[hidden], .cx-drawer[hidden] { display: none !important; }

/* card box inside checkout */
.pay-embed{max-width:620px;margin:40px auto;padding:0 16px;text-align:center}
.pay-embed h2{font-family:"Cormorant Garamond",serif;color:#173F35;font-weight:600;margin:0 0 16px}
.pay-embed iframe{width:100%;height:640px;border:1px solid #e6dfd0;border-radius:16px;background:#fff}
.pay-embed-note{font-size:13px;color:#6b6b6b;margin-top:12px}