/* ====================== */
/* === GLOBAL STYLES === */
/* ====================== */
:root {
  --primary-color: #00c389;
  --bg-color: #000;
  --border-color: #08331f;
  --font-family: 'Times New Roman', Times, serif;
  --transition-speed: 0.3s;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow-x: hidden;
  flex-grow: 1;

  background: var(--bg-color);
  color: var(--primary-color);
  font-family: var(--font-family);
}

footer{
  clear: both;         /* drop below any floats */
  display: block;
  width: 100%;
  float: none;
  position: static;
  text-align: center;
  margin: 2rem 0;
  font-size: 12px;
}
footer a{ color:#ff3c76; text-decoration:none; }
footer a:hover{ text-decoration:underline; }

footer a {
  color: #ff3c76;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}


/* ====================== */
/* === NAVIGATION === */
/* ====================== */
.nav-icon {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;

  font-size: 14px;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;

  transition: transform var(--transition-speed) ease-in-out,
              text-shadow var(--transition-speed) ease-in-out;
}
.nav-icon img {
  width: 35px;
  margin-bottom: 5px;
}
.nav-icon:hover {
  transform: scale(1.2);
  text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
}

.ellipse-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 50vw;
  padding: 10px;
}

/* ====================== */
/* === LAYOUT === */
/* ====================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;

  width: 90vw;
  max-width: 1400px;
  margin: 30px auto;
  padding: 0 20px;
}

.text-container {
  width: 60vw;
  max-width: 600px;
  min-width: 250px;
  margin: auto;
}

/* ====================== */
/* === UI COMPONENTS === */
/* ====================== */

.gif-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;

  background: var(--bg-color) url("/img/buzco_sky_gif.gif") repeat;
  background-size: auto; /* keep original GIF size */
  background-repeat: repeat; /* tile the gif side by side */
}

.brand-logo {
  max-width: 200px;
  transition: opacity var(--transition-speed) ease-in-out;
}
.brand-logo:hover {
  opacity: 0.7;
}

.image-viewer {
  width: 100%;
  max-width: 400px;     /* keep your desktop size */
  aspect-ratio: 1 / 1;  /* keep it square without fixed height */
  height: auto;         /* let aspect-ratio control height */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto;       /* center inside template */
}
.image-viewer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Thumbnails: allow scroll instead of overflow */
.thumbnail-row,
.image-thumb {
  width: 100%;
  margin-top: 10px;
  display: flex;
  gap: 10px;
  justify-content: center;
  overflow-x: auto;                /* allow scroll instead of overflow */
  overflow-y: hidden;              /* hide vertical overflow from hover */
  -webkit-overflow-scrolling: touch;
}

.thumbnail-row img,
.image-thumb img {
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  padding: 5px;
  object-fit: cover;
  cursor: pointer;
  border: 1px solid var(--border-color);
  opacity: 0.6;
  transition: transform 0.3s, border-color 0.3s;
  transform-origin: center;        /* scale grows evenly */
}

.thumbnail-row img:hover,
.image-thumb img:hover {
  border-color: var(--primary-color);
  transform: scale(1.25);          /* tamer scale so it stays neat */
}
.active {
  opacity: 1 !important;
  border-color: var(--primary-color);
}

/* Image zoom */
.product-image {
  max-width: 100%;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}
.product-image.zoomed {
  transform: scale(2);
  cursor: zoom-out;
}

/* ====================== */
/* === PRODUCT TEMPLATE === */
/* ====================== */
.product-template {
  width: 100%;
  max-width: 500px;     /* your original cap */
  min-width: 0;         /* allow shrinking */
  margin: 0 auto;
  box-sizing: border-box;

  padding: 20px;
  text-align: left;

  background-color: #080e0c;
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--primary-color);
  border-left: 3px solid var(--primary-color);
  border-bottom: 3px solid #03241a;
  border-right: 3px solid #03241a;
  box-shadow: 2px 2px 0px #030100;
}

.product-image {
  width: 100%;
  max-width: 100%; /* allow full width of container */
  height: auto;
  border-bottom: 1px solid var(--border-color);
  display: block;
  margin: 0 auto;
}

/* ====================== */
/* === RESPONSIVE === */
/* ====================== */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    width: 90vw;
  }
  .ellipse-container {
    gap: 5px;
    padding: 5px;
  }
}

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

  .product-template {
    max-width: 90%;   /* take up 90% of screen */
    margin: 0 auto;   /* center it */
  }
}
/* ====================== */
/* === FOOTER === */
/* ====================== */
footer {
  margin-top: 40px;
  font-size: 12px;
  color: var(--primary-color);
}

/* ====================== */
/* === FORMS === */
/* ====================== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form input,
.contact-form textarea {
  background: #a2ffe3;
  color: #000;
  border: 1px solid var(--primary-color);
  padding: 0.75rem;
  width: 50vw;
  max-width: 500px;
  box-sizing: border-box;
}
.contact-form button {
  background: #000;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 0.75rem;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.contact-form button:hover {
  background: var(--primary-color);
  color: #000;
}

/* ====================== */
/* === BUTTONS === */
/* ====================== */
.btn-coming-soon {
  /* colors */
  --base: #009c6d;      /* ≈20% darker than #00c389 */
  --highlight: #00c389; /* bevel highlight */
  --shadow: #007a55;    /* bevel shadow */

  background: var(--base);
  color: #000; /* black text */
  font-family: "Times New Roman", Times, serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .02em;

  border-radius: 0;     /* sharp corners */
  border-top: 4px solid var(--highlight);
  border-left: 4px solid var(--highlight);
  border-bottom: 4px solid var(--shadow);
  border-right: 4px solid var(--shadow);

  padding: 0.75rem 1.1rem;
  line-height: 1;
  display: inline-block;

  cursor: not-allowed;  /* communicates disabled */
  pointer-events: none; /* truly non-clickable */
  user-select: none;
  /* crisp outer hairline for contrast on varied backgrounds */
  box-shadow: 0 0 0 1px #005a3f inset;
}

.btn-coming-soon:hover,
.btn-coming-soon:focus {
  outline: none; /* no interaction states */
}

.size-btn,
.buynow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid var(--border-color);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.size-btn {
  width: 60px; height: 60px;
  color: var(--primary-color);
}
.size-btn:hover {
  background: var(--border-color);
}

.buynow-btn {
  padding: 12px 24px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
}
.buynow-btn:hover {
  background: var(--border-color);
}

/* ====================== */
/* === ARCHIVE === */
/* ====================== */
.archive-wrapper {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 2rem;
  width: 70%;
}

.images-block {
  flex: 0 0 60%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.images-block img {
  max-width: 100%;
  display: block;
  height: auto;
}

.info-block {
  flex: 0 0 30%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}
.info-block .title {
  font-size: 2rem;
  font-weight: bold;
}
.info-block .subtitle {
  font-size: 1.25rem;
  color: var(--primary-color);
}
.info-block .date {
  font-size: 0.9rem;
  color: #999;
}
.info-block .description {
  line-height: 1.6;
}

/* ====================== */
/* === PRODUCT CARD === */
/* ====================== */
.product-block {
  margin: 30px 0 1px;
  padding: 10px 20px;
  text-align: left;

  background: #080e0c;
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--primary-color);
  border-left: 3px solid var(--primary-color);
  border-bottom: 3px solid #03241a;
  border-right: 3px solid #03241a;
  box-shadow: 2px 2px 0px #030100;
}

.product-title {
  font-size: 2em;
  font-weight: bold;
  color: var(--primary-color);
}
.product-images {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.product-images img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border-color);
}
.product-dropdown summary {
  cursor: pointer;
  font-weight: bold;
  color: var(--primary-color);
}

.size-guide { max-width: 100%; }
.size-guide__media {
  width: 100%;
  max-width: 100%;
  overflow: hidden;        /* stop bleed */
  box-sizing: border-box;
}
.size-guide__media img {
  display: block;
  width: 100%;             /* scales to card width */
  max-width: 100%;
  height: auto;            /* preserve aspect ratio */
}
/* Mobile archive wrapper */
@media (max-width: 768px) {
  .archive-wrapper {
    flex-direction: column; /* stack gallery on top of info */
    width: 90%;
    align-items: center;
  }

  .images-block {
    flex: none;
    display: flex;
    flex-direction: row; /* side by side instead of column */
    overflow-x: auto;    /* horizontal scroll */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    width: 100%;
  }

  .images-block img {
    flex: 0 0 95%;       /* each image takes full width of screen */
    max-width: 95%;
    height: auto;
    object-fit: contain;
    scroll-snap-align: center;
  }

  .info-block {
    flex: none;
    margin-top: 0 px; /* spacing below gallery */
    width: 80%;
    
  }
}
