/* ==========================================================================
   RUUT - LUXURY SKELETON LOADING SCREEN
   Clean Matte Architectural UI Blocks with Progressive Brand Hydration
   (Warm Ivory, Earthy Neutral Stone Blocks - Zero Gloss/Glare)
   ========================================================================== */

/* Subtle Matte Block Sweep (Calm, Natural, Organic Tone) */
@keyframes ruutBlockSweep {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Skeleton Container Overlay */
.ruut-skeleton-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: #FDFBF7 !important;
  z-index: 9999999 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  pointer-events: auto !important;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  box-sizing: border-box !important;
}

.ruut-skeleton-overlay.fade-out {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Base Matte UI Block */
.sk-block {
  background: linear-gradient(
    90deg,
    #EDE6DA 0%,
    #EDE6DA 30%,
    #F5EFE5 50%,
    #EDE6DA 70%,
    #EDE6DA 100%
  ) !important;
  background-size: 200% 100% !important;
  animation: ruutBlockSweep 1.8s infinite ease-in-out !important;
  border-radius: 4px;
}

/* --- 1. Announcement Stripe Skeleton (Real Brand Look) --- */
.sk-announcement {
  width: 100%;
  height: 38px;
  background: #2D1E17;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(253, 251, 247, 0.75);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  font-weight: 500;
  text-transform: uppercase;
  padding: 0 1rem;
  box-sizing: border-box;
}

.sk-announcement-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- 2. Header Skeleton (With Real RUUT Monogram Logo) --- */
.sk-header {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  box-sizing: border-box;
  background: #FDFBF7;
  border-bottom: 1px solid rgba(74, 51, 36, 0.06);
}

.sk-header-left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
}

.sk-hamburger-box {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}

.sk-hamburger-bar {
  height: 2px;
  background: #CF6400;
  border-radius: 2px;
  width: 100%;
  opacity: 0.8;
}

.sk-nav-link {
  width: 68px;
  height: 12px;
  border-radius: 4px;
}

.sk-header-center {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
}

.sk-brand-logo {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}

.sk-header-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.sk-icon-box {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

/* --- 3. Hero Banner Skeleton (Architectural Matte Block) --- */
.sk-hero {
  width: 100%;
  height: 46vh;
  min-height: 320px;
  max-height: 480px;
  background: #F4EFE6;
  border-bottom: 1px solid rgba(74, 51, 36, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
  box-sizing: border-box;
  padding: 20px;
}

.sk-hero-tag {
  width: 130px;
  height: 12px;
  border-radius: 4px;
}

.sk-hero-title {
  width: 440px;
  max-width: 88%;
  height: 36px;
  border-radius: 6px;
}

.sk-hero-subtitle {
  width: 300px;
  max-width: 75%;
  height: 14px;
  border-radius: 4px;
}

.sk-hero-btn {
  width: 140px;
  height: 42px;
  border-radius: 4px;
  margin-top: 8px;
}

/* --- 4. Section & Product Grid Skeleton (Structured UI Blocks) --- */
.sk-section {
  max-width: 1200px;
  margin: 35px auto 60px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.sk-section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}

.sk-section-title {
  width: 220px;
  height: 26px;
  border-radius: 4px;
}

.sk-section-sub {
  width: 150px;
  height: 12px;
  border-radius: 4px;
}

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

.sk-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #FAF7F2;
  border: 1px solid rgba(74, 51, 36, 0.08);
  border-radius: 8px;
  padding: 12px;
  box-sizing: border-box;
}

.sk-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
}

.sk-card-meta {
  width: 45%;
  height: 10px;
  border-radius: 3px;
}

.sk-card-title {
  width: 80%;
  height: 16px;
  border-radius: 4px;
}

.sk-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(74, 51, 36, 0.05);
}

.sk-card-price {
  width: 55px;
  height: 14px;
  border-radius: 3px;
}

.sk-card-btn {
  width: 65px;
  height: 26px;
  border-radius: 4px;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
  .sk-announcement {
    height: 34px;
    font-size: 0.65rem;
  }

  .sk-header {
    height: 60px;
    padding: 0 1rem;
  }

  .sk-header-left .sk-nav-link {
    display: none !important;
  }

  .sk-hamburger-box {
    display: flex !important;
  }

  .sk-brand-logo {
    height: 38px;
  }

  .sk-header-right {
    gap: 12px;
  }

  .sk-hero {
    height: 40vh;
    min-height: 260px;
  }

  .sk-hero-title {
    height: 28px;
  }

  .sk-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .sk-card {
    padding: 8px;
    gap: 8px;
  }

  .sk-card-btn {
    width: 44px;
    height: 22px;
  }
}
