:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-soft: #f0f2f7;
  --text: #171922;
  --muted: #6d7280;
  --line: #e4e6ec;
  --primary: #111827;
  --accent: #ff6a00;
  --accent-dark: #df5700;
  --danger: #c93f3f;
  --shadow: 0 24px 60px rgba(18, 24, 40, 0.1);
  --radius-lg: 28px;
  --radius-md: 18px;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

body.drawer-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(246, 247, 251, 0.9);
  border-bottom: 1px solid rgba(228, 230, 236, 0.9);
}

.header-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 1.18rem;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-weight: 600;
}

.main-nav a {
  transition: color 160ms ease;
}

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

.cart-button,
.hero-button,
.checkout-button,
.add-button {
  border: 0;
  cursor: pointer;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  color: var(--text);
}

.cart-count {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
}

.hero {
  width: min(1180px, calc(100% - 40px));
  margin: 34px auto 0;
  min-height: 470px;
  padding: 58px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 76% 32%, rgba(255, 106, 0, 0.22), transparent 28%),
    radial-gradient(circle at 94% 70%, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(120deg, #111827 0%, #202838 58%, #2b3446 100%);
  color: #fff;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 48%, rgba(255, 255, 255, 0.04));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: var(--accent);
}

.hero h1,
.section-heading h2,
.drawer-header h2 {
  font-family: "Manrope", sans-serif;
  margin: 10px 0 0;
  line-height: 1.05;
}

.hero h1 {
  font-size: clamp(2.7rem, 6vw, 5rem);
  max-width: 680px;
}

.hero p {
  color: rgba(255, 255, 255, 0.76);
  max-width: 580px;
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 22px 0 28px;
}

.hero-button {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 19px;
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease;
}

.hero-button:hover {
  transform: translateY(-2px);
  background: #f3f4f6;
}

.hero-art {
  position: relative;
  min-height: 340px;
}

.hero-orb {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  top: 26px;
  right: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-card {
  position: absolute;
  z-index: 2;
  left: 10%;
  width: min(330px, 90%);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.2);
}

.hero-card-one {
  top: 72px;
  transform: rotate(-6deg);
}

.hero-card-two {
  top: 190px;
  left: 24%;
  transform: rotate(6deg);
}

.hero-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: #fff;
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}

.hero-card span {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
}

.hero-card strong {
  display: block;
  margin-top: 3px;
  font-size: 1rem;
}

.shop-section {
  width: min(1180px, calc(100% - 40px));
  margin: 78px auto;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  text-align: right;
}

.toolbar {
  margin: 28px 0 26px;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 14px;
}

.search-box,
.category-select {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.search-box i,
.category-select i {
  color: var(--muted);
}

.search-box input,
.category-select select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.category-select select {
  appearance: none;
}

.status-message {
  min-height: 0;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 600;
}

.status-message.is-error {
  color: var(--danger);
}

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

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-shadow: 0 8px 25px rgba(18, 24, 40, 0.04);
  transition: transform 170ms ease, box-shadow 170ms ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(18, 24, 40, 0.1);
}

.product-body {
  padding: 15px 5px 7px;
}

.product-category {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.product-name {
  margin: 12px 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
}

.product-description {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  min-height: 42px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.product-price {
  font-size: 1.15rem;
  font-weight: 900;
}

.stock-label {
  font-size: 0.76rem;
  color: var(--muted);
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 13px;
}

.add-button {
  flex: 1;
  min-height: 42px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  transition: background 160ms ease, transform 160ms ease;
}

.add-button:hover:not(:disabled) {
  background: #273244;
  transform: translateY(-1px);
}

.add-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.details-button {
  width: 44px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.empty-results {
  grid-column: 1 / -1;
  padding: 70px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--muted);
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(10, 14, 24, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  width: min(440px, 100%);
  height: 100vh;
  padding: 22px;
  background: var(--surface);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transform: translateX(102%);
  transition: transform 220ms ease;
  box-shadow: -18px 0 50px rgba(18, 24, 40, 0.12);
}

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

.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.drawer-header h2 {
  font-size: 1.8rem;
}

.icon-button,
.dialog-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 2px;
}

.cart-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item-image {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--surface-soft);
}

.cart-item-info {
  min-width: 0;
}

.cart-item-info strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1.35;
}

.cart-item-price {
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--muted);
}

.quantity-control {
  margin-top: 9px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.quantity-control button {
  width: 28px;
  height: 28px;
  border: 0;
  background: var(--surface-soft);
  cursor: pointer;
}

.quantity-control span {
  width: 28px;
  text-align: center;
  font-size: 0.78rem;
}

.remove-button {
  align-self: start;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.cart-empty {
  flex: 1;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  padding: 30px;
}

.empty-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 20px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 1.3rem;
}

.cart-empty h3 {
  margin: 0;
  font-size: 1.08rem;
}

.cart-empty p {
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0;
}

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

.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1rem;
}

.cart-total-row strong {
  font-size: 1.3rem;
}

.checkout-button {
  width: 100%;
  min-height: 50px;
  margin-top: 14px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.checkout-button:hover {
  background: var(--accent-dark);
}

.checkout-button:disabled {
  cursor: not-allowed;
}

.checkout-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}

.product-dialog {
  position: fixed;
  width: min(760px, calc(100% - 30px));
  max-width: 760px;
  border: 0;
  padding: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(18, 24, 40, 0.25);
}

.product-dialog::backdrop {
  background: rgba(10, 14, 24, 0.6);
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}

.dialog-layout {
  display: block;
}

.dialog-info {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dialog-info h2 {
  font-family: "Manrope", sans-serif;
  font-size: 2.2rem;
  margin: 12px 0 10px;
}

.dialog-info p {
  color: var(--muted);
  line-height: 1.7;
}

.dialog-price {
  margin: 20px 0;
  font-size: 1.55rem;
  font-weight: 900;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 70;
  transform: translate(-50%, 24px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer a {
  font-weight: 700;
  color: var(--text);
}

@media (max-width: 1020px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .hero-art {
    display: none;
  }
}

@media (max-width: 760px) {
  .header-inner,
  .hero,
  .shop-section,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .header-inner {
    min-height: 68px;
  }

  .main-nav {
    display: none;
  }

  .hero {
    margin-top: 18px;
    padding: 34px 24px;
    min-height: auto;
  }

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

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 10px;
    text-align: left;
  }

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

  .dialog-layout {
    grid-template-columns: 1fr;
  }

  .dialog-image {
    min-height: 260px;
    max-height: 300px;
  }

  .dialog-info {
    padding: 24px;
  }

  .site-footer {
    display: block;
  }

  .site-footer a {
    display: inline-block;
    margin-top: 6px;
  }
}

@media (max-width: 500px) {
  .cart-button span:not(.cart-count) {
    display: none;
  }

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

  .product-image {
    aspect-ratio: 16 / 11;
  }
}


.manage-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}

.manage-button:hover {
  color: var(--text);
}

.manage-dialog,
.form-dialog {
  width: min(900px, calc(100% - 30px));
  max-width: 900px;
  border: 0;
  padding: 0;
  border-radius: 24px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 30px 80px rgba(18, 24, 40, 0.25);
}

.manage-dialog::backdrop,
.form-dialog::backdrop {
  background: rgba(10, 14, 24, 0.62);
}

.manage-header,
.form-header {
  padding: 28px 30px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.manage-header h2,
.form-header h2 {
  font-family: "Manrope", sans-serif;
  margin: 8px 0 5px;
  font-size: 2rem;
}

.manage-header p {
  margin: 0;
  color: var(--muted);
}

.manage-toolbar {
  padding: 18px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.manage-toolbar > div {
  display: flex;
  gap: 7px;
  align-items: baseline;
}

.manage-toolbar span {
  color: var(--muted);
  font-size: 0.85rem;
}

.primary-button,
.secondary-button,
.danger-button {
  min-height: 42px;
  border-radius: 12px;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 800;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.primary-button {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.primary-button:hover {
  background: #273244;
}

.secondary-button {
  background: var(--surface);
  color: var(--text);
}

.secondary-button:hover {
  background: var(--surface-soft);
}

.danger-button {
  background: #fff5f5;
  border-color: #f1d1d1;
  color: var(--danger);
}

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

.manage-product-list {
  max-height: min(55vh, 560px);
  overflow-y: auto;
  padding: 10px 30px 24px;
}

.manage-product-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.manage-product-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--muted);
}

.manage-product-details {
  min-width: 0;
}

.manage-product-details strong,
.manage-product-details span {
  display: block;
}

.manage-product-details strong {
  font-size: 0.95rem;
}

.manage-product-details span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
}

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

.compact-button,
.manage-product-actions .danger-button {
  min-height: 38px;
  font-size: 0.8rem;
}

.manage-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.manage-empty i {
  font-size: 2rem;
}

.manage-empty h3 {
  color: var(--text);
  margin: 12px 0 5px;
}

.manage-empty p {
  margin: 0;
}

.form-dialog {
  width: min(620px, calc(100% - 30px));
}

.product-form {
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 26px 30px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field.full-width {
  grid-column: 1 / -1;
}

.form-field span {
  font-size: 0.82rem;
  font-weight: 800;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 13px;
  outline: 0;
  background: var(--surface);
  color: var(--text);
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.1);
}

.form-actions {
  padding: 18px 30px 26px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.dialog-info {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 760px) {
  .main-nav .manage-button {
    display: none;
  }

  .manage-dialog,
  .form-dialog {
    width: calc(100% - 20px);
  }

  .manage-header,
  .form-header,
  .manage-toolbar,
  .manage-product-list,
  .form-grid,
  .form-actions {
    padding-left: 20px;
    padding-right: 20px;
  }

  .manage-product-row {
    grid-template-columns: 42px 1fr;
  }

  .manage-product-actions {
    grid-column: 2;
  }

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

  .form-field.full-width {
    grid-column: auto;
  }
}


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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
}

.mobile-menu {
  display: none;
}

@media (max-width: 760px) {
  .header-inner {
    gap: 12px;
  }

  .brand {
    font-size: 1rem;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .header-actions {
    margin-left: auto;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .main-nav {
    display: none;
  }

  .mobile-menu {
    position: fixed;
    top: 68px;
    left: 14px;
    right: 14px;
    z-index: 35;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(18, 24, 40, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 160ms ease,
      transform 160ms ease,
      visibility 160ms ease;
  }

  .mobile-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .mobile-menu a,
  .mobile-manage-button {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    font-weight: 700;
    text-align: left;
    cursor: pointer;
  }

  .mobile-menu a:hover,
  .mobile-manage-button:hover {
    background: var(--surface-soft);
  }

  .mobile-manage-button {
    color: var(--muted);
  }

  .hero {
    margin-top: 18px;
    padding: 34px 24px;
    min-height: auto;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 11vw, 3.5rem);
  }

  .hero p {
    font-size: 0.95rem;
  }

  .shop-section {
    margin: 55px auto;
  }

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

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

  .product-card {
    padding: 10px;
  }

  .product-body {
    padding: 13px 3px 5px;
  }

  .product-name {
    font-size: 0.98rem;
  }

  .product-description {
    min-height: 0;
  }

  .product-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .card-actions {
    flex-direction: column;
  }

  .details-button {
    width: 100%;
  }

  .cart-drawer {
    width: 100%;
    padding: 18px;
  }

  .cart-item {
    grid-template-columns: 1fr auto;
  }

  .cart-item-info {
    grid-column: 1;
  }

  .remove-button {
    grid-column: 2;
    grid-row: 1;
  }

  .product-dialog {
    width: calc(100% - 20px);
    max-height: calc(100vh - 30px);
    overflow-y: auto;
  }

  .dialog-info {
    padding: 26px 22px;
  }

  .dialog-info h2 {
    font-size: 1.8rem;
  }

  .manage-dialog,
  .form-dialog {
    width: calc(100% - 20px);
    max-height: calc(100vh - 30px);
    overflow-y: auto;
  }

  .manage-header,
  .form-header,
  .manage-toolbar,
  .manage-product-list,
  .form-grid,
  .form-actions {
    padding-left: 18px;
    padding-right: 18px;
  }

  .manage-header h2,
  .form-header h2 {
    font-size: 1.55rem;
  }

  .manage-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .manage-toolbar .primary-button {
    width: 100%;
  }

  .manage-product-row {
    grid-template-columns: 42px 1fr;
    gap: 10px;
  }

  .manage-product-actions {
    grid-column: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .manage-product-actions button {
    width: 100%;
  }

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

  .form-field.full-width {
    grid-column: auto;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .form-actions button {
    width: 100%;
  }

  .site-footer {
    padding-bottom: 28px;
  }
}

@media (max-width: 500px) {
  .header-inner,
  .hero,
  .shop-section,
  .site-footer {
    width: min(100% - 20px, 1180px);
  }

  .cart-button {
    padding: 10px 12px;
  }

  .cart-button span:not(.cart-count) {
    display: none;
  }

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

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

  .search-box,
  .category-select {
    min-height: 50px;
  }

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


.form-error {
  margin: 22px 30px 0;
  padding: 12px 14px;
  border: 1px solid #efbcbc;
  border-radius: 12px;
  background: #fff4f4;
  color: var(--danger);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
}

.feedback-dialog,
.confirm-dialog {
  width: min(430px, calc(100% - 28px));
  max-width: 430px;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 30px 80px rgba(18, 24, 40, 0.28);
}

.feedback-dialog::backdrop,
.confirm-dialog::backdrop {
  background: rgba(10, 14, 24, 0.62);
}

.feedback-content {
  padding: 34px 30px 30px;
  text-align: center;
}

.feedback-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--surface-soft);
  color: var(--accent);
  font-size: 1.35rem;
}

.feedback-icon.success-feedback-icon {
  color: #16834b;
  background: #eaf8f0;
}

.danger-feedback-icon {
  color: var(--danger);
  background: #fff0f0;
}

.feedback-content h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 1.45rem;
}

.feedback-content p {
  margin: 10px 0 22px;
  color: var(--muted);
  line-height: 1.6;
}

.feedback-button {
  width: 100%;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.confirm-actions button {
  width: 100%;
}

@media (max-width: 760px) {
  .form-error {
    margin-left: 18px;
    margin-right: 18px;
  }

  .feedback-content {
    padding: 28px 22px 24px;
  }
}

@media (max-width: 500px) {
  .confirm-actions {
    grid-template-columns: 1fr;
  }
}
