/* ========================================
   BITH Custom Styles
   Minimal CSS for things Tailwind can't handle inline
   ======================================== */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #000;
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #C4956A;
}

/* ========================================
   Cart Flyout
   ======================================== */
.search-flyoveray {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 98;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}
.open-cart-aside .search-flyoveray {
  opacity: 1;
  visibility: visible;
}
.cart-flyout {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  height: 100%;
  background: #111;
  z-index: 99;
  transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow-y: auto;
  border-left: 1px solid #222;
}
.open-cart-aside .cart-flyout {
  right: 0;
}
@media (max-width: 480px) {
  .cart-flyout {
    width: 100%;
    right: -100%;
  }
}

/* ========================================
   Mobile Menu (Hamburger)
   ======================================== */
.hamburger-area {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100%;
  background: #111;
  z-index: 100;
  transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow-y: auto;
  border-right: 1px solid #222;
  padding: 20px;
}
.hamburger-area.is-visible {
  left: 0;
}

/* ========================================
   Slick Carousel Overrides
   ======================================== */
.slick-slider {
  position: relative;
}
.slick-slide {
  outline: none;
}
.slick-slide img {
  width: 100%;
}
.slider-navigation {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: 1px solid #333;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 18px;
}
.slider-navigation:hover {
  background: #C4956A;
  border-color: #C4956A;
}
.slider-navigation-prev {
  left: 20px;
}
.slider-navigation-next {
  right: 20px;
}
@media (max-width: 640px) {
  .slider-navigation {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  .slider-navigation-prev {
    left: 10px;
  }
  .slider-navigation-next {
    right: 10px;
  }
}

/* Product Details Thumbs */
.product-details-thumbs .slick-slide {
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.3s ease;
  padding: 4px;
}
.product-details-thumbs .slick-slide.slick-current {
  opacity: 1;
}
.product-details-thumbs .slick-slide:hover {
  opacity: 0.8;
}

/* ========================================
   Quick View Modal
   ======================================== */
.quick-view-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.quick-view-modal.is-visible {
  opacity: 1;
  visibility: visible;
}
.quick-view-modal-inner {
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  background: #111;
  border: 1px solid #222;
  border-radius: 4px;
  padding: 30px;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
  from { transform: translateX(-30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}
.animate-fade-up {
  animation: fadeUp 0.8s ease forwards;
}
.animate-slide-in {
  animation: slideInLeft 0.5s ease forwards;
}

/* Staggered animation delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

/* ========================================
   Product Hover Effect
   ======================================== */
.product-card .product-actions {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}
.product-card:hover .product-actions {
  opacity: 1;
  transform: translateY(0);
}
.product-card .product-img img {
  transition: transform 0.5s ease;
}
.product-card:hover .product-img img {
  transform: scale(1.05);
}

/* On touch devices, always show product actions */
@media (hover: none) {
  .product-card .product-actions {
    opacity: 1;
    transform: translateY(0) !important;
  }
}

/* Smaller product action buttons on very small screens */
@media (max-width: 400px) {
  .product-card .product-actions a {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }
}

/* ========================================
   Bootstrap Tab Override (for jQuery tabs)
   ======================================== */
.tab-pane {
  display: none;
}
.tab-pane.show.active {
  display: block;
}
.tab-pane.fade {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.tab-pane.fade.show {
  opacity: 1;
}

/* Sub-menu for mobile */
.responsive-manu .sub-menu {
  display: none;
  padding-left: 20px;
}

/* ========================================
   Hero Slider Fullscreen
   ======================================== */
.slider-area.fullscreen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Quantity Button Styles */
.pro-qty {
  display: flex;
  align-items: center;
  border: 1px solid #333;
}
.pro-qty input {
  width: 50px;
  text-align: center;
  border: none;
  background: transparent;
  color: #EDEDEC;
  font-size: 14px;
  padding: 8px 0;
  outline: none;
}
.pro-qty .qtybtn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #999;
  transition: all 0.2s ease;
  user-select: none;
}
.pro-qty .qtybtn:hover {
  color: #C4956A;
  background: rgba(196, 149, 106, 0.1);
}
