/* 
   Optimizări CSS pentru Angels Website
   Aceste stiluri corectează problemele de layout și responsivitate
*/

/* Reset general și optimizări de bază */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

/* Optimizare header */
header {
  width: 100% !important;
  max-width: 100vw !important;
  position: sticky;
  top: 0;
  z-index: 100;
  box-sizing: border-box;
}

/* Optimizare conținut principal */
main {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden;
  position: relative;
  box-sizing: border-box;
  padding: 20px;
}

/* Optimizare containere */
div, section, article {
  max-width: 100%;
  box-sizing: border-box;
}

/* Optimizare imagini */
img {
  max-width: 100%;
  height: auto;
}

/* Optimizare footer */
footer {
  width: 100% !important;
  max-width: 100vw !important;
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  box-sizing: border-box;
}

/* Optimizare widget WhatsApp */
.whatsapp-widget, 
[class*="whatsapp"], 
[id*="whatsapp"] {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  z-index: 9999 !important;
}

/* Optimizare text pentru mobil */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }
  
  p, span, a, button, input, textarea {
    font-size: 14px !important;
  }
  
  h1 {
    font-size: 24px !important;
  }
  
  h2 {
    font-size: 20px !important;
  }
  
  h3 {
    font-size: 18px !important;
  }
  
  /* Ajustări pentru layout pe mobil */
  .container, .row, .col {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  
  /* Ajustări pentru butoane pe mobil */
  button, .button, [role="button"] {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 10px !important;
  }
}

/* Animație pentru logo */
.logo img, header img {
  transition: all 0.3s ease;
}

.logo:hover img, header img:hover {
  transform: scale(1.05);
}

/* Corectare overflow pentru containere de produse */
.product-container, 
.product-grid, 
.product-list,
[class*="product"] {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 100%;
}

.product-item, 
.product-card,
[class*="product-item"],
[class*="product-card"] {
  flex: 1 1 300px;
  max-width: 100%;
  margin-bottom: 20px;
}

/* Optimizare formular de personalizare */
form, 
.form, 
.form-container,
[class*="form"] {
  width: 100%;
  max-width: 100%;
}

input, 
textarea, 
select,
.input,
.textarea,
.select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
