:root {
  color-scheme: light;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --paper: #ffffff;
  --panel: #ffffff;
  --line: #e8e0d5;
  --coffee: #2c1810;
  --coffee-dark: #1a0f0a;
  --gold: #c9a96e;
  --gold-light: #e8d5a3;
  --gold-dark: #a08040;
  --espresso: #3d2317;
  --cream: #f5f0e8;
  --berry: #c41e3a;
  --shadow: 0 18px 60px rgba(26, 15, 10, 0.14);
}

/* ==================== SARCHIA BARAN FONT ==================== */
@font-face {
  font-family: 'Sarchia Baran';
  src: url('Sarchia_Baran.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sarchia Baran';
  src: url('Sarchia_Baran.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sarchia Baran';
  src: url('Sarchia_Baran.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sarchia Baran';
  src: url('Sarchia_Baran.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sarchia Baran';
  src: url('Sarchia_Baran.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sarchia Baran';
  src: url('Sarchia_Baran.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', 'Noto Sans Arabic', 'Noto Naskh Arabic', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

/* ==================== SARCHIA BARAN FOR KURDISH SORANI ==================== */
/* ALL elements when Kurdish Sorani is active */
body[lang="ckb"],
body[lang="ckb"] * {
  font-family: 'Sarchia Baran', 'Noto Sans Arabic', 'Noto Naskh Arabic', sans-serif !important;
}

/* Specific overrides for all text elements */
body[lang="ckb"] h1,
body[lang="ckb"] h2,
body[lang="ckb"] h3,
body[lang="ckb"] h4,
body[lang="ckb"] h5,
body[lang="ckb"] h6,
body[lang="ckb"] p,
body[lang="ckb"] span,
body[lang="ckb"] a,
body[lang="ckb"] button,
body[lang="ckb"] input,
body[lang="ckb"] textarea,
body[lang="ckb"] label,
body[lang="ckb"] strong,
body[lang="ckb"] small,
body[lang="ckb"] div,
body[lang="ckb"] article,
body[lang="ckb"] section,
body[lang="ckb"] nav,
body[lang="ckb"] header,
body[lang="ckb"] main,
body[lang="ckb"] dialog,
body[lang="ckb"] form,
body[lang="ckb"] ul,
body[lang="ckb"] ol,
body[lang="ckb"] li {
  font-family: 'Sarchia Baran', 'Noto Sans Arabic', 'Noto Naskh Arabic', sans-serif !important;
}

/* Brand lockup and logo */
body[lang="ckb"] .brand-lockup,
body[lang="ckb"] .brand-lockup *,
body[lang="ckb"] .toraldo-brand,
body[lang="ckb"] .toraldo-brand *,
body[lang="ckb"] .toraldo-logo,
body[lang="ckb"] .toraldo-logo *,
body[lang="ckb"] .toraldo-caffe,
body[lang="ckb"] .toraldo-name,
body[lang="ckb"] .toraldo-tagline,
body[lang="ckb"] .toraldo-bars,
body[lang="ckb"] .toraldo-bars * {
  font-family: 'Sarchia Baran', 'Noto Sans Arabic', sans-serif !important;
}

/* Navigation and buttons */
body[lang="ckb"] .nav-link,
body[lang="ckb"] .nav-actions,
body[lang="ckb"] .nav-actions *,
body[lang="ckb"] .nav-shell,
body[lang="ckb"] .nav-shell * {
  font-family: 'Sarchia Baran', 'Noto Sans Arabic', sans-serif !important;
}

/* Language switcher */
body[lang="ckb"] .lang-switcher,
body[lang="ckb"] .lang-switcher *,
body[lang="ckb"] .lang-btn {
  font-family: 'Sarchia Baran', 'Noto Sans Arabic', sans-serif !important;
}

/* Product elements */
body[lang="ckb"] .product-card,
body[lang="ckb"] .product-card *,
body[lang="ckb"] .product-meta,
body[lang="ckb"] .product-meta *,
body[lang="ckb"] .product-category,
body[lang="ckb"] .product-price,
body[lang="ckb"] .product-description,
body[lang="ckb"] .product-phone,
body[lang="ckb"] .product-phone *,
body[lang="ckb"] .product-copy,
body[lang="ckb"] .product-copy *,
body[lang="ckb"] .product-image-button,
body[lang="ckb"] .product-image-button * {
  font-family: 'Sarchia Baran', 'Noto Sans Arabic', sans-serif !important;
}

/* Hero section */
body[lang="ckb"] .hero-section,
body[lang="ckb"] .hero-section *,
body[lang="ckb"] .hero-content,
body[lang="ckb"] .hero-content *,
body[lang="ckb"] .hero-actions,
body[lang="ckb"] .hero-actions * {
  font-family: 'Sarchia Baran', 'Noto Sans Arabic', sans-serif !important;
}

/* Toolbar and catalog */
body[lang="ckb"] .toolbar-section,
body[lang="ckb"] .toolbar-section *,
body[lang="ckb"] .catalog-tools,
body[lang="ckb"] .catalog-tools *,
body[lang="ckb"] .category-tabs,
body[lang="ckb"] .category-tabs *,
body[lang="ckb"] .tab-button,
body[lang="ckb"] .search-field,
body[lang="ckb"] .search-field * {
  font-family: 'Sarchia Baran', 'Noto Sans Arabic', sans-serif !important;
}

/* Contact section */
body[lang="ckb"] .contact-section,
body[lang="ckb"] .contact-section *,
body[lang="ckb"] .call-card,
body[lang="ckb"] .call-card * {
  font-family: 'Sarchia Baran', 'Noto Sans Arabic', sans-serif !important;
}

/* Modal elements */
body[lang="ckb"] .product-modal,
body[lang="ckb"] .product-modal *,
body[lang="ckb"] .modal-product,
body[lang="ckb"] .modal-product *,
body[lang="ckb"] .modal-product-copy,
body[lang="ckb"] .modal-product-copy *,
body[lang="ckb"] .admin-modal,
body[lang="ckb"] .admin-modal *,
body[lang="ckb"] .login-panel,
body[lang="ckb"] .login-panel *,
body[lang="ckb"] .admin-panel,
body[lang="ckb"] .admin-panel * {
  font-family: 'Sarchia Baran', 'Noto Sans Arabic', sans-serif !important;
}

/* Admin elements */
body[lang="ckb"] .admin-header,
body[lang="ckb"] .admin-header *,
body[lang="ckb"] .admin-product-row,
body[lang="ckb"] .admin-product-row *,
body[lang="ckb"] .admin-list,
body[lang="ckb"] .admin-list *,
body[lang="ckb"] .row-actions,
body[lang="ckb"] .row-actions *,
body[lang="ckb"] .settings-form,
body[lang="ckb"] .settings-form *,
body[lang="ckb"] .product-form,
body[lang="ckb"] .product-form *,
body[lang="ckb"] .stacked-form,
body[lang="ckb"] .stacked-form * {
  font-family: 'Sarchia Baran', 'Noto Sans Arabic', sans-serif !important;
}

/* Buttons */
body[lang="ckb"] .primary-button,
body[lang="ckb"] .secondary-button,
body[lang="ckb"] .ghost-button,
body[lang="ckb"] .danger-button,
body[lang="ckb"] .icon-close,
body[lang="ckb"] .scroll-btn {
  font-family: 'Sarchia Baran', 'Noto Sans Arabic', sans-serif !important;
}

/* Empty state */
body[lang="ckb"] .empty-state,
body[lang="ckb"] .empty-state * {
  font-family: 'Sarchia Baran', 'Noto Sans Arabic', sans-serif !important;
}

/* Scroll navigation */
body[lang="ckb"] .scroll-nav,
body[lang="ckb"] .scroll-nav * {
  font-family: 'Sarchia Baran', 'Noto Sans Arabic', sans-serif !important;
}

/* Eyebrow and special text */
body[lang="ckb"] .eyebrow {
  font-family: 'Sarchia Baran', 'Noto Sans Arabic', sans-serif !important;
}

/* Form elements */
body[lang="ckb"] input,
body[lang="ckb"] textarea,
body[lang="ckb"] select,
body[lang="ckb"] option {
  font-family: 'Sarchia Baran', 'Noto Sans Arabic', sans-serif !important;
}

/* RTL Support for Kurdish and Arabic */
body[dir="rtl"] {
  text-align: right;
}

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

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

body[dir="rtl"] .hero-content {
  margin-right: auto;
  margin-left: 0;
}

body[dir="rtl"] .toolbar-section,
body[dir="rtl"] .contact-section {
  flex-direction: row-reverse;
}

body[dir="rtl"] .catalog-tools {
  justify-content: flex-start;
}

body[dir="rtl"] .product-meta {
  flex-direction: row-reverse;
}

body[dir="rtl"] .product-phone {
  flex-direction: row-reverse;
}

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

body[dir="rtl"] .admin-product-row {
  direction: rtl;
}

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

body[dir="rtl"] .modal-product {
  direction: rtl;
}

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

body[dir="rtl"] .settings-form {
  direction: rtl;
}

body[dir="rtl"] .product-form {
  direction: rtl;
}

body[dir="rtl"] .search-field,
body[dir="rtl"] .stacked-form label,
body[dir="rtl"] .settings-form label,
body[dir="rtl"] .product-form label {
  text-align: right;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 4px;
  align-items: center;
  background: rgba(201, 169, 110, 0.12);
  border-radius: 8px;
  padding: 3px;
}

.lang-btn {
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  min-height: 32px;
  padding: 0 10px;
  transition: all 160ms ease;
}

.lang-btn:hover {
  color: var(--coffee);
  background: rgba(201, 169, 110, 0.15);
}

.lang-btn.active {
  background: var(--gold);
  color: var(--coffee-dark);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.nav-shell {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  min-height: 74px;
  padding: 0 22px;
}

.brand-lockup {
  align-items: center;
  color: var(--ink);
  display: flex;
  gap: 12px;
  text-decoration: none;
}

/* Toraldo Logo Styles */
.toraldo-brand {
  display: flex;
  align-items: center;
}

.toraldo-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.toraldo-caffe {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.02em;
  margin-bottom: -2px;
}

.toraldo-name {
  font-family: 'Inter', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.toraldo-bars {
  display: flex;
  gap: 4px;
  margin-top: 3px;
  width: 100%;
}

.toraldo-bar-green {
  display: block;
  height: 4px;
  background: #009246;
  flex: 1;
  border-radius: 1px;
}

.toraldo-bar-red {
  display: block;
  height: 4px;
  background: #ce2b37;
  flex: 1;
  border-radius: 1px;
}

.toraldo-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  font-style: italic;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.01em;
}

/* RTL adjustments for Toraldo logo */
body[dir="rtl"] .toraldo-logo {
  align-items: flex-end;
}

body[dir="rtl"] .toraldo-caffe,
body[dir="rtl"] .toraldo-name,
body[dir="rtl"] .toraldo-tagline {
  text-align: right;
}

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

.nav-link {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 10px;
  text-decoration: none;
  transition: color 160ms ease;
}

.nav-link:hover {
  color: var(--coffee);
}

main {
  overflow: hidden;
}

.hero-section {
  display: grid;
  min-height: calc(100vh - 74px);
  position: relative;
}

.hero-media {
  background:
    linear-gradient(90deg, rgba(26, 15, 10, 0.88), rgba(26, 15, 10, 0.45), rgba(26, 15, 10, 0.1)),
    url("https://images.unsplash.com/photo-1497935586351-b67a49e012bf?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  inset: 0;
  position: absolute;
}

.hero-content {
  align-self: center;
  color: #fff;
  max-width: 720px;
  padding: 8vw 22px 16vh;
  position: relative;
  width: min(100%, 1180px);
  margin: 0 auto;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.hero-content .eyebrow {
  color: var(--gold-light);
}

h1, h2, p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  letter-spacing: -0.02em;
  line-height: 0.96;
  margin-bottom: 22px;
  font-weight: 900;
}

h2 {
  font-size: clamp(1.9rem, 3.8vw, 3.2rem);
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin-bottom: 0;
  font-weight: 800;
}

.hero-content p {
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 560px;
  opacity: 0.92;
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.primary-button,
.secondary-button,
.ghost-button {
  align-items: center;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.primary-button {
  background: var(--gold);
  color: var(--coffee-dark);
  box-shadow: 0 4px 14px rgba(201, 169, 110, 0.35);
}

.secondary-button {
  background: var(--cream);
  color: var(--coffee-dark);
  border: 1px solid var(--line);
}

.ghost-button {
  background: rgba(44, 24, 16, 0.07);
  color: var(--coffee);
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 169, 110, 0.45);
  background: var(--gold-light);
}

.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
  background: rgba(44, 24, 16, 0.12);
}

.toolbar-section,
.contact-section {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 72px 22px 26px;
}

.catalog-tools {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.search-field,
.stacked-form label,
.settings-form label,
.product-form label {
  color: var(--coffee);
  display: grid;
  font-size: 0.84rem;
  font-weight: 800;
  gap: 8px;
}

.search-field input,
.stacked-form input,
.settings-form input,
.product-form input,
.product-form textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 46px;
  outline: none;
  padding: 11px 14px;
  font-size: 0.95rem;
}

.product-form textarea {
  resize: vertical;
}

.search-field input:focus,
.stacked-form input:focus,
.settings-form input:focus,
.product-form input:focus,
.product-form textarea:focus {
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 4px rgba(201, 169, 110, 0.18);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab-button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.88rem;
  transition: all 160ms ease;
}

.tab-button:hover {
  border-color: var(--gold);
  color: var(--coffee);
}

.tab-button[aria-selected="true"] {
  background: var(--coffee-dark);
  border-color: var(--coffee-dark);
  color: var(--gold-light);
}

.product-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 22px 72px;
}

.product-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(26, 15, 10, 0.06);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.product-card:hover {
  box-shadow: 0 14px 40px rgba(26, 15, 10, 0.1);
  transform: translateY(-3px);
}

.product-image-button {
  background: var(--cream);
  border: 0;
  cursor: zoom-in;
  height: 260px;
  overflow: hidden;
  padding: 0;
  width: 100%;
}

.product-image-button img {
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease;
  width: 100%;
}

.product-card:hover .product-image-button img {
  transform: scale(1.04);
}

.product-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
}

.product-meta {
  align-items: start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.product-meta h3 {
  font-size: 1.25rem;
  line-height: 1.15;
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.product-price {
  color: var(--berry);
  flex: 0 0 auto;
  font-weight: 900;
  font-size: 1.05rem;
  white-space: nowrap;
}

.product-category {
  color: var(--gold-dark);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.product-description {
  color: var(--muted);
  line-height: 1.62;
  font-size: 0.94rem;
}

.product-phone {
  align-items: center;
  background: var(--cream);
  border-radius: 8px;
  color: var(--coffee);
  display: flex;
  font-weight: 900;
  justify-content: space-between;
  margin-top: auto;
  min-height: 52px;
  padding: 0 16px;
  text-decoration: none;
  font-size: 0.92rem;
  transition: background 160ms ease;
}

.product-phone:hover {
  background: var(--gold-light);
}

.empty-state {
  margin: 0 auto 72px;
  max-width: 1180px;
  padding: 34px 22px;
  text-align: center;
}

.empty-state h2 {
  color: var(--coffee);
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--muted);
}

.contact-section {
  align-items: center;
  background: var(--coffee-dark);
  color: #fff;
  margin-bottom: 44px;
  max-width: none;
  padding-left: max(22px, calc((100vw - 1180px) / 2 + 22px));
  padding-right: max(22px, calc((100vw - 1180px) / 2 + 22px));
}

.contact-section p {
  color: var(--gold-light);
  max-width: 520px;
  opacity: 0.85;
}

.call-card {
  background: #fff;
  border-radius: 12px;
  color: var(--coffee-dark);
  min-width: min(100%, 320px);
  padding: 24px;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.call-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.call-card span,
.call-card strong {
  display: block;
}

.call-card span {
  color: var(--berry);
  font-size: 0.8rem;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.call-card strong {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

dialog {
  border: 0;
  border-radius: 14px;
  box-shadow: var(--shadow);
  max-height: min(88vh, 920px);
  max-width: min(1040px, calc(100vw - 28px));
  padding: 0;
  overflow: hidden;
}

dialog::backdrop {
  background: rgba(26, 15, 10, 0.58);
  backdrop-filter: blur(5px);
}

.icon-close {
  background: var(--coffee-dark);
  border: 0;
  border-radius: 50%;
  color: var(--gold);
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: 800;
  height: 42px;
  line-height: 1;
  position: absolute;
  right: 16px;
  top: 16px;
  width: 42px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 160ms ease;
}

.icon-close:hover {
  background: var(--berry);
}

.modal-product {
  background: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  min-height: 540px;
}

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

.modal-product-copy {
  align-self: center;
  padding: 48px 36px;
}

.modal-product-copy p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.02rem;
}

.modal-product-copy strong {
  color: var(--berry);
  display: block;
  font-size: 1.35rem;
  margin: 20px 0;
  font-weight: 900;
}

.admin-modal {
  width: min(980px, calc(100vw - 28px));
}

.login-panel,
.admin-panel {
  background: #fff;
  padding: 38px;
}

.admin-header {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.stacked-form,
.settings-form,
.product-form {
  display: grid;
  gap: 16px;
}

.settings-form {
  border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  margin: 24px 0 26px;
  padding-bottom: 26px;
  align-items: end;
}

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

.product-form label:nth-child(5),
.product-form label:nth-child(6),
.form-preview,
.form-actions,
.form-note {
  grid-column: 1 / -1;
}

.form-preview {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  width: min(280px, 100%);
}

.form-preview img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.form-note,
.form-error {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}

.form-error {
  color: var(--berry);
  font-weight: 800;
}

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

.admin-product-row {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 14px;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  padding: 12px;
  background: #fff;
  transition: box-shadow 160ms ease;
}

.admin-product-row:hover {
  box-shadow: 0 4px 12px rgba(26, 15, 10, 0.06);
}

.admin-product-row img {
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  width: 72px;
}

.admin-product-row h3,
.admin-product-row p {
  margin: 0;
}

.admin-product-row h3 {
  font-size: 1.05rem;
  font-weight: 800;
}

.admin-product-row p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 4px;
}

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

.danger-button {
  background: #fce8ea;
  border: 0;
  border-radius: 8px;
  color: #b91c31;
  cursor: pointer;
  font-weight: 900;
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.88rem;
  transition: background 160ms ease;
}

.danger-button:hover {
  background: #f5d0d5;
}

@media (max-width: 860px) {
  .nav-shell,
  .toolbar-section,
  .contact-section,
  .catalog-tools {
    align-items: stretch;
    flex-direction: column;
  }

  body[dir="rtl"] .nav-shell,
  body[dir="rtl"] .toolbar-section,
  body[dir="rtl"] .contact-section,
  body[dir="rtl"] .catalog-tools {
    flex-direction: column;
  }

  .nav-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-content {
    padding-bottom: 11vh;
  }

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

  .modal-product {
    grid-template-columns: 1fr;
  }

  .modal-product img {
    max-height: 48vh;
  }

  .settings-form,
  .product-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-image-button {
    height: 240px;
  }

  .login-panel,
  .admin-panel,
  .modal-product-copy {
    padding: 26px 18px;
  }

  .admin-product-row {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .admin-product-row img {
    width: 58px;
  }

  .row-actions {
    grid-column: 1 / -1;
  }

  .lang-switcher {
    order: -1;
    width: 100%;
    justify-content: center;
  }
}

/* ==================== SCROLL NAVIGATION ==================== */
.scroll-nav {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 300ms ease, transform 300ms ease;
  pointer-events: none;
}

.scroll-nav.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

body[dir="rtl"] .scroll-nav {
  right: auto;
  left: 22px;
}

.scroll-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--coffee-dark);
  color: var(--gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(26, 15, 10, 0.3);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.scroll-btn:hover {
  transform: translateY(-2px);
  background: var(--gold);
  color: var(--coffee-dark);
  box-shadow: 0 6px 20px rgba(201, 169, 110, 0.4);
}

.scroll-btn:active {
  transform: scale(0.92);
}

.scroll-btn.scroll-down {
  background: var(--gold);
  color: var(--coffee-dark);
}

.scroll-btn.scroll-down:hover {
  background: var(--gold-light);
}

@media (max-width: 560px) {
  .scroll-nav {
    right: 14px;
    bottom: 14px;
  }

  body[dir="rtl"] .scroll-nav {
    left: 14px;
    right: auto;
  }

  .scroll-btn {
    width: 44px;
    height: 44px;
  }
}
