/* =========================================================
   Slick Tools Storefront — page-specific & carousel polish
   ========================================================= */

/* ---- Hero carousel (smooth crossfade) ---- */
.hero-full .hero-track {
  position: relative;
  min-height: 560px;
}

.hero-full .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}

.hero-full .hero-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  z-index: 2;
}

.hero-full .hero-slide.is-leaving {
  opacity: 0;
  transform: translateX(-28px);
}

.hero-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(27, 27, 31, 0.55);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
  backdrop-filter: blur(8px);
}

.hero-slider-nav:hover {
  background: rgba(238, 0, 136, 0.85);
  border-color: transparent;
  transform: translateY(-50%) scale(1.06);
}

.hero-slider-nav.prev { left: 20px; }
.hero-slider-nav.next { right: 20px; }

.hero-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  z-index: 6;
  width: 0;
  transition: width linear;
}

.hero-visual-frame img {
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.is-active .hero-visual-frame img {
  transform: scale(1.03);
}

.hero-visual-frame:hover img {
  transform: scale(1.06);
}

/* ---- Product cards ---- */
.product-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(20, 10, 12, 0.12);
}

.product-thumb img {
  transition: transform 0.45s ease;
}

.product-card:hover .product-thumb img {
  transform: scale(1.05);
}

/* ---- About page ---- */
.about-hero {
  padding: 72px 0 48px;
  background:
    radial-gradient(900px 420px at 10% 0%, rgba(238, 0, 136, 0.08), transparent 60%),
    linear-gradient(180deg, #faf8f9 0%, #fff 100%);
}

.about-hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.about-stat {
  padding: 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(27, 27, 31, 0.08);
  box-shadow: 0 8px 24px rgba(20, 10, 12, 0.05);
}

.about-stat b {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}

.about-stat span {
  font-size: 13px;
  color: var(--muted);
}

.about-visual {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 32px 64px rgba(20, 10, 12, 0.12);
  border: 1px solid rgba(27, 27, 31, 0.08);
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.about-card {
  padding: 32px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(27, 27, 31, 0.08);
  transition: box-shadow 0.25s, transform 0.25s;
}

.about-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(20, 10, 12, 0.08);
}

.about-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(238, 0, 136, 0.12), rgba(238, 0, 136, 0.04));
  font-size: 22px;
  margin-bottom: 16px;
}

.about-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
}

.about-card p {
  color: var(--muted);
  margin: 0;
  line-height: 1.65;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.about-value {
  text-align: center;
  padding: 24px 16px;
  border-radius: 16px;
  background: #1b1b1f;
  color: #fff;
}

.about-value b {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
  color: #ffb6dc;
}

.about-value span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

/* ---- Contact page ---- */
.contact-page {
  padding: 48px 0 72px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 32px;
  align-items: start;
}

.contact-info-card {
  padding: 36px;
  border-radius: 24px;
  background: linear-gradient(145deg, #1b1b1f 0%, #2a1a24 100%);
  color: #fff;
  height: 100%;
}

.contact-info-card .h-eyebrow {
  color: rgba(255, 182, 220, 0.9);
}

.contact-info-card .h-title {
  color: #fff;
  font-size: clamp(28px, 3vw, 38px);
}

.contact-info-card .h-sub {
  color: rgba(255, 255, 255, 0.75);
}

.contact-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-detail:last-of-type {
  border-bottom: none;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(238, 0, 136, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail a {
  color: #ffb6dc;
  text-decoration: none;
}

.contact-detail a:hover {
  text-decoration: underline;
}

.contact-form-card {
  padding: 36px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(27, 27, 31, 0.08);
  box-shadow: 0 16px 48px rgba(20, 10, 12, 0.06);
}

.contact-form-card .field {
  margin-bottom: 18px;
}

.contact-form-card .input:focus {
  border-color: rgba(238, 0, 136, 0.4);
  box-shadow: 0 0 0 4px rgba(238, 0, 136, 0.08);
}

.contact-form-card .input.is-invalid,
.contact-form-card .input:invalid:not(:placeholder-shown) {
  border-color: #e5484d;
}

.field-error {
  font-size: 12px;
  color: #e5484d;
  margin-top: 6px;
  display: none;
}

.field.has-error .field-error {
  display: block;
}

.field.has-error .input {
  border-color: #e5484d;
}

.contact-map {
  margin-top: 32px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(27, 27, 31, 0.08);
  aspect-ratio: 21 / 8;
  min-height: 280px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---- Category highlights on home ---- */
.cat-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(20, 10, 12, 0.1);
}

.cat-thumb img {
  transition: transform 0.4s ease;
}

.cat-card:hover .cat-thumb img {
  transform: scale(1.06);
}

/* ---- Product detail gallery ---- */
.gallery-main {
  border-radius: 20px;
  overflow: hidden;
  background: #faf8f9;
  border: 1px solid rgba(27, 27, 31, 0.08);
}

.gallery-main img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-main:hover img {
  transform: scale(1.02);
}

.gallery-thumb {
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
  padding: 0;
  background: none;
}

.gallery-thumb:hover,
.gallery-thumb.is-active {
  border-color: var(--accent);
  transform: scale(1.04);
}

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .about-hero-inner,
  .contact-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .about-values {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-slider-nav {
    display: none;
  }
}

@media (max-width: 600px) {
  .about-values {
    grid-template-columns: 1fr;
  }

  .contact-info-card,
  .contact-form-card {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-full .hero-slide,
  .product-card,
  .cat-card,
  .gallery-main img {
    transition: none;
  }
}

/* ---- CMS legal / support pages ---- */
.page-section {
  padding: 48px 0 72px;
}

.page-content {
  max-width: 820px;
  margin: 0 auto;
}

.page-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(27, 27, 31, 0.08);
}

.cms-content {
  line-height: 1.75;
  color: #3a3a40;
}

.cms-content h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 16px;
  color: #1b1b1f;
}

.cms-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 10px;
  color: #1b1b1f;
}

.cms-content p {
  margin: 0 0 16px;
}

.cms-content ul,
.cms-content ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

.cms-content li {
  margin-bottom: 8px;
}

.cms-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cms-content a:hover {
  color: var(--accent2);
}

/* ---- About page extended sections ---- */
.about-intro-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.about-intro-grid p {
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 14px;
}

.about-intro-visual {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 24px 56px rgba(20, 10, 12, 0.1);
  border: 1px solid rgba(27, 27, 31, 0.08);
}

.about-intro-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-prose {
  max-width: 780px;
}

.about-prose p {
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 16px;
  font-size: 16px;
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.about-pillar {
  padding: 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.25s, background 0.25s;
}

.about-pillar:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.09);
}

.about-pillar-icon {
  font-size: 28px;
  margin-bottom: 14px;
}

.about-pillar h3 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
}

.about-pillar p {
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
  line-height: 1.65;
  font-size: 14px;
}

.about-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.about-contact-details p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.6;
}

.about-contact-details a {
  color: var(--accent);
}

.about-image-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.about-image-duo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(27, 27, 31, 0.08);
  box-shadow: 0 12px 32px rgba(20, 10, 12, 0.08);
}

/* ---- Policy / legal pages ---- */
.policy-hero {
  background: linear-gradient(135deg, rgba(238, 0, 136, 0.08) 0%, #f7f5f6 50%, #fff 100%);
  padding: 48px 0 40px;
  border-bottom: 1px solid rgba(27, 27, 31, 0.06);
}

.policy-hero-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  color: #1b1b1f;
  margin: 8px 0 10px;
  letter-spacing: -0.03em;
}

.policy-hero-sub {
  color: rgba(27, 27, 31, 0.62);
  max-width: 52ch;
  margin: 0;
  line-height: 1.6;
}

.policy-section {
  padding: 40px 0 72px;
}

.policy-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

.policy-sidebar-card {
  position: sticky;
  top: 100px;
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(27, 27, 31, 0.08);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(20, 10, 12, 0.05);
}

.policy-sidebar-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(27, 27, 31, 0.45);
  margin-bottom: 12px;
}

.policy-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.policy-nav-link {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(27, 27, 31, 0.75);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.policy-nav-link:hover,
.policy-nav-link.active {
  background: rgba(238, 0, 136, 0.08);
  color: var(--accent);
}

.policy-sidebar-help {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(27, 27, 31, 0.08);
  font-size: 13px;
  color: rgba(27, 27, 31, 0.62);
}

.policy-sidebar-help b {
  display: block;
  color: #1b1b1f;
  margin-bottom: 6px;
}

.policy-sidebar-help a {
  color: var(--accent);
}

.policy-main {
  padding: 32px 36px;
  background: #fff;
  border: 1px solid rgba(27, 27, 31, 0.08);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(20, 10, 12, 0.04);
}

.policy-meta {
  margin-bottom: 24px;
}

.policy-content .policy-lead {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(27, 27, 31, 0.78);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(27, 27, 31, 0.08);
}

.policy-content h2:first-of-type {
  margin-top: 0;
}

.policy-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}

.policy-content table th,
.policy-content table td {
  padding: 12px 14px;
  border: 1px solid rgba(27, 27, 31, 0.1);
  text-align: left;
}

.policy-content table th {
  background: #f7f5f6;
  font-weight: 700;
  color: #1b1b1f;
}

.policy-footer-cta {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(27, 27, 31, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.policy-footer-cta p {
  margin: 0;
  color: rgba(27, 27, 31, 0.62);
}

@media (max-width: 980px) {
  .policy-layout {
    grid-template-columns: 1fr;
  }

  .policy-sidebar-card {
    position: static;
  }

  .policy-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .about-image-duo {
    grid-template-columns: 1fr;
  }

  .policy-main {
    padding: 24px;
  }
}
