/* ================================================
   CueKraft Billiards Cue Store — Salla Custom CSS
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --ck-brand: #1e1d1c;
  --ck-accent: #c9952b;
  --ck-bg: #f7f5f0;
  --ck-card: #ffffff;
  --ck-border: #e5dfd5;
  --ck-muted: #7a7570;
  --ck-radius: 0.5rem;
}

/* — Reset & Base — */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--ck-bg);
  color: var(--ck-brand);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* — Container — */
.ck-container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* — Nav — */
.ck-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,245,240,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ck-border);
}
.ck-nav .ck-container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px;
}
.ck-nav__logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; font-weight: 700;
  color: var(--ck-brand); letter-spacing: -0.02em;
}
.ck-nav__links { display: flex; align-items: center; gap: 24px; }
.ck-nav__link {
  font-size: 0.875rem; font-weight: 500;
  color: var(--ck-muted); transition: color 0.2s;
}
.ck-nav__link:hover { color: var(--ck-brand); }
.ck-nav__cart {
  position: relative; padding: 4px;
  transition: transform 0.15s;
}
.ck-nav__cart:active { transform: scale(0.95); }
.ck-nav__cart-count {
  position: absolute; top: -6px; right: -8px;
  background: var(--ck-accent); color: var(--ck-brand);
  font-size: 10px; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* — Hero Section — */
.ck-hero { padding: 48px 0 64px; }
.ck-hero__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
}
.ck-hero__img-wrap {
  position: relative; display: flex;
  align-items: center; justify-content: center;
}
.ck-hero__img-bg {
  position: absolute; inset: 32px;
  background: #ede8de; border-radius: 24px;
}
.ck-hero__img {
  position: relative; z-index: 1;
  max-height: 520px; width: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
}

/* — Badge — */
.ck-badge {
  display: inline-block; padding: 4px 12px;
  background: #ede8de; color: var(--ck-brand);
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  border-radius: 4px;
}
.ck-badge--accent {
  background: var(--ck-accent); color: var(--ck-brand);
}

/* — Product Info — */
.ck-product { display: flex; flex-direction: column; gap: 20px; }

.ck-product__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700; line-height: 1.1;
  letter-spacing: -0.02em; color: var(--ck-brand);
}
.ck-product__tagline {
  font-size: 1rem; color: var(--ck-muted); max-width: 55ch;
}

/* Rating */
.ck-rating { display: flex; align-items: center; gap: 8px; }
.ck-rating__stars { display: flex; gap: 2px; }
.ck-rating__star { color: var(--ck-accent); font-size: 14px; }
.ck-rating__star--empty { color: var(--ck-border); }
.ck-rating__score { font-size: 0.875rem; font-weight: 600; }
.ck-rating__count { font-size: 0.875rem; color: var(--ck-muted); }

/* Price */
.ck-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ck-price__current { font-size: 1.875rem; font-weight: 700; color: var(--ck-brand); }
.ck-price__original {
  font-size: 1.125rem; color: var(--ck-muted);
  text-decoration: line-through;
}
.ck-product__desc {
  font-size: 0.875rem; color: var(--ck-muted);
  line-height: 1.7; max-width: 55ch;
}

/* Quantity */
.ck-qty {
  display: flex; align-items: center;
  border: 1px solid var(--ck-border); border-radius: var(--ck-radius);
  overflow: hidden;
}
.ck-qty__btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: background 0.2s;
}
.ck-qty__btn:hover { background: #ede8de; }
.ck-qty__btn:active { transform: scale(0.95); }
.ck-qty__val {
  width: 40px; text-align: center;
  font-size: 0.875rem; font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Add to Cart */
.ck-cart-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

.ck-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px;
  background: var(--ck-brand); color: var(--ck-bg);
  font-size: 0.875rem; font-weight: 600;
  border-radius: var(--ck-radius);
  transition: opacity 0.2s, transform 0.15s;
}
.ck-btn:hover { opacity: 0.9; }
.ck-btn:active { transform: scale(0.97); }

/* Trust Icons */
.ck-trust {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-top: 8px;
}
.ck-trust__item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 8px; text-align: center;
  background: rgba(237,232,222,0.5); border-radius: 12px;
}
.ck-trust__icon { color: var(--ck-accent); font-size: 20px; }
.ck-trust__title { font-size: 0.75rem; font-weight: 600; line-height: 1.3; }
.ck-trust__desc { font-size: 0.6875rem; color: var(--ck-muted); line-height: 1.3; }

/* — Specs Section — */
.ck-specs {
  border-top: 1px solid var(--ck-border);
  background: rgba(237,232,222,0.3);
  padding: 64px 0;
}
.ck-specs__toggle {
  display: flex; width: 100%; align-items: center;
  justify-content: space-between; padding: 8px 0;
  transition: transform 0.15s;
}
.ck-specs__toggle:active { transform: scale(0.99); }
.ck-specs__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700;
  color: var(--ck-brand);
}
.ck-specs__arrow {
  color: var(--ck-muted); transition: transform 0.3s;
  font-size: 1.25rem;
}
.ck-specs__arrow--open { transform: rotate(180deg); }

.ck-specs__body {
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.4s ease, margin 0.4s ease;
}
.ck-specs__body--open {
  max-height: 400px; opacity: 1; margin-top: 24px;
}
.ck-specs__table {
  border: 1px solid var(--ck-border);
  border-radius: 12px; overflow: hidden;
  background: var(--ck-card);
}
.ck-specs__row {
  display: flex; justify-content: space-between;
  padding: 14px 20px; font-size: 0.875rem;
  border-bottom: 1px solid var(--ck-border);
}
.ck-specs__row:last-child { border-bottom: none; }
.ck-specs__label { color: var(--ck-muted); font-weight: 500; }
.ck-specs__value { font-weight: 600; }

/* — Footer — */
.ck-footer {
  border-top: 1px solid var(--ck-border); padding: 48px 0;
}
.ck-footer__inner {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 24px;
}
.ck-footer__brand { font-family: 'Playfair Display', serif; font-size: 1.125rem; font-weight: 700; }
.ck-footer__tagline { font-size: 0.75rem; color: var(--ck-muted); margin-top: 4px; }
.ck-footer__contacts {
  display: flex; flex-wrap: wrap; gap: 20px;
  font-size: 0.75rem; color: var(--ck-muted);
}
.ck-footer__contact { display: flex; align-items: center; gap: 6px; }
.ck-footer__copy {
  text-align: center; font-size: 0.6875rem;
  color: var(--ck-muted); margin-top: 32px;
}

/* — Responsive — */
@media (max-width: 768px) {
  .ck-hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .ck-nav__link { display: none; }
  .ck-trust { grid-template-columns: 1fr; }
  .ck-footer__inner { flex-direction: column; text-align: center; }
  .ck-footer__contacts { justify-content: center; }
}