/* assets/css/style.css */
@import url('components/carousel.css');
@import url('components/product-card.css');
@import url('components/categories.css');
@import url('components/product.css');
@import url('components/owners.css');


/* ====================================================== */
/* GLOBAL COLOR PALETTE & VARIABLES                       */
/* ====================================================== */
:root {
  --th-bg-header: #ffffff;
  --th-bg-preheader: #f8fafc;
  --th-border: #e2e8f0;
  
  --th-primary: #2563eb;
  --th-primary-hover: #1d4ed8;
  --th-accent: #0284c7;
  
  --th-text-dark: #0f172a;
  --th-text-muted: #64748b;
  --th-danger: #ef4444;
}

/* ====================================================== */
/* HEADER & PREHEADER SURFACES                            */
/* ====================================================== */
.site-header {
  background-color: var(--th-bg-header) !important;
  color: var(--th-text-dark);
  border-bottom: 1px solid var(--th-border);
}

.site-preheader {
  background-color: var(--th-bg-preheader);
  border-bottom: 1px solid var(--th-border) !important;
}

.preheader-link {
  color: var(--th-text-muted) !important;
  transition: color 0.2s ease;
}

.preheader-link:hover {
  color: var(--th-primary) !important;
}

.social-links .social-icon {
  color: var(--th-text-muted);
  font-size: 1rem;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.social-links .social-icon:hover {
  color: var(--th-primary);
  transform: translateY(-1px);
}

.brand-accent {
  color: var(--th-primary) !important;
}

/* ====================================================== */
/* CATEGORY DROPDOWNS & SUBMENUS                          */
/* ====================================================== */
.site-header .dropdown-menu {
  background-color: #ffffff !important;
  border: 1px solid var(--th-border) !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.site-header .dropdown-item {
  color: var(--th-text-dark) !important;
  padding: 8px 16px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.site-header .dropdown-item:hover {
  background-color: var(--th-primary) !important;
  color: #ffffff !important;
}

.dropdown-submenu { position: relative; }
.dropdown-submenu > .dropdown-menu {
  display: none; 
  position: absolute; 
  top: 0; 
  left: 100%; 
  z-index: 1000; 
  min-width: 220px;
}

@media (min-width: 992px) {
  .dropdown-submenu:hover > .dropdown-menu { display: block; }
}

.submenu-toggle {
  color: var(--th-text-muted) !important;
  font-size: 0.75rem;
  transition: color 0.2s ease;
}

.dropdown-item:hover .submenu-toggle {
  color: #ffffff !important;
}

/* ====================================================== */
/* CUSTOM SEARCH BUTTON & SUGGESTIONS                     */
/* ====================================================== */
.search-wrapper { position: relative; }

#searchSuggestions {
  position: absolute; 
  top: calc(100% + 4px); 
  left: 0; 
  right: 0; 
  background: #ffffff; 
  color: var(--th-text-dark);
  border: 1px solid var(--th-border); 
  border-radius: 0 0 8px 8px; 
  z-index: 9999; 
  max-height: 280px; 
  overflow-y: auto; 
  display: none; 
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

#searchSuggestions div { 
  padding: 10px 14px; 
  cursor: pointer; 
  border-bottom: 1px solid #f1f5f9; 
}

#searchSuggestions div:hover { 
  background: #f8fafc; 
  color: var(--th-primary); 
}

#searchInput, #searchInputMobile {
  background-color: #f1f5f9;
  border: 1px solid var(--th-border);
  color: var(--th-text-dark);
}

#searchInput:focus, #searchInputMobile:focus {
  background-color: #ffffff;
  border-color: var(--th-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.btn-search-custom {
  background-color: var(--th-primary) !important;
  border: none !important;
  color: #ffffff !important;
  transition: background-color 0.2s ease;
}

.btn-search-custom:hover {
  background-color: var(--th-primary-hover) !important;
}

.btn-search-custom i {
  color: #ffffff !important;
}

.action-badge {
  background-color: var(--th-danger) !important;
  color: #ffffff !important;
}

.action-icon {
  position: relative;
  font-size: 1.25rem;
  color: var(--th-text-dark) !important;
  transition: color 0.2s ease;
}

.action-icon:hover {
  color: var(--th-primary) !important;
}

/* ====================================================== */
/* MOBILE OFFCANVAS STYLES                               */
/* ====================================================== */
.offcanvas {
  background-color: #ffffff !important;
  color: var(--th-text-dark);
}

.mobile-menu-wrapper .dropdown-menu {
  display: block !important;
  position: static !important;
  float: none !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding-left: 0.5rem;
  margin: 0;
}

.mobile-menu-wrapper .dropdown-item {
  color: var(--th-text-dark) !important;
  padding: 8px 12px;
  border-bottom: 1px solid var(--th-border);
}

.mobile-menu-wrapper .dropdown-item:hover {
  background: #f1f5f9 !important;
  color: var(--th-primary) !important;
}

.mobile-menu-wrapper .submenu {
  padding-left: 1rem !important;
  border-left: 2px solid var(--th-primary) !important;
  margin-top: 4px;
  margin-bottom: 8px;
}
/* ====================================================== */
/* STANDARDIZED HOMEPAGE SECTION SPACING                  */
/* ====================================================== */
.home-section {
  margin-bottom: 2rem; /* Consistent 32px gap between all homepage components */
}

@media (max-width: 768px) {
  .home-section {
    margin-bottom: 1.25rem; /* Tighter 20px gap on mobile */
  }
}
/* ====================================================== */
/* GLOBAL MOBILE HORIZONTAL SCROLL FIX                    */
/* ====================================================== */

html, body {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

/* Ensure images and tables never force a blowout */
img, picture, video, canvas, svg {
  max-width: 100%;
  height: auto;
}
/* ====================================================== */
/* FOOTER QUICK LINKS STYLING                             */
/* ====================================================== */

.footer-link-item {
  color: #64748b; /* Soft muted gray-blue text by default */
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-link-item:hover {
  color: var(--th-primary, #2563eb); /* Switches to  electric blue theme on hover */
  text-decoration: underline; /* Adds underline on hover for clarity */
  padding-left: 3px; /* Subtle slide effect */
}

/* ====================================================== */
/* UNIFIED FOOTER LINKS STYLING (ALWAYS BLUE & UNDERLINED) */
/* ====================================================== */
.footer-link-item {
  color: var(--th-primary, #2563eb) !important; /* Always electric blue */
  text-decoration: underline !important;        /* Always underlined */
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: inline-block;
}

.footer-link-item:hover {
  color: var(--th-primary-hover, #1d4ed8) !important; /* Slightly darker shade of blue on hover */
  text-decoration: underline !important;
  padding-left: 3px; /* Subtle slide effect */
}

  @media (max-width: 991.98px) {
    #mobileMenu.offcanvas {
      width: 75% !important;
      max-width: 75% !important;
    }
  }

  .mobile-categories, 
  .mobile-categories a, 
  .mobile-categories span {
    font-size: 0.85rem !important;
  }

  .mobile-categories .nav-link, 
  .mobile-categories li {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
  }

  .user-menu-box {
    font-size: 1rem !important;
  }

  .user-menu-box .fw-bold {
    font-size: 1.05rem !important;
  }

  .user-menu-box a {
    font-size: 0.95rem !important;
    padding: 2px 0;
  }

  /* Absolute background scroll lock for mobile & desktop drawers */
  html.offcanvas-open,
  body.offcanvas-open {
    overflow: hidden !important;
    height: 100% !important;
    position: relative !important;
  }

