:root {
    --dbhcw-primary: var(--primary, #f7931a);
    --dbhcw-bg: var(--bg, #f8fafc);
    --dbhcw-surface: var(--surface, #ffffff);
    --dbhcw-border: var(--border, #e2e8f0);
    --dbhcw-text-main: var(--text-main, #334155);
    --dbhcw-text-muted: var(--text-muted, #64748b);
    --dbhcw-success: #10b981;
    --dbhcw-radius: 12px;
}

.dbhcw-shop-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
    font-family: inherit;
    color: var(--dbhcw-text-main);
}

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

.dbhcw-card {
    background: var(--dbhcw-surface);
    border: 1px solid var(--dbhcw-border);
    border-radius: var(--dbhcw-radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dbhcw-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.dbhcw-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.dbhcw-tag-edition {
    color: #e65100;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dbhcw-tag-badge {
    background: #e6fffa;
    color: #0d9488;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.dbhcw-card-title {
    font-size: 1.5rem;
    margin: 0 0 16px 0;
    color: var(--dbhcw-text-main);
}

.dbhcw-gallery {
    margin-bottom: 16px;
}

.dbhcw-main-image-wrap {
    width: 100%;
    height: 220px;
    background: var(--dbhcw-bg);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.dbhcw-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    background: var(--dbhcw-bg);
    transition: border-color 0.2s ease;
}

.dbhcw-thumb.active {
    border-color: var(--dbhcw-primary);
}

.dbhcw-card-desc {
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--dbhcw-text-muted);
    margin-bottom: 20px;
}

.dbhcw-card-specs {
    margin-top: 10px;
}

.dbhcw-card-specs ul {
    padding-left: 20px;
    margin: 8px 0;
}

.dbhcw-card-specs li {
    margin-bottom: 4px;
}

.dbhcw-card-footer {
    border-top: 1px solid var(--dbhcw-border);
    padding-top: 16px;
}

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

.dbhcw-price-chf {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dbhcw-text-main);
}

.dbhcw-price-btc {
    font-size: 0.9rem;
    color: var(--dbhcw-primary);
    font-weight: 600;
}

.dbhcw-stock-box {
    margin-bottom: 14px;
    font-size: 0.85rem;
}

.dbhcw-stock-badge.in-stock {
    color: var(--dbhcw-success);
    font-weight: 600;
}

.dbhcw-stock-badge.out-of-stock {
    color: var(--dbhcw-text-muted);
}

.dbhcw-btn-buy {
    width: 100%;
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dbhcw-btn-buy:hover:not(.disabled) {
    background: var(--dbhcw-primary);
}

.dbhcw-btn-buy.disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

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

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

.dbhcw-modal-content {
    background: var(--dbhcw-surface);
    border-radius: var(--dbhcw-radius);
    max-width: 500px;
    width: 100%;
    padding: 24px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.dbhcw-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--dbhcw-text-muted);
}

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

.dbhcw-form-row label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--dbhcw-text-main);
}

.dbhcw-form-row input,
.dbhcw-form-row select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--dbhcw-border);
    border-radius: 6px;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.dbhcw-form-row small {
    display: block;
    color: var(--dbhcw-text-muted);
    font-size: 0.75rem;
    margin-top: 3px;
}

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

.dbhcw-payment-choice {
    margin-top: 20px;
    border-top: 1px solid var(--dbhcw-border);
    padding-top: 16px;
}

.dbhcw-payment-choice h4 {
    margin: 0 0 10px 0;
    font-size: 0.95rem;
}

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

.dbhcw-btn-pay-option {
    background: var(--dbhcw-bg);
    border: 2px solid var(--dbhcw-border);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    color: var(--dbhcw-text-main);
    transition: all 0.2s ease;
}

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

.dbhcw-btn-pay-option small {
    font-size: 0.75rem;
    font-weight: normal;
    color: var(--dbhcw-text-muted);
}

#dbhcw-form-feedback {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #ef4444;
}

/* Pay Page */
.dbhcw-pay-card {
    max-width: 520px;
    margin: 40px auto;
    background: var(--dbhcw-surface);
    border: 1px solid var(--dbhcw-border);
    border-radius: var(--dbhcw-radius);
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.dbhcw-pay-card.success-box {
    border-color: var(--dbhcw-success);
}

.dbhcw-timer-bar {
    background: #fff7ed;
    color: #c2410c;
    padding: 8px 14px;
    border-radius: 6px;
    display: inline-block;
    margin: 12px 0 20px 0;
    font-size: 0.9rem;
}

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

.dbhcw-qr-image {
    width: 180px;
    height: 180px;
    border: 1px solid var(--dbhcw-border);
    padding: 6px;
    border-radius: 8px;
}

.dbhcw-pay-details {
    text-align: left;
    margin-bottom: 20px;
}

.dbhcw-detail-row {
    margin-bottom: 12px;
}

.dbhcw-detail-row label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dbhcw-text-muted);
}

.dbhcw-copy-box {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.dbhcw-copy-box input {
    flex-grow: 1;
    padding: 8px 10px;
    font-family: monospace;
    font-size: 0.85rem;
    background: var(--dbhcw-bg);
    border: 1px solid var(--dbhcw-border);
    border-radius: 6px;
}

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

.dbhcw-btn-copy:hover {
    background: var(--dbhcw-primary);
}

.dbhcw-pay-status {
    font-size: 0.85rem;
    color: var(--dbhcw-text-muted);
    padding-top: 12px;
    border-top: 1px solid var(--dbhcw-border);
}

.dbhcw-pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--dbhcw-primary);
    border-radius: 50%;
    margin-right: 6px;
    animation: dbhcw-pulse 1.5s infinite;
}

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