/* Header, product card, chips, buttons, badges. Depends on tokens.css. */

/* ---------------------------------------------------------------- header */

/* Promo strip above the header. */
.lc-promobar {
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: var(--lc-promobar-h);
  background: var(--lc-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--lc-caption-size);
  font-weight: 300;
  padding-inline: var(--lc-sp-4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: var(--lc-z-header);
}

.lc-header {
  position: fixed;
  inset-inline: 0;
  top: var(--lc-promobar-h);
  height: var(--lc-header-h-sm);
  background: var(--lc-surface);
  border-bottom: 1px solid var(--lc-hairline);
  z-index: var(--lc-z-header);
}

@media (min-width: 960px) {
  .lc-header {
    height: var(--lc-header-h-lg);
  }
}

.lc-header__inner {
  height: 100%;
  max-width: var(--lc-content-max);
  margin-inline: auto;
  padding-inline: var(--lc-sp-4);
  display: flex;
  align-items: center;
  gap: var(--lc-sp-3);
}

/* Desktop: logo left, nav dead-centre, icons right. */
@media (min-width: 960px) {
  .lc-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--lc-sp-5);
  }

  .lc-logo {
    justify-self: start;
  }

  .lc-nav {
    justify-self: center;
  }

  .lc-header__utils {
    justify-self: end;
  }
}

@media (min-width: 960px) {
  .lc-header__inner {
    padding-inline: var(--lc-grid-margin-lg);
  }
}

/* Script logotype, inlined SVG riding currentColor. */
.lc-logo {
  display: inline-flex;
  align-items: center;
  color: var(--lc-brand);
  flex-shrink: 0;
}

.lc-logo img {
  height: auto;
  width: 180px;
  display: block;
}

@media (max-width: 959px) {
  .lc-logo img { width:148px; }
}

.lc-nav {
  display: none;
  align-items: center;
  gap: var(--lc-sp-6);
  height: 100%;
  z-index: var(--lc-z-nav-col);
}

@media (min-width: 960px) {
  .lc-nav {
    display: flex;
  }
}

.lc-nav__link {
  font-size: var(--lc-caption-size);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--lc-text);
  height: 100%;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: border-color var(--lc-dur-micro) var(--lc-ease);
}

.lc-nav__link:hover,
.lc-nav__item:hover > .lc-nav__link {
  border-bottom-color: var(--lc-text);
}

/* Full-bleed mega panel. The wrapper switches from relative to static at the
 * desktop breakpoint so the absolutely-positioned panel can span the viewport
 * rather than the 1200px container. */
.lc-nav__item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

@media (min-width: 960px) {
  .lc-nav__item--mega {
    position: static;
  }
}

.lc-mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--lc-surface);
  border-top: 1px solid var(--lc-hairline);
  border-bottom: 1px solid var(--lc-hairline);
  padding: var(--lc-sp-6) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition:
    opacity var(--lc-dur-enter) var(--lc-ease),
    transform var(--lc-dur-enter) var(--lc-ease),
    visibility 0s linear var(--lc-dur-enter);
  z-index: var(--lc-z-sticky);
}

.lc-nav__item--mega:hover .lc-mega,
.lc-nav__item--mega:focus-within .lc-mega {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity var(--lc-dur-enter) var(--lc-ease),
    transform var(--lc-dur-enter) var(--lc-ease),
    visibility 0s;
}

.lc-mega__inner {
  max-width: var(--lc-content-max);
  margin-inline: auto;
  padding-inline: var(--lc-grid-margin-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--lc-sp-6);
}

.lc-mega__heading {
  font-size: var(--lc-caption-size);
  font-weight: 400;
  color: var(--lc-text-2);
  margin: 0 0 var(--lc-sp-3);
  padding-bottom: var(--lc-sp-2);
  border-bottom: 1px solid var(--lc-hairline);
}

.lc-mega__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--lc-sp-2);
}

.lc-mega__list a {
  font-size: var(--lc-body-size);
  font-weight: 300;
  text-decoration: none;
}

.lc-mega__list a:hover {
  color: var(--lc-text-hover);
  text-decoration: underline;
}

.lc-header__utils {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--lc-sp-2);
}

.lc-iconbtn {
  background: none;
  border: 0;
  padding: var(--lc-sp-2);
  cursor: pointer;
  color: var(--lc-text);
  display: inline-flex;
  align-items: center;
  gap: var(--lc-sp-2);
  font-size: var(--lc-caption-size);
  font-weight: 300;
  text-decoration: none;
  position: relative;
}

.lc-iconbtn svg {
  width: 24px;
  height: 24px;
}

.lc-cart-count {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 16px;
  height: 16px;
  background: var(--lc-red);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  border-radius: var(--lc-r-dot);
  padding-inline: 3px;
}

/* Burger opens the drawer on mobile only — desktop shows the plain nav. */
.lc-burger {
  display: inline-flex;
}

@media (min-width: 960px) {
  .lc-burger--lead {
    display: none;
  }
}

/* Search is a full-screen overlay panel, not an inline expanding input. */
.lc-search-overlay {
  position: fixed;
  inset: 0;
  background: var(--lc-surface);
  z-index: var(--lc-z-header-overlay);
  padding: var(--lc-sp-5) var(--lc-sp-4);
  display: none;
}

.lc-search-overlay[data-open="true"] {
  display: block;
}

.lc-search-overlay__inner {
  max-width: var(--lc-content-max);
  margin-inline: auto;
}

.lc-search-overlay__row {
  display: flex;
  align-items: center;
  gap: var(--lc-sp-4);
  border-bottom: 1px solid var(--lc-text);
  padding-bottom: var(--lc-sp-3);
}

.lc-search-overlay input[type="search"] {
  flex: 1;
  border: 0;
  font-size: 22px;
  font-weight: 300;
  padding: var(--lc-sp-2) 0;
  background: none;
}

.lc-search-overlay input[type="search"]:focus {
  outline: none;
}

.lc-search__category {
  font-size: var(--lc-caption-size);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--lc-text-2);
  margin: var(--lc-sp-5) 0 var(--lc-sp-3);
}

/* Mobile drawer sits above the header, matching the overlay layer. */
.lc-drawer {
  position: fixed;
  inset: 0;
  background: var(--lc-surface);
  z-index: var(--lc-z-header-overlay);
  padding: var(--lc-sp-5) var(--lc-sp-4);
  display: none;
  overflow-y: auto;
}

.lc-drawer[data-open="true"] {
  display: block;
}

.lc-drawer__list {
  list-style: none;
  margin: var(--lc-sp-5) 0 0;
  padding: 0;
}

.lc-drawer__list a {
  display: block;
  padding: var(--lc-sp-4) 0;
  border-bottom: 1px solid var(--lc-hairline);
  text-decoration: none;
  font-size: 17px;
  font-weight: 300;
}

/* ---------------------------------------------------------- product card */

.lc-card {
  display: block;
  position: relative;
  padding: 0 var(--lc-sp-3);
}

.lc-card__media {
  position: relative;
  aspect-ratio: var(--lc-card-ratio);
  overflow: hidden;
  background: var(--lc-surface-2);
  display: block;
}

.lc-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--lc-dur-std) var(--lc-ease);
}

.lc-card__media--hoverable:hover img.lc-card__img-primary {
  opacity: 0;
}

.lc-card__img-secondary {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--lc-dur-std) var(--lc-ease);
}

.lc-card__media--hoverable:hover .lc-card__img-secondary {
  opacity: 1;
}

.lc-card__body {
  padding: var(--lc-sp-4) var(--lc-sp-4) var(--lc-sp-5);
}

/* Flags sit under the price in the current reference order. */
.lc-card__flags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--lc-sp-2);
  margin-top: var(--lc-sp-1);
}

/* Flags are text, not filled pills. */
.lc-flag {
  font-size: var(--lc-badge-size);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: var(--lc-price-tracking);
  color: var(--lc-text-2);
}

.lc-flag--sale {
  color: var(--lc-red-dark);
}

.lc-card__name {
  font-size: var(--lc-body-size);
  font-family: var(--lc-font-body);
  font-weight: 400;
  line-height: 1.4;
  margin: var(--lc-sp-1) 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
  color: #1b1b1b;
}

/* Swatch row directly under the image: circles left, wishlist heart right. */
.lc-card__swatchrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--lc-sp-2);
  margin-bottom: var(--lc-sp-2);
}

.lc-card__wish {
  background: none;
  border: 0;
  padding: var(--lc-sp-1);
  cursor: pointer;
  color: var(--lc-text);
  display: inline-flex;
  flex-shrink: 0;
}

.lc-card__wish svg {
  width: 20px;
  height: 20px;
}

/* Grey context line: the size range the style comes in. */
.lc-card__meta {
  font-size: var(--lc-caption-size);
  color: var(--lc-text-2);
  margin-bottom: var(--lc-sp-1);
}

.lc-card__price {
  margin: var(--lc-sp-2) 0 var(--lc-sp-1);
}

/* --------------------------------------------------------------- price */

.lc-price {
  display: flex;
  align-items: baseline;
  gap: var(--lc-sp-2);
  font-family: var(--lc-font-body);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: var(--lc-price-tracking);
}

.lc-price__now {
  font-size: var(--lc-body-size);
  font-weight: 400;
  color: var(--lc-price-lg);
}

.lc-price--on-sale .lc-price__now {
  color: #e8442f;
}

.lc-price__was {
  font-size: var(--lc-caption-size);
  font-weight: 400;
  color: var(--lc-text-2);
  text-decoration: line-through;
}

/* The PDP price is set bold in the current reference design. */
.lc-price--lg .lc-price__now {
  font-size: 24px;
  font-weight: 700;
}

@media (min-width: 960px) {
  .lc-price--lg .lc-price__now {
    font-size: 28px;
  }
}

.lc-price--lg .lc-price__was {
  font-size: var(--lc-body-size);
}

/* ------------------------------------------------------------- swatches */

.lc-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: var(--lc-sp-2);
  margin-top: var(--lc-sp-2);
}

.lc-card__swatchrow .lc-swatches {
  margin-top: 0;
}

/* PLP tile swatch — a circle in the current reference design. Border is
 * #dadada here and #767676 on the PDP selector — decorative versus
 * interactive. These are intentionally different values. */
.lc-swatch {
  width: var(--lc-swatch-size);
  height: var(--lc-swatch-size);
  border: 1px solid var(--lc-swatch-border);
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: block;
  flex-shrink: 0;
  overflow: hidden;
}

.lc-swatch--out::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top right,
    transparent calc(50% - 1px),
    var(--lc-text) calc(50% - 1px),
    var(--lc-text) calc(50% + 1px),
    transparent calc(50% + 1px)
  );
}

.lc-swatch-more {
  font-size: 11px;
  color: var(--lc-text-2);
  line-height: var(--lc-swatch-size);
}

/* ---------------------------------------------------------------- chips */

.lc-chipset {
  display: flex;
  flex-wrap: wrap;
  gap: var(--lc-sp-2);
  margin: 0;
  padding: 0;
  border: 0;
}

.lc-chip {
  background: var(--lc-surface);
  border: 1px solid var(--lc-hairline);
  border-radius: var(--lc-r-chip);
  min-height: var(--lc-chip-h);
  /* -2px compensates the 1px borders so the label is optically centred
   * rather than sitting a hair low. */
  line-height: calc(var(--lc-chip-h) - 2px);
  font-size: var(--lc-caption-size);
  font-weight: 300;
  color: var(--lc-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: border-color var(--lc-dur-micro) var(--lc-ease);
}

.lc-chip:hover {
  border-color: var(--lc-chip-border);
}

.lc-chip--square {
  width: var(--lc-chip-h);
  height: var(--lc-chip-h);
}

/* Inch sizes need the wide chip; "32inch" does not fit a square. */
.lc-chip--long {
  width: var(--lc-chip-long-w);
  padding-inline: var(--lc-sp-2);
}

/* PDP colour selector — a circle with a detached ring when selected,
 * matching the reference. The chip border colour (#767676) marks it as
 * interactive versus the decorative PLP tile. */
.lc-chip--swatch {
  width: var(--lc-swatch-pdp);
  height: var(--lc-swatch-pdp);
  min-height: var(--lc-swatch-pdp);
  border-color: var(--lc-chip-border);
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.lc-chip[aria-pressed="true"],
.lc-chip--selected {
  border-color: var(--lc-text);
  border-width: 2px;
  font-weight: 700;
}

/* The circle cannot thicken its border without clipping the fabric image;
 * the selected ring sits outside it instead. */
.lc-chip--swatch[aria-pressed="true"],
.lc-chip--swatch.lc-chip--selected {
  border-width: 1px;
  box-shadow:
    0 0 0 2px var(--lc-surface),
    0 0 0 4px var(--lc-text);
}

.lc-chip[disabled],
.lc-chip--disabled {
  color: var(--lc-disabled);
  border-color: var(--lc-hairline);
  cursor: not-allowed;
}

.lc-chip--disabled::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top right,
    transparent calc(50% - 1px),
    var(--lc-disabled) calc(50% - 1px),
    var(--lc-disabled) calc(50% + 1px),
    transparent calc(50% + 1px)
  );
}

/* -------------------------------------------------------------- buttons */

.lc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--lc-r-0);
  font-family: var(--lc-font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.2;
  height: 50px;
  padding-inline: var(--lc-sp-5);
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--lc-dur-micro) var(--lc-ease);
}

/* Red is the transactional colour — add to cart, sale price, error. It is not
 * a decorative brand colour and should not spread beyond those roles. */
.lc-btn--transactional {
  background: var(--lc-red);
  color: #fff;
}

.lc-btn--transactional:hover {
  background: var(--lc-red-dark);
}

.lc-btn--primary {
  background: var(--lc-text);
  color: #fff;
}

.lc-btn--primary:hover {
  background: var(--lc-text-hover);
}

.lc-btn--secondary {
  background: var(--lc-surface);
  color: var(--lc-text);
  border: 1px solid var(--lc-text);
}

.lc-btn[disabled],
.lc-btn--disabled {
  background: var(--lc-hairline);
  border: none;
  color: #fff;
  cursor: not-allowed;
}

.lc-btn--block {
  width: 100%;
}

/* Primary commit action — near-black, rounded, caps (case set in base.css). */
.lc-btn--cta {
  background: var(--lc-cta);
  color: #fff;
  border-radius: var(--lc-r-chip);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.lc-btn--cta:hover {
  background: var(--lc-cta-hover);
}

.lc-btn--cta[disabled] {
  background: var(--lc-hairline);
  color: #fff;
}

/* Outline twin of the CTA — add-to-cart next to the filled Beli Sekarang. */
.lc-btn--outline {
  background: var(--lc-surface);
  color: var(--lc-brand);
  border: 1px solid var(--lc-brand);
  border-radius: var(--lc-r-chip);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.lc-btn--outline:hover {
  background: rgba(98, 43, 0, 0.06);
}

.lc-btn--outline.disabled,
.lc-btn--outline[disabled] {
  color: var(--lc-disabled);
  border-color: var(--lc-hairline);
  background: var(--lc-surface);
}

/* Quantity stepper — grey rounded pill, minus / value / plus. */
.lc-qty {
  display: inline-flex;
  align-items: center;
  background: var(--lc-surface-2);
  border-radius: var(--lc-r-chip);
  height: 50px;
  flex-shrink: 0;
}

.lc-qty__btn {
  width: 44px;
  height: 100%;
  border: 0;
  background: none;
  font-size: 20px;
  font-weight: 300;
  color: var(--lc-text);
  cursor: pointer;
}

.lc-qty__btn:disabled {
  color: var(--lc-disabled);
  cursor: not-allowed;
}

.lc-qty .qty {
  width: 40px;
  height: 100%;
  border: 0;
  background: none;
  text-align: center;
  font-size: var(--lc-body-size);
  font-weight: 400;
  -moz-appearance: textfield;
  appearance: textfield;
}

.lc-qty .qty::-webkit-outer-spin-button,
.lc-qty .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.lc-logo img { display:block; width:180px; height:auto; }
@media (max-width:959px) { .lc-logo img { width:148px; } }
.lc-footer__brand { margin-bottom:var(--lc-sp-5); }
.lc-footer__brand img { width:180px; height:auto; }
.lc-pdp__one-size { margin:0 0 var(--lc-sp-4); font-weight:500; }
.lc-card__price ins, .lc-pdp__price ins { color:#e8442f; font-family:var(--lc-font-body); font-size:18px; font-weight:700; text-decoration:none; }

.lc-color-picker { margin:var(--lc-sp-5) 0; }
.lc-color-picker__items { display:flex; flex-wrap:wrap; gap:8px; }
.lc-color-picker__item { display:block; width:48px; height:60px; border:1px solid var(--lc-hairline); overflow:hidden; background:var(--lc-surface-2); }
.lc-color-picker__item img { display:block; width:100%; height:100%; object-fit:cover; }
.lc-color-picker__item.is-selected { outline:2px solid var(--lc-brand); outline-offset:2px; }
.lc-pdp form.cart { display:grid; gap:var(--lc-sp-3); margin-top:var(--lc-sp-5); }
.lc-pdp form.cart .quantity .qty { width:80px; height:50px; border:1px solid var(--lc-hairline); background:var(--lc-surface); color:var(--lc-text); text-align:center; }
.lc-pdp form.cart .single_add_to_cart_button { width:100%; min-height:52px; padding:12px 20px; border:0; background:var(--lc-red); color:#fff; font-size:18px; line-height:1.2; font-weight:700; cursor:pointer; }
.lc-pdp form.cart .single_add_to_cart_button:hover { background:var(--lc-red-dark); }
.lc-card__price ins, .lc-pdp__price ins { color:#e8442f; }
