/* ====================================================== */
/* IMPORTS DE COMPONENTE                                  */
/* ====================================================== */
@import url('components/product-card.css');
/*@import url('components/product.css');*/


/* ====================================================== */
/* 1. PALETA DE CULORI GLOBALE ȘI VARIABILE (:root)        */
/* Simplificat: Alb, Albastru, Negru, Gri discret         */
/* ====================================================== */
:root {
  /* --- SUPRAFEȚE ȘI FUNDALURI --- */
  --th-bg-header: #ffffff;       /* Alb pur pentru header și carduri */
  --th-bg-preheader: #f8fafc;    /* Gri extrem de deschis, discret pentru preheader */
  --th-bg-page: #f1f5f9;         /* Fundal general pagină - gri deschis foarte fin */
  --th-border: #e2e8f0;          /* Borduri discrete, gri deschis */
  --th-input-bg: #ffffff;        /* Fundal alb pur pentru inputuri */
  --th-input-bg-focus: #ffffff;  /* Alb pur la focus */

  /* --- CULORI PRINCIPALE & ACȚIUNI (Butoane, Elemente Active) --- */
  --th-primary: #2563eb;         /* ALBASTRU vibrant - pentru butoane principale și elemente active */
  --th-primary-hover: #1d4ed8;   /* Albastru închis la hover */
  --th-accent: #2563eb;          /* Accent pe albastru */
  --th-danger: #dc2626;          /* Roșu strict pentru erori/alerte critice */
  --th-danger-hover: #991b1b;

  /* --- TIPOGRAFIE & TEXT (Titluri, Paragrafe, Sub-texte) --- */
  --th-text-dark: #0f172a;       /* NEGRU profund/gri foarte închis pentru titluri */
  --th-text-muted: #64748b;      /* GRI moderat pentru paragrafe și sub-texte */
  --th-text-light: #ffffff;      /* Text alb (în interiorul butoanelor albastre) */

  /* --- DIMENSIUNI ȘI RAZE GLOBALE (Neschimbate) --- */
  --th-btn-padding-y: 0.5rem;
  --th-btn-padding-x: 1rem;
  --th-btn-radius: 0.375rem;
  --th-input-radius: 0.375rem;

  /* --- ALTE ELEMENTE --- */
  --th-rating-star: #eab308;     /* Stele de rating galbene */
}


/* ====================================================== */
/* 2. RESET GENERAL & FIX SCROLL ORIZONTAL                 */
/* ====================================================== */
html, body {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--th-bg-page);
  margin: 0;
  padding: 0;
  color: var(--th-text-dark);
}

*, *:before, *:after {
  box-sizing: inherit;
}

img, picture, video, canvas, svg {
  max-width: 100%;
  height: auto;
}

/* Blocare scroll fundal pentru meniuri mobile */
html.offcanvas-open,
body.offcanvas-open {
  overflow: hidden !important;
  height: 100% !important;
  position: relative !important;
}


/* ====================================================== */
/* 3. REGULI GLOBALE PENTRU TEXTE, TITLURI ȘI LINKURI      */
/* ====================================================== */
h1, h2, h3, h4, h5, h6 {
  color: var(--th-text-dark);
}

p {
  color: var(--th-text-dark);
}

a {
  color: inherit; 
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: inline-block;
}

a:hover {
  color: var(--th-primary);
}


/* ====================================================== */
/* 4. HEADER & PREHEADER                                  */
/* ====================================================== */
.site-header {
  background-color: var(--th-bg-header) !important;
  color: var(--th-text-dark);
  border-bottom: 1px solid var(--th-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); /* Umbră fină, discretă */
}

.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;
}


/* ====================================================== */
/* 5. MENIURI, 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.08); /* Umbră discretă de adâncime */
}

.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: var(--th-text-light) !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: var(--th-text-light) !important;
}


/* ====================================================== */
/* 6. SEARCH BAR & BUTOANE DE ACȚIUNE                     */
/* ====================================================== */
.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.06);
}

#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: var(--th-input-bg);
  border: 1px solid var(--th-border);
  color: var(--th-text-dark);
  border-radius: var(--th-input-radius);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

#searchInput:focus, #searchInputMobile:focus {
  background-color: var(--th-input-bg-focus);
  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: var(--th-text-light) !important;
  padding: var(--th-btn-padding-y) var(--th-btn-padding-x);
  border-radius: var(--th-btn-radius);
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-search-custom:hover {
  background-color: var(--th-primary-hover) !important;
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.btn-search-custom i {
  color: var(--th-text-light) !important;
}

.action-badge {
  background-color: var(--th-primary) !important;
  color: var(--th-text-light) !important;
  font-size: 0.75rem;
  padding: 0.2em 0.5em;
  border-radius: 10rem;
}

.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;
}


/* ====================================================== */
/* 7. MOBILE OFFCANVAS                                    */
/* ====================================================== */
.offcanvas {
  background-color: #ffffff !important;
  color: var(--th-text-dark);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
}

@media (max-width: 991.98px) {
  #mobileMenu.offcanvas {
    width: 75% !important;
    max-width: 75% !important;
  }
}

.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: #f8fafc !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;
}


/* ====================================================== */
/* 8. ESPAIERE & FOOTER                                   */
/* ====================================================== */
.home-section {
  margin-bottom: 2rem; 
}

@media (max-width: 768px) {
  .home-section {
    margin-bottom: 1.25rem; 
  }
}

.footer-link-item {
  color: var(--th-primary) !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-primary-hover) !important;
  text-decoration: underline !important;
  padding-left: 3px;
}

.category-breadcrumb-link { 
  color: var(--th-primary); 
}

.product-main-text {
  color: var(--th-text-dark) !important;
}

.product-sub-text {
  color: var(--th-text-muted) !important;
}