/* Scoped to plugin container to avoid conflicts */
.five-elements-plugin-container {
    position: relative;
    width: 100%;
    min-height: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 0;
    overflow: hidden;
    background: #000;
    /* Fallback */
}

.earth-background-plugin {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: url('https://images.unsplash.com/photo-1614730341194-75c6074065db?q=80&w=2074&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
    filter: brightness(0.6);
}

.wheel-wrapper {
    width: 80vmin;
    height: 80vmin;
    max-width: 600px;
    max-height: 600px;
    position: relative;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.five-elements-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
}

/* Sectors */
.sector {
    stroke: #fff;
    stroke-width: 2;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.sector:hover {
    transform: scale(1.05);
    opacity: 1;
    filter: brightness(1.2);
    z-index: 10;
}

/* Labels */
.label-text {
    font-family: 'Cinzel', serif;
    font-size: 24px;
    fill: #fff;
    text-anchor: middle;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

.kim {
    fill: #ffd700;
}

.thuy {
    fill: #4fc3f7;
}

.moc {
    fill: #66bb6a;
}

.hoa {
    fill: #ff5722;
}

.tho {
    fill: #d7ccc8;
}

/* Cycles */
.gen-arrow {
    fill: none;
    stroke: #2196f3;
    stroke-width: 4;
    marker-end: url(#arrow-blue);
    opacity: 0.8;
    transition: all 0.3s;
}

#star-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 0;
    animation: drawStar 5s linear infinite;
    opacity: 0.8;
}

@keyframes drawStar {
    0% {
        stroke-dashoffset: 1000;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

/* Yin Yang Rotation */
#yin-yang {
    transform-origin: 0 0;
    animation: spin 20s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg) scale(0.8);
    }

    to {
        transform: rotate(360deg) scale(0.8);
    }
}

/* Product List Section */
.products-section {
    width: 100%;
    max-width: 1200px;
    margin-top: 50px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.5s ease-out;
    display: none;
    z-index: 1;
    position: relative;
}

.products-section.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.section-desc {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #fff;
}

.product-price {
    font-size: 1.1rem;
    color: #ffd700;
    margin-bottom: 15px;
    font-weight: bold;
}

.btn-view {
    display: inline-block;
    padding: 8px 20px;
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.btn-view:hover {
    background: #fff;
    color: #000;
}