/* ========== HOUSE SHOP MODAL - Seguindo padrão do jogo ========== */

#houseShopModal.floating-window {
    width: 440px;
    max-width: 92vw;
    min-height: 420px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    bottom: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0;
    overflow: hidden;
}

/* Header - Segue padrão .window-header */
.house-shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: linear-gradient(180deg, rgba(60, 50, 40, 0.7), rgba(30, 25, 20, 0.8));
    border-bottom: 1px solid rgba(139, 115, 85, 0.5);
    border-radius: 8px 8px 0 0;
    cursor: move;
    user-select: none;
    flex-shrink: 0;
}

.house-shop-title {
    font-family: 'MedievalSharp', cursive;
    font-size: 15px;
    color: var(--gold-light, #f8e6c8);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.3px;
    margin: 0;
    font-weight: normal;
}

.house-shop-close-btn {
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(139, 115, 85, 0.5);
    border-radius: 6px;
    color: var(--text-muted, #a09080);
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.house-shop-close-btn:hover {
    background: rgba(60, 50, 40, 0.6);
    border-color: var(--gold-primary, #d4af37);
    color: var(--gold-primary, #d4af37);
}

.house-shop-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 15px;
}

.house-shop-balance {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    margin-bottom: 15px;
    border: 1px solid rgba(139, 115, 85, 0.2);
}

.house-shop-balance span {
    font-size: 13px;
    color: var(--text-main, #e8e0d5);
}

.house-shop-balance strong {
    color: #f4d03f;
    margin-left: 4px;
}

.house-shop-coin-icon {
    width: 20px;
    height: 20px;
    image-rendering: pixelated;
}

.house-shop-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 5px;
    /* Custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 115, 85, 0.6) rgba(30, 24, 18, 0.4);
}

.house-shop-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(40, 30, 20, 0.8), rgba(20, 15, 10, 0.8));
    border: 1px solid rgba(100, 80, 60, 0.5);
    border-radius: 8px;
    transition: all 0.2s;
}

.house-shop-item:hover:not(.house-shop-item-disabled) {
    border-color: var(--gold-dark, #8b7355);
    background: linear-gradient(135deg, rgba(60, 45, 30, 0.9), rgba(40, 30, 20, 0.9));
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.house-shop-item-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.house-shop-item-icon img {
    max-width: 80%;
    max-height: 80%;
    image-rendering: pixelated;
}

.house-shop-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.house-shop-item-name {
    font-family: 'MedievalSharp', cursive;
    font-size: 14px;
    color: var(--gold-light, #f4d03f);
}

.house-shop-item-desc {
    font-size: 11px;
    color: rgba(180, 160, 130, 0.8);
    line-height: 1.3;
}

.house-shop-item-price {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #f4d03f;
    font-weight: bold;
    margin-top: 2px;
}

.house-shop-coin-icon-sm {
    width: 14px;
    height: 14px;
    image-rendering: pixelated;
}

.house-shop-price-red {
    color: #ff4444;
}

.house-shop-buy-btn {
    background: linear-gradient(180deg, #d4af37, #8a6a12);
    border: 1px solid #f4d03f;
    color: #000;
    font-family: 'MedievalSharp', cursive;
    font-size: 11px;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
    white-space: nowrap;
}

.house-shop-buy-btn:hover:not(:disabled) {
    background: linear-gradient(180deg, #f4d03f, #d4af37);
    transform: scale(1.05);
}

.house-shop-buy-btn:disabled {
    background: #444;
    border-color: #666;
    color: #888;
    cursor: not-allowed;
}

.house-shop-empty {
    text-align: center;
    padding: 40px;
    color: #888;
    font-style: italic;
}

.house-shop-item-disabled {
    opacity: 0.8;
}

/* Scrollbar styling */
.house-shop-list::-webkit-scrollbar {
    width: 6px;
}

.house-shop-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.house-shop-list::-webkit-scrollbar-thumb {
    background: rgba(139, 115, 85, 0.3);
    border-radius: 3px;
}

.house-shop-list::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 115, 85, 0.5);
}
