/* 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 (BEBE & KIDS THEME)    */
/* ====================================================== */
:root {
  --th-bg-header: #ffffff;
  --th-bg-preheader: #fff5f8; /* Roz pal delicat pentru preheader */
  --th-border: #fbcfe8;
  
  --th-primary: #38bdf8;       /* Albastru ceresc prietenos */
  --th-primary-hover: #0ea5e9;
  --th-accent: #ec4899;        /* Roz vibrant jucăuș */
  
  --th-text-dark: #1e293b;
  --th-text-muted: #64748b;
  --th-danger: #f43f5e;
}

/* ====================================================== */
/* HEADER & PREHEADER SURFACES                            */
/* ====================================================== */
.site-header {
  background-color: var(--th-bg-header) !important;
  color: var(--th-text-dark);
  border-bottom: 2px solid #fce7f3;
  box-shadow: 0 4px 20px rgba(236, 72, 153, 0.05);
}

.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-accent) !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-accent);
  transform: scale(1.1);
}

.brand-accent {
  color: var(--th-accent) !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(236, 72, 153, 0.15);
  border-radius: 12px;
}

.site-header .dropdown-item {
  color: var(--th-text-dark) !important;
  padding: 10px 18px;
  border-radius: 6px;
  margin: 2px 6px;
  width: auto;
  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 12px 12px; 
  z-index: 9999; 
  max-height: 280px; 
  overflow-y: auto; 
  display: none; 
  box-shadow: 0 10px 20px rgba(56, 189, 248, 0.1);
}

#searchSuggestions div { 
  padding: 10px 14px; 
  cursor: pointer; 
  border-bottom: 1px solid #fdf2f8; 
}

#searchSuggestions div:hover { 
  background: #fdf2f8; 
  color: var(--th-accent); 
}

#searchInput, #searchInputMobile {
  background-color: #f8fafc;
  border: 2px solid #e2e8f0;
  color: var(--th-text-dark);
  border-radius: 25px 0 0 25px !important;
  padding-left: 1.25rem;
}

#searchInput:focus, #searchInputMobile:focus {
  background-color: #ffffff;
  border-color: var(--th-primary);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
}

.btn-search-custom {
  background-color: var(--th-accent) !important;
  border: none !important;
  color: #ffffff !important;
  border-radius: 0 25px 25px 0 !important;
  transition: background-color 0.2s ease;
}

.btn-search-custom:hover {
  background-color: #db2777 !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.35rem;
  color: var(--th-text-dark) !important;
  transition: color 0.2s ease, transform 0.2s ease;
}

.action-icon:hover {
  color: var(--th-accent) !important;
  transform: translateY(-2px);
}

/* ====================================================== */
/* MOBILE OFFCANVAS STYLES                               */
/* ====================================================== */
.offcanvas {
  background-color: #ffffff !important;
  color: var(--th-text-dark);
  border-radius: 0 20px 20px 0;
}

.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 #f1f5f9;
  border-radius: 8px;
}

.mobile-menu-wrapper .dropdown-item:hover {
  background: #fdf2f8 !important;
  color: var(--th-accent) !important;
}

.mobile-menu-wrapper .submenu {
  padding-left: 1rem !important;
  border-left: 2px solid var(--th-accent) !important;
  margin-top: 4px;
  margin-bottom: 8px;
}

/* ====================================================== */
/* STANDARDIZED HOMEPAGE SECTION SPACING                  */
/* ====================================================== */
.home-section {
  margin-bottom: 2rem; 
}

@media (max-width: 768px) {
  .home-section {
    margin-bottom: 1.25rem; 
  }
}

/* ====================================================== */
/* GLOBAL MOBILE HORIZONTAL SCROLL FIX                    */
/* ====================================================== */
html, body {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

img, picture, video, canvas, svg {
  max-width: 100%;
  height: auto;
}

/* ====================================================== */
/* FOOTER QUICK LINKS STYLING                             */
/* ====================================================== */
.footer-link-item {
  color: var(--th-primary, #38bdf8) !important; 
  text-decoration: underline !important;        
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: inline-block;
}

.footer-link-item:hover {
  color: var(--th-accent, #ec4899) !important; 
  text-decoration: underline !important;
  padding-left: 3px; 
}

@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;
  background-color: #fdf2f8 !important;
  border: 1px solid #fbcfe8 !important;
  border-radius: 12px !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;
}

/* Buton categorii stilizat pentru copii (rotunjit) */
#categoriesButton {
  border-radius: 25px !important;
  border-color: #cbd5e1 !important;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}