/**
 * Sentock Homepage Design System
 * Scope chính: .sentock-home
 * Không reset hoặc đổi product template trên toàn website.
 */

.sentock-home {
  --sentock-color-bg: #101214;
  --sentock-color-bg-soft: #1a1d21;
  --sentock-color-surface: #ffffff;
  --sentock-color-surface-soft: #f5f5f2;
  --sentock-color-text: #17191c;
  --sentock-color-text-inverse: #f1f1f1;
  --sentock-color-muted: #6b7077;
  --sentock-color-muted-inverse: #aeb3ba;
  --sentock-color-primary: #e42f2f;
  --sentock-color-primary-hover: #c92329;
  --sentock-color-accent: #c77d0a;
  --sentock-color-success: #2e7d32;
  --sentock-color-warning: #b45309;
  --sentock-color-out: #6b7280;
  --sentock-color-border: #e2e4e6;
  --sentock-color-border-dark: #34383e;
  --sentock-radius-sm: 8px;
  --sentock-radius-md: 14px;
  --sentock-radius-lg: 20px;
  --sentock-shadow-card: 0 8px 24px rgba(16, 18, 20, 0.08);
  --sentock-shadow-card-hover: 0 14px 36px rgba(16, 18, 20, 0.14);
  --sentock-container: 1200px;
  --sentock-space-1: 4px;
  --sentock-space-2: 8px;
  --sentock-space-3: 12px;
  --sentock-space-4: 16px;
  --sentock-space-5: 24px;
  --sentock-space-6: 32px;
  --sentock-space-7: 48px;
  --sentock-space-8: 72px;
  --sentock-motion-fast: 180ms ease-out;
  --sentock-motion-card: 260ms cubic-bezier(0.22, 1, 0.36, 1);
  font-family:
    Lexend,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.sentock-home,
.sentock-home *,
.sentock-home *::before,
.sentock-home *::after {
  box-sizing: border-box;
}

.sentock-home .row,
.sentock-home .col,
.sentock-home .col-inner,
.sentock-home .box,
.sentock-home .box-text {
  min-width: 0;
}

.sentock-home.sentock-mobile-version,
.sentock-only-for-mobile {
  display: none !important;
}

.sentock-home__anchor {
  display: block;
  height: 0;
  position: relative;
  top: -120px;
  visibility: hidden;
}

.sentock-home h1,
.sentock-home h2,
.sentock-home h3,
.sentock-home h4 {
  font-family:
    Poppins,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  letter-spacing: -0.025em;
}

.sentock-home__kicker {
  color: var(--sentock-color-primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: var(--sentock-space-3);
  text-transform: uppercase;
}

.sentock-home h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.08;
}

.sentock-home h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  line-height: 1.18;
}

.sentock-home h3 {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.35;
}

.sentock-home p,
.sentock-home li {
  line-height: 1.6;
}

.sentock-home .button,
.sentock-home button,
.sentock-home [role="button"] {
  -webkit-tap-highlight-color: transparent;
  align-items: center;
  border-radius: var(--sentock-radius-sm);
  display: inline-flex;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  transition:
    background-color var(--sentock-motion-fast),
    border-color var(--sentock-motion-fast),
    box-shadow var(--sentock-motion-fast),
    color var(--sentock-motion-fast),
    transform var(--sentock-motion-fast);
}

.sentock-home .button.primary {
  background: var(--sentock-color-primary);
  border-color: var(--sentock-color-primary);
  color: #ffffff;
}

.sentock-home .button:active,
.sentock-home button:active,
.sentock-home [role="button"]:active {
  transform: scale(0.98);
}

.sentock-home a:focus-visible,
.sentock-home button:focus-visible,
.sentock-home [tabindex]:focus-visible {
  outline: 3px solid rgba(228, 47, 47, 0.4);
  outline-offset: 3px;
}

.sentock-home--hero,
.sentock-home--preorder,
.sentock-home--community,
.sentock-home--store {
  background: var(--sentock-color-bg);
  color: var(--sentock-color-text-inverse);
}

.sentock-home--hero h1,
.sentock-home--hero h2,
.sentock-home--hero h3,
.sentock-home--preorder h1,
.sentock-home--preorder h2,
.sentock-home--preorder h3,
.sentock-home--community h1,
.sentock-home--community h2,
.sentock-home--community h3,
.sentock-home--store h1,
.sentock-home--store h2,
.sentock-home--store h3 {
  color: var(--sentock-color-text-inverse);
}

.sentock-home--light {
  background: var(--sentock-color-surface);
  color: var(--sentock-color-text);
}

.sentock-home--soft {
  background: var(--sentock-color-surface-soft);
  color: var(--sentock-color-text);
}

.sentock-home--hero,
.sentock-home--quick-links,
.sentock-home--available,
.sentock-home--preorder,
.sentock-home--brands,
.sentock-home--accessories,
.sentock-home--community,
.sentock-home--blog,
.sentock-home--faq,
.sentock-home--store {
  scroll-margin-top: 120px;
}

.sentock-home__media-placeholder {
  align-items: center;
  aspect-ratio: 8 / 5;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.035) 0,
    rgba(255, 255, 255, 0.035) 12px,
    rgba(255, 255, 255, 0.07) 12px,
    rgba(255, 255, 255, 0.07) 24px
  );
  border: 1px dashed var(--sentock-color-border-dark);
  border-radius: var(--sentock-radius-lg);
  color: var(--sentock-color-muted-inverse);
  display: flex;
  justify-content: center;
  min-height: 280px;
  padding: var(--sentock-space-6);
  text-align: center;
}

.sentock-home__dynamic-products {
  width: 100%;
}

.sentock-home__dynamic-products .product-small .box {
  background: var(--sentock-color-surface);
  border: 1px solid var(--sentock-color-border);
  border-radius: var(--sentock-radius-md);
  box-shadow: var(--sentock-shadow-card);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition:
    border-color var(--sentock-motion-card),
    box-shadow var(--sentock-motion-card),
    transform var(--sentock-motion-card);
}

.sentock-home__dynamic-products .box-image {
  aspect-ratio: 1 / 1;
  background: #f0f1f2;
  border-radius: var(--sentock-radius-md) var(--sentock-radius-md) 0 0;
  flex: 0 0 auto;
  overflow: hidden;
}

.sentock-home__dynamic-products .box-image .image-fade_in_back,
.sentock-home__dynamic-products .box-image a {
  display: block;
  height: 100%;
}

.sentock-home__dynamic-products .box-image img {
  aspect-ratio: 1 / 1;
  height: 100% !important;
  object-fit: contain;
  transition: transform var(--sentock-motion-card);
  width: 100%;
}

.sentock-home__dynamic-products .box-text {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: auto !important;
  min-height: 0;
  padding: var(--sentock-space-4);
}

.sentock-home__dynamic-products .product-title {
  display: -webkit-box !important;
  height: auto !important;
  max-height: 2.9em;
  min-height: 2.9em;
  overflow: hidden;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow-wrap: anywhere;
}

.sentock-home__dynamic-products .price {
  color: var(--sentock-color-primary);
  font-weight: 700;
  margin-top: auto;
}

.sentock-home__dynamic-products .price del {
  color: var(--sentock-color-muted);
  font-size: 0.82em;
  font-weight: 500;
  opacity: 0.85;
}

.sentock-home__dynamic-products .price ins {
  color: var(--sentock-color-primary);
  text-decoration: none;
}

.sentock-home__dynamic-products .sentock-product-cta,
.sentock-home__dynamic-products .add_to_cart_button {
  margin: 12px 0 0;
  min-height: 44px;
  width: 100%;
}

.sentock-home__dynamic-products .badge-container {
  left: 8px;
  margin: 0;
  max-width: calc(100% - 16px);
  top: 8px;
}

.sentock-home__dynamic-products .badge {
  height: auto;
  min-height: 32px;
  min-width: 32px;
}

.sentock-home__dynamic-products--preorder .product-small .box {
  border-top: 3px solid var(--sentock-color-accent);
}

.sentock-home__dynamic-products .product-small:active .box,
.sentock-home__categories .product-category:active .box,
.sentock-home__posts .post-item:active .box {
  transform: scale(0.985);
}

.sentock-home__categories .product-category .box,
.sentock-home__posts .post-item .box {
  background: var(--sentock-color-surface);
  border: 1px solid var(--sentock-color-border);
  border-radius: var(--sentock-radius-md);
  box-shadow: var(--sentock-shadow-card);
  height: 100%;
  overflow: hidden;
  transition:
    border-color var(--sentock-motion-card),
    box-shadow var(--sentock-motion-card),
    transform var(--sentock-motion-card);
}

.sentock-home__categories .box-image img,
.sentock-home__posts .box-image img {
  transition: transform var(--sentock-motion-card);
}

.sentock-home--quick-links .section-content > .row + .row > .col > .col-inner {
  background: var(--sentock-color-surface);
  border: 1px solid var(--sentock-color-border);
  border-radius: var(--sentock-radius-md);
  box-shadow: 0 6px 20px rgba(16, 18, 20, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--sentock-space-5);
  transition:
    border-color var(--sentock-motion-card),
    box-shadow var(--sentock-motion-card),
    transform var(--sentock-motion-card);
}

.sentock-home--quick-links
  .section-content
  > .row
  + .row
  > .col
  > .col-inner
  > .button {
  margin-top: auto;
}

.sentock-home--faq .accordion-item {
  background: var(--sentock-color-surface);
  border: 1px solid var(--sentock-color-border);
  border-radius: var(--sentock-radius-sm);
  margin-bottom: var(--sentock-space-3);
  overflow: hidden;
  transition:
    border-color var(--sentock-motion-fast),
    box-shadow var(--sentock-motion-fast);
}

.sentock-home--faq .accordion-title {
  border: 0;
  font-weight: 600;
  min-height: 52px;
  padding: 16px 18px 16px 52px;
}

.sentock-home--faq .accordion-title .toggle {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  height: 100%;
  justify-content: center;
  left: 0;
  margin: 0;
  min-height: 0;
  padding: 0;
  top: 0;
  transform: none;
  width: 48px;
}

.sentock-home--faq .accordion-title .toggle:active {
  transform: none;
}

.sentock-home--faq .accordion-title .toggle i {
  color: var(--sentock-color-primary);
  font-size: 1rem;
}

.sentock-home--faq .accordion-title.active {
  background: rgba(228, 47, 47, 0.055);
  color: var(--sentock-color-primary);
}

.sentock-home--faq .accordion-inner {
  padding: 0 18px 18px;
}

.sentock-home--mobile-benefits .sentock-home__benefits > .col > .col-inner {
  height: 100%;
}

.sentock-home--mobile-benefits h3,
.sentock-home--mobile-benefits p {
  margin-bottom: 4px;
}

.sentock-home__empty-state {
  background: #fff8e8;
  border: 1px dashed #d6a54f;
  border-radius: var(--sentock-radius-sm);
  color: #6f4b08;
  padding: var(--sentock-space-4);
}

.sentock-home.section.sentock-home--entered {
  animation: sentock-section-enter 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes sentock-section-enter {
  from {
    opacity: 0.94;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (hover: hover) and (pointer: fine) {
  .sentock-home .button:hover {
    box-shadow: 0 8px 20px rgba(16, 18, 20, 0.12);
    transform: translateY(-2px);
  }

  .sentock-home .button.primary:hover {
    background: var(--sentock-color-primary-hover);
    border-color: var(--sentock-color-primary-hover);
  }

  .sentock-home__dynamic-products .product-small .box:hover,
  .sentock-home__categories .product-category .box:hover,
  .sentock-home__posts .post-item .box:hover {
    border-color: rgba(228, 47, 47, 0.36);
    box-shadow: var(--sentock-shadow-card-hover);
    transform: translateY(-4px);
  }

  .sentock-home__dynamic-products .product-small .box:hover .box-image img,
  .sentock-home__categories .product-category .box:hover .box-image img,
  .sentock-home__posts .post-item .box:hover .box-image img {
    transform: scale(1.035);
  }

  .sentock-home--quick-links
    .section-content
    > .row
    + .row
    > .col
    > .col-inner:hover {
    border-color: rgba(228, 47, 47, 0.32);
    box-shadow: var(--sentock-shadow-card-hover);
    transform: translateY(-3px);
  }

  .sentock-home--faq .accordion-item:hover {
    border-color: rgba(228, 47, 47, 0.3);
    box-shadow: 0 8px 22px rgba(16, 18, 20, 0.08);
  }
}

@media (max-width: 849px) {
  .sentock-home {
    --sentock-space-8: 56px;
  }

  .sentock-home .button,
  .sentock-home button,
  .sentock-home [role="button"] {
    min-height: 46px;
  }
}

@media (max-width: 549px) {
  .sentock-home {
    --sentock-space-8: 40px;
  }

  .sentock-home.sentock-desktop-version,
  .sentock-hide-for-mobile {
    display: none !important;
  }

  .sentock-home.sentock-mobile-version,
  .sentock-only-for-mobile {
    display: block !important;
  }

  .sentock-home.section {
    padding-bottom: 40px !important;
    padding-top: 40px !important;
  }

  .sentock-home h1 {
    font-size: clamp(1.95rem, 9vw, 2.35rem);
  }

  .sentock-home__title--h1 {
    color: inherit;
    font-family:
      Poppins,
      -apple-system,
      BlinkMacSystemFont,
      "Segoe UI",
      sans-serif;
    font-size: clamp(1.95rem, 9vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.12;
    margin-bottom: 0.5em;
  }

  .sentock-home h2 {
    font-size: clamp(1.55rem, 8vw, 2rem);
  }

  .sentock-home .button,
  .sentock-home button,
  .sentock-home [role="button"] {
    min-height: 44px;
    padding-inline: 18px;
  }

  .sentock-home > .section-content > .row {
    padding-left: 10px;
    padding-right: 10px;
  }

  .sentock-home .button {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  .sentock-home__media-placeholder {
    aspect-ratio: 4 / 3;
    min-height: 180px;
    padding: var(--sentock-space-4);
  }

  .sentock-home__dynamic-products .products.row {
    align-items: stretch;
    display: grid !important;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 !important;
    width: 100%;
  }

  .sentock-home__dynamic-products .products.row::before,
  .sentock-home__dynamic-products .products.row::after {
    display: none !important;
  }

  .sentock-home__dynamic-products .products.row > .product-small {
    display: flex;
    flex-basis: auto !important;
    height: auto !important;
    margin: 0 !important;
    max-width: none !important;
    min-width: 0;
    padding: 0 !important;
    width: auto !important;
  }

  .sentock-home__dynamic-products .products.row > .product-small > .col-inner {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    width: 100%;
  }

  .sentock-home__dynamic-products .product-small .box {
    border-radius: 10px;
    flex: 1 1 auto;
    height: auto;
    min-width: 0;
    width: 100%;
  }

  .sentock-home__dynamic-products .box-text {
    padding: 10px;
  }

  .sentock-home__dynamic-products .product-title {
    font-size: 0.8rem;
    line-height: 1.4;
    max-height: 4.2em;
    min-height: 2.8em;
    -webkit-line-clamp: 3 !important;
  }

  .sentock-home__dynamic-products .price {
    font-size: 0.9rem;
    line-height: 1.35;
  }

  .sentock-home__dynamic-products .sentock-product-cta,
  .sentock-home__dynamic-products .add_to_cart_button {
    align-self: stretch;
    flex: 0 0 auto;
    font-size: 0.78rem;
    height: auto !important;
    line-height: 1.2;
    margin: 8px 0 0;
    min-height: 44px !important;
    padding: 9px 8px !important;
    white-space: normal;
  }

  .sentock-home__dynamic-products .badge-container {
    left: 5px;
    max-width: calc(100% - 10px);
    top: 5px;
  }

  .sentock-home__dynamic-products .badge {
    font-size: 0.68rem;
    min-height: 28px;
    min-width: 28px;
  }

  .sentock-home__dynamic-products .box-image .button.icon,
  .sentock-home__dynamic-products .box-image .wishlist-button.button {
    align-items: center;
    align-self: auto;
    border-radius: 999px;
    display: flex;
    flex: 0 0 36px;
    height: 36px !important;
    justify-content: center;
    margin: 0 !important;
    min-height: 36px !important;
    padding: 0 !important;
    width: 36px !important;
  }

  .sentock-home__dynamic-products .box-image .button.icon i,
  .sentock-home__dynamic-products .box-image .wishlist-button.button i {
    font-size: 1rem;
    line-height: 1;
    margin: 0;
  }

  .sentock-home__categories.row {
    margin-left: -6px;
    margin-right: -6px;
  }

  .sentock-home__categories.row > .product-category {
    flex-basis: 50% !important;
    max-width: 50% !important;
    padding: 0 6px 12px !important;
    width: 50% !important;
  }

  .sentock-home--quick-links .section-content > .row + .row {
    margin-left: -6px;
    margin-right: -6px;
  }

  .sentock-home--quick-links .section-content > .row + .row > .col {
    padding: 0 6px 12px;
  }

  .sentock-home--quick-links
    .section-content
    > .row
    + .row
    > .col
    > .col-inner {
    padding: 16px 12px;
  }

  .sentock-home--quick-links .section-content > .row + .row h3 {
    font-size: 1rem;
  }

  .sentock-home--quick-links .section-content > .row + .row p {
    font-size: 0.86rem;
    line-height: 1.5;
  }

  .sentock-home--faq .accordion-title {
    font-size: 0.95rem;
    line-height: 1.45;
    min-height: 50px;
    padding: 14px 12px 14px 44px;
  }

  .sentock-home--faq .accordion-title .toggle {
    width: 42px;
  }

  .sentock-home--faq .accordion-inner {
    font-size: 0.9rem;
    padding: 0 14px 14px;
  }

  .sentock-home--hero .row-inner {
    margin-top: var(--sentock-space-4);
  }

  .sentock-home--hero .row-inner .col-inner {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 12px;
  }

  .sentock-home--mobile-benefits.section {
    padding-bottom: 18px !important;
    padding-top: 18px !important;
  }

  .sentock-home--mobile-benefits .sentock-home__benefits {
    margin-left: -4px;
    margin-right: -4px;
  }

  .sentock-home--mobile-benefits .sentock-home__benefits > .col {
    padding-left: 4px;
    padding-right: 4px;
  }

  .sentock-home--mobile-benefits h3 {
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .sentock-home--mobile-benefits p {
    font-size: 0.68rem;
    line-height: 1.35;
  }

  /*
   * Chaty đang được cấu hình dạng thanh kênh ở đáy màn hình. Trên trang chủ
   * mobile chỉ giữ nút mở chính để không che card, CTA và footer.
   */
  body.page-id-3419 #chaty-widget-_2 .chaty-channel-list,
  body.page-id-3419 #chaty-widget-_2 .on-hover-text {
    display: none !important;
  }

  body.page-id-3419 #chaty-widget-_2 .chaty-widget {
    bottom: calc(18px + env(safe-area-inset-bottom)) !important;
    right: 14px !important;
  }
}

@media (max-width: 360px) {
  .sentock-home > .section-content > .row {
    padding-left: 6px;
    padding-right: 6px;
  }

  .sentock-home__dynamic-products .products.row {
    gap: 8px;
  }

  .sentock-home__dynamic-products .box-text {
    padding: 8px;
  }

  .sentock-home__dynamic-products .product-title {
    font-size: 0.74rem;
  }

  .sentock-home__dynamic-products .price {
    font-size: 0.82rem;
  }

  .sentock-home__dynamic-products .sentock-product-cta,
  .sentock-home__dynamic-products .add_to_cart_button {
    font-size: 0.72rem;
    min-height: 44px;
    padding-inline: 5px;
  }

  .sentock-home--quick-links .section-content > .row + .row {
    margin-left: -4px;
    margin-right: -4px;
  }

  .sentock-home--quick-links .section-content > .row + .row > .col {
    padding: 0 4px 8px;
  }

  .sentock-home--quick-links
    .section-content
    > .row
    + .row
    > .col
    > .col-inner {
    padding: 14px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sentock-home *,
  .sentock-home *::before,
  .sentock-home *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
