html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}

:root {
  --primary-color: #007bff;
  --secondary-color: #fff8f8;
  --background-color: #f8f9fa;
  --text-color: #161ba5;
}

.some-span {
  color: var(--text-color);
}

/* Nav */

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}
.logo:hover {
  cursor: pointer;
}

.logo img {
  width: 40px;
  vertical-align: middle;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #f8f9fa;
  padding: 10px 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 9999;
}
nav .menu-toggle {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
}

input[type="radio"] {
  display: none;
}

label[for="burger-menu"] {
  display: inline-block;
}
label[for="x-mark"] {
  display: none;
}

nav ul {
  display: none;
}

#burger-menu:checked ~ label[for="burger-menu"] {
  display: none;
}
#burger-menu:checked ~ label[for="x-mark"] {
  display: inline-block;
}
#burger-menu:checked ~ ul {
  display: block;
}

#x-mark:checked ~ label[for="burger-menu"] {
  display: inline-block;
}
#x-mark:checked ~ label[for="x-mark"] {
  display: none;
}
#x-mark:checked ~ ul {
  display: none;
}

nav ul li {
  padding: 15px;
}

nav ul li a {
  position: relative;
}
nav ul li a:hover {
  color: var(--primary-color);
  cursor: pointer;
}

nav a.active {
  color: var(--primary-color);
}
nav a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.4s;
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.4s;
}

nav ul li:hover a::after {
  width: 100%;
}

@media screen and (min-width: 768px) {
  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  nav ul {
    display: flex;
    justify-content: flex-end;
  }
  nav ul li {
    padding: 0 15px;
  }
  label[for="burger-menu"],
  label[for="x-mark"] {
    display: none;
  }
}

/* End Nav */

/* Hero Section */
.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url(../assets/images/background.avif);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  color: #fff;
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content .hero-image img {
  width: 260px;
}

.hero-content .hero-image {
  margin-bottom: 0;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-top: 0;
  color: #fff8f8;
}

.hero-content button {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 1rem;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.hero-content button:hover {
  background-color: #0056b3;
}

@media screen and (min-width: 768px) {
  .hero-content .hero-image img {
    width: 360px;
  }
  .hero-content h1 {
    font-size: 3.5rem;
  }
  .hero-content button {
    font-size: 1.3rem;
  }
}

/* End Hero */

/* Featured Products */

.featured-products {
  background-color: #cae5fe;
  padding: 60px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 60vh;
}

.featured-products h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.featured-products .cards {
  display: flex;
  flex-wrap: wrap;
  width: 90%;
}

.featured-products .cards .card .outer-inner {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.featured-products .cards .card .outer-inner .inner {
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 0.5rem;
  background-color: #fff;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  row-gap: 8px;
  overflow: hidden;
}
.featured-products .cards .card .inner img {
  transition: all 0.5s;
  width: 100%;
  border-radius: 0.5rem 0.5rem 0 0;
}
.featured-products .cards .card .outer-inner .inner:hover {
  cursor: pointer;

  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.featured-products .cards .card .outer-inner .inner:hover img {
  transform: scale(1.05);
}

.featured-products .cards .card .inner .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.featured-products .cards .card .inner .card-footer .price {
  font-size: 1.2rem;
  font-weight: 600;
}

.btn-outline-primary {
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  background-color: transparent;
  padding: 0.3rem 0.5rem;
  font-size: 0.8rem;
  line-height: 1.5;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-outline-primary:hover {
  color: var(--secondary-color);
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary {
  color: var(--secondary-color);
  background-color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
}

.btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

.featured-products .botn {
  margin-top: 20px;
}

@media screen and (min-width: 768px) {
  .featured-products .cards .card {
    width: 33.33%;
  }
}

@media screen and (min-width: 992px) {
  .featured-products h2 {
    font-size: 2.5rem;
  }
}

/* End Featured Products */

/* Our Story */
.our-story {
  padding: 60px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.our-story .story-text {
  padding: 20px;
}

.our-story .story-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.our-story .story-text p {
  font-size: 1.2rem;
}
.our-story .story-image {
  padding: 20px;
}
.our-story .story-image img {
  width: 100%;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

@media screen and (min-width: 768px) {
  .our-story {
    width: 86%;
    margin: auto;
  }
  .our-story .story-text {
    width: 50%;
  }
  .our-story .story-image {
    width: 50%;
  }
}
@media screen and (min-width: 992px) {
  .our-story .story-text h2 {
    font-size: 2.5rem;
  }
}

/* End Our Story */

/* Customers */
.customers {
  background-color: #cae5fe;
  padding: 60px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.customers h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.outer-customers {
  padding: 30px;
}

.customer {
  background-color: var(--secondary-color);
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.inner-customer {
  padding: 32px;
}
.inner-customer p {
  font-size: 1.5rem;
  color: rgb(62, 62, 62);
  margin-bottom: 10px;
}

.inner-customer .customer-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.inner-customer .customer-info p {
  text-transform: capitalize;
  font-size: 1.2rem;
  color: rgb(132, 131, 131);
}

.inner-customer .customer-info .circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #cbced2;
}

@media screen and (min-width: 992px) {
  .customer {
    width: 50%;
    margin: auto;
  }
  .customers h2 {
    font-size: 2.5rem;
  }
}
/* End Customers */

/* Footer */

footer {
  background-image: linear-gradient(rgb(0, 66, 246), rgb(55, 84, 248));
  color: var(--secondary-color);
  box-shadow: 0px -1px 5px #0007;
  background-size: contain;
}

footer .outer-container {
  padding: 40px 15px 10px 15px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem;
  max-width: 540px;
  margin: auto;
}

footer .about div {
  display: flex;
  gap: 0.625rem;
  align-items: center;
}

footer .about div img {
  width: 40px;
}

footer .about div .logo {
  font-size: 30px;
}

footer p {
  margin: 10px 0;
}

footer .about h3 {
  text-align: center;
  padding: 0.625rem;
  border-bottom: 2px solid #ddd6;
  margin-bottom: 0.625rem;
}

footer .about ul {
  display: flex;
  padding: 0.625rem;
  justify-content: space-around;
  list-style: none;
}

footer .about ul li a {
  font-size: 1.5rem;
  color: #fff;
}

footer .subscription .subscribe .subscribe-email {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 1.25rem 0;
}

footer .subscription .subscribe .subscribe-email input,
footer .subscription .subscribe .subscribe-email button {
  padding: 10px;
}
footer .subscription .subscribe .subscribe-email button {
  font-size: 15px;
  background-color: #21235d;
  color: #fff;
  border: none;
  transition: 0.4s;
}

footer .subscription .subscribe .subscribe-email button:hover {
  background-color: #32369b;
  cursor: pointer;
}

footer .subscription .links ul {
  padding: 0;
  list-style: none;
  margin-top: 0.625rem;
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.25rem;
}
footer .subscription .links ul li a {
  color: #fff;
  text-decoration: none;
}

footer .subscription .links ul li {
  padding: 5px;
  width: calc(calc(100% - 1.25rem) / 2);
  transition: 0.4s;
}

footer .subscription .links ul li::before {
  content: "\f105";
  font: var(--fa-font-solid);
  margin-right: 5px;
}

footer .subscription .links ul li:hover {
  transform: translateX(10px);
  background-color: #50449f85;
}
footer .get-in-touch h3 {
  margin-bottom: 10px;
}

footer .get-in-touch ul {
  list-style: none;
  padding: 0;
}
footer .get-in-touch ul li {
  display: flex;
  align-items: center;
  gap: 8px;
}
footer .get-in-touch ul li i {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #21235d;
  font-size: 1.375rem;
  cursor: pointer;
}

footer .get-in-touch ul li a {
  color: #fff;
  text-decoration: none;
}

footer .copy-write {
  margin: auto;
  font-size: 1rem;
  color: #000000;
  order: 1;
}
footer .copy-write::before {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background-color: #ddd6;
  margin: auto;
}
footer .copy-write::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background-color: #ddd6;
  margin: auto;
}

@media screen and (min-width: 768px) {
  footer .outer-container {
    max-width: 720px;
  }
  footer .outer-container .about {
    width: calc(calc(100% - 1.25rem) / 2);
  }

  footer .subscription {
    order: 1;
  }
  footer .subscription .subscribe .subscribe-email {
    flex-direction: row;
    gap: 5px;
  }
  footer .subscription .subscribe .subscribe-email input {
    flex-grow: 1;
  }

  footer .outer-container .get-in-touch {
    width: calc(calc(100% - 1.25rem) / 2);
  }
}

@media screen and (min-width: 992px) {
  footer .outer-container {
    max-width: 960px;
  }
}
@media screen and (min-width: 1200px) {
  footer .outer-container {
    max-width: 1140px;
  }

  footer .outer-container .about {
    width: calc(calc(100% - 2.5rem) / 4);
  }

  footer .subscription {
    width: calc(calc(100% - 2.5rem) / 2);
    order: 0;
  }

  footer .outer-container .get-in-touch {
    width: calc(calc(100% - 2.5rem) / 4);
  }
}

@media screen and (min-width: 1400px) {
  footer .outer-container {
    max-width: 1330px;
  }
}
/* End Footer & Home Page */

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

/* Start About Page*/

header {
  min-height: 10vh;
  background-color: #cae5fe;
}
header.title {
  text-align: center;
  padding-top: calc(60px + 1rem);
  padding-bottom: 1rem;
}

header.title h2 {
  font-size: 2rem;
}

@media screen and (min-width: 768px) {
  header.title h2 {
    font-size: 2.5rem;
  }
}

/* End Header */

/* Start Our Mission */
.our-mission {
  padding: 60px 0;
  background-color: #cae5fe;
}

.our-mission h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}
.our-mission p {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: gray;
  line-height: 1.4;
}

.mission-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}

.mission-card .inner-mission .icon {
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 50%;
}
.mission-card .inner-mission .icon i {
  font-size: 1.4rem;
}
.mission-card {
  padding: 20px;
  align-items: stretch;
}

.mission-card .inner-mission {
  padding: 20px;
  background-color: var(--secondary-color);
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  row-gap: 16px;
}
.mission-card .inner-mission h3 {
  font-size: 1.3rem;
}

@media screen and (min-width: 768px) {
  .mission-cards {
    margin: auto;
  }
  .mission-card {
    width: 33%;
    height: 100%;
  }
}

@media screen and (min-width: 992px) {
  .our-mission .text {
    width: 50%;
    margin: auto;
  }
  .mission-cards {
    width: 80%;
    margin: auto;
  }
}

/* End Our Mission */

.p-20 {
  padding: 0 20px;
}

/* Start Our Team */
.our-team {
  padding: 60px 0;
}

.our-team h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.our-team-cards {
  display: grid;
  grid-template-columns: 1fr;
}

.our-team-cards .inner-team {
  padding: 20px;
  text-align: center;
}

.our-team-cards .inner-team img {
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
}

.our-team-cards .inner-team h3 {
  font-size: 1.5rem;
  margin-top: 10px;
}

.our-team-cards .inner-team span {
  display: block;
  font-size: 1.1rem;
  font-weight: bolder;
  margin-top: 4px;
  color: var(--text-color);
}

.our-team-cards .inner-team p {
  max-width: 20rem;
  margin: auto;
  font-size: 1.2rem;
  color: #828181;
}

@media screen and (min-width: 768px) {
  .our-team-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media screen and (min-width: 992px) {
  .our-team-cards {
    grid-template-columns: repeat(3, 1fr);
  }
  .our-team h2 {
    font-size: 2.5rem;
  }
}

/* End About Page */

/* Contact page */

.c-container {
  display: grid;
  grid-template-columns: 1fr;
}
.c-container .left-part {
  margin: 16px;
}

.c-container .left-part .get-in-touch h2 {
  font-size: 1.6rem;
}

.c-container .left-part p {
  font-size: 1.1rem;
  color: rgb(83, 81, 81);
  margin-top: 16px;
}

.c-container .left-part ul li {
  display: flex;
  align-items: center;
  margin: 16px;
}

.c-container .left-part ul .c-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--text-color);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--secondary-color);
  margin-right: 8px;
}

.c-container .left-part .get-in-touch h4 {
  font-size: 1.15rem;
}

.c-container .left-part .get-in-touch .b-hours li {
  justify-content: space-between;
}

/* Right part */
.right-part {
  padding: 40px 20px;
}
.right-part .inner {
  padding: 16px;
  background-color: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.right-part h2 {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
.right-part form {
  width: 100%;
  max-width: 100%;
}
.right-part label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #222;
}
.right-part input[type="text"],
.right-part input[type="email"],
.right-part textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 10px 12px;
  font-size: 0.9rem;
  color: #555;
  box-sizing: border-box;
  margin-bottom: 1.25rem;
  font-family: Arial, sans-serif;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.right-part input::placeholder,
.right-part textarea::placeholder {
  color: #999;
}
.right-part input[type="text"]:focus,
.right-part input[type="email"]:focus,
.right-part textarea:focus {
  outline: none;
  border-color: #7a0b0b;
  box-shadow: 0 0 8px rgba(122, 11, 11, 0.6);
}
.right-part textarea {
  resize: vertical;
  min-height: 120px;
}
.right-part button {
  background-color: var(--primary-color);
  border: none;
  color: white;
  font-weight: 500;
  font-size: 1rem;
  padding: 12px 0;
  width: 100%;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.right-part button:hover,
.right-part button:focus {
  background-color: var(--text-color);
  outline: none;
}

/* Find US */
.find-us .map-container {
  width: 96%;
  margin-left: 2%;
  margin-right: 2%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 40px;
}
.find-us iframe {
  width: 100%;
  height: 300px;
  border: 0;
  display: block;
}
@media (max-width: 520px) {
  .map-container {
    width: 96%;
    margin-left: 2%;
    margin-right: 2%;
  }
}

@media (max-width: 520px) {
  .right-part form {
    max-width: 100%;
  }
}

@media screen and (min-width: 768px) {
  .c-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .c-container .left-part {
    padding-top: 32px;
  }

  .c-container .left-part .get-in-touch h2 {
    font-size: 2rem;
  }

  .c-container .left-part p {
    font-size: 1.3rem;
  }

  .c-container .left-part ul .c-icon {
    width: 40px;
    height: 40px;
  }
  .c-container .left-part ul li,
  .c-container .left-part .get-in-touch h4 {
    font-size: 1.3rem;
  }
}

/* ------------------------------------------- */

/* Products Page */

section.nav-tabs {
  background-color: rgb(236, 235, 235);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 40px 0;
}

section.nav-tabs .product-btn {
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  background-color: var(--primary-color);
  border: none;
  color: var(--secondary-color);
  transition: background-color 0.3s ease;
  margin-right: 8px;
  margin-bottom: 10px;
}
section.nav-tabs .product-btn:hover {
  cursor: pointer;
  background-color: var(--text-color);
}

.products-template {
  display: grid;
  grid-template-columns: 1fr;
}

.card-p {
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  overflow: hidden;
  max-width: 90%;
  margin: auto;
  margin-top: 40px;
  margin-bottom: 40px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card-p:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.card-img-top {
  width: 100%;
  height: 340px;
  display: block;
}

.card-body-p {
  padding: 1rem;
}

.card-title-p {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.separate {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.separate span {
  font-size: 0.8rem;
  background-color: rgb(236, 236, 236);
  color: var(--text-color);
  padding: 4px 8px;
  font-weight: 400;
  border-radius: 4px;
}

.card-text-p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #555;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.product-footer .card-price-p {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-color);
}

.btn-p {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  text-decoration: none;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-primary-p {
  background-color: #007bff;
  color: #fff;
  border: 1px solid #007bff;
}

.btn-primary-p:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

@media screen and (min-width: 768px) {
  .products-template {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (min-width: 992px) {
  .products-template {
    grid-template-columns: repeat(3, 1fr);
  }
}

.products-template {
  display: none;
}

.products-template:target {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.products-container:not(:has(:target)) #all {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

:not(:has(:target)) .nav-tabs button.all {
  background-color: var(--text-color);
  color: white;
}

:has(#beverages:target) .nav-tabs button.beverages,
:has(#bakery:target) .nav-tabs button.bakery,
:has(#diary:target) .nav-tabs button.diary,
:has(#pantry:target) .nav-tabs button.pantry,
:has(#all:target) .nav-tabs button.all {
  background-color: var(--text-color);
  color: white;
}
