/* Mix It Yourself Page Styles - Clean & Consistent */
.mix-hero {
    background: linear-gradient(135deg, var(--dark), var(--dark-light));
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mix-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(255, 235, 59, 0.1), transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(255, 107, 107, 0.1), transparent 50%),
                radial-gradient(circle at 50% 20%, rgba(78, 205, 196, 0.1), transparent 50%);
    animation: heroGlow 8s ease infinite;
    pointer-events: none;
}

@keyframes heroGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.mix-hero-content {
    position: relative;
    z-index: 2;
}

.mix-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(255, 235, 59, 0.3);
    animation: titleGlow 3s ease infinite;
}

@keyframes titleGlow {
    0%, 100% { text-shadow: 0 0 20px rgba(255, 235, 59, 0.3); }
    50% { text-shadow: 0 0 30px rgba(255, 235, 59, 0.6); }
}

.mix-subtitle {
    font-size: 1.25rem;
    color: var(--light);
    margin-bottom: 3rem;
    opacity: 0.9;
}

.mix-hero-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 235, 59, 0.2);
    transition: all 0.3s ease;
    min-width: 150px;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 235, 59, 0.1);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(255, 235, 59, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    animation: iconBounce 2s ease infinite;
    animation-delay: calc(var(--i) * 0.2s);
}

.feature-item:nth-child(1) .feature-icon { --i: 0; }
.feature-item:nth-child(2) .feature-icon { --i: 1; }
.feature-item:nth-child(3) .feature-icon { --i: 2; }

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.feature-text {
    font-size: 0.9rem;
    color: var(--light);
    font-weight: 600;
    text-align: center;
}

/* Flavor Selection */
.flavor-selection {
    padding: var(--spacing-xl) 0;
    background: var(--dark);
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--primary);
    display: block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #ff6b6b);
    border-radius: 2px;
    margin: 1rem auto 0;
}

.scroll-arrow {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem auto 0;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), #ff6b6b);
    color: var(--dark);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(255, 235, 59, 0.3);
    max-width: 250px;
}

.scroll-arrow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 235, 59, 0.4);
}

.scroll-arrow i {
    font-size: 1.2rem;
    animation: bounceArrow 2s ease infinite;
}

@keyframes bounceArrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #ff6b6b);
    border-radius: var(--radius-full);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    color: var(--light);
    font-weight: 600;
    font-size: 1.1rem;
}

.mix-workspace {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

/* Flavor Cards - Icon Based */
.flavors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.flavor-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 235, 59, 0.2);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.flavor-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(255, 235, 59, 0.2);
}

.flavor-card.selected {
    background: linear-gradient(135deg, rgba(255, 235, 59, 0.1), rgba(255, 107, 107, 0.1));
    border-color: var(--primary);
}

.flavor-icon-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.flavor-icon {
    font-size: 2.5rem;
    z-index: 2;
    position: relative;
    animation: iconFloat 3s ease infinite;
}

.flavor-card:nth-child(1) .flavor-icon { animation-delay: 0s; }
.flavor-card:nth-child(2) .flavor-icon { animation-delay: 0.5s; }
.flavor-card:nth-child(3) .flavor-icon { animation-delay: 1s; }
.flavor-card:nth-child(4) .flavor-icon { animation-delay: 1.5s; }
.flavor-card:nth-child(5) .flavor-icon { animation-delay: 2s; }
.flavor-card:nth-child(6) .flavor-icon { animation-delay: 2.5s; }

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.flavor-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
    animation: glowPulse 2s ease infinite;
}

.blueberry-glow { background: radial-gradient(circle, #6366f1, transparent); }
.apple-glow { background: radial-gradient(circle, #10b981, transparent); }
.strawberry-glow { background: radial-gradient(circle, #ef4444, transparent); }
.lemon-glow { background: radial-gradient(circle, #f59e0b, transparent); }
.mix-glow { background: radial-gradient(circle, var(--primary), transparent); }
.mystery-glow { background: radial-gradient(circle, #a855f7, transparent); }

@keyframes glowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.6; }
}

.flavor-info {
    flex: 1;
}

.flavor-info h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.flavor-info p {
    color: var(--light);
    opacity: 0.9;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.flavor-stats {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.stat {
    font-size: 0.75rem;
    color: var(--light);
    opacity: 0.7;
}

.flavor-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #ff6b6b);
    border: none;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.flavor-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(255, 235, 59, 0.4);
}

.flavor-card.selected .flavor-btn {
    background: linear-gradient(135deg, #ff6b6b, var(--primary));
}

/* Selection Panel */
.selection-panel {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 235, 59, 0.2);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    position: sticky;
    top: 2rem;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.panel-header h3 {
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.clear-all {
    background: transparent;
    border: 1px solid rgba(255, 107, 107, 0.5);
    color: #ff6b6b;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.clear-all:hover {
    background: rgba(255, 107, 107, 0.1);
    border-color: #ff6b6b;
}

.selected-flavors-container {
    min-height: 150px;
    margin-bottom: 1.5rem;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 150px;
    color: var(--light);
    opacity: 0.6;
    text-align: center;
}

.empty-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.selected-flavor-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 235, 59, 0.2);
    border-radius: var(--radius-lg);
    padding: 0.8rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateX(-10px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

.selected-flavor-icon {
    font-size: 1.5rem;
}

.selected-flavor-info {
    flex: 1;
}

.selected-flavor-name {
    color: var(--light);
    font-weight: 600;
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
}

.selected-flavor-desc {
    color: var(--light);
    opacity: 0.7;
    font-size: 0.8rem;
}

.remove-flavor {
    background: transparent;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.3rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.remove-flavor:hover {
    background: rgba(255, 107, 107, 0.1);
}

/* Mix Actions */
.mix-actions {
    border-top: 1px solid rgba(255, 235, 59, 0.2);
    padding-top: 1.5rem;
}

.mix-summary {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.summary-item .label {
    color: var(--light);
    opacity: 0.8;
}

.summary-item .value {
    color: var(--primary);
    font-weight: 700;
}

.create-mix-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem;
    background: linear-gradient(135deg, var(--primary), #ff6b6b);
    border: none;
    border-radius: var(--radius-lg);
    color: var(--dark);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.create-mix-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 235, 59, 0.4);
}

.create-mix-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .mix-workspace {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 800px;
    }
    
    .selection-panel {
        position: relative;
        top: 0;
        order: -1;
    }
    
    .flavors-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .mix-workspace {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .selection-panel {
        position: relative;
        top: 0;
        order: -1;
        margin-bottom: 2rem;
    }
    
    .flavors-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .flavor-card {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        border-radius: 16px;
    }
    
    .flavor-icon-wrapper {
        width: 70px;
        height: 70px;
        margin: 0 auto;
    }
    
    .flavor-icon {
        font-size: 2.5rem;
    }
    
    .flavor-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
    
    .flavor-info h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .flavor-info p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .flavor-stats {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
        margin-top: 0.5rem;
    }
    
    .stat {
        font-size: 0.85rem;
        padding: 0.25rem 0.5rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 12px;
    }
    
    .mix-hero {
        padding: 4rem 0 2rem;
    }
    
    .mix-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .mix-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .mix-hero-features {
        gap: 1rem;
    }
    
    .feature-item {
        padding: 1rem;
        min-width: 120px;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    .feature-text {
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .scroll-arrow {
        display: flex;
        margin: 1.5rem auto 1rem;
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        max-width: 200px;
    }
    
    .scroll-arrow i {
        font-size: 1rem;
    }
    
    .section-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .mix-progress {
        margin-bottom: 2rem;
    }
    
    .progress-text {
        font-size: 1rem;
    }
}

.total-count {
    font-size: 0.875rem;
    color: var(--light);
    margin-bottom: 0.75rem;
}

.total-count span:last-child {
    color: var(--primary);
    font-weight: 600;
}

.add-to-cart-btn {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: var(--dark);
    border: none;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
}

.add-to-cart-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.add-to-cart-btn:disabled {
    background: var(--gray);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.add-to-cart-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Responsive Design for Mix It Yourself */
@media (max-width: 768px) {
    .selected-flavors-section {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        width: auto;
        max-height: 300px;
    }
    
    .mix-title {
        font-size: 2.5rem;
    }
    
    .mix-subtitle {
        font-size: 1.125rem;
    }
    
    .flavors-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .flavor-card {
        padding: 1.5rem;
    }
    
    .flavor-image {
        width: 60px;
        height: 60px;
    }
    
    .flavor-card h3 {
        font-size: 1.125rem;
    }
    
    .flavor-card p {
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .flavor-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .selected-flavor-card {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .selected-flavor-image {
        width: 35px;
        height: 35px;
    }
    
    .selected-flavor-info h4 {
        font-size: 0.75rem;
    }
    
    .selected-flavor-info p {
        font-size: 0.5rem;
    }
    
    .mix-summary {
        padding: 0.75rem;
    }
    
    .mix-summary h3 {
        font-size: 0.875rem;
    }
    
    .total-count {
        font-size: 0.75rem;
    }
    
    .add-to-cart-btn {
        font-size: 0.75rem;
        padding: 0.625rem 1rem;
    }
}

@media (max-width: 480px) {
    .mix-workspace {
        padding: 0 0.5rem;
        gap: 1.5rem;
    }
    
    .flavors-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .flavor-card {
        padding: 1.2rem;
        position: relative;
    }
    
    .flavor-icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .flavor-icon {
        font-size: 2.2rem;
    }
    
    .flavor-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        top: 0.8rem;
        right: 0.8rem;
    }
    
    .flavor-info h3 {
        font-size: 1.1rem;
    }
    
    .flavor-info p {
        font-size: 0.9rem;
    }
    
    .flavor-stats {
        gap: 0.5rem;
    }
    
    .stat {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
    }
    
    .selection-panel {
        padding: 1.2rem;
        border-radius: 16px;
    }
    
    .panel-header h3 {
        font-size: 1.1rem;
    }
    
    .clear-all {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .selected-flavor-item {
        padding: 0.6rem;
        border-radius: 12px;
    }
    
    .selected-flavor-icon {
        font-size: 1.3rem;
    }
    
    .selected-flavor-name {
        font-size: 0.85rem;
    }
    
    .selected-flavor-desc {
        font-size: 0.75rem;
    }
    
    .mix-summary {
        gap: 0.6rem;
    }
    
    .summary-item {
        font-size: 0.85rem;
    }
    
    .create-mix-btn {
        padding: 0.7rem;
        font-size: 0.9rem;
        border-radius: 12px;
    }
    
    .mix-hero {
        padding: 3rem 0 1.5rem;
    }
    
    .mix-title {
        font-size: 2rem;
    }
    
    .mix-subtitle {
        font-size: 1rem;
    }
    
    .mix-hero-features {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .feature-item {
        padding: 0.8rem;
        min-width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .scroll-arrow {
        display: flex;
        margin: 1rem auto 0.8rem;
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
        max-width: 180px;
    }
    
    .scroll-arrow i {
        font-size: 0.9rem;
    }
    
    .section-description {
        font-size: 0.95rem;
    }
    
    .progress-bar {
        height: 6px;
    }
    
    .progress-text {
        font-size: 0.9rem;
    }
}

/* Clean Mix It Button for Product Pages */
.mix-it-btn {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53, #feca57, #48dbfb, #ff9ff3, #a8e6cf);
    background-size: 300% 300%;
    animation: rainbowShift 4s ease infinite;
    color: white;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

@keyframes rainbowShift {
    0% { background-position: 0% 50%; }
    25% { background-position: 25% 50%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 75% 50%; }
    100% { background-position: 0% 50%; }
}

.mix-it-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.mix-it-btn:hover::before {
    left: 100%;
}

.mix-it-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.mix-it-btn i {
    font-size: 0.875rem;
}

/* Responsive Design for Mix It Yourself */
@media (max-width: 768px) {
    .mix-title {
        font-size: 2.5rem;
    }
    
    .mix-subtitle {
        font-size: 1.125rem;
    }
    
    .flavors-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .flavor-card {
        padding: 1.5rem;
    }
    
    .flavor-image {
        width: 80px;
        height: 80px;
    }
    
    .mix-summary {
        padding: 1.5rem;
    }
    
    .mix-summary h3 {
        font-size: 1.5rem;
    }
    
    .flavor-btn {
        width: 35px;
        height: 35px;
        font-size: 1.125rem;
    }
    
    .flavor-count {
        font-size: 1.125rem;
    }
}

@media (max-width: 576px) {
    .mix-hero {
        padding: 6rem 0 3rem;
    }
    
    .mix-title {
        font-size: 2rem;
    }
    
    .flavors-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .flavor-controls {
        gap: 0.75rem;
    }
    
    .flavor-btn {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .add-to-cart-btn {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }
    
    .mix-it-btn {
        font-size: 0.875rem;
        padding: 0.75rem 1.25rem;
    }
}
