:root {
  --navy-950: #04101f;
  --navy-900: #081428;
  --navy-800: #0d1b38;
  --navy-700: #122248;
  --navy-600: #182d60;
  --gold: #f5c800;
  --gold-d: #c9a200;
  --gold-l: #ffe566;
  --white: #fff;
  --text-primary: #fff;
  --text-secondary: rgba(255, 255, 255, .72);
  --text-muted: rgba(255, 255, 255, .44);
  --card-bg: rgba(255, 255, 255, .05);
  --card-bg-h: rgba(255, 255, 255, .09);
  --border: rgba(255, 255, 255, .1);
  --border-gold: rgba(245, 200, 0, .34);
  --danger: #ef4444;
  --success: #22c55e;
  --info: #60a5fa;
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Cairo, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--navy-900);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(245, 200, 0, .04) 1px, transparent 1px);
  background-size: 32px 32px;
}

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

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

button {
  cursor: pointer;
}

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

.page {
  position: relative;
  z-index: 1;
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.ann {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 38px;
  padding: 8px 16px;
  background: linear-gradient(90deg, var(--gold), var(--gold-l));
  color: var(--navy-950);
  font-size: 13px;
  font-weight: 800;
}

.ann a {
  text-decoration: underline;
}

.ann-x,
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .06);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ann-x {
  width: 28px;
  height: 28px;
  color: var(--navy-950);
  border-color: rgba(4, 16, 31, .18);
  background: rgba(4, 16, 31, .08);
}

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8, 20, 40, .92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  gap: 18px;
  align-items: center;
}

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

.logo img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.logo b {
  display: block;
  font-size: 16px;
  line-height: 1;
  color: var(--white);
}

.logo span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
}

.nav-search {
  position: relative;
}

.nav-search input {
  width: 100%;
  height: 44px;
  border-radius: 11px;
  border: 1.5px solid var(--border);
  background: rgba(255, 255, 255, .05);
  color: var(--white);
  padding: 0 42px 0 14px;
  outline: none;
}

.nav-search svg {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--text-muted);
  fill: none;
  stroke: currentColor;
  pointer-events: none;
}

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

.cart-btn {
  position: relative;
}

.badge-count {
  position: absolute;
  top: -7px;
  left: -7px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy-950);
  font-size: 11px;
  font-weight: 900;
}

.nav-cta,
.btn-gold,
.btn-outline,
.btn-danger,
.btn-soft {
  min-height: 40px;
  border-radius: 10px;
  padding: 9px 16px;
  border: 1.5px solid transparent;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.nav-cta,
.btn-gold {
  background: var(--gold);
  color: var(--navy-950);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--border-gold);
}

.btn-soft {
  background: rgba(255, 255, 255, .07);
  color: var(--text-secondary);
  border-color: var(--border);
}

.btn-danger {
  background: rgba(239, 68, 68, .14);
  color: #fecaca;
  border-color: rgba(239, 68, 68, .34);
}

.catnav {
  border-bottom: 1px solid var(--border);
  background: rgba(4, 16, 31, .48);
}

.catnav-inner {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0;
}

.cat-btn {
  flex: 0 0 auto;
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .04);
  color: var(--text-secondary);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 800;
}

.cat-btn.active,
.cat-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(245, 200, 0, .09);
}

.hero-wrap {
  padding: 28px 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(270px, .9fr);
  gap: 18px;
}

.hero-main {
  min-height: 430px;
  border-radius: 18px;
  border: 1.5px solid var(--border-gold);
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(90deg, rgba(4, 16, 31, .95), rgba(8, 20, 40, .72)),
    url("../images/pets-pets-asset-02.jpg") center/cover;
}

.slide-body {
  position: absolute;
  inset: auto 34px 42px 34px;
  max-width: 560px;
}

.slide-pill,
.sec-eyebrow,
.brand-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 12px;
  background: rgba(245, 200, 0, .12);
  color: var(--gold);
  border: 1px solid var(--border-gold);
  font-size: 12px;
  font-weight: 900;
}

.slide-h,
.hero-title {
  margin: 14px 0 10px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.05;
  font-weight: 900;
}

.slide-h span,
.hero-title span,
.sec-title em {
  color: var(--gold);
  font-style: normal;
}

.slide-sub,
.hero-sub {
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 0 20px;
}

.hero-chat-btn {
  margin-inline-start: 8px;
}

.hero-side {
  display: grid;
  gap: 14px;
}

.hside {
  min-height: 130px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hside-tag {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.hside-title {
  font-size: 20px;
  font-weight: 900;
  margin-top: 4px;
}

.hside-sub {
  color: var(--text-muted);
  font-size: 13px;
}

.mq {
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
}

.mq-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.mq-item {
  padding: 11px 28px;
  color: var(--text-secondary);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
}

.mq-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 9px;
  border-radius: 50%;
  background: var(--gold);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.sec {
  padding: 58px 0 0;
}

.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin-bottom: 18px;
}

.sec-title {
  margin: 8px 0 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
}

.section-band {
  padding: 44px 0;
}

.mh-grid,
.prod-grid,
.policy-grid,
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.mh-card,
.pc,
.policy-card,
.feature-card,
.dash-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card-bg);
}

.mh-card {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  font-weight: 900;
  padding: 14px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.mh-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 16px 34px rgba(245, 200, 0, .12);
}

.mh-visual {
  width: clamp(90px, 9vw, 126px);
  height: clamp(90px, 9vw, 126px);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .035);
}

.mh-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-sec {
  border-radius: 16px 16px 0 0;
  border: 1.5px solid var(--border-gold);
  border-bottom: 0;
  background: var(--navy-800);
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.brand-headline {
  font-size: 24px;
  font-weight: 900;
  margin-top: 6px;
}

.brand-sub {
  color: var(--text-muted);
  font-size: 13px;
}

.prod-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1.5px solid var(--border-gold);
  border-radius: 0 0 16px 16px;
  padding: 14px;
  background: rgba(13, 27, 56, .64);
}

.pc {
  overflow: hidden;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.pc-img {
  aspect-ratio: 1 / .82;
  background: linear-gradient(145deg, var(--navy-700), var(--navy-950));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 58px;
  position: relative;
  overflow: hidden;
}

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

.pc-badges {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.b {
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 900;
}

.b-sale {
  background: rgba(239, 68, 68, .9);
  color: white;
}

.b-new {
  background: rgba(34, 197, 94, .9);
  color: white;
}

.pc-body {
  padding: 13px;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
}

.pc-brand {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.pc-name {
  min-height: 46px;
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.pc-stars {
  color: var(--text-muted);
  font-size: 12px;
}

.stars {
  color: var(--gold);
  letter-spacing: 1px;
}

.pc-price {
  margin-top: auto;
}

.pwas {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 12px;
}

.pnow {
  color: var(--gold);
  font-size: 18px;
  font-weight: 900;
}

.add-btn {
  width: 100%;
  min-height: 40px;
  border-radius: 10px;
  border: 0;
  background: var(--gold);
  color: var(--navy-950);
  font-size: 13px;
  font-weight: 900;
}

.add-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  background: rgba(4, 16, 31, .66);
}

.cart-drawer.open {
  display: block;
}

.cart-panel {
  position: absolute;
  inset-block: 0;
  left: 0;
  width: min(420px, 100%);
  background: var(--navy-800);
  border-right: 1px solid var(--border-gold);
  display: flex;
  flex-direction: column;
}

.panel-head,
.panel-foot {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-foot {
  border-bottom: 0;
  border-top: 1px solid var(--border);
  display: block;
}

.cart-list {
  flex: 1;
  overflow: auto;
  padding: 16px;
}

.cart-empty {
  min-height: 180px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ci,
.order-line {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.ci-img {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  background: var(--navy-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  overflow: hidden;
  flex: 0 0 auto;
}

.ci-name {
  font-size: 13px;
  font-weight: 800;
}

.ci-price {
  font-size: 12px;
  color: var(--gold);
  font-weight: 900;
}

.ci-qty {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
}

.qb {
  width: 25px;
  height: 25px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .06);
  color: var(--white);
}

.cart-row,
.confirm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-secondary);
  padding: 7px 0;
}

.cart-row.total,
.confirm-row.total {
  color: var(--white);
  font-size: 18px;
  font-weight: 900;
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 12px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(4, 16, 31, .84);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  width: min(620px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: var(--navy-800);
  border: 1.5px solid var(--border-gold);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .6);
}

.modal.wide {
  width: min(1080px, 100%);
}

.modal-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.modal-body {
  padding: 20px;
}

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

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

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

.field label {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
}

.input {
  width: 100%;
  min-height: 42px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: rgba(255, 255, 255, .05);
  color: var(--white);
  padding: 9px 12px;
  outline: none;
}

textarea.input {
  min-height: 84px;
  resize: vertical;
}

.input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 200, 0, .1);
}

select.input option {
  background: var(--navy-900);
  color: var(--white);
}

.error {
  display: none;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(239, 68, 68, .12);
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, .35);
  font-size: 13px;
}

.checkout-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.checkout-step {
  min-height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
}

.checkout-step.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(245, 200, 0, .08);
}

.checkout-panel {
  display: none;
}

.checkout-panel.active {
  display: block;
}

.pay-methods {
  display: grid;
  gap: 10px;
}

.pay-card {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.pay-card.active {
  border-color: var(--gold);
  background: rgba(245, 200, 0, .08);
}

.footer {
  margin-top: 70px;
  border-top: 1px solid var(--border);
  background: var(--navy-950);
  padding: 38px 0 18px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
}

.foot-title {
  color: var(--gold);
  font-weight: 900;
  margin-bottom: 10px;
}

.foot-list {
  display: grid;
  gap: 7px;
  color: var(--text-secondary);
  font-size: 13px;
}

.foot-bottom {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  min-width: min(340px, calc(100vw - 36px));
  max-width: calc(100vw - 36px);
  border-radius: 12px;
  border: 1px solid var(--border-gold);
  background: var(--navy-800);
  color: var(--white);
  padding: 13px 15px;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: .22s;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
}

.toast.open {
  opacity: 1;
  transform: none;
}

.admin-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: min(760px, 90vh);
}

.admin-side {
  border-left: 1px solid var(--border);
  background: var(--navy-950);
  padding: 16px;
}

.admin-logo {
  color: var(--gold);
  font-weight: 900;
  margin-bottom: 18px;
}

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

.admin-nav button {
  width: 100%;
  justify-content: flex-start;
}

.admin-nav button.active {
  background: rgba(245, 200, 0, .12);
  border-color: var(--gold);
  color: var(--gold);
}

.admin-main {
  padding: 18px;
  overflow: auto;
}

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

.dash-card {
  padding: 16px;
}

.dash-label {
  color: var(--text-muted);
  font-size: 12px;
}

.dash-value {
  color: var(--gold);
  font-size: 24px;
  font-weight: 900;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.admin-form-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, .03);
}

.admin-table-gap {
  margin-top: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  text-align: right;
  vertical-align: middle;
  font-size: 13px;
}

th {
  color: var(--gold);
  background: rgba(245, 200, 0, .06);
  font-weight: 900;
}

.status-pill {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 900;
  background: rgba(96, 165, 250, .14);
  color: #bfdbfe;
}

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

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

.improve-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, .035);
  display: grid;
  gap: 6px;
}

.improve-card b {
  color: var(--gold);
}

.improve-card span {
  color: var(--text-secondary);
  font-size: 13px;
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

.policy-card,
.feature-card {
  padding: 18px;
}

.policy-card h3,
.feature-card h3 {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 18px;
}

.policy-card p,
.feature-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.contact-card {
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  background: rgba(245, 200, 0, .06);
  padding: 22px;
}

.hidden {
  display: none !important;
}

@media (max-width: 920px) {
  .nav {
    grid-template-columns: 1fr auto;
  }

  .nav-search {
    grid-column: 1 / -1;
    order: 3;
  }

  .hero-grid,
  .foot-grid,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .hero-main {
    min-height: 360px;
  }

  .mh-grid,
  .prod-grid,
  .policy-grid,
  .features-grid,
  .improve-grid,
  .dash-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-side {
    border-left: 0;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 620px) {
  .wrap,
  .nav,
  .catnav-inner {
    width: min(100% - 22px, 1180px);
  }

  .logo b {
    font-size: 14px;
  }

  .nav-actions {
    gap: 5px;
  }

  .nav-cta {
    padding-inline: 10px;
  }

  .hero-main {
    min-height: 330px;
  }

  .slide-body {
    inset: auto 20px 24px 20px;
  }

  .mh-grid,
  .prod-grid,
  .policy-grid,
  .features-grid,
  .improve-grid,
  .dash-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .brand-sec,
  .sec-head,
  .foot-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .prod-grid {
    border-radius: 0 0 14px 14px;
  }

  .modal-body {
    padding: 16px;
  }

  .checkout-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
