/* Diamond Filter UI */

.filter-panel {
    background: var(--bg-white, #fff);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    margin-bottom: 24px;
}

/* Shape selector */
.shape-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.shape-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 2px solid var(--border-color, #e0e0e0);
    border-radius: 6px;
    background: var(--bg-white, #fff);
    cursor: pointer;
    font-size: 11px;
    color: var(--text-secondary, #666);
    transition: border-color 0.15s, background 0.15s;
    padding: 2px;
    gap: 2px;
}

.shape-btn svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-secondary, #666);
    fill: none;
    stroke-width: 1.5;
}

.shape-btn.active {
    border-color: var(--primary-color, #111);
    background: var(--bg-light, #f8f9fa);
}

.shape-btn.active svg {
    stroke: var(--primary-color, #111);
}

/* Section labels */
.filter-label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary, #222);
}

.filter-label .help-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #aaa;
    color: #aaa;
    font-size: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    font-weight: 400;
    flex-shrink: 0;
}

/* Slider wrapper */
.slider-section {
    margin-bottom: 40px;
}

.slider-track-wrap {
    padding: 0 4px;
    margin-top: 40px;
    margin-bottom: 32px;
}

/* noUiSlider overrides */
.noUi-target {
    background: #e0e0e0;
    border: none;
    box-shadow: none;
    height: 4px;
    border-radius: 2px;
}

.noUi-connect {
    background: var(--primary-color, #111);
}

/* noUiSlider tooltips above the track */
.noUi-tooltip {
    bottom: 130% !important;
    top: auto !important;
    transform: translateX(-50%);
    font-size: 11px;
    padding: 2px 6px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 3px;
    white-space: nowrap;
}

.noUi-handle {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    background: #fff !important;
    border: 2px solid #888 !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15) !important;
    top: -9px !important;
    right: -10px !important;
    cursor: pointer;
}

.noUi-handle:before, .noUi-handle:after {
    display: none !important;
}

/* Discrete slider labels */
.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 11px;
    color: #888;
    padding: 0 4px;
}

.slider-labels span.active-label {
    color: #111;
    font-weight: 600;
}

/* Price / Carat inputs */
.range-inputs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.range-input-box {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 13px;
    width: 110px;
}

.range-input-box input[type=number] {
    border: none;
    outline: none;
    width: 100%;
    font-size: 13px;
    -moz-appearance: textfield;
}
.range-input-box input[type=number]::-webkit-inner-spin-button {
    opacity: 1;
}

/* Results table */
.results-table th {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    border-top: none;
}

.results-table td {
    vertical-align: middle;
    font-size: 13px;
}

.results-table img {
    border-radius: 4px;
    max-width: 80px;
}

/* Align Search button vertically with On Sale row */
.filters-grid > .slider-section:nth-child(5) {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 0;
}

.filters-grid > .slider-section:nth-child(5) .slider-btn-wrap {
    margin-top: auto;
    padding-top: 24px;
}

.reset-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: transparent;
    color: #555;
    font-size: 12px;
    padding: 5px 14px;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    white-space: nowrap;
}

.reset-btn:hover {
    border-color: #333;
    color: #111;
    background: #f5f5f5;
}
.filters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 40px;
}

@media (max-width: 768px) {
    .filters-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Results header ── */
.results-header {
    margin-top: 28px;
    margin-bottom: 16px;
}

.results-title {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin: 0 0 4px;
}

.results-count {
    font-size: 16px;
    font-weight: 400;
    color: #888;
}

.results-subtitle {
    font-size: 13px;
    color: #666;
    margin: 0 0 14px;
}

/* Toolbar row */
.results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid #e8e8e8;
}

.results-toolbar-left {
    display: flex;
    gap: 10px;
    align-items: center;
}

.results-toolbar-right {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Chip checkboxes (On Sale / Fast Shipping) */
.chip-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    user-select: none;
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
}

.chip-checkbox input[type=checkbox] {
    width: 15px;
    height: 15px;
    margin: 0;
    cursor: pointer;
    accent-color: #333;
}

.chip-checkbox:has(input:checked) {
    border-color: #333;
    background: #f5f5f5;
}

/* Toolbar dropdowns */
.toolbar-select-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.toolbar-select-label {
    font-size: 11px;
    color: #888;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.toolbar-select {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px 28px 5px 8px;
    font-size: 13px;
    color: #333;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E") no-repeat right 9px center;
    appearance: none;
    cursor: pointer;
    min-width: 140px;
}

.toolbar-select:focus {
    outline: none;
    border-color: #333;
}

/* View toggle buttons */
.view-toggle {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
}

.view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 34px;
    background: #fff;
    border: none;
    border-right: 1px solid #ccc;
    cursor: pointer;
    padding: 0;
    color: #888;
    transition: background 0.12s, color 0.12s;
}

.view-btn:last-child {
    border-right: none;
}

.view-btn svg {
    fill: currentColor;
}

.view-btn.active,
.view-btn:hover {
    background: #f0f0f0;
    color: #111;
}

/* Diamond card grid layouts */
.diamond-cards {
    display: grid;
    gap: 16px;
}

.diamond-cards--grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.diamond-cards--compact {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}

.diamond-cards--list {
    grid-template-columns: 1fr;
    gap: 8px;
}

/* ── Base card ── */
.diamond-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: box-shadow 0.15s, border-color 0.15s;
    text-decoration: none;
    color: inherit;
}

.diamond-card:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.11);
    border-color: #bbb;
}

/* ── Image area ── */
.dc-img-wrap {
    position: relative;
    background: #f9f9f9;
    overflow: hidden;
    flex-shrink: 0;
}

.diamond-cards--grid .dc-img-wrap {
    height: 200px;
}

.diamond-cards--compact .dc-img-wrap {
    height: 130px;
}

.diamond-cards--list .dc-img-wrap {
    width: 110px;
    height: 110px;
}

.dc-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.2s;
    display: block;
    position: relative;
    z-index: 1;
}

.diamond-card:hover .dc-img-wrap img {
    transform: scale(1.05);
}

/* ── Image Navigation Buttons ── */
.img-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.2);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    font-weight: 600;
    line-height: 1;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: all 0.2s ease;
    z-index: 20;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.img-nav-prev {
    left: 4px;
}

.img-nav-next {
    right: 4px;
}

.dc-img-wrap:hover .img-nav-btn {
    opacity: 1;
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.3);
}

.img-nav-btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.img-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* ── On Sale badge ── */
.dc-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 3px;
    letter-spacing: 0.05em;
    z-index: 10;
}

.dc-badge--sale {
    background: #e53935;
    color: #fff;
}

.dc-badge--quantity {
    background: #1976d2;
    color: #fff;
    top: 36px; /* Position below sale badge if both exist */
}

/* ── Card body ── */
.dc-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 0;
}

.dc-title {
    font-size: 13px;
    font-weight: 600;
    color: #111;
    line-height: 1.3;
}

.dc-attrs {
    font-size: 12px;
    color: #555;
}

.dc-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dc-cert,
.dc-ship {
    font-size: 11px;
    color: #999;
}

.dc-price {
    font-size: 17px;
    font-weight: 700;
    color: #111;
    margin-top: auto;
    padding-top: 8px;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px;
}

.dc-price-original {
    font-size: 13px;
    font-weight: 400;
    color: #888;
    text-decoration: line-through;
}

.dc-price-sale {
    font-size: 17px;
    font-weight: 700;
    color: #111;
}

/* ── Compact mode overrides ── */
.diamond-cards--compact .dc-body {
    padding: 8px 10px;
    gap: 3px;
}

.diamond-cards--compact .dc-title {
    font-size: 12px;
}

.diamond-cards--compact .dc-attrs,
.diamond-cards--compact .dc-meta {
    display: none;
}

.diamond-cards--compact .dc-price {
    font-size: 14px;
    padding-top: 4px;
}

/* ── List mode overrides ── */
.diamond-cards--list .diamond-card {
    flex-direction: row;
    align-items: center;
    border-radius: 6px;
}

.diamond-cards--list .dc-body {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 16px;
    padding: 12px 16px;
}

.diamond-cards--list .dc-title {
    font-size: 14px;
    flex: 0 0 180px;
    min-width: 0;
    white-space: normal;
}

.diamond-cards--list .dc-attrs {
    flex: 0 0 200px;
    font-size: 13px;
}

.diamond-cards--list .dc-meta {
    flex: 0 0 200px;
    gap: 8px;
}

.diamond-cards--list .dc-cert {
    font-size: 12px;
}

.diamond-cards--list .dc-ship {
    font-size: 12px;
}

.diamond-cards--list .dc-price {
    margin-left: auto;
    margin-top: 0;
    padding-top: 0;
    font-size: 18px;
    text-align: right;
    flex-shrink: 0;
}

/* No results */
.no-results {
    padding: 40px;
    text-align: center;
    color: #888;
    font-size: 15px;
}

/* ══════════════════════════════════════
   Diamond Detail Modal
══════════════════════════════════════ */
.dm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.dm-overlay.active {
    display: flex;
}

.dm-panel {
    background: #fff;
    border-radius: 10px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 8px 40px rgba(0,0,0,0.22);
    display: flex;
    flex-direction: column;
}

.dm-close {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 24px;
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    z-index: 10;
    padding: 0 4px;
}

.dm-close:hover { color: #111; }

/* Top section: image + info side by side */
.dm-top {
    display: flex;
    gap: 32px;
    padding: 32px 32px 24px;
}

.dm-img-col {
    flex: 0 0 340px;
    max-width: 340px;
}

.dm-img-col img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.dm-info-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dm-cert-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #888;
}

.dm-title {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin: 0;
    line-height: 1.3;
}

.dm-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    font-size: 14px;
    color: #444;
}

.dm-specs span::after {
    content: '';
    display: inline-block;
    width: 1px;
    height: 12px;
    background: #ccc;
    margin: 0 8px;
    vertical-align: middle;
}

.dm-specs span:last-child::after { display: none; }

/* Price block */
.dm-price-block {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.dm-price-old {
    font-size: 15px;
    color: #888;
    text-decoration: line-through;
}

.dm-price-new {
    font-size: 26px;
    font-weight: 700;
    color: #111;
}

.dm-price-pct {
    font-size: 13px;
    font-weight: 700;
    color: #c62828;
    background: #fdecea;
    border-radius: 4px;
    padding: 2px 7px;
}

/* Shipping block */
.dm-ship-block {
    font-size: 13px;
    color: #444;
    margin-top: 2px;
}

.dm-ship-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    margin-bottom: 2px;
}

.dm-ship-date {
    font-weight: 600;
    font-size: 14px;
    color: #111;
}

/* Select button */
.dm-select-btn {
    margin-top: auto;
    padding-top: 16px;
    align-self: flex-start;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 28px;
    cursor: pointer;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: background 0.15s;
}

.dm-select-btn:hover { background: #333; }

/* Bottom info section */
.dm-info-section {
    border-top: 1px solid #e8e8e8;
    padding: 24px 32px 32px;
}

.dm-info-heading {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 16px;
}

.dm-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0;
    border-top: 1px solid #e8e8e8;
    border-left: 1px solid #e8e8e8;
}

.dm-info-row {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    border-right: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
}

.dm-info-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.dm-info-value {
    font-size: 14px;
    font-weight: 600;
    color: #111;
}

@media (max-width: 680px) {
    .dm-top { flex-direction: column; padding: 20px; }
    .dm-img-col { flex: unset; max-width: 100%; }
    .dm-info-section { padding: 16px 20px 24px; }
}

/* ══════════════════════════════════════
   Diamond Detail Page (/diamond/{id})
══════════════════════════════════════ */
.dd-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

.dd-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    margin-bottom: 24px;
}
.dd-back:hover { color: #111; }
.dd-back svg { stroke: currentColor; }

.dd-top {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.dd-img-col {
    flex: 0 0 420px;
    max-width: 420px;
}

.dd-img-col img {
    width: 100%;
    border-radius: 10px;
    display: block;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.dd-info-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dd-cert-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
}

.dd-title {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin: 0;
    line-height: 1.3;
}

.dd-specs {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    color: #444;
}
.dd-specs span::after {
    content: '';
    display: inline-block;
    width: 1px;
    height: 12px;
    background: #ccc;
    margin: 0 8px;
    vertical-align: middle;
}
.dd-specs span:last-child::after { display: none; }

.dd-price-block {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.dd-price-old {
    font-size: 16px;
    color: #888;
    text-decoration: line-through;
}

.dd-price-new {
    font-size: 30px;
    font-weight: 700;
    color: #111;
}

.dd-price-pct {
    font-size: 13px;
    font-weight: 700;
    color: #c62828;
    background: #fdecea;
    border-radius: 4px;
    padding: 2px 8px;
}

.dd-ship-block {
    font-size: 13px;
    color: #444;
}

.dd-ship-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    margin-bottom: 2px;
}

.dd-ship-date {
    font-weight: 600;
    font-size: 15px;
    color: #111;
}

/* IGI Certificate Option */
.dd-igi-option {
    margin: 16px 0;
    border-top: 1px solid #e8e8e8;
    padding-top: 16px;
}

.igi-toggle {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.igi-toggle input[type="checkbox"] {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    margin-top: 2px;
    accent-color: #111;
    cursor: pointer;
}

.igi-content {
    flex: 1;
}

.igi-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.igi-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #111;
    flex: 1;
}

.igi-price {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #111;
}

.igi-desc {
    font-size: 11px;
    letter-spacing: 0.04em;
    color: #999;
    text-transform: uppercase;
}

.igi-notice {
    margin-top: 6px;
    font-size: 11px;
    letter-spacing: 0.03em;
    color: #999;
}

.igi-notice a {
    color: #666;
    text-decoration: underline;
}

/* Cart IGI line */
.cart-item-igi {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #888;
    margin-top: 6px;
}

.cart-igi-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    cursor: pointer;
}

.cart-igi-toggle input[type="checkbox"] {
    flex-shrink: 0;
    width: 13px;
    height: 13px;
    accent-color: #111;
    cursor: pointer;
}

.cart-igi-label {
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #888;
}

/* Checkout IGI line */
.item-igi {
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #888;
    margin-top: 2px;
}

.dd-select-btn {
    margin-top: 8px;
    align-self: flex-start;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 32px;
    cursor: pointer;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dd-select-btn:hover { background: #333; }
.dd-select-btn.dd-in-cart {
    background: #28a745;
    cursor: default;
}
.dd-select-btn.dd-in-cart:hover {
    background: #28a745;
}

.dd-view-cart-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 12px 32px;
    background: transparent;
    color: #111;
    border: 2px solid #111;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: all 0.15s;
    text-align: center;
}
.dd-view-cart-btn:hover {
    background: #111;
    color: #fff;
}

.dd-info-section {
    border-top: 1px solid #e8e8e8;
    padding-top: 28px;
}

.dd-info-heading {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 16px;
}

.dd-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid #e8e8e8;
    border-left: 1px solid #e8e8e8;
}

.dd-info-row {
    display: flex;
    flex-direction: column;
    padding: 14px 18px;
    border-right: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
}

.dd-info-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.dd-info-value {
    font-size: 15px;
    font-weight: 600;
    color: #111;
}

@media (max-width: 700px) {
    .dd-top { flex-direction: column; }
    .dd-img-col { flex: unset; max-width: 100%; }
    .dd-title { font-size: 18px; }
    .dd-info-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── 360° Viewer ── */
.dd-viewer-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    background: #f4f4f4;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.dd-viewer {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.dd-viewer:active { cursor: grabbing; }

.dd-viewer img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
    draggable: false;
}

.dd-viewer-hint {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.07em;
    padding: 4px 10px;
    border-radius: 20px;
    pointer-events: none;
    transition: opacity 0.3s;
}

/* ── Image Gallery (Detail Page) ── */
.dd-image-gallery {
    width: 100%;
    height: 100%;
    position: relative;
    display: block;
}

.dd-image-gallery img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.dd-image-gallery .img-nav-btn {
    opacity: 1;
}

.dd-viewer-wrap:hover .img-nav-btn {
    opacity: 1;
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.3);
}

/* ── View Toggle Button ── */
.dd-view-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.15);
    padding: 10px 14px;
    border-radius: 6px;
    color: #333;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.dd-view-toggle-btn:hover {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.25);
    box-shadow: 0 3px 12px rgba(0,0,0,0.18);
    transform: translateY(-1px);
}

.dd-view-toggle-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.dd-view-toggle-btn svg {
    flex-shrink: 0;
}
