/* LaCie vendor page (partner/lacie.php) */

:root {
  --color-lacie: #f47321;
  --color-lacie-dark: #d45e10;
  --lc-blue: #096fb1;
  --lc-blue-dark: #0a5a95;
  --lc-ink: #15202b;
  --lc-muted: #55606c;
  --lc-light: #f4f6f9;
  --lc-line: #e1e6ee;
  --lc-radius: 16px;
}

body {
  overflow-x: hidden;
}

.vendor-color {
  color: var(--color-lacie);
}

.lacie-page p {
  font-size: 1rem;
  line-height: 1.7;
}

.lacie-page h2 {
  color: var(--lc-ink);
  font-weight: 800;
  letter-spacing: -0.015em;
}

.lacie-page h4 {
  margin-bottom: 0.6rem;
  color: var(--color-lacie);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lacie-page .py-5 {
  padding-top: 4.5rem !important;
  padding-bottom: 4.5rem !important;
}

.lacie-page .bg-light {
  background: var(--lc-light) !important;
}

/* buttons */
.btn-lacie {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  border: 2px solid var(--color-lacie);
  border-radius: 8px;
  background: var(--color-lacie);
  color: #fff !important;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-lacie:hover,
.btn-lacie:focus-visible {
  border-color: var(--color-lacie-dark);
  background: var(--color-lacie-dark);
  color: #fff !important;
}

.btn-lacie:focus-visible {
  outline: 3px solid rgba(244, 115, 33, 0.35);
  outline-offset: 3px;
}

.lc-variant-card .btn-lacie,
.lc-product-table-wrap .btn-lacie {
  background: transparent;
  color: var(--color-lacie) !important;
}

.lc-variant-card .btn-lacie:hover,
.lc-variant-card .btn-lacie:focus-visible,
.lc-product-table-wrap .btn-lacie:hover,
.lc-product-table-wrap .btn-lacie:focus-visible {
  border-color: var(--color-lacie);
  background: var(--color-lacie);
  color: #fff !important;
}

/* hero */
.bg-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 500px;
  background: #101820 url('/images/lacie/hero-image.webp') center / cover no-repeat;
}

.bg-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(10, 18, 28, 0.45) 0%, rgba(10, 18, 28, 0.78) 50%, rgba(10, 18, 28, 0.45) 100%);
}

.bg-hero .container {
  position: relative;
  z-index: 1;
}

.lacie-page .bg-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lacie-page .bg-hero p {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.12rem;
}

/* acquisition note */
.lc-note {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--lc-line);
  background: #fff;
}

.lacie-page .lc-note p {
  margin: 0;
  padding: 0.6rem 0;
  color: var(--lc-muted);
  font-size: 0.9rem;
}

/* product selector */
.lc-product-card {
  height: 100%;
  padding: 1.25rem 0.75rem;
  border: 2px solid var(--lc-line);
  border-radius: var(--lc-radius);
  background: #fff;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.lc-product-card:hover {
  border-color: var(--color-lacie);
}

.lc-product-card.active {
  border-color: var(--color-lacie);
  background: rgba(244, 115, 33, 0.07);
}

.lc-product-card img {
  display: block;
  width: 76px;
  height: 64px;
  margin: 0 auto 0.7rem;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.lc-product-card:hover img {
  transform: scale(1.08);
}

.lc-product-card span {
  display: block;
  color: var(--lc-ink);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
}

.lc-section {
  display: none;
}

.lc-section.active {
  display: block;
}

.lc-section-header {
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  background: linear-gradient(135deg, var(--lc-blue) 0%, var(--lc-blue-dark) 100%);
  border-bottom: 4px solid var(--color-lacie);
}

.lacie-page .lc-section-header h2 {
  margin: 0;
  color: #fff !important;
  font-size: 1.6rem;
}

/* overview */
.lc-section .row.align-items-center img {
  display: block;
  width: 100%;
  border: 1px solid var(--lc-line);
  border-radius: var(--lc-radius);
}

.lc-section h3.fw-bold {
  margin-bottom: 0.9rem;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  line-height: 1.25;
}

/* variant cards */
.lc-variant-card {
  height: 100%;
  padding: 1.75rem;
  border: 1px solid var(--lc-line);
  border-radius: var(--lc-radius);
  background: #fff;
  text-align: center;
  transition: border-color 0.25s;
}

.lc-variant-card:hover {
  border-color: var(--color-lacie);
}

.lc-variant-card img {
  display: block;
  width: 110px;
  height: 110px;
  margin: 0 auto 1rem;
  object-fit: contain;
}

.lc-variant-card .product-name {
  margin-bottom: 0.4rem;
  color: var(--lc-blue);
  font-size: 1.05rem;
  font-weight: 700;
}

.lc-variant-card .capacity-label {
  margin-bottom: 0.5rem;
  color: var(--lc-muted);
  font-size: 0.85rem;
}

.lc-capacity-btn {
  display: inline-block;
  margin: 0.15rem;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--lc-line);
  border-radius: 999px;
  background: var(--lc-light);
  color: var(--lc-ink);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: default;
}

/* product tables */
.lc-product-table-wrap {
  overflow: hidden;
  border: 1px solid var(--lc-line);
  border-radius: var(--lc-radius);
  background: #fff;
}

.lc-product-table-wrap .table {
  margin-bottom: 0;
}

.lc-product-table-wrap thead th {
  padding: 1rem 1.1rem;
  background: var(--lc-ink);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lc-product-table-wrap td {
  padding: 1rem 1.1rem;
  border-color: var(--lc-line);
  font-size: 0.95rem;
  vertical-align: middle;
}

.lc-product-table-wrap td a {
  color: var(--color-lacie);
  font-size: 1.3rem;
}

/* key features */
.lc-features {
  background:
    radial-gradient(50% 80% at 90% 0%, rgba(244, 115, 33, 0.18) 0%, transparent 65%),
    #0d1117;
}

.lacie-page .lc-features h2 {
  color: #fff;
}

.card-feat {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--lc-radius);
  background: rgba(255, 255, 255, 0.05);
  transition: border-color 0.25s;
}

.card-feat:hover {
  border-color: var(--color-lacie);
}

.card-feat > img {
  display: block;
  width: 72px;
  height: 72px;
  margin: 1.5rem auto 0;
  object-fit: contain;
}

.card-feat .text-wrapper {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.4rem;
}

.card-feat h3 {
  margin: 0;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
}

.lacie-page .card-feat p {
  flex: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* article rows */
.lc-article-row img {
  display: block;
  width: 100%;
  border-radius: var(--lc-radius);
}

.lc-article-row h3 {
  margin-bottom: 1rem;
  color: var(--lc-ink);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 800;
  line-height: 1.25;
}

.lacie-page .lc-article-row p {
  color: var(--lc-muted);
}

/* closing band */
.lc-cta {
  background:
    radial-gradient(50% 140% at 90% 0%, rgba(255, 255, 255, 0.18) 0%, transparent 65%),
    linear-gradient(135deg, var(--lc-blue) 0%, var(--lc-blue-dark) 100%);
}

.lacie-page .lc-cta h2 {
  color: #fff;
}

.lacie-page .lc-cta p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
}

.lc-cta .btn-lacie {
  border-color: #fff;
  background: #fff;
  color: var(--color-lacie) !important;
}

.lc-cta .btn-lacie:hover,
.lc-cta .btn-lacie:focus-visible {
  border-color: #101820;
  background: #101820;
  color: #fff !important;
}

@media (max-width: 767px) {

  .lacie-page .py-5 {
    padding-top: 2.75rem !important;
    padding-bottom: 2.75rem !important;
  }

  .bg-hero {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {

  .btn-lacie,
  .lc-product-card,
  .lc-product-card img,
  .lc-variant-card,
  .card-feat {
    transition: none;
  }

  .lc-product-card:hover img {
    transform: none;
  }
}
