/* Desenvolvido por AGIRA MINRAGE. */
:root {
  --navy: #102a43;
  --blue: #1677c8;
  --blue-dark: #0d5d9f;
  --sky: #eaf4fc;
  --ink: #172033;
  --muted: #6b778c;
  --line: #e5eaf0;
  --paper: #fff;
  --danger: #b42318;
  --success: #16804b;
}
* {
  box-sizing: border-box;
}
html {
  font-size: 16px;
}
body {
  margin: 0;
  background: #f6f8fb;
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  line-height: 1.55;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  color: var(--blue-dark);
}
h1,
h2,
h3 {
  line-height: 1.2;
  margin-top: 0;
}
h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}
h2 {
  font-size: 1.65rem;
}
h3 {
  font-size: 1.05rem;
}
.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}
.page-content {
  min-height: calc(100vh - 160px);
  padding-top: 42px;
  padding-bottom: 60px;
}
.admin-shell {
  display: flex;
  min-height: calc(100vh - 72px);
  background: #f6f8fb;
}
.admin-sidebar {
  width: 245px;
  flex: 0 0 245px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 28px 15px;
}
.sidebar-heading {
  padding: 0 13px 15px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .13em;
}
.sidebar-link {
  display: block;
  padding: 11px 13px;
  margin: 3px 0;
  border-left: 3px solid transparent;
  border-radius: 7px;
  color: var(--ink);
  font-size: .92rem;
  font-weight: 600;
}
.sidebar-link:hover,
.sidebar-link.active {
  background: var(--sky);
  border-left-color: var(--blue);
  color: var(--blue-dark);
}
.admin-main {
  flex: 1;
  min-width: 0;
}
.admin-content {
  width: min(1240px, calc(100% - 56px));
  margin: 0 auto;
}
.topbar {
  background: var(--navy);
  color: white;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.brand {
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand:hover {
  color: #fff;
}
.brand small {
  font-size: 0.56em;
  letter-spacing: 0.18em;
  color: #9ed7ff;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: #39a7ff;
  border-radius: 9px;
  font-size: 1.5rem;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-menu a {
  color: #dbeeff;
  font-size: 0.93rem;
}
.nav-menu a:hover {
  color: #fff;
}
.nav-menu a.active:not(.nav-button) {
  color: #fff;
  border-bottom: 2px solid #fff;
  padding-bottom: 4px;
}
.nav-button {
  background: #fff !important;
  color: var(--navy) !important;
  padding: 9px 16px;
  border-radius: 8px;
  font-weight: 700;
}
.top-user {
  color: #b8d3e9;
  font-size: .85rem;
}
.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}
.hero {
  background: var(--navy);
  border-radius: 20px;
  color: #fff;
  min-height: 330px;
  display: flex;
  align-items: center;
  padding: 48px 56px;
  box-shadow: 0 18px 40px #102a4330;
  margin-bottom: 52px;
}
.hero-copy {
  max-width: 650px;
}
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 4.15rem);
  margin: 10px 0 18px;
}
.hero p {
  font-size: 1.12rem;
  color: #d7ecff;
  max-width: 590px;
  margin-bottom: 28px;
}
.eyebrow {
  font-size: 0.71rem;
  letter-spacing: 0.15em;
  font-weight: 800;
}
.text-primary {
  color: var(--blue);
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.83rem;
}
.section-heading,
.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.section-heading h2 {
  margin: 4px 0 0;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 6px 20px #102a4310;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px #102a4320;
}
.product-visual {
  height: 145px;
  background: var(--sky);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 4.5rem;
  font-weight: 300;
}
.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.product-placeholder {
  background: #eaf4fc;
  color: var(--blue);
  position: relative;
}
.product-placeholder::before {
  content: "";
  width: 58px;
  height: 48px;
  border: 3px solid currentColor;
  border-radius: 5px;
  position: absolute;
  transform: translateY(4px);
}
.product-placeholder::after {
  content: "";
  width: 30px;
  height: 3px;
  background: currentColor;
  position: absolute;
  transform: rotate(-25deg) translate(-3px, -8px);
}
.product-placeholder span {
  position: relative;
  z-index: 1;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .08em;
  margin-top: 7px;
}
.card-body {
  padding: 20px;
}
.card-body h3 {
  margin: 6px 0 12px;
}
.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}
.price,
.detail-price {
  color: var(--blue);
  font-size: 1.25rem;
}
.stock {
  font-size: 0.83rem;
  color: var(--success);
  font-weight: 600;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 17px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}
.button-primary {
  background: var(--blue);
  color: #fff;
}
.button-primary:hover {
  background: var(--blue-dark);
  color: #fff;
}
.button-outline {
  background: transparent;
  border-color: #b8d6ed;
  color: var(--blue);
}
.button-outline:hover {
  background: var(--sky);
}
.button-light {
  background: #fff;
  color: var(--navy);
}
.button-danger {
  background: #fff0ef;
  border-color: #ffd2cd;
  color: var(--danger);
}
.button-small {
  padding: 6px 10px;
  font-size: 0.82rem;
}
.full {
  width: 100%;
}
.auth-card {
  width: min(440px, 100%);
  margin: 25px auto;
  background: #fff;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 30px #102a4312;
}
.auth-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--sky);
  color: var(--blue);
  margin-bottom: 22px;
}
.auth-card h1 {
  font-size: 2rem;
}
.auth-card label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin: 16px 0 6px;
}
.auth-foot {
  text-align: center;
  margin: 22px 0 0;
}
.input,
.search-form input {
  display: block;
  width: 100%;
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 8px;
  padding: 11px 13px;
  font: inherit;
  color: var(--ink);
  outline: none;
}
.input:focus,
.search-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #1677c81f;
}
.input-small {
  width: auto;
  min-width: 145px;
  padding: 7px 9px;
}
.search-form,
.filter-form,
.inline-form,
.add-form {
  display: flex;
  align-items: center;
  gap: 9px;
}
.payment-form {
  display: grid;
  gap: 5px;
  margin-top: 8px;
  min-width: 175px;
}
.payment-form .input-small {
  width: 100%;
}
.search-form {
  width: min(390px, 100%);
}
.catalog-filter {
  min-width: 160px;
}
.search-form button {
  border: 0;
  border-radius: 8px;
  padding: 11px 15px;
  background: var(--blue);
  color: white;
  font-weight: 700;
  cursor: pointer;
}
.add-form {
  align-items: stretch;
  max-width: 360px;
}
.add-form .input {
  width: 82px;
}
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 58px;
  align-items: center;
  background: #fff;
  padding: 30px;
  border-radius: 18px;
  border: 1px solid var(--line);
}
.product-gallery {
  min-width: 0;
}
.gallery-main {
  min-height: 380px;
  border-radius: 14px;
  background: var(--sky);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.gallery-image {
  width: 100%;
  height: 380px;
  object-fit: contain;
  display: none;
}
.gallery-image.is-active {
  display: block;
}
.gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-top: 12px;
}
.gallery-thumb {
  width: 72px;
  height: 64px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  flex: 0 0 auto;
}
.gallery-thumb.is-active,
.gallery-thumb:hover {
  border-color: var(--blue);
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-detail-visual {
  min-height: 380px;
  border-radius: 14px;
  background: var(--sky);
  display: grid;
  place-items: center;
  color: var(--blue);
  font-size: 10rem;
}
.description {
  max-width: 520px;
}
.detail-price {
  font-size: 2rem;
  font-weight: 800;
  margin: 22px 0 10px;
}
.spec-list {
  border-top: 1px solid var(--line);
  margin: 24px 0;
  padding-top: 8px;
}
.spec-list div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.spec-list dt {
  color: var(--muted);
}
.spec-list dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}
.content-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 5px 18px #102a430b;
}
.info-hero {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border-radius: 16px;
  padding: 46px 52px;
  color: #fff;
  margin-bottom: 42px;
}
.info-hero h1 {
  max-width: 680px;
  margin: 10px 0 16px;
  font-size: clamp(2.25rem, 5vw, 4rem);
}
.info-hero p {
  max-width: 600px;
  margin: 0;
  color: #d9eaf7;
  font-size: 1.08rem;
}
.info-hero-about,
.info-hero-buy {
  background: var(--navy);
}
.info-hero-contact {
  background: var(--blue-dark);
}
.info-hero-mark {
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  border: 1px solid #ffffff45;
  color: #fff;
  font-size: 2.7rem;
  font-weight: 800;
  letter-spacing: .08em;
  flex: 0 0 auto;
}
.contact-hero-line {
  width: 170px;
  height: 90px;
  border-top: 2px solid #ffffff80;
  border-right: 2px solid #ffffff80;
  flex: 0 0 auto;
}
.about-intro {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 70px;
  align-items: start;
  margin-bottom: 34px;
}
.about-intro h2 {
  max-width: 350px;
  margin-top: 8px;
}
.about-intro p {
  margin: 0;
  font-size: 1.05rem;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 50px;
}
.feature-card {
  min-height: 210px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 24px;
}
.feature-card:hover {
  border-color: #b8d6ed;
}
.feature-number {
  display: block;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  margin-bottom: 28px;
}
.feature-card h3 {
  font-size: 1.2rem;
}
.feature-card p {
  margin-bottom: 0;
  font-size: .92rem;
}
.about-values {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 50px;
  background: #eaf4fc;
  border: 1px solid #d4e8f7;
  padding: 32px;
  border-radius: 14px;
}
.value-list > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid #cbddea;
}
.value-list > div:last-child {
  border-bottom: 0;
}
.value-list span {
  color: var(--muted);
  text-align: right;
}
.contact-layout {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 45px;
  align-items: start;
}
.contact-channels h2 {
  margin: 8px 0 25px;
}
.contact-channel {
  display: grid;
  grid-template-columns: 130px 1fr;
  column-gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact-channel .channel-label {
  grid-row: span 2;
  color: var(--blue);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
}
.contact-channel p {
  margin: 4px 0 0;
  font-size: .9rem;
}
.contact-note,
.buy-aside {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 5px 18px #102a430b;
}
.note-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--sky);
  color: var(--blue);
  font-weight: 800;
  margin-bottom: 20px;
}
.contact-note h3,
.buy-aside h3 {
  font-size: 1.3rem;
}
.contact-note p {
  font-size: .92rem;
  margin-bottom: 24px;
}
.buy-summary {
  display: flex;
  align-items: center;
  gap: 13px;
  border-left: 1px solid #ffffff66;
  padding-left: 30px;
}
.buy-summary strong {
  font-size: 5rem;
  line-height: 1;
}
.buy-summary span {
  color: #d9eaf7;
  font-size: .9rem;
  line-height: 1.25;
}
.buy-layout {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 45px;
  align-items: start;
}
.compact-heading {
  margin-bottom: 12px;
}
.purchase-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.purchase-timeline li {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 18px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}
.step-index {
  color: var(--blue);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .1em;
}
.purchase-timeline h3 {
  margin: 0 0 5px;
  font-size: 1.15rem;
}
.purchase-timeline p {
  color: var(--muted);
  margin: 0;
  font-size: .92rem;
}
.buy-aside > p {
  font-size: .9rem;
}
.aside-rule {
  border-top: 1px solid var(--line);
  margin: 23px 0;
}
.buy-aside ul {
  list-style: none;
  margin: 15px 0 24px;
  padding: 0;
}
.buy-aside li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 0;
  color: var(--muted);
  font-size: .9rem;
}
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
}
.status-dot.pending { background: #c98a00; }
.status-dot.confirmed { background: var(--success); }
.status-dot.preparing { background: var(--blue); }
.status-dot.delivered { background: var(--navy); }
.contact-list {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 10px;
}
.steps-list {
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
  counter-reset: purchase-step;
}
.steps-list li {
  counter-increment: purchase-step;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.steps-list li::before {
  content: counter(purchase-step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sky);
  color: var(--blue-dark);
  font-weight: 800;
}
.steps-list span {
  display: block;
  color: var(--muted);
  font-size: .9rem;
}
.table-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.table-scroll {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
th,
td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
th {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: #fbfcfe;
}
tr:last-child td {
  border-bottom: 0;
}
.strong {
  font-weight: 700;
}
.tag {
  display: inline-block;
  background: var(--sky);
  color: var(--blue-dark);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 700;
}
.cart-total {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  margin-top: 24px;
}
.cart-total strong {
  font-size: 1.45rem;
}
.cart-quantity {
  width: 82px;
  padding: 7px 9px;
}
.alert {
  padding: 13px 16px;
  border-radius: 9px;
  margin-bottom: 22px;
}
.alert-info {
  background: #eaf4fc;
  color: #15527f;
}
.alert-success {
  background: #e7f7ef;
  color: #14613b;
}
.alert-danger {
  background: #fff0ef;
  color: #8f2119;
}
.alert-warning {
  background: #fff7df;
  color: #7c5a00;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}
.admin-welcome {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 30px;
}
.admin-welcome h1 {
  margin: 7px 0 5px;
}
.admin-stats .stat-card {
  min-height: 130px;
}
.stat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.stat-symbol {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
}
.stat-card-warning .stat-symbol {
  background: #c98a00;
}
.stat-card-money .stat-symbol {
  background: var(--success);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 20px;
  margin-bottom: 20px;
}
.second-row {
  grid-template-columns: 1fr 1fr;
}
.dashboard-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 23px;
  min-width: 0;
}
.panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.panel-heading h2 {
  margin: 5px 0 0;
  font-size: 1.25rem;
}
.panel-heading a {
  font-size: .85rem;
  font-weight: 700;
}
.empty-state {
  padding: 25px 0;
  margin: 0;
}
.mini-table,
.low-stock-list,
.movement-list {
  border-top: 1px solid var(--line);
}
.mini-row,
.low-stock-list > div,
.movement-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.mini-row span,
.low-stock-list small,
.movement-list small {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  margin-top: 2px;
}
.mini-row-right {
  text-align: right;
}
.mini-row-right .tag {
  margin-top: 5px;
}
.low-stock-list strong {
  color: #b47700;
  white-space: nowrap;
}
.low-stock-list strong small {
  display: inline;
}
.sales-bars {
  height: 190px;
  display: flex;
  align-items: end;
  justify-content: space-around;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 0 12px 0;
}
.sales-bar-item {
  display: flex;
  flex: 1;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  gap: 8px;
  color: var(--muted);
  font-size: .78rem;
}
.sales-bar {
  width: min(42px, 80%);
  min-height: 8px;
  background: var(--blue);
  border-radius: 5px 5px 0 0;
}
.sales-bar:hover {
  background: var(--blue-dark);
}
.movement-mark {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #e7f7ef;
  color: var(--success);
  font-weight: 800;
  flex: 0 0 auto;
}
.movement-mark.out {
  background: #fff0ef;
  color: var(--danger);
}
.movement-list > div > span:nth-child(2) {
  flex: 1;
}
.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.settings-form {
  display: grid;
  gap: 20px;
}
.admin-two-columns {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 22px;
  align-items: start;
}
.admin-subtitle {
  margin: 35px 0 16px;
  font-size: 1.35rem;
}
.table-secondary {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  margin-top: 3px;
}
.profile-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.profile-summary span {
  color: var(--muted);
}
.profile-summary strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}
.report-filters {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-bottom: 24px;
}
.report-filters label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}
.report-stats {
  grid-template-columns: repeat(3, 1fr);
}
.settings-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 25px;
}
.settings-section-heading {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 23px;
}
.settings-section-heading h2 {
  margin: 0 0 3px;
  font-size: 1.25rem;
}
.settings-section-heading p {
  margin: 0;
  font-size: .88rem;
}
.settings-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  color: var(--blue);
  background: var(--sky);
  border-radius: 8px;
  font-weight: 800;
  font-size: .76rem;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  display: grid;
  gap: 6px;
  font-size: .88rem;
  font-weight: 700;
}
.field-wide {
  grid-column: 1 / -1;
}
.field textarea {
  resize: vertical;
}
.settings-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.table-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.table-actions form {
  margin: 0;
}
.product-admin-form {
  max-width: 980px;
}
.admin-gallery {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 18px;
}
.admin-gallery-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 8px;
}
.admin-gallery-item {
  width: 92px;
  height: 78px;
  padding: 4px;
  background: var(--sky);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.admin-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 5px 18px #102a430b;
}
.stat-card strong {
  display: block;
  color: var(--blue);
  font-size: 2rem;
  margin-top: 10px;
}
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.narrow-page {
  max-width: 650px;
}
.orders-list {
  display: grid;
  gap: 20px;
}
.order-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 5px 18px #102a430b;
}
.order-card-header,
.order-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.order-card-header h2 {
  margin: 3px 0 0;
  font-size: 1.25rem;
}
.order-total {
  text-align: right;
}
.order-total strong {
  display: block;
  color: var(--blue);
  font-size: 1.25rem;
}
.order-meta {
  padding: 14px 0;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .88rem;
}
.tag-danger {
  background: #fff0ef;
  color: var(--danger);
}
.order-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  list-style: none;
  margin: 24px 0;
  padding: 0;
}
.order-timeline li {
  position: relative;
  padding-top: 25px;
  color: var(--muted);
  font-size: .75rem;
  text-align: center;
}
.order-timeline li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--line);
}
.order-timeline li:first-child::before {
  left: 50%;
  width: 50%;
}
.order-timeline li:last-child::before {
  width: 50%;
}
.timeline-dot {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 50%;
  width: 16px;
  height: 16px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--line);
  box-shadow: 0 0 0 1px var(--line);
  transform: translateX(-50%);
}
.order-timeline li.is-complete {
  color: var(--blue-dark);
  font-weight: 700;
}
.order-timeline li.is-complete::before,
.order-timeline li.is-complete .timeline-dot {
  background: var(--blue);
}
.order-timeline li.is-current .timeline-dot {
  box-shadow: 0 0 0 4px #1677c826;
}
.order-next-step,
.payment-box {
  background: #f7fafc;
  border-left: 3px solid var(--blue);
  border-radius: 5px;
  padding: 13px 16px;
  margin-top: 16px;
}
.order-next-step p,
.payment-box p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .9rem;
}
.order-cancelled {
  border-left-color: var(--danger);
}
.payment-box {
  border-left-color: var(--success);
}
.footer {
  background: #102a43;
  color: #b8d3e9;
  padding: 30px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.footer strong {
  color: #fff;
}
.footer p {
  margin: 4px 0 0;
}
.footer span {
  font-size: 0.85rem;
}
@media (max-width: 850px) {
  .admin-sidebar {
    width: 205px;
    flex-basis: 205px;
  }
  .admin-content {
    width: min(100% - 32px, 1240px);
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .product-detail {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .product-detail-visual {
    min-height: 260px;
    font-size: 7rem;
  }
  .about-intro,
  .about-values,
  .contact-layout,
  .buy-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .settings-grid,
  .dashboard-grid,
  .second-row {
    grid-template-columns: 1fr;
  }
  .admin-two-columns {
    grid-template-columns: 1fr;
  }
  .field-wide {
    grid-column: auto;
  }
}
@media (max-width: 650px) {
  .admin-shell {
    display: block;
  }
  .admin-sidebar {
    width: 100%;
    padding: 13px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    white-space: nowrap;
  }
  .sidebar-heading {
    display: none;
  }
  .sidebar-link {
    display: inline-block;
    margin: 0 3px 0 0;
    padding: 8px 11px;
    border-left: 0;
    border-bottom: 3px solid transparent;
  }
  .sidebar-link:hover,
  .sidebar-link.active {
    border-left-color: transparent;
    border-bottom-color: var(--blue);
  }
  .admin-content {
    width: min(100% - 28px, 1240px);
  }
  .container {
    width: min(100% - 28px, 1120px);
  }
  .page-content {
    padding-top: 28px;
  }
  .menu-toggle {
    display: block;
  }
  .nav-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    background: var(--navy);
    padding: 16px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    z-index: 5;
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-menu a {
    padding: 11px 0;
  }
  .nav-button {
    text-align: center;
  }
  .hero {
    padding: 32px 25px;
    min-height: 400px;
  }
  .section-heading,
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .search-form {
    width: 100%;
  }
  .product-grid {
    gap: 12px;
  }
  .product-visual {
    height: 110px;
    font-size: 3rem;
  }
  .card-body {
    padding: 14px;
  }
  .product-card h3 {
    font-size: 0.95rem;
  }
  .product-meta {
    display: block;
  }
  .product-meta .stock {
    display: block;
    margin-top: 5px;
  }
  .auth-card {
    padding: 27px 22px;
  }
  .table-card {
    margin: 0 -4px;
  }
  .cart-total,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .filter-form {
    width: 100%;
  }
  .filter-form .input {
    flex: 1;
  }
  .add-form {
    flex-wrap: wrap;
  }
  .order-card {
    padding: 18px;
  }
  .order-timeline {
    grid-template-columns: 1fr;
    gap: 11px;
    margin: 20px 0;
  }
  .order-timeline li {
    min-height: 27px;
    padding: 3px 0 0 34px;
    text-align: left;
  }
  .order-timeline li::before,
  .order-timeline li:first-child::before,
  .order-timeline li:last-child::before {
    top: 0;
    left: 7px;
    width: 2px;
    height: 100%;
  }
  .order-timeline li:last-child::before {
    height: 50%;
  }
  .timeline-dot {
    top: 0;
    left: 0;
    transform: none;
  }
  .gallery-main,
  .gallery-image {
    height: 260px;
    min-height: 260px;
  }
  .content-card {
    padding: 24px 20px;
  }
  .admin-welcome,
  .settings-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-welcome .button {
    width: 100%;
  }
  .settings-section {
    padding: 20px;
  }
  .report-filters {
    align-items: stretch;
    flex-direction: column;
  }
  .report-stats {
    grid-template-columns: 1fr;
  }
  .profile-summary {
    grid-template-columns: 1fr;
  }
  .info-hero {
    min-height: 340px;
    align-items: flex-start;
    flex-direction: column;
    padding: 30px 24px;
  }
  .info-hero-mark {
    width: 74px;
    height: 74px;
    font-size: 1.3rem;
  }
  .contact-hero-line {
    display: none;
  }
  .about-intro,
  .about-values {
    padding: 0;
  }
  .about-values {
    padding: 24px 20px;
  }
  .value-list > div {
    display: block;
  }
  .value-list span {
    display: block;
    text-align: left;
    margin-top: 3px;
  }
  .contact-channel {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .contact-channel .channel-label {
    grid-row: auto;
  }
  .buy-summary {
    border-left: 0;
    border-top: 1px solid #ffffff66;
    padding: 20px 0 0;
  }
  .purchase-timeline li {
    grid-template-columns: 45px 1fr;
    gap: 10px;
  }
}
