/* assets/css/ring-builder.css */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600&display=swap');

#cjrb-builder { 
    max-width: 1200px; margin: 0 auto; 
    font-family: 'Lato', sans-serif; color: #222; box-sizing: border-box; padding: 20px 10px;
}

/* --- NAVIGATOR (Σωστό: Τετραγωνισμένο & Καθαρό) --- */
#cjrb-steps { 
    display: flex; 
    border: 1px solid #e0e0e0; 
    border-radius: 4px; 
    padding: 4px; 
    background: #fff; 
    margin-bottom: 50px; 
}
.cjrb-step { 
    flex: 1; padding: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    gap: 10px; opacity: 0.6; transition: 0.2s; 
    border-radius: 4px; 
    background: transparent;
}
.cjrb-step.active { 
    background: #f4f4f4; opacity: 1; font-weight: 700; color: #000; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.cjrb-step-icon svg { width: 22px; height: 22px; stroke: #333; stroke-width: 1.5; }
.cjrb-step-label { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }

/* --- 2 COLUMN LAYOUT (Σωστό: Χωρίς κενά) --- */
.cjrb-columns-wrapper {
    display: flex; gap: 60px; margin-bottom: 50px; align-items: flex-start;
}
.cjrb-col-left { width: 35%; display: flex; flex-direction: column; gap: 40px; }
.cjrb-col-right { width: 65%; display: flex; flex-direction: column; gap: 40px; }

.cjrb-filter-block { width: 100%; }
.cjrb-label { 
    display: block; font-size: 13px; font-weight: 700; margin-bottom: 12px; 
    text-transform: uppercase; letter-spacing: 0.5px; color: #444; border-bottom: 1px solid #eee; padding-bottom: 5px;
}

/* FILTERS UI */
.cjrb-filter-list { display: flex; flex-wrap: wrap; gap: 8px; }

.cjrb-box-filter {
    width: 80px; height: 75px;
    border: 1px solid #e0e0e0; border-radius: 4px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    cursor: pointer; background: #fff; transition: all 0.2s;
}
.cjrb-box-filter:hover { border-color: #000; }
.cjrb-box-filter.active { border-color: #000; background: #000; color: #fff; }
.cjrb-box-filter.active svg { stroke: #fff; }

.cjrb-box-icon { width: 40px; height: 35px; margin-bottom: 4px; display: flex; justify-content: center; align-items: center; }
.cjrb-box-icon svg { width: 100%; height: 100%; stroke: #333; stroke-width: 1.2; fill: none; } 

.cjrb-box-label { font-size: 8px; text-transform: uppercase; font-weight: 700; text-align: center; }

/* Metal Circles */
.cjrb-metal-circle { width: 26px; height: 26px; border-radius: 50%; margin-bottom: 6px; border: 1px solid rgba(0,0,0,0.1); }

/* Slider */
.cjrb-slider-container { position: relative; width: 100%; height: 50px; padding-top: 15px; }
.slider-track { width: 100%; height: 3px; background: #ddd; position: absolute; top: 22px; }
.slider-range { height: 3px; background: #000; position: absolute; top: 22px; }
.range-input { position: absolute; top: 15px; left: 0; width: 100%; -webkit-appearance: none; background: none; pointer-events: none; margin:0; }
.range-input::-webkit-slider-thumb { height: 16px; width: 16px; border-radius: 50%; background: #fff; border: 4px solid #000; pointer-events: auto; cursor: pointer; -webkit-appearance: none; position: relative; z-index: 2;}
.range-input::-moz-range-thumb { height: 16px; width: 16px; border-radius: 50%; background: #fff; border: 4px solid #000; pointer-events: auto; cursor: pointer; border: none; }
.cjrb-price-values { display: flex; justify-content: space-between; margin-top: 35px; font-size: 13px; font-weight: 700; }

/* Grid Results & Badges */
.cjrb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.cjrb-card { border: 1px solid #eee; padding: 15px; text-align: center; border-radius: 4px; transition: 0.3s; background: #fff; position: relative; }
.cjrb-card:hover { box-shadow: 0 10px 20px rgba(0,0,0,0.08); border-color: #000; }

.cjrb-card-image-wrap { position: relative; margin-bottom: 10px; }
.cjrb-card img { max-width: 100%; height: auto; }

/* SALE BADGE CSS (ΝΕΟ) */
.cjrb-badge-sale {
    position: absolute; top: 0; right: 0;
    background: #e74c3c; color: #fff;
    font-size: 10px; font-weight: 700; padding: 3px 6px;
    border-radius: 2px; z-index: 2;
}

.cjrb-card-title { font-size: 14px; margin: 10px 0; font-family: 'Cinzel', serif; min-height: 40px; display: flex; align-items: center; justify-content: center; }
.cjrb-card-price { font-weight: 700; font-size: 15px; margin-bottom: 15px; color: #b76e79; }
.cjrb-btn-select { width: 100%; padding: 10px; background: #000; color: #fff; border: none; text-transform: uppercase; font-size: 11px; cursor: pointer; letter-spacing: 1px; transition: 0.2s; }
.cjrb-btn-select:hover { background: #333; }

/* Mobile */
@media(max-width: 800px) {
    .cjrb-columns-wrapper { flex-direction: column; gap: 30px; }
    .cjrb-col-left, .cjrb-col-right { width: 100%; }
}


.cjrb-badge-sale { position: absolute; top:0; right:0; background:#e74c3c; color:#fff; font-size:10px; font-weight:700; padding:3px 6px; z-index:2; }
.cjrb-card-image-wrap { position:relative; margin-bottom:10px; cursor:pointer; }

/* --- DETAIL VIEW STYLES --- */
.cjrb-detail-layout { display: flex; gap: 40px; }
.cjrb-detail-left { width: 55%; }
.cjrb-detail-right { width: 45%; }

.cjrb-main-img-box { background: #f9f9f9; padding: 20px; text-align: center; margin-bottom: 15px; border-radius: 4px; }
.cjrb-main-img-box img { max-height: 450px; width: auto; max-width: 100%; }
.cjrb-detail-thumbs { display: flex; gap: 10px; overflow-x: auto; }
.cjrb-detail-thumbs img { width: 70px; height: 70px; object-fit: cover; border: 1px solid #eee; cursor: pointer; }
.cjrb-detail-thumbs img:hover { border-color: #000; }

.cjrb-detail-title { font-family: 'Lato', sans-serif; font-size: 22px; margin: 0 0 5px; font-weight: 400; }
.detail-sale-tag { background: #e74c3c; color: #fff; font-size: 12px; padding: 2px 6px; border-radius: 2px; vertical-align: middle; margin-left: 10px; }
.cjrb-detail-price-box { display: flex; align-items: center; gap: 15px; margin-bottom: 5px; }
.cjrb-current-price { font-size: 20px; font-weight: 700; color: #000; }
.cjrb-old-price { text-decoration: line-through; color: #999; font-size: 14px; }
.cjrb-detail-subtitle { font-size: 12px; color: #666; margin-bottom: 25px; border-bottom: 1px solid #eee; padding-bottom: 15px; }

.cjrb-info-row {
    display: flex;
    justify-content: space-between; /* Το Label αριστερά, τα υπόλοιπα δεξιά */
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}
.cjrb-info-row label { font-size: 13px; color: #666; }
.cjrb-info-val { font-weight: 700; font-size: 14px; }
.cjrb-info-icon svg { width: 30px; height: auto; stroke-width: 1.5; }
.cjrb-info-icon.small-icon svg { width: 20px; }

.cjrb-info-row .cjrb-info-val {
    margin-left: auto; /* Σπρώχνει προς τα δεξιά */
    margin-right: 10px; /* Κενό ανάμεσα σε κείμενο και εικονίδιο */
}

.cjrb-metal-selector-label { margin-top: 20px; margin-bottom: 10px; font-size: 13px; font-weight: 700; }
.cjrb-metal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 8px; margin-bottom: 30px; }
.cjrb-metal-box { 
    border: 1px solid #ddd; border-radius: 3px; padding: 8px 4px; 
    text-align: center; cursor: pointer; transition: 0.2s; 
}
.cjrb-metal-box:hover, .cjrb-metal-box.active { border-color: #000; }
.cjrb-metal-box .metal-dot { width: 20px; height: 20px; border-radius: 50%; margin: 0 auto 5px; border: 1px solid #eee; }
.cjrb-metal-box span { font-size: 10px; text-transform: uppercase; display: block; line-height: 1.1; }

.cjrb-btn-block { 
    display: block; width: 100%; background: #fff; border: 1px solid #000; color: #000; 
    padding: 15px; text-transform: uppercase; font-weight: 700; cursor: pointer; margin-bottom: 30px; 
}
.cjrb-btn-block:hover { background: #000; color: #fff; }

.cjrb-specs-header { font-weight: 700; border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 10px; }
.cjrb-spec-row { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; border-bottom: 1px solid #f9f9f9; }

@media(max-width: 900px) {
    .cjrb-detail-layout { flex-direction: column; }
    .cjrb-detail-left, .cjrb-detail-right { width: 100%; }
}

/* CSS FIX FOR DETAIL ALIGNMENT */
.cjrb-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}
.cjrb-row-content {
    display: flex;
    align-items: center;
    gap: 10px; /* Κενό ανάμεσα σε κείμενο και εικονίδιο */
}
.cjrb-row-icon svg {
    width: 24px;
    height: auto;
    display: block;
}
.cjrb-row-content span {
    font-weight: 700;
    font-size: 14px;
}

/* Center metal color circle inside metal box (detail + filters) */
.cjrb-metal-box .cjrb-metal-circle {
    display: block;
    margin: 0 auto 6px; /* κέντρο οριζόντια + λίγο κενό πάνω από το label */
}


/* --- STEP 2: DIAMOND FILTERS (Nivoda Style) --- */

/* Filter Row Layout */
.cjrb-diamond-filters-grid {
    display: grid;
    grid-template-columns: 30% 70%; /* Shape Left, Sliders Right */
    gap: 40px;
    margin-bottom: 40px;
}

/* Right side grid for sliders */
.cjrb-diamond-sliders-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 columns of sliders */
    gap: 30px;
}

/* Range Slider Style (Nivoda thin lines) */
.cjrb-range-filter { margin-bottom: 20px; }
.cjrb-range-label { font-size: 12px; font-weight: 700; text-transform: uppercase; margin-bottom: 10px; display: block; }
.cjrb-range-inputs { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.cjrb-range-input-box { 
    border: 1px solid #ddd; padding: 5px 10px; font-size: 13px; width: 60px; text-align: center; border-radius: 4px; 
}

/* Visual Track for Non-numeric ranges (Color/Clarity) */
.cjrb-step-slider {
    display: flex; justify-content: space-between; position: relative; padding-top: 10px;
}
.cjrb-step-point {
    font-size: 10px; color: #999; cursor: pointer; text-align: center; width: 100%; position: relative;
}
.cjrb-step-point::before {
    content: ''; display: block; width: 6px; height: 6px; background: #ddd; border-radius: 50%; margin: 0 auto 5px;
}
.cjrb-step-point.active { color: #000; font-weight: 700; }
.cjrb-step-point.active::before { background: #000; transform: scale(1.5); }
.cjrb-step-line {
    position: absolute; top: 12px; left: 0; right: 0; height: 2px; background: #eee; z-index: -1;
}

/* Diamond Grid Card */
.cjrb-diamond-card {
    display: flex; 
    border: 1px solid #eee; 
    padding: 10px; 
    align-items: center; 
    margin-bottom: 10px; /* List view style */
    transition: 0.2s;
}
.cjrb-diamond-card:hover { border-color: #000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }

.cjrb-diamond-img { width: 80px; height: 80px; object-fit: contain; margin-right: 20px; }
.cjrb-diamond-info { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; font-size: 13px; }
.cjrb-diamond-price { font-weight: 700; color: #b76e79; font-size: 15px; text-align: right; min-width: 100px; }
.cjrb-diamond-btn { 
    background: #000; color: #fff; border: none; padding: 8px 15px; 
    text-transform: uppercase; font-size: 11px; cursor: pointer; margin-left: 20px;
}

/* Info Label/Value */
.d-spec-item { display: flex; flex-direction: column; }
.d-spec-label { font-size: 10px; color: #999; text-transform: uppercase; }
.d-spec-val { font-weight: 600; }

.d-spec-help {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

/* CARAT dual slider */

.cjrb-carat-block {
    margin-bottom: 16px;
}

.cjrb-carat-slider-wrap {
    position: relative;
    margin: 6px 0 4px;
    height: 24px;
}

/* Βάση όλων των sliders μέσα στο block */
.cjrb-carat-slider-wrap .cjrb-carat {
    position: absolute;
    left: 0;
    right: 0;
    top: 10px;              /* στο κέντρο του wrapper */
    width: 100%;
    appearance: none;
    height: 4px;
    border-radius: 999px;
    background: transparent; /* default: καθαρό */
    pointer-events: none;    /* events μόνο μέσω του thumb */
}

/* Το min slider ζωγραφίζει το track */
.cjrb-carat-slider-wrap .cjrb-carat-min {
    background: #e1e1e1;
    pointer-events: auto;
}

/* Thumb styling (WebKit) */
.cjrb-carat::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #d4af37;
    border: 1px solid #b08927;
    cursor: pointer;
    pointer-events: auto; /* για να πιάνεται παρότι το input μπορεί να έχει pointer-events:none */
}

/* Thumb styling (Firefox) */
.cjrb-carat::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #d4af37;
    border: 1px solid #b08927;
    cursor: pointer;
}

/* Track override για Firefox */
.cjrb-carat::-moz-range-track {
    height: 4px;
    border-radius: 999px;
    background: transparent;
}
.cjrb-carat-min::-moz-range-track {
    background: #e1e1e1;
}

.cjrb-carat-values {
    font-size: 12px;
    color: #777;
}

/* κοινό wrapper για grids με overlay spinner */
.cjrb-grid-shell {
    position: relative;
}

/* overlay */
.cjrb-grid-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.75);
    z-index: 10;
}

.cjrb-hidden {
    display: none;
}

/* λίγο dim στο grid όσο φορτώνει */
.cjrb-grid-loading-dim {
    opacity: 0.4;
    pointer-events: none;
}

/* ίδιος spinner και για step1/step2 */
.cjrb-spinner {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid #e5e5e5;
    border-top-color: #d4af37;
    animation: cjrb-spin 0.7s linear infinite;
}

@keyframes cjrb-spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- Generic loading spinner for grids (step 1 & 2) --- */

.cjrb-loading {
    position: relative;
}

.cjrb-loading::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.6);
    z-index: 5;
}

.cjrb-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border-radius: 50%;
    border: 3px solid rgba(0,0,0,0.15);
    border-top-color: #000;
    animation: cjrb-spin 0.7s linear infinite;
    z-index: 10;
}

@keyframes cjrb-spin {
    to { transform: rotate(360deg); }
}


/* -----------------------------------------------------------
   STEP 2 TABS: DIAMONDS / GEMSTONES (Luxury Nivoda/Tiffany style)
----------------------------------------------------------- */

#cjrb-diamond-tabs {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 28px;
    position: relative;
    padding-bottom: 6px;
}

/* Underline Slider (Nivoda style) */
#cjrb-diamond-tabs::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background: #e5e5e5;
    z-index: 1;
}

.cjrb-tab {
    position: relative;
    z-index: 2;

    flex: 0 0 auto;
    padding: 9px 22px 10px;
    border: 1px solid #ddd;
    border-radius: 999px;

    background: #fafafa;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;

    display: flex;
    align-items: center;
    gap: 8px;

    color: #444;
    transition: all .25s ease;
}

/* Diamond / Gem icon size */
.cjrb-tab svg {
    width: 16px;
    height: 16px;
    stroke-width: 1.5;
    stroke: currentColor;
    fill: none;
}

/* Golden hover glow */
.cjrb-tab:hover {
    border-color: #d4af37;
    color: #000;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.35);
}

/* Active tab (black + animation) */
.cjrb-tab.cjrb-active {
    background: #000;
    color: #fff;
    border-color: #000;
    transform: scale(1.06);
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

/* Underline slider actual moving bar */
#cjrb-diamond-tabs .cjrb-tab.cjrb-active::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 20%;
    width: 60%;
    height: 3px;
    background: #000;
    border-radius: 2px;
    transition: all .25s ease;
}

/* Soft entrance shimmer */
.cjrb-tab.cjrb-active {
    animation: cjrb-tab-pop .25s ease-out;
}

@keyframes cjrb-tab-pop {
    0% { transform: scale(0.94); opacity: 0.7; }
    100% { transform: scale(1.06); opacity: 1; }
}


/* -----------------------------------------------------------
   DISCREET GLITTER SHIMMER FOR ACTIVE TAB
----------------------------------------------------------- */

.cjrb-tab.cjrb-active {
    position: relative;
    overflow: hidden;
}

/* Glitter sweep layer */
.cjrb-tab.cjrb-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 120%;
    height: 100%;
    background: linear-gradient(
        115deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.15) 45%,
        rgba(255,255,255,0.25) 55%,
        rgba(255,255,255,0) 100%
    );
    transform: skewX(-20deg);
    animation: cjrb-glitter 1s ease-out forwards;
    pointer-events: none;
}

@keyframes cjrb-glitter {
    0%   { left: -120%; opacity: 0; }
    15%  { opacity: 1; }
    100% { left: 120%; opacity: 0; }
}

/* ----------------------------------------------------------
   STEP 2 — DIAMOND/GEM DETAIL VIEW (PREMIUM LAYOUT)
----------------------------------------------------------- */

/* Wrapper */
#cjrb-diamond-detail {
    padding: 20px 0 40px 0;
}

/* Back link */
#cjrb-diamond-detail .cjrb-detail-back {
    font-size: 14px;
    color: #333;
    margin-bottom: 25px;
    display: inline-block;
    cursor: pointer;
}

/* Main Layout: Image Left - Info Right */
#cjrb-diamond-detail .cjrb-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

/* IMAGE BOX */
#cjrb-diamond-detail .cjrb-main-img-box {
    width: 100%;
    background: #fafafa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

#cjrb-diamond-detail #cjrb-diamond-main-img {
    width: auto;
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
}

/* Thumbnails */
#cjrb-diamond-detail .cjrb-detail-thumbs {
    margin-top: 15px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

#cjrb-diamond-detail .cjrb-detail-thumbs img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    background: #fff;
    border: 1px solid #ddd;
    transition: all .2s;
}

#cjrb-diamond-detail .cjrb-detail-thumbs img:hover {
    border-color: #000;
}

/* TITLE */
#cjrb-diamond-detail .cjrb-detail-title {
    font-size: 26px;
    margin: 0 0 10px 0;
    font-weight: 700;
    line-height: 1.3;
}

/* PRICE BOX */
#cjrb-diamond-detail .cjrb-detail-price-box {
    color: #b68c53;
    text-align: left;
    margin: 5px 0 25px 0 !important;
    padding: 0;
}

#cjrb-diamond-detail .cjrb-old-price {
    margin-left: 12px;
    font-size: 16px;
    color: #888;
    text-decoration: line-through;
}

/* SELECT BUTTON */
#cjrb-select-diamond-btn {
    width: 100%;
    padding: 14px;
    background: #111;
    color: #fff;
    border-radius: 6px;
    text-align: center;
    font-size: 16px;
    margin-top: 25px;
    transition: 0.25s;
}

#cjrb-select-diamond-btn:hover {
    background: #000;
}

/* SPECS BOX */
#cjrb-diamond-detail .cjrb-specs-box {
    margin-top: 40px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
}

#cjrb-diamond-detail .cjrb-specs-header {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
}

/* 2-column specs layout */
#cjrb-diamond-detail .cjrb-specs-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 50px;
}

#cjrb-diamond-detail .cjrb-spec-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding: 6px 0;
    font-size: 14px;
}

#cjrb-diamond-detail .cjrb-spec-row span:first-child {
    color: #555;
}

#cjrb-diamond-detail .cjrb-spec-row span:first-child {
    padding-right: 10px;
    white-space: nowrap;
}

#cjrb-diamond-detail .cjrb-spec-row span:last-child {
    white-space: nowrap;
}

#cjrb-diamond-detail .cjrb-detail-right {
    padding-top: 10px;
}

#cjrb-diamond-detail .cjrb-detail-title {
    text-align: left;
    margin: 0 0 10px 0 !important;
    padding: 0;
}

#cjrb-select-diamond-btn {
    display: block;
    margin: 20px 0;
    width: 260px;
    text-align: center;
}

#cjrb-diamond-detail .cjrb-detail-right {
    text-align: left !important;
}

#cjrb-diamond-detail .cjrb-detail-title {
    font-size: 26px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    line-height: 1.25;
}

#cjrb-diamond-detail .cjrb-meta-row {
    font-size: 15px;
    margin: 4px 0 18px 0;
    color: #444;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

#cjrb-diamond-detail .cjrb-meta-row span {
    white-space: nowrap;
    font-weight: 500;
}

#cjrb-diamond-detail .cjrb-detail-price-box {
    font-size: 28px;
    font-weight: 700;
    color: #000;
    margin-bottom: 6px;
}

#cjrb-diamond-detail .cjrb-price-note {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

#cjrb-diamond-detail .cjrb-old-price {
    font-size: 15px;
    color: #999;
    text-decoration: line-through;
    margin-right: 6px;
}

#cjrb-diamond-detail .cjrb-sale-tag {
    color: #c33;
    font-weight: 600;
    font-size: 15px;
}

#cjrb-diamond-detail .cjrb-trust-list {
    margin-top: 25px;
    display: grid;
    gap: 8px;
}

#cjrb-diamond-detail .cjrb-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #444;
}

#cjrb-diamond-detail .cjrb-trust-item svg {
    width: 18px;
    height: 18px;
}

#cjrb-diamond-detail .cjrb-specs-body {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 40px;
}

#cjrb-diamond-detail .cjrb-spec-row span:first-child {
    font-weight: 600;
    display: block;
    margin-bottom: 3px;
}

/* --- STEP2 DIAMOND DETAIL (Luxury CJRB Style) --- */

#cjrb-diamond-detail {
    padding: 20px 0;
}

.cjrb-step2-detail-layout {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.cjrb-step2-left {
    width: 45%;
}

.cjrb-step2-left .cjrb-main-img-box {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 6px;
    text-align: center;
}

#cjrb-diamond-main-img {
    max-width: 100%;
    height: auto;
}

.cjrb-step2-left .cjrb-detail-thumbs {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.cjrb-step2-left .cjrb-detail-thumbs img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 1px solid #eee;
    border-radius: 4px;
    cursor: pointer;
}

/* RIGHT SIDE */
.cjrb-step2-right {
    width: 55%;
}

.cjrb-step2-title {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 10px;
    font-family: 'Cinzel', serif;
}

.cjrb-step2-infobar {
    font-size: 14px;
    margin-bottom: 20px;
    color: #444;
}

.cjrb-step2-infobar span {
    font-weight: 700;
    color: #000;
}

.cjrb-step2-price {
    font-size: 28px;
    font-weight: 700;
    color: #b76e79;
    margin-bottom: 5px;
}

.cjrb-step2-oldprice {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.cjrb-step2-sale {
    color: #e74c3c;
    font-size: 14px;
    font-weight: 700;
    margin-left: 10px;
}

/* BUTTON */
#cjrb-select-diamond-btn {
    margin: 25px 0 40px;
}

/* SPECS */
.cjrb-step2-specs2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 40px;
    margin-top: 20px;
}

.cjrb-step2-spec-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    padding-bottom: 6px;
}

.cjrb-step2-spec-row span:first-child {
    color: #666;
}

/* Back button */
.cjrb-step2-back {
    cursor: pointer;
    margin-bottom: 20px;
    font-size: 14px;
}

/* -------------------------------------------------------------
   STEP 2 — LUXURY DETAIL (CJRB Nivoda hybrid)
------------------------------------------------------------- */

#cjrb-step-2 .cjrb-detail-layout {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    padding-top: 20px;
}

#cjrb-diamond-detail .cjrb-detail-left {
    width: 50%;
}

#cjrb-diamond-detail .cjrb-detail-right {
    width: 50%;
}

/* Main image box (bigger, centered) */
#cjrb-diamond-detail .cjrb-main-img-box {
    background: #fafafa;
    border-radius: 6px;
    padding: 30px;
    text-align: center;
}

#cjrb-diamond-detail .cjrb-main-img-box img {
    width: auto;
    height: 420px;
    object-fit: contain;
}

/* Thumbs */
#cjrb-diamond-detail .cjrb-detail-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}
#cjrb-diamond-detail .cjrb-detail-thumbs img {
    width: 80px;
    height: 80px;
    border: 1px solid #eee;
    border-radius: 6px;
    object-fit: cover;
    cursor: pointer;
}
#cjrb-diamond-detail .cjrb-detail-thumbs img:hover {
    border-color: #d4af37;
}

/* Title row: BIG carat + name */
#cjrb-diamond-detail .cjrb-detail-title {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

/* Price section */
#cjrb-diamond-detail .cjrb-detail-price-box {
    margin-top: 10px;
    margin-bottom: 10px;
}
#cjrb-diamond-detail .cjrb-current-price {
    font-size: 26px;
    font-weight: 700;
    color: #000;
}
#cjrb-diamond-detail .cjrb-old-price {
    font-size: 16px;
    color: #aaa;
    margin-left: 15px;
}

/* “Stone only” line */
#cjrb-diamond-detail .cjrb-stone-note {
    margin-top: 5px;
    font-size: 13px;
    color: #666;
}

/* Select button */
#cjrb-diamond-detail .cjrb-btn-block {
    margin-top: 25px;
}

/* Specs */
#cjrb-diamond-detail .cjrb-specs-box {
    margin-top: 35px;
}
#cjrb-diamond-detail .cjrb-specs-header {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
}
#cjrb-diamond-detail .cjrb-spec-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px solid #f7f7f7;
}

/* Back link */
#cjrb-diamond-detail .cjrb-detail-back {
    margin-bottom: 20px;
    cursor: pointer;
    color: #333;
    font-size: 13px;
}
#cjrb-diamond-detail .cjrb-detail-back:hover {
    color: #000;
}

/* Mobile */
@media(max-width: 900px) {
    #cjrb-step-2 .cjrb-detail-layout {
        flex-direction: column;
    }
    #cjrb-diamond-detail .cjrb-detail-left,
    #cjrb-diamond-detail .cjrb-detail-right {
        width: 100%;
    }
}





/* Responsive */
@media (max-width: 900px) {
    #cjrb-diamond-detail .cjrb-detail-layout {
        grid-template-columns: 1fr;
    }
}





@media(max-width: 900px) {
    .cjrb-diamond-filters-grid { grid-template-columns: 1fr; }
    .cjrb-diamond-sliders-grid { grid-template-columns: 1fr; }
    .cjrb-diamond-card { flex-direction: column; text-align: center; }
    .cjrb-diamond-info { grid-template-columns: 1fr 1fr; margin: 15px 0; width: 100%; }
    .cjrb-diamond-btn { margin: 0; width: 100%; }
}

/* -----------------------------------------------------------
   FINAL FIX — Step 2 Detail Layout (stable, no conflicts)
----------------------------------------------------------- */

#cjrb-diamond-detail .cjrb-detail-layout {
    display: flex !important;
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
}

/* Left/Right columns — keep your intended widths */
#cjrb-diamond-detail .cjrb-detail-left {
    width: 50% !important;
}

#cjrb-diamond-detail .cjrb-detail-right {
    width: 50% !important;
}

/* Make sure the image behaves properly */
#cjrb-diamond-detail .cjrb-main-img-box img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
}

/* Thumbnails styling guaranteed uniform */
#cjrb-diamond-detail .cjrb-detail-thumbs img {
    width: 70px;
    height: 70px;
    border-radius: 4px;
    object-fit: cover;
}

/* ------------------------------------------------------------
   STONE BADGES (Luxury CJRB style)
------------------------------------------------------------ */

.cjrb-stone-badges {
    display: flex;
    gap: 8px;
    margin: 10px 0 15px 0;
}

.cjrb-stone-badge {
    background: #f8f3e9;
    color: #7a5f38;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border: 1px solid #e0d6c2;
    display: inline-flex;
    align-items: center;
}

/* ------------------------------------------------------------
   MAKE DETAIL VIEW BUTTON MATCH STEP 1
------------------------------------------------------------ */

#cjrb-select-diamond-btn {
    background: #000 !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 0 !important;
    font-size: 13px !important;
    letter-spacing: 1px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 700;
}

#cjrb-select-diamond-btn:hover {
    background: #333 !important;
}


#cjrb-step-2 > #cjrb-diamond-tabs {
    display: flex;
    position: relative !important;
}

#cjrb-step-1 #cjrb-diamond-tabs,
#cjrb-step-3 #cjrb-diamond-tabs,
#cjrb-builder > #cjrb-diamond-tabs {
    display: none !important;
}



#cjrb-step3-header {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    padding: 20px 0;
    border-bottom: 1px solid #e7e7e7;
}

.cjrb-summary-box {
    display: flex;
    align-items: center;
    background: #fafafa;
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    padding: 12px 16px;
    flex: 1;
    position: relative;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.cjrb-summary-check {
    width: 20px;
    height: 20px;
    background: #c6a667;
    border-radius: 50%;
    position: absolute;
    left: -10px;
    top: -10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.cjrb-summary-thumb {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-right: 12px;
}

.cjrb-summary-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cjrb-summary-info {
    flex: 1;
}

.cjrb-summary-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.cjrb-summary-price {
    display: flex;
    gap: 8px;
    font-size: 14px;
}

.cjrb-price-final {
    color: #1a1a1a;
    font-weight: 600;
}

.cjrb-price-old {
    text-decoration: line-through;
    color: #999;
}

.cjrb-summary-remove {
    display: inline-block;
    margin-top: 6px;
    font-size: 13px;
    color: #c0392b;
    cursor: pointer;
}

.cjrb-complete-box {
    background: #f4f4f4;
    border: 1px solid #c6a667;
}


/* ================================
   CJRB HEADER SUMMARY STRIP (Nivoda-style)
   ================================ */

#cjrb-header-summary {
    display: flex;
    gap: 14px;
    padding: 10px 0 12px 0; /* λίγο πιο σφιχτό */
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
}

#cjrb-header-summary .cjrb-hbox {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    gap: 14px;              /* μεγαλύτερο κενό ανάμεσα σε εικόνα και κείμενο */
    padding: 10px 16px;     /* και από αριστερά/δεξιά */
    border-radius: 6px;
    border: 1px solid #eee;
    /* background: #faf7f2;    ίδιο φόντο και στα τρία */
    cursor: pointer;
    min-width: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.1s ease;
}

#cjrb-header-summary .cjrb-hbox:hover {
    border-color: #d4af37;
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.15);
    transform: translateY(-1px);
}

#cjrb-header-summary .cjrb-hbox-thumb {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 6px;
    border: 1px solid #e2e2e2;
    background: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#cjrb-header-summary .cjrb-hbox-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
}

#cjrb-header-summary .cjrb-hbox-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    gap: 0px;
}

#cjrb-header-summary .cjrb-hbox-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #666;
}

#cjrb-header-summary .cjrb-hbox-sub {
    font-size: 12px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#cjrb-header-summary .cjrb-hbox-price {
    font-size: 13px;
    font-weight: 700;
    color: #b76e79;
}

/* empty vs filled state */

#cjrb-header-summary .cjrb-hbox-empty {
    opacity: 0.55;
}

/* Filled = έχει δεδομένα, αλλά ΟΧΙ έντονο */
#cjrb-header-summary .cjrb-hbox-filled {
    opacity: 1;
    background: #fff;
    border-color: #ddd;
    box-shadow: none;
}

/* Active = ΜΟΝΟ το τρέχον step, πραγματικά έντονο */
#cjrb-header-summary .cjrb-hbox-active {
    border-color: #d4af37;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.3);
}


/* μικρό tick για completed, αν το χρησιμοποιήσουμε αργότερα */
#cjrb-header-summary .cjrb-hbox-complete .cjrb-hbox-title::after {
    content: " ✓";
    font-size: 11px;
    color: #2e7d32;
}



/* Κρύψε τα παλιά tabs header */
#cjrb-steps {
    display: none;
}

/* Responsive: τα boxes σε 2 ή 3 γραμμές αν μικρή οθόνη */
@media (max-width: 768px) {
    #cjrb-header-summary {
        flex-direction: column;
        gap: 8px; /* μικρό κενό ανάμεσα στα boxes */
    }
    #cjrb-header-summary .cjrb-hbox {
        width: 100%;
    }
}


/* =========================================
   STEP 3 — COMPLETE RING (Nivoda / CJ look)
========================================= */

#cjrb-step-3 {
    padding: 20px 0 40px;
}

.cjrb-step3-layout {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

/* Left: εικόνα + thumbs */
.cjrb-step3-left {
    width: 55%;
}

.cjrb-step3-main-img-box {
    background: #fafafa;
    border-radius: 6px;
    padding: 30px;
    text-align: center;
    border: 1px solid #eee;
}

.cjrb-step3-main-img-box img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.cjrb-step3-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
}

.cjrb-step3-thumb {
    width: 72px;
    height: 72px;
    border-radius: 6px;
    border: 1px solid #eee;
    overflow: hidden;
    cursor: pointer;
    flex: 0 0 auto;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.cjrb-step3-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cjrb-step3-thumb.active {
    border-color: #d4af37;
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.35);
    transform: translateY(-1px);
}

/* Right: summary + total */
.cjrb-step3-right {
    width: 45%;
}

.cjrb-step3-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* Summary card */
.cjrb-step3-summary-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e4e0d4;
    padding: 18px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    margin-bottom: 20px;
    position: relative;
}

.cjrb-step3-summary-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 3px;
    width: 80px;
    background: #d4af37; /* gold touch */
    border-radius: 12px 12px 0 0;
}

.cjrb-step3-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f3f3f3;
}

.cjrb-step3-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cjrb-step3-row-main {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
}

.cjrb-step3-row-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f8f3e9;
    border: 1px solid #e0d6c2;
    flex-shrink: 0;
}

/* placeholder κλάσεις για icons αν βάλουμε svg */
.cjrb-icon-setting {}
.cjrb-icon-stone {}
.cjrb-icon-size {}

.cjrb-step3-row-text {
    flex: 1;
}

.cjrb-step3-row-title {
    font-size: 14px;
    font-weight: 600;
}

.cjrb-step3-row-sub {
    font-size: 12px;
    color: #777;
    margin-top: 2px;
}

.cjrb-step3-row-actions {
    font-size: 12px;
    margin-top: 4px;
}

.cjrb-step3-row-actions a {
    color: #b4882f;
    text-decoration: none;
}

.cjrb-step3-row-actions a:hover {
    text-decoration: underline;
}

.cjrb-step3-row-price {
    margin-left: 16px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

/* Finger size */
.cjrb-step3-row-finger .cjrb-step3-row-text {
    margin-top: -2px;
}

.cjrb-step3-finger-inputs {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cjrb-step3-select {
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 8px 10px;
    font-size: 13px;
    min-width: 140px;
    background: #fafafa;
}

.cjrb-size-guide-link {
    display: inline-block;
    margin-top: 4px;
    font-size: 12px;
    color: #b4882f;
    text-decoration: none;
}

.cjrb-size-guide-link:hover {
    text-decoration: underline;
}

/* Total card + CTA */
.cjrb-step3-total-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #111;
    padding: 16px 20px 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.cjrb-step3-total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 600;
}

.cjrb-step3-total-price {
    font-size: 18px;
    font-weight: 700;
    color: #b4882f;
}

.cjrb-step3-btn-main {
    width: 100%;
    border-radius: 999px;
    border: none;
    background: #000;
    color: #fff;
    padding: 14px 0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.1s ease;
}

.cjrb-step3-btn-main:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

/* Help + chat */
.cjrb-step3-help-row {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: 12px;
    color: #555;
}

.cjrb-step3-chat-link {
    border: none;
    background: none;
    padding: 0;
    font-size: 12px;
    color: #b4882f;
    cursor: pointer;
    text-decoration: underline;
}

.cjrb-step3-chat-link:hover {
    color: #8f6b23;
}


#cjrb-overlay {
    display: none;
    position: fixed;
    z-index: 999999;
    inset: 0;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(2px);
    justify-content: center;
    align-items: center;
}

#cjrb-overlay.active {
    display: flex;
}

.cjrb-overlay-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #c9b37a;
    border-top-color: transparent;
    border-radius: 50%;
    animation: cjrb-spin 0.9s linear infinite;
}

@keyframes cjrb-spin {
    to { transform: rotate(360deg); }
}



/* Responsive */
@media (max-width: 900px) {
    .cjrb-step3-layout {
        flex-direction: column;
        gap: 30px;
    }
    .cjrb-step3-left,
    .cjrb-step3-right {
        width: 100%;
    }
}