/* ===================== */
/* Base                  */
/* ===================== */
:root {
    --header-height-m: 60px; /* înălțimea estimată a header-ului pe mobil */
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    background: #fff;
}

/* Sticky footer layout */
html, body {
    height: 100%;
}
body {
    min-height: 100dvh;           /* acoperă toată înălțimea vizibilă */
    display: flex;
    flex-direction: column;       /* face ca footer-ul să poată sta jos */
}

/* ===================== */
/* Header                */
/* ===================== */
header {
    background: #fff;
    padding: 10px 20px;
    border-bottom: 1px solid #ddd;
    position: relative;
    z-index: 1000;
    /* pe desktop header-ul e static */
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;  /* Logo stânga, search + iconiță ocupă restul */
    max-width: 1200px;
    margin: auto;
    gap: 10px;                    /* spațiu între elemente */
}

/* Logo */
.logo {
    width: 50px;
    height: auto;
}

/* Search bar în centru */
.search-wrapper {
    flex: 1;                      /* ocupă tot spațiul liber între logo și iconiță */
    display: flex;
    justify-content: center;
}

#search {
    width: 100%;
    max-width: 400px;             /* limitează dimensiunea */
    padding: 10px;
    border-radius: 25px;
    border: 2px solid #000;
    font-size: 16px;
}

/* Favorites în dreapta */
.favorites-icon {
    margin-left: 10px;            /* distanță minimă față de search */
    font-size: 24px;
    color: black;
    background: #f5f5f5;
    border-radius: 50%;
    padding: 6px 10px;
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}
.favorites-icon:hover {
    color: red;
}

.home-icon {
    margin-left: 10px;            /* distanță minimă față de search */
    font-size: 24px;
    color: black;
    background: #f5f5f5;
    border-radius: 50%;
    padding: 6px 10px;
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}


/* ===================== */
/* Main (unică definiție)*/
/* ===================== */
main {
    flex: 1 0 auto;                                   /* împinge footer-ul jos */
    margin: 20px 0 40px 0;                            /* spațiu între header și footer pe desktop */
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 15px;
    padding: 0;
}

@media (min-width: 992px) {
    main {
        grid-template-columns: repeat(4, minmax(180px, 1fr)); /* produse mai înguste pe desktop */
        max-width: 1100px;                                    /* lățime mai mică pentru secțiune */
        margin: 20px auto 40px auto;
        padding: 0 15px;
    }
}

/* ===================== */
/* Cards                 */
/* ===================== */
.product-link {
    text-decoration: none;
    color: inherit;
}
.product-link:hover {
    text-decoration: none;
}

.product {
    background: white;
    border-radius: 10px;
    padding-bottom: 2px;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}
.product:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.product:active {
    transform: scale(0.97);
}

.product img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 5px;
}
.product h3 {
    font-size: 14px;
    margin: 3px 0;
}

.product_details {
    margin-left: 10px;
    margin-bottom: 15px;
}

.rating {
    font-size: 13px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 5px;
}
.stars {
    color: gold;
}

.price {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}
.discount {
    background: #4CAF50;
    color: white;
    font-size: 12px;
    padding: 2px 5px;
    border-radius: 3px;
}
.amount {
    font-weight: bold;
    font-size: 16px;
}

/* ===================== */
/* About section         */
/* ===================== */
.about {
    background-color: #333;
    text-align: center;
    padding: 10px;
	margin-top: 100px;
}
.about-toggle {
    background: none;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    color: white;
}
.about-content {
    display: none;
    margin-top: 10px;
}
.about-content.open {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}
.about-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.about-content li {
    margin: 8px 0;
}
.about-content a {
    text-decoration: none;
    color: white;
    font-size: 15px;
}
.about-content a:hover {
    color: #ff6666;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===================== */
/* Footer (sticky)       */
/* ===================== */
footer {
    background-color: #333;
    color: white;
    padding: 15px 10px;
    text-align: center;
    border-top: 1px solid #ddd;
    font-family: Arial, sans-serif;
    margin-top: auto;     /* cheie: lipește footer-ul jos */
    flex-shrink: 0;       /* previne micșorarea */
}
.footer_link { color: white; }
.footer-links { margin-top: 6px; }
.footer-links a {
    font-size: 12px;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: #ffcc00;
    text-decoration: underline;
}

/* ===================== */
/* Mobile (≤768px)       */
/* ===================== */
@media (max-width: 768px) {
    /* Header devine fix + anim. ascundere/apariție */
    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        box-shadow: 0 2px 5px rgba(0,0,0,0.15);
        padding: 8px 0;
        transition: top 0.3s ease;
    }
    .header-hidden {
        top: calc(-1 * var(--header-height-m)); /* ascunde header-ul */
    }

    /* Offset pentru conținut, ca să nu fie acoperit de header-ul fix 
    main {
        margin-top: calc(var(--header-height-m) + 10px);
        margin-bottom: 40px;
    }*/

    .logo {
        width: 40px;
        margin-left: 15px;
    }
    #search {
        width: 70%;
        font-size: 16px;
        padding: 8px;
    }
    .favorites-icon {
        font-size: 20px;
        margin-right: 15px;
    }
	.home-icon {
        font-size: 20px;
        margin-right: 15px;
    }
    .header-container {
        gap: 5px;
    }
	
	/* --- Highlights Section --- */
	.highlights-section {
	  margin-top: 40px;
	}
}



.banner-section {
  position: relative;
  width: 100%;
  overflow: hidden; /* prevenim depășirea pe mobil */
}

.responsive-banner {
  width: 100%;   /* se adaptează la lățimea containerului */
  height: auto;  /* păstrează proporțiile */
  display: block;
}



.shop-header {
  display: flex;
  justify-content: space-around;
  width: 100%;
  padding-top: 20px;
  padding-left: 10px;
  padding-right: 10px;
  padding-bottom: 0px;
  box-sizing: border-box;
}

.shop-header-container {
  display: flex;
  align-items: center;
  flex-wrap: nowrap; /* păstrează totul pe orizontal */
  gap: 20px;
}

.shop-icon img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.shop-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shop-name-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.shop-name {
  font-size: 1.5rem;
  margin: 0;
}

.star-seller-badge {
  background: gold;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: bold;
}

.shop-location {
  font-size: 0.9rem;
  color: #555;
}

/* Highlights */
.highlights {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 5px;
}

.highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.highlight .primary {
  font-weight: bold;
  font-size: 1.2rem;
}

.highlight .secondary {
  font-size: 0.85rem;
  color: #555;
}


.divider {
  width: 1px;
  height: 30px;
  background: #ccc;
}

/* Responsive: mobil */
@media (max-width: 768px) {
  .shop-header-container {
    flex-direction: row;
    overflow-x: auto; /* permite scroll orizontal dacă ecranul e mic */
    padding-bottom: 10px;
  }

  .shop-header-container::-webkit-scrollbar {
    display: none; /* ascunde scrollbar pe mobil */
  }

  .divider {
    height: 20px;
  }

  .shop-name {
    font-size: 1.2rem;
  }

  .highlight .primary {
    font-size: 1rem;
  }
  
}



/* --- Highlights Section --- */
.highlights-section {
  padding: 20px 10px;
  text-align: center;
}


.highlights {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap; /* păstrează orizontal pe mobil */
  gap: 15px;
  overflow-x: auto; /* permite scroll dacă ecranul e îngust */
  padding: 10px 0;
  border: 1px solid #ccc;
  border-radius: 10px;
}

@media (max-width: 320px) {
	.highlights {
	  gap: 10px;
	}	
}

@media (min-width: 425px) {
	.highlights {
	  display: flex;
	  justify-content: space-evenly;
	  align-items: center;
	}	
}

@media (min-width: 768px) {

	
	#reviewsbar-id {
	  display: flex;
	  justify-content: center;
	}
	
	.highlight__container {
	  padding-left: 50px;
	  padding-right: 50px;
	}
}


.highlight__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px; /* păstrează lizibilitate pe mobil */
  text-align: center;
  border: red;
}

.highlight__primary-content {
  font-size: 1.1rem;
  font-weight: bold;
}

.highlight__secondary-content {
  font-size: 1rem;
  color: #555;
}

.divider {
  width: 1px;
  background: #ccc;
  height: 40px;
}

/* Rating styling */
.rating-and-reviews-count {
  display: flex;
  align-items: center;
  gap: 5px;
}

.rating-and-reviews-count .star {
  color: gold;
  font-size: 1.2rem;
}

/* --- Scroll styling (ascunde scrollbar) --- */
.highlights::-webkit-scrollbar {
  display: none;
}

.highlights {
  -ms-overflow-style: none;  /* IE și Edge */
  scrollbar-width: none;  /* Firefox */
}

/* --- Animatie fade-in (opțional) --- */
.highlight__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
  text-align: center;
  /* opacity: 0;  <- șterge */
  /* transform: translateY(20px);  <- șterge */
  /* transition: ... <- șterge dacă nu mai folosești animație */
}


.highlight__container.visible {
  opacity: 1;
  transform: translateY(0);
}

#reviews-seller {
	color: #2E64EF;
}

.profileBtn-phone {
    padding: 10px 20px;
    margin: 10px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.profileBtn-pc {
    padding: 10px 20px;
    margin: 10px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

/* Stil buton contact */
.contactBtn {
    background-color: #f5f5f5;
    color: #000;
}

/* Stil buton follow */
.followBtn {
    background-color: #000;
    color: #fff;
}

/* Stil pentru follow când este activ */
.followBtn.following {
    background-color: #f5f5f5;
    color: #000;
}

@media (min-width: 768px) {
    .profileBtn-phone {
        display: none;
    }
	
	.shop-header {
	  display: flex;
	  justify-content: space-around;
	}
}

@media (max-width: 767px) {
    .profileBtn-pc {
        display: none;
    }
}



.following-class {
    margin-left: 100px;
	margin-right: 100px;
	margin-bottom: 50px;
	font-family: 'Montserrat', sans-serif;
}

.following-section {
    display: flex;
    flex-wrap: nowrap; /* toate profilele pe un singur rând */
    gap: 25px;

    overflow-x: auto; /* scroll orizontal */
    padding: 10px;
/*    border: 1px solid #ddd;*/
    border-radius: 10px;
/*    background-color: #f9f9f9;*/

    /* Ascunde scroll-ul pentru Firefox */
    scrollbar-width: none; 
    -ms-overflow-style: none; /* IE și Edge */
}

/* Ascunde scroll-ul pentru Chrome, Safari și Opera */
.following-section::-webkit-scrollbar {
    display: none;
}

.follower {
    display: flex;
    flex-direction: column; /* imagine sus, text jos */
    align-items: center;    /* centrare pe orizontală */
    justify-content: center;
    cursor: pointer;
    flex: 0 0 auto; /* păstrează dimensiunea fixă, nu se micșorează */
}

.follower img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    margin-bottom: 5px;
}

.follower span {
    font-weight: bold;
    font-size: 12px;
    text-align: center;	
	font-family: 'Montserrat', sans-serif;
}

/* Responsive pentru telefon */
@media (max-width: 768px) {
    .following-class {
        margin: 20px;
    }

    .following-section {
        gap: 15px;
        padding: 5px;
    }

    .follower img {
        width: 60px;
        height: 60px;
    }

    .follower span {
        font-size: 10px;
    }
}







