/*
 * 
 * @author David Mrózek
 * @contact <admin@valasinec.cz>
 * @since 2015
 * @copyright Copyright (c) 2015 - 2026 David Mrózek
 *
 * @link https://prestashop.valasinec.cz/content/2-obchodni-podminky
 * @license https://prestashop.valasinec.cz/content/3-licencni-podminky
 *
 * Tento kód je chráněn autorským právem a nesmí být šířen bez předchozího písemného souhlasu autora.
 * V rámci licenčních podmínek můžete tento kód používat a upravovat pouze pro vlastní potřeby.
 * Pro jakékoli dotazy nebo další informace nás kontaktujte.
 *
*/

/* grid 4 vedle sebe */
.dm-shapes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

/* tile */
.dm-shape-tile {
    position: relative;
    cursor: pointer;
}

/* schovej checkbox */
.dm-shape-tile input {
    display: none;
}

/* obsah */
.dm-shape-content {
    display: block;
    text-align: center;
    padding: 12px 5px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f8f8f8;
    transition: all 0.2s ease;
    font-size: 13px;
}

/* hover */
.dm-shape-tile:hover .dm-shape-content {
    border-color: #999;
}

/* AKTIVNÍ */
.dm-shape-tile input:checked+.dm-shape-content {
    border: 2px solid #000;
    background: #fff;
    font-weight: 600;
}

/* neaktivní lehce šedé */
.dm-shapes-grid:hover .dm-shape-tile input:not(:checked)+.dm-shape-content {
    opacity: 0.6;
}

/* Loader */
.dm-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* spinner */
.dm-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ddd;
    border-top: 4px solid #000;
    border-radius: 50%;
    animation: dm-spin 0.8s linear infinite;
}

@keyframes dm-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* noUiSlider base */
.noUi-target {
    margin-left: 9px;
    margin-right: 9px;
    height: 3px;
    background: #e0e0e0;
    border: none;
    box-shadow: none;
    border-radius: 2px;
}

.noUi-connect {
    background: #4a4a4a;
}

.noUi-handle {
    width: 18px !important;
    height: 18px !important;
    top: -8px !important;
    right: -9px !important;
    border-radius: 50% !important;
    background: #fff !important;
    border: 2px solid #4a4a4a !important;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2) !important;
    cursor: grab !important;
}

.noUi-handle:active {
    cursor: grabbing !important;
}

.noUi-handle::before, .noUi-handle::after {
    display: none !important;
}

/* pips */
.noUi-pips {
    color: #aaa;
    font-size: 11px;
}

.noUi-marker {
    background: #ddd;
}

.noUi-value {
    padding-top: 4px;
}

.dm-btn-detail {
    margin-top: 10px;
    font-weight: normal;
    font-size: 14px;
    padding: 0.25rem 1rem;
    height: auto;
    line-height: 1.875rem;
}

.dm-btn-detail:hover {
    background: #000;
    color: #fff;
}


/* wrapper na střed */
.dm-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 30px 0;
    flex-wrap: wrap;
}

/* tlačítka */
.dm-page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}

/* hover */
.dm-page-btn:hover {
    border-color: #000;
    color: #000;
}

/* aktivní stránka */
.dm-page-btn.active {
    background: #000;
    color: #fff;
    border-color: #000;
    font-weight: 600;
}

/* tečky */
.dm-dots {
    padding: 0 6px;
    color: #999;
    font-size: 14px;
}

.dm-page-btn.active {
    transform: scale(1.05);
}

.dm-page-btn:hover {
    transform: translateY(-1px);
}

/* ── Košík — ikona bílá inverzně na tmavém tlačítku ── */
.dm-add-to-cart .material-icons {
    color: #fff;
    font-size: 18px;
    vertical-align: middle;
}

/* ── Detail page — obrázek diamantu ── */
.dm-detail-img-col {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}

.dm-detail-img {
    display: block;
    width: 75%;
    height: 75%;
    object-fit: contain;
}

/* ── List — obrázek v kartičce ── */
.dm-diamond-img-wrap {
    display: block;
    width: 100%;
}

.dm-diamond-img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

/* ── Toast — přidáno do košíku ── */
.dm-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    background: #1a1a1a;
    color: #fff;
    padding: 18px 20px 22px;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
    z-index: 9999;
    max-width: 340px;
    width: calc(100vw - 48px);
    animation: dm-toast-in 0.3s ease;
    overflow: hidden;
}

.dm-toast-out {
    animation: dm-toast-out 0.3s ease forwards;
}

.dm-toast-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    color: #888;
    font-size: 14px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.dm-toast-close:hover {
    color: #fff;
}

.dm-toast-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 6px;
    padding-right: 20px;
}

.dm-toast-text {
    font-size: 13px;
    color: #aaa;
    line-height: 1.5;
}

.dm-toast-text strong {
    color: #DBA826;
}

.dm-toast-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
    color: #DBA826;
    text-decoration: none;
    font-weight: 600;
}

.dm-toast-link:hover {
    color: #fff;
}

.dm-toast-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: #DBA826;
    border-radius: 0 0 10px 10px;
    animation: dm-toast-bar 10s linear forwards;
}

@keyframes dm-toast-in {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dm-toast-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-16px);
    }
}

.dm-toast-warning {
    background: #6b2020;
}

.dm-toast-warning .dm-toast-text strong {
    color: #f08080;
}

.dm-toast-warning .dm-toast-bar {
    background: #f08080;
}

@keyframes dm-toast-bar {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

.dm-in-cart-notice {
    display: block;
    width: 100%;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: #e8f4fd;
    border-left: 3px solid #3498db;
    border-radius: 3px;
    font-size: 0.9rem;
    color: #2c3e50;
}

.dm-sold-out-notice {
    background: #fdf0f0;
    border-left-color: #e74c3c;
    color: #922b21;
}

/* ═══════════════════════════════════════════════════════
   FILTER BAR — mockup design
════════════════════════════════════════════════════════ */

.dm-diamonds-wrap {
    max-width: 100%;
}

/* Card */
.dm-filter-bar {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #ececec;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 0;
    margin-bottom: 24px;
    overflow: hidden;
}

/* Header */
.dm-filter-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    border-bottom: 2px solid #f0f0f0;
}

.dm-filter-header .material-icons {
    font-size: 20px;
    color: #4a4a4a;
}

.dm-filter-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1a1a1a;
    flex: 1;
}

.dm-filter-toggle {
    display: none;
    align-items: center;
    gap: 6px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 7px 13px;
    font-size: 13px;
    cursor: pointer;
    line-height: 1;
}

.dm-filter-toggle .material-icons {
    font-size: 18px;
    transition: transform 0.2s;
}

.dm-filter-toggle[aria-expanded="true"] .material-icons {
    transform: rotate(180deg);
}

/* Sections */
.dm-filter-section {
    padding: 22px 28px;
}

.dm-filter-section+.dm-filter-section {
    border-top: 1px solid #f0f0f0;
}

/* 2-column grid inside section */
.dm-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 52px;
}

/* Slider block */
.dm-slider-block {
    min-width: 0;
}

.dm-slider-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 18px;
}

.dm-lbl {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #999;
}

.dm-val {
    font-size: 13px;
    font-weight: 700;
    color: #4a4a4a;
    white-space: nowrap;
}

.dm-slider-wrap {
    min-width: 0;
}

.dm-slider-wrap--pips {
    padding-bottom: 36px;
}

/* Axis labels (static text below price/carat sliders) */
.dm-slider-axis {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 11px;
    color: #ccc;
}

/* Chip groups */
.dm-chip-group-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #c0c0c0;
    margin-bottom: 10px;
}

.dm-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dm-chip {
    padding: 6px 14px;
    border: 1.5px solid #e2e2e2;
    border-radius: 20px;
    background: #fff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    color: #555;
    transition: all 0.15s ease;
    line-height: 1.4;
    user-select: none;
}

.dm-chip:hover {
    border-color: #4a4a4a;
    color: #4a4a4a;
}

.dm-chip.active {
    background: #4a4a4a;
    border-color: #4a4a4a;
    color: #fff;
    font-weight: 600;
}

/* Lab multi-select chips (checkbox-based) */
.dm-chip-label {
    display: inline-block;
    cursor: pointer;
}

.dm-chip-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.dm-chip-checkbox:checked + .dm-chip {
    background: #4a4a4a;
    border-color: #4a4a4a;
    color: #fff;
    font-weight: 600;
}

/* Footer */
.dm-filter-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: #fafafa;
    border-top: 2px solid #f0f0f0;
}

.dm-btn-reset {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    color: #999;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
    white-space: nowrap;
}

.dm-btn-reset .material-icons {
    font-size: 15px;
}

.dm-btn-reset:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

/* Sort */
.dm-sort-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dm-sort-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #bbb;
}

.dm-sort-select {
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    padding: 7px 28px 7px 12px;
    font-size: 13px;
    color: #1a1a1a;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    min-width: 150px;
    transition: border-color 0.2s;
}

.dm-sort-select:hover,
.dm-sort-select:focus {
    border-color: #4a4a4a;
    outline: none;
}

/* Results bar */
.dm-results-bar {
    margin-bottom: 14px;
    min-height: 24px;
}

.dm-results-count {
    font-size: 14px;
    color: #999;
}

/* ─── Responsive ─── */
@media (max-width: 575px) {
    .dm-filter-header {
        padding: 14px 16px;
    }

    .dm-filter-toggle {
        display: flex;
    }

    .dm-filter-body {
        display: none;
    }

    .dm-filter-body.is-open {
        display: block;
    }

    .dm-filter-section {
        padding: 16px;
    }

    .dm-grid-2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .dm-filter-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .dm-sort-group {
        justify-content: space-between;
    }

    .dm-sort-select {
        min-width: 0;
        flex: 1;
    }

    .dm-btn-reset {
        justify-content: center;
    }
}

/* ─── Info ikona u labelu filtru + popup s vysvětlením ─── */
.dm-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    margin-left: 5px;
    padding: 0;
    border: 1px solid #c0c0c0;
    border-radius: 50%;
    background: #fff;
    color: #999;
    font-size: 10px;
    font-style: italic;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    vertical-align: middle;
    transition: border-color 0.15s, color 0.15s;
}

.dm-info-icon:hover,
.dm-info-icon:focus {
    border-color: #4a4a4a;
    color: #4a4a4a;
    outline: none;
}

.dm-info-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    padding: 16px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.dm-info-popup-overlay.is-open {
    visibility: visible;
    opacity: 1;
}

.dm-info-popup {
    position: relative;
    background: #fff;
    border-radius: 8px;
    max-width: 420px;
    width: 100%;
    padding: 28px 24px 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.38s ease, opacity 0.38s ease;
}

.dm-info-popup-overlay.is-open .dm-info-popup {
    transform: translateY(0);
    opacity: 1;
}

.dm-info-popup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: none;
    font-size: 22px;
    line-height: 1;
    color: #999;
    cursor: pointer;
}

.dm-info-popup-close:hover {
    color: #4a4a4a;
}

.dm-info-popup-title {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #4a4a4a;
}

.dm-info-popup-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

/* ═══════════════════════════════════════════════════════
   DETAIL DIAMANTU — nový design
════════════════════════════════════════════════════════ */

/* ── USP dlaždice ── */
.dm-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 16px 0 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.dm-highlight-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 14px 10px 12px;
    border: 1px solid #ddd;
    gap: 4px;
}

.dm-highlight-tile .material-icons {
    font-size: 28px;
    color: #4a4a4a;
    margin-bottom: 2px;
}

.dm-highlight-val {
    font-size: 15px;
    font-weight: 800;
    color: #232323;
    line-height: 1.2;
}

.dm-highlight-key {
    font-size: 10px;
    font-weight: 500;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ── Anotační popis ── */
.dm-annotation {
    font-size: 15px;
    line-height: 1.75;
    color: #555;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-left: 3px solid #4a4a4a;
    background: #f8f8f8;
}

.dm-annotation strong {
    color: #232323;
    font-weight: 700;
}

/* ── Sekce pod hrdinou ── */
.dm-detail-below {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 48px;
}

.dm-section-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #4a4a4a;
    padding-bottom: 10px;
    border-bottom: 2px solid #4a4a4a;
    margin-bottom: 16px;
}

/* ── 4C karty ── */
.dm-detail-4c {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.dm-4c-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 18px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dm-4c-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #aaa;
}

.dm-4c-value {
    font-size: 24px;
    font-weight: 800;
    color: #232323;
    line-height: 1;
}

.dm-4c-value small {
    font-size: 13px;
    font-weight: 400;
    color: #7a7a7a;
}

.dm-4c-scale-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dm-4c-scale-min,
.dm-4c-scale-max {
    font-size: 9px;
    color: #bbb;
    flex-shrink: 0;
    white-space: nowrap;
    font-weight: 600;
}

.dm-4c-scale-track {
    flex: 1;
    height: 3px;
    background: #ddd;
    overflow: hidden;
}

.dm-4c-scale-fill {
    height: 100%;
    background: #4a4a4a;
}

.dm-4c-desc {
    font-size: 14px;
    line-height: 1.55;
    color: #7a7a7a;
    margin-top: 2px;
}

/* ── Spec panely ── */
.dm-detail-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.dm-spec-panel {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px 18px;
}

.dm-spec-panel-title {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #4a4a4a;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.dm-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid #eee;
}

.dm-spec-row:last-child {
    border-bottom: none;
}

.dm-spec-key {
    font-size: 14px;
    color: #7a7a7a;
}

.dm-spec-val {
    font-size: 14px;
    font-weight: 700;
    color: #232323;
}

/* ── Certifikát panel ── */
.dm-detail-cert-panel {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
}

.dm-cert-panel-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 18px;
    flex-shrink: 0;
    min-width: 90px;
    border: 1px solid #ddd;
    text-align: center;
}

.dm-cert-panel-badge .material-icons {
    font-size: 28px;
    color: #4a4a4a;
}

.dm-cert-lab-name {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #4a4a4a;
}

.dm-cert-panel-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.dm-cert-panel-title {
    font-size: 15px;
    font-weight: 700;
    color: #232323;
}

.dm-cert-panel-desc {
    font-size: 14px;
    line-height: 1.65;
    color: #7a7a7a;
}

.dm-cert-link {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 700;
    color: #4a4a4a;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 6px;
    flex-wrap: wrap;
    word-break: break-word;
}

.dm-cert-link:hover {
    opacity: .7;
}

.dm-cert-link .material-icons {
    font-size: 15px;
    flex-shrink: 0;
}

/* ── Responsive — detail ── */
@media (max-width: 991px) {
    .dm-detail-4c {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 575px) {
    .dm-highlights {
        grid-template-columns: 1fr 1fr;
    }

    .dm-detail-4c {
        grid-template-columns: 1fr 1fr;
    }

    .dm-detail-specs-grid {
        grid-template-columns: 1fr;
    }

    .dm-detail-cert-panel {
        flex-direction: column;
    }
}