/*! modern-normalize v2.0.0 | MIT License | https://github.com/sindresorhus/modern-normalize */
*,
::before,
::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  line-height: 1.15;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f5f7f9;
  color: #1f2933;
  line-height: 1.6;
  min-height: 100vh;
}

main {
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

a {
  background-color: transparent;
  color: #0a5c58;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.12em;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  text-decoration: underline;
  color: #084a47;
}

a:focus-visible {
  outline: 2px solid #0b7a75;
  outline-offset: 2px;
  border-radius: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-style: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

button {
  overflow: visible;
  text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

input {
  overflow: visible;
}

[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/* Layout */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Skip link pentru accesibilitate */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #0b7a75;
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 10000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 6px;
}


.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e1e4ea;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  position: relative;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 1rem;
  color: #0b3b5a;
  text-decoration: none;
  min-width: 0;
  flex-shrink: 0;
}

.brand:focus {
  outline: 2px solid #0b7a75;
  outline-offset: 2px;
  border-radius: 4px;
}

.brand-logo {
  height: 40px;
  width: auto;
  border-radius: 0;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.brand-title {
  font-size: 1rem;
  font-weight: 600;
  color: #0b3b5a;
}

.brand-fbo {
  font-size: 0.75rem;
  color: #475569;
  line-height: 1.3;
}

.nav-toggle {
  display: none;
  border: none;
  background: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: background-color 0.2s;
  color: #0b3b5a;
}

.nav-toggle:hover,
.nav-toggle:focus {
  background: #eef2f7;
  outline: none;
}

.nav-toggle:focus-visible {
  outline: 2px solid #0b7a75;
  outline-offset: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
  list-style: none;
}

.nav a {
  font-weight: 500;
  color: #243241;
  padding: 0.5rem 0.25rem;
  border-radius: 4px;
  transition: color 0.2s, background-color 0.2s;
  text-decoration: none;
}

.nav a:hover,
.nav a:focus {
  color: #0a5c58;
  background: #f0fdfa;
  text-decoration: none;
}

.nav a.active {
  color: #0b7a75;
  font-weight: 600;
}

.nav-cta {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: #0b7a75;
  color: #fff;
  font-size: 0.8rem;
  white-space: nowrap;
  font-weight: 600;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.nav-cta:hover,
.nav-cta:focus {
  background: #095f5a;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(11, 122, 117, 0.3);
}

.nav-cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}


/* Categorii în meniu */
.nav-cats {
  position: relative;
}
.nav-cats-summary {
  list-style: none;
  cursor: pointer;
  font-weight: 500;
  color: #243241;
  padding: 0.5rem 0.25rem;
  border-radius: 4px;
  user-select: none;
}
.nav-cats-summary::-webkit-details-marker { display:none; }
.nav-cats-summary:focus-visible {
  outline: 2px solid #0a5c58;
  outline-offset: 2px;
}
.nav-cats[open] .nav-cats-summary {
  color: #0a5c58;
  background: #f0fdfa;
}
.nav-cats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .35rem .6rem;
  margin-top: .5rem;
}
.nav-cats-grid a {
  font-size: .9rem;
  padding: .35rem .5rem;
  border-radius: .6rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #243241;
  text-decoration: none;
}
.nav-cats-grid a:hover,
.nav-cats-grid a:focus {
  background: #f0fdfa;
  border-color: #99f6e4;
  color: #0a5c58;
  text-decoration: none;
}
@media (min-width: 769px){
  .nav-cats-grid{
    position: absolute;
    top: calc(100% + .65rem);
    left: 0;
    width: min(520px, 70vw);
    padding: .75rem;
    background: #fff;
    border: 1px solid #e1e4ea;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0,0,0,.12);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 0;
    z-index: 200;
    max-height: 60vh;
    overflow: auto;
  }
}
@media (max-width: 768px){
  .nav-cats-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* Pills categorii pe pagina de produse */
.category-pills{
  display:flex;
  gap:.5rem;
  flex-wrap:nowrap;
  overflow:auto;
  padding:.25rem .1rem .75rem;
  -webkit-overflow-scrolling: touch;
}
.category-pills .pill{
  flex:0 0 auto;
  padding:.45rem .75rem;
  border-radius:999px;
  background:#ffffff;
  border:1px solid #e1e4ea;
  color:#243241;
  font-size:.9rem;
  white-space:nowrap;
}
.category-pills .pill:hover,
.category-pills .pill:focus{
  background:#f0fdfa;
  border-color:#99f6e4;
  color:#0a5c58;
  text-decoration:none;
}

/* Search */
.header-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  flex: 1;
  max-width: 400px;
  margin: 0 1rem;
}

.header-search input {
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 2px solid #cbd2e1;
  font-size: 0.9rem;
  width: 100%;
  transition: all 0.2s;
  background: #fff;
  color: #1f2933;
}

.header-search input:focus {
  outline: none;
  border-color: #0b7a75;
  box-shadow: 0 0 0 3px rgba(11, 122, 117, 0.1);
}

.header-search input::placeholder {
  color: #6b7280;
}

/* Live search dropdown */
.live-search-box {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0.5rem;
  max-height: 420px;
  overflow-y: auto;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
  padding: 0.5rem 0;
  display: none;
  z-index: 9999;
}

.live-search-box[aria-hidden="false"] {
  display: block;
}

.live-item {
  display: flex;
  width: 100%;
  text-align: left;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  border: none;
  background: none;
  transition: background-color 0.2s;
  align-items: center;
  font-family: inherit;
  color: inherit;
}

.live-item:hover,
.live-item:focus {
  background: #f1f5f9;
  outline: none;
}

.live-item:focus-visible {
  outline: 2px solid #0b7a75;
  outline-offset: -2px;
}

.live-img {
  width: 50px;
  height: 50px;
  border-radius: 0.6rem;
  object-fit: cover;
  background: #f8fafc;
  flex-shrink: 0;
}

.live-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
}

.live-sku {
  font-size: 0.8rem;
  color: #475569;
}

/* Hero */
.hero {
  padding: 3rem 0 2rem;
  background: linear-gradient(135deg, #f0fdfa 0%, #f5f7f9 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 3rem;
  align-items: center;
}

.hero-eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #0b7a75;
  margin-bottom: 0.75rem;
  display: inline-block;
  background: rgba(11, 122, 117, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.hero-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  color: #0b3b5a;
  font-weight: 700;
}

.hero-lead {
  font-size: 1.1rem;
  color: #374151;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.badge {
  font-size: 0.8rem;
  border-radius: 999px;
  border: 1px solid #cbd2e1;
  padding: 0.5rem 1rem;
  color: #4b5563;
  background: #fff;
  font-weight: 500;
  transition: all 0.2s;
}

.badge:hover {
  border-color: #0b7a75;
  color: #0b7a75;
  transform: translateY(-1px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  line-height: 1;
  min-height: 44px;
}

.btn:focus {
  outline: 2px solid #0b7a75;
  outline-offset: 2px;
}

.btn-primary {
  background: #0b7a75;
  color: #fff;
  border-color: #0b7a75;
}

.btn-primary:hover,
.btn-primary:focus {
  background: #095f5a;
  border-color: #095f5a;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 122, 117, 0.3);
}

.btn-ghost {
  background: transparent;
  color: #0b7a75;
  border-color: #0b7a75;
}

.btn-ghost:hover,
.btn-ghost:focus {
  background: #0b7a75;
  color: #fff;
  transform: translateY(-2px);
}

.hero-aside {
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid #d0e5e2;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.hero-aside h2 {
  font-size: 1.1rem;
  color: #0b3b5a;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-aside p {
  font-size: 0.95rem;
  color: #4b5563;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.hero-aside ul {
  font-size: 0.95rem;
  color: #4b5563;
  margin-left: 1.25rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.hero-aside li {
  margin-bottom: 0.5rem;
}

.hero-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: #64748b;
  border-top: 1px solid #e5e7eb;
  padding-top: 1.5rem;
}

.hero-meta strong {
  color: #0b3b5a;
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #0b3b5a;
  line-height: 1.2;
}

.section-sub {
  font-size: 1.1rem;
  color: #6b7280;
  line-height: 1.5;
}

/* Category pills */
.cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.cat-pill {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: 999px;
  border: 2px solid #cbd2e1;
  background: #fff;
  color: #374151;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.cat-pill:hover,
.cat-pill:focus {
  border-color: #0b7a75;
  color: #0b7a75;
  transform: translateY(-1px);
}

.cat-pill.active {
  background: #0b7a75;
  color: #fff;
  border-color: #0b7a75;
}

.cat-pill:focus-visible {
  outline: 2px solid #0b7a75;
  outline-offset: 2px;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid #e0e4ef;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: #0b7a75;
}

.card img {
  border-radius: 0.8rem;
  height: 200px;
  object-fit: contain;
  width: 100%;
  transition: transform 0.3s ease;
}

.card:hover img {
  transform: scale(1.05);
}

.card-category {
  font-size: 0.75rem;
  color: #0b7a75;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #4b5563;
  margin-top: auto;
}

.card-price {
  font-weight: 700;
  color: #0b7a75;
  font-size: 1.1rem;
}

.card-sku {
  color: #6b7280;
  font-size: 0.8rem;
}

.card-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-sm {
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  border-radius: 0.8rem;
  min-height: 40px;
}

.btn-outline {
  border: 2px solid #cbd2e1;
  background: #fff;
  color: #0b3b5a;
  font-weight: 500;
}

.btn-outline:hover,
.btn-outline:focus {
  background: #eef2f7;
  border-color: #0b7a75;
  color: #0b7a75;
  transform: translateY(-1px);
}

/* Product detail */
.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr);
  gap: 3rem;
  align-items: start;
}

.product-hero img {
  border-radius: 1.1rem;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.prod-label {
  font-size: 0.8rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.prod-title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #0b3b5a;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.prod-sku {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.prod-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0b7a75;
  margin-bottom: 1rem;
}

.prod-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.prod-content h2 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.75rem;
  color: #111827;
  font-weight: 700;
}

.prod-content p {
  font-size: 1rem;
  color: #4b5563;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.prod-content ul {
  margin-left: 1.25rem;
  font-size: 1rem;
  color: #4b5563;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.prod-content li {
  margin-bottom: 0.5rem;
  position: relative;
}

.prod-content li::before {
  content: "•";
  color: #0b7a75;
  font-weight: bold;
  position: absolute;
  left: -1rem;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid #e0e4ef;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s ease;
}

.blog-card:hover,
.blog-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-color: #0b7a75;
}

.blog-meta {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
}

.blog-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.blog-excerpt {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.5;
  flex-grow: 1;
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid #e1e4ea;
  background: #fff;
  padding: 0.75rem 0;
}

.footer-inner {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: #6b7280;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: #374151;
  transition: color 0.2s;
  text-decoration: none;
}

.footer-anpc {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  padding: 0.75rem 0 0.5rem;
  border-top: 1px solid #e1e4ea;
}

.footer-anpc a {
  display: inline-block;
  line-height: 0;
  border-radius: 5px;
  transition: opacity 0.2s;
  text-decoration: none;
}

.footer-anpc a:hover {
  opacity: 0.85;
}

.footer-links a:hover,
.footer-links a:focus {
  color: #0b7a75;
  text-decoration: underline;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: 640px;
  width: calc(100% - 2rem);
  background: #0b3b5a;
  color: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.4);
  z-index: 1000;
  display: none;
}

.cookie-banner[aria-hidden="false"] {
  display: block;
}

.cookie-inner {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.cookie-text {
  font-size: 0.9rem;
  line-height: 1.5;
  flex: 1;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.cookie-actions .btn {
  font-size: 0.85rem;
  padding: 0.6rem 1.2rem;
  border-radius: 0.7rem;
  min-height: 40px;
}

.cookie-actions .btn-primary {
  background: #22c55e;
  border-color: #22c55e;
}

.cookie-actions .btn-primary:hover,
.cookie-actions .btn-primary:focus {
  background: #16a34a;
  border-color: #16a34a;
}

.cookie-actions .btn-ghost {
  background: transparent;
  border: 2px solid #e5f3ff;
  color: #e5f3ff;
}

.cookie-actions .btn-ghost:hover,
.cookie-actions .btn-ghost:focus {
  background: #e5f3ff;
  color: #0b3b5a;
}

/* Floating discount button */
.discount-fab {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 100;
}

.discount-fab a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f97316;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
  min-height: 44px;
}

.discount-fab a:hover,
.discount-fab a:focus {
  background: #ea580c;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 15px 40px rgba(249, 115, 22, 0.6);
}

.discount-fab span.icon {
  font-size: 1.1rem;
}

/* Performance optimizations */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Focus styles for better accessibility */
*:focus-visible {
  outline: 2px solid #0b7a75;
  outline-offset: 2px;
  border-radius: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn-primary {
    background: #000;
    border-color: #000;
  }
  
  .nav-cta {
    background: #000;
    border-color: #000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .card:hover,
  .card:hover img {
    transform: none;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-grid {
    gap: 2rem;
  }
  
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.25rem;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-aside {
    order: -1;
  }
  
  .product-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .header-search {
    order: 3;
    width: 100%;
    margin: 1rem 0 0 0;
    max-width: none;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: fixed;
    inset: 4rem 1rem auto 1rem;
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #e1e4ea;
    padding: 1.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 100;
  }
  
  .nav.show {
    display: flex;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .header-inner {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .brand {
    flex: 1;
    min-width: 0;
  }
  
  .live-search-box {
    position: fixed;
    top: 120px;
    left: 1rem;
    right: 1rem;
    width: auto;
    max-width: none;
    margin-top: 0;
  }
  
  .cookie-banner {
    bottom: 0.5rem;
    width: calc(100% - 1rem);
  }
  
  .cookie-inner {
    flex-direction: column;
    gap: 1rem;
  }
  
  .cookie-actions {
    align-self: stretch;
    justify-content: center;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }
  
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .hero {
    padding: 2rem 0 1.5rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .card {
    padding: 1.25rem;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero-actions .btn {
    text-align: center;
  }
  
  .cat-pills {
    gap: 0.5rem;
  }
  
  .cat-pill {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .discount-fab {
    right: 1rem;
    bottom: 1rem;
  }
  
  .discount-fab a {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }
}

/* Print styles */
@media print {
  .site-header,
  .discount-fab,
  .cookie-banner {
    display: none !important;
  }
  
  .page {
    background: white !important;
  }
  
  .card {
    break-inside: avoid;
    border: 1px solid #000 !important;
  }
}
/* Responsive Design — extra rules for tablet */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (max-width: 900px) {
  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: fixed;
    inset: 4rem 1rem auto 1rem;
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #e1e4ea;
    padding: 1.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 100;
  }
  
  .nav.show {
    display: flex;
  }
  
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
  }
  
  .header-inner {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .brand {
    flex: 1;
    min-width: 0;
  }
  
  .live-search-box {
    position: fixed;
    top: 120px;
    left: 1rem;
    right: 1rem;
    width: auto;
    max-width: none;
    margin-top: 0;
  }
  
  .cookie-banner {
    bottom: 0.5rem;
    width: calc(100% - 1rem);
    padding: 1.25rem;
  }
  
  .cookie-inner {
    flex-direction: column;
    gap: 1rem;
  }
  
  .cookie-actions {
    align-self: stretch;
    justify-content: center;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }
  
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .footer-links {
    justify-content: center;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .hero {
    padding: 2rem 0 1.5rem;
  }
}

@media (max-width: 640px) {
  .hero-badges {
    justify-content: center;
  }
  
  .badge {
    text-align: center;
  }
  
  .card-actions {
    justify-content: center;
  }
  
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .hero {
    padding: 1.5rem 0 1rem;
  }
  
  .section {
    padding: 1.5rem 0;
  }
  
  .card {
    padding: 1.25rem;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  
  .hero-actions .btn {
    text-align: center;
    width: 100%;
  }
  
  .cat-pills {
    gap: 0.5rem;
    justify-content: center;
  }
  
  .cat-pill {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .discount-fab {
    right: 1rem;
    bottom: 1rem;
  }
  
  .discount-fab a {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }
  
  .brand-text {
    font-size: 0.9rem;
  }
  
  .brand-fbo {
    font-size: 0.7rem;
  }
  
  .hero-eyebrow {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
  }
  
  .hero-lead {
    font-size: 1rem;
    text-align: center;
  }
  
  .section-title {
    text-align: center;
  }
  
  .section-sub {
    text-align: center;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 0 0.5rem;
  }
  
  .card {
    padding: 1rem;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .brand {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .brand-text {
    align-items: center;
  }
}

/* Print styles */
@media print {
  .site-header,
  .discount-fab,
  .cookie-banner,
  .nav-toggle,
  .hero-actions .btn-ghost,
  .card-actions .btn-outline {
    display: none !important;
  }
  
  .page {
    background: white !important;
  }
  
  .card {
    break-inside: avoid;
    border: 1px solid #000 !important;
    box-shadow: none !important;
    margin-bottom: 1rem;
  }
  
  .hero {
    background: white !important;
    border-bottom: 2px solid #000;
  }
  
  .hero-title {
    color: #000 !important;
  }
  
  .btn-primary {
    background: #000 !important;
    color: #fff !important;
    border: 1px solid #000 !important;
  }
  
  a {
    color: #000 !important;
    text-decoration: underline !important;
  }
  
  .product-grid {
    display: block;
  }
}

/* Utility classes for JavaScript */
.js-hidden {
  display: none !important;
}

.js-visible {
  display: block !important;
}

.loading {
  opacity: 0.6;
  pointer-events: none;
}

.error-message {
  background: #fee2e2;
  color: #dc2626;
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid #fecaca;
  margin: 1rem 0;
}

.success-message {
  background: #dcfce7;
  color: #166534;
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid #bbf7d0;
  margin: 1rem 0;
}

/* Animation keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Loading states */
.loading-skeleton {
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
  body {
    background: #0f172a;
    color: #e2e8f0;
  }
  
  .site-header {
    background: rgba(15, 23, 42, 0.95);
    border-bottom-color: #1e293b;
  }
  
  .card,
  .hero-aside {
    background: #1e293b !important;  /* !important bate fix-ul de imagini de mai jos */
    background-image: none !important;
    border-color: #334155;
    color: #e2e8f0;
  }
  
  /* Meniu mobil dark mode – fundal închis ca textul să fie vizibil */
  .nav {
    background: #1e293b;
    border-color: #334155;
  }

  .nav a {
    color: #e2e8f0;
  }

  .nav a:hover,
  .nav a:focus {
    background: #334155;
    color: #fff;
  }

  /* Titlul "Categorii" din meniu */
  .nav-cats-summary {
    color: #e2e8f0;
  }
  .nav-cats[open] .nav-cats-summary {
    color: #5eead4;
    background: #0f3d3a;
  }

  /* Pastilele de categorii */
  .nav-cats-grid a {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
  }
  .nav-cats-grid a:hover,
  .nav-cats-grid a:focus {
    background: #0f3d3a;
    border-color: #0b7a75;
    color: #5eead4;
  }
  
  .header-search input {
    background: #334155;
    border-color: #475569;
    color: #e2e8f0;
  }
  
  .header-search input::placeholder {
    color: #94a3b8;
  }
  
  .live-search-box {
    background: #1e293b;
    border-color: #334155;
  }
  
  .live-item:hover,
  .live-item:focus {
    background: #334155;
  }
}

/* Admin specific styles that might be needed */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus management for better accessibility */
.focus-ring:focus {
  outline: 2px solid #0b7a75;
  outline-offset: 2px;
}

/* Selection styles */
::selection {
  background: rgba(11, 122, 117, 0.2);
  color: inherit;
}

::-moz-selection {
  background: rgba(11, 122, 117, 0.2);
  color: inherit;
}

/* Scrollbar styling for webkit browsers */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Ensure images don't overflow containers */
img {
  max-inline-size: 100%;
  block-size: auto;
}

/* Improve text rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeSpeed;
}

/* Ensure buttons have correct cursor */
button,
[role="button"] {
  cursor: pointer;
}

/* Disabled state styles */
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn:disabled:hover,
.btn[aria-disabled="true"]:hover {
  transform: none !important;
}

/* High DPI screen optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .brand-logo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Reduced data mode */
@media (prefers-reduced-data: reduce) {
  img[loading="lazy"] {
    loading: eager;
  }
  
  .hero {
    background: #f5f7f9;
  }
}

/* Final performance optimizations */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }
}

/* Ensure content visibility for performance */
.content-visibility-auto {
  content-visibility: auto;
  contain-intrinsic-size: 1px 5000px;
}

/* END OF STYLES.CSS */

/* ============================================================
   DARK MODE — completare culori text lipsă
   Rezolvă textul "șters" pe telefonele cu dark mode activat
   ============================================================ */
@media (prefers-color-scheme: dark) {
  .hero-title,
  .section-title,
  .blog-title,
  .prod-title,
  .hero-aside h2,
  .prod-content h2 {
    color: #f1f5f9;
  }

  /* Titlul produsului din card — gri mediu, mai discret pe fundal #1e293b */
  .card-title {
    color: #94a3b8;
    text-decoration: none;
  }

  .hero-lead,
  .hero-aside p,
  .hero-aside ul,
  .blog-excerpt,
  .prod-content p,
  .prod-content ul {
    color: #cbd5e1;
  }

  .section-sub,
  .hero-meta,
  .prod-sku,
  .prod-label,
  .blog-meta {
    color: #94a3b8;
  }

  .hero-meta strong {
    color: #e2e8f0;
  }

  .badge {
    background: #1e293b;
    border-color: #475569;
    color: #cbd5e1;
  }

  .hero-eyebrow {
    background: rgba(11, 122, 117, 0.25);
    color: #5eead4;
  }

  .card-category {
    color: #5eead4;
  }

  .card-sku {
    color: #94a3b8;
  }

  .card-meta {
    color: #94a3b8;
  }

  .card-price {
    color: #5eead4;
  }

  .prod-price {
    color: #5eead4;
  }

  .site-footer-legal {
    color: #94a3b8;
  }

  .site-footer-legal a {
    color: #5eead4;
  }

  .footer-links a {
    color: #94a3b8;
  }

  .footer-inner {
    color: #64748b;
  }

  .nav-cats-grid a {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
  }

  .category-pills .pill {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
  }

  .cat-pill {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
  }

  .mobile-info {
    background: #0f172a;
    border-top-color: #1e293b;
  }

  .btn-outline {
    border-color: #475569;
    background: #1e293b;
    color: #cbd5e1;
  }
}

/* --- FIX PATCH BELOW --- */


/* FIX pentru imagini acoperite pe pagina de produse */

/* Elimină orice background aplicat pe imagini */
img, .card img {
    background: none !important;
    background-image: none !important;
}

/* Elimină orice background-pattern de pe carduri */
.card {
    background: #ffffff !important;
    background-image: none !important;
    text-decoration: none; /* cardul este <a>, eliminăm sublinierea */
    color: inherit;
}

/* Asigură afișarea corectă a imaginilor */
.card img {
    display: block !important;
    width: 100% !important;
    height: 200px !important;
    object-fit: contain !important;
}

img,
img[loading="lazy"],
.card img {
    opacity: 1 !important;
}

/* Footer legal – variantă compactă, centrată și mai discretă */
.site-footer-legal {
    text-align: center;
    font-size: 0.75rem;       /* font mai mic */
    max-width: 600px;         /* mai îngust = arată PREMIUM */
    margin: 0 auto 1rem;      /* centrat complet */
    line-height: 1.35;        /* compact, dar lizibil */
    color: #6b7280;           /* gri discret */
    padding: 0 1rem;          /* puțin spațiu lateral pe mobil */
}

.site-footer-legal p {
    margin: 0.25rem 0;        /* distanță mică între paragrafe */
}

.site-footer-legal a {
    color: #0b7a75;           /* culorile tale */
    text-decoration: none;
}

.site-footer-legal a:hover {
    text-decoration: underline;
}




/* Mobile layout refinements */
@media (max-width: 768px) {
  .brand-fbo {
    display: none;
  }

  .header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .header-inner .brand {
    order: 1;
  }

  .header-inner .header-search {
    order: 2;
  }

  .header-inner .nav-toggle {
    order: 3;
    justify-self: flex-end;
  }

  .header-search {
    width: 100%;
  }

  .header-search input[type="search"] {
    width: 100%;
    text-align: left;
    padding-inline: 0.9rem;
  }
}

/* Extra section for mobile info on home */
.mobile-info {
  display: none;
}

@media (max-width: 768px) {
  .hero {
    display: none;
  }
  .mobile-info {
    display: block;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
  }
}

@media (max-width: 420px){
  .brand-logo{ height: 34px; }
  .brand-title{ font-size: .95rem; }
  .brand-fbo{ font-size: .7rem; }

  body{ font-size: 16px; }
  .hero-title{ font-size: 1.6rem; }
  .section-title{ font-size: 1.35rem; }
  .nav{ inset: 4rem .75rem auto .75rem; padding: 1.1rem; }
  .header-search input{ padding: .65rem 1rem; }
}

.catalog-card .btn {
  margin-bottom: 1.5rem;
}

/* Performance & accessibility enhancements */
.section,
.blog-card,
.card {
  content-visibility: auto;
  contain-intrinsic-size: 1px 600px;
}

.prod-main-image {
  width: 100%;
  max-width: 560px;
  height: auto;
  object-fit: contain;
}

.live-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: .75rem;
  align-items: center;
  width: 100%;
  padding: .75rem;
  border: 0;
  background: #fff;
  text-align: left;
  color: inherit;
}

.live-item:hover,
.live-item:focus {
  background: #f8fafc;
  text-decoration: none;
}

.live-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: .5rem;
  background: #fff;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
