@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,300;0,400;1,300;1,400&family=IBM+Plex+Sans+Condensed:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=IBM+Plex+Sans:wght@400;500&family=Inter:wght@400;500&family=Roboto:wght@400;500;600&display=swap');

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

:root {
  --bg: #EBEBFF;
  --blue: #3E86CC;
  --blue-dark: #125392;
  --black: #000000;
  --cream: #F6F2D3;
  --white: #FFFFFF;
  --gray-light: #D9D9D9;
  --gray-mid: #A5A5A5;
  --gray-dark: #7D8797;
  --text-dark: #1E1E1E;
  --shadow: 0px 4px 4px 0px rgba(0,0,0,0.25);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.18'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  color: var(--black);
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, select { font: inherit; }

/* ── HEADER ── */
.site-header {
  background: var(--blue);
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 80px;
}

.logo {
  flex-shrink: 0;
}

.logo img {
  height: 38px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.search-bar {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.search-bar input {
  width: 100%;
  background: rgba(246, 242, 211, 0.79);
  border: 1px solid var(--cream);
  border-radius: 36px;
  padding: 12px 20px 12px 52px;
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: 18px;
  color: var(--text-dark);
  outline: none;
  transition: background 0.2s;
}

.search-bar input::placeholder { color: rgba(0,0,20,0.5); }
.search-bar input:focus { background: rgba(246,242,211,0.95); }

.search-bar .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  pointer-events: none;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.header-nav a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  color: var(--white);
  transition: opacity 0.2s;
  white-space: nowrap;
}

.header-nav a:hover { opacity: 0.75; }
.header-nav a.active { border-bottom: 2px solid var(--cream); padding-bottom: 2px; }

/* ── CATEGORY NAV ── */
.cat-nav {
  background: var(--blue);
  border-top: 1px solid rgba(255,255,255,0.15);
}

.cat-nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  gap: 40px;
  align-items: center;
  height: 56px;
  overflow-x: auto;
  scrollbar-width: none;
}

.cat-nav-inner::-webkit-scrollbar { display: none; }

.cat-nav a {
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-weight: 500;
  font-size: 20px;
  color: var(--cream);
  white-space: nowrap;
  transition: opacity 0.2s;
}

.cat-nav a:hover { opacity: 0.75; }
.cat-nav a.active {
  border-bottom: 2px solid var(--cream);
  padding-bottom: 2px;
}

/* ── PAGE CONTENT ── */
.page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px 60px;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--blue);
  color: var(--cream);
  font-family: 'Roboto', sans-serif;
  font-size: 24px;
  font-weight: 400;
  padding: 18px 48px;
  border-radius: 50px;
  box-shadow: var(--shadow);
  transition: background 0.2s, transform 0.1s;
  display: inline-block;
}
.btn-primary:hover { background: var(--blue-dark); }
.btn-primary:active { transform: scale(0.98); }

.btn-outline {
  background: transparent;
  color: var(--blue);
  font-family: 'Roboto', sans-serif;
  font-size: 24px;
  border: 2px solid var(--blue);
  padding: 16px 48px;
  border-radius: 50px;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
}
.btn-outline:hover { background: var(--blue); color: var(--white); }

.btn-dark {
  background: var(--black);
  color: var(--cream);
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: 24px;
  font-weight: 400;
  padding: 18px 48px;
  border-radius: 50px;
  box-shadow: var(--shadow);
  transition: opacity 0.2s;
  display: inline-block;
}
.btn-dark:hover { opacity: 0.8; }

/* ── PRODUCT CARD ── */
.product-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.product-card-body {
  padding: 14px 16px 16px;
  background: var(--blue);
  border-radius: 0 0 20px 20px;
}

.product-card-name {
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--white);
  line-height: 1.3;
}

.product-card-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-style: italic;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}

.product-card-price {
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--cream);
  margin-top: 8px;
}

/* ── FORMS ── */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-field label {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--gray-dark);
  font-weight: 500;
}

.form-field input,
.form-field select {
  background: var(--white);
  border: 1.5px solid var(--gray-light);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 16px;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.form-field input:focus,
.form-field select:focus { border-color: var(--blue); }

/* ── SECTION LABEL ── */
.section-label {
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-dark);
  margin-bottom: 8px;
}

/* ── FOOTER ── */
.site-footer {
  background: #0a0a0a;
  color: rgba(255,255,255,0.55);
  margin-top: 80px;
}

.footer-top {
  max-width: 1440px;
  margin: 0 auto;
  padding: 56px 40px 48px;
  display: grid;
  grid-template-columns: 240px 1fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .logo img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  margin-bottom: 16px;
}

.footer-brand p {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  line-height: 1.6;
  max-width: 200px;
}

.footer-socials {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

.footer-socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  transition: border-color 0.2s, color 0.2s;
}
.footer-socials a:hover { border-color: var(--cream); color: var(--cream); }
.footer-socials svg { width: 15px; height: 15px; }

.footer-col h4 {
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--cream); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-copy {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

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

.payment-badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  padding: 4px 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
}

@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr 1fr; padding: 40px 24px 32px; }
  .footer-bottom { flex-direction: column; text-align: center; padding: 20px 24px; }
}

/* ── BACK LINK ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: 16px;
  color: var(--blue);
  margin-bottom: 24px;
  transition: opacity 0.2s;
}
.back-link:hover { opacity: 0.7; }
.back-link svg { width: 18px; height: 18px; }
