/* === GLOBAL RESET === */
* {
  box-sizing: border-box;
  max-width: 100%;
}

html, body {
  height: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  font-family: 'Consolas', monospace;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-top: 140px;
}

/* === HEADER === */
#header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  padding: 1rem 2rem 1rem 1.5rem;
  background: white;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  border-bottom: 1px solid #ccc;
}

#header img {
  max-height: 140px;
  margin-right: 16px;
  box-sizing: content-box;
}

/* === NAVIGATION ICONS === */
#top-nav-icons {
  position: fixed;
  top: 1rem;
  right: 1.5rem;
  display: flex;
  gap: 2rem;
  font-family: "Times New Roman", serif;
  z-index: 1001;
  justify-content: flex-end;
  align-items: center;
}

.top-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1rem;
  color: #005A1E;
  line-height: 1.2;
  text-decoration: none !important;
}

.top-nav-link:hover {
  text-decoration: underline;
}

.svg-icon {
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.svg-icon svg,
.svg-icon img {
  width: 26px;
  height: 26px;
  display: block;
}

/* === RETURN BUTTON === */
.return-button {
  display: none;
  font-family: "Times New Roman", serif;
  color: #0000cc;
  font-size: 1rem;
  text-decoration: underline;
  margin: 1rem 0;
  display: inline-block;
}

/* === FOOTER === */
#site-footer {
  flex-shrink: 0;
  width: 100%;
  text-align: center;
  padding: 1rem;
  background-color: transparent;
  color: #0000cc;
}

/* === ECWID STYLING OVERRIDES === */
#ecwid-wrapper *:not(.form-control__button-text) {
  font-family: "Times New Roman", Times, serif !important;
  color: #0000cc !important;
}

#ecwid-wrapper a {
  text-decoration: underline !important;
}

button[class*="form-control__button"] {
  background-color: rgb(0, 90, 30) !important;
  color: white !important;
  border: 2px solid white !important;
  text-transform: uppercase !important;
  font-family: "Times New Roman", serif !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 12px 20px !important;
}

button[class*="form-control__button"] span.form-control__button-text {
  color: white !important;
  font-weight: bold;
}

button[class*="form-control__button"]:hover {
  background-color: rgb(0, 255, 242) !important;
  color: black !important;
}

button[class*="form-control__button"]:hover span.form-control__button-text {
  color: black !important;
}

.details-product-share__title,
.details-product-share__buttons,
.ec-footer {
  display: none !important;
}

h1.page-title__name {
  white-space: normal !important;
  word-break: break-word !important;
  overflow: visible !important;
  text-overflow: unset !important;
  max-width: 100% !important;
  width: 100% !important;
  font-size: 1.6rem !important;
  display: block !important;
  padding: 1.5rem 0 !important;
  margin: 1rem 0 !important;
}

/* === RESPONSIVE MOBILE STYLES === */
@media screen and (max-width: 600px) {
  #header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    position: fixed !important;
    padding: 1rem !important;
    background: white !important;
    width: 100% !important;
    z-index: 999 !important;
    border-bottom: 1px solid #ccc;
  }

  #header img,
  #site-logo {
    max-width: 80% !important;
    height: auto !important;
    margin-bottom: 1rem !important;
  }

  #top-nav-icons {
    position: static !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 2rem !important;
    margin-bottom: 0.5rem !important;
    width: 100% !important;
    max-width: 360px !important;
  }

  .top-nav-link {
    width: 80px !important;
    font-size: 1rem;
    color: #005A1E;
    text-align: center;
    line-height: 1.2;
  }

  .svg-icon svg,
  .svg-icon img {
    width: 28px !important;
    height: 28px !important;
  }

  .svg-icon {
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  main {
    margin-top: 240px !important;
    
  }
  #top-nav-icons .top-nav-link {
    min-width: 90px;
  }
}


@media screen and (max-width: 600px) {
  #top-nav-icons {
    position: static !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1.2rem !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
  }

  .top-nav-link {
    flex: 0 1 auto !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.9rem !important;
    max-width: 80px !important;
  }

  .svg-icon svg,
  .svg-icon img {
    width: 26px !important;
    height: 26px !important;
  }
}
