/*=============== GOOGLE FONTS ===============*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&family=Titan+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Marhey:wght@300..700&display=swap');

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(33, 93%, 54%);
  /* --first-color-dark: hsl(33, 100%, 45%); */
  --first-color-dark: hsl(33, 95%, 51%);
  /* --first-color-darken: hsl(33, 100%, 40%); */
  --first-color-darken: hsl(33, 95%, 48%);
  /* --second-color: hsl(45, 97%, 57%);
  --second-color-dark: hsl(45, 100%, 20%); */
  --second-color: black;
  /* --second-color: #ff8200; */
  --second-color-dark: hsl(0, 0%, 100%);
  --white-color: hsl(0, 0%, 100%);
  --shadow-img: drop-shadow(0 12px 24px hsla(0, 0%, 0%, 0.4));
  --shadow-circle: 0 12px 24px hsla(0, 0%, 0%, 0.4);
  --shadow-button: 0 -4px 8px hsla(0, 0%, 0%, 0.3);
  --shadow-card: 0 -8px 24px hsla(0, 0%, 0%, 0.3);
  --shadow-text: 0 2px 4px var(--first-color-darken);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/

  --body-font: 'Poppins', sans-serif;
  --second-font: 'Titan One', sans-serif;

  /* Arabic font */
  --body-font-ar: 'Marhey', sans-serif;
  --biggest-font-size: 3.5rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/* Arabic only */
html[lang='ar'] body {
  font-family: var(--body-font-ar);
  font-size: 22px;
  line-height: 1.8;
}

/* Arabic page headings bigger */
html[lang='ar'] .section__title {
  font-size: 3rem;
}

html[lang='ar'] .products__title {
  font-size: 1.5rem;
}

html[lang='ar'] .section__title,
html[lang='ar'] .products__title,
html[lang='ar'] .contact__title {
  font-family: var(--body-font-ar);
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --biggest-font-size: 5.5rem;
    --h1-font-size: 2.5rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--first-color);
  color: var(--white-color);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-block: 5rem 1rem;
}

.section__title {
  font: var(--font-regular) var(--h1-font-size) var(--second-font);
  color: var(--second-color);
  text-align: center;
  margin-bottom: 1.5rem;
  text-shadow: var(--shadow-text);
}

.main {
  overflow: hidden;
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: var(--first-color);
  z-index: var(--z-fixed);
  transition: box-shadow 0.2s;
}

.nav {
  position: relative;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo wrapper */
.nav__logo {
  display: flex;
  align-items: center;
  font-family: var(--second-font);
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  text-shadow: var(--shadow-text);
  color: var(--white-color);
  text-decoration: none;
}

/* Logo image */
.nav__logo img {
  width: 100px;
  height: auto;
  object-fit: contain;
  transition: transform 0.1s ease;
}

/* Hover effect */
.nav__logo:hover {
  color: var(--second-color);
  transform: scale(1.05);
}

.nav__logo:hover img {
  transform: rotate(-5deg) scale(1.1);
}

.nav__close,
.nav__toggle {
  display: flex;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Default button (English page) */
.lang-btn {
  background-color: var(--second-color);
  color: white;
  color: var(--second-color-dark);
  font-family: var(--body-font);
  font-weight: var(--font-semi-bold);
  font-size: var(--small-font-size);
  padding: 0.4rem 1rem;
  border: none;
  border-radius: 2rem;
  cursor: pointer;
  margin-left: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Arabic page → override with Marhey */
html[lang='en'] .lang-btn {
  font-family: var(--body-font-ar);
}

html[lang='ar'] .lang-btn {
  font-family: var(--body-font);
}

/* MOBILE HEADER FIX */
@media screen and (max-width: 768px) {
  .nav {
    flex-wrap: wrap;
    gap: 0.5rem; /* space between rows */
  }

  /* Logo stays on the left, toggle and language on the right */
  .nav__logo {
    flex: 1 1 auto; /* allow it to take space */
  }

  .nav__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto; /* no growing */
    margin-left: auto; /* push to right */
  }

  .lang-btn {
    padding: 0.35rem 0.8rem;
    font-size: 0.875rem;
  }

  .nav__toggle {
    font-size: 1.5rem;
  }

  /* Menu stays full screen when opened */
  .nav__menu {
    top: var(--header-height);
    padding-top: 2rem;
  }

  /* Make nav list centered vertically */
  .nav__list {
    row-gap: 1.5rem;
  }
}

/*=============== PRODUCT FILTER BUTTONS ===============*/
.products__filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  background-color: var(--first-color-dark);
  color: var(--white-color);
  font-family: var(--body-font);
  font-weight: var(--font-semi-bold);
  font-size: var(--normal-font-size);
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 2rem;
  cursor: pointer;
  transition: all 0.1s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15); /* softer, balanced shadow */
}

.filter-btn:hover {
  background-color: var(--first-color-darken);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* stronger hover shadow */
}

.filter-btn.active {
  background-color: var(--second-color);
  color: var(--second-color-dark);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25); /* consistent active shadow */
}

/* Navigation for mobile devices */
@media screen and (max-width: 1150px) {
  .nav__menu {
    position: fixed;
    left: -100%;
    top: 0;
    background-color: var(--first-color-dark);
    width: 100%;
    height: 100%;
    padding: 7rem 1.5rem 2.5rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: left 0.2s;
  }
}

.nav__list,
.nav__socials {
  display: flex;
}

.nav__list {
  flex-direction: column;
  row-gap: 3rem;
}

.nav__link {
  color: var(--white-color);
  font-size: var(--h2-font-size);
  font-weight: var(--font-semi-bold);
  transition: color 0.1s;
}

.nav__link:hover {
  color: var(--second-color);
}

.nav__close {
  position: absolute;
  top: 1.15rem;
  right: 1.5rem;
}

.nav__socials {
  column-gap: 1rem;
  align-self: flex-end;
}

.nav__social-link {
  color: var(--white-color);
  font-size: 1.5rem;
  transition: color 0.1s;
}

.nav__social-link:hover {
  color: var(--second-color);
}

/* Show menu */

.show-menu {
  left: 0;
}

/* Shadow header */

.shadow-header {
  box-shadow: 0 2px 16px hsla(0, 0%, 0%, 0.15);
}

/* Active link */

.active-link {
  color: var(--second-color);
}

/*=============== HOME ===============*/
.home__container {
  padding-top: 1.5rem;
  justify-content: center;
  row-gap: 4rem;
}

.home__data {
  position: relative;
  text-align: center;
}

/* Default (English) */
.home__title {
  font: var(--font-regular) var(--biggest-font-size) var(--second-font);
  line-height: 100%;
  margin-bottom: 1rem;
  text-shadow: var(--shadow-text);
}

/* Arabic version */
html[lang='ar'] .home__title {
  font-family: var(--body-font-ar); /* Force Marhey */
  font-size: calc(var(--biggest-font-size) * 1.1); /* Make it bigger */
  line-height: 120%; /* More breathing room */
}

.home__description {
  margin-bottom: 2.5rem;
}

.home__images {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
}

/* .home__circle {
  width: 320px;
  height: 320px;
  background-color: var(--first-color-darken);
  border-radius: 50%;
  box-shadow: inset var(--shadow-circle);
  display: grid;
  place-items: center;
} */

.home__circle {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background-color: var(--first-color-darken);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.home__video {
  width: 100%;
  height: 100%;
  top: 50%;
  left: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
}

.home__subcircle {
  width: 250px;
  height: 250px;
  background-color: var(--first-color-darken);
  border-radius: 50%;
  box-shadow: inset var(--shadow-circle);
}

.home__images .home__img {
  width: 250px;
  max-width: 350px;
  rotate: 8deg;
  box-shadow: inset var(--shadow-img);
  position: absolute;
}

.home__images img {
  width: 60px;
  filter: var(--shadow-img);
  position: absolute;
}

.home__almond {
  right: -0.5rem;
}

.home__sunflower {
  bottom: -0.75rem;
  right: 0.5rem;
}

.home__cashew {
  top: 0.25rem;
  left: -0.5rem;
}

.home__peanut {
  top: -1.5rem;
  right: 2.5rem;
}

.home__pistachio {
  left: 3.5rem;
  bottom: -1.5rem;
}

.home__walnut {
  left: -0.75rem;
}

/* ====== HOVER INTERACTION ====== */
.home__almond:hover,
.home__sunflower:hover,
.home__cashew:hover,
.home__peanut:hover,
.home__pistachio:hover,
.home__walnut:hover {
  transform: scale(1.2) rotate(15deg);
  filter: brightness(1.2) drop-shadow(0 8px 12px rgba(0, 0, 0, 0.3));
}

/*=============== BUTTON ===============*/
.button {
  background-color: var(--second-color);
  color: var(--second-color-dark);
  font-weight: var(--font-semi-bold);
  padding: 0.75rem 2rem;
  border-radius: 4rem;
  box-shadow: inset var(--shadow-button);
}

.button__ghost {
  background-color: transparent;
  box-shadow: none;
  border: 3px solid var(--second-color);
  color: var(--second-color);
}

/*=============== GOALS ===============*/
.goals {
  position: relative;
}

.goals__container {
  row-gap: 3rem;
}

.goals__data {
  text-align: center;
}

.goals__description {
  margin-bottom: 2rem;
  font-size: var(--normal-font-size);
  line-height: 1.6;
}

.goals__list {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
  text-align: left;
}

.goals__item {
  background-color: var(--first-color-dark);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 1rem;
  align-items: start;
  transition: transform 0.2s, box-shadow 0.2s;
}

.goals__item:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 -12px 32px hsla(0, 0%, 0%, 0.4);
}

.goals__item p {
  font-size: var(--normal-font-size);
  line-height: 1.6;
}

.goals__item strong {
  color: var(--second-color);
  font-weight: var(--font-semi-bold);
  display: block;
  margin-bottom: 0.25rem;
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 340px) {
  .goals__item {
    padding: 1rem;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .goals__item i {
    margin: 0 auto 0.5rem;
  }
}

/* For medium devices */
@media screen and (min-width: 576px) {
  .goals__list {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* For large devices */
@media screen and (min-width: 1150px) {
  .goals__container {
    grid-template-columns: 1fr;
    column-gap: 4rem;
    padding-block: 3rem;
  }

  .goals__data {
    text-align: center;
  }

  .goals__description {
    font-size: var(--h3-font-size);
    margin-bottom: 3rem;
  }

  .goals__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  /* Make the last item (5th) span across the middle */
  .goals__item:nth-child(5) {
    grid-column: 1 / -1;
    max-width: 600px;
    margin: 0 auto;
  }

  .goals__item {
    padding: 2rem;
  }

  .goals__item i {
    font-size: 2rem;
  }
}

/* Arabic adjustments */
html[lang='ar'] .goals__item {
  grid-template-columns: 1fr max-content;
}

html[lang='ar'] .goals__item i {
  order: 2;
}

html[lang='ar'] .goals__item p {
  order: 1;
}

html[lang='ar'] .goals__list {
  text-align: right;
}

/*=============== STORY ===============*/
.story {
  position: relative;
  background: linear-gradient(
    135deg,
    var(--first-color) 0%,
    var(--first-color-dark) 100%
  );
}

.story__container {
  padding-block: 2rem;
}

.story__data {
  max-width: 800px;
  margin: 0 auto;
}

.story__description {
  text-align: center;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
  opacity: 0.95;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.story__list {
  display: grid;
  gap: 2rem;
  margin-block: 3rem;
}

.story__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0;
  background: transparent;
}

.story__item p {
  line-height: 1.7;
  text-align: left;
}

.story__item strong {
  color: var(--second-color);
  font-weight: var(--font-semi-bold);
  font-size: 1.1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Arabic RTL Support */
html[lang='ar'] .story__item {
  flex-direction: row-reverse;
}

html[lang='ar'] .story__item p {
  text-align: right;
}

html[lang='ar'] .story__description {
  text-align: center;
}

/* Responsive */
@media screen and (min-width: 768px) {
  .story__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media screen and (min-width: 1150px) {
  .story__container {
    padding-block: 3rem;
  }

  .story__description {
    font-size: 1.15rem;
  }

  .story__item i {
    font-size: 1.75rem;
  }
}

/*=============== FAVORITES ===============*/

.favorites__container {
  row-gap: 3rem;
  grid-template-columns: 100%;
  padding-bottom: 3rem;
}

.favorites__data {
  position: relative;
  text-align: center;
}

.favorites__cheese-1,
.favorites__cheese-2 {
  width: 40px;
  position: absolute;
  opacity: 0.5;
}

.favorites__cheese-1 {
  top: -1rem;
  right: -1rem;
  rotate: -15deg;
}

.favorites__cheese-2 {
  bottom: -2rem;
  left: -0.75rem;
  transform: scaleX(-1) rotate(45deg);
}

.favorites__article {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 200px;
}

.favorites__img {
  width: 600px;
  /* max-width: 200px; */
  scale: 0.8;
  transition: scale 0.2s, filter 0.2s;
  display: block;
  margin: auto;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}

.favorites__img__big {
  width: -20px;
  /* max-width: 200px; */
  scale: 0.8;
  transition: scale 0.2s, filter 0.2s;
  display: block;
  margin: auto;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}

.favorites__img,
.favorites__img__big {
  width: 400px;
  transition: transform 0.1s ease, filter 0.1s ease;
  display: block;
  margin: auto;
  position: relative;
  top: 50%;
  transform: translateY(-50%) scale(1);
}

/* Active (middle) slide → bigger */
.swiper-slide-active .favorites__img,
.swiper-slide-active .favorites__img__big {
  transform: translateY(-50%) scale(1.2); /* middle stands out */
}

/* Side slides (prev & next) → also big */
.swiper-slide-prev .favorites__img,
.swiper-slide-next .favorites__img,
.swiper-slide-prev .favorites__img__big,
.swiper-slide-next .favorites__img__big {
  transform: translateY(-50%) scale(1.1);
}

/* Swiper class */
.swiper {
  margin-inline: initial;
  overflow: visible;
}

:is(.swiper-slide-active, .swiper-slide-duplicate-active) .favorites__img {
  scale: 1;
  filter: var(--shadow-img);
}

:is(.swiper-slide-active, .swiper-slide-duplicate-active) .favorites__img__big {
  scale: 1;
  filter: var(--shadow-img);
}

/*=============== CARE ===============*/

.care {
  background-color: var(--first-color-dark);
}

.care__container {
  row-gap: 3rem;
  padding-block: 1rem 2rem;
}

.care__list {
  display: grid;
  row-gap: 1.2rem;
}

.care__item {
  display: flex;
  column-gap: 0.75rem;
  align-items: center;
}

.care__item i {
  font-size: 1.5rem;
  color: var(--second-color);
}

.care__image {
  width: 250px;
  max-width: 300px;
  filter: var(--shadow-img);
  justify-self: center;
}

/*=============== PRODUCTS ===============*/

.products__container {
  padding-top: 6rem;
  position: relative;
}

.products__content {
  grid-template-columns: repeat(2, 1fr);
  gap: 5rem 1.5rem;
}

.products__card {
  position: relative;
  background-color: var(--first-color-dark);
  padding: 6.25rem 0.75rem 1.25rem;
  border-radius: 1rem;
  box-shadow: inset var(--shadow-card);
  z-index: 10;
}

.products__card.hidden {
  display: none !important;
}

.products__img {
  position: absolute;
  top: -3rem;
  left: 0;
  right: 0;
  width: 200px;
  max-width: 115px;
  margin: 0 auto;
  filter: var(--shadow-img);
  transition: transform 0.1s;
}

.products__img__100g {
  position: absolute;
  top: -3rem;
  left: 0;
  right: 0;
  width: 110px;
  max-width: 215px;
  margin: 0 auto;
  filter: var(--shadow-img);
  transition: transform 0.1s;
}

.products__img__big {
  position: absolute;
  top: -3rem;
  left: 0;
  right: 0;
  width: 100px;
  margin: 0 auto;
  filter: var(--shadow-img);
  transition: transform 0.1s;
}

.products__img__very__big {
  position: absolute;
  top: -3rem;
  left: 0;
  right: 0;
  width: 80px;
  margin: 0 auto;
  filter: var(--shadow-img);
  transition: transform 0.1s;
}

.products__img__big__box {
  position: absolute;
  top: -3rem;
  left: 0;
  right: 0;
  width: 70px;
  margin: 0 auto;
  filter: var(--shadow-img);
  transition: transform 0.1s;
}

/* .products__title {
  font: var(--font-regular) var(--h2-font-size) var(--second-font);
  margin-bottom: 0.5rem;
} */

.products__title {
  white-space: nowrap; /* Prevent text from wrapping */
  overflow: hidden; /* Hide overflowing text */
  text-overflow: ellipsis; /* Show "..." if text is too long */
  display: block; /* Make span behave like a block element */
  text-align: center; /* Center the text horizontally */
  max-width: 100%; /* Ensure it fits within the container */
  margin: 0 auto; /* Center block horizontally if needed */
}

.products__card:hover:nth-child(odd) .products__img,
.products__card:hover:nth-child(odd) .products__img__100g,
.products__card:hover:nth-child(odd) .products__img__big,
.products__card:hover:nth-child(odd) .products__img__very__big,
.products__card:hover:nth-child(odd) .products__img__big__box {
  transform: translateY(-0.5rem) scale(1.5) rotate(7deg);
  transition: transform 0.3s ease;
}

.products__card:hover:nth-child(even) .products__img,
.products__card:hover:nth-child(even) .products__img__100g,
.products__card:hover:nth-child(even) .products__img__big,
.products__card:hover:nth-child(even) .products__img__very__big,
.products__card:hover:nth-child(even) .products__img__big__box {
  transform: translateY(-0.5rem) scale(1.5) rotate(-7deg);
  transition: transform 0.3s ease;
}

.products__crab,
.products__hamburger,
.products__cheese {
  position: absolute;
  width: 40px;
  opacity: 0.5;
}

.products__crab {
  top: -2.5rem;
  left: 0;
  rotate: 30deg;
}

.products__hamburger {
  top: 17rem;
  right: -1.5rem;
  rotate: -15deg;
}

.products__cheese {
  left: 2rem;
  right: 0;
  margin: 0 auto;
  bottom: 3rem;
  rotate: 15deg;
}

/*=============== CONTACT ===============*/
.contact__container {
  position: relative;
  background-color: var(--first-color-darken);
  padding-top: 3.5rem;
  border-radius: 3rem;
  box-shadow: inset var(--shadow-card);
  overflow: hidden;
}

.contact__content {
  padding-top: 1rem;
  row-gap: 3rem;
}

.contact__data {
  text-align: center;
}

.contact__title {
  font: var(--font-regular) var(--h2-font-size) var(--second-font);
  margin-bottom: 1.5rem;
}

.contact__social {
  display: flex;
  justify-content: center;
  column-gap: 0.75rem;
}

.contact__social a {
  color: var(--second-color);
  font-size: 1.5rem;
}

.contact__info {
  font-style: normal;
}

.contact__img {
  display: inline-block;
  width: 60%;
  height: 100%;
  justify-self: center;
  filter: var(--shadow-img);
}

.contact__shrimp,
.contact__crab,
.contact__meat {
  position: absolute;
  width: 40px;
  opacity: 0.5;
}

.contact__shrimp {
  top: 9rem;
  right: 1.5rem;
  rotate: 15deg;
}

.contact__crab {
  top: 17px;
  left: 1rem;
  rotate: 15deg;
}

.contact__meat {
  right: 2rem;
  bottom: 11rem;
  rotate: -15deg;
}

/*=============== FOOTER ===============*/

.footer {
  padding-block: 3rem 2rem;
}

.footer__container {
  row-gap: 2rem;
}

/* Default (English) */
.footer__logo {
  color: var(--white-color);
  font: var(--h1-font-size) var(--second-font);
  justify-self: center;
  text-shadow: var(--shadow-text);
}

/* Arabic override */
html[lang='ar'] .footer__logo {
  font-family: var(--body-font-ar);
  font-size: calc(var(--h1-font-size) * 1.3);
}

.footer__content {
  grid-template-columns: repeat(2, max-content);
  justify-content: center;
  row-gap: 3.5rem;
}

.footer__copy {
  grid-column: 1/3;
  text-align: center;
}

.footer__link {
  color: var(--white-color);
  transition: color 0.1s;
}

.footer__link:hover {
  color: var(--second-color);
}

/*=============== SCROLL BAR ===============*/

::-webkit-scrollbar {
  width: 0.6rem;
  background-color: var(--first-color); /* track */
}

::-webkit-scrollbar-thumb {
  background-color: var(--first-color-dark); /* thumb */
  border-radius: 1rem; /* smoother look */
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--first-color-darken); /* lighter on hover */
}

/*=============== SCROLL UP ===============*/

.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background-color: var(--first-color);
  color: var(--white-color);
  box-shadow: inset var(--shadow-button);
  display: inline-flex;
  padding: 6px;
  font-size: 1.25rem;
  border-radius: 0.25rem;
  z-index: var(--z-tooltip); /*10*/
  transition: bottom 0.1s, transform 0.1s;
}

.scrollup:hover {
  transform: translateY(-0.5rem);
}

/* Show Scroll Up */

.show-scroll {
  bottom: 3rem;
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */

@media screen and (max-width: 340px) {
  .container {
    margin-inline: 1rem;
  }

  .section__title {
    font-size: var(--h2-font-size);
  }

  .home__title {
    font-size: 3rem;
  }

  .home__buttons {
    flex-direction: column;
    row-gap: 1rem;
  }

  .home__circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: var(--first-color-darken);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .home__video {
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
  }

  .home__subcircle {
    width: 200px;
    height: 200px;
  }

  .home__images .home__img {
    width: 200px;
  }

  .products__content {
    grid-template-columns: 160px;
    justify-content: center;
  }

  .footer__content {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 1.5rem;
  }

  .footer__copy {
    grid-column: 1;
  }

  .favorites__swiper {
    width: 200%;
    overflow-x: clip;
    justify-self: center;
  }

  .favorites__img {
    width: 50px;
  }

  .favorites__img__big {
    width: 50px;
  }
}

/* For medium devices */

@media screen and (min-width: 540px) {
  .home__container,
  .care__container,
  .favorites__container {
    grid-template-columns: 370px;
    justify-content: center;
  }

  .favorites__swiper {
    width: 200%;
    overflow-x: clip;
    justify-self: center;
  }

  .favorites__img {
    width: 100px;
  }

  .favorites__img__big {
    width: 100px;
  }

  .products__content {
    grid-template-columns: repeat(2, 160px);
    justify-content: center;
  }

  .contact {
    display: grid;
    grid-template-columns: 450px;
    justify-content: center;
  }
}

@media screen and (min-width: 340px) and (max-width: 539px) {
  .products__container {
    padding-top: 4rem;
    position: relative;
  }

  .products__content {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 5rem 1rem;
    justify-content: center;
  }

  .products__card {
    background-color: var(--first-color-dark);
    padding: 5rem 0.5rem 1rem;
    border-radius: 1rem;
    box-shadow: inset var(--shadow-card);
  }

  /* Image scaling for smaller viewports */
  .products__img {
    width: 90px;
    max-width: 100px;
    transition: transform 0.2s;
  }

  .products__img__100g {
    width: 100px;
    max-width: 120px;
  }

  .products__img__big {
    width: 80px;
  }

  .products__img__very__big {
    width: 70px;
  }

  .products__img__big__box {
    width: 60px;
  }
}

@media screen and (min-width: 768px) {
  .products__content {
    grid-template-columns: repeat(3, 160px);
  }

  .contact {
    grid-template-columns: 550px;
  }

  .footer__content {
    grid-template-columns: repeat(3, max-content);
    justify-content: space-between;
    align-items: center;
  }

  .footer__copy {
    grid-column: initial;
  }

  .footer__link:nth-child(2) {
    order: 1;
  }
}

/* For large devices */

@media screen and (min-width: 1150px) {
  .container {
    margin-inline: auto;
  }

  .section {
    padding-block: 7rem 2rem;
  }

  .section__title {
    margin-bottom: 2rem;
  }

  .nav {
    height: calc(var(--header-height) + 2rem);
  }

  .nav__toggle,
  .nav__close {
    display: none;
  }

  .nav__link {
    font-size: var(--normal-font-size);
  }

  .nav__menu {
    display: flex;
    column-gap: 1rem;
    align-items: center;
  }

  .nav__list {
    flex-direction: row;
    column-gap: 4rem;
  }

  .home__container {
    grid-template-columns: 420px 585px;
    align-items: center;
    column-gap: 6rem;
    padding-top: 5rem;
  }

  .home__data {
    text-align: initial;
  }

  .home__tile {
    margin-bottom: 1.5rem;
  }

  .home__description {
    margin-bottom: 4rem;
  }

  .home__buttons {
    justify-content: center;
    column-gap: 1.5rem;
  }

  .home__meat {
    width: 80px;
    top: 13rem;
  }

  .home__circle {
    width: 550px;
    height: 550px;
    border-radius: 50%; /* circular shape */
    overflow: hidden; /* clip excess */
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .home__video {
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
  }

  .home__subcircle {
    width: 430px;
    height: 430px;
  }

  .home__images .home__img {
    width: 400px;
  }

  .home__images img {
    width: 95px;
  }

  .favorites__container {
    grid-template-columns: 520px;
    row-gap: 4rem;
  }

  .favorites__cheese-1,
  .favorites__cheese-2 {
    width: 80px;
  }

  .favorites__cheese-1 {
    right: -18rem;
  }

  .favorites__cheese-2 {
    left: -18rem;
  }

  .favorites__swiper {
    width: 200%;
  }

  .favorites__article,
  .favorites__img {
    width: 210px;
  }

  .favorites__img__big {
    width: 200px;
  }

  .care__container {
    grid-template-columns: 500px 410px;
    column-gap: 6rem;
    align-items: center;
  }

  .care__image {
    width: 400px;
    order: -1;
  }

  .care__item {
    column-gap: 1rem;
  }

  .care__item i {
    font-size: 2rem;
  }

  .banner {
    padding-top: 4rem;
  }

  .banner__list {
    column-gap: 6.5rem;
  }

  .banner__items {
    column-gap: 1rem;
  }

  .banner__items i {
    font-size: 4.5rem;
  }

  .banner__items span {
    font-size: var(--h1-font-size);
  }

  .products_container {
    padding-top: 7.5rem;
  }

  .products__content {
    grid-template-columns: repeat(3, 250px);
    gap: 10rem;
  }

  .products__card {
    padding: 11rem 2rem 2rem;
    border-radius: 1.5rem;
  }

  .products__img {
    width: 190px;
    max-width: 190px;
    top: -5rem;
    left: 50%;
    margin-left: -90px;
    max-width: none;
    height: auto;
  }

  .products__img__100g {
    width: 200px;
    max-width: 200px;
    top: -5rem;
    left: 50%;
    margin-left: -100px;
    max-width: none;
    height: auto;
  }

  .products__img__big {
    width: 165px;
    top: -5rem;
  }

  .products__img__very__big {
    width: 135px;
    top: -5rem;
  }

  .products__img__big__box {
    width: 125px;
    top: -5rem;
  }
  .products__crab,
  .products__hamburger,
  .products__cheese {
    width: 80px;
  }

  .products__crab {
    margin: initial;
    top: 2rem;
  }

  .products__hamburger {
    top: 30rem;
    right: 3rem;
  }

  .products__cheese {
    margin: initial;
    left: 4rem;
  }

  .contact {
    display: block;
  }

  .contact__container {
    border-radius: 4rem;
  }

  .contact__content {
    grid-template: 330px / 360px 320px;
    justify-content: center;
    align-items: flex-start;
    column-gap: 10rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .contact__data {
    text-align: initial;
    grid-template: max-content / repeat(2, max-content);
    gap: 3rem 2rem;
  }

  .contact__title {
    margin-bottom: 0.75rem;
  }

  .contact__social {
    justify-content: initial;
  }

  .contact__img {
    width: 320px;
    transform: translateY(-3rem);
  }

  .contact__shrimp,
  .contact__crab,
  .contact__meat {
    width: 80px;
  }

  .contact__shrimp {
    left: 0;
    right: 0;
    margin: 0 auto;
    top: 20rem;
  }

  .contact__crab {
    top: 5rem;
    left: 4rem;
  }

  .contact__meat {
    right: initial;
    left: 12rem;
    bottom: -1rem;
  }

  .footer {
    padding-block: 5rem 3rem;
  }

  .footer__container {
    row-gap: 3rem;
  }

  .footer__content {
    grid-template-columns: repeat(3, 12.5rem);
  }

  .scrollup {
    right: 3rem;
  }

  /* Make "CONTACT US TO EAT NAQARESH" smaller on small screens */
  @media screen and (max-width: 480px) {
    .contact .section__title {
      font-size: 1.4rem;
      line-height: 1.2;
      margin-bottom: 1rem;
    }
  }

  /* Even smaller devices */
  @media screen and (max-width: 340px) {
    .contact .section__title {
      font-size: 1.2rem;
    }
  }
}
/* Mobile Story Alignment Fix (Arabic & English) */
@media screen and (max-width: 900px) {
  .story__list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .story__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
  }

  .story__item i {
    width: 2rem;
    flex-shrink: 0;
    text-align: center;
  }

  .story__item p {
    flex: 1;
    margin: 0;
    text-align: left;
  }

  /* Arabic (RTL) Fix */
  html[lang='ar'] .story__item {
    flex-direction: row-reverse; /* icon moves to the right */
  }

  html[lang='ar'] .story__item i {
    width: 2rem;
    text-align: center;
  }

  html[lang='ar'] .story__item p {
    text-align: right;
  }
}
