.product-card-copy h3 {
  display: block;
  min-height: 116px;
  overflow: visible;
  -webkit-line-clamp: unset;
}

@media (max-width: 549px) {
  .product-card-copy h3 {
    min-height: 94px;
  }
}

.product-thumbnails-original {
  display: flex;
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.product-thumbnails-original button {
  flex: 0 0 calc((100% - 30px) / 4);
  scroll-snap-align: start;
}

.gallery-main {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-main > img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gallery-main.quality-upgraded::after {
  content: "HD";
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 2px;
  background: #111c;
  color: #fff;
  font: 600 11px/1 var(--sans);
  letter-spacing: 1px;
}

.single-image-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid #ddd;
  background: #fafafa;
  color: #555;
  font-size: 13px;
  text-align: center;
}

.single-image-note a {
  color: #159447;
  font-weight: 700;
}

/* Floating contact buttons: compact sizing plus the reference site's
   continuous pulse and icon-wiggle treatment. */
.social-rail {
  right: 16px;
  bottom: 16px;
  gap: 10px;
}

.social-button {
  position: relative;
  isolation: isolate;
  width: 52px;
  height: 52px;
  box-shadow: 0 4px 16px #0003;
  transition: transform .22s ease, filter .22s ease;
  will-change: transform;
}

.social-button:not(.back-top)::before {
  content: "";
  position: absolute;
  inset: -9px;
  z-index: -1;
  border-radius: 50%;
  background: var(--social-pulse-bg);
  box-shadow: 0 0 0 0 var(--social-pulse-ring);
  pointer-events: none;
  transform-origin: 50% 50%;
  animation: social-contact-pulse 1.3s ease infinite;
}

.social-button:not(.back-top) svg {
  width: 28px;
  height: 28px;
  transform-origin: 50% 50%;
  animation: social-contact-wiggle 1s ease-in-out infinite;
}

.social-button.telegram {
  --social-pulse-bg: rgba(44,159,216,.55);
  --social-pulse-ring: rgba(44,159,216,.78);
  background: #2c9fd8;
}

.social-button.tiktok {
  --social-pulse-bg: rgba(8,8,8,.52);
  --social-pulse-ring: rgba(37,244,238,.7);
  background: #080808;
}

.social-button.tiktok svg {
  fill: #fff;
  stroke: none;
  filter: drop-shadow(1.2px 0 #fe2c55) drop-shadow(-1.2px 0 #25f4ee);
}

.social-button.whatsapp {
  --social-pulse-bg: rgba(35,217,72,.5);
  --social-pulse-ring: rgba(31,215,68,.78);
  background: #1cd741;
}

.social-button:not(.back-top):hover,
.social-button:not(.back-top):focus-visible {
  transform: translateY(-2px) scale(1.04);
  filter: saturate(1.08);
}

@keyframes social-contact-pulse {
  0% { transform: scale(.9); opacity: .78; box-shadow: 0 0 0 0 var(--social-pulse-ring); }
  70% { transform: scale(1); opacity: .18; box-shadow: 0 0 0 14px transparent; }
  100% { transform: scale(.9); opacity: .58; box-shadow: 0 0 0 0 transparent; }
}

@keyframes social-contact-wiggle {
  0%, 50%, 100% { transform: rotate(0deg) scale(1) skew(1deg); }
  10%, 30% { transform: rotate(-25deg) scale(1) skew(1deg); }
  20%, 40% { transform: rotate(25deg) scale(1) skew(1deg); }
}

@media (prefers-reduced-motion: reduce) {
  .social-button:not(.back-top)::before,
  .social-button:not(.back-top) svg { animation: none; }
}

.popular-collections {
  position: relative;
  padding: 38px 0 18px;
  background: #fff;
}

.popular-collections-head {
  padding: 0 30px 20px;
  text-align: center;
}

.popular-collections-head p {
  margin: 0;
  color: #555;
  font: 500 14px/1 var(--sans);
  letter-spacing: 3px;
}

.popular-collections-shell { position: relative; }

.popular-collection-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  direction: ltr;
}

.popular-collection-track::-webkit-scrollbar { display: none; }

.popular-collection-card {
  position: relative;
  flex: 0 0 33.333333%;
  aspect-ratio: 1 / 1.18;
  overflow: hidden;
  background: #222 var(--collection-image) center / cover no-repeat;
  color: #fff;
  text-decoration: none;
  scroll-snap-align: start;
}

.popular-collection-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  transition: transform .65s ease;
}

.popular-collection-card:hover::before { transform: scale(1.045); }
.popular-collection-shade { position:absolute; inset:0; background:linear-gradient(180deg,#0001 30%,#000a 100%); }
.popular-collection-copy { position:absolute; z-index:1; left:6.5%; right:8%; bottom:10%; display:flex; flex-direction:column; align-items:flex-start; text-shadow:0 2px 12px #0008; }
.popular-collection-copy small { font:400 16px/1.2 var(--sans); letter-spacing:1px; }
.popular-collection-copy strong { margin-top:10px; font:600 clamp(31px,4vw,58px)/.95 var(--condensed); letter-spacing:.5px; }
.popular-collection-number { position:absolute; z-index:1; right:5%; top:5%; font:500 12px/1 var(--sans); letter-spacing:2px; }
.popular-collection-arrow { position:absolute; z-index:3; top:50%; width:58px; height:58px; transform:translateY(-50%); border:2px solid #fff; border-radius:50%; background:#1112; color:#fff; font:300 45px/46px Arial,sans-serif; cursor:pointer; text-shadow:0 1px 7px #000; }
.popular-collection-arrow.previous { left:24px; }
.popular-collection-arrow.next { right:24px; }
.popular-collection-dots { margin:14px 0 0; }

.nav-drop > button .nav-label {
  margin: 0;
  color: inherit;
}

.nav-drop > button > span:last-child {
  margin-inline-start: 6px;
}

.language-select {
  min-width: 48px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.drawer-language {
  margin: 0 0 16px;
}

.drawer-preferences {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.drawer-language select {
  width: 100%;
  height: 44px;
  border: 1px solid #111;
  background: #fff;
  padding: 0 12px;
  color: #111;
}

html[lang="ja"] body { font-family: "Noto Sans JP", var(--sans); }
html[lang="ko"] body { font-family: "Noto Sans KR", var(--sans); }
html[lang="ar"] body { font-family: "Noto Sans Arabic", var(--sans); }

[dir="rtl"] .desktop-nav { margin-left: 0; margin-right: 18px; }
[dir="rtl"] .header-tools { margin-left: 0; margin-right: auto; }
[dir="rtl"] .nav-dropdown { left: auto; right: -12px; text-align: right; }
[dir="rtl"] .title-icon { margin-right: 0; margin-left: 13px; }
[dir="rtl"] .catalog-toolbar label { border-right: 0; border-left: 1px solid #cfcfcf; }
[dir="rtl"] .catalog-toolbar label:last-child { border-left: 0; }
[dir="rtl"] .footer-about p,
[dir="rtl"] .quick-results,
[dir="rtl"] .product-breadcrumb,
[dir="rtl"] .product-summary-original,
[dir="rtl"] .product-attributes th,
[dir="rtl"] .product-attributes td { text-align: right; }
[dir="rtl"] .social-rail { right: auto; left: 18px; }
[dir="rtl"] .mobile-drawer { right: auto; left: 0; transform: translateX(-102%); }
[dir="rtl"] .mobile-drawer.open { transform: none; }
[dir="rtl"] .drawer-close { right: auto; left: 16px; }
[dir="rtl"] .mobile-drawer nav > a,
[dir="rtl"] .mobile-group > button { text-align: right; }
[dir="rtl"] .mobile-group > div { padding-left: 0; padding-right: 15px; }
[dir="rtl"] .product-thumbnails-original { direction: ltr; }

.footer-contact-details { margin: 10px 0 14px; }
.footer-contact-details p { margin: 3px 0; line-height: 1.55; }
.footer-contact-details span { font-weight: 500; }
.footer-contact-details a { display: inline; margin: 0; overflow-wrap: anywhere; }
.product-source-description { max-width: 960px; margin: -5px auto 35px; padding: 22px 26px; background:#f6f6f4; color:#333; font-size:15px; line-height:1.85; white-space:pre-line; }

@media (max-width: 849px) {
  .popular-collection-card { flex-basis: 50%; }
  .popular-collection-arrow { width:48px; height:48px; font-size:38px; line-height:38px; }
  .social-button { width:48px; height:48px; }
  .social-button:not(.back-top)::before { inset:-8px; }
  .social-button:not(.back-top) svg { width:26px; height:26px; }
  [dir="rtl"] .social-rail { right: auto; left: 12px; }
}

@media (max-width: 549px) {
  .popular-collections { padding-top: 28px; }
  .popular-collections-head { padding-bottom: 14px; }
  .popular-collection-card { flex-basis:100%; aspect-ratio:1 / 1.15; }
  .popular-collection-copy strong { font-size:42px; }
  .popular-collection-arrow { display:none; }
  .social-rail { right:7px; bottom:12px; gap:9px; }
  .social-button { width:44px; height:44px; }
  .social-button:not(.back-top)::before { inset:-7px; }
  .social-button:not(.back-top) svg { width:24px; height:24px; }
  [dir="rtl"] .social-rail { right: auto; left: 8px; }
  [dir="rtl"] .title-icon { margin-left: 8px; }
  [dir="rtl"] .catalog-toolbar label { border-left: 0; }
  .product-source-description { margin-bottom:25px; padding:18px; font-size:14px; }
}
