:root {
  --ink: #333;
  --ink-2: #666;
  --line: #e6e6e6;
  --bg: #f4f4f4;
  --card: #fff;
  --pill: #f3f3f3;
  --radius: 14px;
  --btn-cart-bg: #ffffff;
  --btn-cart-bd: #dcdcdc;
  --btn-cart-fg: #111;
  --btn-buy-bg: #2a2a2a;
  --btn-buy-bd: #1f1f1f;
  --btn-buy-fg: #ffffff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
}
a {
  color: inherit;
  text-decoration: none;
}
html {
  scroll-behavior: smooth;
}

/* Header styling */
.announcement {
  background: #2a2a2a;
  color: #fff;
  text-align: center;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
}
.announcement a {
  text-decoration: underline;
  margin-left: 8px;
}

.topbar {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  z-index: 50;
  transition: box-shadow .3s ease, transform .3s ease;
}
.topbar.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.header-top {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
  border-bottom: 1px solid var(--line);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -.5px;
  flex: 0 0 auto;
  color: #2a2a2a;
}
.logo-icon {
  width: 32px;
  height: 32px;
  background: #2a2a2a;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
}

.searchbar {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  max-width: 640px;
}
.searchbar .field {
  position: relative;
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: center;
}
.searchbar input {
  flex: 1;
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 48px 0 20px;
  outline: none;
  background: #fafafa;
  font-size: 15px;
  transition: all .2s ease;
}
.searchbar input:focus {
  background: #fff;
  border-color: #aaa;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}
.searchbar .sicon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  cursor: pointer;
}
.sicon svg {
  width: 100%;
  height: 100%;
  stroke: #777;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex: 0 0 auto;
}
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fff;
  position: relative;
}
.icon-btn:hover {
  background: var(--pill);
  border-color: #ccc;
  transform: translateY(-2px);
}
.icon-btn:active {
  transform: translateY(0) scale(0.95);
}
.icon-btn svg {
  width: 22px;
  height: 22px;
  stroke: #444;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .3s ease;
}
.icon-btn:hover svg {
  transform: scale(1.1);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #2a2a2a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 52px;
}
.nav-link {
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  color: #444;
  transition: all .2s ease;
  cursor: pointer;
}
.nav-link:hover {
  background: var(--pill);
  color: #2a2a2a;
}
.nav-link.active {
  background: #2a2a2a;
  color: #fff;
}

/* Buttons */
.btn {
  display: inline-block;
  border-radius: 999px;
  border: 1px solid #cfcfcf;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  transition: .15s ease;
  cursor: pointer;
}
.btn.sm {
  padding: 8px 16px;
  font-size: 14px;
}
.btn-cart {
  background: var(--btn-cart-bg);
  border-color: var(--btn-cart-bd);
  color: var(--btn-cart-fg);
}
.btn-buy {
  background: var(--btn-buy-bg);
  border-color: var(--btn-buy-bd);
  color: var(--btn-buy-fg);
}
.btn:hover {
  filter: brightness(0.97);
}

/* Footer */
footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-logo {
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 4px;
}
.footer-desc {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s ease;
}
.social-icon:hover {
  background: #2a2a2a;
  border-color: #2a2a2a;
  transform: translateY(-3px) rotate(5deg);
}
.social-icon:hover svg {
  stroke: #fff;
}
.social-icon svg {
  width: 18px;
  height: 18px;
  stroke: #444;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .3s ease;
}

.footer-col h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: #666;
  font-size: 14px;
  transition: all .2s ease;
  display: inline-block;
}
.footer-links a:hover {
  color: #2a2a2a;
  transform: translateX(4px);
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy {
  color: #888;
  font-size: 13px;
  margin: 0;
}
.payment-icons {
  display: flex;
  gap: 8px;
  align-items: center;
}
.payment-icon {
  height: 24px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fafafa;
  font-size: 11px;
  color: #666;
  font-weight: 600;
  display: flex;
  align-items: center;
  transition: all .2s ease;
}
.payment-icon:hover {
  border-color: #2a2a2a;
  background: #fff;
  transform: translateY(-2px);
}

/* Scroll to top button */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: #2a2a2a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 100;
}
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}
.scroll-top:hover {
  background: #1a1a1a;
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
.scroll-top svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
