/* ============================================================
   components.css — header, footer, buttons, cards, placeholders
   ============================================================ */

/* -------- Header -------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: backdrop-filter var(--dur-fast),
              box-shadow var(--dur-fast),
              border-color var(--dur-fast);
}

.site-header.is-scrolled {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-header);
  border-bottom-color: var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.brand {
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand__mark {
  display: inline-block;
  width: 22px;
  height: 22px;
  background: var(--color-text);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-accent);
  transform: translateY(40%) rotate(-30deg);
  transform-origin: center;
}

.site-nav {
  display: flex;
  gap: 32px;
}

.site-nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text);
  position: relative;
  padding: 6px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-fast) var(--ease-out);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.site-utility {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-utility button,
.site-utility a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-utility .cart-count {
  background: var(--color-text);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  min-width: 18px;
  text-align: center;
}

.hamburger {
  display: none;
  width: 28px;
  height: 28px;
  position: relative;
}

.hamburger span {
  position: absolute;
  left: 4px;
  right: 4px;
  height: 2px;
  background: var(--color-text);
}

.hamburger span:nth-child(1) { top: 9px; }
.hamburger span:nth-child(2) { bottom: 9px; }

@media (max-width: 1024px) {
  .site-nav { display: none; }
  .hamburger { display: inline-block; }
}

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur-fast),
              color var(--dur-fast);
  cursor: pointer;
  white-space: nowrap;
}

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

.btn--dark:hover {
  transform: translateY(-2px);
  background: #1a1a1a;
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-text);
}

.btn--ghost:hover {
  background: var(--color-text);
  color: #fff;
}

.btn__arrow {
  width: 14px;
  height: 14px;
  transition: transform var(--dur-fast) var(--ease-out);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* -------- Round icon button -------- */
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--dur-fast), background var(--dur-fast);
}

.icon-btn:hover {
  border-color: var(--color-text);
  background: var(--color-bg-soft);
}

.icon-btn svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-text);
}

/* -------- Placeholder box -------- */
.placeholder {
  position: relative;
  background: var(--color-bg-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder::before {
  /* faint diagonal stripe texture */
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(0, 0, 0, 0.012) 0,
    rgba(0, 0, 0, 0.012) 1px,
    transparent 1px,
    transparent 14px
  );
  pointer-events: none;
}

.placeholder__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 1;
}

.placeholder__icon {
  width: 32px;
  height: 32px;
  stroke: var(--color-text-soft);
  stroke-width: 1.4;
  fill: none;
}

.placeholder__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  font-family: var(--font-sans);
}

/* Real image inside a .placeholder container — fills the slot
   and sits above the skeleton background. */
.placeholder > img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* -------- Product card -------- */
.product-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  cursor: pointer;
}

.product-card__media {
  aspect-ratio: 1 / 1;
  width: 100%;
  transition: transform var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out);
}

.product-card:hover .product-card__media {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.product-card__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.product-card__name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.product-card__tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  margin-top: 4px;
}

.product-card__price {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-soft);
  white-space: nowrap;
}

/* -------- Slider dots -------- */
.dots {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.dots__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  transition: background var(--dur-fast), width var(--dur-fast);
}

.dots__dot.is-active {
  background: var(--color-accent);
  width: 28px;
  border-radius: var(--radius-pill);
}

/* -------- Footer -------- */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 80px 0 32px;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.site-footer__brand .brand {
  color: #fff;
  font-size: 20px;
}

.site-footer__brand .brand__mark {
  background: #fff;
}

.site-footer__brand-tagline {
  font-size: 13px;
  color: var(--color-footer-text-soft);
  max-width: 240px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 13px;
  color: var(--color-footer-text-soft);
  transition: color var(--dur-fast);
}

.footer-col a:hover {
  color: #fff;
}

.socials {
  display: flex;
  gap: 12px;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--dur-fast), background var(--dur-fast);
}

.socials a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.socials a:hover svg {
  stroke: var(--color-text);
}

.socials svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.6;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 12px;
  color: var(--color-footer-text-soft);
  letter-spacing: 0.04em;
}

.site-footer__bottom a {
  color: var(--color-footer-text-soft);
  transition: color var(--dur-fast);
}

.site-footer__bottom a:hover { color: #fff; }

@media (max-width: 1024px) {
  .site-footer__top {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .site-footer__bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
