/* ========== RESET & BASICS ========== */
* {
  box-sizing: border-box; /* Crucial for responsive padding/width */
}

body {
  margin: 0;
  padding: 0;
  padding-top: 70px; /* Space for fixed header */
  font-family: "Segoe UI", sans-serif;
  background-color: #fff9fb;
  /* background-image: url('images/cosmetics-background.jpg'); */
   background-image: url('../images/cosmetics-background.jpg'); 
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #4a2c2a;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* ========== TOP NAVIGATION ========== */
.top-header {  
  position: absolute; /* Fix header to top */
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: #ffb6c1;  
  border-bottom: 1px solid #e6e6e6;  
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10000;  
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #ff488e;
  white-space: nowrap;
}

.nav-right {
  display: flex;
  align-items: center;
}

.nav-right a {
  margin-left: 20px;
  text-decoration: none;
  color: #444;
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap; /* Keep text on one line */
}

.nav-right a:hover {
  color: #ff488e;
}

/* ========== TRANSLATE BUTTON ========== */
/* ========== TRANSLATE BUTTON ========== */
#translate-container {
  position: fixed;
  /* On desktop, keep it below the header */
  top: 110px; 
  left: 10px; 
  /* FIX: Make z-index higher than the header (10000) so it's visible */
  z-index: 10001; 
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#translate-btn {
  background-color: #ff69b4;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0 4px 8px rgba(255, 105, 180, 0.5);
  transition: 0.3s;
}

#language-select {
  margin-top: 5px;
  padding: 5px;
  border-radius: 8px;
  border: 1.5px solid #ff85c1;
  background-color: #fff0f5;
  font-size: 13px;
  max-width: 150px;
}

.hidden { display: none; }

/* ========== MAIN TITLE ========== */
h1 {
  /* Removed absolute positioning */
  margin: 40px auto 20px auto;
  width: 90%;
  max-width: 800px;
  color: #d63384;
  background-color: #ffe6f2;
  padding: 15px 20px;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(255, 105, 180, 0.5);
  font-size: clamp(20px, 4vw, 32px); /* Responsive font size */
  text-align: center;
  animation: slideIn 1.5s ease-out, bounce 2s infinite ease-in-out 1.5s;
}

@keyframes slideIn {
  0% { transform: translateY(-50px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ========== MAIN LAYOUT CONTAINER ========== */
.All {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 60vh;
  position: relative;
}

/* ========== HERO SECTION ========== */
.hero {
  width: 90%;
  max-width: 900px;
  margin: 0 auto 20px auto;
  padding: 30px; /* Removed the 300px padding */
  text-align: center;
  background: linear-gradient(135deg, #ffd6e7 0%, #ffe8dc 100%);
  border: 4px solid #f3a7c0;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(255, 182, 193, 0.5);
  position: relative;
  z-index: 10;
}

.hero h2 {
  font-size: 2em;
  color: #d63384;
  margin-bottom: 20px;
}

.cosmetic-image {
  width: 150px;
  max-width: 100%;
  border-radius: 12px;
  margin: 15px 0;
  box-shadow: 0 0 10px rgba(255, 192, 203, 0.8);
}

/* ========== RIGHT SIDE PHOTOS (SOCIAL) ========== */
/* Now part of the flow, not absolute */
.right-photos {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin: 20px auto;
}

.right-photos img {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  object-fit: contain;
  transition: transform 0.2s;
}
.right-photos img:hover { transform: scale(1.1); }


/* ========== FORMS ========== */
select {
  padding: 12px;
  font-size: 16px;
  border-radius: 8px;
  border: 2px solid #f5a3b9;
  background-color: #fff0f5;
  color: #a63c74;
  width: 100%; /* Full width on mobile */
  max-width: 400px; 
}

.form-container {
  background: linear-gradient(145deg, #ffeaf1 0%, #fff7f4 100%);
  padding: 25px;
  width: 90%;
  max-width: 650px;
  margin: 0 auto 20px auto; /* clean margin */
  border-radius: 15px;
  border: 3px solid #f5a3b9;
  box-shadow: 0 0 5px rgba(255, 170, 200, 0.4);
}

form label {
  display: block;
  margin: 10px 0 5px;
  font-weight: bold;
  color: #a63c74;
}

form input, form select, form textarea {
  width: 100%;
  padding: 10px;
  font-size: 16px; /* 16px prevents zoom on iPhone */
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1.5px solid #f5a3b9;
  background-color: #fff9fb;
  color: #4a2c2a;
}

form button {
  background-color: #ff66a3;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  width: 100%;
}

/* ========== REVIEWS ========== */
.review-item {
  background: #fff9fa;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 15px;
  border: 2px solid #f5a3b9;
}
.review-item img {
  max-width: 100%;
  border-radius: 10px;
}

/* Photo Preview */
.photo-preview {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px;
  border: 2px dashed #f5a3b9;
  border-radius: 12px;
  min-height: 100px;
}
.photo-preview img.preview-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
}

/* ========== FOOTER ========== */
.footer {
  background: #ffb6c1;
  padding: 30px 20px;
  text-align: center;
  margin-top: 50px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap; /* Allows links to stack on mobile */
  justify-content: center;
  gap: 15px;
  max-width: 800px;
  margin: auto;
}

.footer-links a {
  text-decoration: none;
  color: #444;
  background: rgba(255,255,255,0.3);
  padding: 5px 10px;
  border-radius: 5px;
}

/* ========== DESKTOP LAYOUT (Media Query) ========== */
@media (min-width: 1024px) {
  /* On large screens, put social icons on the right */
  .All {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
  }
  
  .hero {
    margin: 50px auto;
  }
  
  .right-photos {
    flex-direction: column;
    position: fixed; /* Stick to side only on big screens */
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
  }
  
  h1 {
    font-size: 36px;
  }
}

/* ========== MOBILE TWEAKS ========== */
@media (max-width: 600px) {
  .top-header {
    flex-direction: column;
    height: auto;
    padding: 10px 10px 15px 10px;
  }
  
  body {
    padding-top: 110px; /* Push content down so header doesn't cover it */
  }
  
  .nav-right {
    margin-top: 10px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap; /* Allow links to wrap if screen is very small */
  }
  
  .nav-right a {
    margin: 5px 10px;
    font-size: 14px;
  }
  
  /* FIX: Move translate button to Top-Right on mobile so it's easy to find */
  #translate-container {
    top: 110px;   /* Place inside the header area */
    left: auto;  /* unset left */
    right: 15px; /* Stick to right side */
  }
  
  /* Make button slightly smaller for mobile */
  #translate-btn {
    padding: 6px 12px;
    font-size: 12px;
    background-color: #ff69b4; /* White background makes it pop against pink header */
    color: #fff;
    border: 2px solid #ff69b4;
  }
}


/* ========== INSTAGRAM CONTACT LINK ========== */
.insta-section {
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px dashed #f5a3b9;
  display: flex;
  align-items: center; /* Aligns text and icon vertically */
  gap: 10px;
}

.insta-link {
  display: inline-block;
  cursor: pointer;
  transition: transform 0.2s ease;
  text-decoration: none;
  border: none;
  background: none;
  padding: 0;
}

.insta-link:hover {
  transform: scale(1.1); /* Slight zoom on hover */
  background: none;      /* No background color */
  box-shadow: none;      /* No shadow box */
}

/* Style for the image logo */
.insta-icon-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  vertical-align: middle;
}

