:root {
  --bg: #ffffff;
  --text: #000000;
  --muted: #555555;
  --surface: #f4f4f4;
  --accent: #1e3d2f;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: linear-gradient(to bottom, #ffffff, #f0f4f2);
  color: var(--text);
}

/* GLOBAL HEADINGS */
h2 {
  color: var(--accent);
  font-size: 34px;
  text-align: center;
  margin-bottom: 25px;
}

/* HEADER */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: var(--surface);
}

nav a {
  margin-left: 18px;
  text-decoration: none;
  color: var(--text);
}

nav a:hover {
  opacity: 0.6;
}

nav a.active {
  font-weight: bold;
  border-bottom: 2px solid var(--accent);
}

/* HERO */
.hero {
  position: relative;
  overflow: hidden;
  padding: 140px 40px;
  text-align: center;
  color: white;
  background: linear-gradient(135deg, #0f1f17, #1e3d2f);
}

.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent);
  transform: translate(-50%, -50%);
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("https://www.transparenttextures.com/patterns/noise.png");
  opacity: 0.05;
}

.hero * {
  position: relative;
  z-index: 1;
}

.hero-logo {
  height: 90px;
  margin-bottom: 25px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

.hero h2 {
  font-size: 52px;
  letter-spacing: 2px;
  margin-bottom: 15px;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
  color: rgba(255,255,255,0.85);
}

/* BUTTONS */
.btn,
.hero button,
.product-card button,
form button,
.customize-page button {
  padding: 12px 30px;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover,
.hero button:hover,
.product-card button:hover,
form button:hover,
.customize-page button:hover {
  background: transparent;
  color: var(--accent);
}

/* FOOTER */
.footer {
  background: var(--surface);
  text-align: center;
  padding: 15px;
  margin-top: 40px;
}

/* SHOP */
.shop {
  padding: 60px 40px;
  text-align: center;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.product-card {
  background: var(--surface);
  padding: 20px;
  border: 1px solid #ddd;
  transition: 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.product-card img {
  width: 100%;
  margin-bottom: 15px;
}

/* ABOUT */
.about {
  padding: 60px 20px;
  max-width: 900px;
  margin: auto;
}

.about > * {
  background: var(--surface);
  padding: 25px;
  border: 1px solid #ddd;
}

.about p {
  margin-bottom: 18px;
  line-height: 1.6;
  color: var(--muted);
}

/* CONTACT */
.contact {
  padding: 60px 20px;
  max-width: 600px;
  margin: auto;
}

.contact form {
  background: var(--surface);
  padding: 25px;
  border: 1px solid #ddd;
}

/* FORMS */
form {
  display: flex;
  flex-direction: column;
}

form label {
  margin-bottom: 5px;
  font-weight: bold;
}

form input,
form textarea,
select {
  padding: 8px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  width: 100%;
}

/* CUSTOMIZE PAGE */
.customize-page {
  max-width: 1000px;
  margin: auto;
  padding: 40px 20px;
}

.customize-page h3 {
  margin-top: 40px;
}

.customize-container {
  display: flex;
  gap: 40px;
  margin-top: 25px;
}

.left-panel,
.right-panel {
  flex: 1;
  background: var(--surface);
  padding: 25px;
  border: 1px solid #ddd;
}

.left-panel img {
  width: 180px;
  margin-top: 20px;
}

.right-panel label {
  display: block;
  margin-bottom: 8px;
}

.right-panel input {
  margin-bottom: 15px;
}

/* CANVAS */
canvas {
  display: block;
  margin: 20px auto 25px auto;
  border: 1px solid #ccc;
}

#colorPicker {
  margin-top: 10px;
}

button {
  width: 100%;
  margin-top: 10px;
}

/* TABLE */
.size-chart {
  width: 100%;
  border-collapse: collapse;
  margin-top: 40px;
}

.size-chart th,
.size-chart td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: center;
}

/* DETAILS */
.details {
  display: none;
  margin-top: 10px;
  text-align: left;
  font-size: 14px;
  color: var(--muted);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: center;
  }

  nav {
    margin-top: 10px;
  }

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

  .customize-container {
    flex-direction: column;
  }
}