/* mgk-fabric.css */

.mgk-fabric-configurator {
    margin-bottom: 30px;
}

.mgk-step-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.mgk-fabric-step {
    margin-bottom: 50px;
}

.mgk-fabric-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.mgk-fabric-item {
    border: 2px solid #eaeaea;
    border-radius: 8px;
    padding: 10px;
    width: calc(33.333% - 10px);
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.mgk-fabric-item:hover {
    border-color: #d0d0d0;
}

.mgk-fabric-item.selected {
    border-color: #b08c5d;
    background-color: #fcf9f5;
}

.mgk-fabric-image {
    width: 100%;
    height: 150px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 6px;
    margin-bottom: 10px;
    position: relative;
    background-color: #fcfcfc;
}

.mgk-fabric-check, .mgk-color-check {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(176, 140, 93, 0.9);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.mgk-fabric-item.selected .mgk-fabric-check,
.mgk-color-item.selected .mgk-color-check {
    opacity: 1;
}

.mgk-fabric-item.mgk-no-image {
    position: relative;
    justify-content: center;
}

.mgk-fabric-item.mgk-no-image .mgk-fabric-check {
    left: auto;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.mgk-fabric-info h4 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    color: #333;
}

.mgk-fabric-features {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
    font-size: 0.85rem;
    color: #555;
    flex-grow: 1;
}

.mgk-fabric-features li {
    margin-bottom: 4px;
    display: flex;
    align-items: flex-start;
}

.mgk-fabric-features li i {
    color: #b08c5d;
    margin-right: 6px;
    margin-top: 3px;
    font-size: 0.8rem;
}

.mgk-fabric-price {
    font-size: 0.9rem;
    color: #999;
}

/* Colors */
.mgk-color-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.mgk-color-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    width: 120px;
}

.mgk-color-swatch {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid #eaeaea;
    margin-bottom: 8px;
    position: relative;
    transition: all 0.2s;
}

.mgk-color-item:hover .mgk-color-swatch {
    border-color: #d0d0d0;
}

.mgk-color-item.selected .mgk-color-swatch {
    border-color: #b08c5d;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #b08c5d;
}

.mgk-color-name {
    font-size: 0.8rem;
    color: #555;
    text-align: center;
}

/* Summary Row styling specific to theme */
.ifil-pdp-config__summary-row.mgk-custom-summary {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eaeaea;
}
.ifil-pdp-config__summary-row.mgk-custom-summary .label {
    color: #777;
}
.ifil-pdp-config__summary-row.mgk-custom-summary .value {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    text-align: right;
}
.mgk-summary-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-size: cover;
    border: 1px solid #ddd;
}
.mgk-summary-btn {
    background-color: transparent;
    color: #1a1a1a;
    border: 1px solid #1a1a1a;
    padding: 6px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}
.mgk-summary-btn:hover {
    background-color: #1a1a1a;
    color: #fff;
}

/* Corner Specific */
.mgk-corner-list {
    justify-content: flex-start;
}
.mgk-corner-item {
    width: calc(50% - 10px);
    max-width: 300px;
}
.mgk-corner-item .mgk-fabric-image {
    height: 200px;
    background-color: #f9f9f9;
}

/* Bonell Specific */
.mgk-bonell-container {
    background: #fcfcfc;
    border: 1px solid #eaeaea;
    padding: 15px;
    border-radius: 8px;
}
.mgk-bonell-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}
.mgk-bonell-label input {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    accent-color: #b08c5d;
}
.mgk-bonell-price {
    margin-left: 10px;
    color: #b08c5d;
    font-size: 1rem;
}
.mgk-bonell-desc {
    font-size: 14px;
    color: #666;
    margin: 5px 0 0 0;
    line-height: 1.4;
}

/* New layout styles */
.mgk-full-width-section {
    width: 100%;
    margin-top: 40px;
    margin-bottom: 40px;
}

.mgk-section-title {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 10px;
}

@media (max-width: 768px) {
    .mgk-fabric-item {
        width: calc(50% - 10px);
    }
}
@media (max-width: 480px) {
    .mgk-fabric-item {
        width: 100%;
    }
    .mgk-corner-item {
        width: 100%;
    }
}

/* Error Blinking Animation */
@keyframes mgkBlinkRed {
    0% { box-shadow: none; border-color: inherit; }
    25% { box-shadow: 0 0 12px rgba(255, 60, 60, 0.4); border-color: rgba(255, 60, 60, 0.8); }
    50% { box-shadow: none; border-color: inherit; }
    75% { box-shadow: 0 0 12px rgba(255, 60, 60, 0.4); border-color: rgba(255, 60, 60, 0.8); }
    100% { box-shadow: none; border-color: inherit; }
}

.mgk-fabric-item.mgk-error-blink,
.mgk-color-item.mgk-error-blink .mgk-color-swatch,
.mgk-corner-item.mgk-error-blink {
    animation: mgkBlinkRed 2s ease-in-out;
}
