/* all Styles */
:root {
  --main-color: #d3ad7f;
  --black: #13131a;
  --bg: #010103;
  --border: 0.1rem solid rgba(255, 255, 255, 0.3);
  --primary-color: #ff226f;
  --primary-color-dark: #fe6769;
  --text-dark: #333333;
  --white: #ffffff;
}

* {
  font-family: "Roboto", sans-serif;
  margin: 0;

  box-sizing: border-box;
  outline: none;
  text-decoration: none;
  transition: 0.2s linear;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-padding-top: 9rem;
  scroll-behavior: smooth;
}

/* Thanh cuộn Webkit */
html ::-webkit-scrollbar {
  width: 8px;
}

html ::-webkit-scrollbar-track {
  background-color: rgb(255, 255, 255);
  /* background: none; */
}

html ::-webkit-scrollbar-thumb {
  /* background-color: rgb(255, 0, 0); */
  background: linear-gradient(135deg, rgb(48, 0, 131), rgb(68, 39, 255));
  border-radius: 4px;
  border: 1px solid rgb(248, 242, 246);
  transition: background 0.3s ease-in-out;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, rgb(68, 39, 255), rgb(48, 0, 131));
}

body {
  background-color: var(--background-color);
  
}

section {
  padding: 2rem 7%;
}

.btn {
  margin-top: 1rem;
  display: inline-block;
  padding: 0.7rem 1.4rem;
  font-size: 1.4rem;
  font-weight: bold;
  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
  color: var(--text-color);
  background-color: var(--background-color);
  cursor: pointer;
  border-radius: 0.5rem;
  /*transition: transform 0.3s ease;*/
}

button {
  margin-top: 1rem;
  display: inline-block;
  padding: 0.7rem 1.4rem;
  font-size: 1.4rem;
  /* font-weight: bold; */
  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
  /* Use a CSS variable for text color to support both light and dark modes */
  color: #000000;

  /*background: var(--main-color);*/
  cursor: pointer;
  /* border-radius: 0.5rem; */
  /*transition: transform 0.3s ease;*/
  border-radius: 8px;
}

.btn:hover {
  transform: scale(1.009);
}

button:hover {
  transform: scale(1.009);
  color: #ac8350;
}

.animated-button {
  position: relative;
  padding: 10px 20px;
  font-size: 16px;
  color: var(--text-color);
  background-color: #d4af37;
  border: none;
  border-radius: 5px;
  outline: none;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.8s;
  z-index: 1;
}

.animated-button::before {
  content: "";
  position: absolute;
  top: var(--y, 50%);
  left: var(--x, 50%);
  width: 0;
  height: 0;
  background-color: var(--background-color);
  transition: width 0.8s, height 0.8s, top 0.8s, left 0.8s;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}



.animated-button:hover::before {
  width: 300%;
  height: 300%;
}

.animated-button span {
  position: relative;
  z-index: 1;
  display: inline-block;
  transition: color 0.8s;
}

.animated-button:hover span {
  color: var(--text-color);
}

/* Header */
.header {
  background-color: var(--background-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100vw;
  height: auto;
  padding: 0.8rem 1rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 2px solid #f83a0a;
}

/* Logo */
.header .logo img {
  height: 5rem;
  max-height: 10vh;
}

/* Menu 3 gạch */
.menu-btn {
  display: none;
  cursor: pointer;
  font-size: 2.2rem;
  color: var(--text-color);
  background: none;
  border: none;
  padding: 5px;
}

/* Navbar */
.header .navbar {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

/* Ẩn menu trên mobile */
@media (max-width: 1024px) {
  .header .navbar {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    z-index: 999;
  }

  .header .navbar.active {
    display: flex;
  }

  .menu-btn {
    display: block;
  }
}

/* Link trong navbar */
.header .navbar a {
  font-size: 1.4rem;
  
  padding: 10px 0;
  text-decoration: none;
  font-weight: bold;
  margin: 0 5px;
  border-radius: 5px;
  width: 100px;
  text-align: center;
  transition: background 0.3s ease, color 0.3s ease;
}

.header .navbar a:hover {
  background: #f83a0a;
  color: white;
  font-weight: bold;
  width: 100px;
  border-radius: 5px;
}

/* Site title */
.site-title {
  font-size: 1.8rem;
  text-transform: uppercase;
  text-align: left;
  flex-shrink: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Chế độ tối/sáng */
.theme-switch-wrapper {
  flex-shrink: 1;
  display: flex;
  align-items: center;
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    padding: 0.5rem;
    flex-wrap: nowrap;
  }
  .header .navbar a:hover {
    width: 100%;
    margin-top: 5px;
  }
  .header .navbar a {
    width: 100%;
    margin-top: 5px;
  }

  .header .logo img {
    height: 3.5rem;
  }

  .site-title {
    font-size: 1.2rem;
    max-width: 50vw;
  }

  .header .navbar {
    display: none;
  }

  .menu-btn {
    display: block;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 0.4rem;
  }

  .header .logo img {
    height: 3rem;
  }

  .site-title {
    font-size: 1rem;
  }

  .header .navbar a {
    font-size: 1rem;
  }
}







/* Home Styles */

.home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url("HomepageIMG3.png") no-repeat;
  background-size: cover;
  background-position: center;
  margin-top: -70px;
  border-bottom: 2px solid #ff0000;
}

.home .content {
  max-width: 60rem;
 
}

.home .content h3 {
  font-size: 45px;
  text-transform: uppercase;
  /* color: var(--text-color); */
  color: #ff0000;
}

.home .content p {
  font-size: 20px;
  font-weight: lighter;
  /* color: var(--text-color); */
  color: #ff0000;
  padding: 1rem 0;
  line-height: 1.8;
}

/* About Styles */

.heading {
  text-align: center;
  color: var(--text-color);
  text-transform: uppercase;
  padding-top: 4rem;
  padding-bottom: 3.5rem;
  font-size: 4rem;
}

.heading span {
  color: var(--text-color);
  text-transform: uppercase;
}

.about .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: center;
  background-color: var(--background-color);
  flex-wrap: wrap;
}

.about .row .image img {
  width: 100%;
  padding-left: 20px;
}

.about .row .content {
  flex: 1 1 45rem;
  padding: 2rem;
}

.about .row .content h3 {
  font-size: 3rem;
  color: var(--text-color);
}

.about .row .content p {
  font-size: 1.6rem;
  color: var(--text-color);
  padding: 1rem 0;
  line-height: 1.8;
}

/* Filter styles */
.filter-box {
  margin-bottom: 2rem;
  padding: 1rem;
  background-color: var(--background-color);
  border-radius: 0.5rem;
}

/* Filter box styles */
.filter-box {
  margin-bottom: 2rem;
  padding: 1rem;
  background-color: var(--background-color);
  border-radius: 0.5rem;
  display: flex;
  flex-direction: row;
  gap: 30px;
}

.filter-box h3 {
  color: var(--text-color);
  width: 80%;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.filter-box select,
.filter-box input {
  width: 90%;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
  border: 1px solid var(--text-color);
  background-color: var(--background-color);
  color: var(--text-color);
}

.filter-box select {
  border-radius: 50px;
}

.filter-box button {
  width: 30%;
  padding: 0.9rem;
  margin-bottom: 0.9rem;
  font-size: 1.4rem;
  background-color: var(--main-color);
  color: var(--text-color);
  border: none;
  border-radius: 40px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.filter-box #apply-filter:hover {
  background-color: #00ff04;
  color: #000000;
}

.filter-box #remove-filter:hover {
  background-color: red;
  color: #ffffff;
}

/* Dark Mode Adjustments for Filter Box */
[data-theme="dark"] #menu-title {
  color: rgb(235, 85, 40)
}

[data-theme="dark"] .menu #filter-head {
  color: rgb(205, 174, 137);
}

[data-theme="dark"] #flavor-filter {
  color: #f1f1f1;
}

[data-theme="dark"] .filter-box {
  color: #f1f1f1;
  /* Light text color */
}

[data-theme="dark"] .filter-box {
  color: #f1f1f1;
  /* Light text on buttons */
}

/* dark mode styling ends */

/* filter box styles end */

/* Blogs Styles */

.heading {
  text-align: center;
  color: var(--text-color);
  text-transform: uppercase;
  padding-top: 4rem;
  padding-bottom: 3.5rem;
  font-size: 4rem;
}

.heading span {
  color: var(--text-color);
  text-transform: uppercase;
}

.blogs .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.blogs .row .image img {
  width: 100%;
  padding-left: 20px;
}

.blogs .content {
  flex: 1 1 45rem;
  padding: 2rem;
}

.blogs .content h3 {
  font-size: 3rem;
  color: var(--text-color);
}

.blogs .content p {
  font-size: 2rem;
  color: var(--text-color);
  padding: 1rem 0;
  line-height: 1.8;
}

/* Menu Styles */

#menu h1 {
  font-size: 5.5rem;
  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
  text-transform: capitalize;
  color: #4e1a22;
  letter-spacing: 1px;
  word-spacing: 2px;
  margin: 2rem;
  text-align: center;
}

#menu {
  background-color: var(--background-color);
}

.menu .box-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  height: auto;
  width: auto;
  justify-content: space-around;
  align-items: center;
}

.menu .box-container .box {
  margin: 2rem;
  padding: 0.7rem;
  border-radius: 8px;
  border-width: 1.1rem;
  border-color: var(--text-color);
  background-color: #d2a679;
  /* border: 1px solid brown; */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 6px 20px rgba(0, 0, 0, 0.19);
  text-align: center;
  border: var(--text-color);
  align-items: center;
}

.menu .box-container .box h3 {
  padding-top: 10px;
  color: var(--text-color);
  font-size: 1.9rem;
  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
  color: var(--text-color);
}

.menu .box-container .box .price {
  color: var(--text-color);
  font-size: 1.6rem;
  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
  color: var(--text-color);
}

.menu .box-container .box .price span {
  color: var(--text-color);
  font-size: 1.2rem;
  text-decoration: line-through;
  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
  color: var(--text-color);
}

.menu img {
  width: 220px;
  height: 220px;
  border-radius: 1rem;
  transition: transform 0.5s ease-in-out;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.menu .picture {
  position: relative;
  /* Added to position the .flip div correctly */
  perspective: 1000px;
}

/* CSS for flip element */
.menu .flip {
  width: 220px;
  height: 220px;
  border-radius: 1rem;
  transition: transform 0.5s ease-in-out;
  background: linear-gradient(135deg, #d5006d, #9c0b2d);
  color: #ffffff;
  font-size: 1.6rem;
  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  backface-visibility: hidden;
  transform: rotateY(180deg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border: 2px solid #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  padding: 10px;
}

.picture:hover img {
  transform: rotateY(180deg);
  /* Rotate the image on hover */
}

.picture:hover .flip {
  transform: rotateY(0);
  /* Show the .flip text on hover */
}

.box:hover {
  transform: scale(1.05);
  transition-duration: 0.6s;
}

#inbox {
  background-color: #fff8e7;
  border: 0.5px solid #c69861;
  color: #d3ad7f;
  width: fit-content;
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease;
}

#pro-name {
  color: #4e1a22;
}

#inbox:hover {
  /* background-color: #d3ad7f; Darkens background on hover */
  color: #ca7c1d;
  /* Lightens text color on hover */
  border-color: #b89b57;
  /* Subtle change in border color */
  background-color: beige;
}

/*review section style contributed*/
/* Review Section Adjusted Styles */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 3rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7rem;
  /* Increased gap for more spacing */
  background-color: var(--background-color);
  /* Kept the dark background */
  border-radius: 1rem;
  margin-bottom: 5rem;
  /* Added margin between footer */
}

.container__left h1 {
  margin-bottom: 3rem;
  font-size: 4.5rem;
  /* Increased font size */
  font-weight: 700;
  color: #ffbe0b;
  /* Brighter color */
}

.container__left p {
  color: var(--text-color);
  margin-bottom: 2rem;
  font-size: 2rem;
  /* Increased font size */
  line-height: 2.8rem;
  /* Adjusted line height for readability */
}

.container__left button {
  padding: 1.5rem 3rem;
  /* Increased padding for a bigger button */
  margin-top: 2rem;
  outline: none;
  border: none;
  border-radius: 5px;
  background: linear-gradient(to right,
      #ff4e50,
      #fc913a);
  /* Brighter gradient */
  color: var(--text-color);
  font-size: 1.8rem;
  /* Increased button font size */
  cursor: pointer;
}

.custom-btn:hover {
  color: #fff;
  /* Change text color on hover: better visibility */
}

.container__right {
  display: grid;
  gap: 4rem;
  /* Increased gap for larger cards */
}

.card {
  padding: 2rem;
  /* Increased padding for bigger cards */
  display: flex;
  align-items: flex-start;
  gap: 5rem;
  /* More space between image and content */
  background-color: var(--background-color);
  border-radius: 1.5rem;
  /* Stronger shadow for depth */
  cursor: pointer;
}

.card:hover {
  box-shadow: 0 0 6px rgba(255, 208, 9, 1);
}

.card img {
  border-radius: 100%;
  border: 2px solid #ffbe0b;
  /* Added border */
  width: 100px;
  height: 100px;
  object-fit: cover;
}

.card__content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  /* Adjusted gap for better spacing */
}

.card__content span i {
  font-size: 3rem;
  /* Increased icon size */
  color: #ffbe0b;
  /* Brighter icon color */
}

.card__details p {
  font-style: italic;
  color: var(--text-color);

  margin-bottom: 1.5rem;
  font-size: 2rem;
  /* Increased size */
  line-height: 2.5rem;
}

.card__details p:hover {
  color: #ff6f3c;
}

.card__details h4 {
  text-align: right;
  color: #ffbe0b;
  /* Brighter color */
  font-size: 2rem;
  /* Increased size */
  font-weight: 700;
}

@media (width < 900px) {
  .container {
    grid-template-columns: repeat(1, 1fr);
    margin-bottom: 4rem;
  }

  .container__right {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width < 750px) {
  .container__right {
    grid-template-columns: repeat(1, 1fr);
  }
}

/*review adding section contributed*/

.review-section {
  max-width: 1200px;
  margin: auto;
  padding: 4rem 2rem;
  background-color: var(--background-color);
  border-radius: 1rem;
  margin-bottom: 5rem;
}


.review-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.review-left {
  flex: 1;
}

.ice-cream-image {
  width: 100%;
  /* Make the image responsive */
  border-radius: 10px;
  /* Rounded edges */
  box-shadow: 8px 8px 40px rgba(0, 0, 0, 0.3);
  /* Shadow for depth */
}



.review-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.review-right h2 {
  font-size: 2.5rem;
  /* Adjusted font size */
  margin-bottom: 2rem;
  /* Increased margin for more spacing */
  color: #ffbe0b;
  /* Brighter color */
}

.review-right label {
  font-size: 1.6rem;
  /* Increased font size */
  margin-top: 2rem;
  /* Increased margin for spacing */
  color: #ffbe0b;
  /* Brighter color */
}

.review-right input,
.review-right textarea {
  width: 100%;
  padding: 1.5rem;
  /* Increased padding */
  margin-top: 1rem;
  /* Increased margin */
  border-radius: 8px;
  /* More rounded corners */
  border: 2px solid #ffbe0b;
  /* Brighter border */
  font-size: 1.4rem;
  /* Increased font size */
  color: var(--text-color);
  background-color: var(--background-color);
  margin-bottom: 1rem;
}

.submit-button {
  margin-top: 1.5rem;
  /* Increased margin for spacing */
  padding: 1rem 2.5rem;
  /* Increased button padding */
  font-size: 1.6rem;
  /* Increased font size */
  color: #fff;
  /* White text */
  background: linear-gradient(to right,
      #ff4e50,
      #fc913a);
  /* Gradient background */
  border: none;
  /* No border */
  border-radius: 5px;
  /* Rounded edges */
  cursor: pointer;
}

.submit-button:hover {
  background: #ffbe0b;
  color: #0c5f0f;
  /* Change color on hover */
}

/*Blogs styles contributed*/
.blogs {
  padding: 4rem 2rem;
  background-color: var(--background-color);
  color: var(--text-color);
  position: relative;
  z-index: 1;
}

.blogs .heading {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #ffbe0b;
  /* Brighter heading color */
}

.blog-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  z-index: 1;
}

.blog {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 20px;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background-color: var(--background-color);

  border-radius: 1rem;
  padding: 2rem;
  width: 500px;
  /* Fixed width for consistency */
  box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.3);
  z-index: 1;
  /* Shadow for depth */
}

.hidden {
  display: none;
  /* Ẩn nếu không khớp */
}

.blog-image {
  width: 70%;
  /* Responsive image */
  border-radius: 10rem;
}


.blog h3 {
  font-size: 2rem;
  /* Blog title size */
  color: #337fe3;

  /* Brighter color for visibility */
  margin: 5px;
}

.blog p {
  font-size: 1.7rem;
  /* Blog content size */
  margin: 1rem 0;
  /* Margin for spacing */
}

.btn {
  background: linear-gradient(to right, #ababad, #d9e2cc);
  /* Button gradient */
  color: var(--text-color);
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Footer Styles */
/* Footer styles */


.footer {
  padding: 20px;
  background-color: #FF6F61;
  /* Ice cream color */
  color: white;
  width: 100%;
  background: linear-gradient(rgba(34, 79, 170, 0.8), rgba(34, 79, 170, 0.8)),
    url('images/footer.jpg');
  background-size: cover;
  background-position: center;
 
  /* Giữ ảnh cố định khi cuộn */
}

.footer hr {
  border: 0;
  border-top: 1px solid white;
  margin: 20px 0;
}

/* Parent div styling */
.footer-row {
  display: flex;

  /* Ensures space between child divs */
  flex-wrap: wrap;
  /* Prevent wrapping */
  align-items: flex-start;
  /* Aligns child divs at the top */
  justify-content: space-between;
  padding: 0 50px;
}

.footer-row1 {
  display: flex;
    justify-content: space-between; /* Canh đều hai cột */
    align-items: center; /* Căn giữa theo chiều dọc */
}

/* Child div styling */
.footer-column {
  flex: 1;
  min-width: 200px;
  margin: 0 15px;
  text-align: left;
  /* Căn lề trái cho toàn bộ nội dung trong footer-column */
}

.footer h3 {
  margin-bottom: 10px;
  font-size: 1.5vw;
  color: white;
}

.footer a {
  display: block;
  color: white;
  transition: color 0.3s;
  margin-bottom: 5px;
  font-size: 1vw;
  text-align: left;
  /* Đảm bảo text trong thẻ a cũng được căn lề trái */
}

.footer a:hover {
  color: #ddd;
  /* Subtle hover effect */
}

/* ===== Footer Styling ===== */
.footer1 {
  padding: 15px 20px;
  background: rgb(227, 227, 227);
  color: rgb(0, 0, 0);
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
}

/* Dòng chứa Social & Bản quyền */
.footer-row1 {
  display: flex;
  align-items: center;
  justify-content: center; /* Social bên trái, Bản quyền bên phải */
  width: 100%;
  max-width: 1200px; /* Giới hạn chiều rộng */
  flex-wrap: wrap;
  padding: 10px;
}

/* ===== Social Icons (Facebook, v.v) ===== */
.social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
}

.social-icons p {
  margin: 0;
}

.social-icons a {
  color: rgb(0, 0, 0);
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #000f83;
}

/* ===== Bản Quyền - Footer Column ===== */
.footer-column1 {
  font-size: 1rem;
  text-align: right; /* Căn phải */
  max-width: 50%;
  word-wrap: break-word;
  line-height: 1.4;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .footer-row1 {
    flex-direction: column; /* Xếp dọc trên màn hình nhỏ */
    align-items: center;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }

  .footer-column1 {
    text-align: center; /* Căn giữa trên mobile */
    max-width: 100%;
  }
}

/* Media Queries */
@media (max-width: 400px) {
  html {
    font-size: 30%;
  }

  
}

@media (max-width: 500px) {
  #menu-btn {
    display: inline-block;
  }

 

  
  .home {
    background-position: left;
    justify-content: center;
    text-align: center;
   
  }
  .home .content {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Căn giữa theo chiều dọc */
    align-items: center; /* Căn giữa theo chiều ngang */
    text-align: center; /* Căn giữa nội dung text */
    
  }

  .home .content h3 {
    font-size: 4rem;
    
  }

  .home .content p {
    font-size: 1.5rem;
  }
}

@media (max-width: 450px) {
  html {
    font-size: 50%;
  }
}

/* Global button styles */
.btn,
button,
.header .cart-items-container button,
.order-actions button {
  /* ... existing styles ... */
  transition: background-color 0.3s ease, color 0.3s ease,
    letter-spacing 0.3s ease;
}

.btn:hover,
button:hover,
.header .cart-items-container button:hover,
.order-actions button:hover {
  background-color: var(--background-color);
  color: var(--main-color);
  letter-spacing: 0.2rem;
}

/* Remove conflicting hover styles */
.header .cart-items-container button:hover {
  background-color: var(--background-color);
  color: var(--main-color);
}

.order-actions button:hover {
  background-color: var(--background-color);
  color: var(--main-color);
}

/* ... existing code ... */

.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background-color: transparent;
  border: 0.2rem solid hsl(0, 0%, 100%);
  font-size: 2rem;
  border-radius: 50%;
  margin: 3rem 1.5rem 3rem 0;
  transition: 0.3s ease;
  color: #ffffff;
}

.social-icons a:hover {
  color: rgb(251, 251, 251);
  transform: scale(1.3) translateY(-5px);
  background-color: #9e9b9b;
  box-shadow: 0 0 25px #ffffff;
}

/* Footer button hover effect */
.footer .share a:hover,
.footer .links a:hover {
  background-color: var(--background-color);
  color: var(--main-color);
  letter-spacing: 0.2rem;
}

/* ... rest of the existing code ... */

/* payment styles start */

.payment-section {
  max-width: 800px;
  margin: 40px auto;
  background-color: rgba(19, 19, 26, 0.8);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(211, 173, 127, 0.2);
}

.heading {
  text-align: center;
  font-size: 2.5em;
  color: var(--main-color);
  margin-bottom: 30px;
  text-transform: uppercase;
}

.heading span {
  color: #fff;
}

#order-items,
#order-total {
  color: white;
  padding: 5px;
  font-size: medium;
}

.order-summary,
.payment-methods,
.payment-details,
.billing-address {
  background-color: var(--background-color);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 30px;
  border: var(--border);
}

h2 {
  color: var(--main-color);
  margin-bottom: 15px;
  font-size: large;
}

label {
  display: block;
  margin-bottom: 5px;
  color: #fff;
  font-size: medium;
}

input[type="text"],
input[type="radio"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  background-color: var(--background-color);
  border: 1px solid var(--main-color);
  border-radius: 5px;
  color: #000000;
}

input[type="radio"] {
  width: auto;
  margin-right: 10px;
}

.payment-button {
  background-color: var(--main-color);
  color: var(--black);
  padding: 15px 30px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.2em;
  transition: background-color 0.3s, transform 0.3s;
  display: block;
  width: 100%;
  margin-top: 20px;
}

.payment-button:hover {
  background-color: var(--background-color);
  transform: translateY(-3px);
}

#cod-message {
  color: #fff;
  font-size: small;
}

/* Responsive design */
@media (max-width: 450) {
  .payment-section {
    padding: 20px;
  }
}

/* payment styles end */

/* Animation for about us */
.about .row .image {
  opacity: 0;
  transform: translateX(-100px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.about .row .content {
  opacity: 0;
  transform: translateX(-100px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: 0.4s;
}

.about.animate .row .image,
.about.animate .row .content {
  opacity: 1;
  transform: translateX(0);
}

/* Social Icons */
.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background-color: transparent;
  border: 0.2rem solid hsl(0, 0%, 100%);
  font-size: 2rem;
  border-radius: 50%;
  margin: 3rem 1.5rem 3rem 0;
  transition: 0.3s ease;
  color: #ffffff;
}

.social-icons a:hover {
  color: black;
  transform: scale(1.3) translateY(-5px);
  background-color: #9e9b9b;
  box-shadow: 0 0 25px #ffffff;
}

/* Contact Form Styles */
html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

body {
  display: flex;
  flex-direction: column;
}

.main-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
}

.contact-section {
  max-width: 800px;
  margin: 20px;
  padding: 40px;
  padding-bottom: 0;
  background-color: var(--background-color);
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.contact-section h2 {
  text-align: center;
  font-size: 2.5em;
  color: var(--main-color);
  margin-bottom: 20px;
}

.contact-section input[type="text"],
.contact-section input[type="email"],
.contact-section textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid var(--main-color);
  border-radius: 5px;
  font-size: 1em;
  background-color: var(--background-color);
  color: var(--text-color);
}

.contact-section textarea {
  width: 100%;
  height: 150px;
  resize: vertical;
}

.submit-button {
  background-color: var(--background-color);
  color: var(--black);
  padding: 15px 30px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.2em;
  transition: background-color 0.3s, transform 0.3s;
  display: block;
  width: 100%;
  margin-top: 10px;
}

.contact-section .submit-button:hover {
  background-color: var(--background-color);
  transform: translateY(-3px);
}

/* Footer Styling */
.footer {
  text-align: center;
  padding: 0;
  background-color: var(--background-color);
  margin-top: auto;
}

/* Navbar Hover Effect */
.navbar a {
  transition: all 0.2s ease-in;
}

.navbar a:hover {
  transform: scale(1.1);
}

/* Review Box Styles */
.review-box {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.box1 {
  border: 1px solid #d3ad7f;
  border-radius: 10px;
  height: 200px;
  width: 30%;
  align-items: center;
  text-align: center;
  color: #d3ad7f;
  font-size: 15px;
  padding: 20px 20px;
  transition: all 0.5s ease-in-out;
}

.box1:hover {
  transform: scale(1.1);
  border-color: #eee;
}

/* Dark Mode */
/* :root {
  --background-color: rgb(240, 234, 234);
  --text-color: #0f2654;
  --header-bg: lightgray;
} */

h2 {
  color: var(--text-color);
}

[data-theme="dark"] {
  --background-color: #121212;
  --text-color: #f1f1f1;
  --header-bg: #1c1c1c;
}

body {
  background-color: var(--background-color);
  /* color: var(--text-color);
  font-family: Arial, sans-serif; */
  margin: 0;
  padding: 0;
  transition: background-color 0.3s, color 0.3s;
}



/* Toggle Switch */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
  margin-left: 5px;
}

#mode-label {
  margin-left: 10px;
  font-size: 1rem;
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;

}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background-color: white;
  transition: 0.4s;
  top: 3px;
  left: 4px;
}

input:checked+.slider {
  background-color: #66bb6a;
}

input:checked+.slider:before {
  transform: translateX(26px);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #fff;
  padding: 2rem;
  border-radius: 5px;
  max-width: 400px;
  width: 100%;
  text-align: center;
}



/* Tooltip */
.notification-tooltip {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #d4af37;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 1000;
  font-size: 18px;
  text-align: center;
}

.notification-tooltip.show {
  display: block;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
  animation: bounce 0.5s;
}

.tooltip-icon {
  display: inline-block;
  font-size: 24px;
  margin-right: 10px;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  40% {
    transform: translate(-50%, -50%) scale(1.1);
  }

  60% {
    transform: translate(-50%, -50%) scale(1.05);
  }
}

/* Social Icons */
.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background-color: transparent;
  border: 0.2rem solid hsl(0, 0%, 100%);
  font-size: 2rem;
  border-radius: 50%;
  margin: 3rem 1.5rem 3rem 0;
  transition: 0.3s ease;
  color: #000000;
}

[data-theme="dark"] .social-icons a {
  color: #ffffff;
}

.social-icons a:hover {
  color: rgb(0, 0, 0);
  transform: scale(1.3) translateY(-5px);
  background-color: #9e9b9b;
  box-shadow: 0 0 25px #ffffff;
}

/* Contact Form Styles */
html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
}

.main-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
}

.contact-section {
  max-width: 800px;
  margin: 20px;
  padding: 40px;
  padding-bottom: 0;
  background-color: var(--background-color);
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.contact-section h2 {
  text-align: center;
  font-size: 2.5em;
  color: var(--main-color);
  margin-bottom: 20px;
}

.contact-section input[type="text"],
.contact-section input[type="email"],
.contact-section textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid var(--main-color);
  border-radius: 5px;
  font-size: 1em;
  background-color: var(--background-color);
  color: var(--text-color);
}

.contact-section textarea {
  width: 100%;
  height: 150px;
  resize: vertical;
}

.submit-button {
  background-color: var(--background-color);
  color: var(--black);
  padding: 15px 30px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.2em;
  transition: background-color 0.3s, transform 0.3s;
  display: block;
  width: 100%;
  margin-top: 10px;
}

.contact-section .submit-button:hover {
  background-color: var(--background-color);
  transform: translateY(-3px);
}

/* Footer Styling */
.footer {
  text-align: center;
  padding: 0;
  background-color: var(--background-color);
  margin-top: auto;
}

/* Box Hover Effect */
.box {
  transition: all 0.5s ease-in-out;
}

.box:hover {
  border-radius: 10px;
  transform: scale(0.9);
  border: 2px solid white;
  box-shadow: rgba(236, 234, 234, 0.25) 0px 50px 100px -20px,
    rgba(160, 158, 158, 0.3) 0px 30px 60px -30px,
    rgba(188, 188, 188, 0.35) 0px -2px 6px 0px inset;
}

/* Navbar Hover Effect */
.navbar a {
  transition: all 0.2s ease-in;
}

.navbar a:hover {
  transform: scale(1.1);
}

/* Review Box Styles */
.review-box {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.box1 {
  border: 1px solid #d3ad7f;
  border-radius: 10px;
  height: 200px;
  width: 30%;
  align-items: center;
  text-align: center;
  color: #d3ad7f;
  font-size: 15px;
  padding: 20px 20px;
  transition: all 0.5s ease-in-out;
}

.box1:hover {
  transform: scale(1.1);
  border-color: #eee;
}

/* Dark Mode */
:root {
  --background-color: rgb(240, 234, 234);
  --text-color: black;
  --header-bg: rgb(211, 211, 211);
}

h2 {
  color: var(--text-color);
}
a {color: var(--text-color)}

[data-theme="dark"] {
  --background-color: #0f2654;
  --text-color: #f1f1f1;
  --header-bg: #1c1c1c;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  /* font-family: Arial, sans-serif; */
  margin: 0;
  padding: 0;
  transition: background-color 0.3s, color 0.3s;
}


header {
  background-color: var(--header-bg);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;

}

/* Toggle Switch */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
}

#mode-label {
  margin-left: 10px;
  font-size: 1rem;
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background-color: white;
  transition: 0.4s;
  top: 3px;
  left: 4px;
}

input:checked+.slider {
  background-color: #66bb6a;
}

input:checked+.slider:before {
  transform: translateX(26px);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);

  justify-content: center;
  align-items: center;
}

button[type="submit"] {
  background: #ea9481;
  color: black;
  width: 12em;
  align-items: center;
  border-radius: 10px;
  border: none;
  margin-bottom: 20px;
}

form h3 {
  font-size: medium;
}



/* end */
.modal-content {
  background-color: #fff;
  padding: 2rem;
  border-radius: 5px;
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.modal-content form {
  text-align: left;
}


/* Tooltip */
.notification-tooltip {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #d4af37;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 1000;
  font-size: 18px;
  text-align: center;
}

.notification-tooltip.show {
  display: block;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
  animation: bounce 0.5s;
}

.tooltip-icon {
  display: inline-block;
  font-size: 24px;
  margin-right: 10px;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  40% {
    transform: translate(-50%, -50%) scale(1.1);
  }

  60% {
    transform: translate(-50%, -50%) scale(1.05);
  }
}

/* backtotop */
#back-to-top {
  position: fixed;
  bottom: 120px;
  right: 30px;
  width: 20px;
  height: 55px;
  background: rgba(170, 170, 170, 0.5);
  /* Màu cam */
  color: white;
  font-size: 24px;
  border: none;

  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: none;
  /* Ẩn mặc định */
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 999 !important;
}

#back-to-top:hover {
  background-color: rgb(0, 0, 0);
  /* Màu cam đậm khi hover */
  transform: scale(1.1);

}

.contact-button {
  padding: 10px 0px;
  font-size: 16px;
  background-color: #25405e;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  width: 150px;
  margin: 2%;
  margin-left: 5%;
}

.contact-button:hover {
  padding: 10px 0px;
  font-size: 16px;
  background-color: #2682eb;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  width: 150px;
  margin: 2%;
  margin-left: 5%;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  width: 50%;
  max-width: 90vw; /* Không vượt quá 90% chiều rộng màn hình */
  max-height: 90vh; /* Không vượt quá 90% chiều cao màn hình */
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  z-index: 1000;
  overflow: auto; /* Thêm cuộn nếu nội dung quá lớn */
}

.popup h2 {
  font-size: 2.5rem;
  text-align: center;
  margin: 10px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.popup a {
  font-size: 1.8rem;
  display: flex;
  flex-wrap: nowrap; /* Ngăn không cho xuống dòng */
  align-items: center;
  gap: 10px;
  text-align: left;
  color: #333;
  white-space: nowrap; /* Chữ không tự động xuống dòng */
  overflow: hidden; /* Ngăn tràn ra ngoài */
  text-overflow: ellipsis; /* Hiển thị dấu "..." nếu nội dung quá dài */
}

.popup p {
  font-size: 1.4rem;
  text-align: center;
  margin: 2%;
}

.close-btn {
  display: block;
  margin: 20px auto 0;
  padding: 10px 20px;
  font-size: 1.6rem;
  background: #ff4d4d;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  max-width: 200px;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .popup {
    width: 80%;
  }

  .popup h2 {
    font-size: 2rem;
  }

  .popup a {
    font-size: 1.5rem;
  }

  .close-btn {
    font-size: 1.4rem;
  }
}


/*màu backgound*/
.dropdown-content {

  position: absolute;
  margin-top: -1%;
  height: 130px;
  background: rgba(0, 57, 150, 0.5);
  /* Nền trong suốt nhẹ */
  backdrop-filter: blur(2px);
  /* Hiệu ứng mờ nền */
  -webkit-backdrop-filter: blur(10px);
  /* Hỗ trợ Safari */
  border-radius: 12px;
  /* Bo góc mềm mại */

  /* Viền 3 lớp hòa quyện */
  box-shadow:
    0 0 10px rgba(195, 226, 116, 0.6),
    /* Lớp ngoài */
    0 0 10px rgba(5, 5, 222, 0.4),
    /* Lớp giữa */
    0 0 15px rgba(255, 255, 255, 0.2);
  /* Lớp trong cùng */

  padding: 10px;
  min-width: 200px;
  z-index: 100;
}

/* Hiệu ứng khi di chuột vào */
.dropdown-content:hover {
  background: rgba(2, 98, 253, 0.5);
  box-shadow:
    0 0 7px rgba(255, 255, 255, 0.7),
    0 0 14px rgba(100, 100, 255, 0.5),
    0 0 20px rgba(255, 255, 255, 0.3);

}

/* Kiểu chữ để đảm bảo dễ nhìn */
.dropdown-content a {
  color: white;
  /* Màu chữ trắng */
  text-decoration: none;
  padding: 8px 12px;
  display: block;
}

/* Đổi màu khi hover */
.dropdown-content a:hover {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: rgb(9, 8, 8);
}

.social-icons a {
  text-decoration: none;
  color: #333;
  /* Màu mặc định cho các biểu tượng */
  font-size: 26px;
  transition: color 0.2s ease-in-out;
  /* Chuyển đổi nhanh và sắc nét hơn */
}

.social-icons a:hover .fa-linkedin {
  color: #0A66C2;
  /* Màu xanh sáng hơn của LinkedIn */
}

.social-icons a:hover .fa-facebook {
  color: #1877F2;
  /* Màu xanh sáng hơn của Facebook */
}

.social-icons a:hover .fa-x-twitter {
  color: #1DA1F2;
  /* Màu xanh sáng của X (Twitter) */
}

.social-icons a:hover .fa-instagram {
  color: #E4405F;
  /* Màu hồng sáng hơn của Instagram */
}

.social-icons a:hover .fa-pinterest {
  color: #E60023;
  /* Màu đỏ sáng hơn của Pinterest */
}
