/* Custom Properties */

/* =====================Par 2--------------------------- */

:root {
  /* color */
  --clr-gray: 0 0% 86.3%;
  --clr-gray-light: 0 0% 93.3%;
  --clr-red: 356.7 90.1% 56.5%;
  --clr-black: 0 0% 21.2%;
  --clr-yellow: 43.8 99% 58.8%;
  --clr-very-light-gray: 300 2.7% 92.7%;
  --clr-green: 144.3 64.4% 49.6%;
  --clr-blue: 214.5 100% 53.9%;
  --clr-white: 0 0% 100%;

  /* font-size */
   --fs-bf-194: 12.125rem;
  --fs-bf-194: 12.3vw;
  --fs-bf-109: 6.8125rem;
  --fs-bf-65: 4.065rem;
  --fs-bf-80: 5rem;
  --fs-bf-50: 3.125rem;
  --fs-bf-45: 2.8125rem;
  --fs-bf-30: 1.875rem;
  --fs-bf-20: 1.25rem;
  --fs-bf-16: 1rem;
  --fs-bf-15: 0.9375rem;

  /* font family */
  --font-montserrat: "Montserrat", sans-serif;
  --font-poppins: "Poppins", sans-serif;
}

/* =====================Par 2--------------------------- */

@media (max-width: 35em) {
  :root {
    --fs-bf-194: 12.3vw;
    --fs-bf-109: 6.8125rem;
    --fs-bf-65: 4.065rem;
    --fs-bf-80: 5rem;
    --fs-bf-50: 3.125rem;
    --fs-bf-45: 2.8125rem;
    --fs-bf-30: 1.875rem;
    --fs-bf-20: 1rem;
    --fs-bf-16: 0.8rem;
    --fs-bf-15: 0.8rem;
  }
}
@media (min-width: 35em) and (max-width: 59em) {
  :root {
    --fs-bf-194: 12.3vw;
    --fs-bf-109: 6.8125rem;
    --fs-bf-65: 4.065rem;
    --fs-bf-80: 5rem;
    --fs-bf-50: 3.125rem;
    --fs-bf-45: 2.8125rem;
    --fs-bf-30: 2.55rem;
    --fs-bf-20: 1.25rem;
    --fs-bf-16: 1rem;
    --fs-bf-15: 0.8375rem;
  }
}

@media (min-width: 59em) {
  :root {
    --fs-bf-194: 12.3vw;
    --fs-bf-109: 6.8125rem;
    --fs-bf-65: 4.065rem;
    --fs-bf-80: 5rem;
    --fs-bf-50: 3.125rem;
    --fs-bf-45: 2.8125rem;
    --fs-bf-30: 1.875rem;
    --fs-bf-20: 2rem;
    --fs-bf-16: 1rem;
    --fs-bf-15: 0.9375rem;
  }
}

/* ====================Part 1----------------------------------------------- */
/* Default Reset=============== */

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

/* Removing default margin============== */
body,
h1, h2, h3, h4, figure, p, dl, dd {
  margin: 0;
}

/* Removing list style=============== */

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* set core root defaults=========== */

html:focus-within {
  scroll-behavior: smooth;
}

/* set core body default============== */

body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  font-family: var(--font-montserrat);
}

/* A element that don't have a class get default style==== */

a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* make image easier to work with=========== */

img, picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */

input, button, textarea, select {
  font: inherit;
}

::-webkit-scrollbar {
  display: none;
}

/* Remove al animation, transition & smooth scroll for people that prefer not to see
them */

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *, 
  *::after,
  *::before {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01s !important;
    scroll-behavior: auto !important;
  }
}

/* ============= End of General Reset =================== */


/* =========================================== */

/* Some Important Utility Class  */
/* ===================== */

body, html {
  overflow-x: hidden;
}

/* /////////////////////Background-Color Utility Class */

.bg-red {background-color: hsl(var(--clr-red));}
.bg-black {background-color: hsl(var(--clr-black));}
.bg-blue {background-color: hsl(var(--clr-blue));}
.bg-gray {background-color: hsl(var(--clr-gray));}
.bg-green {background-color: hsl(var(--clr-green));}
.bg-gray-light {background-color: hsl(var(--clr-gray-light));}
.bg-very-light-gray {background-color: hsl(var(--clr-very-light-gray));}
.bg-white {background-color: hsl(var(--clr-white));}
.bg-yellow {background-color: hsl(var(--clr-yellow));}

/* /////////////////////Text-Color Utility Class */

.text-red {color: hsl(var(--clr-red));}
.text-black {color: hsl(var(--clr-black));}
.text-blue {color: hsl(var(--clr-blue));}
.text-gray {color: hsl(var(--clr-gray));}
.text-green {color: hsl(var(--clr-green));}
.text-gray-light {color: hsl(var(--clr-gray-light));}
.text-very-light-gray {color: hsl(var(--clr-very-light-gray));}
.text-white {color: hsl(var(--clr-white));}
.text-yellow {color: hsl(var(--clr-yellow));}

/* ======== Font Size =========*/

.fs-900 {font-size: var(--fs-bf-194);}
.fs-800 {font-size: var(--fs-bf-109);}
.fs-700 {font-size: var(--fs-bf-80);}
.fs-600 {font-size: var(--fs-bf-65);}
.fs-500 {font-size: var(--fs-bf-50);}
.fs-400 {font-size: var(--fs-bf-45);}
.fs-300 {font-size: var(--fs-bf-30);}
.fs-200 {font-size: var(--fs-bf-20);}
.fs-100 {font-size: var(--fs-bf-16);}
.fs-50 {font-size: var(--fs-bf-15);}

/* =========== Font Bold ================= */

.bold-100 {font-weight: 100;}
.bold-200 {font-weight: 200;}
.bold-300 {font-weight: 300;}
.bold-400 {font-weight: 400;}
.bold-500 {font-weight: 500;}
.bold-600 {font-weight: 600;}
.bold-700 {font-weight: 700;}
.bold-800 {font-weight: 800;}
.bold-900 {font-weight: 900;}
.bold-bold {font-weight: bold;}
.bold-bolder {font-weight: bolder;}

/* ============ End of Utility Class */

/* ======== Component Utility Class ================== */

.uil {
  cursor: pointer;
}

.flex {
  display: flex;
  gap: var(--flex-gap, 1rem); 
}

.container {
  width: 96vw;
  margin-inline: auto;
  padding-inline: 2rem;
}

/* =============== End of Component ==================*/

/* ============ Start== Header Section ============== */

.primary-header {
  justify-content: space-between;
  align-items: center;
  padding-block: 2rem;
}

.header-inner-one {
  align-items: center;
}

.logo {
  margin-right: 2rem;
}

/* Responsive Logo */
.logo img {
  width: 160px;/* min 100px, max 160px, scales with viewport */
  height: auto;                     /* maintain aspect ratio */
  object-fit: contain;
}

@media (max-width: 440px) {
  .logo img {
    width: 100260px;
  }
}

@media (max-width: 420px) {
  .logo img {
    width: 1000260px;
  }
}

@media (max-width: 355px) {
  .logo img {
    width: 10000000000000000000000000000000000000000000000000000000260px;
  }
}


.mobile-open-btn{
  display: none;
}


.primary-navigation {
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 3rem
}

.primary-navigation a {
  text-decoration: none;
  color: hsl(var(--clr-black) / 0.6);
}

.primary-navigation a:hover {
  color: hsl(var(--clr-black));
}

.primary-navigation .active {
  color: hsl(var(--clr-black));
}

.header-login {
  justify-content: center;
  align-items: center;
  --flex-gap: 2rem;
}

/* ===== Cart Icon Badge ===== */
.header-login .uil-shopping-bag {
  position: relative;
  font-size: 2rem;
  cursor: pointer;
}

.header-login .uil-shopping-bag::after {
  content: attr(data-count);
  position: absolute;
  top: -1px;          /* move to the top edge */
  right: -5px;        /* move to the right edge */
  min-width: 18px;
  height: 18px;
  padding: 0 4px;     /* allow some width for double digits */
  background: red;
  color: white;
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  visibility: hidden; /* hidden when 0 */
}


.header-login .uil-shopping-bag[data-count]:not([data-count="0"])::after {
  visibility: visible;
}

.mobile-close-btn {
  display: none;
}

.grid {
  display: grid;
}

/* ====== CART PANEL ====== */
.cart-icon {
  position: absolute;
  top: 0;
  right: 0;
  width: 350px;
  max-width: 100%;
  height: 100vh;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  transform: translateX(1000%);
  transition: transform 0.3s ease-in-out;
  z-index: 1111;
}

.cart-icon[data-visible="true"] {
  transform: translateX(0);
}

.shopping {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
}

.shopping > p {
  font-size: 20px;
  font-family: sans-serif;
}

.shopping > i {
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.3s;
}

.shopping i:hover {
  transform: rotate(90deg);
}

/* Cart Content */
.cart-content {
  padding: 1rem 1.5rem;
}

/* Cart Empty Message */
.cart.bold-800.flex {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
  gap: 0.5rem;
  font-family: sans-serif;
  font-size: 1.5rem;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.5);
}

.cart.bold-800.flex p {
  margin-top: -50px;
}

.cart.bold-800.flex i {
  font-size: 8rem;
  margin-top: -80px;
}

/* Cart Box */
.cart-box {
  display: flex;
  align-items: center;
  margin-top: 20px;
  position: relative;
}

.cart-box img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 15px;
}

.cart-details {
  display: grid;
  gap: 5px;
  margin-right: auto;
}

.cart-product-title {
  font-size: 16px;
  line-height: 1;
  margin-bottom: 5px;
}

.cart-quantity {
  display: flex;
  width: 100px;
  border: 1px solid hsl(var(--clr-gray));
  border-radius: 6px;
}

.cart-quantity button {
  background: transparent;
  border: none;
  width: 30px;
  font-size: 18px;
  cursor: pointer;
}

.cart-quantity .number {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  border-left: 1px solid hsl(var(--clr-gray));
  border-right: 1px solid hsl(var(--clr-gray));
  font-size: 14px;
}

/* Trash Icon */
.cart-remove {
  position: absolute;
  right: 10px;
  font-size: 40px;
  cursor: pointer;
  transition: 0.3s;
}

.cart-remove:hover {
  color: hsl(var(--clr-red));
  transform: scale(1.1);
}

/* Buy Now Button */
.cart-footer {
  border-top: 1px solid hsl(var(--clr-gray));
}

.btn-buy {
  display: none;
  padding: 10px 30px;
  background: hsl(var(--clr-red));
  color: hsl(var(--clr-white));
  border-radius: 2rem;
  font-weight: 600;
  margin: 20px auto;
  cursor: pointer;
  border: 2px solid hsl(var(--clr-black) / 0.5);
  transition: 0.3s;
}

.btn-buy.active {
  display: block;
}

.btn-buy:hover {
  background: hsl(var(--clr-black));
  color: hsl(var(--clr-red));
  border: 2px solid hsl(var(--clr-black));
  box-shadow: 0 0 20px hsl(var(--clr-white) / 0.2);
}

#cross-btn {
  font-size: 1.5rem;
  cursor: pointer;
  transition: 0.3s;
}

#cross-btn:hover {
  color: hsl(var(--clr-red));
  transform: scale(1.1);
}



/* ============ HEADER BREAKPOINT ================= */
/* ===================== Mobile ====================== */

@media (max-width: 35em) {
  .primary-navigation {
    position: fixed;
    /* width: 100%; */
    flex-direction: column;
    z-index: 9999;
    text-align: center;
    gap: 1.7rem;
    inset: 0 0 0 0;
    background: rgba(255, 255, 255, 0.69);
    backdrop-filter: blur(10px);
    padding: clamp(3rem, 30vh, 10rem) 0;
    transform: translateY(-1000%); 
    transition: transform 250ms ease-in-out;
  }
  .primary-navigation[data-visible="true"] {
    transform: translateY(0%);
  }
  .primary-navigation a {
    font-size: var(--fs-bf-30);
  }
  /* .header-login {
    --flex-gap: 1.5rem;
    margin-left: 4rem;
  } */
  .mobile-close-btn {
    display: block;
    z-index: 8888888;
    top: 5rem;
    position: fixed;
    background: transparent;
    right: 14rem;
    border: none;
    text-align: center;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    cursor: pointer;
    transform: translateY(-300%);
    transition: transform 25ms ease-in-out;
  }
  .mobile-close-btn[data-visible="true"] {
    transform: translateY(0%);
  }
  .mobile-open-btn {
    display: block;
    font-size: 2rem;
    cursor: pointer;
  }
  .cart-icon {
    z-index: 9999;
    position: fixed;
    width: 100%;
  }
}
/* ============ Ipad ===================== */

@media (min-width: 35em) and (max-width: 59em) {
  .primary-navigation {
    position: fixed;
    /* width: 100%; */
    flex-direction: column;
    z-index: 9999;
    text-align: center;
    gap: 1.7rem;
    inset: 0 0 0 0;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    padding: clamp(3rem, 30vh, 10rem) 0;
    transform: translateY(-1000%); 
    transition: transform 250ms ease-in-out;
  }
  .primary-navigation[data-visible="true"] {
    transform: translateY(0%);
  }
  .primary-navigation a {
    font-size: var(--fs-bf-30);
  }
  .header-login {
    --flex-gap: 1.5rem;
    margin-left: 4rem;
  }
  .mobile-close-btn {
    display: block;
    z-index: 8888888;
    top: 5rem;
    background: transparent;
    position: fixed;
    right: 14rem;
    /* left: 22.5resm; */
    border: none;
    font-size: 3rem;
    cursor: pointer;
    transform: translateY(-300%);
    transition: transform 250ms ease-in-out;
  }
  .mobile-close-btn[data-visible="true"] {
    transform: translateY(0%);
    align-items: center;
    align-items: center;
    place-items: center;
  }
  .mobile-open-btn {
    display: block;
    font-size: 2rem;
    cursor: pointer;
  }
  .cart-icon {
    z-index: 9999;
    position: fixed;
    width: 100%;
  }
}

/* =========== Desktop =============== */

@media (min-width: 59em) {
  .cart-icon {
    position: fixed;
    inset: 10% 5% 50% 60%;
    width: auto;
    height: 45%;
    border-radius: 1rem;
    transform: translateX(150%);
    transition: transform 250ms ease-in-out;
    z-index: 222;
  }
  .cart-icon[data-visible="true"] {
    transform: translate(0);
  }
  .cart-icon .shopping {
    display: none;
  }
  .cart {
    padding-top: 2rem;
  }
}
/* =================== Ends of Header ========================== */

/* Hero Section */
/* ====================================== */

.block {display: block;}

.uppercase {text-transform: uppercase;}
.lineheight {line-height: var(--line, 3rem);}
.lineheight2 {line-height: var(--line2, 7rem);}

.large-btn {
  border: 0;
  padding: 0.7rem 1rem;
  border-radius: 2rem;
  cursor: pointer;
  transition: transform 250ms ease-in-out;
}

.large-btn:hover {
  background: hsl(var(--clr-black));
  box-shadow: 3px 2px 37px -6px rgba(255, 255, 255, 0.69);
}

.hero-section {
  width: 93vw;
  margin-inline: auto;
  padding-inline: 2rem;
  background: hsl(var(--clr-gray));
  border-radius: 2rem;
  padding-top: 5rem;
}

.hero-section >* img {
  margin-top: -18rem;
  margin-left: 2rem;
  object-fit: cover;
}

.hero-inner {
  justify-content: space-between;
  align-items: center;
  --flex-gap: 5rem;
  margin-top: -3.5rem;
  padding-bottom: 4rem;
}

.hero-info {
  display: none;
}

.opticfiber-size{
  font-size: 120px;
}

@media (min-width: 35em) and (max-width: 59em) {
  .hero-section {
    width: 95vw;
    margin-inline: auto;
    padding-inline: 4rem;
    padding-top: 7rem;
  }
  .hero-section >* img {
    margin-top: -20rem;
    margin-left: 5rem;
  }

  .lineheight2 {
    --line2: 7rem;
  }

  .opticfiber-size {
    font-size: 100px;
  }
}

@media (max-width: 685px) {
  .opticfiber-size {
    font-size: 70px;
  }
}

@media (max-width: 350px) {
  .hero-inner button{
    margin-top: 5rem;
  }
}

@media (max-width: 580px) {
  .opticfiber-size {
    font-size: 50px;
  }
  .lineheight2 {
    --line2: 4rem;
  }
}


@media (max-width: 559px) {
  .hero-section >* img {
  margin-top: -13rem;
  margin-left: 6rem;
  object-fit: cover;
  }
}

@media (max-width: 419px) {
  .lineheight2 {
    --line2: 2rem;
  }
  .hero-inner {
    margin-top: 4rem;
  }
  .opticfiber-size {
    font-size: 40px;
  }
}

@media (max-width: 670px) {
  .hero-inner {
    margin-top: 3rem;
  }
}

@media (max-width: 320px) {
  .hero-section {
    padding-left: 20px;
  }
}

@media (min-width: 59rem) {
  .hero-section {
    width: 95vw;
    margin-inline: auto;
    padding-inline: 4rem;
    padding-top: clamp(0, 15vh, 15rem,);
    margin-bottom: 100px;
  }
  .lineheight {
    --line: 13rem;
  }
  .lineheight2 {line-height: var(--line2, 10rem);}
  .hero-info {
    display: block;
    text-align: end;
    width: 25%;
  }
  .big-wireless {
    font-size: 5rem;
  }
  .hero-inner {
    margin-top: -10rem;
    padding-bottom: 8rem;
  }
  .hero-section >* img {
    margin-top: -31rem;
    margin-left: 17rem;
  }
  .opticfiber-size {
  font-size: 150px;
}
}

/* =========== Media Quries For Font Sizes =================== */
@media (max-width: 35em) {
  :root { 
    /* font-size */
   /* --fs-bf-194: 12.125rem; */
  --fs-bf-194: 12.3vw;
  --fs-bf-109: 6.8125rem;
  --fs-bf-65: 4.065rem;
  --fs-bf-80: 5rem;
  --fs-bf-50: 3.125rem;
  --fs-bf-45: 2.8125rem;
  --fs-bf-30: 1.875rem;
  --fs-bf-20: 1rem;
  --fs-bf-16: 0.8rem;
  --fs-bf-15: 0.8rem;
  }
}

@media (min-width: 35em) and (max-width: 59em){
  :root {
     /* font-size */
   /* --fs-bf-194: 12.125rem; */
  --fs-bf-194: 12.3vw;
  --fs-bf-109: 6.8125rem;
  --fs-bf-65: 4.065rem;
  --fs-bf-80: 5rem;
  --fs-bf-50: 3.125rem;
  --fs-bf-45: 2.8125rem;
  --fs-bf-30: 2.55rem;
  --fs-bf-20: 2rem;
  --fs-bf-16: 1rem;
  --fs-bf-15: 0.8375rem;
  }
}

@media (min-width: 59em) {
  :root {
     /* font-size */
   /* --fs-bf-194: 12.125rem; */
  --fs-bf-194: 12.3vw;
  --fs-bf-109: 6.8125rem;
  --fs-bf-65: 4.065rem;
  --fs-bf-80: 5rem;
  --fs-bf-50: 3.125rem;
  --fs-bf-45: 2.8125rem;
  --fs-bf-30: 1.875rem;
  --fs-bf-20: 2rem;
  --fs-bf-16: 1rem;
  --fs-bf-15: 0.9375rem;
  }
}

/* ============== Product Section ===================== */

.product-section {
  width: 93vw;
  margin-inline: auto;
}

.category {
  border-radius: 2rem;
  grid-template-columns: repeat(2, 1fr);
  align-items: flex-end;
  padding: 7rem 4rem 2rem 4rem;
  position: relative;
  overflow: hidden;
  z-index: 777;
  margin-block: 1rem;
}

.product-btn {
  margin-top: 1rem;
  padding-inline: 2rem;
}

.earphone {
  color: hsl(var(--clr-white) / 0.6);
}

.product-img1 {
  position: absolute;
  top: -2.3rem;
  right: 3rem;
  z-index: -11;
}

.product-img2 {
  position: absolute;
  top: 0.5rem;
  right: -6rem;
  z-index: -111;
}

.product-img3 {
  position: absolute;
  width: 80%;
  right: -3.5rem;
  top: 2.5rem;
}

.product-img4 {
  position: absolute;
  width: 50%;
  right: 1rem;
  top: 5rem;
}

.product-img5 {
  position: absolute;
  width: 100%;
  right: -4rem;
  top: 1rem;
  z-index: -1;
}

.product-img6 {
  position: absolute;
  width: 70%;
  right: -3rem;
  top: 5rem;
  z-index: -1;
}

/* ============ Tab and Desktop ================== */

.category:nth-child(1) {
  grid-area: one;
}

.category:nth-child(2) {
  grid-area: two;
}

.category:nth-child(3) {
  grid-area: three;
}

.category:nth-child(4) {
  grid-area: four;
}

.category:nth-child(5) {
  grid-area: five;
}

.category:nth-child(6) {
  grid-area: six;
}


@media (min-width: 35em) and (max-width: 59em) {
  .product-section {
    width: 95vw;
    display: grid;
    margin-inline: auto;
    margin-block: 2rem;
    gap: 1.5rem;
    grid-template-areas: 
    'one two'
    'three three'
    'six five'
    'four four';
  }
  .category {
    margin-block: 0rem;
  }
  .product-img3 {
    position: absolute;
    right: -1rem;
    width: 60%;
    top: 1rem;
  }
  .product-img4 {
    width: 50%;
    position: absolute;
    right: 1rem;
    top: 1rem;
  }
  .product-img5 {
    position: absolute;
    width: 110%;
    top: 4.5rem;
  }
}

/* ============== Desktop ===================== */

@media (min-width: 59em) {
  .product-section {
    width: 95vw;
    margin-inline: auto;
    margin-block: 2rem;
    gap: 1.5rem;
    display: grid;
    grid-template-areas: 'one two three three'
                          'four four five six';
  }
  .product-img1 {
    width: 150%;
    right: -10rem;
  }
  .product-img2 {
    right: -6rem;
  }
  .product-img3 {
    width: 70%;
    right: -3.5rem;
    top: -0.5rem;
  }
  .product-img4 {
    width: 50%;
    right: 1rem;
    top: 2rem;
  }
  .product-img5 {
    width: 120%;
    right: -4rem;
    top: 4rem;
    z-index: -1;
  }
  .product-img6 {
    width: 90%;
    right: -3rem;
    top: 5rem;
    z-index: -1;
  }
}

/* ================= End of Section ========================== */ 


/* ==================== Service Layout ======================== */
.service-section {
  width: 90vw;
  margin-inline: auto;
  margin-block: 2rem;
  display: grid;
  gap: 1.5rem;
  grid-template-areas:  'one two'
                        'three four';
}

.service:nth-child(1) {
  grid-area: one;
}

.service:nth-child(2) {
  grid-area: two;
}

.service:nth-child(3) {
  grid-area: three;
}

.service:nth-child(4) {
  grid-area: four;
}

.service {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 1rem;
}

.service .fs-200 {
  font-size: 0.rem;
}

.service .fs-50 {
  font-size: 0.79rem;
}

/* ============ Media Quaries ============= Desktop ====================== */

@media (min-width: 59em){
.service-section {
  width: 90vw;
  margin-inline: auto;
  display: grid;
  gap: 5rem;
  grid-template-areas: 'one two three four'; 
 }
.service .fs-200 {
  font-size: 1rem;
}
.service .fs-50 {
  font-size: 0.79rem;
}
}

/* ================== Features Layout ====================== */

/* ================= FEATURES SECTION ================= */

.feature-section {
  width: 90vw;
  margin-inline: auto;
  margin-top: 15rem;
  margin-bottom: 2rem;
  padding: 6rem 4rem 3rem; /* enough space for content below image */
  border-radius: 2rem;

  display: grid;
  gap: 2rem;
  place-items: center;
  text-align: center;

  position: relative;
  overflow: visible;
}

.feature-one .date {
  line-height: 40px;
  margin-top: 20px;
}

/* ================= FEATURE CARD ================= */

.feature-one {
  position: static;
  width: 100%;
}

/* ================= IMAGE ON TOP BORDER ================= */

.feature-section .feature-one img {
  position: absolute;
  top: -40%;                  /* flush with top border */
  left: 50%;
  transform: translateX(-50%); /* centered horizontally only */
  width: 400px;            /* smaller to avoid blocking text */
  z-index: 5;
  display: block;
}

/* ================= INFO ================= */

.feature-info {
  max-width: 520px;
  z-index: 2;
  padding-inline: 1rem; /* padding for small screens */
}

/* ================= BUTTON ================= */

.product-btn {
  margin-top: 2rem;
  padding: 0.8rem 2.2rem;
  border-radius: 3rem;
}

/* ================= TABLET ================= */

@media (min-width: 35em) {
  .feature-section {
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
    padding-top: 8rem; /* reduced padding-top since image is flush */
    padding-inline: 4rem;
  }

  .feature-section .feature-one img {
    width: 500px;
  }

  .value {
    display: block;
  }

  .lineheight3 {
    line-height: 4rem;
  }
}

/* ================= DESKTOP ================= */

@media (min-width: 59em) {
  .feature-section {
    width: 95vw;
    gap: 8rem;
    padding-top: 10rem; /* reduced padding for flush image */
    padding-inline: 6rem;
    padding-bottom: 5rem;
  }

  .feature-section .feature-one img {
    width: 600px;
  }

  .font-size {
    font-size: 7rem;
    line-height: 5.5rem;
  }
}

/* ================= MOBILE / SMALL SCREENS ================= */

@media (max-width: 39.375em) { /* 630px */
  .feature-section {
    grid-template-columns: 1fr; /* single column */
    text-align: center;
    padding-top: 6rem; /* small enough for mobile */
    padding-inline: 2rem;
    margin-top: 7rem;
  }

  .feature-section .feature-one img {
    position: absolute;
    top: -10%;
    width: 70%;          /* smaller on mobile */
    transform: translateX(-50%); /* stays flush and centered */
  }

  .feature-section .font-size {
   line-height: 4rem;
  }

  .feature-section .margin-top {
    margin-top: 70px;
  }

  .feature-info {
    padding-inline: 1rem;
  }
}

@media (max-width: 399px) {
   .feature-section .feature-one img {
    position: absolute;
    top: -10%;
    width: 90%;          /* smaller on mobile */
    transform: translateX(-50%); /* stays flush and centered */
  }
}

@media (max-width: 350px) {
   .feature-section .feature-one img {
    position: absolute;
    top: -10%;
    width: 110%;          /* smaller on mobile */
    transform: translateX(-50%); /* stays flush and centered */
  }
}

@media (max-width: 320.99px) {
  .feature-section {
    font-size: 80%;
  }
  .feature-one .font-size {
    font-size: 400%;
    line-height: 50px;
  }
  .feature-info p:nth-child(2) {
    font-size: 160%;
  }
}


/* ================ Best Product Layout ====================== */
.best-product {
  padding-block: 5rem;
  text-align: center;
}

.letter-spacing {
  font-size: 2.5rem;
}

.best-seller {
  width: 90vw;
  margin-inline: auto;
  text-align: center;
  display: grid;
  gap: 1rem;
  grid-template-areas: 'one two'
                        'three four'
                        'five six'
                        'seven eight';
}


.best-seller:nth-child(1) {
  grid-area: one;
}

.best-seller:nth-child(2) {
  grid-area: two;
}

.best-seller:nth-child(3) {
  grid-area: three;
}

.best-seller:nth-child(4) {
  grid-area: four;
}

.best-seller:nth-child(5) {
  grid-area: five;
}

.best-seller:nth-child(6) {
  grid-area: six;
}

.best-seller:nth-child(7) {
  grid-area: seven;
}

.best-seller:nth-child(8) {
  grid-area: eight;
}

.product {
  text-align: left;
  /* --gap-gap: -1rem; */
  cursor: pointer;
  position: relative;
  overflow-x: hidden;
}

.product:hover {
  color: hsl(var(--clr-red));
}

.product-details {
  position: absolute;
  height: 90%;
  place-items: center;
  font-size: 25px;
  /* --grid-gap: 0; */
  width: 100%;
  right: 0;
  top: 0;
  display: flex;
  gap: 2rem;
  border-radius: 2rem;
  padding-left: 10px;
  transform: translateX(120%);
  transition: transform 250ms ease-in-out;
  background: rgb(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
}

@media (max-width: 400px) {
  .product-details {
    position: absolute;
    height: 85%;
  }
}

@media (max-width: 499px) {
  .product-details {
    position: absolute;
    height: 88%;
  }
}

.product-details > i:nth-child(1) {
 position: absolute;
 top: 0;
}

.product-details > i:nth-child(2) {
  position: absolute;
  bottom: 0;
  right: 0;
  padding-right: 5px;
  /* font-size: 30px; */
}

.product:hover .product-details {
  transform: translateX(0%);
}

.product > img {
  border-radius: 2rem;
}

.letter-spacing {
  letter-spacing: -1px;
  /* font-size: 2..2rem; */
}

@media (min-width: 35em) and (max-width: 59em) {
  .best-seller {
    padding-block: 2rem;
    gap: 3rem;
    grid-template-areas: 'one two'
                          'three four'
                          'five six'
                          'seven eight';                    
  }
  .product-details {
    position: absolute;
    height: 90%;
    place-items: center;
    font-size: 40px;
    /* --grid-gap: 0; */
    width: 100%;
    right: 0;
    top: 0;
    display: flex;
    gap: 2rem;
    border-radius: 2rem;
    padding-left: 10px;
    transform: translateX(120%);
    transition: transform 250ms ease-in-out;
    background: rgb(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
  }

  .product-details > i:nth-child(1) {
      position: absolute;
      top: 0;
  }

.product-details > i:nth-child(2) {
    position: absolute;
    bottom: 0;
    right: 0;
    padding-right: 5px;
  }
}

@media (min-width: 59em) {
  .best-seller {
    width: 95vw;
    gap: 3rem;
    grid-template-areas: 'one two three four'
                          'five six seven eight';
    padding-block: 2rem;
  }
    .product-details {
    position: absolute;
    height: 90%;
    place-items: center;
    font-size: 40px;
    /* --grid-gap: 0; */
    width: 100%;
    right: 0;
    top: 0;
    display: flex;
    gap: 2rem;
    border-radius: 2rem;
    padding-left: 10px;
    transform: translateX(120%);
    transition: transform 250ms ease-in-out;
    background: rgb(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
  }

  .product-details > i:nth-child(1) {
      position: absolute;
      top: 0;
  }

.product-details > i:nth-child(2) {
    position: absolute;
    bottom: 0;
    right: 0;
    padding-right: 5px;
  }
}


/* ==================== Second Feature Layout ============================= */
@media (min-width: 59em) {
  .feature-section {
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
    padding-top: 8rem; /* reduced padding-top since image is flush */
    padding-inline: 4rem;
  }

  .feature-section .feature-yellow img {
    width: 900px;
    top: -8rem;
    left: 28rem;
  }

  .z-index {
    z-index: 111;
  }
}

@media (min-width: 35em) {
  .feature-section {
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
    padding-top: 8rem; /* reduced padding-top since image is flush */
    padding-inline: 4rem;
  }

  .feature-section .feature-yellow img {
    width: 800px;
  }

   .z-index {
    z-index: 111;
  }
}

@media (max-width: 39.375em) { /* 630px */
  .feature-section {
    grid-template-columns: 1fr; /* single column */
    text-align: center;
    padding-top: 6rem; /* small enough for mobile */
    padding-inline: 2rem;
    margin-top: 7rem;
  }

  .feature-section .feature-yellow img {
    position: absolute;
    top: -10%;
    width: 80%;          /* smaller on mobile */
    transform: translateX(-50%); /* stays flush and centered */
  }
}

@media (max-width: 399px) {
   .feature-section .feature-yellow img {
    position: absolute;
    top: -10%;
    width: 100%;          /* smaller on mobile */
    transform: translateX(-50%); /* stays flush and centered */
  }
}


.recent-news {
  width: 90vw;
  margin-inline: auto;
  padding-bottom: 2rem;
}

.news-box {
    border-radius: 2rem;
    overflow: hidden;
    display: flex;
    width: 98%;
    cursor: pointer;
    transition: transform 250ms ease-in-out;
}

.news-box img {
    width: 100%;
    object-fit: cover;
}

.news-box:hover {
  box-shadow: 5px 5px 57px -6px hsl(var(--clr-black) / 0.5);
  transition: transform 250ms ease-in-out;
}

@media (min-width: 59em) {
  .recent-news {
    width: 95vw;
    margin-inline: auto;
    padding-bottom: 5rem;
    grid-template-areas: 'one two three';
  }
  .news {
    grid-gap: 0.8rem;
  }
  .news h2 {
    font-size: 1.2rem;
  }
  .news p {
    font-size: 0.9rem;
    padding-inline: 4rem;
  }
  .news-container {
    display: grid; 
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 39em) and (max-width: 59em) {
  .news-container {
    display: grid; 
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =================== End News Section Layout ================================ */

/* ====================== brands Layout ================================ */

.brands {
  place-items: center;
  gap: 4rem;
  padding-block: 6rem;
  margin-block: 2rem;
  background: hsl(var(--clr-gray));
  grid-template-areas: 'one'
                        'two'
                        'three'
                        'four'
                        'five';
}

.brands:nth-child(1) {
  grid-area: one;
}

.brands:nth-child(2) {
  grid-area: two;
}

.brands:nth-child(3) {
  grid-area: three;
}

.brands:nth-child(4) {
  grid-area: four;
}

.brands:nth-child(5) {
  grid-area: five;
}

.brands >* img {
  opacity: 0.2;
  cursor: pointer;
  transition: transform 250ms ease-in-out;
}

.brands >* img:hover {
  opacity: 1;
}

/* ===================  Media Quaries ===================== */

@media (min-width: 35em) and (max-width: 59em) {
  .brands {
    grid-template-areas: 'one two'
                          'three four';
  }
}

@media (min-width: 59em) {
  .brands {
    grid-template-areas: 'one two three four five';
  }
}
/* ======================= End of Brands Section Layout  ================================== */

/* ============================ Footer Section Layout =========================================== */

.footer {
  margin-block: 5rem;
  width: 85vw;
  margin-inline: auto;
  grid-template-columns: auto;
  grid-gap: 1.5rem;
  grid-template-areas: 'one'
                        'two'
                        'three'
                        'four';
}

.footer:nth-child(1) {
  grid-area: one;
}

.footer:nth-child(2) {
  grid-area: two;
}

.footer:nth-child(3) {
  grid-area: three;
}

.footer:nth-child(four) {
  grid-area: four;
}

.footer-logo {
  grid-gap: 2rem;
}

.footer-logo p {
  width: 60%;
} 

.footer-logo .social-media {
  gap: 1.5rem;
  font-size: 1.3rem;
}

.footer-menu > ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-menu li {
  margin-top: 0.5rem;
}

.footer-menu a {
  text-decoration: none;
}

.footer .contact > p {
  width: 60%;
}

.inputField {
  margin-top: 20px;
  padding: 0.5rem;
  border-radius: 4rem;
}

.inputField > input {
  border: none;
  width: 60%;
}

.inputField > button {
  border: 0;
  padding: 0.7rem 1.5rem;
  border-radius: 3rem;
  cursor: pointer;
  
}

.inputField input:hover, 
.inputField input:focus {
  outline: none;
}

.inputField input[type="email"] {
  margin-left: 1rem;
}


/* ===================== Media Quaries =============================== */

@media (max-width: 398px) {
  .inputField input,
  .inputField input::placeholder,
  .inputField button {
    font-size: 13px;
  }
}

@media (max-width: 303.99px) {
  .inputField input,
  .inputField input::placeholder,
  .inputField button {
    font-size: 10px;
  }
}


@media (min-width: 35em) and (max-width: 59em) {
  .footer {
    grid-gap: 0.5rem;
    grid-auto-columns: auto;
    grid-template-areas: 'one two'
                          'three four';
  }
  .footer-logo p {
    font-size: 1rem;
  }
  .footer-logo .social-media {
    --flex-gap: 1.5rem;
    margin-bottom: 1rem;
  }
  .footer-menu li {
    margin-top: 0.1rem;
  }
  .footer-menu a {
    font-size: 1rem;
  }
  .updates {
    font-size: 1.5rem;
  }
  .inputField input {
    border: 0;
    width: 50%;
  }
  .inputField input[type="email"] {
    margin-left: 0.5rem;
  }
}

/* ======================== Desktop ================================ */

@media (min-width: 59em) {
  .footer {
    width: 92vw;
    margin-top: 6rem;
    grid-gap: 2rem;
    grid-auto-columns: auto;
    grid-template-areas: 'one two three four';
  }
  .footer-logo p {
    font-size: 1rem;
  }
  .footer-menu h3 {
    font-size: 1rem;
  }
  .footer-menu a {
    font-size: 1rem;
  }
  .contact h3 {
    font-size: 1rem;
  }
  .emails > h3 {
    font-size: 1rem;
  }
  .inputField input[type="email"] {
    margin-left: 10px;
  }
  .inputField input::placeholder,
  .inputField input,
  .inputField button {
    font-size: 13px;
  }
  .inputField {
    height: 60%;
  }
  .inputField > button {
    border: 0;
    padding: 0.2rem 1.5rem;
    border-radius: 3rem;
    cursor: pointer; 
  }
}
/* ====================== End Of Footer Layout ================================= */

/* =========================== CopyRight Layout ======================================= */

.text-align {
  text-align: center;
}

.p-top {
  padding: 1rem 0;
}

.copyright {
  margin-top: 5rem;
  padding: 1rem 2rem;
  margin-inline: auto;
  background: hsl(var(--clr-black));
  color: hsl(var(--clr-white) / 0.5);
}

.copyright span:hover {
  color: #00abf0;
}

@media (min-width: 35em) and (max-width: 59em) {
  .copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 59em) {
  .copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .c-font {
    font-size: 1rem;
  }
}

@media (max-width: 299.99px) {
  body, html {
    display: none;
  }
}