/* ==========================================
   1. RESETARE GENERALĂ ȘI VARIABILE PSIHOLOGICE
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-primary: #fffdfb; /* Fundal curat, cald și luminos */
  --bg-secondary: #fbf7f4; /* Crem/Nude fin, feminin, pentru zonele de text */
  --text-main: #3d312a; /* Ciocolatiu închis, mult mai cald și premium decât negrul pur */
  --text-muted: #8c776c; /* Nuanță pământie elegantă pentru texte secundare */
  --accent-gold: #d4a373; /* Detalii subtile de auriu */
  --cta-color: #e56b6f; /* Rose Gold/Coral cald - stimulează vizual impulsul de click */
  --cta-hover: #b56576; /* Rose Gold saturat la trecerea cu mouse-ul */
  --border-light: #f2ebd9; /* Borduri fine care delimitează discret cardurile */
}

body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================
   2. HEADER PREMIUM ȘI SPAȚIU BANNER
   ========================================== */
.site-header {
  background-color: #ffffff;
  box-shadow: 0 2px 15px rgba(229, 107, 111, 0.04);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-light);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.brand-info h1 a,
.brand-info h2 a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 2.2rem;
  font-family: "Georgia", serif;
  font-weight: bold;
}

.brand-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 5px;
}

.advertiser-banner {
  max-width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.banner-img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* ==========================================
   3. MENIU CATEGORII (BUTOANE ROTUNJITE)
   ========================================== */
.categories-section {
  margin: 2.5rem 0 1.5rem 0;
  text-align: center;
}

.categories-container {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.category-btn {
  background-color: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--text-muted);
  padding: 0.6rem 1.4rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.category-btn:hover,
.category-btn.active {
  background-color: var(--text-main);
  color: #ffffff;
  border-color: var(--text-main);
}

/* ==========================================
   4. GRILA DE PRODUSE (INDEX ȘI SIMILARE)
   ========================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 2rem;
}

.product-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(229, 107, 111, 0.08);
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: contain;
  background: #ffffff;
  padding: 15px;
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background-color: var(--bg-secondary);
}

.product-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
  height: 45px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
}

.product-price {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--cta-color);
  margin-bottom: 15px;
  margin-top: auto;
}

/* ==========================================
   5. BUTOANE DE CONVERSIE (CALL TO ACTION)
   ========================================== */
.buy-btn {
  display: block;
  width: 100%;
  background-color: var(--cta-color);
  color: #ffffff !important;
  text-align: center;
  padding: 0.85rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(229, 107, 111, 0.2);
  transition: all 0.2s ease;
}

.buy-btn:hover {
  background-color: var(--cta-hover);
  box-shadow: 0 6px 14px rgba(229, 107, 111, 0.3);
}

/* FORȚARE DESIGN BUTON „ÎNCARCĂ MAI MULTE” */
.load-more-container {
  text-align: center;
  margin: 3.5rem 0;
  width: 100%;
}

.load-more-btn,
#load-more-btn {
  background-color: transparent !important;
  color: var(--text-main) !important;
  border: 2px solid var(--text-main) !important;
  padding: 0.8rem 2.5rem !important;
  font-weight: bold !important;
  font-size: 1rem !important;
  border-radius: 30px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  display: inline-block !important;
  outline: none !important;
  box-shadow: none !important;
}

.load-more-btn:hover,
#load-more-btn:hover {
  background-color: var(--text-main) !important;
  color: #ffffff !important;
}

/* ==========================================
   6. PAGINA DETALII PRODUS (PAGINA INDIVIDUALĂ)
   ========================================== */
.back-btn {
  display: inline-block;
  margin: 2rem 0;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
}

.product-detail-container {
  display: flex;
  gap: 40px;
  background: #ffffff;
  padding: 30px;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  margin-bottom: 3rem;
}

.detail-image {
  max-width: 450px;
  width: 100%;
  object-fit: contain;
  background: white;
  border-radius: 8px;
}

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.detail-title {
  font-family: "Georgia", serif;
  font-size: 2rem;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.detail-price {
  font-size: 1.8rem;
  color: var(--cta-color);
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.detail-description {
  color: #555;
  line-height: 1.8;
  margin-bottom: 2rem;
  font-size: 1rem;
}

/* ==========================================
   7. SOCIAL SHARE & SOCIAL MEDIA
   ========================================== */
.share-section {
  margin: 3rem 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.share-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.share-btn {
  padding: 0.6rem 1.2rem;
  color: white !important;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: bold;
}
.share-btn.fb {
  background-color: #1877f2;
}
.share-btn.wa {
  background-color: #25d366;
}
.share-btn.pin {
  background-color: #bd081c;
}
.share-btn.x-com {
  background-color: #000;
}

/* ==========================================
   8. INTERFAȚĂ SMARTPHONE & BARĂ FIXĂ JOS (MOBILE)
   ========================================== */
.sticky-mobile-btn {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--cta-color);
  color: #fff !important;
  padding: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 -4px 15px rgba(229, 107, 111, 0.2);
  z-index: 9999;
  letter-spacing: 1px;
  display: none; /* Se va activa doar prin Media Query pe rezoluții mobile */
  transition: background 0.2s;
  font-size: 1.1rem;
}

.sticky-mobile-btn:hover {
  background-color: var(--cta-hover);
}

/* ==========================================
   9. FOOTER STRUCTURAT PE 4 COLOANE
   ========================================== */
.site-footer {
  background-color: var(--bg-secondary);
  color: var(--text-main);
  padding: 4rem 20px 2rem 20px;
  margin-top: 6rem;
  border-top: 1px solid var(--border-light);
}

.footer-columns {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-col h4 {
  font-family: "Georgia", serif;
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
}

.footer-col p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.footer-links li {
  margin-bottom: 0.6rem !important;
  list-style: none !important;
}

.footer-links li a {
  font-size: 0.9rem !important;
  color: var(--text-muted) !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
  display: inline-block !important;
}

.footer-links li a:hover {
  color: var(--cta-color) !important;
}

.footer-bottom {
  text-align: center;
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Teme de sistem (Încărcare / Eroare) */
.loading,
.error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* ==========================================
   10. ZONA CĂUTARE - ROTUNJIRE ȘI LUNGIME FORȚATĂ
   ========================================== */
.search-container {
  margin-top: 15px;
  width: 100%;
  max-width: 460px;
}

.search-input-round,
#search-input {
  width: 100% !important;
  padding: 0.65rem 1.4rem !important;
  border: 1px solid var(--text-muted) !important;
  border-radius: 25px !important; /* Forțează rotunjirea identică cu a butoanelor */
  background-color: #ffffff !important;
  color: var(--text-main) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  outline: none !important;
  transition: all 0.25s ease !important;
}

.search-input-round:focus,
#search-input:focus {
  border-color: var(--text-main) !important;
  box-shadow: 0 0 8px rgba(61, 49, 42, 0.1) !important;
}

/* ==========================================
   11. ADAPTARE RESPONSIVE (MEDIA QUERIES)
   ========================================== */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Padding suplimentar la body pentru a preveni acoperirea footer-ului de bara fixă */
  body {
    padding-bottom: 60px;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .header-container {
    flex-direction: column;
    text-align: center;
  }

  /* Afișează bara fixă modernă în partea de jos a ecranului */
  .sticky-mobile-btn {
    display: block;
  }

  .product-detail-container {
    flex-direction: column;
  }
  .detail-image {
    max-width: 100%;
  }
  .search-container {
    max-width: 100%;
  }
}

@media (max-width: 520px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .footer-columns {
    grid-template-columns: 1fr;
  }
}
