:root {
  --brand-yellow: #d5c600;
}

input:focus,
input[type]:focus,
textarea:focus,
select:focus {
  outline: none;

  --tw-ring-offset-shadow: none;
  --tw-ring-shadow: none;
  --tw-ring-color: transparent;

  border-color: var(--brand-yellow);
  box-shadow: 0 0 0 2px rgba(255, 237, 0, 0.35);
}


input[type="checkbox"],
input[type="radio"] {
  accent-color: #d5c600;
  color: #d5c600;
}
/* Remove default styles */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: transparent;
  cursor: pointer;
}

/* =========================
   CHROME / EDGE / SAFARI
   ========================= */

/* Track */
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: #e5e5e5;
  border-radius: 999px;
}

/* Filled part */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 16px;
  width: 16px;
  background: var(--brand-yellow);
  border-radius: 50%;
  margin-top: -5px;
  box-shadow: -1000px 0 0 1000px var(--brand-yellow);
}

/* =========================
   FIREFOX
   ========================= */

input[type="range"]::-moz-range-track {
  height: 6px;
  background: #e5e5e5;
  border-radius: 999px;
}

input[type="range"]::-moz-range-progress {
  height: 6px;
  background: var(--brand-yellow);
  border-radius: 999px;
}

input[type="range"]::-moz-range-thumb {
  height: 16px;
  width: 16px;
  background: var(--brand-yellow);
  border-radius: 50%;
  border: none;
}

/* =========================
   FOCUS STATE
   ========================= */

input[type="range"]:focus-visible {
  outline: none;
}

input[type="range"]:focus-visible::-webkit-slider-thumb {
  box-shadow:
    -1000px 0 0 1000px var(--brand-yellow),
    0 0 0 4px rgba(255, 237, 0, 0.4);
}

/* Card */
.product-card {
    position: relative;
    overflow: hidden;
	min-height: 400px;
	height: 100%;
}

/* Image */
.product-image {
    position: relative;
    z-index: 1;
    max-height: 250px;
}

.product-image img{
    height: 100%;
}

/* Content area */
.product-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 16px;
    background: #F8F6DF;
    z-index: 2;
  	padding: 10px;
    transform: translateY(30px);
    transition: transform 0.4s ease;
}

/* Title & price */
.product-title,
.product-price {
    transition: transform 0.4s ease;
}

/* Button hidden on load */
.add-variants-cart,
.add-to-cart {
    opacity: 0;
    transform: translateY(30px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.4s ease;
}

/* Hover effects */
.product-card:hover .product-content {
    transform: translateY(-20px);
}

.product-card:hover .add-variants-cart,
.product-card:hover .add-to-cart {
    opacity: 1;
    transform: translateY(10px);
    pointer-events: auto;
}

.fade-3d {
  opacity: 0;
  transform-style: preserve-3d;
  transform:
    translate3d(0px, 32px, -40px) 
    scale3d(0.99, 0.99, 1)
    rotateX(6deg)               
    rotateY(0deg)
    rotateZ(0deg)
    skew(0deg, 0deg);

  transition:
    transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.6s ease-out;
  will-change: transform, opacity;
}

.fade-3d.from-bottom {
  transform:
    translate3d(0px, 70px, -140px)
    scale3d(0.97, 0.97, 0.97)
    rotateX(22deg)
    rotateY(0deg)
    rotateZ(0deg)
    skew(0deg, 0deg);
}

.fade-3d.from-top {
  transform: translate3d(0, -60px, -80px) rotateX(-18deg);
}

.fade-3d.from-left {
  transform: translate3d(-60px, 0, -80px) rotateY(-18deg);
}

.fade-3d.from-right {
  transform: translate3d(60px, 0, -80px) rotateY(18deg);
}
.fade-3d.in {
  opacity: 1;
  transform:
    translate3d(0px, 0px, 0px)
    scale3d(1, 1, 1)
    rotateX(0deg)
    rotateY(0deg)
    rotateZ(0deg)
    skew(0deg, 0deg);
  transform-style: preserve-3d;
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.25s; }
.delay-3 { transition-delay: 0.4s; }
.delay-4 { transition-delay: 0.55s; }
.delay-5 { transition-delay: 0.7s; }
.delay-6 { transition-delay: 0.85s; }
.delay-7 { transition-delay: 1s; }
.delay-8 { transition-delay: 1.15s; }
.delay-9 { transition-delay: 1.3s; }
.delay-10 { transition-delay: 1.45s; }

body {
  overflow-x: hidden;
}

@media only screen and (max-width: 1023px) {
    html, body {
  		overflow-x: hidden;
	}
}

.fade-3d {
  backface-visibility: hidden;
  will-change: transform, opacity;
}


#mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;

  background: #fff;
  z-index: 9999;
  transform: translateX(-100%);
  opacity: 0;

  transition:
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease;

  pointer-events: none;
}

/* visible state */
#mobile-nav.is-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

#cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;

  background: #fff;
  z-index: 9999;

  transform: translateX(100%);
  opacity: 0;

  transition:
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease;

  pointer-events: none;

  will-change: transform, opacity;
  backface-visibility: hidden;
}

#filter-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;

  background: #fff;
  z-index: 9999;

  transform: translateX(100%);
  opacity: 0;

  transition:
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease;

  pointer-events: none;

  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* visible state */
#filter-drawer.is-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* visible state */
#cart-drawer.is-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

#description_drawer{
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;

  background: #fff;
  z-index: 9999;

  transform: translateX(100%);
  opacity: 0;

  transition:
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease;

  pointer-events: none;

  will-change: transform, opacity;
  backface-visibility: hidden;
}

#description_drawer.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#search-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 9999;

  /* hidden state (off-screen top) */
  transform: translateY(-100%);
  opacity: 0;

  transition:
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease;

  pointer-events: none;

  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* visible state */
#search-container.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.search-content {
  transform: translateY(-30px);
  opacity: 0;

  transition:
    transform 0.6s ease,
    opacity 0.6s ease;

  transition-delay: .5s;
}

#search-container.is-open .search-content {
  transform: translateY(0);
  opacity: 1;
}

#cart-close-button svg path,
#cart-close-button svg line,
#search-close-button svg path,
#search-close-button svg line {
  transition: stroke 0.3s ease;
}

#cart-close-button:hover svg path,
#cart-close-button:hover svg line,
#search-close-button:hover svg path,
#search-close-button:hover svg line {
  stroke: #3d3118;
}
#cart-close-button,
#search-close-button {
  transition: transform 0.25s ease, opacity 0.25s ease;
}

#cart-close-button:hover,
#search-close-button:hover {
  transform: scale(1.1);
  opacity: 0.85;
}

.solid-button,
.solid-button p{
  transition-duration: 0.5s;
}

.solid-button:hover{
  background-color: #d9ca00;
}
.solid-button:hover p{
  color: #ffffff;
}
.auto-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.auto-slider-track {
  display: flex;
  width: max-content;
  animation: scroll-left 30s linear infinite;
}

/* Infinite scroll animation */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.hover-navbar-text {
  position: relative;
  display: inline-block;
}

.hover-navbar-text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background-color: #000;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.hover-navbar-text:hover::after {
  transform: scaleX(1);
}

.hover-text {
  position: relative;
  display: inline-block;
}

.hover-navbar-text.active {
    color: #52504c;
}

.hover-navbar-text.active::after {
    transform: scaleX(1);
}


.hover-text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background-color: yellow;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.hover-text:hover::after {
  transform: scaleX(1);
}
.custom-modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 10000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: hidden; /* Enable scroll if needed */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  backdrop-filter: blur(2px); /* Subtle blur effect */
  align-items: center;
  justify-content: center;
}

.custom-modal.show {
    display: flex;
}

.custom-modal-content {
  background-color: #fffde7; /* Minimal Yellow (Light Yellow) */
  margin: auto;
  padding: 30px;
  border: 1px solid #fff59d; /* Slightly darker yellow border */
  border-left: 5px solid #fbc02d; /* Accent warning color on left */
  width: 90%;
  max-width: 450px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  position: relative;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #5d4037; /* Dark brownish text for contrast on yellow */
}

.custom-close-btn {
  color: #bfb5b2;
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.custom-close-btn:hover,
.custom-close-btn:focus {
  color: #5d4037;
  text-decoration: none;
  cursor: pointer;
}

#custom-modal-message {
    font-size: 16px;
    line-height: 1.5;
}
.truncate-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.variant-form {
  text-align: left;
}

.variant-group {
  margin-bottom: 22px;
}

.variant-label {
  font-weight: 600;
  margin-bottom: 10px;
  color: #5d4037;
}

.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* hide radios */
.variant-option input {
  display: none;
}

/* pill */
.variant-pill {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid #e0e0e0;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  user-select: none;
}

/* hover */
.variant-pill:hover {
  border-color: #fbc02d;
}

/* selected */
.variant-option input:checked + .variant-pill {
  background: #fbc02d;
  border-color: #fbc02d;
  color: #4e342e;
  box-shadow: 0 2px 6px rgba(251, 192, 45, 0.35);
}

/* footer */
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 25px;
}

.btn-text {
  background: none;
  border: none;
  font-weight: 500;
  color: #6d4c41;
  cursor: pointer;
}

.btn-primary {
  background: #fbc02d;
  border: none;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}
@media only screen and (max-width: 576px){
.menu-item{
    flex-direction: column-reverse !important;
    align-items: flex-end;
}
.product-card{
    min-height: 300px;
}
.register-button-container{
    flex-direction: column-reverse !important;
}
}
