:root {
  --bg: #F7F6F2;
  --surface: #FFFFFF;
  --text-main: #0B0A0F;
  --text-muted: #6B6873;
  --border: #E4E1DA;
  --primary: #0B0A0F;
  --primary-hover: #262430;
  --accent: #4F46E5;
  --accent-light: #EEF2FF;
  --success: #10B981;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --shadow-soft: 0 12px 32px -6px rgba(11, 10, 15, 0.04);
  --shadow-hover: 0 24px 48px -12px rgba(11, 10, 15, 0.09);
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  letter-spacing: -0.01em;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }

.wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

/* Modern Header */
header {
  background: rgba(247, 246, 242, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-main);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a {
  color: var(--text-muted);
}
.nav-links a:hover {
  color: var(--text-main);
}

/* Modern Buttons & Badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  border-radius: 100px;
  padding: 14px 28px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  border: 1px solid transparent;
}

.btn:active { transform: scale(0.98); }

.btn-solid {
  background: var(--primary);
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(11, 10, 15, 0.12);
}
.btn-solid:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(11, 10, 15, 0.18);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text-main);
  border-color: var(--border);
  box-shadow: var(--shadow-soft);
}
.btn-ghost:hover {
  border-color: var(--text-main);
  transform: translateY(-2px);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 7px 16px;
  border-radius: 100px;
  color: var(--text-muted);
  box-shadow: var(--shadow-soft);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Modern Product Grid & Cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.p-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.p-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: #D1CEC7;
}

.p-media {
  height: 260px;
  background: #F1EFE9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.stock-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  color: var(--success);
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
}

.p-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.p-body h3 {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.35;
  color: var(--text-main);
}

.p-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: auto;
  padding-top: 10px;
}

.p-price .now {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--text-main);
}

.p-price .was {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 500;
}

.p-price .off {
  font-size: 11px;
  font-weight: 700;
  background: var(--accent-light);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 100px;
}

.p-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.p-actions .btn {
  width: 100%;
  font-size: 13.5px;
  padding: 13px;
}

.amazon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  padding-top: 8px;
}
.amazon-link:hover { color: var(--text-main); }

.amazon-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: #FF9900;
  color: #111111;
  font-weight: 800;
  font-size: 10.5px;
}

/* Forms & Inputs */
input, select, textarea {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  background: var(--surface);
  color: var(--text-main);
  outline: none;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--text-main);
  box-shadow: 0 0 0 4px rgba(11, 10, 15, 0.06);
}

@media (max-width: 920px) {
  .product-grid { grid-template-columns: 1fr; }
  .wrap { padding: 0 20px; }
}