:root {
  --ink: #000;
  --paper: #fff;
  --line: #000;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Times New Roman", Times, serif;
  line-height: 1.45;
  min-height: 100vh;

  display: flex;
  flex-direction: column;

  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

main {
  flex: 1;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}



/* Header breadcrumb */
.header-breadcrumb {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  max-width: min(58%, 700px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--paper);
  font-size: .92rem; text-align: center;
}
.header-breadcrumb a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.header-breadcrumb a:hover, .header-breadcrumb a:focus-visible { border-bottom-color: var(--paper); }
.header-breadcrumb[hidden] { display: none; }

/* Shop filters */
.shop-toolbar {
  display:flex; align-items:end; justify-content:space-between; gap:32px;
  margin-bottom:42px; padding-bottom:24px; border-bottom:1px solid var(--line);
}
.shop-toolbar-heading h1 { margin:0; font-size:clamp(2rem,4vw,3.2rem); line-height:1; }
.product-filters { display:flex; align-items:end; justify-content:flex-end; flex-wrap:wrap; gap:10px; }
.product-filters label { display:grid; gap:5px; min-width:150px; }
.product-filters label[hidden] { display:none !important; }
.product-filters label span { font-size:.75rem; text-transform:uppercase; letter-spacing:.08em; }
.product-filters select, .filter-clear {
  height:42px; border:1px solid var(--line); border-radius:0;
  background:var(--paper); color:var(--ink); font:inherit; padding:0 12px;
}
.product-filters select { min-width:150px; }
.filter-clear { cursor:pointer; padding-left:16px; padding-right:16px; }
.filter-clear:hover, .filter-clear:focus-visible { background:var(--ink); color:var(--paper); }
.product-card[hidden] { display:none; }
.filter-empty { margin:-12px 0 40px; padding:20px; border:1px solid var(--line); }

/* =========================================================
   Header
   ========================================================= */

.site-head {
  width: 100%;
  max-width: 100%;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--ink);
  z-index: 10;
  overflow: hidden;
}

.site-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  max-width: 100%;
  min-width: 0;

  padding: 12px 0;
  height: 70px;

  overflow: visible;
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;

  height: 64px;

  min-width: 0;
  max-width: 100%;

  text-decoration: none;
}

.brand-logo {
  height: 70px;
  width: auto;
  max-width: 100%;

  display: block;
  flex-shrink: 1;
}

.shop-round-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-right: 25px;

  width: 40px;
  height: 40px;

  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);

  text-decoration: none;

  flex: 0 0 40px;
  align-self: center;

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.shop-round-btn:hover,
.shop-round-btn:focus-visible {
  transform: scale(1.06);
  box-shadow: 0 0 0 2px var(--paper);
}

.site-head nav a {
  text-decoration: none;
  font-size: 1rem;

  border-bottom: 1px solid transparent;

  transition: border-color 0.15s ease;
}

.site-head nav a:hover,
.site-head nav a:focus-visible {
  border-bottom-color: var(--ink);
}

.nav-shop-btn {
  background: var(--ink);
  color: var(--paper);

  padding: 10px 26px;

  border: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink) !important;

  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.nav-shop-btn:hover,
.nav-shop-btn:focus-visible {
  background: var(--paper);
  color: var(--ink);
}


/* =========================================================
   Hero
   ========================================================= */

.hero {
  min-height: 50vh;

  display: flex;
  align-items: center;

  width: 100%;
  max-width: 100%;
}

@media (max-height: 800px) {
  .hero {
    min-height: 38vh;
  }

  .hero-copy {
    padding: 40px 0 48px;
  }
}

.hero-row {
  display: flex;
  justify-content: center;

  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.hero-copy {
  width: 100%;
  max-width: 640px;

  padding: 56px 0 64px;

  text-align: center;
}

h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  line-height: 1.04;

  margin: 0 0 26px;

  font-weight: 400;

  overflow-wrap: break-word;
}

h1 strong {
  font-weight: 700;
}

h1 em {
  font-style: italic;
  font-weight: 400;
}

.lede {
  font-size: 1.2rem;

  max-width: 42ch;

  margin: 0 auto 36px;

  overflow-wrap: break-word;
}

.cta-shop {
  display: inline-block;

  font-size: 1.15rem;
  font-weight: 700;

  text-decoration: none;

  background: var(--ink);
  color: var(--paper);

  padding: 20px 44px;

  border: 1px solid var(--ink);
  border-radius: 999px;

  max-width: 100%;

  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.cta-shop:hover,
.cta-shop:focus-visible {
  background: var(--paper);
  color: var(--ink);
}


/* =========================================================
   Listings
   ========================================================= */

.listings {
  padding: 90px 0 130px;

  width: 100%;
  max-width: 100%;
}

.section-head {
  margin-bottom: 50px;

  border-bottom: 1px solid var(--line);

  padding-bottom: 20px;

  width: 100%;
  max-width: 100%;
}

.section-label {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.12;

  margin: 0;

  font-weight: 700;

  max-width: 20ch;

  overflow-wrap: break-word;
}

.product-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 34px 28px;

  width: 100%;
  max-width: 100%;
}

.product-card {
  border: 1px solid var(--line);
  border-radius: 5px;

  min-width: 0;
  max-width: 100%;
  width: 100%;

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;

  text-decoration: none;
  color: inherit;

  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card-main {
  display: block;
  color: inherit;
  text-decoration: none;
}

.product-card > .check-offer-link {
  margin: auto auto 22px;
}

.product-card:hover,
.product-card:focus-visible {
  transform: translateY(-3px);
}

.product-card.is-highlighted {
  box-shadow: 0 0 0 2px var(--ink);
}

.product-image {
  min-height: 300px;

  display: flex;
  align-items: center;
  justify-content: center;


  padding: 18px;

  border-bottom: 1px solid var(--line);

  position: relative;
  overflow: hidden;

  background: repeating-linear-gradient(
    #FFFF 10px,
    #FFFF 11px
  );

  width: 100%;
  max-width: 100%;
}

.product-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.product-image span {
  position: relative;
  z-index: 2;

  font-size: 0.8rem;
  letter-spacing: 0.03em;

  color: #999;

  overflow-wrap: break-word;
}

.product-id,
.detail-product-id {
  display: block;
  margin: -8px 0 18px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #777;
}

.product-body {
  padding: 22px;

  min-width: 0;
  max-width: 100%;

  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.product-body h3 {
  font-size: 1.4rem;
  line-height: 1.12;

  margin: 0 0 10px;

  overflow-wrap: break-word;
}

.specs {
  margin: 0 0 20px;

  font-size: 0.94rem;

  overflow-wrap: break-word;
}

.check-offer-link {
  display: block;
  width: fit-content;

  /* Modificare: margin-top: auto împinge butonul la baza cardului */
  margin: auto auto 0;

  font-size: 0.92rem;
  font-weight: 700;

  text-decoration: none;

  background: var(--ink);
  color: var(--paper);

  padding: 9px 20px;

  border-radius: 999px;
  border: 1px solid var(--ink);

  max-width: 100%;

  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.check-offer-link:hover,
.check-offer-link:focus-visible {
  background: var(--paper);
  color: var(--ink);
}


/* =========================================================
   Product Detail Page
   ========================================================= */

.breadcrumb {
  padding: 22px 0;

  font-size: 0.92rem;

  border-bottom: 1px solid var(--line);

  width: 100%;
  max-width: 100%;
}

.breadcrumb a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.breadcrumb a:hover {
  border-bottom-color: var(--ink);
}

.product-detail {
  padding: 60px 20px 120px;
  width: 100%;
  max-width: 100%;
}

.detail-row {
  display: grid;

  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);

  gap: 70px;

  align-items: start;

  width: 100%;
  max-width: 100%;
}

.gallery-main {
  border: 1px solid var(--ink);

  aspect-ratio: 1 / 1;

  position: relative;
  overflow: hidden;
  border-radius: 5px;
  margin-bottom: 14px;

  max-width: 100%;
}

.gallery-main img {
  display: block;
  border-radius: 5px;

  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-thumbs {
  display: grid;

  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: 5px;

  gap: 10px;

  max-width: 100%;
}

.gallery-thumb {
  border: 1px solid var(--ink);

  aspect-ratio: 1 / 1;

  position: relative;
  overflow: hidden;
  border-radius: 5px;

  cursor: pointer;

  padding: 0;

  background: var(--paper);

  min-width: 0;
  max-width: 100%;
}

.gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-thumb[aria-current="true"] {
  outline: 2px solid var(--ink);
  outline-offset: -4px;
}

.detail-info {
  padding-top: 6px;

  min-width: 0;
  max-width: 100%;
}

.detail-info h1 {
  font-size: clamp(2rem, 3.6vw, 2.8rem);

  margin: 0 0 18px;

  font-weight: 700;

  overflow-wrap: break-word;
}

.detail-price {
  font-size: 1.3rem;
  font-weight: 700;

  margin: 0 0 26px;
}

.detail-desc {
  font-size: 1.08rem;

  max-width: 52ch;

  margin: 0 0 32px;

  overflow-wrap: break-word;
}

.detail-specs {
  margin: 0 0 40px;
  padding: 0;

  list-style: none;

  border-top: 1px solid var(--line);

  max-width: 100%;
}

.detail-specs li {
  display: flex;

  justify-content: space-between;

  gap: 20px;

  padding: 14px 0;

  border-bottom: 1px solid var(--line);

  font-size: 0.98rem;

  min-width: 0;
}

.detail-specs li span {
  min-width: 0;
  overflow-wrap: break-word;
}

.detail-specs li span:first-child {
  font-weight: 700;
}

.buy-btn {
  /* Poziționare fixă în partea de jos */
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;

  /* Asigură vizibilitatea și un pic de umbră pentru contrast */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);

  /* Stilurile existente */
  width: fit-content;
  margin: 0 auto;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 33px;
  text-decoration: none;
  display: block;
  background: var(--ink);
  color: var(--paper);
  padding: 18px 50px;
  border: 1px solid var(--ink);
  max-width: calc(100% - 40px);
  text-align: center;

  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}

.buy-btn:hover,
.buy-btn:focus-visible {
  background: var(--paper);
  color: var(--ink);
  transform: translateX(-50%) scale(1.03);
}


/* =========================================================
   Product Marquee
   ========================================================= */

.category-marquee {
  width: 100%;
  max-width: 100%;

  /*
   * Keep horizontal clipping for the animated track, but make
   * the marquee tall enough to contain its cards so the product
   * image and label remain visible above the footer.
   */
  overflow: hidden;

  height: 356px;

  position: relative;
  z-index: 1;

  isolation: isolate;
}

.marquee-track {
  display: flex;

  width: max-content;
  max-width: none;

  align-items: center;

  gap: 22px;

  animation: marquee-scroll 34s linear infinite;

  position: absolute;

  bottom: 18px;
  left: 0;

  /*
   * Lift the complete card above the footer so the product name
   * and bottom border never sit inside the footer area.
   * It remains inside the clipped marquee container.
   */
  will-change: transform;
}

.marquee-item {
  display: flex;
  border-radius: 5px;

  flex-direction: column;

  flex: 0 0 200px;

  width: 200px;
  height: 320px;

  text-decoration: none;
  color: inherit;

  border: 1px solid var(--ink);

  background: var(--paper);

  min-width: 0;
}

.marquee-item .product-image {
  width: 100%;

  height: 240px;
  min-height: 0;

  flex: 0 0 auto;

  border-bottom: 1px solid var(--ink);

  padding: 8px;
}

.marquee-item-name {
  display: -webkit-box;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;

  overflow: hidden;

  flex: 1 1 auto;

  padding: 8px 10px;

  font-size: 0.82rem;
  font-weight: 700;

  line-height: 1.25;

  overflow-wrap: break-word;
}

@keyframes marquee-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}


/* =========================================================
   Footer
   ========================================================= */

.site-foot {
  background: var(--ink);
  color: var(--paper);

  padding: 22px 0;

  width: 100%;
  max-width: 100%;

  overflow: hidden;
}

.site-foot-row {
  display: flex;

  justify-content: center;

  width: 100%;
  max-width: 100%;
}

.footer-logo-link {
  display: inline-flex;

  max-width: 100%;
}

.footer-logo-link img {
  height: 40px;
  width: auto;

  max-width: 100%;

  display: block;
}


/* =========================================================
   Responsive — Tablet
   ========================================================= */

@media (max-width: 980px) {
  .hero {
    min-height: 70vh;
  }

  .hero-copy {
    padding: 56px 0;

    max-width: none;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-row {
    grid-template-columns: minmax(0, 1fr);

    gap: 40px;
  }

  .marquee-item {
    width: 150px;
    flex-basis: 150px;

    height: 240px;
  }

  .marquee-item .product-image {
    height: 180px;
  }

  .category-marquee {
    height: 254px;
  }
}


/* =========================================================
   Responsive — Mobile
   ========================================================= */

@media (max-width: 640px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .container {
    width: calc(100% - 28px);

    max-width: calc(100% - 28px);

    margin-left: auto;
    margin-right: auto;
  }


  /* ---------- Mobile Header ---------- */

  .site-head {
    width: 100%;
    max-width: 100%;

    overflow: hidden;
  }

  .site-head-row {
    width: 100%;
    max-width: 100%;

    min-width: 0;

    padding-left: 0;
    padding-right: 0;
  }

  .brand-logo-link {
    min-width: 0;
    max-width: calc(100% - 55px);
  }

  .brand-logo {
    max-width: 100%;
    height: 80px;

    object-fit: contain;
    object-position: left center;
  }

  .shop-round-btn {
    margin-right: 20px;

    width: 38px;
    height: 38px;

    flex: 0 0 38px;
  }



  .header-breadcrumb { max-width:45%; font-size:.75rem; }
  .shop-toolbar { display:block; margin-bottom:30px; }
  .shop-toolbar-heading { margin-bottom:24px; }
  .product-filters { display:grid; grid-template-columns:1fr 1fr; }
  .product-filters label, .product-filters select, .filter-clear { width:100%; min-width:0; }
  .filter-clear { grid-column:1 / -1; }

  /* ---------- Mobile Hero ---------- */

  .hero {
    width: 100%;
    max-width: 100%;

    min-height: 60vh;
  }

  .hero-row {
    width: 100%;
    max-width: 100%;

    min-width: 0;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;

    padding: 40px 0;
  }

  h1 {
    max-width: 100%;

    overflow-wrap: anywhere;
    word-break: normal;
  }

  .lede {
    max-width: 100%;

    overflow-wrap: break-word;
  }

  .cta-shop {
    display: block;

    width: 100%;
    max-width: 100%;

    text-align: center;

    padding: 18px 0;

    border-radius: 999px;
  }


  /* ---------- Mobile Listings ---------- */

  .listings {
    width: 100%;
    max-width: 100%;

    padding: 70px 0 90px;
  }

  .section-head {
    width: 100%;
    max-width: 100%;
  }

  .section-head h2 {
    max-width: 100%;

    overflow-wrap: anywhere;
  }

  .product-grid {
    width: 100%;
    max-width: 100%;

    grid-template-columns: minmax(0, 1fr);

    gap: 26px;
  }

  .product-card {
    width: 100%;
    max-width: 100%;

    min-width: 0;
  }

  .product-image {
    width: 100%;
    max-width: 100%;

    min-height: 260px;
  }

  .product-body {
    width: 100%;
    max-width: 100%;

    min-width: 0;
  }

  .product-body h3 {
    overflow-wrap: anywhere;
  }

  .specs {
    overflow-wrap: anywhere;
  }


  /* ---------- Mobile Product Detail ---------- */

  .product-detail {
    width: 100%;
    max-width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }

  .detail-row {
    width: 100%;
    max-width: 100%;

    grid-template-columns: minmax(0, 1fr);

    gap: 40px;
  }

  .gallery-main {
    width: 100%;
    max-width: 100%;
  }

  .gallery-thumbs {
    width: 100%;
    max-width: 100%;

    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .detail-info {
    width: 100%;
    max-width: 100%;

    min-width: 0;
  }

  .detail-info h1 {
    max-width: 100%;

    overflow-wrap: anywhere;
  }

  .detail-desc {
    max-width: 100%;

    overflow-wrap: anywhere;
  }

  .detail-specs {
    width: 100%;
    max-width: 100%;
  }

  .detail-specs li {
    min-width: 0;
  }

  .detail-specs li span {
    min-width: 0;

    overflow-wrap: anywhere;
  }

  .buy-btn {
    max-width: 100%;
  }


  /* ---------- Mobile Marquee ---------- */

  .category-marquee {
    width: 100%;
    max-width: 100%;

    height: 200px;

    /*
     * Critical:
     * prevent the transformed marquee track from expanding
     * the document's scrollable width.
     */
    overflow: hidden;
  }

  .marquee-track {
    width: max-content;
    max-width: none;

    gap: 14px;

    left: 0;
    bottom: 10px;

    animation-duration: 34s;

    will-change: transform;
  }

  .marquee-item {
    width: 120px;

    flex: 0 0 120px;

    height: 180px;

    min-width: 120px;
    max-width: 120px;
  }

  .marquee-item .product-image {
    width: 100%;

    height: 130px;

    min-height: 0;

    padding: 6px;
  }

  .marquee-item-name {
    padding: 6px 8px;

    font-size: 0.72rem;

    line-height: 1.2;

    overflow-wrap: anywhere;
  }


  /* ---------- Mobile Footer ---------- */

  .site-foot {
    width: 100%;
    max-width: 100%;

    overflow: hidden;
  }

  .site-foot-row {
    width: 100%;
    max-width: 100%;
  }
}


/* =========================================================
   Reduced Motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }

  .marquee-track {
    animation: none;
  }
}
