body {
  margin: 0;
  background-color: var(--background-color-secondary);
  font-family: var(--font-family);

  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}

.form-header,
.detail-pagina-header {
  display: flex;
  justify-content: space-between;
}

.nav-icons {
  margin-top: 0.5rem;
}

.logo img {
  height: 4rem;
  margin-left: 1rem;
}

main {
  display: flex;
  flex-direction: column;
}

.back-button {
  margin: 1rem;
  gap: 0.5rem;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--textcolor);
}

.account-form input,
button {
  font-family: var(--font-family);
}

.account-form input {
  width: 100%;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  padding-left: 0.75rem;
  margin-top: 5px;
  font-size: 1 rem;
  border: 1px solid #d1d5db;
  border-radius: 10px;
}

.form-section {
  flex: 1;
  background-color: var(--background-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  margin: 2rem;
  padding-top: 0;
  border-radius: 10px;

  @media(min-width: 800px) {
    width: 70vh;
    align-self: center;
    border-radius: 10px;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
}

.form-section form {
  width: 100%;
}

.profile-pic-container {
  position: relative;
  width: 8rem;
  height: 8rem;
}

.profile-pic {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
  background-color: var(--background-color);
}


.edit-icon {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background-color: var(--background-color, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  border-style: none;
}

.edit-icon img {
  width: 2.25rem;
  height: 2.25rem;
}

.save-button {
  padding: 0.8rem 2rem;
  font-size: 1rem;
  color: #fff;
  background-color: #000;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  margin-top: 1rem;
}

.save-button:hover {
  background-color: #333;
}

.save-button:active {
  transform: scale(0.98);
}

.footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  margin: 0;
  background-color: var(--background-color);
  font-size: 0.875rem;
  color: var(--textcolor);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--textcolor);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--textcolor);
}

/* ------------------detail-pagina-------------- */


.title {
  line-height: 26px;
}
.product-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.addbutton{
  border-color: transparent;
  color: var(--textcolor);
}


.product-info>* {
  margin: 0;
}

.product-gallery {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}


.gallery-main {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  padding: 0 1rem;
}

.main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.gallery-main .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--background-color);
  border-radius: 50%;
  font-size: var(--h1-size);
  cursor: pointer;
}

.gallery-main .prev {
  left: 20px;
}

.gallery-main .next {
  right: 20px;
}


.gallery-thumbs {
  display: flex;
  gap: 10px;
  padding-left: 1rem;
}

.gallery-thumbs .thumb {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
}

.gallery-thumbs .thumb:hover {
  border-color: var(--accentcolor);
}
.shop-online, 
.shop-in-person {
  background: var(--background-color-secondary);
  padding: 1.5rem;
  border-radius: 1rem;
  max-width: 22rem;
  margin: 0 auto;
  font-family: var(--font-family);
}

.shop-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--background-color);
  border-radius: 0.8rem;
  margin-bottom: 1rem;
}

.shop-header h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.shop-header p {
  margin: 0;
  color: var(--secondary-text-color);
  font-size: var(--p-size);
}

.shop-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.shop-list li a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  background: var(--background-color);
  padding: 1rem;
  border-radius: 0.8rem;
  text-decoration: none;
  color: var(--secondary-text--color);
  font-weight: 600;
  border: 1px solid #eee;
}

.shop-list li a:hover {
  background: #f2f2f2;
}

.shop-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.shop-name {
  font-weight: 600;
}

.shop-distance {
  font-size: 0.85rem;
  font-weight: 400;
  text-decoration: underline;
}
.shop-external {
  opacity: 0.6;
  font-size: 1rem;
}


.product-details {
  background: var(--background-color-secondary);
  padding: 0rem 1.5rem;
  max-width: 22rem;
  font-family: var(--font-family);
  margin: 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.detail-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}


.detail-icon {
  width: 3rem;
  height: 3rem;
  align-self: start;
}

.detail-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.detail-content p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--textcolor);
}


.reviews-section {
  margin: 1rem auto 0;
  width: 100%;
  max-width: 90%;
  padding: 0 1rem;
}

.reviews-section img {
  width: 100%;
  height: auto;
}

.recommendations {
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.recommendations h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  font-family: var(--font-family);
}

.recommendations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.recommendation-card {
  background: var(--background-color);
  overflow: hidden;
  transition: transform 0.2s;
}

.recommendation-card:hover {
  transform: translateY(-2px);
}

.card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.add-to-list-button {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: white;
  border: none;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.add-to-list-button:hover {
  background: #f5f5f5;
}


.card-content {
  padding: 0.75rem;
}

.card-content h3 {
  margin: 0 0 0.75rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-text-color);
  line-height: 1.3;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.saved-info {
  display: flex;
  align-items: flex-end;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--secondary-text-color);
}

.avatar {
  width: 4rem;
  height: 3rem;
  border-radius: 50%;
  border: 2px solid white;
  margin-left: -0.4rem;
}


.map-section {
  padding: 2rem 1.5rem;
  text-align: start;
}

.map-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  font-family: var(--font-family);
}

.map-figure {
  margin: 0;
}

.map-figure img,
.map-figure iframe {
  border-radius: 15px;
  width: 100%;
  border: none;
}
/* --------------------------- */
/* FOOTER detail pagina                */
/* --------------------------- */


.footer-detail{
  background-image: url('assets/3.png');
  background-color: var(--footercolor);
}

.newsletter-form {
  background-color: #466EBF;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  font-size: 18px;

  @media (min-width: 600px) {
    flex-direction: row;
  }
}

.newsletter-form h2 {
  padding-left: 0.5em;
  margin: 0;
  display: none;
    @media (min-width: 1000px) {
    display: block;
      padding-left: 0.5em;
  margin: 0;
  }
}

.newsletter-form p {
  margin: 0;
}

.newsletter-form>div:first-child {
  display: flex;
  flex-direction: column;
  align-items: start;
  color: #F6F5F5;
}


.newsletter-form>div {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.newsletter-form input {
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 2em;
  font-size: 1rem;
  flex: 1;
}

.newsletter-form button {
  position: absolute;
  right: 0.5rem;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 50%;
  overflow: hidden;
}

.newsletter-form button img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.footer-logo-wrapper {
  display: none;

@media (min-width: 1000px) {
    display: block;
  }
}

.footer-detail ul {
  list-style: none;
  margin: 0;
  padding: 0;
}


.footer-detail a {
  color: black;
  text-decoration: none;
}

.footer-links {
  padding-left: 1em;
  padding-right: 1em;
  display: grid;
  justify-content: space-evenly;
  grid-template-columns: 1fr 1fr;

  @media (min-width: 600px) {
    display: flex;
    flex-direction: row;
  }
}

.legal ul {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  margin-bottom: 0%;
  padding-left: 1em;

  @media (min-width: 600px) {
    flex-direction: row;
  }
}

.legal
p {
  padding: .5rem;
}
