/* New Smartphone Section Styles - Same as Trending */
.new-smartphone {
    text-align: left;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.new-smartphone h2 {
    font-family: 'Libre Baskerville', serif;
    font-size: 2.5rem;
    color: #000000;
    font-weight: 700;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    text-decoration: underline;
    text-decoration-color: #ff0000;
    text-decoration-thickness: 2px;
    text-underline-offset: 8px;
}

/* PC - Enhanced h2 styling */
@media (min-width: 1200px) {
    .new-smartphone h2 {
        font-size: 3rem;
        text-decoration-thickness: 3px;
        text-underline-offset: 10px;
        margin-bottom: 50px;
    }
}

@media (min-width: 1600px) {
    .new-smartphone h2 {
        font-size: 3.5rem;
        text-decoration-thickness: 4px;
        text-underline-offset: 12px;
        margin-bottom: 60px;
    }
}

/* New Smartphone Grid Container */
.new-smartphone-grid {
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* New Smartphone Track */
.new-smartphone-track {
    display: flex;
    gap: 30px;
    will-change: transform;
    cursor: grab;
    user-select: none;
}

.new-smartphone-track.dragging {
    cursor: grabbing;
}

/* Hide scrollbar */
.new-smartphone-grid::-webkit-scrollbar {
    display: none;
}

/* PC only → disable drag */
@media (hover: hover) and (pointer: fine) {
    .new-smartphone-track {
        pointer-events: none;
    }

    .new-smartphone-nav-btn {
        pointer-events: auto;
    }
}

/* Mobile → allow interaction */
@media (hover: none) and (pointer: coarse) {
    .new-smartphone-track {
        pointer-events: auto;
    }
}

/* New Smartphone Navigation Buttons */
.new-smartphone-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #eb5b5b 0%, #ff6b6b 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(235, 91, 91, 0.3);
}

.new-smartphone-nav-btn:hover {
    background: linear-gradient(135deg, #d63447 0%, #e74c3c 100%);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(235, 91, 91, 0.4);
}

.new-smartphone-nav-left {
    left: 10px;
}

.new-smartphone-nav-right {
    right: 10px;
}

/* Show new smartphone buttons only on PC */
@media (min-width: 769px) {
    .new-smartphone-nav-btn {
        display: flex;
    }
}

/* New Smartphone Product Card - Same as Trending */
.new-smartphone-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;

    width: 200px;
    height: 370px;

    min-width: 200px;   /* important */
    flex-shrink: 0;     /* important */
    padding: 10px;
}

.new-smartphone-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 48px rgba(0,0,0,0.15);
}

/* New Smartphone Product Image - Same as Trending */
.new-smartphone-image {
    width: 100%;
    height: 150px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.new-smartphone-card:hover .new-smartphone-image {
    transform: scale(1.05);
}

/* New Smartphone Product Content - Same as Trending */
.new-smartphone-content {
    padding: 15px;
}

.new-smartphone-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    overflow: hidden;
}

.new-smartphone-description {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

/* New Smartphone Price - Same as Trending */
.new-smartphone-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.new-smartphone-current {
    font-size: 1.3rem;
    font-weight: 700;
    color: #eb5b5b;
}

.new-smartphone-original {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
}

/* New Smartphone Rating - Same as Trending */
.new-smartphone-rating {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

/* New Smartphone Actions - Same as Trending */
.new-smartphone-actions {
    display: flex;
    gap: 8px;
}

/* New Smartphone Button - Same as Trending */
.new-smartphone-btn {
    display: flex;
    height: 30px;
    width: 100%;
    align-items: center;
    justify-content: center;
    background-color: #eb5b5b;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 200;
}

/* Mobile */
@media (max-width: 480px) {
    .new-smartphone {
        padding: 30px 15px;
    }

    .new-smartphone h2 {
        font-size: 1.8rem;
    }

    .new-smartphone-actions {
        flex-direction: column;
    }
}

/* Large Desktop */
@media (min-width: 1900px) {
    .new-smartphone {
        padding: 30px 15px;
    }

    .new-smartphone h2 {
        font-size: 3rem;
    }

    .new-smartphone-actions {
        flex-direction: column;
    }
    
    .new-smartphone-card {
        background: white;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 8px 32px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
        position: relative;
        cursor: pointer;

        width: 300px;
        height: 520px;
    }
    
    .new-smartphone-image {
        width: 100%;
        height: 250px;
        object-fit: contain;
        transition: transform 0.3s ease;
    }
    
    .new-smartphone-title {
        font-size: 2rem;
        font-weight: 600;
        color: #333;
        margin-bottom: 8px;
        line-height: 1.3;
        overflow: hidden;
    }

    .new-smartphone-description {
        color: #666;
        font-size: 1.2rem;
        margin-bottom: 5px;
    }

    .new-smartphone-price {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 5px;
    }

    .new-smartphone-current {
        font-size: 1.8rem;
        font-weight: 700;
        color: #eb5b5b;
    }

    .new-smartphone-original {
        font-size: 1.2rem;
        color: #999;
        text-decoration: line-through;
    }
}

/* Loading Spinner */
.new-smartphone-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.new-smartphone-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #eb5b5b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No Products */
.new-smartphone-no-products {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.1rem;
}
