:root {
  --ink: #101828;
  --muted: #667085;
  --line: #d7e3f4;
  --paper: #f4f8ff;
  --white: #ffffff;
  --accent: #0b74ff;
  --accent-strong: #0757c8;
  --accent-soft: #e8f2ff;
  --cyan: #00b8d9;
  --gold: #f5b942;
  --red: #d92d20;
  --shadow: 0 18px 45px rgba(16, 24, 40, 0.1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(11, 116, 255, 0.11), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, var(--paper) 42%, #ffffff 100%);
  color: var(--ink);
}

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

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

.site-header {
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  color: var(--accent-strong);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
}

.brand::before {
  display: none;
}

.brand.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  height: 30px;
  max-width: 140px;
  overflow: hidden;
  padding: 0;
}


.brand.brand-logo img {
  height: 22px;
  max-width: 110px;
}


.nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 700;
}

.nav a {
  border-radius: 8px;
  padding: 6px 8px;
}

@media (max-width: 820px) {
  .site-header {
    display: grid;
    gap: 10px;
    padding: 12px 16px;
  }

  .brand.brand-logo {
    max-width: 170px;
    height: 36px;
  }

  .brand.brand-logo img {
    height: 32px;
    max-width: 170px;
  }
}

.nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-weight: 700;
}

.nav a {
  border-radius: 8px;
  padding: 6px 8px;
}

.nav a:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.cart-count {
  background: var(--accent);
  border-radius: 999px;
  color: white;
  display: inline-grid;
  font-size: 0.75rem;
  min-width: 22px;
  padding: 3px 6px;
  place-items: center;
}

.hero {
  align-items: start;
  background:
    linear-gradient(90deg, rgba(4, 29, 74, 0.9), rgba(11, 116, 255, 0.34)),
    url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: white;
  display: grid;
  min-height: 400px;
  padding: 25px 6vw 45px;
}

.hero > div {
  max-width: 720px;
  margin-top: 0;
}

.hero h1,
.section h1 {
  font-size: clamp(2.35rem, 7vw, 5.4rem);
  line-height: 0.95;
  margin: 0 0 20px;
}

.hero p {
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 650px;
}

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

.button,
button {
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover,
button:hover {
  box-shadow: 0 10px 24px rgba(11, 116, 255, 0.18);
  transform: translateY(-1px);
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: var(--accent);
  color: white;
}

.button.ghost {
  background: white;
  border-color: var(--line);
  color: var(--accent-strong);
}

.button.small {
  min-height: 38px;
  padding: 8px 14px;
}

.button.wide {
  width: 100%;
}

.section {
  padding: 70px 6vw;
}

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

.section h2,
.auth-panel h1,
.auth-panel h2,
.summary h2 {
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1;
  margin: 0 0 18px;
}

.eyebrow {
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.product-grid,
.shop-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  align-items: start;
}

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

.product-card {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  max-width: none;
}

.product-card:hover {
  border-color: rgba(11, 116, 255, 0.35);
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.12);
  transform: translateY(-2px);
}

.product-card img {
  aspect-ratio: 1 / 1;
  height: 190px;
  object-fit: contain;
  width: 100%;
  padding: 10px;
  background: #ffffff;
}

.product-body {
  display: grid;
  gap: 6px;
  padding: 12px;
}

.product-body h3,
.cart-item h3 {
  margin: 0;
}

.product-body .muted,
.product-body p,
.cart-item p,
.muted {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.product-body .muted {
  font-size: 0.78rem;
}

.product-body h3 {
  display: -webkit-box;
  font-size: 1rem;
  line-height: 1.35;
  min-height: 42px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-body p {
  display: -webkit-box;
  font-size: 0.88rem;
  line-height: 1.35;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-body details {
  display: none;
}

.product-footer {
  align-items: stretch;
  display: grid;
  gap: 8px;
}

.product-footer strong {
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
}

.product-footer .button,
.product-footer button {
  background: #ffd814;
  border-color: #ffd814;
  color: #111;
  min-height: 36px;
  width: 100%;
}

.product-footer .button:hover,
.product-footer button:hover {
  background: #f7ca00;
  box-shadow: none;
}

.stock {
  color: var(--muted);
  display: block;
  font-size: 0.75rem;
  margin-top: 4px;
}

details {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent-strong);
  font-weight: 800;
  padding: 10px 12px;
}

summary {
  cursor: pointer;
}

pre {
  background: white;
  border-radius: 8px;
  overflow: auto;
  padding: 12px;
}

.category-band {
  background: #061a40;
  color: white;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.category-band a {
  background: linear-gradient(135deg, #08245d, #0b74ff);
  font-size: 1.2rem;
  font-weight: 900;
  padding: 30px 6vw;
}

.category-band a:hover {
  background: linear-gradient(135deg, #0b74ff, #00b8d9);
}

.shop-toolbar {
  align-items: end;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr minmax(260px, 520px);
  margin-bottom: 22px;
}

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

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

input,
select,
textarea {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 46px;
  padding: 11px 13px;
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(11, 116, 255, 0.12);
  outline: none;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.filters a {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
}

.filters .active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.two-column {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
}

.cart-list {
  display: grid;
  gap: 14px;
}

.cart-item {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: 128px 1fr 100px;
  padding: 14px;
}

.cart-item img {
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
}

.summary {
  padding: 22px;
  position: sticky;
  top: 92px;
}

dl {
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
}

dl div,
.mini-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

dt,
.hint,
.notice {
  color: var(--muted);
}

.total {
  border-top: 1px solid var(--line);
  font-size: 1.2rem;
  font-weight: 900;
  padding-top: 14px;
}

.auth-wrap {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  padding: 80px 6vw;
}

.auth-panel {
  padding: 26px;
}

.main-footer {
  background: #061a40;
  color: white;
  padding: 56px 6vw 24px;
}

.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  margin-bottom: 36px;
}

.footer-grid h3,
.footer-grid h4 {
  margin: 0 0 16px;
}

.footer-grid h3 {
  font-size: 1.8rem;
}

.footer-grid p,
.footer-grid a {
  color: #d8e7ff;
  display: block;
  line-height: 1.7;
  margin: 0 0 8px;
}

.footer-grid a:hover {
  color: white;
}

.footer-bottom {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: #d8e7ff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
}

.footer-bottom p {
  margin: 0;
}

.footer-powered {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-weight: 700;
  white-space: nowrap;
}
@media (max-width: 820px) {
  .footer-bottom {
    position: static;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-powered {
    position: static;
    transform: none;
  }
}


.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 28px 6vw;
}

.order-detail-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 36px;
}

.order-box,
.order-total-box {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.order-box h2,
.order-total-box h2 {
  margin-top: 0;
}

.order-box p,
.order-total-box p {
  color: var(--muted);
  line-height: 1.6;
}

.account-avatar-link {
  align-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  width: 40px;
}

.account-avatar-link img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.account-avatar-link span {
  font-size: 1.1rem;
}

.account-avatar-link:hover,
.active-account {
  background: var(--accent);
  color: white;
}

.profile-preview {
  margin-bottom: 18px;
}

.profile-preview img,
.profile-placeholder {
  align-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  font-size: 2rem;
  height: 110px;
  justify-content: center;
  object-fit: cover;
  overflow: hidden;
  width: 110px;
}

.profile-form {
  margin: 22px 0;
}

@media (min-width: 1200px) {
  .product-grid,
  .shop-product-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 820px) {
  .site-header,
  .shop-toolbar,
  .two-column,
  .cart-item,
  .order-detail-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: start;
    display: grid;
    gap: 10px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

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

  .summary {
    position: static;
  }

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

  .footer-bottom {
    align-items: start;
    flex-direction: column;
  }

  .product-grid,
  .shop-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  }

  .product-card img {
    height: 150px;
  }
}
.site-header {
  min-height: 64px !important;
  padding: 8px 20px !important;
}

.site-header .brand.brand-logo {
  display: inline-flex !important;
  align-items: center !important;
  height: 32px !important;
  max-width: 120px !important;
  overflow: hidden !important;
  flex: 0 0 auto !important;
}

.site-header .brand.brand-logo img {
  display: block !important;
  height: 32px !important;
  width: auto !important;
  max-width: 120px !important;
  object-fit: contain !important;
}

.category-band {
  display: none !important;
}
.search-wrapper {
  position: relative;
}

.search-input {
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 14px;
  width: 220px;
  outline: none;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: #555;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 320px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 999;
  overflow: hidden;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.search-result-item:hover {
  background: #f5f5f5;
}

.search-result-item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.search-result-info {
  display: flex;
  flex-direction: column;
}

.search-result-name {
  font-size: 14px;
  font-weight: 500;
}

.search-result-price {
  font-size: 13px;
  color: #666;
}

.search-no-results {
  padding: 14px;
  font-size: 14px;
  color: #888;
  text-align: center;
}