:root {
  --bg: #fff8f1;
  --bg-soft: #faf1e8;
  --card: #ffffff;
  --text: #4b2e24;
  --text-soft: #7b5a4b;
  --accent: #c96f8f;
  --accent-dark: #b84f73;
  --secondary: #d9a85f;
  --border: #e9d5c5;
  --success: #5f7f63;
  --shadow-sm: 0 6px 20px rgba(86, 58, 42, 0.08);
  --shadow: 0 14px 40px rgba(86, 58, 42, 0.12);
  --radius-lg: 22px;
  --radius-md: 14px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Inter", "Segoe UI", Tahoma, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}
html[dir="rtl"] body { font-family: "Tajawal", "Cairo", "Segoe UI", Tahoma, Arial, sans-serif; }
.container, .catalog-container, .page-shell { width: min(1180px, 100% - 48px); max-width: 1180px; margin: 0 auto; padding-inline: 0; }
.section { padding: 4.5rem 0; }
.section-header { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.2rem; }
.section h2 { font-size: 1.8rem; margin-bottom: .4rem; }
.muted { color: var(--text-soft); }
.announcement { background: #f6e8d8; color: #7b5a4b; text-align: center; padding: .48rem; font-size: .85rem; }
.site-header { background: rgba(255,255,255,.95); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 22; backdrop-filter: blur(8px); }
.nav-wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .95rem 0; }
.logo { text-decoration: none; color: var(--text); font-size: 1.25rem; font-weight: 800; }
nav { display: flex; gap: 1.1rem; }
nav a { text-decoration: none; color: var(--text); font-weight: 500; }
nav a.active { color: var(--accent-dark); }
.btn-row { display: flex; gap: .7rem; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; text-decoration: none; border: 1px solid transparent; border-radius: 999px; padding: .75rem 1.25rem; font-weight: 700; transition: .2s ease; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { border-color: var(--accent); color: var(--accent-dark); background: #fff; }
.btn-admin {
  border-color: #9a6a4f;
  color: #7b4f3a;
  background: #fffaf5;
}
.btn-admin:hover {
  background: #f7ecdf;
  border-color: #7b4f3a;
  color: #68402f;
}
.btn-soft { background: #f9efe4; color: var(--text); border-color: var(--border); }
.eyebrow { text-transform: uppercase; letter-spacing: .11em; color: #9d7a63; font-size: .8rem; font-weight: 600; }
.hero { display: grid; grid-template-columns: 1.02fr .98fr; gap: 2rem; padding: 4rem 0 3rem; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.12; margin: .7rem 0; }
.hero p { color: var(--text-soft); max-width: 62ch; }
.hero-trust-list { list-style:none; display:grid; grid-template-columns:1fr 1fr; gap:.55rem; margin-top:1.1rem; }
.hero-trust-list li { background:#fff; border:1px solid var(--border); border-radius:999px; padding:.4rem .85rem; font-size:.84rem; font-weight:700; }
.hero-visual { position: relative; min-height: 420px; }
.hero-card-main,.hero-card-small { background:#fff; border-radius:28px; box-shadow:0 24px 60px rgba(74,45,35,.12); overflow:hidden; position:absolute; border:1px solid rgba(116,76,58,.12); }
.hero-card-main { inset: 0 24% 14% 0; }
.hero-card-small.top { inset: 6% 0 46% 48%; }
.hero-card-small.bottom { inset: 52% 0 0 42%; }
.hero-card-main img,.hero-card-small img{width:100%;height:100%;object-fit:cover;display:block}
.hero-fallback{width:100%;height:100%;background:linear-gradient(145deg,#fce8ef,#f6e8d8);}
.hero-chip{position:absolute;bottom:12px;inset-inline-start:12px;background:#fff;padding:.3rem .7rem;border-radius:999px;font-size:.75rem;font-weight:700;border:1px solid var(--border)}
.hero-format-tags{position:absolute;top:12px;inset-inline-start:12px;display:flex;gap:.35rem;z-index:2}
.hero-format-tags span{background:rgba(255,255,255,.92);backdrop-filter:blur(2px);border:1px solid rgba(116,76,58,.2);color:#7a5a48;border-radius:999px;padding:.2rem .5rem;font-size:.68rem;font-weight:700}
.grid { display: grid; gap: 1rem; }
.cards, .design-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.design-card, .card, .category-card, .info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1rem;
}
.design-card { background:#fff; border:1px solid rgba(116, 76, 58, 0.12); border-radius:24px; overflow:hidden; box-shadow:0 18px 45px rgba(74,45,35,.08); display:flex; flex-direction:column; gap:0; padding:0; }
.design-card-image, .design-card-media { position:relative; width:100%; aspect-ratio:1 / 1; background:#f7efe8; overflow:hidden; border-radius:0; }
.design-card-image img, .design-card-media img { width:100%; height:100%; object-fit:contain; display:block; padding:10px; }
.design-card-body { padding:20px; display:flex; flex-direction:column; gap:12px; }
.design-card-badge { position:absolute; top:12px; left:12px; z-index:2; }
html[dir="rtl"] .design-card-badge { left:auto; right:12px; }
.thumb { min-height: 170px; border-radius: 14px; background: linear-gradient(135deg,#f0d3c3,#f8ecdd); display: flex; align-items: center; justify-content: center; font-weight: 700; color: #8f6f5f; position: relative; }
.thumb small { position: absolute; bottom: 10px; inset-inline-start: 12px; background: #fff; border-radius: 99px; font-size: .7rem; padding: .2rem .5rem; }
.badge, .format-badge { display: inline-flex; width: fit-content; border-radius: 99px; font-size: .72rem; padding: .22rem .6rem; font-weight: 700; }
.badge { background: #f8e9dc; color: #7a5a48; }
.format-badge { background: #efe4d4; color: #7e634e; }
.format-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.price { font-weight: 800; font-size: 1.1rem; color: #754d3f; }
.category-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.category-card { text-align: center; padding: 1.3rem .9rem; font-weight: 700; background: linear-gradient(180deg,#fff,#fff8f1); text-decoration:none; color:inherit; cursor:pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.category-icon{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:#fce8ef;color:#b84f73;margin:0 auto .65rem;font-size:1.2rem}
.category-card:hover { transform: translateY(-4px); box-shadow: 0 18px 45px rgba(74, 45, 35, 0.12); }
.category-card:focus-visible { outline: 3px solid rgba(179, 107, 128, 0.45); outline-offset: 3px; }

.how-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.info-card h3 { margin-bottom: .45rem; }
.catalog-hero, .page-header { margin-bottom: 1.65rem; }
.catalog-hero { max-width: 780px; }
.catalog-controls {
  background: #fff;
  border: 1px solid rgba(116, 76, 58, 0.14);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 16px 40px rgba(74, 45, 35, 0.06);
  display: grid;
  gap: 18px;
  margin-bottom: 1.25rem;
}
.catalog-search input {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(116, 76, 58, 0.18);
  padding: 0 16px;
  font-size: 15px;
}
.filter-group { display: grid; gap: 10px; }
.filter-label { font-weight: 800; color: #5a382c; font-size: 14px; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-pill {
  border: 1px solid rgba(208, 125, 154, 0.25);
  background: #fff8f2;
  color: #5a382c;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.filter-pill.active { background: #d47b9a; color: #fff; border-color: #d47b9a; }
.filter-pill:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(74, 45, 35, 0.08); }
input, textarea { width: 100%; border: 1px solid var(--border); border-radius: 12px; padding: .75rem .9rem; background: #fffefc; color: var(--text); }

.empty-state { text-align: center; padding: 2rem; background: #fff; border: 1px dashed var(--border); border-radius: var(--radius-lg); }
.details-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 1.5rem; align-items:start; }
.design-detail-image, .design-detail-media { background:#fff; border-radius:28px; border:1px solid rgba(116,76,58,.12); box-shadow:0 18px 45px rgba(74,45,35,.08); overflow:hidden; aspect-ratio:1/1; display:flex; align-items:center; justify-content:center; }
.design-detail-image img, .design-detail-media img { width:100%; height:100%; object-fit:contain; padding:16px; display:block; }
.product-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.2rem; box-shadow: var(--shadow-sm); }
.meta-list { list-style: none; display: grid; gap: .45rem; margin: .8rem 0; }
.notice { padding: .85rem; border-radius: 12px; border: 1px solid #edd8bf; background: #fff6e9; }
.form-grid { display: grid; gap: .75rem; max-width: 760px; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 1.1rem; box-shadow: var(--shadow-sm); }
.site-footer { margin-top: 2rem; background: #fff; border-top: 1px solid var(--border); padding: 2rem 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1rem; }
.site-footer a { display: block; color: var(--text); text-decoration: none; margin-bottom: .2rem; }
.copyright { text-align: center; margin-top: 1rem; color: #9a7b68; }
html[dir="rtl"] body, html[dir="rtl"] input, html[dir="rtl"] textarea { text-align: right; }
html[dir="rtl"] .section-header { flex-direction: row-reverse; }
html[dir="rtl"] .meta-list strong { margin-left: .35rem; margin-right: 0; }
html[dir="rtl"] .btn-row { justify-content: flex-start; }
.admin-preview{width:90px;aspect-ratio:1/1;overflow:hidden;border-radius:10px;background:#f7efe8;display:flex;align-items:center;justify-content:center}
.admin-preview img{width:100%;height:100%;object-fit:contain;display:block;padding:4px}

html[dir="rtl"] .catalog-search input { text-align: right; }
html[dir="rtl"] .filter-pills { direction: rtl; }
html[dir="rtl"] .filter-label { text-align: right; }

@media (max-width: 640px) {
  .catalog-controls { padding: 16px; border-radius: 18px; }
  .filter-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
  }
  .filter-pill { flex: 0 0 auto; }
}

@media (max-width: 930px) {
  .hero, .details-layout, .footer-grid { grid-template-columns: 1fr; }
  .hero-trust-list { grid-template-columns:1fr; }
  .hero-visual { min-height: 360px; margin-top: 10px; }
  .hero-card-main { inset:0 20% 18% 0; }
  .hero-card-small.top { inset:8% 0 48% 44%; }
  .hero-card-small.bottom { inset:54% 0 0 36%; }
  nav { display: none; }
  .btn-row { flex-direction: column; }
}
@media (max-width: 640px) {
  .section { padding: 2.5rem 0; }
}
@media (min-width: 760px) {
  .design-card .btn-row { flex-direction: row; }
}

.admin-users-page {
  width: min(980px, 100% - 32px);
}
.admin-users-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.admin-users-header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
}
.admin-back-btn {
  border-radius: 12px;
  padding: .62rem 1rem;
  border: 1px solid var(--border);
}
.admin-alert {
  border-radius: 12px;
  border: 1px solid transparent;
  padding: .85rem 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}
.admin-alert-error {
  background: #fff1f1;
  border-color: #f0c9c9;
  color: #9c2b2b;
}
.admin-alert-success {
  background: #edf8ef;
  border-color: #cde7d1;
  color: #1f6b35;
}
.admin-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
}
.admin-card + .admin-card { margin-top: 1.2rem; }
.admin-card h2 { margin-bottom: .95rem; font-size: 1.3rem; }
.admin-user-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .95rem;
  align-items: end;
}
.admin-form-field { display: grid; gap: .42rem; }
.admin-form-field-wide { grid-column: 1 / -1; }
.admin-form-field span { font-weight: 700; font-size: .93rem; }
.admin-user-form input,
.admin-user-form select,
.admin-submit-btn,
.admin-remove-btn {
  min-height: 44px;
  border-radius: 12px;
  padding: .62rem .85rem;
}
.admin-user-form select { background: #fff; }
.admin-form-actions { align-self: end; }
.admin-submit-btn { width: 100%; border-radius: 12px; }
.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.admin-users-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #fff;
}
.admin-users-table th,
.admin-users-table td {
  text-align: start;
  padding: .85rem .9rem;
  vertical-align: middle;
  border-bottom: 1px solid #f1e3d8;
}
.admin-users-table th { font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: #7b5a4b; }
.admin-users-table tbody tr:last-child td { border-bottom: none; }
.admin-email-cell {
  min-width: 240px;
  font-weight: 600;
  white-space: nowrap;
}
.admin-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .22rem .62rem;
  font-size: .78rem;
  font-weight: 700;
  border: 1px solid transparent;
}
.admin-pill-admin { background: #f5ebdf; color: #7a553e; }
.admin-pill-super { background: #efe5fb; color: #5e3f84; }
.admin-pill-status-active { background: #eaf6ed; color: #2a6c3a; }
.admin-pill-status-removed { background: #f4f4f4; color: #6a6a6a; }
.admin-remove-btn {
  background: #fff3f1;
  border: 1px solid #efc2bd;
  color: #a53932;
  font-weight: 700;
}
.admin-remove-btn:hover,
.admin-remove-btn:focus-visible {
  background: #fde6e2;
  border-color: #d87169;
}
.admin-action-placeholder { color: #9a887d; }

@media (max-width: 760px) {
  .admin-users-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-back-btn { width: 100%; justify-content: center; }
  .admin-user-form { grid-template-columns: 1fr; }
  .admin-form-field-wide,
  .admin-form-actions { grid-column: auto; }
  .admin-submit-btn { width: 100%; }
}


.admin-settings-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 1fr);
  gap: .85rem;
  align-items: end;
  margin: .6rem 0 1rem;
}
.admin-field {
  display: grid;
  gap: .35rem;
  font-weight: 700;
  color: #674333;
}
.admin-checkbox-card {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 56px;
  padding: .72rem .85rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fffaf4;
  cursor: pointer;
}
.admin-checkbox-card input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: #c65f75;
}
.admin-checkbox-card span {
  display: grid;
  gap: .1rem;
}
.admin-checkbox-card strong {
  color: #533327;
}
.admin-checkbox-card small {
  color: var(--text-soft);
  font-size: .78rem;
}

.admin-items-page {
  width: min(1240px, 100% - 40px);
}
.admin-items-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.3rem;
}
.admin-items-header h1 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.45rem);
}
.admin-items-new-btn {
  min-height: 44px;
  padding-inline: 1.2rem;
}
.admin-items-notice {
  margin-bottom: 1rem;
}
.admin-items-table-wrap {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}
.admin-items-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 1060px;
}
.admin-items-table thead th {
  text-align: left;
  padding: .88rem .85rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  font-size: .84rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #7f5a48;
}
.admin-items-table tbody td {
  padding: .85rem;
  border-bottom: 1px solid #f1e5da;
  vertical-align: middle;
}
.admin-items-table tbody tr:last-child td {
  border-bottom: none;
}
.admin-items-table tbody tr:hover {
  background: #fffaf4;
}
.admin-preview {
  width: 64px;
  height: 64px;
  border-radius: 12px;
}
.admin-preview img {
  object-fit: cover;
  padding: 0;
}
.admin-preview-empty {
  font-size: .75rem;
  color: var(--text-soft);
}
.admin-item-title-cell {
  display: grid;
  gap: .15rem;
}
.admin-item-title {
  font-weight: 700;
  color: #533327;
}
.admin-item-subtle,
.admin-item-id {
  font-size: .79rem;
  color: var(--text-soft);
}
.admin-item-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
.admin-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .26rem .6rem;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid transparent;
}
.admin-pill-type {
  background: #f5eee5;
  border-color: #e2d0bd;
  color: #7f5c43;
}
.admin-pill-published {
  background: #ecf8ef;
  border-color: #c5e6ce;
  color: #1e6e37;
}
.admin-pill-draft {
  background: #f6f1e8;
  border-color: #eadfce;
  color: #7a6048;
}
.admin-pill-featured {
  background: #fff1c6;
  border-color: #f1c96a;
  color: #875a07;
}
.admin-item-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
}
.admin-action-btn {
  min-height: 38px;
  padding: .55rem .9rem;
  border-radius: 10px;
  font-size: .83rem;
}
.admin-btn-danger {
  background: #fdf0ef;
  border: 1px solid #efc7c5;
  color: #a62a2a;
}
.admin-btn-danger:hover {
  background: #fbe5e3;
}
.admin-error-text {
  color: #b42318;
  font-weight: 700;
}

@media (max-width: 860px) {
  .admin-settings-grid {
    grid-template-columns: 1fr;
  }

  .admin-items-page {
    width: min(100%, 100% - 24px);
  }
  .admin-items-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .admin-items-table {
    min-width: 760px;
  }
  .admin-items-table thead th,
  .admin-items-table tbody td {
    padding: .75rem .68rem;
  }
}

/* Abu Zahra Store visual refresh inspired by the provided mockup */
:root {
  --bg: #fff8f3;
  --bg-soft: #fff2ee;
  --card: #fffdfb;
  --text: #5a2f20;
  --text-soft: #8d6f62;
  --accent: #cf5e82;
  --accent-dark: #b9466d;
  --accent-light: #f7d9df;
  --border: #ead8ce;
  --shadow-sm: 0 10px 28px rgba(107, 62, 46, 0.08);
  --shadow: 0 20px 60px rgba(107, 62, 46, 0.13);
}

html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(circle at 16% 2%, rgba(255, 228, 218, .7), transparent 32rem),
    radial-gradient(circle at 83% 10%, rgba(247, 221, 213, .75), transparent 25rem),
    linear-gradient(180deg, #fffaf6 0%, #fff7f2 48%, #fffaf7 100%);
  color: var(--text);
}
html[dir="rtl"] body { font-family: "Cairo", "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif; }
.container { width: min(1240px, 100% - 48px); max-width: 1240px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(211, 175, 163, .65);
  background: rgba(255, 250, 247, .94);
  backdrop-filter: blur(14px);
}
.nav-wrap {
  min-height: 96px;
  padding: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
}
.logo,
.logoLink {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--text);
  text-decoration: none;
  line-height: 1;
}
.logo {
  max-width: 180px;
}
.primary-nav {
  justify-content: center;
  gap: clamp(18px, 3vw, 42px);
}
.primary-nav a {
  position: relative;
  padding: 37px 0 34px;
  color: #5a3328;
  font-size: .95rem;
  font-weight: 700;
  white-space: nowrap;
}
.primary-nav a.active { color: var(--accent-dark); }
.primary-nav a.active::after {
  content: "";
  position: absolute;
  right: 8%;
  left: 8%;
  bottom: 18px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
}
.nav-actions { display: flex; align-items: center; gap: 14px; }
.language-pill,
.whatsapp-pill {
  min-height: 46px;
  border-radius: 9px;
  padding-inline: 16px;
  white-space: nowrap;
}
.language-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #5b3329;
  text-decoration: none;
  border: 1px solid #dfbeb4;
  background: rgba(255,255,255,.72);
  font-weight: 800;
}
.language-pill .globe { font-size: 1.2rem; }
.btn-primary { background: linear-gradient(135deg, #d66b8b, #c24d76); color: #fff; border: 0; box-shadow: 0 10px 22px rgba(194, 77, 118, .18); }
.btn-primary:hover { background: linear-gradient(135deg, #c9587c, #ad3f66); }
.btn-outline { border-color: #e8bfb7; color: #6a372b; background: rgba(255,255,255,.8); }
.btn-soft { width: 100%; border-radius: 10px; border-color: #edc8c6; color: var(--accent-dark); background: #fffaf8; padding: .62rem 1rem; }

.hero-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
  align-items: stretch;
  min-height: 500px;
  border-bottom: 1px solid rgba(225, 199, 188, .75);
  background: linear-gradient(90deg, rgba(255,245,239,.25), rgba(255,235,230,.86));
  overflow: hidden;
}
html[dir="ltr"] .hero-showcase { grid-template-columns: minmax(420px, .98fr) minmax(0, 1.02fr); }
.hero-media {
  position: relative;
  min-height: 500px;
  background: linear-gradient(135deg, #f7e6dc, #fff7f2);
  overflow: hidden;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 18%, transparent 0 38%, rgba(255, 248, 244, .75) 78%);
  pointer-events: none;
}
.hero-media > img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.9) sepia(.08) brightness(1.03); }
.tablet-preview {
  position: absolute;
  z-index: 3;
  right: 10%;
  top: 27%;
  width: 210px;
  aspect-ratio: 1.35;
  border: 9px solid #373737;
  border-radius: 16px;
  background: linear-gradient(135deg, #fafafa 0 18%, #edd6dc 18% 20%, #fff 20% 100%);
  box-shadow: var(--shadow);
  transform: rotate(-4deg);
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 7px;
  padding: 10px;
}
.tablet-preview .screen-bar { position: absolute; top: 7px; left: 12px; right: 12px; height: 14px; border-radius: 6px; background: repeating-linear-gradient(90deg, #dadada 0 13px, #f7f7f7 13px 18px); }
.tablet-preview .butterfly { position: absolute; inset: 35px 0 auto; text-align: center; color: #c95f79; font-size: 3rem; }
.tablet-preview span:not(.screen-bar) { color: #a95e6b; font-size: .65rem; font-weight: 900; }
.stitched-hoop {
  position: absolute;
  z-index: 4;
  bottom: 28px;
  right: 18%;
  width: 142px;
  height: 142px;
  border: 10px solid #c89b4f;
  border-radius: 50%;
  background: radial-gradient(circle, #fff9ef 0 58%, #ecdccf 59% 100%);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  color: #c45b75;
  font-size: 1.4rem;
  font-weight: 900;
}
.stitched-hoop::before { content: none; }

.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(42px, 7vw, 92px) clamp(28px, 7vw, 92px);
  text-align: start;
}
html[dir="rtl"] .hero-copy { align-items: flex-start; }
.needle-icon { color: #dc7181; font-size: 3.7rem; line-height: 1; margin-bottom: 8px; }
.hero-copy h1 {
  max-width: 640px;
  margin: 0;
  color: #572d20;
  font-size: clamp(2.45rem, 5vw, 4.35rem);
  line-height: 1.18;
  letter-spacing: -.045em;
  font-weight: 900;
}
.hero-copy p {
  max-width: 600px;
  margin-top: 26px;
  color: #8a6d60;
  font-size: clamp(1.04rem, 1.8vw, 1.35rem);
  line-height: 2;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; }
.hero-actions .btn { min-width: 205px; min-height: 60px; border-radius: 10px; font-size: 1.05rem; }

.feature-strip {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: -26px;
  border: 1px solid #ead7cf;
  border-radius: 999px;
  background: rgba(255,255,255,.91);
  box-shadow: 0 8px 28px rgba(113, 66, 49, .08);
  overflow: hidden;
}
.feature-strip a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 62px;
  padding: 0 18px;
  color: #63382d;
  text-decoration: none;
  font-weight: 800;
  border-inline-start: 1px solid #ecd8d1;
}
.feature-strip a:first-child { border-inline-start: 0; }
.feature-strip span { color: #d65f7d; font-size: 1.6rem; }

.section { padding: 44px 0 28px; }
.ornate-heading { text-align: center; margin-bottom: 28px; }
.ornate-heading h2 { margin: 0; color: #66372b; font-size: clamp(1.9rem, 3vw, 2.65rem); font-weight: 900; }
.ornate-heading span { display: block; color: #d98b97; line-height: 1; }
.product-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.product-card {
  overflow: hidden;
  border: 1px solid #eddad2;
  border-radius: 18px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 10px 28px rgba(91, 51, 38, .06);
}
.product-image {
  position: relative;
  display: grid;
  place-items: center;
  height: 196px;
  margin: 8px;
  border-radius: 13px;
  overflow: hidden;
  color: #9b6958;
  text-decoration: none;
}
.product-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-image .art-main { position: relative; z-index: 2; color: #8f5e51; font-size: 2.15rem; font-weight: 900; text-shadow: 0 2px 0 rgba(255,255,255,.7); }
.product-image small { position: absolute; bottom: 42px; color: rgba(92,55,44,.62); font-weight: 800; }
.product-art-1 { background: linear-gradient(135deg, #f8d8db, #fff1ed); }
.product-art-1::before { content:""; position:absolute; width:82%; height:78%; border-radius:26px; background: rgba(255,255,255,.38); border: 2px dashed #e7b0ba; }
.product-art-2 { background: linear-gradient(160deg, #f8f8f8, #eee7df); }
.product-art-2::before { content:""; position:absolute; inset:28px 12px; border-radius:12px; background: repeating-linear-gradient(0deg, #fff 0 8px, #f5eee8 8px 16px); }
.product-art-3 { background: radial-gradient(circle, #fff6ee 0 42%, #e8d6c3 43% 48%, #fff9f3 49% 100%); }
.product-art-3 .art-main { font-size: 4.5rem; color: #cf7782; }
.product-art-4 { background: radial-gradient(circle, #1e1b1b 0 48%, #d7a748 49% 53%, #080707 54% 100%); }
.product-art-4 .art-main, .product-art-4 small { color: #f3c55c; }
.product-art-5 { background: linear-gradient(135deg, #ead7c7, #f9efe5); }
.product-art-5 .art-main { color: #667746; }
.product-art-6 { background: linear-gradient(160deg, #fdfdfd, #e9edf2); }
.product-art-6::before { content:"★ ★"; position:absolute; top:24px; color:#e6aa30; font-size:2rem; letter-spacing:36px; }
.product-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border-radius: 999px;
  background: #d7668a;
  color: #fff;
  padding: 4px 10px;
  font-size: .76rem;
  font-style: normal;
  font-weight: 800;
}
.product-body { padding: 0 16px 14px; text-align: center; }
.product-body h3 { min-height: 54px; margin: 8px 0 4px; color: #5b2f24; font-size: 1.02rem; line-height: 1.45; }
.product-body p { margin: 0; color: #6d4a3f; font-size: .86rem; font-weight: 800; direction: ltr; }
.price { display: block; margin: 20px 0 12px; color: #6a392d; font-size: 1.05rem; }

.custom-banner {
  display: grid;
  grid-template-columns: 1.1fr 1fr .55fr;
  align-items: center;
  min-height: 210px;
  margin-top: 4px;
  border-radius: 14px;
  background: linear-gradient(90deg, #f7dfd9, #fff5f2 44%, #f8dcd8);
  overflow: hidden;
}
.banner-image {
  position: relative;
  height: 100%;
  min-height: 210px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 50%, rgba(255,255,255,.75) 0 27%, transparent 28%),
    linear-gradient(135deg, #cfa47c, #fff0e5 42%, #ead1c3);
  color: #c25573;
  font-size: 2.3rem;
  font-weight: 900;
}
.banner-image::before { content:""; width: 250px; height: 250px; border: 13px solid #bf8d45; border-radius: 50%; position: absolute; opacity: .45; }
.banner-image.has-custom-image { background: #f8e9df; padding: 12px; }
.banner-image.has-custom-image::before { display: none; }
.banner-image img { width: 100%; height: 100%; min-height: 186px; border-radius: 12px; object-fit: cover; display: block; box-shadow: 0 16px 36px rgba(86,58,42,.14); }
.banner-copy { padding: 24px; text-align: center; }
.banner-copy h2 { color: #5a2f24; font-size: 2rem; margin-bottom: 8px; }
.banner-copy p { color: #8c6b5f; font-size: 1.08rem; }
.banner-copy .btn { margin-top: 16px; border-radius: 8px; min-width: 290px; }
.thread-art { color: #d48a96; font-size: 6rem; text-align: center; opacity: .8; }

.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 26px 0 20px; }
.benefit-card {
  min-height: 120px;
  border: 1px solid #eddad2;
  border-radius: 13px;
  background: rgba(255,255,255,.76);
  padding: 22px;
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  column-gap: 14px;
}
.benefit-card span { grid-row: span 2; color: #cf5e82; font-size: 2.5rem; text-align: center; }
.benefit-card h3 { margin: 0; color: #5c3025; font-size: 1.2rem; }
.benefit-card p { margin: 4px 0 0; color: #84675c; line-height: 1.65; }

.site-footer { margin-top: 0; border-top: 1px solid #ead8ce; background: linear-gradient(180deg, #fff9f5, #fff4ed); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 48px; padding: 30px 0 26px; }
.footer-grid h4, .footer-grid h3 { color: #5a2f24; margin-bottom: 12px; }
.footer-grid a, .footer-grid p { display: block; color: #75574d; text-decoration: none; font-size: .94rem; margin: 7px 0; }
.footer-logo { display: flex; align-items: center; gap: 10px; justify-content: flex-start; }
html[dir="rtl"] .footer-logo { justify-content: flex-end; }
.footer-logo span { color: #d66b80; border: 1px solid #eaa0aa; border-radius: 50%; width: 42px; height: 42px; display: grid; place-items: center; font-size: 1.6rem; }
.footer-brand { text-align: start; }
.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-row span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #f1d9d2; color: #87493c; }
.copyright { border-top: 1px solid #ead8ce; padding: 12px 0; color: #8b7168; text-align: center; font-size: .85rem; }

@media (max-width: 1100px) {
  .nav-wrap { grid-template-columns: 1fr; gap: 10px; padding: 14px 0; }
  .logo { justify-content: center; order: -1; }
  .primary-nav { flex-wrap: wrap; gap: 16px; }
  .primary-nav a { padding: 6px 0 12px; }
  .primary-nav a.active::after { bottom: 3px; }
  .nav-actions { justify-content: center; }
  .hero-showcase { grid-template-columns: 1fr; }
  .hero-media { order: 2; min-height: 390px; }
  .product-row { grid-template-columns: repeat(3, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .container { width: min(100% - 28px, 1240px); }
  .site-header { position: relative; }
  .primary-nav { overflow-x: auto; justify-content: flex-start; padding-bottom: 4px; }
  .nav-actions { flex-direction: column; }
  .language-pill, .whatsapp-pill { width: 100%; justify-content: center; }
  .hero-copy { padding: 36px 20px; }
  .hero-copy h1 { font-size: 2.2rem; }
  .hero-actions .btn { width: 100%; min-width: unset; }
  .feature-strip { grid-template-columns: 1fr; border-radius: 22px; margin-top: 18px; }
  .feature-strip a { border-inline-start: 0; border-top: 1px solid #ecd8d1; }
  .feature-strip a:first-child { border-top: 0; }
  .product-row { grid-template-columns: 1fr; }
  .product-image { height: 230px; }
  .custom-banner { grid-template-columns: 1fr; }
  .banner-image, .banner-image img { min-height: 240px; }
  .thread-art { display: none; }
  .benefits-grid, .footer-grid, .admin-settings-card { grid-template-columns: 1fr; }
  .benefit-card { grid-template-columns: 44px 1fr; }
}
.hero-showcase { direction: ltr; }
.hero-showcase .hero-copy { direction: var(--page-dir, rtl); }
html[dir="ltr"] .hero-showcase .hero-copy { direction: ltr; }

.notice-success {
  border-color: #bad8bd;
  background: #f0fbf1;
  color: #426b47;
}
.notice-error {
  border-color: #efbbb1;
  background: #fff0ee;
  color: #9a463d;
}
.admin-settings-page .notice { margin-bottom: 1rem; }
.admin-settings-card {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(280px, 1.1fr);
  gap: 1.2rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  padding: 1.35rem;
}
.admin-settings-copy h2 { margin: .2rem 0 .55rem; color: #5a2f24; }
.admin-image-preview {
  min-height: 280px;
  border-radius: 20px;
  border: 1px solid #ead8ce;
  overflow: hidden;
  background: linear-gradient(135deg, #cfa47c, #fff0e5 42%, #ead1c3);
  box-shadow: inset 0 0 0 8px rgba(255,255,255,.35);
}
.admin-image-preview img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: block;
  object-fit: cover;
}
.admin-image-placeholder {
  min-height: 280px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: .4rem;
  color: #c25573;
  font-size: 2.4rem;
  font-weight: 900;
}
.admin-image-placeholder small {
  color: #7b5a4b;
  font-size: .9rem;
  font-weight: 700;
}
.admin-upload-form { grid-column: 1 / -1; display: grid; gap: .9rem; }
.admin-settings-actions { justify-content: flex-start; }
html[dir="rtl"] .admin-settings-actions { justify-content: flex-end; }

@media (max-width: 760px) {
  .admin-settings-card { grid-template-columns: 1fr; }
  .admin-settings-actions .btn { width: 100%; }
}

/* Dynamic homepage hero/admin image settings */
.tablet-preview.has-hero-image {
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: #fff;
}
.tablet-preview.has-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}
.stitched-hoop.has-hero-image {
  overflow: hidden;
  padding: 12px;
  background: radial-gradient(circle, #fff9ef 0 58%, #ecdccf 59% 100%);
}
.stitched-hoop.has-hero-image::before { content: none; }
.stitched-hoop.has-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 50%;
}
.admin-settings-block {
  display: grid;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
  padding: 1.35rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}
.admin-section-heading h2 {
  margin: .2rem 0 .55rem;
  color: #5a2f24;
}
.admin-hero-image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.admin-hero-image-card {
  display: grid;
  gap: .85rem;
  align-content: start;
  padding: 1rem;
  border: 1px solid #ead8ce;
  border-radius: 20px;
  background: #fffaf7;
}
.admin-hero-image-card-header h3 {
  margin: 0;
  color: #5a2f24;
  font-size: 1.04rem;
}
.admin-hero-image-card-header p {
  margin: .25rem 0 0;
  color: #8d6f62;
  font-weight: 700;
}
.admin-hero-preview {
  min-height: 190px;
  aspect-ratio: 4 / 3;
}
.admin-hero-preview img {
  min-height: 190px;
  object-fit: cover;
}
.admin-hero-preview-badge,
.admin-hero-preview-badge img {
  aspect-ratio: 1;
}
.admin-hero-preview-badge img {
  object-fit: contain;
  padding: 1rem;
  background: #fffaf7;
}
.admin-hero-image-card .admin-upload-form {
  grid-column: auto;
}

@media (max-width: 980px) {
  .admin-hero-image-grid { grid-template-columns: 1fr; }
}

/* Admin dashboard and product form polish */
.admin-dashboard-page,
.admin-design-form-page {
  width: min(1180px, 100% - 40px);
}

.admin-dashboard-hero,
.admin-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.4rem;
}

.admin-dashboard-hero h1,
.admin-form-header h1 {
  margin: .2rem 0 .35rem;
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.12;
  color: #4b2e24;
}

.admin-form-header h1 span {
  color: var(--text-soft);
  font-size: .58em;
  font-weight: 700;
}

.admin-dashboard-status-card {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-width: 230px;
  padding: 1rem 1.15rem;
  background: #fffdfb;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.admin-dashboard-status-card div {
  display: grid;
  gap: .05rem;
}

.admin-dashboard-status-card span:last-child {
  color: var(--text-soft);
  font-size: .88rem;
}

.admin-status-dot {
  width: .85rem;
  height: .85rem;
  border-radius: 999px;
  background: #d9a85f;
  box-shadow: 0 0 0 5px rgba(217, 168, 95, .16);
}

.admin-status-dot.is-connected {
  background: #5f7f63;
  box-shadow: 0 0 0 5px rgba(95, 127, 99, .16);
}

.admin-metric-grid,
.admin-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.admin-metric-card,
.admin-action-card,
.admin-design-form-card,
.admin-form-section,
.admin-media-card {
  background: #fffdfb;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}

.admin-metric-card {
  position: relative;
  overflow: hidden;
  padding: 1.15rem;
}

.admin-metric-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #e6b6c2, #d9a85f);
}

.admin-metric-card span,
.admin-action-card span {
  color: #7f5a48;
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.admin-metric-card strong {
  display: block;
  margin: .25rem 0 .1rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
  color: #4b2e24;
}

.admin-metric-card small,
.admin-action-card strong,
.admin-form-section-title p,
.admin-field small {
  color: var(--text-soft);
}

.admin-quick-actions {
  margin-top: 1.45rem;
}

.admin-section-heading {
  margin-bottom: .85rem;
}

.admin-section-heading h2 {
  margin: .1rem 0 0;
}

.admin-action-card {
  display: grid;
  gap: .35rem;
  min-height: 150px;
  padding: 1.15rem;
  text-decoration: none;
  color: var(--text);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.admin-action-card:hover,
.admin-action-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(201, 111, 143, .55);
  box-shadow: var(--shadow);
  outline: none;
}

.admin-action-card-primary {
  background: linear-gradient(135deg, #fffdfb, #fff1f5);
  border-color: rgba(201, 111, 143, .36);
}

.admin-logout-form {
  margin-top: 1.35rem;
}

.admin-items-actions {
  justify-content: flex-end;
}

.admin-items-dashboard-btn,
.admin-items-new-btn {
  min-height: 44px;
  padding-inline: 1.2rem;
}

.admin-design-form-card {
  display: grid;
  gap: 1rem;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(1rem, 2.5vw, 1.5rem);
}

.admin-form-section {
  padding: clamp(1rem, 2vw, 1.25rem);
}

.admin-form-section-title {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.admin-form-section-title > span {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  border-radius: 999px;
  background: #fce8ef;
  color: #a23f62;
  font-weight: 900;
}

.admin-form-section-title h2 {
  margin: 0;
  font-size: 1.2rem;
  color: #4b2e24;
}

.admin-form-grid,
.admin-media-grid,
.admin-file-grid {
  display: grid;
  gap: 1rem;
}

.admin-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-field-wide,
.admin-feature-checkbox {
  grid-column: 1 / -1;
}

.admin-field span {
  font-size: .92rem;
}

.form-control,
.admin-field select,
.admin-field input,
.admin-field textarea {
  min-height: 46px;
  font-size: .95rem;
}

.admin-field textarea {
  min-height: 132px;
  resize: vertical;
}

.admin-field input:focus,
.admin-field textarea:focus,
.admin-field select:focus,
.btn:focus-visible {
  outline: 3px solid rgba(201, 111, 143, .28);
  outline-offset: 2px;
  border-color: var(--accent);
}

.admin-feature-checkbox {
  align-items: flex-start;
  max-width: 560px;
}

.admin-media-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1rem;
}


.admin-media-grid-single {
  grid-template-columns: minmax(0, 420px);
}

.admin-media-grid-single .admin-form-preview {
  width: min(100%, 320px);
  height: 210px;
}

.admin-media-card {
  display: grid;
  gap: .9rem;
  padding: 1rem;
}

.admin-form-preview {
  width: min(100%, 340px);
  height: 240px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #f7efe8;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-form-preview img {
  width: 100%;
  height: 100%;
  display: block;
  padding: 8px;
}

.admin-form-preview-cover img {
  object-fit: cover;
  padding: 0;
}

.admin-form-preview-contain img {
  object-fit: contain;
}

.admin-file-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-file-field small a {
  color: var(--accent-dark);
  font-weight: 800;
}

.admin-form-submit-row {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  gap: .75rem;
  padding: 1rem 0 0;
  background: linear-gradient(180deg, rgba(255,248,241,0), var(--bg) 35%);
}

@media (max-width: 980px) {
  .admin-metric-grid,
  .admin-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-file-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .admin-dashboard-page,
  .admin-design-form-page {
    width: min(100%, 100% - 24px);
  }

  .admin-dashboard-hero,
  .admin-form-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-dashboard-status-card,
  .admin-form-header .btn,
  .admin-items-actions,
  .admin-items-actions .btn {
    width: 100%;
  }

  .admin-form-grid,
  .admin-media-grid,
  .admin-file-grid,
  .admin-metric-grid,
  .admin-action-grid {
    grid-template-columns: 1fr;
  }

  .admin-form-preview {
    width: 100%;
    max-width: 360px;
    height: min(260px, 64vw);
  }

  .admin-form-submit-row {
    align-items: stretch;
    flex-direction: column;
  }
}

.admin-design-form-card .form-control {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .75rem .9rem;
  background: #fffefc;
  color: var(--text);
}

.admin-design-form-card select.form-control {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #7b5a4b 50%), linear-gradient(135deg, #7b5a4b 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 12px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}

/* Shared official Abu Zahra Store logo */
.site-logo-img {
  display: block;
  height: auto;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  flex: 0 0 auto;
}
.logoImage,
.header-logo-img {
  height: auto;
  max-height: 58px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}
.footer-logo-img {
  max-height: 58px;
  max-width: 180px;
}
.homepage-logo-badge {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.admin-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}
.admin-login-card {
  width: min(420px, 100%);
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: 2rem;
  background: #fffdfb;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  text-align: center;
}
.admin-login-logo {
  max-height: 112px;
  max-width: 170px;
}
.admin-login-form {
  width: 100%;
  display: grid;
  gap: .9rem;
  text-align: start;
}
.admin-login-form label {
  display: grid;
  gap: .35rem;
  color: var(--text-soft);
  font-weight: 700;
}
.admin-login-form input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .78rem .9rem;
  color: var(--text);
  background: #fff;
}
.admin-page-logo {
  max-height: 96px;
  max-width: 145px;
}
.admin-dashboard-hero > .admin-page-logo,
.admin-form-header > .admin-page-logo,
.admin-items-header > .admin-page-logo,
.admin-users-header > .admin-page-logo {
  margin-inline-end: .2rem;
}
.stitched-hoop .homepage-logo-badge,
.admin-hero-preview-badge img {
  object-fit: contain;
}

@media (max-width: 1100px) {
  .logo { justify-content: center; }
}

@media (max-width: 768px) {
  .logo,
  .logoLink {
    max-width: 140px;
  }
  .logoImage,
  .header-logo-img,
  .footer-logo-img {
    max-height: 44px;
    max-width: 140px;
  }
}

@media (max-width: 760px) {
  .footer-logo-img {
    max-height: 44px;
    max-width: 140px;
  }
  .admin-page-logo {
    max-height: 88px;
    max-width: 132px;
  }
  .admin-login-logo {
    max-height: 96px;
    max-width: 150px;
  }
}

.compact-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  color: var(--muted);
  font-size: .88rem;
}

.compact-product-meta span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .28rem .55rem;
  background: #fffaf6;
}

.product-short-description {
  color: #5e463c;
  font-weight: 700;
}

.product-notice-secondary {
  margin-top: .65rem;
  background: #f8edf2;
  border-color: #f0ccd9;
}

.product-note {
  margin-top: .65rem;
  padding: .85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fffdfb;
}

.admin-public-url {
  margin: .35rem 0 0;
  color: var(--muted);
  font-size: .88rem;
}

.admin-public-url code {
  padding: .12rem .35rem;
  border-radius: 8px;
  background: #fff;
  color: #7b3d55;
}

.admin-design-form-card {
  gap: .8rem;
}

.admin-form-section {
  border: 1px solid rgba(116, 76, 58, 0.12);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(74,45,35,.06);
}

.admin-form-section-title {
  margin-bottom: .75rem;
}

.admin-note-textarea {
  min-height: 86px !important;
}

.admin-formats-field[hidden] {
  display: none !important;
}
