* {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  height: 100vh;
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  margin: 0;
  background-color: #fff7fb;
}

a {
  color: #333;
  text-decoration: none;
}

a:hover {
  color: #ec4899;
}

button {
  cursor: pointer;
}

input,
button,
select,
textarea {
  font: 1.6rem helvetica;
  padding: 1rem;
  border: 0.1rem #ddd solid;
  border-radius: 0.5rem;
}

input:hover,
button:hover {
  border: 0.1rem #ec4899 solid;
}

button.primary {
  background-color: #ec4899;
  color: white;
  border: none;
  font-weight: bold;
}

button.primary:hover {
  background-color: #db2777;
}

/* GRID */

.grid-container {
  display: grid;
  grid-template-areas:
    "header"
    "main"
    "footer";
  grid-template-columns: 1fr;
  grid-template-rows: 6rem 1fr 5rem;
  height: 100%;
}

/* HEADER */

header {
  grid-area: header;
  background: #fdcfe6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

header a {
  color:#f686b8;
  padding-right: 1rem;
}

.brand a {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 3.5rem;
  letter-spacing: 2px;
}

/* FOOTER */

footer {
  grid-area: footer;
  background-color: #ec4899;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

/* HERO SECTION */

.hero {
  position: relative;
  background: radial-gradient(circle at bottom, #f9a8d4, #fff7fb 70%);
  padding: 80px 20px;
  text-align: center;
  margin-bottom: 40px;
  overflow: hidden;
}

/* 👇 ESTE ES EL TRUCO */
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;

  background: linear-gradient(
    to bottom,
    rgba(255, 240, 247, 0) 0%,
    #fff7fb 100%
  );
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 5.5rem;
  color: #ec4899;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.hero p {
  font-family: "Brush Script MT", "Brush Script", cursive;
  font-size: 3rem;
  color: #928f8f;
  margin-bottom: 25px;
}

.hero .primary {
  padding: 12px 25px;
  border-radius: 30px;
}

/* SECTION TITLE */

.section-title {
  font-family: 'Playfair Display', serif;
  text-align: center;
  margin: 40px 0;
  color: #ec4899;
  font-size: 3.5rem;
  letter-spacing: 1px;
}

/* PRODUCTS */

.products {
  display: flex;
  flex-wrap: wrap;
  list-style-type: none;
  padding: 0;
  margin: 0;
  justify-content: center;
}

.products li {
  flex: 0 1 30rem;
  margin: 1rem;
  height: 42rem;
  border-radius: 10px;
  border: 1px solid #eee;
  transition: 0.3s;
  background: white;
}

.products li:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.product {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  height: 100%;
  padding: 1rem;
}

.product img {
  max-height: 26rem;
  max-width: 22rem;
  margin: auto;
}

.product img:hover {
  transform: scale(1.05);
  transition: 0.3s;
}

.product-name {
  font-size: 1.8rem;
  font-weight: bold;
  text-align: center;
}

.product-brand {
  font-size: 1.2rem;
  color: #777;
  text-align: center;
}

.product-price {
  font-size: 2rem;
  color: #ec4899;
  font-weight: bold;
  text-align: center;
}

/* RATING */

.rating {
  color: #ffc000;
  font-size: 1.8rem;
  text-align: center;
}

.rating span:last-child {
  color: #666;
  font-size: 1.4rem;
}

/* CONTENT */

.content {
  padding: 1rem;
}

/* PRODUCT DETAILS */

.details {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.details-image {
  flex: 2 1 60rem;
}

.details-image img {
  max-width: 60rem;
  width: 100%;
}

.details-info,
.details-action {
  flex: 1 1 30rem;
}

.details-info ul,
.details-action ul {
  padding: 0;
  list-style-type: none;
}

.details-info h1 {
  font-size: 2.5rem;
  color: #ec4899;
}

.details-info li,
.details-action li {
  margin-bottom: 1rem;
}

.details-action {
  border: 1px solid #eee;
  border-radius: 0.5rem;
  background-color: #fff;
  padding: 2rem;
}

/* CART */

.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

.cart-list {
  flex: 3 1 60rem;
}

.cart-action {
  flex: 1 1 20rem;
  background-color: #fff;
  border-radius: 0.5rem;
  padding: 2rem;
  border: 1px solid #eee;
}

.cart-list-container {
  padding: 1rem;
  list-style-type: none;
}

.cart-list-container li {
  display: flex;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.cart-list-container img {
  max-width: 10rem;
  max-height: 10rem;
}

/* FORM */

.form-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
}

.form-items {
  display: flex;
  flex-direction: column;
  width: 32rem;
  padding: 2rem;
  border: 1px solid #eee;
  border-radius: 0.5rem;
  list-style-type: none;
  background: white;
}

.form-items li {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-container h1 {
  font-size: 2.5rem;
  color: #ec4899;
}

/* TABLE */

table {
  width: 100%;
}

th {
  text-align: left;
}

tbody > tr:nth-child(odd) {
  background-color: #fff0f7;
}

td {
  padding: 0.5rem;
}

/* SEARCH */

.search {
  width: 40%;
}

form.search-form input[type="text"] {
  float: left;
  width: 80%;
  border-right: none;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

form.search-form button {
  float: left;
  width: 40px;
  background: #fdc2e0;
  color: white;
  border-left: none;
  cursor: pointer;
}

form.search-form button:hover {
  background: #f686b8;
}

form.search-form::after {
  content: "";
  clear: both;
  display: table;
}

/* ASIDE */

aside {
  position: fixed;
  width: 30rem;
  background-color: #ffffff;
  height: 100%;
  z-index: 1;
  transform: translateX(-30.1rem);
  transition: all 0.5s;
  border-right: 1px solid #eee;
}

aside.open {
  transform: translateX(0);
}

.aside-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
}

.categories > li {
  list-style-type: none;
}

.categories > li > a {
  display: flex;
  padding: 1rem;
  justify-content: space-between;
}

.categories > li > a:hover {
  background-color: #ffe4f1;
}

/* REVIEW */

.review {
  list-style-type: none;
  padding: 0;
}

.review li {
  margin-bottom: 1rem;
}

/* LOADING OVERLAY */

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  background: rgba(255, 240, 247, 0.8);
  z-index: 1000;
}

.overlay.active {
  display: flex;
}

.loading {
  font-size: 2.5rem;
  color: #ec4899;
  font-weight: bold;
}

/* PRODUCT CARD */

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.product-image {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px; /* 👈 más alto */
  background: white;
  padding: 10px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 👈 llena el espacio */
  border-radius: 10px;
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-info {
  padding: 15px;
  text-align: center;
}

.product-brand {
  font-size: 1.3rem;
  color: #777;
  margin-bottom: 5px;
}

.product-price {
  font-size: 2rem;
  color: #ec4899;
  font-weight: bold;
  margin: 10px 0;
}

.product-button {
  display: inline-block;
  margin-top: 10px;
  background: #ec4899;
  color: white;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 1.4rem;
  transition: 0.3s;
}

.product-button:hover {
  background: #db2777;
}

#open-menu {
  font-size: 2.5rem;
  background: none;
  border: none;
  color: white;
  margin-right: 15px;
}

/* SCROLL SUAVE */

html {
  scroll-behavior: smooth;
}

/* SOMBRA HEADER */

header {
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* BOTONES MAS SUAVES */

button {
  transition: all 0.25s ease;
}