/*=============== CUSTOM FONTS ===============*/
@font-face {
  font-family: "Satoshi-Light";
  src: url("../fonts/Satoshi-Light.woff2") format("woff2"), url("../fonts/Satoshi-Light.woff") format("woff");
  font-weight: 300;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: "Satoshi-LightItalic";
  src: url("../fonts/Satoshi-LightItalic.woff2") format("woff2"), url("../fonts/Satoshi-LightItalic.woff") format("woff");
  font-weight: 300;
  font-display: swap;
  font-style: italic;
}

@font-face {
  font-family: "Satoshi-Regular";
  src: url("../fonts/Satoshi-Regular.woff2") format("woff2"), url("../fonts/Satoshi-Regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: "Satoshi-Italic";
  src: url("../fonts/Satoshi-Italic.woff2") format("woff2"), url("../fonts/Satoshi-Italic.woff") format("woff");
  font-weight: 400;
  font-display: swap;
  font-style: italic;
}

@font-face {
  font-family: "Satoshi-Medium";
  src: url("../fonts/Satoshi-Medium.woff2") format("woff2"), url("../fonts/Satoshi-Medium.woff") format("woff");
  font-weight: 500;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: "Satoshi-MediumItalic";
  src: url("../fonts/Satoshi-MediumItalic.woff2") format("woff2"), url("../fonts/Satoshi-MediumItalic.woff") format("woff");
  font-weight: 500;
  font-display: swap;
  font-style: italic;
}

@font-face {
  font-family: "Satoshi-Bold";
  src: url("../fonts/Satoshi-Bold.woff2") format("woff2"), url("../fonts/Satoshi-Bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: "Satoshi-BoldItalic";
  src: url("../fonts/Satoshi-BoldItalic.woff2") format("woff2"), url("../fonts/Satoshi-BoldItalic.woff") format("woff");
  font-weight: 700;
  font-display: swap;
  font-style: italic;
}

/* width */
::-webkit-scrollbar {
  width: 10px;
}

/*=============== SCROLLBAR ===============*/
/* Track */
::-webkit-scrollbar-track {
  background: #f2f7ff;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #257dfc;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: rgba(37, 127, 252, 0.8);
}

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HEX*/
  --dark-color: #050505;
  --light-color: #ffffff;
  --primary-color: #257dfc;
  --secondary-color: #ef5153;
  --primary-light-bg-100: #f2f7ff;
  --form-input-bg-color: #f2f7ff;
  --form-placeholder-color: #8a8a8a;
  --title-color: #050505;
  --text-color: #666666;
  --dark-border-color: #d4d4d4;
  --light-border-color: #d4e5ff;

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Satoshi", Arial, Helvetica, sans-serif;
  --font-size-800: 4rem;
  --font-size-700: 2.5rem;
  --font-size-650: 1.875rem;
  --font-size-600: 1.5rem;
  --font-size-500: 1rem;
  --font-size-400: 0.875rem;
  --font-size-300: 0.75rem;
  --font-size-buttons: 0.875rem;

  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-bold: 700;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
}

/* Responsive typography */
/* @media screen and (min-width: 968px) {
  :root {
    --biggest-font-size: 2.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
  }
} */

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--light-color);
  color: var(--text-color);
  /* transition: 0.4s; for light mode animation */
}

body,
button,
input,
textarea,
label {
  font-family: var(--body-font);
  font-size: var(--font-size-400);
}

label {
  display: block;
  margin-bottom: 10px;
  font-weight: var(--font-medium);
  line-height: 1;
  text-transform: capitalize;
}

input,
textarea {
  background-color: #f2f7ff;
  border: none;
  color: var(--title-color);
  width: 100%;
  border-radius: 10px;
  padding: 0.875rem 1.25rem; /* 14px 20px */
}

input:focus,
input:focus-within,
textarea:focus,
textarea:focus-within {
  outline: none;
}

input::placeholder,
textarea::placeholder {
  font-size: var(--font-size-400);
  color: #8a8a8a;
}

h1,
h2,
h3,
h4 {
  color: var(--title-color);
}

ul {
  list-style: none;
}

a {
  color: unset;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  background-color: var(--primary-color);
  color: var(--light-color);
}

img {
  max-width: 100%;
  height: auto;
}

#preloader__bg {
  background-color: var(--primary-light-bg-100);
  width: 100%;
  height: 100vh;
  text-align: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
}

#preloader__icon {
  width: 150px;
  height: 150px;
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  border-top: 4px solid var(--primary-color);
  border-right: 4px solid var(--dark-border-color);
  border-bottom: 4px solid var(--primary-color);
  border-left: 4px solid var(--dark-border-color);
  border-radius: 100%;
  animation: preloader 2s linear 0s infinite normal forwards;
}

@keyframes preloader {
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
/*=============== REUSABLE CSS CLASSES ===============*/
.main {
  overflow: hidden;
}

.container {
  max-width: 1200px;
  padding: 0 30px;
  margin-left: auto;
  margin-right: auto;
}

.section {
  padding: 3.75rem 0;
}

.grid {
  display: grid;
  gap: 1.875rem;
}

.flex {
  display: flex;
}

.flex-align-c {
  align-items: center;
}

.flex-justify-sb {
  justify-content: space-between;
}

.cta__button {
  font-size: var(--font-size-buttons);
  line-height: 1;
  font-weight: var(--font-medium);
  text-transform: capitalize;
  display: inline-block;
  padding: 0.9375rem 1.875rem; /* 15px 30px */
  border-radius: 6px;
  transition: 0.3s ease-in-out;
}

.cta__button--solid,
.cta__button--outline:hover {
  background-color: var(--primary-color);
  color: var(--light-color);
  border: 1px solid transparent;
}

.cta__button--solid:hover {
  opacity: 0.9;
}

.cta__button--outline {
  border: 1px solid var(--title-color);
  color: var(--title-color);
}

/* .section__pre-title,
.section__title,
.section__sub-title {
  text-align: center !important;
} */

/* .section__title {
  font-size: var(--h2-font-size);
  color: var(--first-color);
  margin-bottom: 2rem;
} */

/* .section__subtitle {
  display: block;
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
} */

/*=============== HEADER & NAV===============*/
.header {
  background-color: var(--light-color);
  box-shadow: 0px 2px 6px rgba(5, 5, 5, 0.1);
}

/* Top Nav */
#header-top {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 0.625rem 0; /* 0.625rem = 10px */
}

.header-top__text {
  font-size: var(--font-size-400);
  line-height: 1;
  text-align: center;
  text-transform: capitalize;
}

.header-top__text--bold {
  font-weight: var(--font-bold);
}

/* Middle Nav */
#header-middle {
  padding: 1.25rem 0; /* 1.25rem = 20px */
  border-bottom: 1px solid var(--dark-border-color);
}

.header-middle__logo,
#logo {
  width: 100px;
  height: auto;
  display: block;
}

.header-middle__center {
  width: 100%;
  max-width: 585px;
  padding: 0 30px;
}

.header-middle__search-form {
  background-color: var(--form-input-bg-color);
  border-radius: 50px;
  overflow: hidden;
}

.header-middle__search-form input {
  font-size: var(--font-size-400);
  font-weight: var(--font-medium);
  color: var(--title-color);
  width: 100%;
  padding: 0.875rem 1.25rem; /* 0.875rem = 14px, 1.25rem = 20px*/
}
.header-middle__search-form input::placeholder {
  font-size: var(--font-size-400);
  color: var(--form-placeholder-color);
}

.header-middle__search-form button {
  background-color: unset;
}

.header-middle__search {
  width: 24px;
  margin-right: 10px;
}

.header-middle__link {
  font-size: var(--font-size-400);
  line-height: 1.4;
  font-weight: var(--font-medium);
  padding: 0.25rem 0;
}

.header-middle__link:hover {
  color: var(--primary-color);
}

.header-middle__cta-btn {
  background-color: var(--primary-color);
  color: var(--light-color);
  padding: 0.5rem;
  margin-left: 1rem;
  border-radius: 4px;
}

.header-middle__cta-btn:hover {
  color: var(--light-color);
  opacity: 0.9;
}

.header-middle__icon {
  display: block;
  max-width: 1.25rem;
  height: 1.25rem;
}

.header-middle__icon-text,
.header-middle__nav--border {
  display: inline-block;
}

.header-middle__icon-text {
  margin-left: 0.875rem;
}

.header-middle__nav--border {
  background-color: var(--dark-border-color);
  width: 1rem;
  height: 2px;
  margin: 0 0.25rem;
  transform: rotate(90deg);
}

.header-middle__icon-text--border {
  margin: 0;
  transform: translateY(-0.2rem) rotate(120deg);
}

/* Main Nav */
#header-main {
  background-color: var(--light-color);
  padding: 1.5rem 0; /* 1.5rem = 24px */
}

/* .header-main__nav {
} */

.header-main__nav-links-left li,
.header-main__nav-links-right li {
  display: inline-block;
  margin-right: 30px;
}

.header-main__nav-link {
  font-size: var(--font-size-400);
  line-height: 1.5;
  color: var(--title-color);
  display: inline-block;
  padding: 4px 0;
  position: relative;
}

.header-main__nav-link--highlight {
  color: var(--primary-color);
}

.header-main__nav-links-right li:last-child {
  margin-right: 0;
}

/* Hover link */
.header-main__nav-link:after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  border-radius: 10px;
  transition: width 0.3s ease-in-out;
}

.header-main__nav-link:hover:after {
  width: 100%;
}

/* Active link */

/*=============== MAIN HERO SECTION ===============*/
.home {
  width: 100%;
  min-height: 500px;
  background-image: url("../images/hero-image-slide-1.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: left center;
}

.home__heading {
  font-size: var(--font-size-800);
  line-height: 1.3;
  font-weight: var(--font-bold);
  letter-spacing: 1px;
  text-transform: capitalize;
  max-width: 485px;
  margin-bottom: 20px;
}

.home__heading--highlighted {
  color: var(--primary-color);
}

.home__sub-heading {
  font-size: var(--font-size-500);
  line-height: 1.4;
  max-width: 410px;
  margin-bottom: 40px;
}

.home__cta-wrapper .cta__button {
  margin-right: 40px;
}

/*=============== PRODUCTS SECTION ===============*/

/* .section__pre-title {
  display: block;
  text-align: center;
} */

.section__meta {
  text-align: center;
  margin-bottom: 60px;
}

.section__pre-title {
  font-size: var(--font-size-300);
  font-weight: var(--font-medium);
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--primary-color);
}

.section__title {
  font-size: var(--font-size-700);
  font-weight: var(--font-bold);
  text-transform: capitalize;
  margin-top: 10px;
  margin-bottom: 20px;
}

.section__sub-title {
  font-size: var(--font-size-500);
  text-transform: capitalize;
}

.products-grid {
  /* grid-template-columns: repeat(4, 1fr); */
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* .product__wrapper,
.product__image {
  border: 1px solid #000;
} */

.product__wrapper {
  /* min-width: 280px; */
  text-align: center;
}

.product__image-wrapper {
  overflow: hidden;
  position: relative;
}

.product__image {
  margin: 0 auto;
}

.product__add-btn-wrapper {
  width: 100%;
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform: translateY(103%);
}

.product__wrapper:hover .product__add-btn-wrapper {
  transform: translateY(0%);
}

.product__add-btn {
  width: 100%;
  font-weight: normal;
  border-radius: 4px;
}

.product__title {
  font-size: var(--font-size-500);
  font-weight: normal;
  text-align: center;
  text-transform: capitalize;
  color: var(--title-color);
  margin: 10px;
}

.product__price {
  font-size: var(--font-size-500);
  font-weight: var(--font-bold);
  color: var(--primary-color);
}

.load-more-btn_wrapper {
  text-align: center;
  margin-top: 100px;
}

/*=============== CATEGORIES SECTION ===============*/

.categories__grid {
  grid-template-columns: minmax(390px, 1fr) minmax(200px, 200px) minmax(390px, 1fr);
  /* grid-template-rows: repeat(2, 300px); */
  /* gap: 30px 30px; */
  grid-template-areas:
    "product-cat1 product-cat1 product-cat2"
    "product-cat3 product-cat4 product-cat4";
  /* grid-template-areas:
    "Div-1 Div-1 Div-2"
    "Div-3 Div-4 Div-4"; */
}

.categories__grid-item {
  min-height: 300px;
  padding: 40px;
  border-radius: 10px;
}

.product-cat1 {
  grid-area: product-cat1;
  background-image: url("../images/categories/cat-phone-case.jpg");
  background-position: left top;
  background-repeat: no-repeat;
  background-size: cover;
}
.product-cat2 {
  grid-area: product-cat2;
  background-image: url("../images/categories/cat-powerbanks.jpg");
  background-position: left top;
  background-repeat: no-repeat;
  background-size: cover;
}
.product-cat3 {
  grid-area: product-cat3;
  background-image: url("../images/categories/cat-fast-chargers.jpg");
  background-position: left top;
  background-repeat: no-repeat;
  background-size: cover;
}
.product-cat4 {
  grid-area: product-cat4;
  background-image: url("../images/categories/cat-accessories.jpg");
  background-position: left top;
  background-repeat: no-repeat;
  background-size: cover;
}

@media all and (-ms-high-contrast: none) {
  .categories__grid {
    display: -ms-grid;
    -ms-grid-columns: minmax(390px, 1fr) minmax(200px, 200px) minmax(390px, 1fr);
    /* -ms-grid-rows: repeat(2, 300px); */
    /* gap: 30px 30px; */
  }

  .product-cat1 {
    grid-row: 1;
    -ms-grid-row: 1;
    -ms-grid-row-span: 1;
    grid-column: 1;
    -ms-grid-column: 1;
    -ms-grid-column-span: 2;
  }

  .product-cat2 {
    grid-row: 1;
    -ms-grid-row: 1;
    -ms-grid-row-span: 1;
    grid-column: 3;
    -ms-grid-column: 3;
    -ms-grid-column-span: 3;
  }

  .product-cat3 {
    grid-row: 2;
    -ms-grid-row: 2;
    -ms-grid-row-span: 1;
    grid-column: 1;
    -ms-grid-column: 1;
    -ms-grid-column-span: 0;
  }

  .product-cat4 {
    grid-row: 2;
    -ms-grid-row: 2;
    -ms-grid-row-span: 1;
    grid-column: 2;
    -ms-grid-column: 2;
    -ms-grid-column-span: 2;
  }
}

.categories__pre-title {
  letter-spacing: 2px;
}

.categories__title {
  font-size: var(--font-size-650);
  font-weight: var(--font-medium);
  text-transform: capitalize;
  margin-top: 10px;
  margin-bottom: 30px;
}

.categories__cta {
  font-weight: 400;
  padding: 0.625rem 1.875rem;
}

/*=============== FEATURES SECTION ===============*/

.features {
  padding-bottom: 7.5rem;
}

.features .section__meta {
  margin-bottom: 100px;
}

.features_wrapper {
  align-items: flex-start;
  gap: 30px;
}

.feature__col {
  justify-content: center;
  flex-direction: column;
  max-width: 380px;
  text-align: center;
  padding: 0 40px;
}

.feature__col-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
}

.feature__title {
  font-size: var(--font-size-600);
  font-weight: var(--font-medium);
  text-transform: capitalize;
  margin-bottom: 10px;
}

.feature__desc {
  font-size: var(--font-size-400);
  max-width: 300px;
}

/*=============== FOOTER ===============*/

.footer {
  background-color: var(--dark-color);
  text-align: center;
  padding-top: 3.125rem;
  /* padding-bottom: 3.125rem; */
}

.footer__logo {
  margin-bottom: 40px;
}

.footer__nav-wrapper {
  padding-bottom: 3.125rem;
}

.footer__nav-links {
  justify-content: center;
}

.footer__nav-link {
  color: var(--light-color);
  margin: 0 30px;
}

.copyright__wrapper {
  padding-top: 1.875rem;
  padding-bottom: 1.875rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.copyright__text {
  font-size: var(--font-size-300);
  font-weight: 300;
  color: var(--light-color);
}
