/* ST Galaxy — shared mobile layout + simple footer */

:root {
  --tabbar-h: 56px;
  --mobile-header-h: 52px;
}

/* Shared nav brand + logo (all pages) */
body > nav:first-of-type .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

body > nav:first-of-type .brand h1 {
  font-family: "Orbitron", sans-serif;
  font-size: 1.2rem;
  background: linear-gradient(90deg, #00e8ff, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}

body > nav:first-of-type a.brand {
  text-transform: none;
  letter-spacing: normal;
}

body > nav:first-of-type .nav-links a.active {
  color: #00e8ff;
  text-shadow: 0 0 12px rgba(0, 232, 255, 0.45);
}

.logo-slot {
  width: 52px;
  height: 52px;
  min-height: 52px;
  min-width: 52px;
  border-radius: 10px;
  flex-shrink: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-slot picture {
  display: block;
  width: 100%;
  height: 100%;
}

.logo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.28);
  display: block;
}

.logo-slot .slot-hint {
  font-size: 0.65rem;
}

.logo-slot.has-image .slot-hint {
  display: none;
}

.sponsor .img-slot picture {
  display: block;
  width: 100%;
}

.sponsor .img-slot.has-image img {
  object-fit: cover;
  object-position: center center;
}

/* Patkai sponsorship — capped width, rounded frame, centered */
.sponsor {
  max-width: 880px;
  width: 100%;
  padding: 32px 20px 24px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sponsor .img-slot {
  width: 100%;
  max-width: 720px;
  min-height: unset;
  margin: 0 auto 16px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: block;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.sponsor .img-slot img {
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  max-height: 400px !important;
  object-fit: cover !important;
  object-position: center center;
  display: block;
  margin: 0 auto;
}

.sponsor-caption {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

@media (max-width: 768px) {
  .sponsor {
    padding: 24px 14px 18px;
  }

  .sponsor .img-slot {
    margin: 0 auto 12px;
    border-radius: 14px;
  }

  .sponsor .img-slot img {
    max-height: 260px !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .sponsor {
    padding: 28px 20px 22px;
    max-width: 92%;
  }

  .sponsor .img-slot img {
    max-height: 340px !important;
  }
}

footer.site-footer,
.site-footer {
  text-align: center;
  padding: 24px 16px 20px;
  margin: 40px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  color: #7a7a9a;
  font-size: 0.85rem;
  line-height: 1.55;
}

.footer-brand {
  margin-bottom: 10px;
}

.footer-brand-link {
  display: inline-block;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  line-height: 0;
}

.footer-brand-link picture {
  display: block;
  width: 100%;
  height: 100%;
}

.footer-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.28);
}

.footer-line {
  margin-bottom: 4px;
  color: #8b8ba8;
  font-size: 0.8rem;
}

.footer-tagline {
  color: #6e6e88;
  font-size: 0.75rem;
}

.footer-email {
  color: #00ff9c;
  text-decoration: none;
  font-weight: 600;
}

.footer-email:hover {
  text-decoration: underline;
}

.footer-nav {
  margin: 12px 0 8px;
  font-size: 0.78rem;
}

.footer-nav a {
  color: #7a7a9a;
  text-decoration: none;
}

.footer-nav a:hover {
  color: #00e8ff;
}

.footer-nav span {
  margin: 0 8px;
  color: #4a4a5e;
}

.footer-copy {
  font-size: 0.72rem;
  color: #5a5a72;
  margin: 0;
}

.footer-legal {
  margin-top: 4px;
}

/* Legal pages + gentle notice banner */
.legal-intro {
  color: #9a9ab4;
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 8px;
}

.legal-updated {
  font-size: 0.78rem;
  color: #6e6e88;
  margin-bottom: 24px;
}

.legal-section a,
.about-section a {
  color: #00ff9c;
  text-decoration: none;
}

.legal-section a:hover,
.about-section a:hover {
  text-decoration: underline;
}

.legal-back {
  display: inline-block;
  margin-top: 28px;
  color: #7a7a9a;
  font-size: 0.88rem;
  text-decoration: none;
}

.legal-back:hover {
  color: #00e8ff;
}

/* Wholesale PDF viewer page */
.pdf-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.pdf-panel {
  padding: 28px 24px 32px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(22px) saturate(200%);
  -webkit-backdrop-filter: blur(22px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.pdf-title {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  margin-bottom: 8px;
  background: linear-gradient(90deg, #00e8ff, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pdf-intro {
  color: #9a9ab4;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 18px;
}

.pdf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.pdf-btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.pdf-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.pdf-btn-primary {
  background: linear-gradient(135deg, #00e8ff, #8b5cf6);
  color: #030304;
}

.pdf-btn-outline {
  border: 1px solid rgba(0, 232, 255, 0.45);
  color: #00e8ff;
  background: rgba(0, 232, 255, 0.08);
}

.pdf-btn-wa {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
}

.pdf-btn-lg {
  width: 100%;
  text-align: center;
  padding: 14px 20px;
  font-size: 0.92rem;
}

.wholesale-preview-link {
  display: block;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  line-height: 0;
}

.wholesale-preview-link picture {
  display: block;
  width: 100%;
}

.wholesale-preview-link img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
  object-position: center;
}

.wholesale-preview-label {
  display: block;
  line-height: 1.4;
  padding: 14px 16px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: #00e8ff;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pdf-embed-desktop {
  display: none;
  margin-top: 20px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #fff;
}

.pdf-frame {
  display: block;
  width: 100%;
  height: min(78vh, 820px);
  min-height: 480px;
  border: none;
  background: #fff;
}

@media (min-width: 769px) {
  .pdf-embed-desktop {
    display: block;
  }

  .wholesale-preview-link {
    display: none;
  }

  .pdf-btn-lg {
    width: auto;
  }
}

.pdf-panel .legal-back {
  margin-top: 20px;
}

.legal-notice {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  width: calc(100% - 32px);
  max-width: 640px;
  padding: 0;
  border-radius: 16px;
  background: rgba(12, 12, 18, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.legal-notice-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
}

.legal-notice-text {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.6;
  color: #b4b4c8;
  text-align: left;
}

.legal-notice a {
  color: #eef0ff;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(0, 232, 255, 0.45);
}

.legal-notice a:hover {
  color: #00e8ff;
  text-decoration-color: #00e8ff;
}

.legal-notice-btn {
  flex-shrink: 0;
  padding: 10px 18px;
  border: 1px solid rgba(0, 232, 255, 0.35);
  border-radius: 10px;
  background: rgba(0, 232, 255, 0.1);
  color: #00e8ff;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.legal-notice-btn:hover {
  background: rgba(0, 232, 255, 0.18);
  border-color: rgba(0, 232, 255, 0.55);
}

body.has-mobile-chrome.has-legal-notice .legal-notice {
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 600px) {
  .legal-notice-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
  }

  .legal-notice-text {
    font-size: 0.8rem;
    line-height: 1.55;
    text-align: center;
  }

  .legal-notice-btn {
    width: 100%;
    padding: 12px 18px;
  }
}

/* WebP <picture> — img inside must fill card/gallery like before */
.product-image-wrap picture,
.gallery-main picture,
.gallery-thumb picture {
  display: block;
  width: 100%;
  height: 100%;
}

.product-card-link picture {
  display: block;
  width: 100%;
}

.product-card-link picture img.product-photo {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.gallery-main picture img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.gallery-thumb picture,
.gallery-thumb picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #c8c8de;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 2px 0;
  transition: color 0.2s ease;
}

.page-back:hover {
  color: #00e8ff;
}

.page-back-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #00e8ff;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-back-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.page-back:hover .page-back-icon {
  background: rgba(0, 232, 255, 0.1);
  border-color: rgba(0, 232, 255, 0.35);
  box-shadow: 0 0 16px rgba(0, 232, 255, 0.15);
}

.page-back-text {
  line-height: 1.2;
}

#mobile-tabbar.mobile-tabbar {
  display: none;
}

@media (max-width: 768px) {
  html {
    -webkit-text-size-adjust: 100%;
  }

  body {
    padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 16px);
  }

  body.has-mobile-chrome {
    padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 16px);
  }

  body.has-mobile-chrome > nav:first-of-type {
    position: sticky;
    top: 0;
    z-index: 50;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 12px 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    border-left: none;
    border-right: none;
    border-top: none;
    min-height: var(--mobile-header-h);
  }

  body.has-mobile-chrome .nav-links {
    display: none !important;
  }

  body.has-mobile-chrome > nav:first-of-type .brand {
    justify-content: center !important;
    width: 100%;
  }

  body.has-mobile-chrome > nav:first-of-type h1,
  body.has-mobile-chrome > nav:first-of-type .brand h1 {
    font-size: 0.95rem !important;
    text-align: center;
  }

  body.has-mobile-chrome .logo-slot {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  #mobile-tabbar.mobile-tabbar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: space-around !important;
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    inset: auto 0 0 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    min-height: var(--tabbar-h);
    height: auto !important;
    border-radius: 0 !important;
    border: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.55) !important;
    background: rgba(6, 6, 12, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    z-index: 10000 !important;
    gap: 0 !important;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    pointer-events: auto;
  }

  #mobile-tabbar .tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    color: #6e6e88;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 7px 4px 6px;
    margin: 0 !important;
    text-shadow: none !important;
    min-width: 0;
    position: relative;
    transition: color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }

  #mobile-tabbar .tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    line-height: 1;
  }

  #mobile-tabbar .tab-icon .tab-svg {
    width: 22px;
    height: 22px;
    display: block;
  }

  #mobile-tabbar .tab-item.active {
    color: #00e8ff;
  }

  #mobile-tabbar .tab-item.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 22%;
    right: 22%;
    height: 2px;
    border-radius: 0 0 2px 2px;
    background: linear-gradient(90deg, #00e8ff, #8b5cf6);
    box-shadow: 0 0 10px rgba(0, 232, 255, 0.45);
  }

  #mobile-tabbar .tab-item.active .tab-icon {
    filter: drop-shadow(0 0 5px rgba(0, 232, 255, 0.35));
  }

  #mobile-tabbar .tab-item.tab-order {
    color: #25d366;
  }

  #mobile-tabbar .tab-item.tab-order .tab-icon {
    filter: drop-shadow(0 0 4px rgba(37, 211, 102, 0.25));
  }

  #mobile-tabbar .tab-item:active {
    opacity: 0.7;
  }

  .container {
    padding: 12px 10px 20px !important;
  }

  .title {
    padding: 16px 14px !important;
    margin-bottom: 12px !important;
    border-radius: 14px !important;
  }

  .title h2 {
    font-size: 1.15rem !important;
    margin-bottom: 6px !important;
  }

  .title .subtitle {
    font-size: 0.68rem !important;
    margin-bottom: 8px !important;
  }

  .title p {
    font-size: 0.75rem !important;
  }

  .category-heading {
    display: none;
  }

  .category-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 8px;
    margin: 0 -2px 14px;
    padding: 2px 2px 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .category-tabs::-webkit-scrollbar {
    display: none;
  }

  .category-tab {
    flex-shrink: 0;
    font-size: 0.68rem !important;
    padding: 8px 14px !important;
    white-space: nowrap;
  }

  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .product-card {
    border-radius: 10px;
  }

  .product-card:hover {
    transform: none;
    box-shadow: none;
  }

  .product-card:active {
    transform: scale(0.98);
    opacity: 0.92;
  }

  .product-card img,
  .product-card-link .product-photo,
  .product-card-link picture img.product-photo {
    height: 130px !important;
    object-fit: cover;
  }

  .product-info {
    padding: 8px 8px 6px !important;
  }

  .product-info h3 {
    font-size: 0.72rem !important;
    line-height: 1.3 !important;
    margin-bottom: 4px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-desc {
    display: -webkit-box !important;
    font-size: 0.68rem !important;
    line-height: 1.35 !important;
    margin-bottom: 6px !important;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .pricing {
    margin-bottom: 0 !important;
  }

  .price-line {
    font-size: 0.72rem !important;
    margin-bottom: 2px !important;
  }

  .badge-soon,
  .badge-check {
    font-size: 0.62rem !important;
    padding: 4px 8px !important;
  }

  .photo-count {
    top: 6px;
    right: 6px;
    font-size: 0.6rem;
    padding: 2px 6px;
  }

  .card-actions {
    padding: 0 8px 8px !important;
  }

  .card-actions .buy-btn {
    font-size: 0.58rem !important;
    padding: 8px 6px !important;
    letter-spacing: 0.03em !important;
  }

  .order-section {
    margin-top: 20px;
    padding: 18px 14px;
    border-radius: 14px;
  }

  .order-section h3 {
    font-size: 0.85rem;
    margin-bottom: 14px;
  }

  .order-links {
    flex-direction: column;
    gap: 10px;
  }

  .order-links a {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  .detail-panel {
    padding: 16px 14px 22px !important;
    border-radius: 14px !important;
  }

  .detail-top {
    margin-bottom: 14px !important;
  }

  .page-back {
    width: auto;
  }

  .detail-header {
    margin-bottom: 18px !important;
    padding-bottom: 16px !important;
  }

  .detail-header h1 {
    font-size: 1.2rem !important;
  }

  .gallery-main img {
    max-height: 280px !important;
  }

  .gallery-thumb {
    width: 64px;
    height: 64px;
  }

  .detail-desc {
    padding: 16px !important;
    font-size: 0.92rem !important;
    min-height: auto !important;
  }

  .detail-actions {
    flex-direction: column;
  }

  .detail-actions .buy-btn,
  .detail-actions .instagram-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .about-panel {
    padding: 20px 16px !important;
  }

  .about-panel h2 {
    font-size: 1.25rem !important;
  }

  .about-cta {
    flex-direction: column;
  }

  .about-cta .btn {
    width: 100%;
    text-align: center;
  }

  .hero {
    padding: 12px 10px 20px !important;
  }

  .hero-glass {
    padding: 22px 16px 20px !important;
    margin-top: 0 !important;
    border-radius: 14px !important;
  }

  .hero .tagline {
    font-size: 0.62rem !important;
  }

  .hero h2,
  .hero-glass h2 {
    font-size: 1.15rem !important;
    line-height: 1.35 !important;
    margin-bottom: 18px !important;
  }

  .cta-row {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .cta-card {
    width: 100% !important;
    max-width: 100% !important;
  }

  .cta-card .img-slot {
    height: 210px !important;
  }

  .cta-card .btn-label {
    font-size: 0.68rem !important;
    padding: 12px !important;
  }

  .sponsor {
    padding: 20px 12px 16px !important;
  }

  .sponsor .img-slot {
    min-height: unset !important;
    margin: 0 auto 12px !important;
    border-radius: 14px !important;
  }

  .sponsor-caption {
    padding: 14px 12px !important;
    font-size: 0.85rem !important;
    margin-top: 0;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .why {
    margin: 0 10px !important;
    padding: 24px 14px !important;
    border-radius: 14px !important;
  }

  .section-title {
    font-size: 1.05rem !important;
    margin-bottom: 16px !important;
  }

  .features {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .card {
    padding: 16px 14px !important;
  }

  .card h3 {
    font-size: 0.88rem !important;
  }

  .card p {
    font-size: 0.82rem !important;
    line-height: 1.55 !important;
  }

  .referral {
    padding: 16px 10px 24px !important;
  }

  .referral-glass {
    padding: 22px 16px !important;
    border-radius: 14px !important;
  }

  .referral h2 {
    font-size: 1.05rem !important;
  }

  .referral .btn {
    width: 100%;
    max-width: 100% !important;
  }

  .pdf-page {
    padding: 16px 10px 28px !important;
  }

  .pdf-panel {
    padding: 20px 14px 24px !important;
    border-radius: 16px !important;
  }

  .pdf-actions {
    flex-direction: column;
  }

  .pdf-btn {
    width: 100%;
    text-align: center;
  }

  .social {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    padding: 0 12px 16px !important;
  }

  .social-link {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    padding: 16px 10px 18px !important;
  }

  .social-icon {
    width: 72px !important;
    height: 72px !important;
    margin-bottom: 10px !important;
  }

  .social-icon img {
    width: 36px !important;
    height: 36px !important;
  }

  .social-link span:last-child {
    font-size: 0.72rem !important;
    letter-spacing: 0.06em !important;
  }

  .site-footer {
    margin-top: 24px;
    padding: 20px 12px 16px;
  }

  .bg-orbs span {
    filter: blur(60px);
    opacity: 0.7;
  }

  .bg-orbs span:nth-child(1),
  .bg-orbs span:nth-child(2),
  .bg-orbs span:nth-child(3) {
    width: 180px !important;
    height: 180px !important;
  }
}

@media (max-width: 380px) {
  .products {
    gap: 6px !important;
  }

  .product-card img,
  .product-card-link .product-photo,
  .product-card-link picture img.product-photo {
    height: 115px !important;
  }

  .product-info h3 {
    font-size: 0.68rem !important;
  }
}

/* ── Skeleton loaders & smooth content ── */

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes content-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.skeleton-shine {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.04) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

.skeleton-card {
  pointer-events: none;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.skeleton-image {
  width: 100%;
  height: 250px;
  background: rgba(255, 255, 255, 0.05);
}

.skeleton-image-lg {
  height: 280px;
  border-radius: 14px;
  margin-bottom: 20px;
}

.skeleton-body {
  padding: 12px 10px;
}

.skeleton-line {
  height: 12px;
  border-radius: 6px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.skeleton-line.w-90 { width: 90%; }
.skeleton-line.w-80 { width: 80%; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-40 { width: 40%; }
.skeleton-line.w-30 { width: 30%; }

.skeleton-title {
  height: 22px;
  margin-bottom: 16px;
}

.skeleton-btn {
  height: 36px;
  margin: 0 10px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.category-tabs.is-loading {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow: hidden;
}

.skeleton-tab {
  display: inline-block;
  width: 72px;
  height: 34px;
  border-radius: 999px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
}

.skeleton-card .skeleton-image,
.skeleton-card .skeleton-line,
.skeleton-card .skeleton-btn,
.category-tabs.is-loading .skeleton-tab,
.detail-skeleton .skeleton-image,
.detail-skeleton .skeleton-line,
.detail-skeleton .skeleton-block {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.04) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

.products.is-ready {
  animation: content-fade-in 0.35s ease forwards;
}

.products.is-updating {
  opacity: 0.55;
  transition: opacity 0.15s ease;
}

.detail-panel.is-ready {
  animation: content-fade-in 0.4s ease forwards;
}

.detail-skeleton {
  padding: 4px 0;
}

.skeleton-block {
  height: 80px;
  border-radius: 12px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.05);
}

/* Image fade-in (no layout jump — fixed height slots) */
.product-image-wrap {
  background: rgba(255, 255, 255, 0.04);
}

.product-image-wrap .product-photo {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.product-image-wrap.is-loaded .product-photo,
.product-image-wrap .product-photo.is-loaded {
  opacity: 1;
}

.gallery-main {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
}

.gallery-main img {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery-main.is-loaded img,
.gallery-main img.is-loaded {
  opacity: 1;
}

/* Mobile: lighter effects = smoother scroll */
@media (max-width: 768px) {
  .skeleton-image {
    height: 130px;
  }

  .skeleton-image-lg {
    height: 220px;
  }

  .bg-orbs span {
    animation: none !important;
    filter: blur(50px) !important;
  }

  .product-card::before {
    animation: none !important;
    opacity: 0 !important;
  }

  .glass::after {
    animation: none !important;
    display: none !important;
  }

  body > nav:first-of-type,
  .title,
  .product-card,
  .detail-panel {
    backdrop-filter: blur(10px) saturate(130%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(130%) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .products.is-ready,
  .detail-panel.is-ready,
  .product-photo,
  .gallery-main img {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
  }

  .skeleton-shine,
  .skeleton-card .skeleton-image,
  .skeleton-card .skeleton-line,
  .skeleton-card .skeleton-btn,
  .category-tabs.is-loading .skeleton-tab,
  .detail-skeleton .skeleton-image,
  .detail-skeleton .skeleton-line,
  .detail-skeleton .skeleton-block {
    animation: none !important;
  }
}
