/* PC에서 모바일 전용 섹션 완전히 숨김 */
@media (min-width: 769px) {
    section.products.diverse-products.mobile-only,
    section.products.diverse-products.mobile-only *,
    .mobile-best-products-header,
    .mobile-best-products-header *,
    .mobile-best-products-wrapper,
    .mobile-best-products-wrapper *,
    .mobile-best-products-grid,
    .mobile-best-products-grid *,
    .mobile-best-product-card,
    .mobile-best-product-card * {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
        top: -9999px !important;
    }
    
    section.products.diverse-products.mobile-only {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
        top: -9999px !important;
        clip: rect(0, 0, 0, 0) !important;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section.products.diverse-products.mobile-only {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 3rem 0 !important;
    background: linear-gradient(135deg, #faf8f5 0%, #f5f1eb 50%, #efebe3 100%) !important;
    margin: 0 !important;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    box-sizing: border-box !important;
    position: relative !important;
    overflow: visible !important;
}

section.products.diverse-products.mobile-only.index-page-section-animate {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    /* 인라인 스타일의 animation-delay가 적용되도록 */
    animation-fill-mode: both;
}

.mobile-best-products-header,
section.products.diverse-products.mobile-only .mobile-best-products-header,
.products.diverse-products.mobile-only .mobile-best-products-header {
    text-align: center !important;
    margin-bottom: 2rem !important;
    padding: 0 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    order: 1 !important;
    display: block !important;
    box-sizing: border-box !important;
}

.mobile-best-products-header .glowing-title,
section.products.diverse-products.mobile-only .mobile-best-products-header .glowing-title,
.products.diverse-products.mobile-only .mobile-best-products-header .glowing-title {
    font-size: 1.8rem !important;
    color: #6b4a2e !important;
    margin-bottom: 0.5rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
}

.mobile-best-products-header p,
section.products.diverse-products.mobile-only .mobile-best-products-header p,
.products.diverse-products.mobile-only .mobile-best-products-header p {
    font-size: 1rem !important;
    color: #666 !important;
    margin: 0 !important;
    line-height: 1.5 !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
}

section.products.diverse-products.mobile-only .mobile-best-products-wrapper,
.products.diverse-products.mobile-only .mobile-best-products-wrapper,
.mobile-best-products-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 1rem !important;
    display: block !important;
    box-sizing: border-box !important;
    flex: none !important;
    order: 2 !important;
    margin: 0 auto !important;
    position: relative !important;
    overflow: visible !important;
}

.mobile-best-products-grid,
section.products.diverse-products.mobile-only .mobile-best-products-grid,
.products.diverse-products.mobile-only .mobile-best-products-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mobile-best-products-grid .mobile-best-product-card,
section.products.diverse-products.mobile-only .mobile-best-products-grid .mobile-best-product-card,
.products.diverse-products.mobile-only .mobile-best-product-card,
section.products.diverse-products.mobile-only .mobile-best-product-card,
.mobile-best-product-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    background: #fff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(212, 165, 116, 0.08) !important;
    border: 1px solid #e8dcc8 !important;
    transition: box-shadow 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    position: relative !important;
    opacity: 1 !important;
    transform: none !important;
}

.mobile-best-product-card:hover,
section.products.diverse-products.mobile-only .mobile-best-product-card:hover {
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.15) !important;
}

.mobile-best-product-card .diverse-product-link,
section.products.diverse-products.mobile-only .mobile-best-product-card .diverse-product-link {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    text-decoration: none !important;
    color: inherit !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.mobile-best-product-card .diverse-product-image,
section.products.diverse-products.mobile-only .mobile-best-product-card .diverse-product-image {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 1 !important;
    max-height: 200px !important;
    height: auto !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #f8f5f0 0%, #f2ede4 100%) !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mobile-best-product-card .diverse-product-image img,
section.products.diverse-products.mobile-only .mobile-best-product-card .diverse-product-image img {
    width: 100% !important;
    height: 100% !important;
    max-height: 200px !important;
    max-width: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
    display: block !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mobile-best-product-card:hover .diverse-product-image img,
section.products.diverse-products.mobile-only .mobile-best-product-card:hover .diverse-product-image img {
    transform: scale(1.05) !important;
}

.mobile-best-product-card .diverse-wishlist-btn,
section.products.diverse-products.mobile-only .mobile-best-product-card .diverse-wishlist-btn,
.mobile-best-product-card .diverse-product-image .diverse-wishlist-btn,
section.products.diverse-products.mobile-only .mobile-best-product-card .diverse-product-image .diverse-wishlist-btn {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #e8dcc8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    z-index: 10 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.mobile-best-product-card .diverse-wishlist-btn:hover,
section.products.diverse-products.mobile-only .mobile-best-product-card .diverse-wishlist-btn:hover {
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.mobile-best-product-card .diverse-wishlist-btn.active,
section.products.diverse-products.mobile-only .mobile-best-product-card .diverse-wishlist-btn.active {
    background: #ff6b6b !important;
    border-color: #ff6b6b !important;
    color: #fff !important;
}

.mobile-best-product-card .diverse-wishlist-btn i,
section.products.diverse-products.mobile-only .mobile-best-product-card .diverse-wishlist-btn i {
    font-size: 14px !important;
    color: #c49a6a !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mobile-best-product-card .diverse-wishlist-btn.active i,
section.products.diverse-products.mobile-only .mobile-best-product-card .diverse-wishlist-btn.active i {
    color: #fff !important;
}

.mobile-best-product-card .diverse-product-info,
section.products.diverse-products.mobile-only .mobile-best-product-card .diverse-product-info {
    padding: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    overflow: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
    min-height: 0 !important;
}

.mobile-best-product-card .diverse-product-name,
section.products.diverse-products.mobile-only .mobile-best-product-card .diverse-product-name {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #6b4a2e !important;
    margin-bottom: 6px !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.mobile-best-product-card .diverse-product-summary,
section.products.diverse-products.mobile-only .mobile-best-product-card .diverse-product-summary {
    font-size: 12px !important;
    color: #7a5a3a !important;
    margin-bottom: 8px !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.mobile-best-product-card .diverse-product-price,
section.products.diverse-products.mobile-only .mobile-best-product-card .diverse-product-price {
    margin-bottom: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.mobile-best-product-card .diverse-price-sale,
section.products.diverse-products.mobile-only .mobile-best-product-card .diverse-price-sale,
.mobile-best-product-card .diverse-product-price .diverse-price-sale,
section.products.diverse-products.mobile-only .mobile-best-product-card .diverse-product-price .diverse-price-sale {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #6b4a2e !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

.mobile-best-product-card .diverse-product-stats,
section.products.diverse-products.mobile-only .mobile-best-product-card .diverse-product-stats {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    margin-top: auto !important;
    padding-top: 8px !important;
    border-top: 1px solid #f0f0f0 !important;
    flex-shrink: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.mobile-best-product-card .diverse-stat-item,
section.products.diverse-products.mobile-only .mobile-best-product-card .diverse-stat-item,
.mobile-best-product-card .diverse-product-stats .diverse-stat-item,
section.products.diverse-products.mobile-only .mobile-best-product-card .diverse-product-stats .diverse-stat-item,
.mobile-best-product-card .diverse-stat-item.mobile-only,
section.products.diverse-products.mobile-only .mobile-best-product-card .diverse-stat-item.mobile-only {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 11px !important;
    color: #7a5a3a !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.mobile-best-product-card .diverse-stat-item i,
section.products.diverse-products.mobile-only .mobile-best-product-card .diverse-stat-item i {
    font-size: 12px !important;
    color: #c49a6a !important;
    flex-shrink: 0 !important;
}

.mobile-best-product-card .diverse-stat-number,
section.products.diverse-products.mobile-only .mobile-best-product-card .diverse-stat-number {
    font-weight: 700 !important;
    font-size: 11px !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

.mobile-best-product-card .diverse-stat-sales .diverse-stat-number,
section.products.diverse-products.mobile-only .mobile-best-product-card .diverse-stat-sales .diverse-stat-number {
    color: #c49a6a !important;
}

.mobile-best-product-card .diverse-stat-review .diverse-stat-number,
section.products.diverse-products.mobile-only .mobile-best-product-card .diverse-stat-review .diverse-stat-number {
    color: #ffa500 !important;
}

.mobile-best-product-card .diverse-stat-wishlist .diverse-stat-number,
section.products.diverse-products.mobile-only .mobile-best-product-card .diverse-stat-wishlist .diverse-stat-number {
    color: #ff6b6b !important;
}

.mobile-best-product-card .diverse-stat-view,
section.products.diverse-products.mobile-only .mobile-best-product-card .diverse-stat-view,
.mobile-best-product-card .diverse-stat-item.diverse-stat-view,
section.products.diverse-products.mobile-only .mobile-best-product-card .diverse-stat-item.diverse-stat-view,
.mobile-best-product-card .diverse-stat-item.diverse-stat-view.mobile-only,
section.products.diverse-products.mobile-only .mobile-best-product-card .diverse-stat-item.diverse-stat-view.mobile-only {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* 순서: 누적판매 → 리뷰 → 관심 */
.mobile-best-product-card .diverse-stat-sales,
section.products.diverse-products.mobile-only .mobile-best-product-card .diverse-stat-sales {
    order: 1 !important;
}

.mobile-best-product-card .diverse-stat-review,
section.products.diverse-products.mobile-only .mobile-best-product-card .diverse-stat-review {
    order: 2 !important;
}

.mobile-best-product-card .diverse-stat-wishlist,
section.products.diverse-products.mobile-only .mobile-best-product-card .diverse-stat-wishlist {
    order: 3 !important;
}

