:root {
  --bg: #0b0b0b;
  --card: #141414;
  --muted: #9aa0a6;
  --accent-red: #e53935;
  --accent-pink: #ff8da1;
  --accent-blue: #1e88e5;
  --dark-grey: #1e1e1e;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: #eee;
  font-family: Inter, Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
}

/* Prevent horizontal scrolling on small screens and when zoomed */
html, body {
  overflow-x: hidden;
}

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 14px 18px;
  background: linear-gradient(90deg, #000000cc, #0b0b0b);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.logo {
  font-weight: 900;
  font-size: 20px;
  color: var(--accent-pink);
  letter-spacing: 1px;
}

nav a {
  color: #ddd;
  margin-left: 12px;
  text-decoration: none;
  padding: 6px;
  border-radius: 6px;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.02);
  color: var(--accent-blue);
}

.container {
  max-width: 1100px;
  margin: 28px auto;
  padding: 0 18px;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.hero .title {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}

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

.card {
  background: var(--card);
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 12px 30px rgba(30, 136, 229, 0.06);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 10px;
}

.title-small {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
}

.card h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
}

.card img:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.price {
  font-weight: 800;
  color: var(--accent-red);
  margin-bottom: 8px;
}

.controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

select.size {
  padding: 6px;
  border-radius: 8px;
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: #eee;
}

.btn {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  margin-right: 8px;
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-red));
  color: #111;
  font-weight: 700;
  border: none;
  padding: 8px 12px;
}

.btn-secondary {
  background: var(--dark-grey);
  color: #eee;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-danger {
  background: var(--accent-red);
  color: #fff;
  border: none;
}

.small {
  font-size: 13px;
  color: var(--muted);
}

.cart-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background-color: #111;
  border-radius: 8px;
  padding: 5px;
}
.size-select {
  margin-top: 8px;
  margin-bottom: 8px;
  padding: 5px;
  background: #111;
  color: #fff;
  border-radius: 6px;
  border: 1px solid #333;
}

.cart-thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

.checkout-panel {
  position: sticky;
  top: 80px;
  background: var(--card);
  padding: 12px;
  border-radius: 10px;
}

/* Reusable two-column layout for cart/checkout pages */
.two-column {
  display: grid;
  /* make the right column flexible so it can shrink when viewport is narrow or zoomed */
  grid-template-columns: 1fr minmax(240px, 320px);
  gap: 18px;
}

.two-column.two-column-checkout {
  grid-template-columns: 1fr minmax(280px, 420px);
}

.footer {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* Notification Styles */
.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-red));
  color: #111;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  font-weight: 700;
  z-index: 1000;
  display: none;
  max-width: 300px;
  word-wrap: break-word;
}

/* Small debug overlay to display cart contents during testing */
.cart-debug {
  position: fixed;
  bottom: 80px;
  left: 18px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  z-index: 1200;
  max-width: 320px;
  display: none;
  word-wrap: break-word;
}

/* Contact page styles */
.contact-page p {
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 18px auto;
  text-align: center;
}

.contact-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 18px;
  border-radius: 12px;
  max-width: 680px;
  margin: 0 auto 20px auto;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 10px;
  background: #0f0f0f;
  border: 1px solid rgba(255,255,255,0.04);
  color: #fff;
  resize: vertical;
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.contact-info {
  max-width: 680px;
  margin: 8px auto 0 auto;
  color: #fff;
}

.contact-info h3 {
  margin-bottom: 8px;
}

.contact-info ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-info li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-success {
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-red));
  color: #111;
  padding: 14px 16px;
  border-radius: 10px;
  max-width: 680px;
  margin: 12px auto 0 auto;
  text-align: center;
}

@media (max-width: 720px) {
  .contact-info ul {
    gap: 10px;
  }
}

.cart-badge {
  position: absolute;
  top: -10px;
  right: -5px;
  background: var(--accent-red);
  color: #fff;
  border-radius: 50%;
  min-width: 16px;
  height: 16px;
  font-size: 10px;
  font-weight: bold;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0 3px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

nav a {
  position: relative;
}

@media (max-width: 720px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .card img {
    height: 160px;
  }
}

/* About section */
.about-section {
  background: var(--card);
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.03);
  max-width: 1100px;
  margin: 18px auto;
}

.about-section h3 {
  margin: 0 0 8px 0;
  color: #fff;
}

.about-section p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 12px 0;
}

.about-cta {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

@media (max-width: 720px) {
  .about-section {
    padding: 14px;
  }
}

/* Responsive header spacing: stack logo and nav, improve touch targets and wrapping */
@media (max-width: 720px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px;
  }

  .header .logo {
    font-size: 18px;
    line-height: 1;
  }

  .header nav {
    width: 100%;
    display: flex;
    max-height: 0;
    overflow: hidden;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    opacity: 0;
    transform-origin: top;
    transform: translateY(-8px);
    transition: max-height 320ms ease, opacity 220ms ease, transform 300ms ease;
  }

  /* Make nav links easier to tap on mobile */
  .header nav a {
    margin-left: 0;
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-block;
    background: transparent;
  }

  /* hamburger (nav toggle) */
  .nav-toggle {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.06);
    color: #fff;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
  }

  /* when header has open class, slide down nav */
  .header.open nav {
    max-height: 420px; /* large enough to show wrapped links */
    opacity: 1;
    transform: translateY(0);
  }

  .header nav a:hover {
    background: rgba(255,255,255,0.02);
  }

  /* Reduce left/right page padding a little on very small screens */
  .container {
    padding: 0 12px;
  }

  /* Stack cart/checkout columns on small screens */
  .two-column {
    grid-template-columns: 1fr;
  }

  /* Make sticky checkout panel behave on small screens */
  .checkout-panel {
    position: static;
    top: auto;
    margin-top: 8px;
  }
}

/* Contact button icon styling */
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.contact-btn .icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.contact-btn .label { display: inline-block; }
