:root {
  --navy-950: #06192c;
  --navy-900: #0b2744;
  --navy-800: #12385f;
  --blue-700: #145f9f;
  --blue-600: #1d75bb;
  --blue-200: #cfe9fb;
  --blue-100: #e8f4fc;
  --green-600: #168a45;
  --gray-50: #f8fbfd;
  --gray-100: #f2f6fa;
  --gray-200: #dce6ee;
  --gray-400: #8a9aaa;
  --gray-600: #526273;
  --white: #ffffff;
  --danger: #b42318;
  --warning: #a15c07;
  --success: #0f7a3c;
  --shadow: 0 22px 60px rgba(7, 27, 47, 0.12);
  --shadow-soft: 0 14px 34px rgba(7, 27, 47, 0.08);
  --radius: 8px;
  --container: 1180px;
  --header-height: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--navy-950);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

body.has-overlay {
  overflow: hidden;
}

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

a,
button {
  color: inherit;
}

a {
  text-decoration: none;
}

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

button {
  border: 0;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  color: var(--navy-950);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  outline: 0;
  transition: border 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  background: var(--white);
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(29, 117, 187, 0.12);
}

label {
  display: grid;
  gap: 7px;
  color: var(--navy-900);
  font-size: 0.9rem;
  font-weight: 800;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.section {
  padding: 82px 0;
  scroll-margin-top: var(--header-height);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: var(--header-height);
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(18, 56, 95, 0.08);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 34px rgba(7, 27, 47, 0.08);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  font-weight: 950;
  color: var(--navy-900);
}

.brand img {
  width: 118px;
  flex: 0 0 auto;
}

.brand span {
  display: none;
}

.primary-nav {
  display: none;
  justify-content: center;
  gap: 24px;
  color: var(--navy-900);
  font-size: 0.94rem;
  font-weight: 850;
}

.primary-nav a {
  position: relative;
  padding: 8px 0;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 2px;
  height: 2px;
  background: var(--blue-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.icon-button,
.cart-button,
.plain-button,
.footer-grid button,
.admin-sidebar nav button {
  cursor: pointer;
  background: transparent;
}

.icon-button,
.cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 12px;
  color: var(--navy-900);
  background: var(--gray-100);
  border-radius: var(--radius);
  font-size: 0.84rem;
  font-weight: 900;
}

.cart-button {
  gap: 8px;
  color: var(--white);
  background: var(--navy-900);
}

.cart-button strong {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  color: var(--navy-900);
  background: var(--blue-200);
  border-radius: 999px;
  font-size: 0.76rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: var(--radius);
  font-weight: 900;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-600), var(--navy-800));
  box-shadow: 0 16px 34px rgba(29, 117, 187, 0.24);
}

.button-light {
  color: var(--navy-900);
  background: var(--white);
  border: 1px solid rgba(18, 56, 95, 0.1);
}

.button-dark {
  color: var(--white);
  background: var(--navy-950);
}

.button-danger {
  color: var(--white);
  background: var(--danger);
}

.button-wide {
  width: 100%;
}

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--header-height) + 56px) 0 64px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(6, 25, 44, 0.98), rgba(11, 39, 68, 0.9)),
    radial-gradient(circle at 78% 30%, rgba(104, 183, 238, 0.45), transparent 28%),
    var(--navy-900);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 190px;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.12), transparent);
}

.hero-media {
  position: absolute;
  right: -86px;
  bottom: 32px;
  width: min(760px, 112vw);
  opacity: 0.28;
  filter: drop-shadow(0 34px 62px rgba(0, 0, 0, 0.28));
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--blue-200);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.section-copy h2,
.ops-card h2,
.admin-login-card h2,
.modal-panel h2 {
  margin: 0;
  font-size: clamp(2.35rem, 10vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p:not(.eyebrow),
.section-heading p,
.section-copy p,
.ops-card p,
.hero-panel p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

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

.hero-panel {
  max-width: 430px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
}

.panel-label {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 9px;
  color: var(--navy-900);
  background: var(--blue-200);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.hero-panel strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.18;
}

.mini-metrics {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.mini-metrics span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
}

.mini-metrics b {
  color: var(--blue-200);
}

.trust-band {
  background: linear-gradient(180deg, var(--white), var(--gray-100));
}

.trust-grid {
  display: grid;
  gap: 12px;
  padding: 34px 0;
}

.trust-grid article,
.product-card,
.ops-card,
.admin-card,
.cart-line,
.account-box {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.trust-grid article {
  padding: 20px;
}

.trust-grid span {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-bottom: 14px;
  color: var(--blue-600);
  background: var(--blue-100);
  border-radius: 999px;
  font-weight: 950;
  font-size: 0.76rem;
}

.trust-grid h2 {
  margin: 0 0 7px;
  color: var(--navy-900);
  font-size: 1rem;
  line-height: 1.25;
}

.trust-grid p {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.92rem;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-heading .eyebrow,
.section-copy .eyebrow,
.modal-panel .eyebrow,
.admin-login-card .eyebrow {
  color: var(--blue-600);
}

.section-heading h2,
.section-copy h2,
.ops-card h2,
.admin-login-card h2,
.modal-panel h2 {
  color: var(--navy-900);
  font-size: clamp(2rem, 7vw, 3.35rem);
}

.section-heading p,
.section-copy p,
.ops-card p {
  color: var(--gray-600);
}

.store {
  background: var(--gray-50);
}

.store-toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: 0 12px 26px rgba(7, 27, 47, 0.05);
}

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

.loading-card,
.empty-state {
  padding: 26px;
  color: var(--gray-600);
  background: var(--white);
  border: 1px dashed var(--gray-200);
  border-radius: var(--radius);
}

.product-card {
  overflow: hidden;
  display: grid;
}

.product-card.is-highlight {
  outline: 3px solid var(--blue-600);
  box-shadow: 0 0 0 8px rgba(29, 117, 187, 0.12), var(--shadow);
}

.product-image {
  position: relative;
  display: grid;
  min-height: 176px;
  place-items: center;
  padding: 16px;
  background:
    radial-gradient(circle at center, rgba(104, 183, 238, 0.22), transparent 55%),
    linear-gradient(180deg, var(--white), var(--blue-100));
}

.product-image img {
  max-height: 168px;
  object-fit: contain;
  transition: transform 220ms ease;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 5px 9px;
  color: var(--navy-900);
  background: var(--blue-200);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.product-image .badge {
  position: absolute;
  top: 14px;
  left: 14px;
}

.product-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.product-body h3 {
  margin: 0;
  color: var(--navy-900);
  font-size: 1.18rem;
  line-height: 1.25;
}

.product-body p {
  margin: 0;
  color: var(--gray-600);
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-meta span {
  padding: 6px 9px;
  color: var(--navy-900);
  background: var(--gray-100);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.price {
  color: var(--navy-900);
  font-size: clamp(1.1rem, 5vw, 1.55rem);
  font-weight: 950;
}

.compare-price {
  color: var(--gray-400);
  font-weight: 800;
  text-decoration: line-through;
}

.product-actions {
  display: grid;
  gap: 10px;
}

.product-options {
  display: grid;
  gap: 10px;
}

.qty-control {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}

.qty-control button {
  min-height: 42px;
  color: var(--navy-900);
  background: var(--gray-100);
  cursor: pointer;
  font-weight: 950;
}

.qty-control input {
  min-height: 42px;
  padding: 0;
  text-align: center;
  background: var(--white);
  border: 0;
  border-radius: 0;
}

.split {
  display: grid;
  gap: 34px;
}

.custom-card {
  display: grid;
  min-height: 320px;
  place-items: center;
  padding: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 52% 34%, rgba(104, 183, 238, 0.26), transparent 52%),
    linear-gradient(180deg, var(--blue-100), var(--white));
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.custom-card img {
  max-height: 330px;
  object-fit: contain;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}

.feature-list span {
  padding: 8px 10px;
  color: var(--navy-900);
  background: var(--blue-100);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 850;
}

.operations {
  color: var(--white);
  background: var(--navy-950);
}

.operations-grid {
  display: grid;
  gap: 16px;
}

.ops-card {
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(18, 56, 95, 0.96), rgba(7, 27, 47, 0.98)),
    var(--navy-900);
  border-color: rgba(104, 183, 238, 0.18);
}

.ops-card h2,
.ops-card p {
  color: var(--white);
}

.ops-card p {
  color: rgba(255, 255, 255, 0.76);
}

.ops-card .button {
  margin-top: 22px;
}

.contact-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.contact-list li {
  display: grid;
  gap: 2px;
  padding: 16px;
  background: var(--gray-100);
  border-radius: var(--radius);
}

.contact-list strong {
  color: var(--navy-900);
}

.contact-list a {
  color: var(--blue-600);
  font-weight: 800;
  word-break: break-word;
}

.contact-form,
.admin-login-card {
  display: grid;
  gap: 16px;
  align-self: start;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.site-footer {
  color: rgba(255, 255, 255, 0.76);
  background: var(--navy-950);
}

.footer-grid {
  display: grid;
  gap: 28px;
  padding: 48px 0;
}

.footer-grid img {
  width: 132px;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
}

.footer-grid p {
  max-width: 380px;
  margin: 0;
}

.footer-grid h2 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 1rem;
}

.footer-grid a,
.footer-grid button {
  display: block;
  width: fit-content;
  margin-top: 8px;
  padding: 0;
  color: inherit;
  transition: color 160ms ease;
}

.footer-grid a:hover,
.footer-grid a:focus-visible,
.footer-grid button:hover,
.footer-grid button:focus-visible {
  color: var(--blue-200);
}

.footer-bottom {
  padding: 18px 16px 28px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.cart-drawer,
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(6, 25, 44, 0.48);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.cart-drawer.is-open,
.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-panel {
  position: absolute;
  inset: 0 0 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100%, 440px);
  background: var(--white);
  box-shadow: -20px 0 60px rgba(7, 27, 47, 0.22);
  transform: translateX(100%);
  transition: transform 220ms ease;
}

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

.drawer-panel header,
.drawer-panel footer,
.modal-panel {
  padding: 22px;
}

.drawer-panel header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--gray-200);
}

.drawer-panel h2 {
  margin: 0;
  color: var(--navy-900);
}

.plain-button {
  color: var(--blue-600);
  font-weight: 900;
}

.drawer-items {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  overflow: auto;
}

.cart-line {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  padding: 12px;
}

.cart-line img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  background: var(--blue-100);
  border-radius: var(--radius);
}

.cart-line h3 {
  margin: 0;
  color: var(--navy-900);
  font-size: 0.98rem;
  line-height: 1.25;
}

.cart-line p,
.cart-line small {
  margin: 5px 0 0;
  color: var(--gray-600);
}

.cart-line-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.cart-line-actions button {
  padding: 6px 8px;
  color: var(--navy-900);
  background: var(--gray-100);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 900;
}

.cart-total {
  display: grid;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}

.cart-total div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--gray-600);
}

.cart-total strong {
  color: var(--navy-900);
  font-size: 1.2rem;
}

.modal {
  display: grid;
  place-items: center;
  padding: 18px;
  overflow: auto;
}

.modal[hidden],
.admin-shell[hidden] {
  display: none;
}

.modal-panel {
  position: relative;
  width: min(100%, 780px);
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: translateY(14px);
  transition: transform 180ms ease;
}

.modal.is-open .modal-panel {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 8px 10px;
  color: var(--navy-900);
  background: var(--gray-100);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 900;
}

.checkout-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.checkout-summary {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: var(--gray-100);
  border-radius: var(--radius);
}

.checkout-summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.account-panel {
  width: min(100%, 720px);
}

.account-tabs {
  display: flex;
  gap: 8px;
  margin: 18px 0;
}

.account-tabs button {
  flex: 1;
  min-height: 42px;
  color: var(--navy-900);
  background: var(--gray-100);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 900;
}

.account-tabs button.is-active {
  color: var(--white);
  background: var(--navy-900);
}

.account-box {
  display: grid;
  gap: 12px;
  padding: 16px;
  margin-top: 12px;
  box-shadow: none;
}

.order-status {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  color: var(--navy-900);
  background: var(--blue-100);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.status-approved,
.status-preparing,
.status-delivered {
  color: var(--success);
  background: rgba(15, 122, 60, 0.1);
}

.status-payment_rejected,
.status-cancelled {
  color: var(--danger);
  background: rgba(180, 35, 24, 0.1);
}

.status-pending_payment {
  color: var(--warning);
  background: rgba(161, 92, 7, 0.1);
}

.admin-shell {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--gray-50);
  overflow: auto;
}

.admin-layout {
  display: grid;
  min-height: 100vh;
}

.admin-sidebar {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 18px;
  color: var(--white);
  background: var(--navy-950);
}

.admin-brand {
  color: var(--white);
}

.admin-brand img {
  filter: brightness(0) invert(1);
}

.admin-sidebar nav {
  display: grid;
  gap: 8px;
}

.admin-sidebar nav button {
  min-height: 44px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.72);
  text-align: left;
  border-radius: var(--radius);
  font-weight: 900;
}

.admin-sidebar nav button.is-active,
.admin-sidebar nav button:hover,
.admin-sidebar nav button:focus-visible {
  color: var(--navy-900);
  background: var(--blue-200);
}

.admin-main {
  padding: 18px;
}

.admin-login-card {
  max-width: 520px;
  margin: 40px auto;
}

.admin-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.admin-header h1 {
  margin: 0;
  color: var(--navy-900);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1;
}

.admin-grid {
  display: grid;
  gap: 14px;
}

.admin-card {
  padding: 18px;
  box-shadow: none;
}

.admin-card h2,
.admin-card h3 {
  margin: 0 0 12px;
  color: var(--navy-900);
}

.stat-grid {
  display: grid;
  gap: 12px;
}

.stat {
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}

.stat span {
  display: block;
  color: var(--gray-600);
  font-size: 0.84rem;
  font-weight: 850;
}

.stat strong {
  display: block;
  margin-top: 6px;
  color: var(--navy-900);
  font-size: 1.65rem;
  line-height: 1;
}

.table-list {
  display: grid;
  gap: 10px;
}

.table-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}

.table-row h3 {
  margin: 0;
  font-size: 1rem;
}

.table-row p {
  margin: 2px 0 0;
  color: var(--gray-600);
  font-size: 0.9rem;
}

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

.row-actions button {
  min-height: 38px;
  padding: 0 10px;
  color: var(--navy-900);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 900;
}

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

.admin-form .form-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.check-row label {
  display: inline-flex;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
}

.check-row input {
  width: auto;
  min-height: auto;
}

.small-note {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.86rem;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 140;
  width: min(360px, calc(100% - 32px));
  padding: 14px 16px;
  color: var(--white);
  background: var(--navy-950);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-weight: 850;
}

.toast[hidden] {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 600px) {
  .brand span {
    display: inline;
  }

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

  .product-actions {
    grid-template-columns: 0.7fr 1fr;
    align-items: center;
  }

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

@media (min-width: 860px) {
  :root {
    --header-height: 86px;
  }

  .site-header {
    padding-inline: 32px;
  }

  .brand img {
    width: 142px;
  }

  .primary-nav {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 390px;
    align-items: end;
  }

  .hero-media {
    right: max(24px, calc((100vw - var(--container)) / 2 - 80px));
    opacity: 0.62;
  }

  .trust-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    transform: translateY(-38px);
  }

  .trust-band {
    padding-bottom: 16px;
  }

  .store-toolbar {
    grid-template-columns: minmax(280px, 1fr) 220px 180px;
    align-items: end;
  }

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

  .product-card {
    grid-template-rows: auto 1fr;
  }

  .product-image {
    min-height: 230px;
    padding: 24px;
  }

  .product-image img {
    max-height: 220px;
  }

  .product-body {
    padding: 22px;
  }

  .product-body {
    align-content: start;
  }

  .split {
    grid-template-columns: minmax(320px, 0.84fr) minmax(0, 1fr);
    align-items: center;
    gap: 54px;
  }

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

  .contact .split {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.74fr);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(160px, 0.5fr) minmax(160px, 0.5fr);
    padding: 64px 0;
  }

  .admin-layout {
    grid-template-columns: 260px 1fr;
  }

  .admin-sidebar {
    position: sticky;
    top: 0;
    min-height: 100vh;
    padding: 24px;
  }

  .admin-main {
    padding: 28px;
  }

  .admin-grid.two {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
  }

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

  .table-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

@media (min-width: 1120px) {
  .site-header {
    padding-inline: max(32px, calc((100vw - var(--container)) / 2));
  }
}
