﻿/* ================================================================
   CLONETUT main.css — supplementary styles
   (skeleton loaders, sidebar menu, misc helpers)
================================================================ */

/* ----------------------------------------------------------------
   Header widget span (user info)
---------------------------------------------------------------- */
.header-widget span {
  font-size: 13px;
  font-weight: 600;
  margin-left: 8px;
  letter-spacing: 0.2px;
  white-space: nowrap;
  text-align: left;
  line-height: 19px;
  color: var(--ctn-text, #1a202c);
  transition: color .2s;
}

/* ----------------------------------------------------------------
   Rich text content
---------------------------------------------------------------- */
.content_html ul {
  list-style-type: disc !important;
  padding-left: 32px;
  margin: 0;
}

.content_html ol {
  padding-left: 32px;
}

.content_html p { margin-bottom: 10px; }

/* ----------------------------------------------------------------
   Footer override (nav-dark bg is handled in clonetut-v6.css)
---------------------------------------------------------------- */
.footer-part {
  padding-top: 48px;
}

/* ----------------------------------------------------------------
   Left floating social menu
---------------------------------------------------------------- */
#top-menu-left {
  position: fixed;
  left: 0;
  top: 100px;
  z-index: 99;
  width: 50px;
}

#top-menu-left li {
  display: flex;
  justify-content: flex-start;
  list-style: none;
  margin-bottom: -5px;
}

#top-menu-left i {
  background-color: rgba(255,255,255,.6);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 10px;
}

#top-menu-left i img {
  border-radius: 50%;
  height: 24px;
  width: 24px;
}

#top-menu-left li a {
  background: #f5f6fa;
  border-radius: 0 10px 10px 0;
  box-shadow: 0 0 5px rgba(48,56,70,.2);
  display: inline-flex;
  align-items: center;
  color: #000;
  font-size: 13px;
  width: 195px;
  margin-left: 0;
  cursor: pointer;
  transition: margin-left .2s, width .2s;
}

#top-menu-left span {
  padding: 10px 0 10px 10px;
  width: 140px;
}

#top-menu-left li a.active {
  background: var(--ctn-accent, #d97706);
  color: #fff;
  width: 195px;
  margin-left: -143px;
}

body:not(.scrolling) #top-menu-left li a:not(.active) { width: 60px; }
body:not(.scrolling) #top-menu-left li a:not(.active) span { display: none; }
#top-menu-left:hover li a:hover span { display: block !important; }

@media screen and (min-width: 768px) {
  #top-menu-left:hover li a:hover { width: 195px !important; }
}

@media screen and (min-width: 1401px) {
  #top-menu-left li a { margin-left: 0; font-size: 16px; }
  #top-menu-left i { margin: 12px; }
  #top-menu-left span { left: 0; padding: 15px 0 15px 15px; width: 165px; }
  #top-menu-left i img { height: 30px; width: 30px; }
  #top-menu-left li a.active { margin-left: 0; width: 240px; }
}

/* ----------------------------------------------------------------
   Scroll to top button
---------------------------------------------------------------- */
.jscroll-to-top {
  bottom: 80px;
}

/* ----------------------------------------------------------------
   Skeleton loading — Product cards
---------------------------------------------------------------- */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}

.skeleton-img {
  height: 160px;
  background: linear-gradient(90deg, #f0f2f5 25%, #e6e8ec 50%, #f0f2f5 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 8px;
}

.skeleton-title {
  height: 18px;
  background: linear-gradient(90deg, #f0f2f5 25%, #e6e8ec 50%, #f0f2f5 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 4px;
  width: 75%;
}

.skeleton-text {
  height: 13px;
  background: linear-gradient(90deg, #f0f2f5 25%, #e6e8ec 50%, #f0f2f5 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 4px;
  width: 90%;
  margin-top: 6px;
}

.skeleton-sales {
  height: 18px;
  background: linear-gradient(90deg, #f0f2f5 25%, #e6e8ec 50%, #f0f2f5 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 4px;
  width: 80px;
}

.skeleton-price {
  height: 22px;
  background: linear-gradient(90deg, #f0f2f5 25%, #e6e8ec 50%, #f0f2f5 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 4px;
  width: 100px;
}

.skeleton-button {
  height: 34px;
  background: linear-gradient(90deg, #f0f2f5 25%, #e6e8ec 50%, #f0f2f5 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 7px;
  width: 100%;
}

.skeleton-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  min-width: 120px;
}

/* ----------------------------------------------------------------
   Loading dots
---------------------------------------------------------------- */
.loading-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 30px 0;
}

.loading-dots span {
  width: 11px;
  height: 11px;
  background: var(--ctn-accent, #d97706);
  border-radius: 50%;
  animation: bounce-dot 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce-dot {
  0%, 80%, 100% { transform: scale(0); opacity: .4; }
  40%           { transform: scale(1); opacity: 1; }
}

.loading-text {
  text-align: center;
  color: var(--ctn-muted, #64748b);
  font-weight: 500;
  margin-top: 8px;
  font-size: 13.5px;
}

/* ----------------------------------------------------------------
   Skeleton — menu drawer
---------------------------------------------------------------- */
.menu-skeleton { padding: 20px 0; }

.skeleton-menu-title {
  height: 18px;
  background: linear-gradient(90deg, #f0f2f5 25%, #e6e8ec 50%, #f0f2f5 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 4px;
  margin-bottom: 14px;
  width: 60%;
}

.skeleton-menu-item {
  height: 14px;
  background: linear-gradient(90deg, #f0f2f5 25%, #e6e8ec 50%, #f0f2f5 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 4px;
  margin-bottom: 8px;
  width: 80%;
}

.menu-loaded .menu-skeleton { display: none; }

/* ----------------------------------------------------------------
   Skeleton — category buttons (home)
---------------------------------------------------------------- */
.home-categories-loading {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.skeleton-category-btn {
  height: 36px;
  width: 140px;
  background: linear-gradient(90deg, #f0f2f5 25%, #e6e8ec 50%, #f0f2f5 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 100px;
}

@media (max-width: 768px) {
  .skeleton-category-btn {
    width: 110px;
    height: 32px;
  }
}