* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #2d1b69 25%, #1e1b4b 50%, #0f172a 100%);
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

/* ===== CAROUSEL ===== */
.carousel-section {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 20px;
    margin: 30px 20px 50px 20px;
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.3);
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 10;
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.3) 0%, rgba(45, 27, 105, 0.4) 100%);
    z-index: 5;
}

.carousel-header {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    padding: 40px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, transparent 100%);
}

.carousel-header h2 {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(90deg, #d8b4fe 0%, #93c5fd 50%, #d8b4fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    letter-spacing: -2px;
}

.carousel-header p {
    color: #c084fc;
    font-size: 18px;
    font-weight: 300;
}

.carousel-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.dot.active {
    background: #a855f7;
    transform: scale(1.3);
    border-color: #a855f7;
}

.dot:hover {
    background: rgba(168, 85, 247, 0.7);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 25;
    background: rgba(168, 85, 247, 0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
    user-select: none;
}

.carousel-arrow:hover {
    background: rgba(168, 85, 247, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.prev {
    left: 20px;
}

.carousel-arrow.next {
    right: 20px;
}

/* ===== HEADER ===== */
header {
    text-align: center;
    padding: 40px 20px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
    margin-bottom: 40px;
}

header h1 {
    font-size: 36px;
    font-weight: 900;
    background: linear-gradient(90deg, #d8b4fe 0%, #93c5fd 50%, #d8b4fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

header p {
    color: #c084fc;
    font-size: 16px;
}

/* ===== CONTROLS ===== */
.controls {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
    padding: 0 20px;
}

input, select {
    width: 100%;
    padding: 16px 20px;
    background: rgba(147, 51, 234, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    transition: all 0.3s;
}

input::placeholder {
    color: rgba(196, 181, 253, 0.4);
}

input:focus, select:focus {
    outline: none;
    border-color: rgba(168, 85, 247, 0.8);
    background: rgba(147, 51, 234, 0.2);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.results-count {
    color: #c084fc;
    font-size: 14px;
    font-weight: 600;
    padding: 0 20px;
    margin-bottom: 30px;
}

/* ===== GRID ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
    padding: 0 20px;
}

.card {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: rgba(168, 85, 247, 0.6);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.2);
}

/* ORIGINAL SECTION */
.original-section {
    background: rgba(168, 85, 247, 0.15);
    border: 2px solid rgba(168, 85, 247, 0.4);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.original-label {
    color: #d8b4fe;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}

.original-brand {
    color: #a78bfa;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 4px;
}

.original-name {
    font-size: 20px;
    font-weight: 700;
    color: #e9d5ff;
}

.divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.4), transparent);
    margin: 20px 0;
}

.dupes-label {
    color: #c084fc;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-bottom: 16px;
    display: block;
}

.dupe-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dupe-item {
    background: rgba(100, 50, 200, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 10px;
    padding: 12px;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.dupe-item:hover {
    background: rgba(100, 50, 200, 0.2);
    border-color: rgba(168, 85, 247, 0.5);
}

.dupe-info {
    flex: 1;
}

.dupe-brand {
    color: #a78bfa;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 3px;
}

.dupe-name {
    font-size: 14px;
    font-weight: 600;
    color: #f3e8ff;
    margin-bottom: 4px;
}

.dupe-price {
    display: inline-block;
    background: rgba(168, 85, 247, 0.3);
    border: 1px solid rgba(196, 181, 253, 0.5);
    padding: 4px 8px;
    border-radius: 6px;
    color: #c4b5fd;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shop-btn {
    padding: 8px 12px;
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.shop-btn:hover {
    background: linear-gradient(135deg, #9333ea 0%, #6d28d9 100%);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.4);
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #c084fc;
    grid-column: 1 / -1;
}

footer {
    border-top: 1px solid rgba(168, 85, 247, 0.2);
    padding: 30px 20px;
    text-align: center;
    color: rgba(192, 132, 252, 0.6);
    font-size: 14px;
}

@media (max-width: 768px) {
    .carousel-section {
        height: 350px;
    }

    header h1 {
        font-size: 28px;
    }

    .carousel-header h2 {
        font-size: 32px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .filter-row {
        grid-template-columns: 1fr;
    }

    .dupe-item {
        flex-direction: column;
    }
}
