/*========== GOOGLE FONTS ==========*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");
/*========== VARIABLES CSS ==========*/
:root {
  --header-height: 3.5rem;
  --nav-width: 219px;
  /*========== Colors ==========*/
  --first-color: #6923d0;
  --first-color-light: #f4f0fa;
  --title-color: #19181b;
  --text-color: #58555e;
  --text-color-light: #a5a1aa;
  --body-color: #f9f6fd;
  --container-color: #ffffff;
  --second-color: #dcfafb;
  --third-color: #ffe8df;
  --accent-color: #ff5151;
  --dark-color: #161616;
  /*========== Font and typography ==========*/
  --body-font: 'Poppins', sans-serif;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.75rem;
  --smaller-font-size: 0.75rem;
  /*========== Font weight ==========*/
  --h1-font-size: 1.5rem;
  --h3-font-size: 1rem;
  --font-medium: 500;
  --font-semi-bold: 600;
  /*========== Margenes Bottom ==========*/
  /* .25rem = 4px, .5rem = 8px, .75rem = 12px ... */
  --mb-0-25: 0.25rem;
  --mb-0-5: 0.5rem;
  --mb-0-75: 0.75rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;
  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000; }

@media screen and (min-width: 768px) {
  :root {
    --h1-font-size: 2rem;
    --normal-font-size: 1rem;
    --smaller-font-size: 0.813rem; } }

@media screen and (min-width: 1024px) {
  :root {
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem; } }

/*========== BASE ==========*/
*,
::before,
::after {
  box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color); }

#menu-body {
  margin: var(--header-height) 0 0 0;
  padding: 1rem 1rem 0; }

h1 {
  font-size: var(--h1-font-size); }

h3 {
  margin: 0; }

ul {
  margin-bottom: 0;
  padding-left: 0;
  list-style: none; }

a {
  text-decoration: none; }

img {
  max-width: 100%;
  height: auto; }

/*-- LAYAOUT --*/
.container {
  max-width: 768px;
  margin-left: var(--mb-3);
  margin-right: var(--mb-3); }

.grid {
  display: grid;
  gap: 1.5rem; }

.main {
  padding: 2rem 0; }

.bd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  max-width: 1200px;
  margin-left: 2.5rem;
  margin-right: 2.5rem;
  align-items: center;
  gap: 2rem; }

/*==================== REUSABLE CSS CLASSES ====================*/
.section {
  padding: 2rem 0 4rem; }

.section__title {
  font-size: var(--h1-font-size); }

.section__subtitle {
  display: block;
  font-size: var(--small-font-size);
  margin-bottom: var(--mb-3); }

.section__title,
.section__subtitle {
  text-align: center; }

.text__lead {
  font-size: var(--normal-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color); }

.text__primary {
  color: var(--first-color); }

.text__white {
  color: var(--first-color-light); }

.mx-1 {
  margin: 0 var(--mb-1); }

.mx-2 {
  margin: 0 var(--mb-2); }

.mx-3 {
  margin: 0 var(--mb-3); }

.my-1 {
  margin: var(--mb-1) 0; }

.my-2 {
  margin: var(--mb-2) 0; }

.my-3 {
  margin: var(--mb-3) 0; }

.px-1 {
  padding: 0 var(--mb-1); }

.px-2 {
  padding: 0 var(--mb-2); }

.px-3 {
  padding: 0 var(--mb-3); }

.py-1 {
  padding: var(--mb-1) 0; }

.py-2 {
  padding: var(--mb-2) 0; }

.py-3 {
  padding: var(--mb-3) 0; }

/*==================== BUTTONS ====================*/
.button {
  display: inline-block;
  background-color: var(--first-color);
  color: #fff;
  padding: 1rem;
  border-radius: 0.5rem;
  font-weight: var(--font-medium);
  transition: 0.3s; }

.button:hover {
  background-color: var(--first-color-alt); }

.button__icon {
  font-size: 1.25rem;
  margin-left: var(--mb-0-5);
  transition: 0.3s; }

.button--white {
  background-color: #fff;
  color: var(--first-color); }

.button--white:hover {
  background-color: #fff; }

.button--flex {
  display: inline-flex;
  align-items: center;
  justify-content: center; }

.button--small {
  padding: 0.75rem 1rem; }

.button--link {
  padding: 0;
  background-color: transparent;
  color: var(--first-color); }

.button--link:hover {
  background-color: transparent;
  color: var(--first-color-alt); }

.button--mid {
  background-color: var(--container-color);
  padding: 1.25rem 1.5rem;
  border-radius: 0.25rem;
  box-shadow: 0px 20x 4px rgba(0, 0, 0, 0.15);
  transition: 0.3s;
  color: #000;
  margin-bottom: 1rem; }

.button--big {
  background-color: var(--container-color);
  padding: 3.5rem 0.5rem 1.25rem 1.5rem;
  border-radius: 0.25rem;
  box-shadow: 0px 20x 4px rgba(0, 0, 0, 0.15);
  transition: 0.3s;
  color: #000; }

.accordion__container {
  background-color: var(--container-color);
  padding: 2rem 2rem;
  border-radius: 0.25rem;
  box-shadow: 0px 20x 4px rgba(0, 0, 0, 0.15);
  transition: 0.3s;
  color: #000;
  margin-left: 1.3rem;
  margin-right: 1.3rem;
  font-size: var(--h1-font-size);
  margin-bottom: 2rem; }

.accordion__content {
  display: none; }

.accordion__content .show {
  display: block; }

.accordion__button .show {
  display: block; }

.accordion__button {
  display: none; }

/*=============================================================== I N D E X */
/*-- SHOWCASE --*/
.showcase {
  position: absolute;
  right: 0;
  width: 100%;
  min-height: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #111;
  color: #ffffff;
  z-index: 2;
  transition: 0.5s; }
  .showcase video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8; }
  .showcase .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #bd7752ff;
    mix-blend-mode: overlay; }
  .showcase__content {
    z-index: 3;
    text-align: center; }
  .showcase__logo {
    width: 320px; }
  .showcase__title {
    font-size: 2rem;
    letter-spacing: 0.2rem; }
  .showcase__buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 1rem;
    text-align: center;
    font-size: var(--h1-font-size); }

/*=============================================================== P A G E S */
/*========== HEADER ==========*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--container-color);
  box-shadow: 0 1px 0 rgba(22, 8, 43, 0.1);
  padding: 0 1rem;
  z-index: var(--z-fixed); }

.header__container {
  display: flex;
  align-items: center;
  height: var(--header-height);
  justify-content: space-between; }

.header__img {
  width: 35px;
  height: 35px;
  border-radius: 50%; }

.header__logo {
  color: var(--title-color);
  font-weight: var(--font-medium);
  display: none; }

.header__search {
  display: flex;
  padding: 0.4rem 0.75rem;
  background-color: var(--first-color-light);
  border-radius: 0.25rem; }

.header__input {
  width: 100%;
  border: none;
  outline: none;
  background-color: var(--first-color-light); }

.header__input::placeholder {
  font-family: var(--body-font);
  color: var(--text-color); }

.header__icon,
.header__toggle {
  font-size: 1.2rem; }

.header__toggle {
  color: var(--title-color);
  cursor: pointer; }

/*========== NAV ==========*/
.nav {
  position: fixed;
  top: 0;
  left: -100%;
  height: 100vh;
  padding: 1rem 1rem 0;
  background-color: var(--container-color);
  box-shadow: 1px 0 0 rgba(22, 8, 43, 0.1);
  z-index: var(--z-fixed);
  transition: 0.4s; }

.nav__container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 3rem;
  overflow: auto;
  scrollbar-width: none;
  /* For mozilla */ }

/* For Google Chrome and others */
.nav__container::-webkit-scrollbar {
  display: none; }

.nav__logo {
  font-weight: var(--font-semi-bold);
  margin-bottom: 2.5rem; }

.nav__list,
.nav__items {
  display: grid; }

.nav__list {
  row-gap: 2.5rem; }

.nav__items {
  row-gap: 1.5rem; }

.nav__subtitle {
  font-size: var(--normal-font-size);
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  color: var(--text-color-light); }

.nav__link {
  display: flex;
  align-items: center;
  color: var(--text-color); }

.nav__link:hover {
  color: var(--first-color); }

.nav__icon {
  font-size: 1.2rem;
  margin-right: 0.5rem; }

.nav__name {
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  white-space: nowrap; }

.nav__logout {
  margin-top: 5rem; }

/* Dropdown */
.nav__dropdown {
  overflow: hidden;
  max-height: 21px;
  transition: 0.4s ease-in-out; }

.nav__dropdown-collapse {
  background-color: var(--first-color-light);
  border-radius: 0.25rem;
  margin-top: 1rem; }

.nav__dropdown-content {
  display: grid;
  row-gap: 0.5rem;
  padding: 0.75rem 2.5rem 0.75rem 1.8rem; }

.nav__dropdown-item {
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
  color: var(--text-color); }

.nav__dropdown-item:hover {
  color: var(--first-color); }

.nav__dropdown-icon {
  margin-left: auto;
  transition: 0.4s; }

/* Show dropdown collapse */
.nav__dropdown:hover {
  max-height: 100rem; }

/* Rotate icon arrow */
.nav__dropdown:hover .nav__dropdown-icon {
  transform: rotate(180deg); }

/*===== Show menu =====*/
.show-menu {
  left: 0; }

/*===== Active link =====*/
.active {
  color: var(--first-color); }

/*-- PAGES --*/
.title-shop {
  position: relative;
  margin: 0 2.5rem; }

.title-shop::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 72px;
  height: 2px;
  background-color: var(--dark-color);
  margin-left: 0.25rem; }

/*-- COMPONENTS--*/
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 2rem;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer; }

.card__img {
  width: 180px;
  height: auto;
  padding: 3rem 0;
  transition: 0.5s; }

.card__name {
  position: absolute;
  left: -25%;
  top: 0;
  width: 3.5rem;
  height: 100%;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-align: center;
  background-color: var(--dark-color);
  color: #fff;
  font-weight: bold;
  transition: 0.5s; }

.card__icon {
  font-size: 1.5rem;
  color: var(--dark-color); }

.card__icon:hover {
  color: var(--accent-color); }

.card__precis {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  transition: 0.5s; }

.card__preci {
  display: block;
  text-align: center; }

.card__preci--before {
  font-size: var(--smaller-font-size);
  color: var(--accent-color);
  margin-bottom: 0.25rem; }

.card__preci--now {
  font-size: var(--h3-font-size);
  font-weight: bold; }

/*Move left*/
.card:hover {
  box-shadow: 0 0.5rem 1rem #d1d9e6; }

.card:hover .card__name {
  left: 0; }

.card:hover .card__img {
  /* transform: rotate(30deg); */
  transform: scale(1.4);
  margin-left: 3.5rem; }

.card:hover .card__precis {
  margin-left: 3.5rem;
  padding: 0 1.5rem; }

/*=============================================================== A L E R T   P A G E  */
ul {
  display: flex;
  gap: 1rem;
  justify-content: center; }

.r-social-icon {
  color: #fff;
  font-size: 2rem;
  transition: 0.3s; }
  .r-social-icon:hover {
    color: var(--first-color); }

.copy-rhyhorn {
  margin-top: 1rem;
  color: var(--first-color-light); }

/* ========== MEDIA QUERIES ==========*/
/* For small devices reduce search*/
@media screen and (max-width: 320px) {
  .header__search {
    width: 70%; } }

@media screen and (min-width: 768px) {
  #menu-body {
    padding: 1rem 3rem 0 6rem; }
  .header {
    padding: 0 3rem 0 6rem; }
  .header__container {
    height: calc(var(--header-height) + 0.5rem); }
  .header__search {
    width: 300px;
    padding: 0.55rem 0.75rem; }
  .header__toggle {
    display: none; }
  .header__logo {
    display: block; }
  .header__img {
    width: 40px;
    height: 40px;
    order: 1; }
  .nav {
    left: 0;
    padding: 1.2rem 1.5rem 0;
    width: 68px;
    /* Reduced navbar */ }
  .nav__items {
    row-gap: 1.7rem; }
  .nav__icon {
    font-size: 1.3rem; }
  /* Element opacity */
  .nav__logo-name,
  .nav__name,
  .nav__subtitle,
  .nav__dropdown-icon {
    opacity: 0;
    transition: 0.3s; }
  /* Navbar expanded */
  .nav:hover {
    width: var(--nav-width); }
  /* Visible elements */
  .nav:hover .nav__logo-name {
    opacity: 1; }
  .nav:hover .nav__subtitle {
    opacity: 1; }
  .nav:hover .nav__name {
    opacity: 1; }
  .nav:hover .nav__dropdown-icon {
    opacity: 1; } }

@media screen and (min-width: 1200px) {
  .title-shop {
    margin: 0 5rem; }
  .bd-grid {
    margin-left: auto;
    margin-right: auto; } }
