/**
 * Dynamic 3D Coverflow "New Releases" Showcase Stylesheet
 * Hardware-Accelerated 3D Transforms, Smooth Physics & Luxury Obsidian Theme
 */

.afeem-3d-coverflow-section {
    background: radial-gradient(circle at 50% 35%, #1e2632 0%, #0d1219 100%);
    padding: 80px 0 70px;
    position: relative;
    overflow: hidden;
}

.afeem-3d-header {
    text-align: center;
    margin-bottom: 25px;
}

.afeem-3d-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #c5a880;
    margin-bottom: 8px;
}

.afeem-3d-title {
    font-family: var(--font-heading, 'Cormorant Garamond', Georgia, serif);
    font-size: 38px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #ffffff;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.afeem-3d-desc {
    font-size: 14px;
    color: #94a3b8;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.5;
}

/* 3D Stage Wrapper */
.afeem-3d-stage-wrapper {
    position: relative;
    width: 100%;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 0 10px;
    user-select: none;
}

.afeem-3d-stage {
    position: relative;
    width: 100%;
    height: 450px;
    perspective: 1200px;
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 3D Card Base */
.afeem-3d-card {
    position: absolute;
    width: 275px;
    height: 430px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    will-change: transform, opacity;
    transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1), 
                opacity 0.65s ease, 
                box-shadow 0.65s ease, 
                border-color 0.65s ease;
}

/* Center Card Glowing Shadow */
.afeem-3d-card.pos-center {
    border-color: rgba(197, 168, 128, 0.85);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55), 0 0 35px rgba(197, 168, 128, 0.3);
}

/* Badge Row */
.afeem-3d-badge-row {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
}

.badge-gold-release {
    background: linear-gradient(135deg, #c5a880, #dfc79b);
    color: #0f172a;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.afeem-3d-wishlist-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.afeem-3d-wishlist-btn:hover {
    color: #ef4444;
    transform: scale(1.1);
}

.afeem-3d-wishlist-btn .icon-active {
    display: none;
    color: #ef4444;
}

.afeem-3d-wishlist-btn.active .icon-idle {
    display: none;
}

.afeem-3d-wishlist-btn.active .icon-active {
    display: inline-block;
}

/* Image Stage */
.afeem-3d-image-box {
    height: 220px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px 25px 15px;
    background: #ffffff;
}

.afeem-3d-image-box img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.afeem-3d-card.pos-center:hover .afeem-3d-image-box img {
    transform: scale(1.06);
}

/* Card Body */
.afeem-3d-body {
    padding: 14px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: #ffffff;
    text-align: center;
    border-top: 1px solid #f1f5f9;
}

.afeem-3d-cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--rosila-accent, #007D71);
    margin-bottom: 4px;
}

.afeem-3d-card-title {
    font-family: var(--font-heading, 'Cormorant Garamond', Georgia, serif);
    font-size: 17px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 6px 0;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.afeem-3d-rating-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 11.5px;
    margin-bottom: 6px;
}

.afeem-3d-rating-row .gold-stars {
    color: #f1c40f;
    letter-spacing: 1px;
    font-size: 12px;
}

.afeem-3d-rating-row .rating-num {
    font-weight: 700;
    color: #0f172a;
}

.afeem-3d-rating-row .review-count {
    color: #64748b;
}

.afeem-3d-price-row {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.afeem-3d-price-row del {
    color: #94a3b8;
    font-size: 12px;
    margin-right: 4px;
}

.afeem-3d-price-row ins {
    text-decoration: none;
    color: #0f172a;
}

.afeem-3d-actions {
    margin-top: auto;
}

.afeem-3d-btn-add-bag {
    background: var(--rosila-accent, #007D71);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    width: 100%;
}

.afeem-3d-btn-add-bag:hover {
    background: var(--rosila-accent-hover, #00645a);
    transform: translateY(-1px);
    color: #ffffff;
}

/* Floating Navigation Arrows */
.afeem-3d-nav-btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 40;
    transition: all 0.2s ease;
}

.afeem-3d-nav-btn:hover {
    background: #c5a880;
    border-color: #c5a880;
    color: #0f172a;
    transform: translateY(-50%) scale(1.1);
}

.afeem-3d-nav-btn.prev {
    left: 20px;
}

.afeem-3d-nav-btn.next {
    right: 20px;
}

/* Dots Indicator */
.afeem-3d-dots {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    z-index: 40;
}

.afeem-3d-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
}

.afeem-3d-dots .dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.afeem-3d-dots .dot.active {
    background: #c5a880;
    width: 28px;
    border-radius: 6px;
}

/* Mobile & Tablet Adjustments */
@media (max-width: 900px) {
    .afeem-3d-card {
        width: 240px;
        height: 400px;
    }

    .afeem-3d-image-box {
        height: 190px;
    }

    .afeem-3d-title {
        font-size: 30px;
    }
}

@media (max-width: 600px) {
    .afeem-3d-nav-btn {
        display: none;
    }
}
