/* DESIGN GUILDLINES USED ON THE PAGE */
/* ##DESIGNS TO BE USED ON THE PAGE
--- 01 TYPOGRAPHY SYSTEM
    FONT SIZE SYSTEM (px)
        10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98
    
    SPACING SYSTEM (px)
        2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128
    
*/

:root {
  /* PRIMARY COLOR */
  --primary-color: #5e3b8c;
  /* shades */
  --primary-color-shade-1: #130c1c;
  --primary-color-shade-2: #1c122a;
  --primary-color-shade-3: #261838;
  /* tints */
  --primary-color-tints-1: #6e4f98;
  --primary-color-tints-2: #7e62a3;
  --primary-color-tints-3: #8e76af;

  /* AUXILAIRY COLOR */
  --auxiliary-color: #09060e;

  /* WHITE */
  --white: #fff;

  /* SECONDARY COLOR */
  --secondary-color: #c4b5f0;
  --secondary-color-2: #dcc6b0;

  /* TEXT */
  --text-color: #111111;

  /* navbor */
}

::selection {
  background-color: var(--primary-color); /* Highlight background color */
  color: var(--white); /* Highlighted text color */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-weight: 300;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: "Cinzel", serif;
}

body,
p,
a,
nav,
button {
  font-family: "Josefin Sans", sans-serif;
  font-weight: 300;
  letter-spacing: 0.3px;
  color: var(--text-color);
  font-size: 2rem;
}

*:focus {
  outline: none;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

input::placeholder,
textarea::placeholder {
  color: #ccc !important;
  opacity: 1;
}

/* OTHER PAGE HERO */
.page-hero {
  position: relative;
  height: 50vh;
  background: linear-gradient(rgba(110, 79, 152, 0.5), rgba(126, 98, 163, 0.6)),
    url("../img/hero/plain-perfume-2.jpg");
  background-size: cover;
  background-position: center;
  margin-bottom: 1.8rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 7rem;
  /* justify-content: center; */
  color: var(--white);
}

/* .page-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(27, 27, 27, 0.7) 100%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
} */

/* SEARCH */
.search-button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  outline: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.search-icon {
  font-size: 2.3rem;
  padding: 0.5rem;
  color: var(--white);
}
.search-icon:hover {
  color: var(--primary-color);
}

/* CART */
.cart-count {
  font-size: 0.65rem;
  padding: 0.35em 0.5em;
}

/* ///////////////HEADER ///////////////*/
.navbar {
  padding: 1rem 0;
}

.brand-logo {
  height: 70px;
  width: 70px;
  justify-self: center;
}

.contact-us {
  text-transform: uppercase;
  font-size: 1.5rem;
}

/*//////////// PRODUCT CARD STYLES////////////// */
.product-link {
  text-decoration: none;
  color: inherit;
  display: contents;
}

.product-link:hover {
  text-decoration: none;
}
.product-card {
  overflow: hidden;
}
.product-img-container {
  overflow: hidden;
  border-radius: 10px 10px 10px 10px;
}
.product-img-container img {
  /* object-fit: contain; */
  height: 300px;
  width: 100%;
  transition: transform 0.4s ease;
  /* border-radius: 50px; */
}
.product-img-container img:hover {
  transform: scale(1.1);
}

.product-info {
  padding: 1.5rem;
}

.product-info h1 {
  font-size: 1.6rem;
  color: var(--primary-color);
  font-weight: 600;
}

.product-price,
.product-info p {
  font-size: 1.8rem;
}

.card-title,
.product-info h1,
.product-info h6,
.product-info p {
  margin-bottom: 0.5rem;
}

/* CATEGORIES STYLES */
.view-all-categories {
  display: flex;
  justify-content: center;
  margin-top: 3rem !important;
}

/* //////////////////////// */

/* FOOTER */
.section-footer {
  padding: 8rem 0;
  padding-bottom: 0;
}

.footer-titles {
  padding-bottom: 1.8rem;
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--primary-color);
}

.footer-logo-container h1 {
  font-family: "Times New Roman", Times, serif !important;
  font-size: 2rem;
}

.footer-logo {
  height: 200px;
  width: 200px;
}

.logo-name {
  background-color: var(--primary-color);
  display: inline-block;
  text-align: center;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  border-radius: 11px;
}

a.footer-links:hover,
a.footer-links:active {
  color: var(--primary-color) !important;
}

.copyright-box {
  padding: 2rem 6.2rem;
  background-color: var(--auxiliary-color);
  display: flex;
  justify-content: space-between;
  margin-top: 8rem;
}
.copyright-box p {
  color: var(--white);
}

/* //////////////////////// */

/* SOCIAL LINKS */
.social-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.social-icon {
  font-size: 3rem;
  color: #ffffff;
}

.social-icon:hover,
.social-icon:active {
  color: var(--primary-color);
}

/* //////////////////////// */

/* SEARCH MODAL */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(20, 20, 20, 0.9); /* dark overlay */
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999999;
}

.search-modal.active {
  display: flex;
}

.search-center-box {
  display: flex;
  align-items: center;
  width: 60%;
  border-bottom: 2px solid var(--primary-color);
  padding: 0.5rem 0;
}

.search-center-box input {
  flex-grow: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 3rem;
  padding-right: 0.5rem;
}

.search-center-box input::placeholder {
  color: var(--white);
}

.search-center-box ion-icon {
  padding: 1.2rem;
  margin-bottom: 1rem;
  background-color: rgb(45, 45, 45);
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

.search-center-box ion-icon:hover {
  background-color: var(--primary-color);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 5rem;
  font-size: 5rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}
.modal-close:hover {
  color: var(--primary-color);
}

/* //////////////////////// */

/* LOADING */
#page-loader {
  position: fixed;
  inset: 0;
  /* background: var(--white); */
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
  background: linear-gradient(rgba(110, 79, 152), rgba(126, 98, 163));
}

/* FADE OUT */
/* Loader is visible by default */
#page-loader {
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
  z-index: 9999999999999999999;
}

/* This class triggers the fade-out */
#page-loader.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loader-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* Modern soft shadow */
}

/* Spinner Ring */
.loader-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 80px;
  border-top: 6px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
  background: #dcc6b0;
}

/* Static Logo */
.loader-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  transform: translate(-50%, -50%);
  object-fit: contain;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* PRODUCT SPINNER */
.product-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(110, 79, 152, 0.5),
    rgba(126, 98, 163, 0.6)
  ); /* lighter for a better blur */
  backdrop-filter: blur(8px); /* adds the blur */
  -webkit-backdrop-filter: blur(8px); /* for Safari */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999999999;
  transition: opacity 0.3s ease;
  opacity: 1;
}

.product-loader.d-none {
  opacity: 0;
  pointer-events: none;
}

/* New Spinner Design */
.loader-spinner {
  width: 80px;
  height: 80px;
  border-top: 6px solid var(--primary-color); /* your brand color */
  background: #dcc6b0;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Keyframe animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.no-scroll {
  overflow: hidden;
  height: 100vh;
}

/* ALERT */
.alert {
  position: fixed;
  top: 0;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  z-index: 9999;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 400;
  text-align: center;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  padding: 1.6rem 15rem;
  -webkit-box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.25);
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.25);
}
.alert--success {
  background-color: var(--primary-color);
}
.alert--error {
  background-color: #eb4d4b;
}

/* //////////////////////// */

/* HELPERS STYLES */
#mena-recommendations,
.shop-list {
  display: flex;
  gap: 2rem;
}
.mena-recommendation .col-md-3 {
  width: 270px !important;
}
.section {
  padding-bottom: 9.6rem;
}

.bg-purple {
  background-color: var(--primary-color);
  color: var(--white);
}
.bg-auxiliary {
  background-color: var(--auxiliary-color) !important;
  color: var(--white);
}

.text-white {
  color: white !important;
}

.title-container {
  margin-bottom: 4.8rem;
}

.title-container h5 {
  text-align: start;
  font-size: 2rem;
  font-weight: 600;
}

.title-container p {
  text-align: start;
  font-size: 4.4rem;

  font-weight: 500;
}

.page-title-container {
  padding: 6.4rem;
  text-align: center;
  font-weight: 600;
}

.page-title-container h1 {
  font-size: 4.4rem;
  color: var(--primary-color);
}

.page-context {
  margin-bottom: 6rem;
}

.page-context h1 {
  font-size: 3.6rem;
  margin-bottom: 3rem;
  font-weight: 400;
  color: var(--primary-color);
}

.page-context div {
  margin-bottom: 2.4rem;
}

/* BUTTONS STYLES */
.btn:link,
.btn:visited {
  font-size: 2.4rem;
  text-transform: capitalize;
}

.btn:active {
  background-color: var(--primary-color-shade-3);
}

a.btn-primary:link,
a.btn-primary:visited {
  background-color: var(--primary-color);
  border: solid 1px var(--primary-color);
}

a.btn-primary:hover,
a.btn-primary:active {
  background-color: var(--primary-color-shade-3);
  border: solid 1px var(--primary-color-shade-3);
}

.btn-outline-primary:hover,
.btn-outline-primary:active {
  background-color: var(--primary-color) !important;
}

.btn-action {
  padding: 0.375rem 0.9rem;
  text-transform: uppercase;
  font: inherit;
  cursor: pointer;
  border: none;
  border-radius: 50px !important;
}

.btn-action:hover,
.btn-action:active {
  background-color: var(--primary-color-shade-3);
  color: var(--white);
}

.btn-radius:link,
.btn-radius:visited {
  border-radius: 30px;
}

.shop-link {
  display: flex;
  align-items: center;
}

.text-link:link,
.text-link:visited {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
}

.text-link:hover,
.text-link:active {
  background-color: var(--primary-color);
  color: var(--white) !important;
}

.text-link-shadow {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  padding: 0.8rem 1.6rem;
}

.my-shadow {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
