@import "reset.css";
@import "variables.css";

/* header con el logo de la página y los enlaces de navegación */
.header-lumiere {
  width: 100%;
}

.degrade {
  height: var(--header-gradient-height);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #E28496 0%, #F1748D 33%, #A9525A 87%, #BF5F67 100%);
}

.logo {
  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-size: clamp(2.25rem, 8vw, 3.45rem);
  color: #EEE8E1;
  letter-spacing: 0.5px;
}

.header-bar {
  background: #FFF0F2;
  min-height: var(--header-bar-min-height);
  padding: 12px var(--header-side-padding);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px) auto;
  align-items: center;
  gap: 20px;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #7F434E;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.main-nav {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  min-width: 0;
}

.main-nav a {
  text-decoration: none;
  color: #7F434E;
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
}

.main-nav a i {
  font-size: 14px;
  margin-left: 20px;
}

.mobile-menu-icons {
  display: none;
}

.search-box {
  grid-column: 2;
  grid-row: 1;
  justify-self: stretch;
  width: 100%;
  min-width: 0;
  height: 40px;
  border: 2px solid #814450;
  border-radius: 999px;
  background: #FFF0F2;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 10px;
}

.search-box i {
  color: #6B5453;
  font-size: 16px;
  flex-shrink: 0;
}

.search-box input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 16px;
  color: #814450;
}

.search-box input::placeholder {
  color: #854651;
  font-size: 14px;
}

.header-icons {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  min-width: 0;
}

.header-icons a {
  color: #7F434E;
  font-size: 22px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* hero */
.home-hero {
  width: 100%;
}

.hero-banner {
  position: relative;
  width: 100%;
  height: var(--hero-fold-height);
  min-height: 300px;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: center 42%;
}

.hero-button {
  position: absolute;
  left: clamp(14px, 4vw, 56px);
  bottom: clamp(16px, 6vh, 54px);
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-width: 128px;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 999px;
  background: #7F434E;
  color: #fff7f8;
  font-weight: 600;
  font-size: 0.95rem;
}

.hero-arrow {
  position: absolute;
  right: clamp(10px, 2vw, 24px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(34px, 4.8vw, 48px);
  height: clamp(34px, 4.8vw, 48px);
  border: 0;
  border-radius: 999px;
  background: rgba(127, 67, 78, 0.85);
  color: #fff6f7;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  line-height: 1;
  cursor: pointer;
}

/* brands */
.brand-bar {
  width: 100%;
  background: #D97D90;
  padding: 6px 0;
}

.brands-container {
  width: min(100%, 1400px);
  margin: 0 auto;
  padding: 0 4px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(4px, 1.2vw, 18px);
  align-items: center;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 4px;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.logo-rarebeauty {
  width: var(--brands-logo-rare);
}

.logo-sheglam {
  width: var(--brands-logo-sheglam);
}

.logo-theordinary {
  width: var(--brands-logo-ordinary);
}

.logo-milkmakeup {
  width: var(--brands-logo-milk);
}

/* categorias */
.categories {
  width: min(98%, 1400px);
  margin: var(--section-space-top) auto var(--section-space-bottom);
  padding: 0 8px;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  justify-items: center;
  align-items: start;
}

.category-card {
  width: 100%;
  max-width: 300px;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-self: stretch;
}

.category-box {
  width: 100%;
  height: clamp(220px, 33vw, 260px);
  background: #fff8f9;
  border: 2px solid #a86573;
  border-top-left-radius: 200px;
  border-top-right-radius: 200px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;

  padding: 14px 10px 12px;
}

.category-img-wrap {
  width: 100%;
  height: clamp(164px, 25vw, 212px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.category-img {
  display: block;
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.category-img-base {
  max-width: 150px;
  max-height: 230px;
}

.category-img-concealer {
  max-width: 150px;
  max-height: 240px;
  object-position: center bottom;
}

.category-img-blush {
  max-width: 170px;
  max-height: 220px;
  object-position: center bottom;
}

.category-img-lip {
  max-width: 200px;
  max-height: 180px;
  object-position: center 42%;
}

.category-name {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: #6f565a;
  text-align: center;
  line-height: 1;
}

/* best sellers */
.best-seller-section {
  width: 100%;
  margin: var(--section-space-top) 0 var(--section-space-bottom);
  background: #d78293;
  border-radius: clamp(20px, 4vw, 30px);
  padding: clamp(14px, 3vw, 24px);
  box-sizing: border-box;
}

.best-seller-title {
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: var(--best-seller-title-size);
  font-weight: 700;
  color: #5d1f2a;
  margin: 4px 3px clamp(14px, 2.5vw, 24px);
}

.best-seller-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 20px);
}

.best-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.best-card-image-box {
  position: relative;
  background: #ffffff;
  border-radius: 8px;
  min-height: var(--best-card-media-height);
  padding: 12px 12px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.best-card-fav {
  position: absolute;
  top: 15px;
  right: 20px;
  border: none;
  background: transparent;
  color: #7f434e;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.best-card-image {
  display: block;
  max-width: 100%;
  max-height: clamp(220px, 32vw, 300px);
  object-fit: contain;
}

.best-card-image-serum {
  max-height: 300px;
}

.best-card-image-foundation {
  max-height: 300px;
}

.best-card-stars {
  position: absolute;
  right: 25px;
  bottom: 20px;
  display: flex;
  gap: 2px;
  color: #9f2f38;
  font-size: 15px;
}

.best-card-info {
  padding-top: 2px;
  display: flex;
  flex-direction: column;
}

.best-card-name {
  margin: 16px 15px 10px;
  font-size: var(--best-card-title-size);
  font-weight: 700;
  color: #fdf1f2;
  line-height: 1.05;
  min-height: 2.1em;
}

.best-card-desc {
  margin: 5px 15px 0;
  color: #fff3f4;
  font-size: var(--best-card-desc-size);
  line-height: 1.25;
  max-width: 92%;
  min-height: 3.8em;
}