
:root {
  --header-bg: #97ad3b;
  --footer-bg: linear-gradient(
    180deg,
    #63770e 0%,
    rgba(162, 187, 56, 0.929498) 47.4%,
    rgba(99, 119, 14, 0.880208) 100%
  );
  --dark-red: #a51e18;
  --light-red: #e92739;
  --yellow: #f8ba18;
  --light-yellow: #ffc50a;
  --text-color: #576b30;
  --secondary-color: #332700;
  --white: #fff;
  --black: #000;
  --border-color: #ffeab2;
}


video {
  width: 100%;
}

section {
  padding: 100px 0;
}
.container {
  margin: 0 auto;
  max-width: 1200px;
}
@media (max-width: 1500px) {
  .container {
    margin: 0 150px;
  }
}
@media (max-width: 1200px) {
  .container {
    margin: 0 100px;
  }
}
@media (max-width: 991px) {
  .container {
    margin: 0 50px;
  }
}
@media ((max-width: 767px)) {
  .container {
    margin: 0 25px;
  }
}


.ham1 .top {
  stroke-dasharray: 40 139;
}
.ham1 .bottom {
  stroke-dasharray: 40 180;
}
.ham1.active .top {
  stroke-dashoffset: -98px;
}
.ham1.active .bottom {
  stroke-dashoffset: -138px;
}
/* End Menu Button */
/* End Header */
/* Start Hero Section */
.hero {
  background: url(../images/hero-bg.png);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 50px;
  overflow-x: hidden;
}
.hero-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 50px;
  flex-shrink: 0;
  width: 100%;
  transition: 0.5s;
}
.hero-text {
  text-align: center;
  color: var(--secondary-color);
}
.hero-text p {
  font-size: 21px;
}
/* End Hero Section */
/* Start Products Section */
.products-section {
  background: var(--white);
}
.products-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.product {
  padding: 50px;
  position: relative;
}
.product-details {
  position: absolute;
  padding: 50px;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  opacity: 0;
  transition: 0.3s;
}
.product-name {
  font-family: "Abril Fatface", cursive;
  color: var(--white);
  font-size: 30px;
  text-align: center;
  margin-top: 30px;
}
.product .product-details .btn {
  transform: translateY(80px);
  opacity: 0;
  transition: transform 0.5s, opacity 1s;
  transition-delay: 200ms;
}
.product:hover .product-details .btn {
  transform: translateY(0);
  opacity: 1;
}
.product .img {
  animation-iteration-count: 1;
  animation-play-state: running;
  height: 70%;
  display: inline-block;
}
.product:hover > .img {
  animation: shake-slow 1.6s 0s ease-in-out;
}
@keyframes shake-slow {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  10% {
    transform: translate(-2px, 10px) rotate(1.5deg);
  }
  20% {
    transform: translate(8px, 1px) rotate(-0.5deg);
  }
  30% {
    transform: translate(10px, 8px) rotate(-3.5deg);
  }
  40% {
    transform: translate(-4px, -6px) rotate(-1.5deg);
  }
  50% {
    transform: translate(5px, 0) rotate(-2.5deg);
  }
  60% {
    transform: translate(-10px, -3px) rotate(-3.5deg);
  }
  70% {
    transform: translate(11px, 7px) rotate(2.5deg);
  }
  80% {
    transform: translate(8px, -10px) rotate(-1.5deg);
  }
  90% {
    transform: translate(9px, -6px) rotate(-3.5deg);
  }
  100% {
    transform: translate(1px, 0) rotate(-0.5deg);
  }
}
.product:hover > .product-name {
  opacity: 0;
  visibility: hidden;
}
.product:hover .product-details {
  opacity: 1;
}
/* End Products Section */
/* Start Testimonials Section */
.testimonials .container {
  overflow-x: hidden;
}
.testimonials .cards {
  display: flex;
  flex-wrap: nowrap;
}
.testimonials .cards .card {
  background: var(--white);
  flex-shrink: 0;
  padding: 30px;
  border-top-right-radius: 150px;
  border-bottom-left-radius: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: 0.5s;
}
.testimonials .cards .card-title {
  padding: 20px 20px 0;
  font-family: "Dancing Script", cursive;
  font-size: 34px;
}
.testimonials .cards .card-text {
  padding: 10px 20px;
}
.testimonials .cards .card .profile {
  padding-bottom: 20px;
  align-self: flex-end;
}
.testimonials .cards .card .profile-name {
  font-size: 14px;
  font-weight: bold;
  text-align: right;
}
.stars {
  color: orange;
}
.testimonials .controllers {
  display: flex;
  width: 100%;
  justify-content: center;
  gap: 30px;
  margin-top: 50px;
}
.controllers .swipe-btn {
  display: grid;
  place-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 2px solid var(--white);
  flex-shrink: 0;
  cursor: pointer;
}
/* End Testimonials Section */
/* Start Footer */
footer {
  padding-top: 100px;
  background: var(--footer-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 50px;
}
.footer-links a {
  font-weight: 500;
  color: var(--text-color);
}
.footer-links a:hover {
  color: var(--white);
}
.social-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.social-links a {
  font-size: 24px;
  color: var(--white);
  transition: 0.3s;
}
.social-links a:hover {
  color: var(--text-color);
}
.copy-write {
  width: 100%;
  padding: 30px 0;
  text-align: center;
  color: var(--white);
  border-top: 1px solid #b7ce54;
}
/* End Footer */
/* Start Product Page */
.page-header {
  height: 100vh;
  display: grid;
  place-content: center;
  background: linear-gradient(
      76.8deg,
      rgba(134, 102, 0, 0.75) 0%,
      rgba(66, 82, 0, 0.75) 50%,
      rgba(104, 0, 10, 0.75) 100%
    ),
    url(../images/products-bg.png);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--white);
  text-align: center;
}
.page-header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.page-header .container .btn {
  display: block;
  margin-top: 50px;
}
.products-page {
  padding: 0;
}
.green-text {
  color: var(--header-bg);
}
.yellow-text {
  color: var(--yellow);
}
.red-text {
  color: var(--light-red);
}
.products-page .product:not(:last-child)::before {
  content: "";
  position: absolute;
  right: 0;
  top: 10px;
  height: 100%;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(165, 165, 165, 0.260676) 0%,
    #a5a5a5 51.81%,
    rgba(165, 165, 165, 0) 100%
  );
}
.products-page .product {
  position: relative;
}
.products-page .product-details,
.products-page .product {
  transition: 0.3s;
}
.products-page .product:nth-child(1):hover .product-details {
  background: rgba(151, 173, 59, 0.75);
}
.products-page .product:nth-child(2):hover .product-details {
  background: rgba(225, 163, 0, 0.75);
}
.products-page .product:nth-child(3):hover .product-details {
  background: rgba(233, 39, 57, 0.75);
}
.products-page .product:nth-child(1):hover {
  background: var(--header-bg);
}
.products-page .product:nth-child(2):hover {
  background: var(--yellow);
}
.products-page .product:nth-child(3):hover {
  background: var(--light-red);
}
.products-page .product:nth-child(1):hover .product-name,
.products-page .product:nth-child(2):hover .product-name,
.products-page .product:nth-child(3):hover .product-name {
  color: var(--white);
}
.details .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  color: var(--secondary-color);
}
.details .product {
  display: grid;
  place-content: center;
}
.details .content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.details .content .product-name,
.details .content .price {
  color: var(--secondary-color);
  text-align: left;
  margin: 0;
  font-family: "Abril Fatface", cursive;
  margin-bottom: 10px;
}
.details .content .price {
  font-size: 22px;
  margin-bottom: 20px;
}
.details .content h4 {
  border-top: 1px solid #d8d8d8;
  padding-top: 30px;
  margin-top: 30px;
}
.details .content p:last-of-type {
  margin-top: 10px;
}
.details .content .btn {
  padding: 15px 30px;
  margin-top: 40px;
  font-size: 16px;
  background: none;
  cursor: pointer;
  width: fit-content;
}
.details .content .btn::before {
  border: none;
  background: var(--light-red);
}
/* End Product Page */
/* Start Contact Page */
.contact {
  background: #f2f2f2;
  text-align: center;
}
.contact form {
  background: var(--white);
  border-radius: 12px;
  padding: 60px 80px;
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}
textarea,
.contact form .btn {
  grid-column: 1/-1;
}
textarea,
input {
  border-radius: 10px;
  padding: 15px 20px;
  color: #bfbfbf;
  font-size: 16px;
  resize: none;
  width: 100%;
  background: #f2f2f2;
}
textarea::placeholder,
input::placeholder {
  color: #bfbfbf;
}
.contact p {
  color: var(--secondary-color);
}
.contact form .btn {
  width: fit-content;
  margin: auto;
  background: none;
  padding: 15px 30px;
  font-size: 16px;
  cursor: pointer;
}
.contact form .btn::before {
  border: none;
  background: var(--light-red);
}
/* End Contact Page */
/* Start SHopping Cart Page */
.shopping-container {
  display: flex;
  gap: 30px;
}
.product-info {
  width: 70%;
}
.info-header {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  border: 1px solid transparent;
  border-top-color: #d8d8d8;
  border-bottom-color: #d8d8d8;
}
.info-header .wrapper {
  display: flex;
  gap: 60px;
  padding-right: 30px;
}
.shopping-container span {
  color: var(--secondary-color);
  font-weight: 700;
}
.product-container {
  display: flex;
  gap: 40px;
  padding: 30px 30px 30px 0;
  border-bottom: 1px solid #d8d8d8;
}
.product-data {
  display: flex;
  gap: 20px;
  flex: 1;
}
.product-data .img {
  padding: 20px;
  width: 150px;
  height: 150px;
  flex-shrink: 0;
}
.product-data .data {
  flex-shrink: 0;
  padding-top: 20px;
  font-weight: 600;
}
.product-data .data p {
  margin-top: 10px;
}
.product-data .data p span:nth-child(1) {
  font-weight: 400;
  color: #535353;
}
.count input {
  width: 50px;
  height: 30px;
  color: var(--black);
  padding: 10px;
}
.shopping-container .price {
  font-weight: 600;
}
.side-info {
  width: 30%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.promo,
.summary {
  padding: 30px;
  background: #e1e1e1;
  border-radius: 12px;
}
.promo .title,
.summary .title {
  font-size: 20px;
  font-weight: 700;
  color: var(--secondary-color);
}
.promo .input-row {
  background: var(--white);
  display: flex;
  align-items: center;
  padding: 5px 20px;
  margin-top: 20px;
}
.promo .input-row input {
  padding: 0;
  border-radius: 0;
  width: 100%;
  height: 100%;
  background: transparent;
}
.promo .input-row span {
  background: var(--white);
  padding: 5px 0 5px 10px;
  border-left: 1px solid #a9a9a9;
  font-weight: 600;
  color: var(--secondary-color);
  cursor: pointer;
}
.summary {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.summary .quantity {
  padding: 20px 0;
  border: 1px solid #b9b9b9;
  border-left: none;
  border-right: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.summary .q {
  display: flex;
  justify-content: space-between;
}
.summary .btn {
  margin-top: 10px;
  text-align: center;
  font-weight: 600;
  cursor: pointer;
}
.summary .btn::before {
  border-color: var(--light-red);
  background: var(--light-red);
}
/* End SHopping Cart Page */
/* Start Successful Message */
.success-msg {
  color: #270;
  background-color: #dff2bf;
  margin: 10px 0;
  padding: 10px 15px;
  border-radius: 3px 3px 3px 3px;
  width: fit-content;
  position: fixed;
  bottom: 20px;
  right: 20px;
  box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.2);
  display: none;
}

.error-msg {
  color: #721c24;
  background-color: #f8d7da;
  margin: 10px 0;
  padding: 10px 15px;
  border-radius: 3px 3px 3px 3px;
  width: fit-content;
  position: fixed;
  bottom: 20px;
  right: 20px;
  box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.2);
  display: none;
}

/* End Successful Message */

/* Start Responsive */
@media (max-width: 991px) {
  h1 {
    font-size: 40px;
  }
  .logo {
    width: 120px;
  }

  .hero-text p {
    font-size: 18px;
  }
  .page-header {
    height: auto;
  }
  .shopping-container {
    flex-direction: column;
  }
  .product-info {
    width: 100%;
  }
  .side-info {
    width: 100%;
    flex-direction: row;
  }
  .promo,
  .summary {
    flex: 1;
    height: fit-content;
  }
}
@media (max-width: 812px) {
  header {
    padding: 10px 0;
  }
  .menu-btn {
    display: block;
  }
  .product .img {
        height: unset;
     display: inherit;
  }
  
  .hero-wrapper {
    grid-template-columns: 1fr;
  }
  .hero-text {
    padding: 0;
  }
  .products-wrapper {
    grid-template-columns: 1fr;
  }
  .footer-links {
    gap: 20px;
    flex-wrap: wrap;
  }
  .contact form {
    padding: 40px 20px;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }
  .details .container {
    grid-template-columns: 1fr;
  }
  .shopping-container,
  .product-data {
    flex-direction: column;
  }
  .product-data {
    gap: 0;
  }
  .product-info {
    width: 100%;
  }
  .side-info {
    flex-direction: column;
  }
  .info-header .wrapper {
    padding: 0;
    gap: 30px;
  }
  .product-data .img {
    width: 100px;
    height: 100px;
    padding: 10px;
  }
  .product-container {
    padding: 30px 0;
    gap: 25px;
  }
  .product-container .price {
    font-size: 14px;
  }
}
@media (max-width: 390px) {
  h1 {
    font-size: 30px;
  }
  .product-name {
    font-size: 22px;
  }
  .hero-text p {
    font-size: 14px;
  }
  .footer-links {
    margin: 0 60px;
    justify-content: center;
    row-gap: 10px;
  }
}
.img .product-2 {
    padding-top: 18px;
}
