/* General Reset */
html {
  font-size: 62.5%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f6ffe5;
  min-height: 100vh;
}

body.modal-in {
  overflow: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Fonts */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', sans-serif;
}

body, p, li, input, textarea {
  font-family: 'Roboto', sans-serif;
}

.hero h2, .banner-text {
  font-family: 'Merriweather', serif;
}

html[lang="FR"] .hero h2 {
  font-size: 3.2rem;
}

/* Header */
header {
  /* background: #e3ffc0;  */
  /* background-color: #e0ffc2; */
  background-color: #e7f4c2;
  color: #333;
  padding: 4px 0;
  border-bottom: 1px solid #aaa;
}

#brand_and_cart {
  display: flex;
  align-items: start;
  justify-content: space-between;
}

#branding > a {
  line-height: 1;
}

#account_and_cart > div {
  display: inline-block;
  padding: 2px;
  margin: 4px;
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid #fff;
  background-color: #fff;
}

#account_and_cart > div:hover {
  border: 1px solid #ff7800;
}

#cart {
  position: relative;
}

#account > svg {
  margin: 2px 0 -4px 0;
}

#cart > svg {
  margin: 4px -1px -6px 1px;
}

#cart_count {
	position: absolute;
	right: 8px;
	font-size: 1.8rem;
	font-weight: bold;
	color: #ff6000;
	padding: 2px 5px;
	line-height: 1;
	border-radius: 10px;
	top: 4px;
	text-align: center;
  user-select: none;
  -webkit-user-select: none;
	min-width: 30px;
}

#nav_and_search {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
}

header .branding {
  display: flex;
  align-items: center;
  gap: 10px;
}

header .branding img {
  height: 80px;
}

header .branding h1 {
  font-size: 2.8rem;
}

header .branding h2 {
  font-size: 1.8rem;
  font-weight: normal;
  margin-bottom: 4px;
}

header .branding h3 {
  font-size: 1.4rem;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

header nav ul li a {
  color: #333;
  text-decoration: none;
  font-size: 1.8rem;
  padding: 6px 12px;
  border-radius: 18px;
  border: 1px solid #ff7800;
  background-color: #fff7b4;
}

header nav ul li a.active {
  color: #fff;
  background-color: #ff7800;
  font-weight: bold;
}

header nav ul li a:hover {
  background-color: #ffd586;
}

.btn {
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    display: inline-block;
	background: linear-gradient(135deg, #FF842C 0%, #D74B09 100%);
	color: white;
	padding: 8px 36px;
	font-size: 1.8rem;
	border-radius: 22px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(210, 105, 30, 0.3);
}

.btn-secondary {
    background: white;
    color: #D2691E;
    border: 2px solid #D2691E;
}

.btn-secondary:hover {
    background: #FFF5E6;
}

/* Hero Section */
.hero {
	color: #000;
	text-align: center;
	padding: 20px 20px 30px;
	border-bottom: 1px solid #ccc;
}

.hero h2 {
	font-size: 3.2rem;
	margin-bottom: 10px;
	color: #5e3e00;
  /* color: #fff; */
	text-shadow: 2px 2px 2px #fffebf;
  /* text-shadow: 2px 2px 2px #464501; */
}

.hero p {
	font-size: 2.2rem;
	margin-bottom: 40px;
	/* color: #5e3e00;*/
  color: #621008;
  text-shadow: 2px 2px 2px #fff;
}

.hero .btn {
	/* background: #ff7800;
	color: #fff; */
	padding: 6px 64px;
	font-size: 2.4rem;
	border-radius: 24px;
	letter-spacing: 1px;
	box-shadow: 1px 1px 4px #555;
}

.hero .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(210, 105, 30, 0.3);
}

/* Categories Section */
.categories {
  margin: 40px 0;
}

.container h2 {
  margin-bottom: 20px;
  font-size: 3.6rem;
}

.categories .container h2,
.featured-products .container h2 {
  text-align: center;
  font-size: 2.4rem;
}

.categories .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

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

.categories .category img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
}

.categories .category a {
  text-decoration: none;
}

.categories .category h3 {
  margin-top: 10px;
  font-size: 1.8rem;
  color: #333;
}

/* Featured Products */
.featured-products {
  margin: 40px 0;
}

.category-section .grid,
.featured-products .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.category-section .product,
.featured-products .product {
  text-align: center;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.category-section .product-card,
.featured-products .product-card {
  background: #fff;
  padding-bottom: 8px;
  border-radius: 6px;
  max-width: 350px;
  margin: 0 auto;
}

.category-section .product img,
.featured-products .product img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
}

.category-section .product a,
.featured-products .product a {
  text-decoration: none;
  padding: 8px 8px 0;
  display: block;
}

.category-section .product a:hover,
.featured-products .product a:hover {
  background-color: #ffe5a9;
}

.category-section .product h3,
.featured-products .product h3 {
  margin: 10px 0;
  font-size: 1.8rem;
  color: #333;
}

/* .featured-products .product_actions > button{
  font-size: 1.5rem;
  color: #fff;
  border-radius: 15px;
  text-align: center;
  border: 0;
  padding: 8px 12px;
  margin: 2px 4px;
  cursor: pointer;
} */

.category-section .product_actions > button,
.featured-products .product_actions > button {
	border-radius: 22px;
	border: 0;
	padding: 2px 32px;
	cursor: pointer;
}

.category-section .product_actions > .quick_add,
.featured-products .product_actions > .quick_add {
  /* background-color: #2360d5; */
  /* background-color: #ff7f30; */
  box-shadow: 2px 2px 4px #aaa;
}

.category-section .product_actions > .quick_add:hover,
.featured-products .product_actions > .quick_add:hover {
  /* background-color: #e61; */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(210, 105, 30, 0.3);

}

/* .featured-products .product_actions > .prod_details {
  background-color: #c84a6e;
} */

/* Footer */
footer {
  color: #333;
  margin-top: 40px;
}

footer .container {
  display: flex;
  flex-wrap: wrap;
  border-top: 2px solid #ccc;
  padding: 24px 0;
}

footer h4 {
  font-size: 2.0rem;
  white-space: nowrap;
}

footer p {
  font-size: 1.4rem;
}

footer a {
  display: block;
  font-size: 1.4rem;
  text-decoration: none;
  color: #333;
}

footer .footer-section {
  padding: 8px;
}

#footer-bottom {
  background: #2b6cb0;
  color: #fff;
  text-align: center;
}

/* Category Page */
.category-page {
  margin: 20px 0;
}

.category-page h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.category-page p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 20px;
}

.content {
  display: flex;
  gap: 20px;
}

.sidebar {
  flex: 1;
  max-width: 300px;
  background: #fff;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.sidebar h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.filter-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.product-grid {
  flex: 3;
}

.product-grid .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.product-grid .product {
  text-align: center;
  background: #fff;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.product-grid .product img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 5px;
}

.product-grid .product h3 {
  margin: 10px 0;
  font-size: 1.2rem;
}

.product-grid .product p {
  font-size: 1rem;
  color: #555;
}

/* All Products Page */
.all-products-page {
  margin: 4px 0;
}

.all-products-page h1 {
  font-size: 2.8rem;
  padding: 20px 0 10px;
  text-align: center;
  background-color: #566823;
  color: #fff;
}

.all-products-page p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 20px;
}

#category_nav {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
  justify-content: center;
	padding: 10px 20px;
	background-color: #566823;
	position: sticky;
	top: 0;
}

#category_nav a {
	text-decoration: none;
	font-size: 1.6rem;
	color: #fff;
	padding: 4px 10px;
	border-radius: 18px;
	text-align: center;
	border: 2px solid #fff;
}

#category_nav a:hover {
	background-color: #c8ff86;
  color: #000;
}

.category-section {
  margin: 10px 0 40px;
  padding: 10px;
  /* background-color: #d8ffa8; */
  background-color: #d7e3b2;
  border-radius: 12px;
}

.category-section h2 {
	font-size: 2.4rem;
	font-family: 'Merriweather', serif;
	margin-bottom: 10px;
	padding: 4px 0;
	text-align: center;
	background-color: #566823;
  color: #fff;
	border-radius: 8px;
}

.category-section p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 20px;
}

.category-section .product p {
  font-size: 1.8rem;
  color: #555;
}

#product-page {
  margin: 10px 0;
  padding: 20px 0;
  background-color: #fff;
}

.modal #product-page {
  padding: 0;
}

#product-page .container {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-around;
  gap: 20px;
}

.modal #product-page .container {
  width: 98%;
  gap: 10px;
}

#product-page .product-image {
	width: 50%;
  max-width: 400px;
}

#product-page .product-image > img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 12px;
}

#product-details {
  flex-grow: 0.4;
}

#product-details h1 {
  font-size: 3.6rem;
  margin-bottom: 10px;
}

#product-choices {
  display: flex;
  justify-content: space-between;
}

#variants {
  max-width: 350px;
}

.variant {
  font-size: 2.4rem;
  margin-top: 10px;
}

.variant > div {
  display: flex;
  gap: 16px;
}

.variant_opt {
  display: inline-block;
  padding: 4px 16px;
  border: 1px solid #888;
  border-radius: 24px;
  margin: 8px 0;
  min-width: 90px;
  text-align: center;
  cursor: pointer;
}

.variant_opt.selected {
	border: 2px solid #ff7800;
	background-color: #fff7b4;
}

.variant_opt:hover {
  border-color: #ff7800;
}

.variant_data, #sold_out {
  display: none;
  font-size: 5.0rem;
  padding: 10px 0;
  min-width: 300px;
}

#sold_out {
  color: #e18e6d;
  font-size: 4.0rem;
  text-align: center;
}

.variant_data.selected {
  display: block;
}

#restock, #enquire {
  display: none;
}

.price_disc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.disc {
	color: #000;
	background: #ffef00;
	padding: 4px 12px;
	border-radius: 10px;
  font-size: 1.8rem;
}

.max_price {
  font-size: 2.6rem;
}

#quant_add {
  font-size: 2.4rem;
  margin-top: 10px;
}

/* Chrome, Safari, Edge, Opera */
#quantity::-webkit-outer-spin-button,
#quantity::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
#quantity {
	-moz-appearance: textfield;
	font-size: 3.0rem;
	max-width: 120px;
	text-align: center;
	padding: 8px 4px;
	border-radius: 6px;
	border: 2px solid #888;
}

#quant_cont {
  display: flex;
  align-items: center;
  justify-content: center;
}

#dec_quant, #inc_quant {
  background-color: #fff;
	border: 1px solid #555;
	border-radius: 50%;
	height: 50px;
	width: 50px;
	padding: 4px;
	margin: 8px 12px;
  cursor: pointer;
}

#dec_quant:hover, #inc_quant:hover {
  background-color: #eee;
}

#dec_quant:disabled, #inc_quant:disabled {
  opacity: 0.5;
}

#dec_quant:disabled:hover, #inc_quant:disabled:hover {
  background-color: #fff;
}

#val_sel {
	font-size: 2.2rem;
	text-align: center;
	padding: 4px 0;
	color: #00377d;
}

#val_sel > span {
  font-weight: bold;
}

#add_to_cart {
	font-size: 2.2rem;
  font-weight: normal;
	padding: 8px 16px;
  margin: 10px 0;
  width: 100%;
  cursor: pointer;
}

#add_to_cart:disabled {
  opacity: 0.5;
}

#add_to_cart:disabled:hover {
  transform: none;
  box-shadow: none;
}

#product-desc {
  font-size: 2.4rem;
  width: 100%;
  padding: 0 20px;
  text-align: justify;
}

#about-page > .container > h1 {
	font-size: 3.0rem;
	text-align: center;
	margin-top: 20px;
}

#about-page > .container > div {
	font-size: 2.0rem;
	text-align: justify;
	max-width: 640px;
	margin: auto;
}

#menu-search-lang {
  display: flex;
  align-items: center;
}

#menu {
  position: relative;
  margin: 4px 4px 0 0;
  border-radius: 4px;
  display: none;
  cursor: pointer;
}

#menu:hover {
  background-color: #ffefc0;
}

#menu_icon > div {
	border: 2px solid #ffa068;
	width: 28px;
	margin: 6px;
}

#menu_items {
  display: none;
  position: absolute;
  padding: 4px;
  background-color: #ffefc0;
  left: 0;
  z-index: 1;
  border-radius: 4px;
}

#menu_items > a {
  padding: 8px 16px;
  font-size: 1.8rem;
  text-decoration: none;
  color: #333;
  display: block;
  white-space: nowrap;
  border-radius: 4px;
}

#menu_items > a.active {
  color: #ff7800;
  font-weight: bold;
}

#menu_items > a:hover {
  background-color: #fff;
}

#menu:hover > #menu_items {
  display: block;
}

#menu:hover > #menu_icon > div {
  border: 2px solid #ff8742;
}

/* Search Bar */
.search-container {
	position: relative;
	display: flex;
	align-items: center;
	margin: 4px 0 0;
}

#search-form {
  display: flex;
  width: 100%;
  max-width: 500px;
}

#search-input {
  width: 100%;
  min-width: 300px;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1.8rem;
}

#search-form:focus-within .search-btn {
  outline: 2px solid blue;
}

.search-btn {
	padding: 8px 12px;
	/* background: #2b6cb0; */
	color: #fff;
  background-color: #cce1ac;
	border: 1px solid #ccc;
	border-radius: 0 4px 4px 0;
	cursor: pointer;
	font-size: 1.8rem;
  border-left: none;
}

.search-btn:hover {
  background: #cee3ff;
}

/* Search Suggestions */
.search-suggestions {
  position: absolute;
  font-size: 2.0rem;
  top: 100%;
  left: -36px;
  width: 370px;
  max-width: 98vw;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
}

.search-result-item {
  display: flex;
  padding: 10px;
  cursor: pointer;
}

.search-suggestions img {
  border-radius: 4px;
  margin-right: 10px;
  object-fit: none;
}

.search-result-item h2 {
  font-size: 2.0rem;
  margin: 8px 0 0;
}

.search-result-item p {
  font-size: 1.8rem ;
}

#language-select {
  margin: 4px 4px 0 0;
  position: relative;
	cursor: pointer;
  user-select: none;
}

#language {
	width: 44px;
	line-height: 2.2;
	text-align: center;
	font-size: 1.8rem;
	border: 1px solid #ff7800;
	border-radius: 4px;
	margin-left: 6px;
	background-color: #fff7b4;
}

#language-options {
	display: none;
	position: absolute;
	right: 0;
	top: 40px;
	font-size: 1.8rem;
	padding: 4px;
	background-color: #fff7b4;
	border: 1px solid #ff7800;
	z-index: 1;
	border-radius: 4px;
}

#language-options > a {
  padding: 8px 20px;
  text-decoration: none;
  color: #333;
  display: block;
  border-radius: 4px;
}

#language-options > a:hover {
  background-color: #fff;
}

#language:hover + #language-options {
  display: block;
}

#language-options:hover {
  display: block;
}

.tns-nav {
  display: flex;
  justify-content: center;
}

.tns-nav > button {
	width: 12px;
	padding: 6px;
	margin: 4px;
	border-radius: 50%;
	border: 1px solid #888;
}

.tns-nav-active {
  background-color: #555;
}

@media only screen and (max-width: 1080px) {
  #product-details {
    width: 90%;
  }

  #product-details h1 {
    text-align: center;
  }

  #product-page .product-image,
  .modal #product-page .product-image {
    width: 90%;
  }

  #product-choices {
    justify-content: space-evenly;
  }
}

@media only screen and (max-width: 960px) {
  #product-details h1 {
    font-size: 3.0rem;
  }
}

@media only screen and (max-width: 860px) {
  header nav {
    display: none;
  }
  #menu-search-lang {
    width: 100%;
    justify-content: space-between;
  }
  #menu {
    display: block;
  }

  #product-desc {
    font-size: 2.2rem;
  }
}

@media only screen and (max-width: 760px) {
  #hero-heading {
    font-size: 3.0rem;
    margin-bottom: 10px;
  }
  .hero .container > p {
    font-size: 2.0rem;
    margin-bottom: 40px;
  }
  .hero .btn {
    font-size: 2.0rem;
  }

  #product-details h1 {
    font-size: 3.0rem;
  }

  .price_disc {
    justify-content: start;
    gap: 20px;
  }
}

@media only screen and (max-width: 660px) {
  header .branding h1 {
    font-size: 2.4rem;
  }

  header .branding h2 {
    font-size: 1.8rem;
    font-weight: normal;
  }

  header .branding h3 {
    font-size: 1.4rem;
  }

  #brand_and_cart {
    align-items: center;
  }

  #account_and_cart > div {
    padding: 4px;
  }

  #account > svg,
  #cart > svg {
    width: 40px;
    height: 40px;
  }
  #cart > svg {
    margin: 4px 0 -4px 0;
  }
  #cart_count {
    right: 8px;
    top: 5px;
    font-size: 1.6rem;
  }

  .container {
    width: 95%;
  }
  .hero {
    padding: 20px 8px 40px;
    background-color: none;
  }

  #quick-add .modal-content {
    bottom: -10px;
    top: auto;
    max-width: 800px;
  }
  #quick-add .modal-body {
    height: calc(100vh - 75px);
    overflow: auto;
  }
  
  #product-choices {
    flex-wrap: wrap;
  }
  
  .variant {
    font-size: 2.2rem;
    margin-top: 5px;
  }

  .variant > div {
    gap: 8px;
  }

  .variant_opt {
    font-size: 2.0rem;
    line-height: 1.4;
    margin: 0;
    min-width: revert;
  }

  .variant_data, #sold_out {
    padding: 6px;
    margin: 10px 0;
    font-size: 3.0rem;
    line-height: 1.5;
    border-radius: 20px;
    border: 1px solid #566823;
  }

  .price_disc {
    justify-content: space-evenly;
  }

  .disc {
    font-size: 1.4rem;
  }

  .max_price {
    font-size: 2.2rem;
  }

  #quant_add {
    width: 100%;
    font-size: 2.2rem;
    margin-top: 0;
    display: flex;
    justify-content: end;
    gap: 10px;
  }

  #quantity {
    font-size: 2.4rem;
    padding: 4px 2px;
  }

  #dec_quant, #inc_quant {
    height: 40px;
    width: 40px;
    padding: 0;
    margin: 0 10px;
  }

  #val_sel {
    font-size: 2.0rem;
  }

  #add_to_cart {
    margin: 0;
    font-size: 2.0rem;
  }

}

@media only screen and (max-width: 600px) {
  header {
    padding: 4px 0;
  }
  header .branding h1 {
    font-size: 2.2rem;
  }
  header .branding h2 {
    font-size: 1.6rem;
    font-weight: normal;
  }
  #hero-heading {
    font-size: 2.4rem;
    margin-bottom: 10px;
  }
  .hero .container > p {
    font-size: 1.8rem;
    margin-bottom: 40px;
  }
  .hero .btn {
    font-size: 2.0rem;
  }
}

@media only screen and (max-width: 470px) {
  header {
    padding: 4px 0;
  }
  header .branding h1 {
    font-size: 2.0rem;
  }

  header .branding h2 {
    font-size: 1.5rem;
    font-weight: normal;
  }

  header .branding h3 {
    font-size: 1.0rem;
  }

  #account_and_cart {
    width: 54px;
  }

  #account_and_cart > div {
    padding: 2px;
  }

  #cart_count {
    right: 6px;
    top: 4px;
    font-size: 1.6rem;
    min-width: 28px;
  }

  #search-input {
    min-width: revert;
  }
  #search-suggestions {
    left: -58px;
  }

  .container {
    width: 98%;
  }
  .categories .container,
  .featured-products .container {
    width: 95%;
  }
  .hero {
    padding: 20px 4px;
    background-image: none !important;
    background-color: #fff8da !important;
  }
  #hero-heading {
    font-size: 2.0rem;
    margin-bottom: 10px;
  }
  .hero .container > p {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
  .hero .btn {
    font-size: 2.0rem;
    margin-bottom: 20px;
  }

  .all-products-page h1 {
    font-size: 1.8rem;
  }

  #product-page {
    padding: 0;
  }

  #product-page .container {
    width: 98%;
    gap: 10px;
  }

  #product-details h1,
  .modal #product-details h1 {
    font-size: 2.6rem;
    margin-bottom: 5px;
  }

  #product-desc {
    font-size: 1.8rem;
    padding: 0 8px;
  }

  #about-page > .container > h1 {
    font-size: 2.8rem;
  }
  #about-page > .container > div {
    width: 95%;
    font-size: 1.8rem;
  }

  #quick-add .modal-content {
    width: 98%;
  }

  .modal-content {
    width: 98%;
  }

  .modal-body {
    padding: 4px;
  }

  .form-title {
    font-size: 20px;
  }

  #register-container {
    padding: 10px;
  }
}