/* style.css */

@font-face {
  font-family: 'Roboto-Medium';
  src: url('/fonts/Roboto-Medium.woff2') format('woff2'),
       url('/fonts/Roboto-Medium.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'Roboto-Light';
  src: url('/fonts/Roboto-Light.woff2') format('woff2'),
       url('/fonts/Roboto-Light.woff') format('woff');
  font-display: swap;
}

/* Global reset to prevent padding from causing horizontal scrollbars */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  width: 100%;
  max-width: 2000px; /* Prevents layout from stretching too wide on large PC monitors */
  margin: 0 auto;    /* Centers the layout on desktop screens */
  padding: clamp(12px, 2.5vw, 24px);
  font-family: 'Roboto-Light', sans-serif;
  background: #f24e01;
  color: #fff;
  overflow-x: hidden;
}

p {
  margin: 2px 0 4px;
  line-height: 1.4;
}

a {
  color: inherit;
}

/* --- Banners & Flags --- */
.top-banner {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 20px;
  margin-top: 10px;
}

.top-banner1 {
  width: 100%;
  padding: 0;
  margin: 0 0 30px 0;
  overflow: hidden;
}

.lang-flags {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 12px;
}

.lang-flags img {
  width: 38px;
  height: 20px;
  object-fit: cover;
  border-radius: 4px;
}

.banner-images {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.banner-images1 {
  width: 100%;
  position: relative;
}

.hair-care-overlay-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #24484B;
  color: white;
  border: none;
  padding: 18px 36px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1000;
}

.banner-images1 img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

.top-banner img {
  width: auto;
  max-width: 100%;
  max-height: 160px;
}

/* --- Product Cards --- */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product {
  font-family: 'Roboto-Light', sans-serif;
  display: flex;
  gap: 24px;
  background: #ffffff;
  border: 2px solid #fff;
  padding: 20px;
  border-radius: 10px;
  color: #48261d;
  align-items: flex-end; /* Aligns both image and text block to the bottom */
}

.product-image {
  position: relative;
  flex-shrink: 0; /* Prevents image from squishing on medium screens */
  display: flex;
  justify-content: center;
}

.product-image img {
  width: 250px;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* Tooltip fixed so it stays within card bounds */
.hover-text {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 240px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 10;
}

.product-image:hover .hover-text {
  opacity: 1;
}

.product-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Pushes inner text content to the bottom */
  gap: 12px;
  flex: 1;
  text-align: left;
}

/* --- Headers & Typography --- */
.header-two-blocks {
  font-family: 'Roboto-Medium', sans-serif;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  width: 100%;
}

.header-two-blocks > *:first-child {
  text-align: left;
}

.header-two-blocks > *:last-child {
  text-align: right;
  white-space: nowrap;
}

.header-one-block h1,
.header-one-block h2,
.header-one-block h3 {
  font-family: 'Roboto-Medium', sans-serif;
  margin: 0;
}

.header-one-block h1 { font-size: clamp(1.5rem, 2.5vw, 2.2rem); }
.header-one-block h2 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
.header-one-block h3 { font-size: clamp(1.1rem, 1.5vw, 1.35rem); }

.description {
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  line-height: 1.55;
  margin: 0;
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 20px;
  background: #f24e01;
  margin-top: 40px;
  font-size: 0.95rem;
}

/* =========================================
   TABLET BREAKPOINT (769px to 1024px)
   ========================================= */
@media screen and (max-width: 1024px) {
  .product {
    gap: 18px;
    padding: 16px;
  }

  .product-image img {
    width: 200px;
  }

  .top-banner img {
    max-height: 130px;
  }
}

/* =========================================
   MOBILE BREAKPOINT (Up to 768px)
   ========================================= */
@media screen and (max-width: 768px) {
  .top-banner {
    padding: 10px 0;
  }

  .top-banner1 {
    margin-bottom: 20px;
  }

  .lang-flags {
    justify-content: center;
    margin-bottom: 14px;
  }

  .lang-flags img {
    width: 34px;
    height: 18px;
  }

  .banner-images {
    flex-direction: column;
    gap: 15px;
  }

  .top-banner img {
    max-height: 110px;
    max-width: 280px;
  }

  .product {
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    align-items: center;
  }

  .product-image {
    width: 100%;
  }

  .product-image img {
    width: 100%;
    max-width: 280px;
  }

  .product-info {
    width: 100%;
    gap: 10px;
  }

  .header-two-blocks {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }

  .header-two-blocks > *:last-child {
    text-align: left;
    white-space: normal;
  }

  .header-one-block h1,
  .header-one-block h2,
  .header-one-block h3 {
    text-align: center;
  }

  footer {
    padding: 16px 10px;
    margin-top: 28px;
    font-size: 0.875rem;
  }
}

/* =========================================
   SMALL PHONE BREAKPOINT (Up to 480px)
   ========================================= */
@media screen and (max-width: 480px) {
  .top-banner img,
  .top-banner1 img {
    max-height: 95px;
  }

  .product {
    padding: 12px;
  }

  .product-image img {
    max-width: 220px;
  }

  .lang-flags img {
    width: 30px;
    height: 16px;
  }
}
