@font-face {
  font-family: 'cherolina';
  src: url('fonts/cherolina/Cherolina.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { width: 100%; overflow-x: hidden; }

body {
  font-family: 'Cinzel', serif;
  background-color: #f8f8f8;
  color: #333;
}

/* Menu toggle */
#menu-toggle { display: none; }
.menu { display: none; }
.menu-button { display: block; }

#menu-toggle:checked + .menu-button span { visibility: hidden; }
#menu-toggle:checked + .menu-button + .menu { display: block; }
#menu-toggle:checked + .menu-button::after {
  content: "X";
  color: #333;
  font-size: 18px;
  position: absolute;
  top: 50%;
  right: 25px;
  transform: translateY(-50%);
  visibility: visible;
}

/* Header */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, rgba(119, 134, 126, 0.78), rgba(119, 134, 126, 0));
  padding: 11px 20px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.header-title {
  margin: 0;
  font-size: 3rem;
  font-family: 'cherolina', cursive;
}

.header-title .logo-wild {
  color: rgba(36, 41, 38, 0.559);
  text-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

.header-title .logo-era {
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.35);
}

nav {
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff5e;
  padding: 10px 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav ul { list-style: none; display: flex; margin: 0; padding: 0; }
nav ul li { padding: 0 15px; }
nav ul li a { text-decoration: none; color: #333; font-size: 1rem; }
nav ul li a:hover { color: #000; }

/* Product layout */
.product-list{
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 20px 70px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.product-card{
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 26px;

  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 26px;
  align-items: center;
}

.product-info{
  text-align: left;
}

.product-title{
  font-size: 1.6rem;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.product-subtitle{
  color: #55615c;
  margin-bottom: 14px;
  font-family: 'Manrope', sans-serif;
  font-weight: 100;
  text-transform: lowercase;
  letter-spacing: 0.01em;
}

.product-meta{
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin: 4px 0 12px;
  color: #55615c;
}

.product-price{
  font-weight: 700;
  color: #1c1e1d;
}

.product-stock{
  font-size: 0.95rem;
}

.product-details{
  margin: 12px 0 12px;
  color: #555;
  line-height: 1.7;
}

.product-description{
  color: #555;
  line-height: 1.7;
  margin-top: 10px;
}

.product-details p,
.product-description {
  font-family: 'Manrope', sans-serif;
  font-weight: 100;
  text-transform: lowercase;
  letter-spacing: 0.01em;
}

/* Labels like materials, size, notes */
.product-details strong {
  font-family: 'Cinzel', serif;
  font-weight: 200;
  text-transform: none;
  letter-spacing: 0.06em;
}

.product-actions{
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

/* Collection grid (top browse section) */
.collection{
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 22px;
}

.collection-title{
  font-size: 1.6rem;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.collection-subtitle{
  color: #55615c;
  margin-bottom: 16px;
  font-family: 'Manrope', sans-serif;
  font-weight: 100;
  text-transform: lowercase;
  letter-spacing: 0.01em;
}

.collection-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.collection-item{
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #ededed;
  border-radius: 12px;
  text-decoration: none;
  background: #fbfbfb;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.collection-item:hover,
.collection-item:focus{
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  outline: none;
}

.collection-item img{
  width: 84px;
  height: 84px;
  border-radius: 10px;
  object-fit: cover;
  background: #f3f3f3;
}

.collection-text{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.collection-name{
  color: #1c1e1d;
  letter-spacing: 0.04em;
  font-family: 'Cinzel', serif;
  font-weight: 400;
  text-transform: lowercase;
}

.collection-price{
  color: #55615c;
  font-family: 'Manrope', sans-serif;
  font-weight: 100;
  text-transform: none;
}

.collection-divider{
  border: none;
  border-top: 1px solid #ededed;
  margin: 22px 0;
}

/* Make anchor jumps land nicely below the fixed header */
.product-card[id]{
  scroll-margin-top: 110px;
}

@media (max-width: 768px){
  .collection-grid{ grid-template-columns: 1fr; }
}

.add-to-cart{
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  border: 2px solid #5959599d;
  background: transparent;
  color: #000;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.add-to-cart:hover,
.add-to-cart:focus{
  background-color: #5768607d;
  outline: none;
}

.add-to-cart:disabled{
  cursor: not-allowed;
  opacity: 0.6;
}

.cart-status{
  font-size: 0.95rem;
  color: #55615c;
  min-height: 1.2em;
}

@media (max-width: 768px) {
  .product-actions{ align-items: center; }
}

.product-media{
  display: flex;
  justify-content: center;
}

/* Carousel */
.carousel{
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f3f3;
  width: 100%;
  max-width: 420px;
  height: 240px;
}

.carousel-track{
  width: 100%;
  height: 100%;
}

.carousel-slide{
  width: 100%;
  height: 240px;
  object-fit: contain;
  display: none;
  background: #f3f3f3;
}

.carousel-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255,255,255,0.55);
  color: #1c1e1d;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover{ background: rgba(255,255,255,0.75); }
.carousel-btn.prev{ left: 12px; }
.carousel-btn.next{ right: 12px; }

/* Connect */
.connect { padding: 0; }

.connect-content {
  background: #ffffff;
  color: #53605be1;
  padding: 50px 0;
  text-align: center;
  margin-bottom: 0;
}

.connect-content h2 {
  margin-bottom: 20px;
  font-size: 35px;
  font-weight: 400;
}

.connect-content a {
  color: #141414b8;
  text-decoration: none;
  margin: 0 20px;
  display: inline-block;
}

.connect-content a:hover { text-decoration: underline; }

.connect-content img {
  width: 40px;
  height: auto;
  margin-right: 10px;
}

/* Footer */
.footer {
  background-color: #77867e72;
  padding: 20px;
  text-align: center;
  margin-top: 50px;
}

.footer-content {
  font-size: 14px;
  color: #666;
}

/* Mobile */
@media (max-width: 768px) {
  .top-header { flex-direction: column; padding: 20px 10px; }
  nav { width: calc(100% - 20px); }
  nav ul { flex-direction: column; padding: 0; }
  nav ul li { text-align: center; padding: 10px 0; }

  .menu-button { position: absolute; top: 20px; right: 10px; font-size: .6rem; }
  .header-title { margin: 0 auto; font-size: 1.25rem; }

  .product-card{
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .product-info{ text-align: center; }

  .carousel{ max-width: 100%; height: 220px; }
  .carousel-slide{ height: 220px; }
}
