/* =========================================
   ADMINSELLAVI THEME - SAFE VERSION
   Doar skin (culori, font, umbre). Fără layout/grid.
========================================= */

/* ===== BODY & GLOBAL ===== */

body.dd-theme {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  color: #0f172a;
  background: radial-gradient(circle at top left, #f4f6ff 0, #edf2ff 25%, #f9fafb 60%, #e2e8f0 100%);
  -webkit-font-smoothing: antialiased;
}

body.dd-theme a {
  color: inherit;
  text-decoration: none;
}

body.dd-theme a:hover {
  text-decoration: none;
}

/* Scrollbar mai finuț */
body.dd-theme::-webkit-scrollbar {
  width: 8px;
}
body.dd-theme::-webkit-scrollbar-track {
  background: transparent;
}
body.dd-theme::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #4f46e5, #22d3ee);
  border-radius: 999px;
}

/* Titluri & texte */

body.dd-theme h1,
body.dd-theme .page-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  font-weight: 800;
  color: #020617;
}

body.dd-theme h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  color: #020617;
}

body.dd-theme h3,
body.dd-theme h4 {
  font-weight: 600;
  color: #020617;
}

body.dd-theme p {
  line-height: 1.6;
  color: #334155;
}

/* Containere */
body.dd-theme .page-wrapper,
body.dd-theme .site-wrapper,
body.dd-theme .content,
body.dd-theme main,
body.dd-theme .container,
body.dd-theme .wrapper {
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: 20px;
}

/* =========================================
   HEADER - stil gen Hongo: simplu, curat
========================================= */

body.dd-theme header,
body.dd-theme .site-header,
body.dd-theme .header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

/* Liniile din header nu modifică layout-ul, doar spacing & culori */
body.dd-theme header a,
body.dd-theme .header a {
  color: #111827;
  font-size: 0.9rem;
  font-weight: 500;
}

body.dd-theme header a:hover,
body.dd-theme .header a:hover {
  color: #4f46e5;
}

/* Bara principală (logo + meniu + coș) */
body.dd-theme .top-panel,
body.dd-theme .header-middle,
body.dd-theme .header-main {
  padding: 10px 20px;
}

/* Logo existent – doar mărime & spațiere */
body.dd-theme .logo,
body.dd-theme .site-logo,
body.dd-theme .header-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.dd-theme .logo img,
body.dd-theme .site-logo img,
body.dd-theme .header-logo img {
  max-height: 30px;
  width: auto;
}

/* Meniu principal: doar spacing între iteme */
body.dd-theme nav ul,
body.dd-theme .main-menu,
body.dd-theme .menu {
  list-style: none;
}

body.dd-theme nav ul li,
body.dd-theme .main-menu li,
body.dd-theme .menu li {
  display: inline-block;
  margin: 0 10px;
}

/* Top links (Despre noi, Contact, limbă) */
body.dd-theme .top-panel a,
body.dd-theme .top-links a {
  font-size: 0.8rem;
  color: #64748b;
}

body.dd-theme .top-panel a:hover,
body.dd-theme .top-links a:hover {
  color: #4f46e5;
}

/* Buton coș + autentificare – badge mai curat */

body.dd-theme [href*="cart"],
body.dd-theme [href*="Cos"],
body.dd-theme .cart-link,
body.dd-theme .cart-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #22c55e;
  color: #f9fafb !important;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.4);
}

body.dd-theme [href*="cart"]:hover,
body.dd-theme [href*="Cos"]:hover,
body.dd-theme .cart-link:hover,
body.dd-theme .cart-button:hover {
  filter: brightness(1.05);
}

/* "Autentificare / Înregistrare" – text mai discret + icon vibe */
body.dd-theme a[href*="login"],
body.dd-theme a[href*="autentificare"],
body.dd-theme a[href*="cont"] {
  position: relative;
  padding-left: 20px;
}

body.dd-theme a[href*="login"]::before,
body.dd-theme a[href*="autentificare"]::before,
body.dd-theme a[href*="cont"]::before {
  content: "👤";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
}

/* =========================================
   CARDURI PRODUSE - doar skin, fără grid / display
========================================= */

/* Container general de produse (home & listă) */
body.dd-theme .products,
body.dd-theme .product-list,
body.dd-theme .catalog-products,
body.dd-theme .home-products {
  margin-top: 20px;
}

/* Card generic – ne legăm de clasele care conțin "product" dar nu schimbăm display/width */
body.dd-theme .product,
body.dd-theme .product-item,
body.dd-theme .product_box,
body.dd-theme .product-box,
body.dd-theme [class*="product-card"],
body.dd-theme .products .item {
  background: #ffffff;
  border-radius: 20px;
  padding: 12px 12px 14px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
  transition: transform 0.16s ease-out, box-shadow 0.16s ease-out,
    border-color 0.16s ease-out;
}

/* Hover – card se ridică puțin, fără 3D hardcore */
body.dd-theme .product:hover,
body.dd-theme .product-item:hover,
body.dd-theme .product_box:hover,
body.dd-theme .product-box:hover,
body.dd-theme [class*="product-card"]:hover,
body.dd-theme .products .item:hover {
  transform: translateY(-4px);
  border-color: rgba(129, 140, 248, 0.95);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.18);
}

/* Imagini – doar colțuri rotunjite, fără aspect-ratio/hărțuială */
body.dd-theme .product img,
body.dd-theme .product-item img,
body.dd-theme .product-box img,
body.dd-theme .product_box img,
body.dd-theme [class*="product-card"] img,
body.dd-theme .products .item img {
  border-radius: 16px;
}

/* Nume produs & preț – un pic de hierarchy */
body.dd-theme .product h4,
body.dd-theme .product-title,
body.dd-theme .product-name,
body.dd-theme .products .item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 8px;
  margin-bottom: 4px;
  color: #0f172a;
}

body.dd-theme .price,
body.dd-theme .product-price,
body.dd-theme .products .item .price {
  font-weight: 700;
  color: #111827;
}

/* Buton "Adăugați în coș" din card */
body.dd-theme .products .item button,
body.dd-theme .products .item input[type="submit"],
body.dd-theme .product .button,
body.dd-theme .product .btn {
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #4f46e5, #22c55e);
  color: #f9fafb;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.5);
}

body.dd-theme .products .item button:hover,
body.dd-theme .products .item input[type="submit"]:hover,
body.dd-theme .product .button:hover,
body.dd-theme .product .btn:hover {
  filter: brightness(1.05);
}

/* =========================================
   FOOTER
========================================= */

body.dd-theme footer,
body.dd-theme .site-footer,
body.dd-theme .footer {
  margin-top: 40px;
  padding: 26px 20px 32px;
  background: #020617;
  color: #e5e7eb;
  border-top: 1px solid rgba(51, 65, 85, 0.9);
}

body.dd-theme footer a {
  color: #cbd5f5;
}

body.dd-theme footer a:hover {
  color: #e5edff;
}

/* =========================================
   FADE-IN (safe)
========================================= */

body.dd-theme .dd-fade {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.18, 0.89, 0.32, 1.2),
    transform 0.55s cubic-bezier(0.18, 0.89, 0.32, 1.2);
}

body.dd-theme .dd-fade.dd-in-view {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   RESPONSIVE (doar spacing, nu umblăm la griduri)
========================================= */

@media (max-width: 960px) {
  body.dd-theme .page-wrapper,
  body.dd-theme .site-wrapper,
  body.dd-theme .content,
  body.dd-theme main,
  body.dd-theme .container,
  body.dd-theme .wrapper {
    padding-inline: 14px;
  }
}

@media (max-width: 720px) {
  body.dd-theme header,
  body.dd-theme .site-header,
  body.dd-theme .header {
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
  }
}
