/* ========================================
   MULTI-STEP RING BUILDER STYLES
   ======================================== */

/* Step Progress Indicator */
.step-progress-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 40px 0;
    /* margin-bottom: 40px; */
    border-bottom: 1px solid #e9ecef;
}

.step-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 0 20px;
}

.step-progress::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 20%;
    right: 20%;
    height: 3px;
    background: #e9ecef;
    z-index: 0;
}

.step-progress-line {
    position: absolute;
    top: 30px;
    left: 20%;
    height: 3px;
    background: linear-gradient(90deg, #d4af37 0%, #f4e5c3 100%);
    z-index: 1;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-item.disabled {
    cursor: not-allowed;
    /* opacity: 0.5; */
}

.step-circle {
    width: 100px;
    /* height: 70px; */
    border-radius: 10px;
    background: #ffffff;
    border: 4px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: #adb5bd;
    margin-bottom: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.step-item.active .step-circle {
    background: var(--gold);
    /* border-color: #d4af37; */
    color: white;
    transform: scale(1.1);
    /* box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3); */
}

.step-item.completed .step-circle {
    background: #120a18;
    border-color: #120a18;
    color: #ffffff;
}

.step-circle i {
    font-size: 28px;
}

.step-label {
    text-align: center;
    /* max-width: 160px; */
}

.step-number {
    font-size: 13px;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    width: auto;
    height: auto;
    background: transparent;
}

.step-title {
    font-size: 18px;
    font-weight: 700;
    color: #212529;
    line-height: 1.3;
    margin: 0;
}

.step-item.active .step-number,
.step-item.active .step-title {
    /* color: #d4af37; */
}

.step-item.completed .step-number,
.step-item.completed .step-title {
    /* color: #28a745; */
}

/* Diamond/Ring Cards for Listing Pages */
.builder-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    /* margin-top: 30px; */
}

.builder-product-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid transparent;
}

.builder-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: #d4af37;
}

.builder-product-image {
    position: relative;
    /* padding-top: 100%; */
    /* background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%); */
    overflow: hidden;
}

.builder-product-image img {
    /* position: absolute; */
    /* top: 50%; */
    /* left: 50%; */
    /* transform: translate(-50%, -50%); */
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.builder-product-card:hover .builder-product-image img {
    /* transform: translate(-50%, -50%) scale(1.1); */
}

.builder-product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gold);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.builder-product-info {
    padding: 20px;
}

.builder-product-category {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}

.builder-product-title {
    font-size: 18px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 12px;
    line-height: 1.3;
}

.builder-product-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.builder-spec-item {
    display: flex;
    flex-direction: column;
}

.builder-spec-label {
    font-size: 11px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.builder-spec-value {
    font-size: 14px;
    font-weight: 600;
    color: #212529;
}

.builder-product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
    margin-top: 10px;
}

/* Detail Page Layout */
.builder-detail-section {
    padding: 60px 0;
}

.builder-detail-gallery {
    position: sticky;
    top: 100px;
    width: 100%;
}

.builder-main-image {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    /* padding: 40px; */
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
    /* display: flex; */
    /* align-items: center; */
    /* justify-content: center; */
    width: 100%;
}

.builder-main-image img {
    width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.builder-thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.builder-thumbnail {
    aspect-ratio: 1;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.builder-thumbnail:hover,
.builder-thumbnail.active {
    border-color: #d4af37;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

.builder-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.builder-detail-info {
    padding-left: 20px;
}

.builder-detail-category {
    font-size: 13px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    font-weight: 600;
}

.builder-detail-title {
    font-size: 21px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 10px;
    line-height: 1.2;
}

.builder-detail-price {
    font-size: 27px;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 5px;
}

.builder-detail-description {
    /* font-size: 16px; */
    /* line-height: 1.8; */
    /* color: #495057; */
    /* margin-bottom: 30px; */
}

/* Specifications Grid */
.builder-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    background: #ebebeb;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 0;
}

.builder-spec-detail {
    display: flex;
    flex-direction: column;
}

.builder-spec-detail-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    font-weight: 600;
}

.builder-spec-detail-value {
    font-size: 14px;
    font-weight: 600;
    color: #212529;
}

/* Action Buttons */
.builder-actions {
    display: flex;
    gap: 16px;
    margin-top: 40px;
}

.btn-choose-diamond,
.btn-choose-ring {
    /* flex: 1; */
    background: #120a18;
    color: #ffffff;
    border: none;
    padding: 18px 32px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-choose-diamond:hover,
.btn-choose-ring:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-enquiry {
    /* flex: 1; */
    background: #ffffff;
    color: #212529;
    border: 2px solid #212529;
    padding: 18px 32px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-enquiry:hover {
    background: #212529;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Complete Ring Summary */
.complete-summary-section {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
}

.summary-header {
    font-size: 20px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #dee2e6;
}

.summary-block {
    margin-bottom: 30px;
}

.summary-block-title {
    font-size: 18px;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-block-title i {
    font-size: 22px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.summary-item {
    display: flex;
    justify-content: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
    gap: 20px;
}

.summary-item-label {
    font-size: 14px;
    color: #6c757d;
    font-weight: 600;
}

.summary-item-value {
    font-size: 14px;
    color: #212529;
    font-weight: 700;
}

.summary-edit-btn {
    background: none;
    border: none;
    color: #d4af37;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    margin-left: 10px;
    transition: color 0.3s ease;
}

.summary-edit-btn:hover {
    color: #b8941f;
}

/* Price Summary */
.price-summary {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #e9ecef;
}

.price-label {
    font-size: 16px;
    color: #495057;
    font-weight: 600;
}

.price-value {
    font-size: 16px;
    color: #212529;
    font-weight: 700;
}

.price-total {
    display: flex;
    justify-content: space-between;
    padding: 24px 0 0;
    margin-top: 16px;
    border-top: 3px solid #d4af37;
}

.price-total .price-label {
    font-size: 22px;
    color: #212529;
    font-weight: 700;
}

.price-total .price-value {
    font-size: 28px;
    color: #d4af37;
    font-weight: 700;
}

/* Ring Size Selector */
.ring-size-selector {
    margin: 30px 0;
}

.ring-size-label {
    font-size: 14px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ring-size-select {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ring-size-select:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Certificates Display */
.certificates-section {
    margin-top: 40px;
}

.certificates-title {
    font-size: 20px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 20px;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.certificate-item {
    text-align: center;
    padding: 15px;
    background: #ffffff;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.certificate-item:hover {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.certificate-logo {
    width: 45px;
    height: 45px;
    margin: 0 auto 12px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #d4af37;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.certificate-name {
    font-size: 13px;
    font-weight: 600;
    color: #212529;
}

/* Selected Item Sticky Header */
.selected-item-header {
    background: #120a18;
    color: #ffffff;
    padding: 20px 0;
    /* margin-bottom: 40px; */
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.selected-item-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.selected-item-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.selected-item-image {
    width: 60px;
    height: 60px;
    background: #ffffff;
    border-radius: 8px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.selected-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.selected-item-details h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: white;
}

.selected-item-details p {
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
}

.selected-item-price {
    font-size: 24px;
    font-weight: 700;
    color: #d4af37;
}

/* Responsive Design */
@media (max-width: 992px) {
    .builder-detail-info {
        padding-left: 0;
        margin-top: 40px;
    }

    .builder-detail-gallery {
        position: relative;
        top: 0;
    }

    .builder-specs-grid {
        grid-template-columns: 1fr;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .step-progress {
        padding: 0 10px;
    }

    .step-circle {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .step-title {
        font-size: 13px;
    }

    .step-number {
        font-size: 10px;
    }

    .builder-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .builder-detail-title {
        font-size: 28px;
    }

    .builder-detail-price {
        font-size: 32px;
    }

    .builder-actions {
        flex-direction: column;
    }

    .selected-item-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .selected-item-info {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .step-progress::before {
        display: none;
    }

    .step-progress-line {
        display: none;
    }

    .builder-thumbnail-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .builder-specs-grid {
        padding: 20px;
        gap: 16px;
    }
}