/* Refurbished Gallery Styling */
.refurbished-section {
    padding: 4rem 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
    position: relative;
}

@media (max-width: 768px) {
    .refurbished-section {
        padding: 2.5rem 15px;
    }
}

.refurbished-section .section-title h2 {
    background: linear-gradient(135deg, #1a1a1a 0%, #3a7bd5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.refurbished-badge-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    perspective: 1000px;
}

.process-badge {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 12px 25px;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
    border: 1px solid rgba(52, 152, 219, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.process-badge i {
    color: #3498db;
    font-size: 1.1rem;
}

.process-badge.highlight {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
}

.process-badge.highlight i {
    color: white;
}

.process-badge:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(52, 152, 219, 0.2);
}

/* Carousel Container */
.refurbished-carousel-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
}

.refurbished-carousel-track-container {
    overflow: hidden;
    width: 100%;
}

.refurbished-track {
    display: flex;
    gap: 30px;
    padding: 20px 5px;
    justify-content: center; /* Center when fewer items */
}

/* Ensure centering doesn't break scrolling when items exceed width */
@media (min-width: 769px) {
    .refurbished-track {
        display: flex;
        /* Remove justify-content center if items overflow? 
           Actually, the JS will handle scrolling, but for empty space 
           centering is nice. */
    }
}

.refurbished-item {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0,0,0,0.04);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 210, 255, 0.05);
    position: relative;
    flex: 0 0 380px; /* Consistent width for carousel items */
    max-width: 100%;
}

/* Carousel Buttons */
.refurbished-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    color: #3498db;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 15;
    transition: all 0.3s ease;
}

.refurbished-carousel-btn:hover {
    background: #3498db;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.refurbished-prev-btn { left: -10px; }
.refurbished-next-btn { right: -10px; }

/* Item Inner Styles */
.status-badge {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 1.15rem;
    font-weight: 900;
    text-transform: uppercase;
    z-index: 25;
    letter-spacing: 2px;
    pointer-events: none;
    white-space: nowrap;
}

.status-available {
    background: #27ae60;
    color: white;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}

.status-booked {
    background: #e74c3c;
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.discount-tag {
    position: absolute;
    top: 25px;
    left: 25px;
    background: #fdcb6e;
    color: #1a1a1a;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 900;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(253, 203, 110, 0.4);
}

.refurbished-img-container {
    height: 320px;
    overflow: hidden;
    position: relative;
    background: #fdfdfd;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.refurbished-img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.refurbished-item:hover .refurbished-img-container img {
    transform: scale(1.08);
}

.refurbished-info {
    padding: 25px;
    text-align: center;
}

.refurb-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.price-old {
    text-decoration: line-through;
    color: #95a5a6;
    font-size: 1rem;
    font-weight: 500;
}

.price-new {
    color: #2ecc71;
    font-size: 1.4rem;
    font-weight: 800;
    background: rgba(46, 204, 113, 0.1);
    padding: 2px 12px;
    border-radius: 8px;
}

.rent-tag {
    font-size: 1rem;
    color: #3498db;
    font-weight: 700;
    background: rgba(52, 152, 219, 0.08);
    padding: 2px 12px;
    border-radius: 8px;
}

.refurbished-info h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.refurbished-info p {
    font-size: 0.9rem;
    color: #636e72;
    margin-bottom: 20px;
    line-height: 1.5;
}

.refurb-specs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 5px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.03);
}

.refurb-spec-item {
    font-size: 0.8rem;
    color: #2d3436;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.refurb-spec-item i {
    color: #3498db;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .refurbished-carousel-container {
        padding: 0;
    }
    
    .refurbished-carousel-track-container {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 20px;
    }
    
    .refurbished-track {
        gap: 15px;
        justify-content: flex-start;
        padding-left: 20px;
        padding-right: 20px;
    }

    .refurbished-item {
        flex: 0 0 85%;
        scroll-snap-align: center;
        max-width: 320px;
    }

    .refurbished-carousel-btn {
        display: flex;
        width: 44px;
        height: 44px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(8px);
        font-size: 1rem;
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
        z-index: 200;
        top: 50%;
        transform: translateY(-50%);
        border: 1px solid rgba(0, 210, 255, 0.1);
    }

    .refurbished-prev-btn { left: 8px; }
    .refurbished-next-btn { right: 8px; }
}

@media (max-width: 768px) {
    .refurbished-section {
        padding: 2.5rem 15px;
    }
    
    .refurbished-badge-container {
        gap: 12px;
    }
    
    .process-badge {
        padding: 10px 18px;
        font-size: 0.8rem;
    }
    
    .refurbished-img-container {
        height: 300px;
    }

    .refurbished-info {
        padding: 25px 20px;
    }
}

.refurbished-cta-container {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    padding-bottom: 20px;
}

.btn-refurb-cta {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-refurb-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
}

.btn-refurb-cta i {
    font-size: 1.4rem;
}

@media (max-width: 768px) {
    .refurbished-cta-container {
        margin-top: 30px;
        padding: 0 20px;
    }
    
    .btn-refurb-cta {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 0.95rem;
    }
}

