/* =========================================================
   ADRD Relógios — custom styles (complements Tailwind CDN)
   ========================================================= */

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

::selection {
  background: rgba(201, 162, 75, 0.3);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #0c0c0f;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #c9a24b, #8a6425);
  border-radius: 999px;
}

/* ---------- Preloader ---------- */
#preloader {
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
}
.clock-loader {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(201, 162, 75, 0.2);
  border-top-color: #e9c162;
  animation: spin 0.9s linear infinite;
  position: relative;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Multi-line heading fix ----------
   Tailwind's text-{size} utilities bundle their own line-height,
   which wins the cascade over leading-[] arbitrary values due to
   injection order. Force it explicitly — tight line-heights below
   ~1.2 also trigger a two-line <br> text rendering glitch in Chromium. */
.heading-2line {
  line-height: 1.2 !important;
}

/* ---------- Outlined display text ---------- */
.text-outline {
  color: #c9a24b;
  -webkit-text-stroke: 1px #e9c162;
  text-shadow: 0 0 34px rgba(216, 169, 64, 0.09);
}
@supports (-webkit-text-stroke: 1px black) {
  .text-outline {
    color: transparent;
  }
}

/* ---------- Button shine sweep (hero CTAs) ---------- */
.btn-sheen {
  position: relative;
  overflow: hidden;
}
.btn-sheen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.25) 48%, transparent 75%);
  transform: translateX(-125%);
  transition: transform 0.6s;
}
.btn-sheen:hover::before {
  transform: translateX(125%);
}

/* ---------- Hero diagonal watch-slice stage ---------- */
.hero-stage {
  display: flex;
  height: 640px;
  width: 100%;
  clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%);
}
.watch-slice {
  position: relative;
  flex: 1;
  overflow: hidden;
  background: #050506;
  border-left: 1px solid rgba(201, 162, 75, 0.25);
}
.watch-slice:first-child {
  border-left: none;
}
.watch-slice img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
}
.slice-label {
  position: absolute;
  bottom: 2rem;
  left: 2.5rem;
  color: #fff;
  line-height: 1.3;
}
.slice-label b {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
  color: #f3db95;
}
.slice-label small {
  display: block;
  font-size: 0.75rem;
  color: #d4d4d8;
}

/* ---------- Ghost watermark (CTA band) ---------- */
.ghost-watermark {
  position: absolute;
  top: 50%;
  right: -2%;
  transform: translateY(-50%);
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(6rem, 18vw, 14rem);
  line-height: 1;
  color: rgba(8, 8, 10, 0.08);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* ---------- Header ---------- */
#site-header.is-scrolled {
  background: rgba(8, 8, 10, 0.85);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.nav-link {
  position: relative;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #e9c162, #8a6425);
  transition: width 0.25s ease;
}
.nav-link:hover {
  color: #f3db95;
}
.nav-link:hover::after {
  width: 100%;
}

.mobile-link {
  color: #d4d4d8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 1rem;
  transition: color 0.2s ease;
}
.mobile-link:hover {
  color: #f3db95;
}

#menu-btn.is-open .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
#menu-btn.is-open .hamburger-line:nth-child(2) {
  opacity: 0;
}
#menu-btn.is-open .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- Reveal on scroll ---------- */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Floating hero images ---------- */
.float-slow {
  animation: floatY 6s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- Marquee ---------- */
.marquee {
  animation: marqueeScroll 22s linear infinite;
  width: max-content;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Category cards ---------- */
.cat-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.cat-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.cat-card:hover .cat-img {
  transform: scale(1.08);
}
.cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 10, 0) 30%, rgba(8, 8, 10, 0.92) 100%);
}
.cat-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem;
}

/* ---------- Filter tabs ---------- */
.filter-btn {
  padding: 0.65rem 1.4rem;
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #a1a1aa;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  transition: all 0.25s ease;
  cursor: pointer;
}
.filter-btn:hover {
  color: #f3db95;
  border-color: rgba(201, 162, 75, 0.4);
}
.filter-btn.is-active {
  background: linear-gradient(135deg, #f3db95 0%, #c9a24b 45%, #8a6425 100%);
  color: #08080a;
  border-color: transparent;
}

/* ---------- Product cards ---------- */
.product-card {
  background: #111114;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  z-index: 2;
  box-shadow: inset 0 0 0 1px rgba(201, 162, 75, 0.4), 0 20px 45px -18px rgba(0, 0, 0, 0.6);
}
.product-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #16161a;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.06);
}
.product-badge {
  position: absolute;
  top: 1rem;
  left: 0;
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  background: rgba(8, 8, 10, 0.88);
  color: #f3db95;
  border-left: 2px solid #c9a24b;
}

/* ---------- Brand wordmarks ---------- */
.brand-word {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: #d4d4d8;
  transition: color 0.25s ease, transform 0.25s ease;
}
.brand-word:hover {
  color: #f3db95;
  transform: translateY(-2px);
}
.brand-word em {
  font-style: normal;
  color: #dc4b3e;
}

/* ---------- Vantagens ---------- */
.vantagem-cell {
  padding: 2.25rem 2rem;
  background: #0c0c0f;
  transition: background 0.3s ease;
}
.vantagem-cell:hover {
  background: #131317;
}
.vantagem-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e9c162;
  border: 1px solid rgba(201, 162, 75, 0.3);
  margin-bottom: 1.25rem;
}
.vantagem-title {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.vantagem-text {
  color: #a1a1aa;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---------- Testimonials ---------- */
.testi-slide {
  min-width: 100%;
  padding: 0 0.5rem;
}
.testi-card {
  background: #111114;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 2px solid #c9a24b;
  padding: 2.5rem;
  text-align: center;
}
.testi-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
  cursor: pointer;
}
.testi-dot.is-active {
  width: 24px;
  background: linear-gradient(90deg, #f3db95, #8a6425);
}

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0c0c0f;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  text-align: left;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  background: none;
  border: none;
}
.faq-icon {
  transition: transform 0.3s ease;
  color: #c9a24b;
  flex-shrink: 0;
}
.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer-inner {
  padding: 0 1.5rem 1.5rem;
  color: #a1a1aa;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ---------- Social buttons ---------- */
.social-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d4d4d8;
  transition: all 0.25s ease;
}
.social-btn:hover {
  border-color: rgba(201, 162, 75, 0.5);
  color: #f3db95;
  transform: translateY(-2px);
}

/* ---------- Back to top ---------- */
#back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ---------- Header icon buttons ---------- */
.icon-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d4d4d8;
  transition: all 0.2s ease;
}
.icon-btn:hover {
  color: #f3db95;
  background: rgba(201, 162, 75, 0.08);
}

/* ---------- Overlay / Search / Cart ---------- */
#overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
#search-panel.is-open {
  transform: translateY(0);
}
#cart-drawer.is-open {
  transform: translateX(0);
}
body.no-scroll {
  overflow: hidden;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  transition: background 0.2s ease;
  cursor: pointer;
}
.search-result-item:hover {
  background: rgba(255, 255, 255, 0.04);
}
.search-result-item img {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  object-fit: cover;
  flex-shrink: 0;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  color: #71717a;
  gap: 0.75rem;
  padding: 3rem 1rem;
}
.cart-line-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 1rem;
}
.cart-line-item img {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 0.65rem;
  object-fit: cover;
  flex-shrink: 0;
}
.cart-qty-btn {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e4e4e7;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease;
}
.cart-qty-btn:hover {
  border-color: rgba(201, 162, 75, 0.5);
  color: #f3db95;
}

#toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
