:root {
  --bg: #0a0908;
  --panel: #12100e;
  --panel-strong: #181512;
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(210, 176, 113, 0.38);
  --text: #f6f0e8;
  --muted: #b9afa3;
  --gold: #d2b071;
  --gold-strong: #f1d28c;
  --danger: #e58f81;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  outline-color: var(--gold);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 8, 7, 0.94);
  backdrop-filter: blur(18px);
}

.top-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
  padding: 6px max(18px, calc((100vw - 1180px) / 2));
  color: var(--muted);
  font-size: 0.86rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.lang-button {
  min-width: 44px;
  min-height: 30px;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.lang-button.is-active {
  color: #15110d;
  background: var(--gold);
}

.main-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  max-width: 1180px;
  min-height: 88px;
  margin: 0 auto;
  padding: 10px 18px;
}

.brand {
  position: absolute;
  left: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
}

.brand img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-links a {
  min-height: 42px;
  padding: 11px 16px;
  color: var(--muted);
  font-size: 0.92rem;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--gold-strong);
  border-color: var(--gold);
  background: rgba(210, 176, 113, 0.07);
}

.cart-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cart-nav-link strong {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  color: #15110d;
  background: var(--gold);
  font-size: 0.78rem;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.hero {
  position: relative;
  min-height: clamp(470px, 72vh, 690px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(10, 9, 8, 0.3), rgba(10, 9, 8, 0.42) 46%, rgba(10, 9, 8, 0.92)),
    rgba(0, 0, 0, 0.14);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(470px, 72vh, 690px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 18px 54px;
}

.hero-content > * {
  width: min(100%, 520px);
  margin-left: auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.8rem;
  line-height: 0.95;
  font-weight: 400;
}

.hero h1 span {
  display: block;
  margin-top: 10px;
  color: var(--gold);
  font-size: 2.15rem;
}

.hero p:not(.eyebrow) {
  margin-top: 24px;
  color: #e9dfd2;
  font-size: 1.05rem;
}

.hero-actions,
.form-actions,
.admin-tools,
.product-actions,
.cart-line-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-actions {
  margin-top: 30px;
}

.primary-action,
.ghost-action,
.category-chip,
.danger-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.primary-action {
  border: 1px solid var(--gold);
  color: #15110d;
  background: var(--gold);
  font-weight: 700;
}

.ghost-action {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.danger-action {
  border: 1px solid rgba(229, 143, 129, 0.55);
  color: #ffe1dc;
  background: rgba(229, 143, 129, 0.08);
}

.primary-action:hover,
.ghost-action:hover,
.category-chip:hover,
.danger-action:hover {
  transform: translateY(-1px);
}

.category-band {
  display: flex;
  gap: 10px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px;
  overflow-x: auto;
}

.category-chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.category-chip.is-active {
  color: #15110d;
  border-color: var(--gold);
  background: var(--gold);
}

.catalog-shell,
.cart-shell,
.admin-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 54px 18px 72px;
}

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

.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
  font-weight: 400;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.product-card figure {
  position: relative;
  aspect-ratio: 1 / 1;
  margin: 0;
  background: #050505;
  overflow: hidden;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.product-card:hover img {
  transform: scale(1.025);
}

.product-info {
  padding: 18px;
}

.product-category {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
}

.product-info h3 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 400;
}

.product-info p {
  overflow-wrap: anywhere;
}

.product-description {
  min-height: 66px;
  margin: 0;
  color: var(--muted);
}

.product-price {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-top: 16px;
  padding: 6px 10px;
  border: 1px solid rgba(210, 176, 113, 0.24);
  border-radius: 4px;
  color: var(--gold-strong);
  background: rgba(210, 176, 113, 0.07);
  font-weight: 700;
}

.product-actions {
  justify-content: space-between;
  margin-top: 16px;
}

.product-actions .product-price {
  margin-top: 0;
}

.add-cart-button {
  min-width: 150px;
}

.empty-state {
  margin: 20px 0 0;
  color: var(--muted);
}

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

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 22px;
}

.cart-panel,
.checkout-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.cart-panel {
  padding: 18px;
}

.cart-items {
  display: grid;
  gap: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.cart-item img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 6px;
  background: #050505;
}

.cart-line-main {
  display: grid;
  gap: 8px;
}

.cart-line-main h3,
.cart-line-main p {
  margin: 0;
}

.cart-line-main h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 400;
}

.cart-line-main p {
  color: var(--muted);
}

.cart-line-controls {
  gap: 8px;
}

.qty-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.qty-value {
  min-width: 34px;
  text-align: center;
  font-weight: 700;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 1.15rem;
}

.cart-total-row strong {
  color: var(--gold-strong);
}

.checkout-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 18px;
}

.order-output-label textarea {
  min-height: 150px;
}

.admin-shell {
  border-top: 1px solid var(--line);
}

.admin-login,
.admin-panel,
.product-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.admin-login {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 14px;
  align-items: end;
  max-width: 860px;
  padding: 18px;
}

.admin-panel {
  padding: 18px;
}

.product-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 18px;
  background: var(--panel-strong);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.wide {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  background: #0d0b0a;
}

input,
select {
  min-height: 44px;
  padding: 10px 12px;
}

textarea {
  resize: vertical;
  min-height: 110px;
  padding: 12px;
}

select option {
  background: #0d0b0a;
}

.upload-field input {
  padding: 9px;
}

.image-preview {
  grid-column: 1 / -1;
  width: min(280px, 100%);
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050505;
  overflow: hidden;
}

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

.form-message {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--danger);
}

.admin-tools {
  margin: 18px 0;
}

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

.admin-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.admin-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
}

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

.admin-item p {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 42px 18px 52px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.site-footer img {
  width: 88px;
  height: 88px;
  object-fit: contain;
}

.login-page {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(10, 9, 8, 0.74), rgba(10, 9, 8, 0.9)),
    url("assets/hero-jewellery.png") center / cover no-repeat;
}

.login-wrap {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 28px 18px;
}

.login-card {
  width: min(100%, 440px);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 16, 14, 0.94);
  box-shadow: var(--shadow);
}

.login-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.login-logo img {
  width: 124px;
  height: 124px;
  object-fit: contain;
}

.login-card .language-switch {
  width: fit-content;
  margin: 0 auto 22px;
}

.login-heading {
  display: block;
  margin-bottom: 18px;
  text-align: center;
}

.login-heading h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.3rem;
  font-weight: 400;
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-form .primary-action,
.login-form .ghost-action {
  width: 100%;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--text);
  background: rgba(18, 16, 14, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .top-strip {
    padding-inline: 14px;
  }

  .main-nav {
    justify-content: space-between;
    min-height: 78px;
    padding-inline: 14px;
  }

  .brand {
    position: static;
    width: 66px;
    height: 66px;
  }

  .brand img {
    width: 66px;
    height: 66px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 14px 14px;
    border-bottom: 1px solid var(--line);
    background: rgba(9, 8, 7, 0.98);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .hero {
    min-height: 560px;
  }

  .hero-image {
    object-position: 34% center;
  }

  .hero-shade {
    background: rgba(10, 9, 8, 0.64);
  }

  .hero-content {
    justify-content: end;
    min-height: 560px;
  }

  .hero-content > * {
    margin-left: 0;
  }

  .hero h1 {
    font-size: 3.45rem;
  }

  .hero h1 span {
    font-size: 1.65rem;
  }

  .section-heading {
    display: block;
  }

  .section-heading h2 {
    font-size: 2rem;
  }

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

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

@media (max-width: 560px) {
  .top-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: 590px;
  }

  .hero-content {
    min-height: 590px;
    padding-bottom: 38px;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero h1 span {
    font-size: 1.35rem;
  }

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

  .catalog-shell,
  .cart-shell,
  .admin-shell {
    padding-block: 42px 56px;
  }

  .admin-item {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .admin-item .danger-action {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .cart-layout,
  .checkout-form {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .cart-item img {
    width: 64px;
    height: 64px;
  }
}
