/*
===========================================================
====================== Global =============================
===========================================================
*/

@import url("https://fonts.googleapis.com/css2?family=Karla:ital,wght@0,200;0,300;0,400;0,500;0,600;0,800;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Lexend+Deca:wght@300;400;500;700&family=Lora:wght@400;500;600;700&family=Montserrat:wght@300;400;500;700&family=Open+Sans:wght@300;400;500;600;700&family=PT+Serif:wght@400;700&family=Playfair+Display:wght@400;500;600;700&family=Poppins:wght@300;400;500;700&family=Prata&family=Quicksand:wght@300;400;500;700&family=Raleway:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap");

/* Variable */
:root {
  --bs-light: white;
  --bs-light-rgb: 255, 255, 255;
  --bs-secondary: #f0f0f0;
  --bs-secondary-2: #f7f7f7;
  --bs-text-secondary: #6a6a6a;
  --bs-dark: #000000;
  --bs-dark-rgb: 0, 0, 0;
  --bs-danger: #ff6b6b;
  --bs-danger-rgb: 255, 107, 107;
  --bs-default-border: #dee2e6;
}

/*
===========================================================
====================== Reset Style ========================
===========================================================
*/

a {
  font-size: 0.8rem;
}

a:hover {
  opacity: 0.8;
}

/*
===========================================================
====================== Replaced Style =====================
===========================================================
*/

.btn:focus,
.btn-light:focus:active {
  box-shadow: unset;
}

.btn {
  border-radius: 0;
  font-size: 0.9rem;
}

.btn.btn-2xl {
  font-size: 1.2rem;
}

a,
.btn {
  transition: 0.1s all ease-out;
}

.form-control {
  font-size: 0.8rem;
  padding: 10px 15px;
}

.form-control:focus {
  border: 1px solid var(--bs-dark);
}

.border {
  border: 1px solid var(--bs-default-border) important;
}

.bg-secondary {
  background-color: var(--bs-secondary-2) !important;
}

.page-item .page-link {
  color: var(--bs-dark);
}

.page-item.active .page-link {
  background-color: var(--bs-dark);
  border-color: var(--bs-dark);
}

.page-item.active.disabled {
  z-index: 1;
}

.nav-tabs {
  border-color: var(--bs-secondary);
}

.nav-tabs .nav-link {
  color: var(--bs-text-secondary);
}

.nav-tabs .nav-link:hover {
  border: 1px solid white;
}

.nav-tabs .nav-link:focus {
  border: unset;
}

.nav-tabs .nav-link.active {
  background-color: unset;
  border: unset;
  border-bottom: 1px solid var(--bs-dark);
}

/*
===========================================================
=========== =========== Reusable Style =====================
===========================================================
*/
.fw-semibold {
  font-weight: 600;
}

.fs-small {
  font-size: 0.75rem;
}

.rounded-20 {
  border-radius: 20px;
}

.text-secondary {
  color: var(--bs-text-secondary) !important;
}

.w-fit {
  width: fit-content;
}

/*
===========================================================
====================== Page Style =========================
===========================================================
*/

/* All Page */
#main {
  min-height: 100vh;
}

#main > section:nth-child(2),
#main > section:nth-child(1) {
  margin-top: 0;
}

#main > section {
  margin-top: 120px;
}

/* Register */
.register-terms {
  font-size: 0.8rem;
}

/* Blog */
.blog-detail-section .blog-thumbnail img {
  height: 400px;
  object-fit: cover;
}

.blog-detail-section .blog-content {
  word-break: break-word;
  line-height: 1.7;
}

/* Product */
.options .option-item .mirror-option {
  width: fit-content;
  cursor: pointer;
  transition: all 0.2s ease-in;
  box-sizing: content-box;
  font-size: 0.9rem;
}

.options .option-item .mirror-option:hover,
.option-item input:checked ~ label {
  border: 1px solid var(--bs-dark) !important;
}

.option-item input:checked ~ label {
  background-color: var(--bs-light);
}

.quantity-wrapper .quantity-item {
  width: 40%;
}

.quantity-item .quantity-input {
    padding: 0;
    min-width: 1.5rem;
}

.variant-options-section .label p,
.quantity-wrapper .label p {
  font-size: 0.9rem;
}

.product-thumbnails {
  overflow: hidden;
}

.product-thumbnails-wrapper {
  transition: all 0.2s ease-in-out;
}

.product-thumbnails .product-detail-thumbnail img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  margin-right: 10px;
}

.product-thumbnails .product-detail-thumbnail img.active {
  outline: 2px solid var(--bs-dark);
}

.description-wrapper img {
  width: 100%;
}

.splide__slide.thumbnail {
  opacity: 0.5;
}

.splide__slide.thumbnail > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.splide__slide.thumbnail.is-active {
  opacity: 1;
}

.variant-options-section.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Custom Page */
.section-custom img {
  max-width: 100%;
}

/*
===========================================================
====================== Snippet Style ======================
===========================================================
*/

/* Header */
.main-header {
  min-height: 80px;
  width: 100%;
  top: 0;
  z-index: 2;
}

.main-header .header-navbar ul li {
  list-style: none;
}

.main-header a {
  text-decoration: none;
}

.main-header .header-logo img {
  width: var(--logo-width-mobile);
}

.main-header .header-navbar a {
  opacity: 1;
}

.main-header .header-navbar a > svg {
  transform: rotate(0turn);
  transition: all 0.2s ease-out;
}

.main-header .header-navbar .item-have-sub:hover a > svg {
  transform: rotate(0.5turn);
}

.sub-menu-1 {
  width: max-content;
  min-width: 200px;
  min-height: 80px;
  top: 90px;
  left: 0;
  position: absolute;
  opacity: 0;
  transition: all 0.2s ease-in;
  pointer-events: none;
  padding: 0;
  z-index: 1;
}

ul.sub-menu-2 {
  position: absolute;
  left: 80%;
  top: 0;
  padding: 0;
  min-width: 200px;
  width: max-content;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: all 400ms cubic-bezier(0.13, 0.15, 0.26, 0.97);
}

ul.sub-menu-1 li.sub-menu-1-item:hover ul.sub-menu-2 {
  left: 100%;
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  z-index: 11;
}

li.sub-menu-1-item,
li.sub-menu-2-item {
  cursor: pointer;
  position: relative;
}

.mobile-navbar-wrapper {
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: 9999;
  top: 0;
  background-color: rgba(0, 0, 0, 0.8);
}

.mobile-navbar {
  width: 80%;
  height: 100%;
  position: relative;
  left: 0;
  transition: 0.3s ease-in;
}

.mobile-navbar.close {
  right: -500px;
}

.mobile-navbar ul li {
  list-style: none;
  padding: 0px 0px !important;
  margin: 0 !important;
}

.mobile-navbar ul li a {
  display: flex;
  padding: 10px;
  align-items: center;
  justify-content: space-between;
}

.mobile-navbar ul li a {
  list-style: none;
  text-decoration: none;
}

.mobile-navigator-icon {
  transition: all 0.3s ease-in;
}

.not-open {
  transform: rotate(-90deg);
}

.mobile-navbar-wrapper {
  overflow-y: auto;
}

.row.logo-top {
  padding-top: 10px;
}

.header-icon {
  font-size: 2rem;
}

.navigation-center {
  padding-left: 15em;
}

.search-popup {
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: rgba(66, 66, 66, 0.514);
  z-index: 3;
  top: 0;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease-out;
  top: -50px;
}

.search-popup-wrapper {
  width: 100%;
  height: 200px;
  padding: 2rem 15vw;
}

.search-popup-wrapper input {
  font-size: 2rem;
}

.search-popup-close-button {
  right: 10px;
  top: 10px;
  cursor: pointer;
}

.search-popup-show {
  opacity: 1;
  pointer-events: fill;
  top: 0;
}

.cart-drawer-wrapper {
  width: 100%;
  height: 0;
  position: fixed;
  left: 0;
  opacity: 1;
  z-index: 2;
  overflow: hidden;
  transition: height 0.2s ease-in;
  pointer-events: none;
}

.cart-drawer-content {
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 55vh;
  max-height: 55vh;
}

.cart-drawer-content,
.cart-drawer-footer {
  padding: 2rem 15vw;
}

.cart-drawer-wrapper.cart-drawer-show {
  height: 100%;
  pointer-events: fill;
}

.cart-drawer-close-button {
  cursor: pointer;
}

.cart-product-delete:hover {
  color: var(--bs-danger);
}

.cart-total-items {
  top: -5px;
  right: -20px;
}

/*
    Footer
*/
footer .footer-logo {
  max-width: 180px;
}

footer .footer-menu a,
footer .footer-policy a {
  text-decoration: none;
}

footer .footer-menu li {
  list-style: none;
}

/* Image Banner */

.image-banner-section .image img {
  height: 600px;
  object-fit: cover;
}

.image-banner-controls .image .image-banner-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
}

.image-banner-content {
  padding-top: 2.5rem;
  position: absolute;
  width: 100%;
  height: 100%;
  right: unset;
  left: unset;
  text-align: center;
  display: flex;
}

.image-banner-content-bottom {
  align-items: end;
}

.image-banner-content-center {
  align-items: center;
}

.image-banner-content-top {
  align-items: start;
}

.image-banner-content-wrapper {
  width: fit-content;
}

.banner-button a {
  position: relative;
}

.banner-button a:after {
  content: " ";
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  transition: all 0.2s ease-out;
}

.banner-button a:hover::after {
  top: 10px;
  left: 10px;
}

/* Carousel Category */
section:has(.category-section-wrapper) .image img.desktop {
  height: 540px;
  object-fit: cover;
}

.owl-nav {
  display: flex;
  gap: 0.875rem;
  justify-content: end;
}

/* Product */
.product-title {
  font-size: 1.2em;
}

.product-content {
  font-size: 1em;
}

.product-wrapper a:first-child img:first-child,
.product-wrapper a:first-child img:nth-child(2) {
  transition: 0.2s all ease-in;
}

.product-wrapper a:first-child img:nth-child(2) {
  right: 0;
  top: 0;
  opacity: 0;
}

.product-wrapper:hover a:first-child img:nth-child(1):has(+ img) {
  opacity: 0;
}

.product-wrapper:hover a:first-child img:nth-child(1) + img {
  opacity: 1;
}

.product-wrapper a:hover,
.product-wrapper.product-sold-out a:hover {
  opacity: 1;
}

.product-wrapper.product-sold-out .product-thumbnail img {
  opacity: 0.5;
}

.product-wrapper:hover .product-thumbnail img {
  opacity: 0.8;
}

.product-wrapper.product-sold-out .product-thumbnail img {
  opacity: 0.5;
}

.cart-button {
  bottom: 10px;
}

.product-wrapper:not(.product-sold-out) .cart-button {
  opacity: 0;
  display: grid;
  transition: opacity 0.3s ease-in-out;
}

.product-wrapper:not(.product-sold-out):hover .cart-button {
  opacity: 1;
}

.product-wrapper.product-sold-out .cart-button {
  top: 50%;
  bottom: 50%;
  height: fit-content;
}

/* Video Section */

.video-section {
  cursor: pointer;
}

.video-section .container-fluid {
  height: 620px;
}

.video-section .video-section-content,
.video-section .thumbnail,
.video-section .thumbnail img {
  height: 100%;
}

.video-section .thumbnail img {
  object-fit: cover;
}

.thumbnail .play-button {
  width: 100%;
  height: 100%;
}

/* Breadcumb */
.breadcrumb-item a {
  text-decoration: none;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

.breadcrumb-item a,
.breadcrumb-item span {
  font-size: 0.9rem;
}

.scroll-to-top {
  right: 0;
  bottom: 150px;
  cursor: pointer;
  transition: all 0.2s ease-in;
}

.whatsapp-floating-button {
  background: #25d366;
  bottom: 40px;
  right: 40px;
  width: 60px;
  height: 60px;
  color: white;
  border-radius: 40px;
  z-index: 1;
  box-shadow: 2.8px 2.8px 2.2px rgba(0, 0, 0, 0.008),
    6.7px 6.7px 5.3px rgba(0, 0, 0, 0.012),
    12.5px 12.5px 10px rgba(0, 0, 0, 0.015),
    22.3px 22.3px 17.9px rgba(0, 0, 0, 0.018),
    41.8px 41.8px 33.4px rgba(0, 0, 0, 0.022),
    100px 100px 80px rgba(0, 0, 0, 0.03);
}

.alert.alert-bottom {
  bottom: 0px;
  transition: bottom 0.2s ease-in;
  z-index: 4;
}

.alert.alert-bottom.hidden {
  bottom: -200px;
}

.alert.alert-bottom .close {
  top: 10px;
  right: 10px;
  cursor: pointer;
}

/* Blog Card */
.blog-thumbnail-card {
  height: 200px;
  object-fit: cover;
}

/*Carousel Category*/
.carousel-category .card-img {
  height: 280px;
}

.carousel-category .card-img img {
  height: 100%;
  object-fit: cover;
}

/*Slider & Image banner section*/

.carousel-caption .container {
  width: 80%;
  padding-left: 3rem;
  padding-right: 3rem;
}

.carousel-caption.position-top-left {
  justify-content: start;
  align-items: start;
}

.carousel-caption.position-top-center {
  justify-content: center;
  align-items: start;
}

.carousel-caption.position-top-right {
  justify-content: end;
  align-items: start;
}

.carousel-caption.position-center-left {
  justify-content: start;
  align-items: center;
}

.carousel-caption.position-center {
  justify-content: center;
  align-items: center;
}

.carousel-caption.position-center-right {
  justify-content: end;
  align-items: center;
}

.carousel-caption.position-bottom-left {
  justify-content: start;
  align-items: end;
}

.carousel-caption.position-bottom-center {
  justify-content: center;
  align-items: end;
}

.carousel-caption.position-bottom-right {
  justify-content: end;
  align-items: end;
}

section.carousel-text.text-left {
  text-align: start;
}

section.carousel-text.text-right {
  text-align: right;
}

.slider-button.position-top-left,
.slider-button.position-bottom-left,
.slider-button.position-left {
  display: flex;
  justify-content: start;
}

.slider-button.position-top-center,
.slider-button.position-bottom-center,
.slider-button.position-center {
  display: flex;
  justify-content: center;
}

.slider-button.position-top-right,
.slider-button.position-bottom-right,
.slider-button.position-right {
  display: flex;
  justify-content: end;
}

@media (min-width: 768px) {
  .carousel-caption .container {
    width: 60%;
  }
}

@media (min-width: 992px) {
  .main-header .header-logo img {
    width: var(--logo-width);
  }

  .carousel-caption .container {
    width: 40%;
  }
}

.categories-wrapper {
  max-height: 300px;
  overflow-y: auto;
}

/* Rich Text */
.rich-text {
  overflow: hidden;
}
.rich-text h2 {
  font-size: 1.5rem !important;
}

.rich-text h3 {
  font-size: 1.2rem !important;
}

.rich-text strong {
  font-weight: bold;
}

.rich-text blockquote {
  border-left: 6px solid #ccc;
  margin: 0 10px 1.5rem;
  padding: 0.5rem 1.5rem;
  quotes: "\201C""\201D""\2018""\2019";
}

.rich-text blockquote p {
  white-space: pre-line;
  font-style: italic;
}

.rich-text blockquote p:last-child {
  margin-bottom: 0;
}

.rich-text .image-style-align-left {
  max-width: 50%;
  float: left;
  margin: 0 1.5rem 2rem 0;
}

.rich-text .image-style-align-right {
  max-width: 50%;
  float: right;
  margin: 0 0 1.5rem 2rem;
}

.rich-text figcaption {
  background-color: #f7f7f7;
  padding: 0.6em;
  outline-offset: -1px;
  opacity: 0.8;
  display: flex;
  justify-content: center;
  font-size: 0.875rem;
}

.paragraph-text figure img,
.rich-text figure img {
    height: auto;
}

@media screen and (max-width: 576px) {
  .rich-text .image {
    float: none;
    max-width: 100%;
    margin: 0 0 1rem;
  }
}
