.home-page {
    font-size: var(--gap18);
}

.home-banner {
    background: linear-gradient(900deg, rgba(255, 255, 255, 1) 57%, rgba(245, 144, 63, 0.06) 100%);
}

.home-banner .swiper-notification {
    display: none;
}

.home-banner img {
    display: block;
    margin: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-banner-title {
    font-size: 39px;
    font-family: 'Times New Roman', Times, serif;
    color: var(--black);
    font-weight: bold;
}

.banner-wrapper {
    width: 716px;
    overflow: hidden;
    position: relative;
}

.home-banner-action-item {
    color: var(--secondary-dk);
    background-color: var(--white);
    border: 2px solid var(--secondary-dk);
    padding: var(--gap6) var(--gap20);
    font-size: var(--gap16);
    border-radius: var(--radius);
    cursor: pointer;
}

.button-design-item:hover {
    outline: 2px solid var(--white);
    outline-offset: -4px;
    color: var(--white);
    box-shadow: 0 0 0 2px var(--white);
}

.button-design-item {
    background-color: var(--secondary-dk);
    color: var(--white);
}

.tabs-product-list,
.tabs-creative-list {
    margin-top: var(--gap20);
}

.tab-item {
    cursor: pointer;
    user-select: none;
    font-size: var(--gap18);
    font-weight: 500;
    border-bottom: 2px solid transparent;
}

.tab-item.active,
.tab-item:hover {
    border-bottom-color: var(--secondary-dk);
}

.tab-item.active {
    color: var(--secondary-dk);
}

.tab-product-item {
    font-size: var(--gap14);
}

.home-tabs-title {
    line-height: 1;
}

.tab-product-title {
    font-size: calc(var(--gap16) + 1px);
    color: var(--black);
    line-height: 1.25;
    min-height: 44px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.tab-product-color-price span {
    color: var(--price);
    font-size: var(--gap18);
    font-weight: 500;
}

.tab-product-color-price del {
    color: #595959;
}

.product-label {
    border-radius: var(--gap20);
    padding: 3px 8px;
    background-color: var(--successful);
    color: var(--white);
    font-size: var(--gap12);
}

.bestselling-color {
    background: linear-gradient(90deg, #ff3093, #ff3030);
}

.acclaim-color {
    background: linear-gradient(90deg, #30ffda, #308fff);
}

.recommend-color {
    background: linear-gradient(90deg, #3430ff, #fb30ff);
}

.new-color {
    background: linear-gradient(90deg, #ff7a30, #ff4930);
}

.seasonal-color {
    background: linear-gradient(90deg, #27bc48, #0aa399);
}

.tab-product-color-size {
    text-transform: uppercase;
}

.tab-product-color-item {
    /* width: var(--gap20); */
    min-width: var(--gap20);
    height: var(--gap20);
    border: 1px solid var(--flash);
}

.more-products {
    padding: var(--gap6) var(--gap20);
    border: 2px solid var(--secondary-dk);
    color: var(--secondary-dk);
    text-transform: uppercase;
}

.home-creative-product {
    padding-top: 64px;
    padding-bottom: 64px;
    background-color: #fff8e7;
}

.tab-product-group:not(.active),
.creative-tab-content:not(.active) {
    display: none;
}

.creative-tab-content {
    min-height: 240px;
}

.creative-content-title {
    font-size: 27px;
    font-family: 'Times New Roman', Times, serif;
    color: var(--black);
}

.creative-content-desc {
    margin: 0;
    padding: 0;
}

.creative-content-desc-item::before {
    content: "";
    width: 20px;
    min-width: 20px;
    height: 20px;
    min-height: 20px;
    display: block;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%23ff4e00"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-1.293 5.953a1 1 0 0 0 -1.32 -.083l-.094 .083l-3.293 3.292l-1.293 -1.292l-.094 -.083a1 1 0 0 0 -1.403 1.403l.083 .094l2 2l.094 .083a1 1 0 0 0 1.226 0l.094 -.083l4 -4l.083 -.094a1 1 0 0 0 -.083 -1.32z" /></svg>');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.creative-image {
    width: 100%;
    max-width: 480px;
}

.home-platform .site-w {
    overflow: hidden;
}

.tabs-platform-list {
    padding: var(--gap20);
}

.platform-slide:not(.swiper-initialized) .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: var(--gap16);
}

.platform-track {
    white-space: nowrap;
}

.creative-platform-content {
    border-radius: var(--gap16);
    padding: var(--gap8) var(--gap12);
    box-shadow: 0 4px 20px rgba(11 11 11 / 11%);
    line-height: 1.2;
    min-height: 120px;
    font-size: var(--gap14);
    width: 300px;
    min-width: 300px;
    white-space: normal;
}

.platform-logo img {
    height: 26px;
    width: auto;
    object-fit: contain;
}


/* Animation cho từng hàng */
.platform-row-0 .platform-track {
    animation: scrollRow0 20s linear infinite;
}

.platform-row-1 .platform-track {
    animation: scrollRow1 20s linear infinite;
}

.platform-row-2 .platform-track {
    animation: scrollRow2 15s linear infinite;
}

.tabs-product-contain {
    width: 100%;
}

.skeleton-grid {
    display: none;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 20px !important;
  }

  /* Đảm bảo grid layout không bị thay đổi khi wire:loading */
  [wire\:loading] .skeleton-grid,
  .skeleton-grid[wire\:loading],
  .skeleton-grid.show {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 20px !important;
  }

  .skeleton-card {
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  .skeleton {
    background: linear-gradient(90deg, #e0e0e0 25%, #f5f5f5 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
  }

  .skeleton-img {
    width: 100%;
    height: 220px;
    margin-bottom: 15px;
  }

  .skeleton-line {
    height: 16px;
    margin-bottom: 10px;
  }

  .skeleton-line.short {
    width: 50%;
  }

  .skeleton-line.medium {
    width: 70%;
  }

  .skeleton-line.long {
    width: 90%;
  }

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

/* Product image hover effect */
.product-image-container {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.product-image-main,
.product-image-hover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.product-image-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.product-image-container:hover .product-image-main {
    opacity: 0;
}

.product-image-container:hover .product-image-hover {
    opacity: 1;
}

@keyframes scrollRow0 {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scrollRow1 {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(50%);
    }
}

@keyframes scrollRow2 {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.printing-section {
    background-color: var(--black);
    border-radius: var(--gap20);
    padding: var(--gap20);
    max-width: 80%;
}

.printing-left-content {
    background-color: var(--white);
    border-radius: var(--gap20);
    padding: var(--gap20)
}

.printing-right {
    color: var(--white)
}

.printing-right .home-tabs-title {
    color: var(--white)
}

.printing-right a {
    width: fit-content;
}

.printing-footer-text a {
    color: var(--secondary-dk);
    box-shadow: none;
}

.printing-footer-text a:hover {
    text-decoration: underline;
}

@media (max-width: 760px) {
    .home-page {
        font-size: var(--gap16);
        scrollbar-width: none;
    }
    .skeleton-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    [wire\:loading] .skeleton-grid,
    .skeleton-grid[wire\:loading],
    .skeleton-grid.show {
      display: grid !important;
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 10px !important;
    }

    .home-banner-title {
        font-size: 29px;
    }

    .home-banner-action {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .tabs-contain {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        justify-content: flex-start;
        scrollbar-width: none;
    }

    .tab-product-group.active {
        grid-template-columns: repeat(2, 1fr);
    }
    .tab-item {
        font-size: var(--gap16);
    }

    .creative-tab-content.active {
        flex-direction: column;
    }

    .tab-product-color-item:nth-child(n + 4) {
        display: none
    }

    .supply-section,
    .printing-section {
        width: 100%;
        max-width: 100%;
        grid-template-columns: repeat(1, 1fr);
    }

    .header-action {
        opacity: 0;
        pointer-events: none;
    }
}