/* DBH Crypto Watcher - Hardware Shop Frontend Styles */

.dbhcw-shop-container {
    width: 100%;
    margin: 20px 0;
    box-sizing: border-box;
}

.dbhcw-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.dbhcw-card {
    background: var(--surface, #ffffff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: var(--radius, 12px);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.05));
    box-sizing: border-box;
}

.dbhcw-card:hover {
    border-color: var(--primary, #f7931a);
    box-shadow: 0 8px 24px rgba(247, 147, 26, 0.12);
    transform: translateY(-2px);
}

.dbhcw-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: nowrap;
    gap: 8px;
    min-height: 28px;
}

.dbhcw-tag-edition {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary, #f7931a);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dbhcw-tag-badge {
    font-size: 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.dbhcw-card-title {
    margin: 0 0 14px 0;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-light, #0f172a);
}

/* Gallery & Images */
.dbhcw-gallery {
    margin-bottom: 16px;
}

.dbhcw-main-image-wrap {
    width: 100%;
    height: 230px;
    background: #f8fafc;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #edf2f7;
}

.dbhcw-main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.dbhcw-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.dbhcw-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    background: #f1f5f9;
    transition: border-color 0.2s ease;
}

.dbhcw-thumb.active,
.dbhcw-thumb:hover {
    border-color: var(--primary, #f7931a);
}

.dbhcw-symbol-disclaimer {
    font-size: 0.72rem;
    color: var(--text-muted, #94a3b8);
    margin-top: 8px;
    line-height: 1.35;
}

/* Content */
.dbhcw-card-desc {
    flex-grow: 1;
    margin-bottom: 20px;
}

.dbhcw-card-desc p {
    font-size: 0.9rem;
    color: var(--text-muted, #64748b);
    line-height: 1.5;
    margin-bottom: 12px;
}

.dbhcw-card-specs {
    font-size: 0.85rem;
    color: var(--text-main, #334155);
    line-height: 1.6;
}

.dbhcw-card-specs p {
    margin: 0;
    white-space: pre-line;
}

/* Footer & Stock Badges */
.dbhcw-card-footer {
    border-top: 1px solid var(--border, #e2e8f0);
    padding-top: 16px;
}

.dbhcw-price-box {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.dbhcw-price-chf {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-light, #0f172a);
}

.dbhcw-price-btc {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary, #f7931a);
}

.dbhcw-stock-box {
    margin-bottom: 14px;
}

.dbhcw-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

.dbhcw-stock-badge .dbhcw-dot {
    font-size: 0.7rem;
}

/* 4 Farb-Stufen */
.dbhcw-stock-badge.in-stock,
.dbhcw-stock-badge.on-demand {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.dbhcw-stock-badge.backorder {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.dbhcw-stock-badge.out-of-stock {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.dbhcw-btn-buy {
    width: 100%;
    background: var(--primary, #f7931a);
    color: #ffffff;
    border: none;
    padding: 12px 16px;
    border-radius: var(--radius-sm, 8px);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    text-align: center;
}

.dbhcw-btn-buy:hover:not(:disabled) {
    background: #e07f0f;
    transform: translateY(-1px);
}

.dbhcw-btn-buy.disabled,
.dbhcw-btn-buy:disabled {
    background: #cbd5e1;
    color: #64748b;
    cursor: not-allowed;
    transform: none;
}

/* Modal */
.dbhcw-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.dbhcw-modal.active {
    display: flex;
}

.dbhcw-modal-content {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    box-sizing: border-box;
}

.dbhcw-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    line-height: 1;
}

.dbhcw-modal-close:hover {
    color: #0f172a;
}

.dbhcw-order-summary-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 16px;
    margin: 16px 0 20px 0;
}

.dbhcw-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    color: #475569;
    margin-bottom: 6px;
}

.dbhcw-summary-row.total-row {
    border-top: 1px solid #e2e8f0;
    padding-top: 8px;
    margin-top: 8px;
    font-size: 1.05rem;
    color: #0f172a;
}

.dbhcw-form-row {
    margin-bottom: 14px;
}

.dbhcw-form-row label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 5px;
}

.dbhcw-form-row input,
.dbhcw-form-row select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.9rem;
    box-sizing: border-box;
    background: #ffffff;
}

.dbhcw-form-row input:focus,
.dbhcw-form-row select:focus {
    border-color: var(--primary, #f7931a);
    outline: none;
    box-shadow: 0 0 0 2px rgba(247, 147, 26, 0.2);
}

.dbhcw-grid-2 {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 10px;
}

.dbhcw-form-row small {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 4px;
    line-height: 1.35;
}

.dbhcw-payment-choice {
    margin-top: 20px;
    border-top: 1px solid #e2e8f0;
    padding-top: 16px;
}

.dbhcw-payment-choice h4 {
    margin: 0 0 12px 0;
    font-size: 0.95rem;
    color: #0f172a;
}

.dbhcw-btn-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.dbhcw-btn-pay-option {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.dbhcw-btn-pay-option small {
    font-size: 0.72rem;
    font-weight: normal;
    color: #64748b;
    display: block;
    margin-top: 4px;
}

.dbhcw-btn-pay-option:hover {
    border-color: var(--primary, #f7931a);
    background: #fffaf5;
}

/* Pay Page / BTC Card */
.dbhcw-pay-card {
    max-width: 520px;
    margin: 30px auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.dbhcw-timer-bar {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #c2410c;
    padding: 8px 14px;
    border-radius: 6px;
    margin: 16px 0;
    font-size: 0.88rem;
    display: inline-block;
}

.dbhcw-qr-section {
    margin: 20px 0;
}

.dbhcw-qr-image {
    max-width: 220px;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 8px;
    background: #ffffff;
}

.dbhcw-detail-row {
    margin-bottom: 14px;
    text-align: left;
}

.dbhcw-detail-row label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
}

.dbhcw-copy-box {
    display: flex;
    gap: 8px;
}

.dbhcw-copy-box input {
    flex-grow: 1;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.88rem;
    background: #f8fafc;
}

.dbhcw-btn-copy {
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.dbhcw-pay-status {
    margin-top: 24px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dbhcw-pulse-dot {
    width: 10px;
    height: 10px;
    background: var(--primary, #f7931a);
    border-radius: 50%;
    animation: dbhcw-pulse 1.5s infinite;
}

@keyframes dbhcw-pulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}