/* Linko Configurator Wizard */
.linko-conf-wizard {
    max-width: 1100px;
    margin: 40px auto 30px;
    padding: 40px 15px 0;
    font-family: 'Libre Franklin', Arial, sans-serif;
    color: #fff;
    border-top: 1px solid #333;
    clear: both;
}

/* Progress bar */
.linko-conf-progress {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 30px;
    border-bottom: 2px solid #333;
    padding-bottom: 15px;
}
.linko-conf-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    cursor: default;
    opacity: 0.55;
    transition: opacity .3s;
    padding: 0 8px;
}
.linko-conf-progress-step.active,
.linko-conf-progress-step.completed {
    opacity: 1;
}
.linko-conf-progress-step.completed {
    cursor: pointer;
}
.linko-conf-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #444;
    color: #aaa;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    transition: all .3s;
}
.linko-conf-progress-step.active .linko-conf-step-num {
    background: #fdc432;
    color: #000;
}
.linko-conf-progress-step.completed .linko-conf-step-num {
    background: #2a7d2a;
    color: #fff;
}
.linko-conf-step-label {
    font-size: 12px;
    text-align: center;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.linko-conf-progress-step.active .linko-conf-step-label {
    color: #fdc432;
}
.linko-conf-progress-step.completed .linko-conf-step-label {
    color: #aaa;
}

/* Content */
.linko-conf-content {
    min-height: 300px;
}
.linko-conf-header {
    text-align: center;
    margin-bottom: 25px;
}
.linko-conf-title {
    font-size: 24px;
    font-weight: 700;
    color: #fdc432;
    margin: 0 0 8px;
}
.linko-conf-subtitle {
    font-size: 14px;
    color: #aaa;
    margin: 0;
}

/* Group (for beer sorts) */
.linko-conf-group {
    margin-bottom: 25px;
}
.linko-conf-group-title {
    font-size: 18px;
    font-weight: 600;
    color: #fdc432;
    margin: 0 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #333;
}

/* Card grid */
.linko-conf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

/* Product card */
.linko-conf-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
    transition: border-color .3s, box-shadow .3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.linko-conf-card:hover {
    border-color: #555;
}
.linko-conf-card.selected {
    border-color: #fdc432;
    box-shadow: 0 0 12px rgba(253, 196, 50, 0.15);
}

/* Card image */
.linko-conf-card-img {
    width: 100%;
    height: 120px;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 10px;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
}
.linko-conf-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Card info */
.linko-conf-card-info {
    flex: 1;
    margin-bottom: 10px;
}
.linko-conf-card-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.3;
}
.linko-conf-card-price {
    font-size: 15px;
    font-weight: 700;
    color: #fdc432;
}

/* Quantity controls */
.linko-conf-qty {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #444;
    border-radius: 4px;
    overflow: hidden;
}
.linko-conf-qty-btn {
    width: 36px;
    height: 36px;
    background: #222;
    color: #fff;
    border: none;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    line-height: 1;
}
.linko-conf-qty-btn:hover {
    background: #fdc432;
    color: #000;
}
.linko-conf-qty-val {
    width: 40px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: #111;
    height: 36px;
    line-height: 36px;
}

/* Navigation bar */
.linko-conf-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #333;
}
.linko-conf-running-total {
    font-size: 18px;
}
.linko-conf-total-label {
    color: #aaa;
}
.linko-conf-total-value {
    font-weight: 700;
    color: #fdc432;
    font-size: 22px;
}
.linko-conf-buttons {
    display: flex;
    gap: 10px;
}

/* Buttons */
.linko-conf-btn {
    padding: 12px 28px;
    border: 1px solid #fdc432;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: .5px;
    transition: all .3s;
    font-family: inherit;
}
.linko-conf-btn-back {
    background: transparent;
    color: #fdc432;
}
.linko-conf-btn-back:hover {
    background: rgba(253, 196, 50, 0.1);
}
.linko-conf-btn-next {
    background: #fdc432;
    color: #000;
}
.linko-conf-btn-next:hover {
    background: #e5b02e;
}
.linko-conf-btn-add {
    background: #fdc432;
    color: #000;
    font-size: 16px;
    padding: 14px 36px;
}
.linko-conf-btn-add:hover {
    background: #e5b02e;
}
.linko-conf-btn-add:disabled {
    opacity: .6;
    cursor: not-allowed;
}
.linko-conf-btn-success {
    background: #2a7d2a !important;
    border-color: #2a7d2a !important;
    color: #fff !important;
}

/* Summary table */
.linko-conf-summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}
.linko-conf-summary-table th {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid #fdc432;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #aaa;
}
.linko-conf-summary-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #333;
    font-size: 14px;
}
.linko-conf-summary-total td {
    border-top: 2px solid #fdc432;
    border-bottom: none;
    font-size: 16px;
    color: #fdc432;
    padding-top: 14px;
}

/* Error message */
.linko-conf-error {
    background: rgba(220, 50, 50, 0.15);
    border: 1px solid #dc3232;
    color: #ff6b6b;
    padding: 10px 16px;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 14px;
    animation: linko-conf-shake .4s;
}
@keyframes linko-conf-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

/* Empty state */
.linko-conf-empty {
    text-align: center;
    color: #888;
    font-size: 16px;
    padding: 40px 0;
}

/* Price label on product page */
.linko-conf-price-label {
    font-size: 14px;
    color: #aaa;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .linko-conf-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .linko-conf-progress {
        flex-wrap: wrap;
        gap: 8px;
    }
    .linko-conf-progress-step {
        flex: 0 0 auto;
        min-width: 70px;
    }
    .linko-conf-step-label {
        font-size: 10px;
    }
    .linko-conf-nav {
        flex-direction: column;
        gap: 15px;
    }
    .linko-conf-running-total {
        text-align: center;
    }
    .linko-conf-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    .linko-conf-summary-table {
        font-size: 13px;
    }
    .linko-conf-summary-table th,
    .linko-conf-summary-table td {
        padding: 8px 6px;
    }
}
@media (max-width: 480px) {
    .linko-conf-grid {
        grid-template-columns: 1fr;
    }
    .linko-conf-card {
        flex-direction: row;
        text-align: left;
        gap: 12px;
    }
    .linko-conf-card-img {
        width: 70px;
        height: 70px;
        flex-shrink: 0;
        margin-bottom: 0;
    }
    .linko-conf-card-info {
        margin-bottom: 0;
    }
}

/* Edit link in cart */
.linko-conf-edit-link {
    display: inline-block;
    font-size: 12px;
    color: #fdc432 !important;
    text-decoration: underline;
    margin-left: 8px;
    transition: opacity .3s;
}
.linko-conf-edit-link:hover {
    opacity: 0.7;
}
